net: intel: fix PCI device ID conflict between i40e and ipw2200
Subsystems (5)
PATCH 1/1 net: intel: fix PCI device ID conflict between i40e and ipw2200
The ID 8086:104f is matched by both i40e and ipw2200. The same device ID should not be in more than one driver, because in that case, which driver is used is unpredictable. Fix this by taking advantage of the fact that i40e devices use PCI_CLASS_NETWORK_ETHERNET and ipw2200 devices use PCI_CLASS_NETWORK_OTHER to differentiate the devices.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 8 +++++++- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +7 -1
@@ -75,7 +75,13 @@ static const struct pci_device_id i40e_pci_tbl[] = { {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_BASE_T4), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_BASE_T_BC), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_SFP), 0}, - {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_B), 0}, +/* +* This ID conflicts with ipw2200, but the devices can be differentiated +* because i40e devices use PCI_CLASS_NETWORK_ETHERNET and ipw2200 +* devices use PCI_CLASS_NETWORK_OTHER. +*/ + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, I40E_DEV_ID_10G_B), + PCI_CLASS_NETWORK_ETHERNET << 8, 0xffff00, 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_KX_X722), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_QSFP_X722), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_SFP_X722), 0},
drivers/net/wireless/intel/ipw2x00/ipw2200.c +7 -1
@@ -11387,7 +11387,13 @@ static const struct pci_device_id card_ids[] = { {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2754, 0, 0, 0}, {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2761, 0, 0, 0}, {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2762, 0, 0, 0}, - {PCI_VDEVICE(INTEL, 0x104f), 0}, +/* +* This ID conflicts with i40e, but the devices can be differentiated +* because i40e devices use PCI_CLASS_NETWORK_ETHERNET and ipw2200 +* devices use PCI_CLASS_NETWORK_OTHER. +*/ + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x104f), + PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, 0}, {PCI_VDEVICE(INTEL, 0x4220), 0}, /* BG */ {PCI_VDEVICE(INTEL, 0x4221), 0}, /* BG */ {PCI_VDEVICE(INTEL, 0x4223), 0}, /* ABG */
Signature · 1 line
2.43.0
Quoted 18 lines
-----Original Message-----
From: Ethan Nelson-Moore <[email protected]>
Sent: Thursday, February 5, 2026 8:55 AM
To: [email protected]; [email protected]
Cc: Johannes Berg <[email protected]>; Ethan Nelson-Moore <[email protected]>; [email protected]; Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Stanislav Yakovlev <[email protected]>; Alice Michael <[email protected]>; Loktionov, Aleksandr <[email protected]>
Subject: [PATCH net-next] net: intel: fix PCI device ID conflict between i40e and ipw2200
Quoted 6 lines
The ID 8086:104f is matched by both i40e and ipw2200. The same device ID should not be in more than one driver, because in that case, which driver is used is unpredictable. Fix this by taking advantage of the fact that i40e devices use
PCI_CLASS_NETWORK_ETHERNETand ipw2200 devices usePCI_CLASS_NETWORK_OTHERto differentiate the devices.
Commit message could be more detailed.
- Why the PCI ID is being reused (if known) Is this actually a reuse after EOL, or is there a misunderstanding? The commit message hand-waves this critical detail.
- Whether this is documented in hardware datasheets
- If there are bug reports of the conflict in the wild
Quoted 1 line
Fixes 2e45d3f4677a ("i40e: Add support for X710 B/P & SFP+ cards")
If it's quite critical fix why not to send it to [PATCH net] ?
Quoted 55 lines
Signed-off-by Ethan Nelson-Moore <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_main.c | 8 +++++++- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/i40e/i40e_main.c +2
-1@@ -75,7 +75,13 @@ static const struct pci_device_id i40e_pci_tbl[] = { {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_BASE_T4), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_BASE_T_BC), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_SFP), 0}, - {PCI_VDEVICE(INTEL, I40E_DEV_ID_10G_B), 0}, +/* +* This ID conflicts with ipw2200, but the devices can be differentiated
drivers/net/ethernet/intel/i40e/i40e_main.c +1
-0+* because i40e devices use PCI_CLASS_NETWORK_ETHERNET and ipw2200
drivers/net/ethernet/intel/i40e/i40e_main.c +4
-0+* devices use PCI_CLASS_NETWORK_OTHER. +*/ + {PCI_DEVICE (PCI_VENDOR_ID_INTEL ,I40E_DEV_ID_10G_B ), + PCI_CLASS_NETWORK_ETHERNET << 8, 0xffff00, 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_KX_X722), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_QSFP_X722), 0}, {PCI_VDEVICE(INTEL, I40E_DEV_ID_SFP_X722), 0}, diff --git
a/drivers/net/wireless/intel/ipw2x00/ipw2200.cb/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index09035a77e775..b0e769da9415100644drivers/net/wireless/intel/ipw2x00/ipw2200.c +2
-1@@ -11387,7 +11387,13 @@ static const struct pci_device_id card_ids[] = { {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2754, 0, 0, 0}, {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2761, 0, 0, 0}, {PCI_VENDOR_ID_INTEL, 0x1043, 0x8086, 0x2762, 0, 0, 0}, - {PCI_VDEVICE(INTEL, 0x104f), 0}, +/* +* This ID conflicts with i40e, but the devices can be differentiated
drivers/net/wireless/intel/ipw2x00/ipw2200.c +1
-0+* because i40e devices use PCI_CLASS_NETWORK_ETHERNET and ipw2200
drivers/net/wireless/intel/ipw2x00/ipw2200.c +4
-1+* devices use PCI_CLASS_NETWORK_OTHER. +*/ + {PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x104f ), + PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, 0}, {PCI_VDEVICE(INTEL, 0x4220), 0}, /* BG */ {PCI_VDEVICE(INTEL, 0x4221), 0}, /* BG */ {PCI_VDEVICE(INTEL, 0x4223), 0}, /* ABG */ --2.43.0
Quoted 5 lines · Ethan Nelson-Moore
The ID 8086:104f is matched by both i40e and ipw2200. The same device ID should not be in more than one driver, because in that case, which driver is used is unpredictable. Fix this by taking advantage of the fact that i40e devices use
PCI_CLASS_NETWORK_ETHERNETand ipw2200 devices usePCI_CLASS_NETWORK_OTHERto differentiate the devices.
Right, good solution. How did you figure out that ipw2200 uses OTHER? I'd thought about this but was afraid it'd also just use ETHERNET.
(FWIW, I've found the database internally, but not who maintains it nor any historic information in it ... still digging I guess, if only to avoid this happening again in the future)
johannes
Quoted 3 lines · Aleksandr
Quoted 1 line
Commit message could be more detailed.
- Why the PCI ID is being reused (if known) Is this actually a reuse after EOL, or is there a misunderstanding? The commit message hand-waves this critical detail.
Well, if you and I can't figure this out internally to Intel, I doubt anyone _else_ can. Sure, ipw2200 is EOL for *long*, but Intel still shouldn't have reused the IDs even if the old ones got carried forward from PCI to PCIe.
Quoted 1 line
- Whether this is documented in hardware datasheets
Good luck finding any documentation on ipw2200 these days. Those devices shipped 20+ years ago.
Quoted 1 line
- If there are bug reports of the conflict in the wild
Does it matter? If you have a system with either of those, you'll get lucky if it works, and get a mess if it doesn't. ipw2200 driver will probably bind to just about any device with the right IDs since it doesn't do much in probe().
johannes
Hi, Alexandr,
Quoted 4 lines · Aleksandr
Commit message could be more detailed.
- Why the PCI ID is being reused (if known) Is this actually a reuse after EOL, or is there a misunderstanding? The commit message hand-waves this critical detail.
- Whether this is documented in hardware datasheets
- If there are bug reports of the conflict in the wild
I don't know any of this information. I found this conflict via a script I was motivated to write by noticing an ID conflict between r8169 and 8139too.
Quoted 1 line
If it's quite critical fix why not to send it to [PATCH net] ?
I used that prefix because the patch is against net-next. It will make it into stable versions regardless.
Ethan
Hi, Johannes,
Quoted 2 lines · Johannes Berg
Right, good solution. How did you figure out that ipw2200 uses OTHER? I'd thought about this but was afraid it'd also just use ETHERNET.
I used linux-hardware.org, which is a database of user-contributed hardware probes. It didn't have any entries for this particular device ID (which implies the devices affected are rare in the wild and might explain why no one noticed this before), but I looked at other ipw2200 and i40e IDs - it shows the class code if you click on the individual probe ID.
Quoted 3 lines
(FWIW, I've found the database internally, but not who maintains it nor any historic information in it ... still digging I guess, if only to avoid this happening again in the future)
Thanks for looking into this. Have a nice day.
Ethan
Quoted 31 lines
-----Original Message-----
From: Ethan Nelson-Moore <[email protected]>
Sent: Thursday, February 5, 2026 9:18 AM
To: Loktionov, Aleksandr <[email protected]>
Cc: [email protected]; [email protected]; Johannes Berg <[email protected]>; [email protected]; Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Stanislav Yakovlev <[email protected]>; Alice Michael <[email protected]>
Subject: Re: [PATCH net-next] net: intel: fix PCI device ID conflict between i40e and ipw2200Hi, Alexandr,
Quoted 2 lines · Aleksandr
Commit message could be more detailed.
- Why the PCI ID is being reused (if known) Is this actually a reuseafter EOL, or is there a misunderstanding? The commit message hand- waves this critical detail.
Quoted 2 lines
- Whether this is documented in hardware datasheets
- If there are bug reports of the conflict in the wildI don't know any of this information. I found this conflict via a script I was motivated to write by noticing an ID conflict between r8169 and 8139too.
Quoted 5 lines
Quoted 1 line
If it's quite critical fix why not to send it to [PATCH net] ?
I used that prefix because the patch is against net-next. It will make it into stable versions regardless.
Ethan
I thought 'fix' patches must go to net first, isn't it?