Bug 1965867
| Summary: | Failed to add ice dpdk interface with ovs2.15 on rhel9 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Hekai Wang <hewang> | ||||
| Component: | openvswitch2.15 | Assignee: | David Marchand <dmarchan> | ||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Hekai Wang <hewang> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | FDP 21.D | CC: | charles.e.rostocil, ctrautma, dmarchan, hakhande, jhsiao, mhou, patryk.piotrowski, pragyansri.pathi, ralongi, vcandapp, venkateswara.rao | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-06-20 11:37:47 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 2104130 | ||||||
| Attachments: |
|
||||||
|
Description
Hekai Wang
2021-05-31 02:41:25 UTC
This system is probably missing the linux-firmware package. Could you double check? It means something has changed in the linux-firmware package. Looking at linux-firmware-20210315-119.el9.1.noarch in brew, I can see only xz'd firmware files. https://brewweb.engineering.redhat.com/brew/rpminfo?fileStart=1050&rpmID=9579816&fileOrder=name&buildrootOrder=-id&buildrootStart=0#filelist Can you confirm this is the case? # rpm -ql linux-firmware |grep ice.pkg I confirmed the linux-firmware pkg content with a RHEL 9 vm I installed. This change in linux-firmware (all firmwares are compressed) is a problem for DPDK as it has no support for loading compressed firmwares. As a temporary workaround, you can do: [root@rhel9 ~]# rm -f /lib/firmware/intel/ice/ddp/ice.pkg.xz [root@rhel9 ~]# xz -d /lib/firmware/intel/ice/ddp/ice-1.3.16.0.pkg.xz [root@rhel9 ~]# ln -s ice-1.3.16.0.pkg /lib/firmware/intel/ice/ddp/ice.pkg [root@rhel9 ~]# ls -lrt /lib/firmware/intel/ice/ddp/ total 648 -rw-r--r-- 1 root root 659716 Apr 16 11:18 ice-1.3.16.0.pkg lrwxrwxrwx 1 root root 16 May 31 14:07 ice.pkg -> ice-1.3.16.0.pkg With this the dpdk ice driver should initialise successfully, and you should be able to run the rest of your checks for this nic with dpdk. Posted a series upstream: http://patchwork.dpdk.org/project/dpdk/list/?series=17208&state=%2A&archive=both *** Bug 1975595 has been marked as a duplicate of this bug. *** *** Bug 2025392 has been marked as a duplicate of this bug. *** Handling compressed firmware is now fixed in DPDK 21.11 and later. This version of DPDK is used with OVS 2.17. For now, we won't support RHEL 9 in FDP. This feature won't be backported to previous versions of DPDK (like 20.11 used for ovs 2.15). Closing this bz fixed in NEXTRELEASE (which will be ovs 2.17). @ @dmarchan we used DPDK 22.11.2 (LTS) version on RHEL 9.1 and still facing the error with ice.pkg while executing test command with dpdk-testpmd and dpdk-l3fwd. Here are the logs. Issue is resolved after replacing ice.pkg.xz file with ice.pkg dpdk-testpmd -c 0xfffe -n 4 -- -i --portmask=0x1 --txq=1 --total-num-mbufs=2048 -cmdline-file=/root/testpmd_cmds.txt > /run_result.txt EAL: Detected CPU lcores: 48 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized EAL: Using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_ice (8086:1593) device: 0000:2a:00.2 (socket 0) ice_load_pkg(): ice_copy_and_init_hw failed: -6 ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode EAL: Releasing PCI mapped resource for 0000:2a:00.2 EAL: Calling pci_unmap_resource for 0000:2a:00.2 at 0x2101000000 EAL: Calling pci_unmap_resource for 0000:2a:00.2 at 0x2103000000 EAL: Requested device 0000:2a:00.2 cannot be used TELEMETRY: No legacy callbacks, legacy socket not created testpmd: No probed ethernet devices Fail: input txq (1) can't be greater than max_tx_queues (0) of port 0 EAL: Error - exiting with code: 1 Cause: txq 1 invalid - must be >= 0 && <= 0 dpdk-l3fwd -- -p 0x1 --config="(0,0,1)" EAL: Detected CPU lcores: 48 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized EAL: Using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_ice (8086:1593) device: 0000:2a:00.2 (socket 0) ice_load_pkg(): ice_copy_and_init_hw failed: -6 ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode EAL: Releasing PCI mapped resource for 0000:2a:00.2 EAL: Calling pci_unmap_resource for 0000:2a:00.2 at 0x2101000000 EAL: Calling pci_unmap_resource for 0000:2a:00.2 at 0x2103000000 EAL: Requested device 0000:2a:00.2 cannot be used TELEMETRY: No legacy callbacks, legacy socket not created Neither ACL, LPM, EM, or FIB selected, defaulting to LPM L3FWD: Missing 1 or more rule files, using default instead port 0 is not present on the board EAL: Error - exiting with code: 1 Cause: check_port_config failed Quickly looking at the code, -6 means that an invalid ddp file was found. I don't think it is related to file compression. Please check which version of linux-firmware you have, and if files have been modified. [root@rhel9 ~]# rpm -Vv linux-firmware | grep intel/ice ......... /usr/lib/firmware/intel/ice ......... /usr/lib/firmware/intel/ice/ddp ......... /usr/lib/firmware/intel/ice/ddp-comms ......... /usr/lib/firmware/intel/ice/ddp-comms/ice_comms-1.3.31.0.pkg.xz ......... /usr/lib/firmware/intel/ice/ddp-wireless_edge ......... /usr/lib/firmware/intel/ice/ddp-wireless_edge/ice_wireless_edge-1.3.7.0.pkg.xz ......... /usr/lib/firmware/intel/ice/ddp/ice-1.3.28.0.pkg.xz ......... /usr/lib/firmware/intel/ice/ddp/ice.pkg.xz we have ice-1.3.28 package under ddp. We downloaded ice-1.3.28 pkg from different source and copied to ddp folder in uncompressed format. Issue is not seen with that. Can you please try dpdk-testpmd on your setup? error code -6 with below files /usr/lib/firmware/intel/ice/ddp/ice-1.3.28.0.pkg.xz /usr/lib/firmware/intel/ice/ddp/ice.pkg.xz No issue seen with below files /usr/lib/firmware/intel/ice/ddp/ice-1.3.28.0.pkg /usr/lib/firmware/intel/ice/ddp/ice.pkg I did not mention, but yes, DPDK runs fine on my system. This seems an issue on your system and not related to this bugzilla. Please open a new bz with requested info. |