libata error messages

CentOS 5.3启动后报错——ata1.00: error CentOS 5.3,可能是又一次非法断电关机什么的,两周后发现机器无法启动了, 每次启动的时候: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 ata1.00: BMDMA stat 0x24 ata1.00: cmd c8/00:00:bd:bc:04/00:00:00:00:00/e0 tag 0 dma 131072... 阅读详情

https://ata.wiki.kernel.org/index.php/Libata_error_messages

Libata error messages

From ata Wiki

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

ataprefix, indicating this is a libata port or device message
3port number, counting from one (1)
00device 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
EmaskError classification bitmask (AC_ERR_xxx in source code)
SActSATA SActive register
SErrSATA SError register
actionATA_EH_xxx actions, like revalidate, softreset, hardreset (see include/linux/libata.h)
frozenif 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:

 Command
(separator)
 Feature
 NSect
 LBA L
 LBA M
 LBA H
(separator)
 HOB Feature
 HOB NSect
 HOB LBA L
 HOB LBA M
 HOB LBA H
(separator)
 Device/Head
tagNCQ 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:

 Status
(separator)
 Error
 NSect
 LBA L
 LBA M
 LBA H
(separator)
 HOB Error
 HOB NSect
 HOB LBA L
 HOB LBA M
 HOB LBA H
(separator)
 Device/Head
EmaskATA command's internal error mask (AC_ERR_xxx in source code)
(summary)An English summary of the error, such as
  • timeout
  • HSM violation
  • media error

See below for a full list.

Error classes

These are the possible values for the (summary) in each error message, above.

host bus errorHost<->chip bus error (i.e. PCI, if on PCI bus)
ATA bus errorchip<->device bus error
timeoutController 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.
HSM violationHardware 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.
internal errorHardware flagged an impossible condition, most likely due to software misprogramming.
media errorSoftware detected a media error
invalid argumentSoftware marked ATA command as invalid, for some reason
device errorHardware 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.
unknown errorUncategorized 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:

BusyDevice busy (all other bits invalid)
DRDYDevice ready. Normally 1, when all is OK.
DRQData ready to be sent/received via PIO
DFDevice fault
ERRError (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 }
ICRCInterface 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
UNCUncorrectable error - often due to bad sectors on the disk
IDNFRequested address was not found
ABRTCommand 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).

RecovDataData integrity error occurred, but the interface recovered
RecovCommCommunications between device and host temporarily lost, but regained
UnrecovDataData integrity error occurred, interface did not recover
PersistPersistent communication or data integrity error
ProtoSATA protocol violation detected
HostIntHost bus adapter internal error
PHYRdyChgPhyRdy signal changed state
PHYIntPHY internal error
CommWakeCOMWAKE detected by PHY (PHY woken up)
10B8B10b to 8b decoding error occurred
DisparIncorrect disparity detected
BadCRCLink layer CRC error occurred
HandshkR_ERR handshake response received in response to frame transmission
LinkSeqLink state machine error occurred
TrStaTrnsTransport layer state transition error occurred
UnrecFISUnrecognized FIS (frame information structure) received
DevExchDevice presence has changed
GD32 TLI+IPA实战:5分钟搞定RGB888屏幕显示,并开启2D图形加速 本文详细介绍了如何使用GD32微控制器的TLI和IPA功能快速驱动RGB888屏幕并开启2D图形加速。通过硬件配置、时序设置和显存管理,开发者可以高效实现图形界面渲染,并利用IPA加速器提升性能,适用于嵌入式GUI开发等场景。 阅读详情

相关推荐

人形机器人五大核心零部件技术解析与国产化实况

人形机器人并非简单机械集成,而是物理、能量、感知、决策与执行五层系统毫秒级协同的复杂体。其性能瓶颈往往不在于整机算法,而深植于谐波减速器的刚度稳定性、无框力矩电机的功率密度与温升控制、六维力传感器的动态响应与温漂抑制、运动控制器的实时OS生态及灵巧手的多指协同精度等底层硬件能力。这些部件共同构成整机68.3%的成本,且国产化率差异显著——谐波减速器达72%,而高精度力矩传感器仍受制于日德厂商。本文聚焦‘谐波减速器’和‘六维力传感器’两大热词,从材料工艺、参数定义、失效模式到产线验证,揭示真正卡脖子的技术关卡

weixin_29065959的博客 406

SSD 因 NCQ hang,failed command: WRITE FPDMA QUEUED / tag 28 ncq 4096 out

