Libata Error Message 解析
Libata error messages
Contents[hide] |
Overview
All libata error messages produced by the kernel use a standard format:
ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata3.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
res 40/00:00:01:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
ata3.00: status: { DRDY }
Prefix
The prefix
ata3.00:
decodes as
| ata | prefix, indicating this is a libata port or device message |
| 3 | port number, counting from one (1) |
| 00 | device number, usually zero unless Port Multiplier or PATA master/slave is involved |
Exception line
The exception line gives an overview of the EH (Error Handler) state.
exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
| Emask | Error classification bitmask (AC_ERR_xxx in source code) |
| SAct | SATA SActive register |
| SErr | SATA SError register |
| action | ATA_EH_xxx actions, like revalidate, softreset, hardreset (see include/linux/libata.h) |
| frozen | if present, indicates the port was frozen for EH |
| t<number> | number of retries |
Input taskfile
The "cmd" line gives the ATA command (taskfile) sent to the device:
cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
This lists ATA registers in the following order:
| ea | Command (FLUSH CACHE EXT EAh, Non-Data) |
| / | (separator) |
| 00 | Feature |
| 00 | NSect |
| 00 | LBA L |
| 00 | LBA M |
| 00 | LBA H |
| / | (separator) |
| 00 | HOB Feature |
| 00 | HOB NSect |
| 00 | HOB LBA L |
| 00 | HOB LBA M |
| 00 | HOB LBA H |
| / | (separator) |
| a0 | Device/Head |
| tag | NCQ tag |
| 0 | NCQ tag number, or listed as zero if NCQ is not active/applicable. |
Output taskfile, error summary
The next line contains a current dump of the ATA device's registers, along with an error summary:
res 40/00:00:01:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
In order:
| 40 | Status |
| / | (separator) |
| 00 | Error |
| 00 | NSect |
| 01 | LBA L |
| 4f | LBA M |
| c2 | LBA H |
| / | (separator) |
| 00 | HOB Error |
| 00 | HOB NSect |
| 00 | HOB LBA L |
| 00 | HOB LBA M |
| 00 | HOB LBA H |
| / | (separator) |
| 00 | Device/Head |
| Emask | ATA command's internal error mask (AC_ERR_xxx in source code) |
| 0x4 | An English summary of the error, such as
See below for a full list. |
Error classes
These are the possible values for the internal error mask in each error message mentioned above.
AC_ERR_XXX, ATA Completion Errors were defined in include/linux/libata.h.
| 0x20 | host bus error | Host<->chip bus error (i.e. PCI, if on PCI bus) |
| 0x10 | ATA bus error | chip<->device bus error |
| 0x4 | timeout | Controller failed to respond to an active ATA command. This could be any number of causes. Most often this is due to an unrelated interrupt subsystem bug (try booting with 'pci=nomsi' or 'acpi=off' or 'noapic'), which failed to deliver an interrupt when we were expecting one from the hardware. |
| 0x2 | HSM violation | Hardware failed to respond in an expected manner. "HSM" stands for Host State Machine, a software-based finite state machine required by ATA that expects certain hardware behaviors, based on the current ATA command and other hardware-state programming details. |
| 0x40 | internal error | Hardware flagged an impossible condition, most likely due to software misprogramming. |
| 0x8 | media error | Software detected a media error |
| 0x80 | invalid argument | Software marked ATA command as invalid, for some reason |
| 0x1 | device error | Hardware indicates an error with last command. This error is delivered directly from the ATA device. If you see a lot of these, that is often an indication of a hardware problem. |
| 0x100 | unknown error | Uncategorized error (should never happen) |
ATA status expansion
The final line
status: { DRDY }
expands the ATA status register returned in the output taskfile into its component bits:
| Busy | Device busy (all other bits invalid) |
| DRDY | Device ready. Normally 1, when all is OK. |
| DRQ | Data ready to be sent/received via PIO |
| DF | Device fault |
| ERR | Error (see Error register for more info) |
ATA error expansion
If any bits in the Error register are set, the Error register contents will be expanded into its component bits, for example:
error: { ICRC ABRT }
| ICRC | Interface CRC error during Ultra DMA transfer - often either a bad cable or power problem, though possibly an incorrect Ultra DMA mode setting by the driver |
| UNC | Uncorrectable error - often due to bad sectors on the disk |
| IDNF | Requested address was not found |
| ABRT | Command aborted - either command not supported, unable to complete, or interface CRC (with ICRC) |
SATA SError expansion
If any bits in the SATA SError register are set, the SError register contents will be expanded into its component bits, for example:
SError: { PHYRdyChg CommWake }
These bits are set by the SATA host interface in response to error conditions on the SATA link. Unless a drive hotplug or unplug operation occurred, it is generally not normal to see any of these bits set. If they are, it usually points strongly toward a hardware problem (often a bad SATA cable or a bad or inadequate power supply).
| RecovData | Data integrity error occurred, but the interface recovered |
| RecovComm | Communications between device and host temporarily lost, but regained |
| UnrecovData | Data integrity error occurred, interface did not recover |
| Persist | Persistent communication or data integrity error |
| Proto | SATA protocol violation detected |
| HostInt | Host bus adapter internal error |
| PHYRdyChg | PhyRdy signal changed state |
| PHYInt | PHY internal error |
| CommWake | COMWAKE detected by PHY (PHY woken up) |
| 10B8B | 10b to 8b decoding error occurred |
| Dispar | Incorrect disparity detected |
| BadCRC | Link layer CRC error occurred |
| Handshk | R_ERR handshake response received in response to frame transmission |
| LinkSeq | Link state machine error occurred |
| TrStaTrns | Transport layer state transition error occurred |
| UnrecFIS | Unrecognized FIS (frame information structure) received |
| DevExch | Device presence has changed |
Libata Error Message 解析的更多相关文章
- Compiler Error Message: CS0016: Could not write to output file 回绝访问
Compiler Error Message: CS0016: Could not write to output file 'c:\Windows...dll' 拒绝访问 C:\Windows\Te ...
- Oracle Error - "OCIEnvCreate failed with return code -1 but error message text was not available".
ISSUE: When trying to connect to an Oracle database you receive the following error: "OCIEnvCre ...
- 网站部署后Parser Error Message: Could not load type 的解决方案
asp.net 的Webproject 项目是在64bit机上开发,默认选项发布后,部署到32bit的服务器上,出现Parser Error Message: Could not load type的 ...
- [BTS] The adapter "SQL" raised an error message. Details "The Messaging Engine is shutting down. ".
Get a warning in event log. Log Name: ApplicationSource: BizTalk ServerDate: 3/ ...
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
Article ID: 939308 - View products that this article applies to. Expand all | Collapse all Symptoms ...
- Fix the “No Private Key” Error Message
This article will show you how to correct the “No Private Key” error message in Windows Internet Inf ...
- undefined reference to typeinfo - C++ error message
undefined reference to typeinfo - C++ error message There are some compiler and loader error message ...
- "This connection is untrusted" - Firefox error message
Error Messages I am receiving the following error message in Firefox: After selecting Cancel to clos ...
- android stack error message is Fail to start the plugin
E: 08-26 16:34:11.934: E/AliSDK(32236): 错误编码 = 1002208-26 16:34:11.934: E/AliSDK(32236): 错误消息 = SDK ...
- Error message “Assembly must be registered in isolation” when registering Plugins in Microsoft Dynamics CRM 2011 2013 解决办法
Error message “Assembly must be registered in isolation” when registering Plugins in Microsoft Dynam ...
随机推荐
- The project description file (.project) for XXX is missing
在STS中切换项目分支的时候,出现一个项目打不开了,提示:The project description file (.project) for XXX is missing 试了下网上的方法都没有解 ...
- 基于Tensorflow技术开发的计算机毕业设计辅助生成器(使用AI大模型技术)
这是一个辅助生成计算机毕业设计的工具,可以自动完成毕业设计的源码.它基于几百个github上面开源的java和python项目,运用tensorflow技术,训练出了AI大模型.基本实现了计算机毕业设 ...
- [转帖]麒麟v10上部署TiDBv5.1.2生产环境的最佳实践
https://tidb.net/book/tidb-monthly/2022/2022-07/usercase/tidb-v5-1-2 前言 笔者最近在一个银行项目中做 PoC 测试,由于客户选择 ...
- Tidb 使用minio 进行br备份数据库的过程
Tidb 使用minio 进行br备份数据库的过程 背景 br 备份恢复时一般需要共享存储. 前段时间一直使用的是nfs 进行共享文件备份. 这样需要所有的机器在 相同的目录下面挂载相同的nfs. 并 ...
- ext4 磁盘扩容
目录 ext4文件系统磁盘扩容 目标 途径 操作步骤 改变前的现状 操作和改变后的状态 ext4文件系统磁盘扩容 一个磁盘有多个分区,分别创建了物理卷.卷组.逻辑卷.通过虚拟机软件对虚拟机的磁盘/de ...
- [转帖]docker-compose完全清除
https://www.cnblogs.com/gelandesprung/p/12112420.html#:~:text=docker-compose%E5%AE%8C%E5%85%A8%E6%B8 ...
- [转帖]k8s之PV、PVC、StorageClass详解
https://zhuanlan.zhihu.com/p/128552232 导读 上一篇写了共享存储的概述以及一个简单的案例演示.这一篇就写一下PV和PVC. PV是对底层网络共享存储的抽象,将共享 ...
- [转帖]龙芯3A5000评测 国产自主指令集架构实战
https://tieba.baidu.com/p/8297036384?pid=147031768904&cid=#147031768904 芯片,是世界一大难题,很多人难以想象电子硬件 ...
- [转帖]SPECjvm测试工具详解
ARM服务器测试大纲中指定了要使用specjvm测试Java虚拟机性能,所以就上网找开源的测试套. 简介 SPECjvm2008(java虚拟机基准测试)是用来测试java运行环境(JRE)性能的基准 ...
- 在WPF应用中,结合阿里矢量图标库使用Geometry图标
在我们的SqlSugar开发框架的WPF应端中,有时候我们需要在按钮或者其他界面元素上使用一些图标,框架中我们可以使用 lepoco/wpfui 项目的图标库,也可以使用Font-Awesome-WP ...