PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags
Subsystems (2)
PATCH 1/1 PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
--- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/pci/quirks.c +4 -0
@@ -4813,9 +4813,13 @@ static void quirk_no_ext_tags(struct pci_dev *pdev)pci_walk_bus (bridge->bus, pci_configure_extended_tags,NULL ); } +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0132 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0140 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0141 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0142 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0144 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0420 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0422 , quirk_no_ext_tags);#ifdef CONFIG_PCI_ATS /*
Signature · 1 line
2.7.4
Bjorn Helgaas
AppliedQuoted 9 lines · Sinan Kaya
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
Quoted 6 lines
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")Signed-off-by Sinan Kaya <[email protected]>
Applied to pci/enumeration for v4.18, thanks!
Quoted 30 lines
--- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/pci/quirks.c +4
-0@@ -4813,9 +4813,13 @@ static void quirk_no_ext_tags(struct pci_dev *pdev)pci_walk_bus (bridge->bus, pci_configure_extended_tags,NULL ); } +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0132 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0140 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0141 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0142 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0144 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0420 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0422 , quirk_no_ext_tags);#ifdef CONFIG_PCI_ATS /* Signature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 10 lines · Bjorn Helgaas
Quoted 9 lines · Sinan Kaya
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
Quoted 8 lines
Quoted 6 lines
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")Signed-off-by Sinan Kaya <[email protected]>Applied to pci/enumeration for v4.18, thanks!
Actually, this is a really annoying issue and I think the fix is appropriate for v4.17, so I moved it to my for-linus branch.
Quoted 30 lines
Quoted 30 lines
--- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/pci/quirks.c +4
-0@@ -4813,9 +4813,13 @@ static void quirk_no_ext_tags(struct pci_dev *pdev)pci_walk_bus (bridge->bus, pci_configure_extended_tags,NULL ); } +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0132 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0140 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0141 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0142 , quirk_no_ext_tags);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0144 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0420 , quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_SERVERWORKS ,0x0422 , quirk_no_ext_tags);#ifdef CONFIG_PCI_ATS /* Signature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 14 lines · Bjorn Helgaas
Quoted 13 lines · Bjorn Helgaas
Quoted 12 lines · Sinan Kaya
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")Signed-off-by Sinan Kaya <[email protected]>Applied to pci/enumeration for v4.18, thanks!
Actually, this is a really annoying issue and I think the fix is appropriate for v4.17, so I moved it to my for-linus branch.
I agree. It causes boot issues on some AMD Opteron machines. It should probably be back-ported too.
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 18 lines · Sinan Kaya
Quoted 17 lines · Bjorn Helgaas
Quoted 16 lines · Bjorn Helgaas
Quoted 15 lines · Sinan Kaya
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")Signed-off-by Sinan Kaya <[email protected]>
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Applied to pci/enumeration for v4.18, thanks!
Actually, this is a really annoying issue and I think the fix is appropriate for v4.17, so I moved it to my for-linus branch.
I agree. It causes boot issues on some AMD Opteron machines. It should probably be back-ported too.
We started enabling extended tags with 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported"), which appeared in v4.11.
So I added these stable tags:
I'm not sure I'm using the stable request correctly, but my intent is:
- 62ce94a7a5a5 appeared in v4.14, so cherry-pick 62ce94a7a5a5 to
v4.11 through v4.13
- cherry-pick *this* patch on top of 62ce94a7a5a5 to v4.11 and later
+GregKH
Quoted 41 lines · Bjorn Helgaas
Quoted 18 lines · Sinan Kaya
Quoted 17 lines · Bjorn Helgaas
Quoted 16 lines · Bjorn Helgaas
Quoted 15 lines · Sinan Kaya
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")Signed-off-by Sinan Kaya <[email protected]>Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Applied to pci/enumeration for v4.18, thanks!
Actually, this is a really annoying issue and I think the fix is appropriate for v4.17, so I moved it to my for-linus branch.
I agree. It causes boot issues on some AMD Opteron machines. It should probably be back-ported too.
We started enabling extended tags with
60db3a4d8cc9("PCI: Enable PCIe Extended Tags if supported"), which appeared in v4.11.So I added these stable tags:
CC stable at vger.kernel.org # v4.11: 62ce94a7a5a5 PCI: Mark Broadcom HT2100 Root Port Extended Tags as brokenCC stable at vger.kernel.org # v4.11I'm not sure I'm using the stable request correctly, but my intent is:
-
62ce94a7a5a5appeared in v4.14, so cherry-pick62ce94a7a5a5tov4.11 through v4.13- cherry-pick *this* patch on top of
62ce94a7a5a5to v4.11 and later
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 1 line · Sinan Kaya
+GregKH
Why?
Quoted 33 lines · Bjorn Helgaas
Quoted 32 lines · Sinan Kaya
Quoted 18 lines · Bjorn Helgaas
Quoted 17 lines · Bjorn Helgaas
Quoted 16 lines · Sinan Kaya
Quoted 15 lines
Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable.
Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible.
The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken.
Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")Signed-off-by Sinan Kaya <[email protected]>Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Applied to pci/enumeration for v4.18, thanks!
Actually, this is a really annoying issue and I think the fix is appropriate for v4.17, so I moved it to my for-linus branch.
I agree. It causes boot issues on some AMD Opteron machines. It should probably be back-ported too.
We started enabling extended tags with
60db3a4d8cc9("PCI: Enable PCIe Extended Tags if supported"), which appeared in v4.11.So I added these stable tags:
Quoted 8 lines
Quoted 8 lines
CC stable at vger.kernel.org # v4.11: 62ce94a7a5a5 PCI: Mark Broadcom HT2100 Root Port Extended Tags as brokenCC stable at vger.kernel.org # v4.11I'm not sure I'm using the stable request correctly, but my intent is:
-
62ce94a7a5a5appeared in v4.14, so cherry-pick62ce94a7a5a5tov4.11 through v4.13- cherry-pick *this* patch on top of
62ce94a7a5a5to v4.11 and later
Bjorn is correct here, why are you dragging me into this?
greg k-h
Quoted 6 lines · Greg Kroah-Hartman
Quoted 6 lines
Quoted 6 lines
So I added these stable tags:
CC stable at vger.kernel.org # v4.11: 62ce94a7a5a5 PCI: Mark Broadcom HT2100 Root Port Extended Tags as brokenCC stable at vger.kernel.org # v4.11I'm not sure I'm using the stable request correctly, but my intent is:
Asking if we placed the tags correctly. Sounds like we did.
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
-
62ce94a7a5a5appeared in v4.14, so cherry-pick62ce94a7a5a5tov4.11 through v4.13- cherry-pick *this* patch on top of
62ce94a7a5a5to v4.11 and laterBjorn is correct here, why are you dragging me into this?
Thanks
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 11 lines · Sinan Kaya
Quoted 6 lines · Greg Kroah-Hartman
Quoted 6 lines
Quoted 6 lines
So I added these stable tags:
CC stable at vger.kernel.org # v4.11: 62ce94a7a5a5 PCI: Mark Broadcom HT2100 Root Port Extended Tags as brokenCC stable at vger.kernel.org # v4.11I'm not sure I'm using the stable request correctly, but my intent is:
Asking if we placed the tags correctly. Sounds like we did.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
-
62ce94a7a5a5appeared in v4.14, so cherry-pick62ce94a7a5a5tov4.11 through v4.13- cherry-pick *this* patch on top of
62ce94a7a5a5to v4.11 and laterBjorn is correct here, why are you dragging me into this?
Thanks
Next time explicitly ask the question, don't expect someone to rummage through an email to determine what you are thinking. You are being lazy by just adding someone else to an email thread like this, be considerate and take the time to explain yourself when asking someone else to do work.
greg k-h
Quoted 5 lines · Greg Kroah-Hartman
Next time explicitly ask the question, don't expect someone to rummage through an email to determine what you are thinking. You are being lazy by just adding someone else to an email thread like this, be considerate and take the time to explain yourself when asking someone else to do work.
Sorry, I should have stripped irrelevant pieces like you said.
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.