Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Watch
Unwatch
Watching
Releases Only
Ignoring
456
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
980
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
针对某些盘NCQ场景通过D2H帧返回UNC场景优化
Done
#I86GWG
Bug
jamyyxg
Opened this issue
2023-10-09 14:41
**【标题描述】针对某些盘NCQ场景通过D2H帧返回UNC场景优化** **一、缺陷信息** 当前未走NCQ场景一场处理流程,没有立即对全盘执行abort处理。 而是基于fastdrain机制处理,有一定的时延,且错误码显示不准确。 **内核信息:4.19** **缺陷归属组件:hisi_sas驱动** **缺陷归属的版本:4.19内核** **缺陷简述:兼容东芝盘在NCQ场景通过D2H返错场景** **【环境信息】** 硬件信息 - 鲲鹏920 软件信息 - euleros - 4.19 网络信息 - NA **【问题复现步骤】**,通过注入unc,在一个512K的读IO中,DMA setup已经从盘返回到启动器,并且64个8K数据帧已经返回到启动器,此时,启动器下发了一个新IO到盘上,此场景硬盘通过D2H帧返回了UNC错误,东芝厂商确认硬盘就是如此设计。 通过对比,当前仅东芝盘复现此现象,其他盘均通过sdb帧返回unc错误。 **【实际结果】**,驱动当前单IO的D2H帧处理。 **【其他相关附件信息】** 比如系统message日志/组件日志、dump信息、图片等 [ 69.147666] hisi_sas_v3_hw 0000:74:02.0: erroneous completion iptt=947 task=ffff8067dba08000 dev id=0 sas_addr=0x5000000000000403 CQ hdr: 0x101d03 0x3b3 0x200000 0x4460000 Error info: 0x0 0x0 0x10000 0x0 [ 69.165662] hisi_sas_v3_hw 0000:74:02.0: sata d2h status 0x43, error 0x10 [ 69.188706] sas: Enter sas_scsi_recover_host busy: 1 failed: 1 [ 69.188715] sas: ata5: end_device-4:0: cmd error handler [ 69.188735] sas: ata5: end_device-4:0: dev error handler [ 69.188738] sas: ata6: end_device-4:1: dev error handler [ 69.188744] sas: ata7: end_device-4:2: dev error handler [ 69.188803] sas: ata8: end_device-4:3: dev error handler [ 69.189115] ata5.00: exception Emask 0x0 SAct 0x200000 SErr 0x0 action 0x0 [ 69.195964] ata5.00: failed command: READ FPDMA QUEUED [ 69.201088] ata5.00: cmd 60/08:00:00:00:00/00:00:00:11:27/40 tag 21 ncq dma 4096 in res 43/10:08:00:00:00/00:00:00:11:27/40 Emask 0x480 (invalid argument) <F> [ 69.217354] ata5.00: status: { DRDY SENSE ERR } [ 69.221870] ata5.00: error: { IDNF } [ 69.225453] hisi_sas_v3_hw 0000:74:02.0: erroneous completion iptt=4010 task=ffffa067cea2c900 dev id=0 sas_addr=0x5000000000000403 CQ hdr: 0x203 0xfaa 0x0 0x100 Error info: 0x0 0x0 0x0 0x0 [ 69.242564] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x4) [ 69.248630] ata5.00: revalidation failed (errno=-5) [ 69.253501] ata5: hard resetting link [ 69.257495] hisi_sas_v3_hw 0000:74:02.0: phydown: phy3 phy_state=0xf7 [ 69.263911] hisi_sas_v3_hw 0000:74:02.0: ignore flutter phy3 down [ 69.419338] hisi_sas_v3_hw 0000:74:02.0: phyup: phy3 link_rate=10(sata) [ 69.425949] sas: sas_form_port: phy3 belongs to port0 already(1)! [ 69.590718] ata5.00: configured for UDMA/133 [ 69.594997] ata5: EH complete [ 69.597965] sas: --- Exit sas_scsi_recover_host: busy: 0 failed: 1 tries: 1
**【标题描述】针对某些盘NCQ场景通过D2H帧返回UNC场景优化** **一、缺陷信息** 当前未走NCQ场景一场处理流程,没有立即对全盘执行abort处理。 而是基于fastdrain机制处理,有一定的时延,且错误码显示不准确。 **内核信息:4.19** **缺陷归属组件:hisi_sas驱动** **缺陷归属的版本:4.19内核** **缺陷简述:兼容东芝盘在NCQ场景通过D2H返错场景** **【环境信息】** 硬件信息 - 鲲鹏920 软件信息 - euleros - 4.19 网络信息 - NA **【问题复现步骤】**,通过注入unc,在一个512K的读IO中,DMA setup已经从盘返回到启动器,并且64个8K数据帧已经返回到启动器,此时,启动器下发了一个新IO到盘上,此场景硬盘通过D2H帧返回了UNC错误,东芝厂商确认硬盘就是如此设计。 通过对比,当前仅东芝盘复现此现象,其他盘均通过sdb帧返回unc错误。 **【实际结果】**,驱动当前单IO的D2H帧处理。 **【其他相关附件信息】** 比如系统message日志/组件日志、dump信息、图片等 [ 69.147666] hisi_sas_v3_hw 0000:74:02.0: erroneous completion iptt=947 task=ffff8067dba08000 dev id=0 sas_addr=0x5000000000000403 CQ hdr: 0x101d03 0x3b3 0x200000 0x4460000 Error info: 0x0 0x0 0x10000 0x0 [ 69.165662] hisi_sas_v3_hw 0000:74:02.0: sata d2h status 0x43, error 0x10 [ 69.188706] sas: Enter sas_scsi_recover_host busy: 1 failed: 1 [ 69.188715] sas: ata5: end_device-4:0: cmd error handler [ 69.188735] sas: ata5: end_device-4:0: dev error handler [ 69.188738] sas: ata6: end_device-4:1: dev error handler [ 69.188744] sas: ata7: end_device-4:2: dev error handler [ 69.188803] sas: ata8: end_device-4:3: dev error handler [ 69.189115] ata5.00: exception Emask 0x0 SAct 0x200000 SErr 0x0 action 0x0 [ 69.195964] ata5.00: failed command: READ FPDMA QUEUED [ 69.201088] ata5.00: cmd 60/08:00:00:00:00/00:00:00:11:27/40 tag 21 ncq dma 4096 in res 43/10:08:00:00:00/00:00:00:11:27/40 Emask 0x480 (invalid argument) <F> [ 69.217354] ata5.00: status: { DRDY SENSE ERR } [ 69.221870] ata5.00: error: { IDNF } [ 69.225453] hisi_sas_v3_hw 0000:74:02.0: erroneous completion iptt=4010 task=ffffa067cea2c900 dev id=0 sas_addr=0x5000000000000403 CQ hdr: 0x203 0xfaa 0x0 0x100 Error info: 0x0 0x0 0x0 0x0 [ 69.242564] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x4) [ 69.248630] ata5.00: revalidation failed (errno=-5) [ 69.253501] ata5: hard resetting link [ 69.257495] hisi_sas_v3_hw 0000:74:02.0: phydown: phy3 phy_state=0xf7 [ 69.263911] hisi_sas_v3_hw 0000:74:02.0: ignore flutter phy3 down [ 69.419338] hisi_sas_v3_hw 0000:74:02.0: phyup: phy3 link_rate=10(sata) [ 69.425949] sas: sas_form_port: phy3 belongs to port0 already(1)! [ 69.590718] ata5.00: configured for UDMA/133 [ 69.594997] ata5: EH complete [ 69.597965] sas: --- Exit sas_scsi_recover_host: busy: 0 failed: 1 tries: 1
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register