Skip to contentSkip to conversation

PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags

PATCH Applied Sinan Kaya 3 participants 10 messages Apr 4, 2018 – Apr 11, 2018

Subsystems (2)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

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.

Fixes 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported")
---
 drivers/pci/quirks.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/pci/quirks.c +4 -0
index 8b14bd3..f012742 100644
@@ -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
#1 lore raw
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 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")

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
index 8b14bd3..f012742 100644
@@ -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
#2 lore raw
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")

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
index 8b14bd3..f012742 100644
@@ -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
author
#3 lore raw
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")

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.
#4 lore raw
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")
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 broken
CC stable at vger.kernel.org # v4.11

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

author
#5 lore raw

+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")
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 broken
CC stable at vger.kernel.org # v4.11

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

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.
#6 lore raw
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")
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 broken
CC stable at vger.kernel.org # v4.11

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

Bjorn is correct here, why are you dragging me into this?

greg k-h

author
#7 lore raw
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 broken
CC stable at vger.kernel.org # v4.11

I'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

- 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

Bjorn 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.
#8 lore raw
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 broken
CC stable at vger.kernel.org # v4.11

I'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

- 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

Bjorn 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

author
#9 lore raw
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.