6 Star 1 Fork 28

src-openEuler/linux-firmware

 / 详情

intel ice 驱动加载ddp package失败

已完成
自定义
创建于  
2023-03-17 17:44

【分支】:openEuler-22.03-LTS-SP1
【问题】:intel ice 驱动加载ddp package失败
【详情】:设备启动时,dmesg 信息会有ice 驱动加载ddppackage失败问题,导致ice驱动进入安全模式。
1、dmesg打印如下:
[ 10.819415] ice: Intel(R) Ethernet Connection E800 Series Linux Driver
[ 10.823810] ice: Copyright (c) 2018, Intel Corporation.
[ 10.892522] ice 0000:28:00.0: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
[ 10.896464] ice 0000:28:00.0: The DDP package file was not found or could not be read. Entering Safe Mode
[ 10.896465] ice 0000:28:00.0: Package download failed. Advanced features disabled - Device now in Safe Mode
[ 11.111528] ice 0000:28:00.1: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
[ 11.114966] ice 0000:28:00.1: The DDP package file was not found or could not be read. Entering Safe Mode
[ 11.118461] ice 0000:28:00.1: Package download failed. Advanced features disabled - Device now in Safe Mode
[ 11.377368] ice 0000:38:00.0: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
[ 11.380550] ice 0000:38:00.0: The DDP package file was not found or could not be read. Entering Safe Mode
[ 11.383772] ice 0000:38:00.0: Package download failed. Advanced features disabled - Device now in Safe Mode
[ 11.692524] ice 0000:38:00.1: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
[ 11.695849] ice 0000:38:00.1: The DDP package file was not found or could not be read. Entering Safe Mode
[ 11.699196] ice 0000:38:00.1: Package download failed. Advanced features disabled - Device now in Safe Mode
[ 11.909996] ice 0000:98:00.0: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
[ 11.913581] ice 0000:98:00.0: The DDP package file was not found or could not be read. Entering Safe Mode
[ 11.917229] ice 0000:98:00.0: Package download failed. Advanced features disabled - Device now in Safe Mode
[ 12.005864] ice 0000:98:00.1: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
[ 12.009641] ice 0000:98:00.1: The DDP package file was not found or could not be read. Entering Safe Mode
[ 12.017451] ice 0000:98:00.1: Package download failed. Advanced features disabled - Device now in Safe Mode

2、这个问题导致测试E810网卡带宽只能达到20%,严重影响性能

评论 (4)

ikernel_Mryao 创建了自定义 2年前
openeuler-ci-bot 添加了
 
sig/Computing
标签
2年前

该问题原因已定位清楚。
直接原因:
系统安装linux-firmware-20211027.noarch.rpm包时,没有在/lib/firmware/intel/ice/ddp/目录下
创建ice-1.3.26.0.pkg文件的软链接ice.pkg文件,所以找不到

根本原因:
linux-firmware.spec文件%instal内容有错误,没有采用make xxx install方式。
而centos没有该问题,是因为采用make xxx install方式,调用linux-firmware-20211027.tar.gz里边copy-firmware.sh脚本,
该脚本把WHENCE文件中所有“Link:xxx”字段 ,统统创建了软链接文件

这边思考了4个修改方案:
方案一:修改spec文件的install方式,修改为make DESTDIR=%{buildroot}/ FIRMWAREDIR=%{_lib_path} install。不修改下边拆分后的子包
影响:门禁检查接口变更,主包创建的软链接对应的源文件在子包里边,导致检查到broken软链接.而且如果主包和子包只安装一个,当前环境只有软链接,无对应的源文件.
方案二:修改spec文件的install部分,同时把门禁检查告警出来broken软链接对应的源文件所在的子包放回到主包里
影响:子包分类可能会有异议,删除了部分子包,比如cypress包
方案三:修改spec文件的install部分,直接参考centos,重新分析firmware包的分类方式
影响:直接参考centos,可能影响区分度
方案四:不修改spec文件的install部分,在主包装完(post)之后创建ice.pkg软链接,以及卸载之前(preun)删除ice.pkg软链接
影响:修改方式显得特殊处理。而且如果以后tar.gz包升级,这里也要同步修改。

建议社区采用方案三

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 ikernel_Mryao-ikernel-mryao swf504-swf504
1
https://gitee.com/src-openeuler/linux-firmware.git
git@gitee.com:src-openeuler/linux-firmware.git
src-openeuler
linux-firmware
linux-firmware

搜索帮助