新购入的建兴ZETA 256G,在CentOS 7.2中,用PostgreSQL自带的fsync测试工具pg_test_fsync测试IOPS时,突然IO hang住了。 dmesg报了一堆这样的超时: res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) [ 895.6...

weixin_34081595的博客 7477

保姆级教程:用torch.profiler给你的vLLM推理做个“全身体检”(附Perfetto可视化分析)

本文提供了一份详细的vLLM推理性能分析教程,通过torch.profiler和Perfetto工具链实现从数据采集到可视化分析的全流程。文章涵盖了环境配置、性能数据采集、trace文件解析以及Perfetto可视化分析,帮助开发者优化大模型推理服务的性能,显著降低计算资源消耗。

weixin_29041767的博客 356

linux系统ata1.00,SATA读取时 偶尔 发生错误

如题:状况如下:我们做的板子能支持12块高速SATA硬盘(通过PCIE转SATA连接的硬盘),但是在读硬盘的时候偶尔会出现错误,写的时候不会出现错误。请各位给分析一下大概是什么原因。是不是高速的SATA硬盘对板子的硬件电路要求特别高才产生的这种现象:ata4.00:failedtoreadSCR1(Emask=0x40)ata4.01:failedtoreadSCR1(...

weixin_34297395的博客 5357

MIPI转LVDS芯片调试实战:从Kernel到UEFI的完整点亮流程

本文详细解析了MIPI转LVDS芯片调试的全流程,从Kernel驱动开发到UEFI早期初始化,涵盖I2C通信、电源时序控制等核心挑战。通过LT9211芯片实战案例,提供设备树配置、电源时序优化及显示异常排查等实用技巧,助力工程师高效完成屏幕调试工作。

weixin_30314813的博客 450

影刀RPA:轻松搞定Excel表格自动化操作

影刀RPA是一款功能强大的自动化工具,通过模拟人类操作实现各种重复性任务的自动化。零代码操作:通过拖拽式流程设计器,无需编程基础即可快速上手。功能丰富:提供丰富的组件库,涵盖文件操作、数据处理等多种功能。高效稳定:支持多任务并行,确保任务的高效执行和稳定性。支持Python语法:内置数据表格,支持Python语法,对新手友好,同时具备循环功能。通过影刀RPA,您可以轻松实现Excel表格的拆分、列数据合并和归档工作的自动化。这不仅节省了手动操作的时间,还能确保数据处理的高效和准确,提升工作效率和管理水平。

watwrmoon的博客 2560

Linux日志是什么产生的,出现这些日志是什么情况?

ata1.00:exceptionEmask0x10SAct0x7fffffffSErr0x400100action0x6frozenata1.00:irq_stat0x08000000,interfacefatalerrorata1.00:cmd61/28:00:5c:5a:ca/02:00:73:00:00/40tag0ncq282624outres...

weixin_34566436的博客 1395

SQL-拼多多 面试题:连续3次为球队得分的球员名单

1.使用LAG开窗函数 筛选出 下一次和下下一次得分,并用进球时间进行排序。2.使用where筛选出值得嘉奖的球员。

Ftr1998的博客 643

Libata错误信息解析

Libata错误信息解析 原文(Libata error messages)来源: https://ata.wiki.kernel.org/index.php/Libata_error_messages 概述 内核产生所有的libata错误信息都使用以下标准格式: ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 f...

他山随悟的专栏 1万+

MT4/MT5 第三代移动平均线(MetaTrader 指标)

第三代移动平均线(3G-MA)是传统MA指标的升级版本,通过"时滞压缩"算法将信号滞后降至理论极限(λ=2)。该指标在保留平滑性的同时,信号速度比EMA快1.5-2.3倍,适用于MT4/MT5平台。核心参数包括计算周期(默认34)、滞后压缩系数(2-10)和应用价位选择,支持斜率变色功能。安装简单,无需外部依赖,通过多周期共振可提升12-18%胜率。指标代码包含完整的MT4/MT5实现方案,采用双缓冲计算结构,通过相位前移算法抵消群延迟。风险提示:需配合其他技术指标和严格风控(≤2%账户

JanLEE 579

【matlab】基于 Simulink 的空调恒温控制系统仿真建模

本文介绍了基于Simulink的空调恒温控制系统仿真建模方法。系统采用PID控制算法,通过传感器测量温度、控制器计算信号、执行器调节功率来实现恒温控制。文章详细阐述了Simulink模型搭建步骤,包括PID控制器、房间热力学特性模拟等模块的实现,并提供了测试流程和多种实际部署场景。该方法可有效验证控制算法性能,优化系统设计,适用于家用、商用、工业及汽车空调系统。未来可结合智能算法和节能优化技术进一步提升系统性能。

走向CTO的路上... 918

linux开机报ata错误,Linux 系統出現 ATA SError DevExch 的錯誤解法

Linux 遇到硬碟快壞掉,然後半殘的情況,有 RAID1 是不用怕資料遺漏,只是機器的 Loading 變重,速度變很慢~ (如同此篇文章:Linux Soft RAID1 硬碟半殘的偵測確認、移除、更換硬碟動作當硬碟換好後,卻開機失敗,一直出現 ATA SError DevExch 等等的訊息,然後強制 root 登入後,修改 grub 先跳過此問題,讓開機正常,但是這個訊息還是一直跑個不停,...

weixin_29189987的博客 3230

基于强化学习的多无人机路径规划

我们使用了Dueling Double Deep Q-Network(DDDQN)算法来训练智能体,这个算法在深度Q学习算法的基础上进行了升级,具有更快的收敛速度和更好的性能。本文提出了一种基于强化学习的算法,实现了多无人机路径规划,并提供相应的MATLAB代码。通过基于强化学习的多无人机路径规划算法,我们能够高效地解决复杂环境下的任务需求,并在实际应用中取得了良好的效果。首先,我们定义了状态空间和动作空间。实验结果表明,我们的方法能够有效地解决多无人机路径规划问题,提高了任务完成的效率和准确率。

DjjPython的博客 820

linux毁硬盘吗,linux – 我的硬盘即将死亡吗?

我的服务器上有两个硬盘驱动器设置为RAID 1阵列(Linux,使用mdadm的软件RAID),其中一个刚刚让我在syslog中显示“存在”:Nov 23 02:05:29 h2 kernel: [7305215.338153] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0Nov 23 02:05:29 h2 kernel: [...

weixin_28829903的博客 529

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

为什么linux会伤固态硬盘,linux – 为什么这个SSD驱动器出现坏扇区故障,是否可以预测?...

注意:此问题之前已被关闭为非主题.你可以阅读discussion.我在这里问的理由是:>此驱动器位于赞比亚农村学校的离线内容缓存服务器中.>服务器是从磁盘映像创建的,所有内容都是可替换的.>它必须便宜,因为赞比亚学校的预算有限,而且会有很多.>它也必须可靠,因为在不良道路上可能需要8小时才能更换.>我不允许在这里询问什么驱动器不是“超便宜的垃圾”.>因此,我们正...

weixin_30456235的博客 1282

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

linux系统ata1.00,由于断电,重启服务器后,LVM卷组出现错误:ata1.00 status drdy err unc...

具体错误如下:ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0ata1.00: BMDMA stat 0x24ata1.00: failed command: READ DMAata1.00: cmd c8/00:08:20:b7:13/00:00:00:00:00/ef tag 0 dma 4096 inres 51/40:00:...

weixin_28697921的博客 5286

queued_在Linux上,诸如“ UnrecovData 10B8B BadCRC”和“失败的命令:READ FPDMA QUEUED”之类的消息有什么问题?...

queuedI keep seeing messages in dmesg as follows with “exception Emask 0x10” -> “SError: { UnrecovData 10B8B BadCRC }” -> “failed command: READ FPDMA QUEUED” -> “hard resetting link”: 我一直在dme...

cuma2369的博客 3549

文件系统只读---硬盘导致

问题现象:偶发文件系统只读,df -h / 命令无效,mount命令显示根分区为ro。这个问题是因为硬盘开启NCQ队列传输导致的。

mintafang5881的博客 1281

由于断电,重启服务器后,LVM卷组出现错误:ata1.00 status drdy err unc

具体错误如下:[plain] view plain copyata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0  ata1.00: BMDMA stat 0x24  ata1.00: failed command: READ DMA  ata1.00: cmd c8/00:08:20:b7:13/00:00:00:00:00/ef t...

乌托邦 7401

Acer Aspire 5583 光驱刷固件

整个环境是在DOS下进行的,而准备工作则是在Ubuntu10.04下做的。   刷固件原因:系统莫名假死,报错为 dmesg 写道 ata1.01: ATAPI: TSSTcorpCDW/DVD TS-L462D, AC00, max UDMA/33 ata1.01: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen  ...

PC的€$~!@#% 290

报错 status: { DRDY ERR } ata3.00: error: { UNC }

tail -30 /var/log/message [68492.671145] ata3.00: status: { DRDY ERR } [68492.671148] ata3.00: error: { UNC } [68492.899657] ata3.00: configured for UDMA/133 [68492.899678] ata3: EH complete [68495.61...

weixin_33961829的博客 4147

linux网络编程之 epoll

#include #include #include #include #include #include #include #include #include #include using namespace std; #define MAXLINE 5 #define OPEN_MAX 100 #define LISTENQ 20

云哥的专栏 625
上一篇: 关于fflush(stdin)清空输入缓存流~VC6与gcc的区别~
下一篇: 珍惜人生
Iphone4
博客等级 码龄17年 17粉丝 53原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值