* [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261
@ 2020-12-19 1:04 Arun Easi
2021-02-24 23:00 ` Arun Easi
0 siblings, 1 reply; 7+ messages in thread
From: Arun Easi @ 2020-12-19 1:04 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci, Girish Basrur, Quinn Tran
The VPD quirk was added by [0] to avoid a system NMI; this issue
has been long fixed in the HBA firmware. In addition, PCI also has
the logic to check the VPD size [1], so this quirk can be reverted
now. More details in the thread:
"VPD blacklist of Marvell QLogic 1077/2261" [2].
[0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722")
[1] 104daa71b396 ("PCI: Determine actual VPD size on first access")
[2] https://lore.kernel.org/linux-pci/alpine.LRH.2.21.9999.2012161641230.28924@irv1user01.caveonetworks.com/
Signed-off-by: Arun Easi <aeasi@marvell.com>
CC: stable@vger.kernel.org # v4.6+
---
drivers/pci/vpd.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pci/vpd.c b/drivers/pci/vpd.c
index 7915d10..bd54907 100644
--- a/drivers/pci/vpd.c
+++ b/drivers/pci/vpd.c
@@ -570,7 +570,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LSI_LOGIC, 0x005d, quirk_blacklist_vpd);
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LSI_LOGIC, 0x005f, quirk_blacklist_vpd);
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATTANSIC, PCI_ANY_ID,
quirk_blacklist_vpd);
-DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_QLOGIC, 0x2261, quirk_blacklist_vpd);
/*
* The Amazon Annapurna Labs 0x0031 device id is reused for other non Root Port
* device types, so the quirk is registered for the PCI_CLASS_BRIDGE_PCI class.
--
2.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 2020-12-19 1:04 [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 Arun Easi @ 2021-02-24 23:00 ` Arun Easi 2021-02-25 16:31 ` Bjorn Helgaas 0 siblings, 1 reply; 7+ messages in thread From: Arun Easi @ 2021-02-24 23:00 UTC (permalink / raw) To: Bjorn Helgaas; +Cc: linux-pci, Girish Basrur, Quinn Tran Hi Bjorn, On Fri, 18 Dec 2020, 5:04pm, Arun Easi wrote: > The VPD quirk was added by [0] to avoid a system NMI; this issue > has been long fixed in the HBA firmware. In addition, PCI also has > the logic to check the VPD size [1], so this quirk can be reverted > now. More details in the thread: > "VPD blacklist of Marvell QLogic 1077/2261" [2]. > > [0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722") > [1] 104daa71b396 ("PCI: Determine actual VPD size on first access") > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_linux-2Dpci_alpine.LRH.2.21.9999.2012161641230.28924-40irv1user01.caveonetworks.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=P-q_Qkt75qFy33SvdD2nAxAyN87eO1d-mFO-lqNOomw&m=Bw8qGbVsETqSibSD8JVMAxZh8BCn1cHuskKjbarfuT8&s=IMvYnIBgaHJkzF2-GgIrGymbRguV287NVLG1_KcP_po&e= > > Signed-off-by: Arun Easi <aeasi@marvell.com> > CC: stable@vger.kernel.org # v4.6+ > --- Wondering if there is something needed from my side. I could not find this in the v5.12 list. Regards, -Arun ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 2021-02-24 23:00 ` Arun Easi @ 2021-02-25 16:31 ` Bjorn Helgaas 2021-02-25 19:32 ` [EXT] " Arun Easi 0 siblings, 1 reply; 7+ messages in thread From: Bjorn Helgaas @ 2021-02-25 16:31 UTC (permalink / raw) To: Arun Easi; +Cc: Bjorn Helgaas, linux-pci, Girish Basrur, Quinn Tran On Wed, Feb 24, 2021 at 03:00:18PM -0800, Arun Easi wrote: > Hi Bjorn, > > On Fri, 18 Dec 2020, 5:04pm, Arun Easi wrote: > > > The VPD quirk was added by [0] to avoid a system NMI; this issue > > has been long fixed in the HBA firmware. In addition, PCI also has > > the logic to check the VPD size [1], so this quirk can be reverted > > now. More details in the thread: > > "VPD blacklist of Marvell QLogic 1077/2261" [2]. > > > > [0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722") > > [1] 104daa71b396 ("PCI: Determine actual VPD size on first access") > > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_linux-2Dpci_alpine.LRH.2.21.9999.2012161641230.28924-40irv1user01.caveonetworks.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=P-q_Qkt75qFy33SvdD2nAxAyN87eO1d-mFO-lqNOomw&m=Bw8qGbVsETqSibSD8JVMAxZh8BCn1cHuskKjbarfuT8&s=IMvYnIBgaHJkzF2-GgIrGymbRguV287NVLG1_KcP_po&e= > > > > Signed-off-by: Arun Easi <aeasi@marvell.com> > > CC: stable@vger.kernel.org # v4.6+ > > --- > > Wondering if there is something needed from my side. I could not find this > in the v5.12 list. Sorry, I blew it on this one (and other VPD patches from Heiner). It's too late for v5.12, but I'll try again for v5.13. Bjorn ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [EXT] Re: [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 2021-02-25 16:31 ` Bjorn Helgaas @ 2021-02-25 19:32 ` Arun Easi 2021-02-25 19:56 ` Bjorn Helgaas 0 siblings, 1 reply; 7+ messages in thread From: Arun Easi @ 2021-02-25 19:32 UTC (permalink / raw) To: Bjorn Helgaas; +Cc: Bjorn Helgaas, linux-pci, Girish Basrur, Quinn Tran On Thu, 25 Feb 2021, 8:31am, Bjorn Helgaas wrote: > On Wed, Feb 24, 2021 at 03:00:18PM -0800, Arun Easi wrote: > > Hi Bjorn, > > > > On Fri, 18 Dec 2020, 5:04pm, Arun Easi wrote: > > > > > The VPD quirk was added by [0] to avoid a system NMI; this issue > > > has been long fixed in the HBA firmware. In addition, PCI also has > > > the logic to check the VPD size [1], so this quirk can be reverted > > > now. More details in the thread: > > > "VPD blacklist of Marvell QLogic 1077/2261" [2]. > > > > > > [0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722") > > > [1] 104daa71b396 ("PCI: Determine actual VPD size on first access") > > > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_linux-2Dpci_alpine.LRH.2.21.9999.2012161641230.28924-40irv1user01.caveonetworks.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=P-q_Qkt75qFy33SvdD2nAxAyN87eO1d-mFO-lqNOomw&m=Bw8qGbVsETqSibSD8JVMAxZh8BCn1cHuskKjbarfuT8&s=IMvYnIBgaHJkzF2-GgIrGymbRguV287NVLG1_KcP_po&e= > > > > > > Signed-off-by: Arun Easi <aeasi@marvell.com> > > > CC: stable@vger.kernel.org # v4.6+ > > > --- > > > > Wondering if there is something needed from my side. I could not find this > > in the v5.12 list. > > Sorry, I blew it on this one (and other VPD patches from Heiner). > It's too late for v5.12, but I'll try again for v5.13. > No worries. As these are mostly one-liners and straight forward changes, posting during RC is not an option for 5.12 inclusion? Regards, -Arun ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [EXT] Re: [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 2021-02-25 19:32 ` [EXT] " Arun Easi @ 2021-02-25 19:56 ` Bjorn Helgaas 2021-02-25 20:15 ` Arun Easi 0 siblings, 1 reply; 7+ messages in thread From: Bjorn Helgaas @ 2021-02-25 19:56 UTC (permalink / raw) To: Arun Easi; +Cc: Bjorn Helgaas, linux-pci, Girish Basrur, Quinn Tran On Thu, Feb 25, 2021 at 11:32:28AM -0800, Arun Easi wrote: > On Thu, 25 Feb 2021, 8:31am, Bjorn Helgaas wrote: > > On Wed, Feb 24, 2021 at 03:00:18PM -0800, Arun Easi wrote: > > > On Fri, 18 Dec 2020, 5:04pm, Arun Easi wrote: > > > > > > > The VPD quirk was added by [0] to avoid a system NMI; this issue > > > > has been long fixed in the HBA firmware. In addition, PCI also has > > > > the logic to check the VPD size [1], so this quirk can be reverted > > > > now. More details in the thread: > > > > "VPD blacklist of Marvell QLogic 1077/2261" [2]. > > > > > > > > [0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722") > > > > [1] 104daa71b396 ("PCI: Determine actual VPD size on first access") > > > > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_linux-2Dpci_alpine.LRH.2.21.9999.2012161641230.28924-40irv1user01.caveonetworks.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=P-q_Qkt75qFy33SvdD2nAxAyN87eO1d-mFO-lqNOomw&m=Bw8qGbVsETqSibSD8JVMAxZh8BCn1cHuskKjbarfuT8&s=IMvYnIBgaHJkzF2-GgIrGymbRguV287NVLG1_KcP_po&e= > > > > > > > > Signed-off-by: Arun Easi <aeasi@marvell.com> > > > > CC: stable@vger.kernel.org # v4.6+ > > > > --- > > > > > > Wondering if there is something needed from my side. I could not find this > > > in the v5.12 list. > > > > Sorry, I blew it on this one (and other VPD patches from Heiner). > > It's too late for v5.12, but I'll try again for v5.13. > > > > No worries. As these are mostly one-liners and straight forward changes, > posting during RC is not an option for 5.12 inclusion? Not unless it's critical or it fixes a bug we introduced during the merge window. This doesn't seem like either, but please clarify if it is. From the commit log, it looks like this is just a cleanup with no benefit to the user. If that's the case, there's no reason to backport to stable either. Bjorn ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [EXT] Re: [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 2021-02-25 19:56 ` Bjorn Helgaas @ 2021-02-25 20:15 ` Arun Easi 2021-02-25 20:42 ` Bjorn Helgaas 0 siblings, 1 reply; 7+ messages in thread From: Arun Easi @ 2021-02-25 20:15 UTC (permalink / raw) To: Bjorn Helgaas; +Cc: Bjorn Helgaas, linux-pci, Girish Basrur, Quinn Tran On Thu, 25 Feb 2021, 11:56am, Bjorn Helgaas wrote: > On Thu, Feb 25, 2021 at 11:32:28AM -0800, Arun Easi wrote: > > On Thu, 25 Feb 2021, 8:31am, Bjorn Helgaas wrote: > > > On Wed, Feb 24, 2021 at 03:00:18PM -0800, Arun Easi wrote: > > > > On Fri, 18 Dec 2020, 5:04pm, Arun Easi wrote: > > > > > > > > > The VPD quirk was added by [0] to avoid a system NMI; this issue > > > > > has been long fixed in the HBA firmware. In addition, PCI also has > > > > > the logic to check the VPD size [1], so this quirk can be reverted > > > > > now. More details in the thread: > > > > > "VPD blacklist of Marvell QLogic 1077/2261" [2]. > > > > > > > > > > [0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722") > > > > > [1] 104daa71b396 ("PCI: Determine actual VPD size on first access") > > > > > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_linux-2Dpci_alpine.LRH.2.21.9999.2012161641230.28924-40irv1user01.caveonetworks.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=P-q_Qkt75qFy33SvdD2nAxAyN87eO1d-mFO-lqNOomw&m=Bw8qGbVsETqSibSD8JVMAxZh8BCn1cHuskKjbarfuT8&s=IMvYnIBgaHJkzF2-GgIrGymbRguV287NVLG1_KcP_po&e= > > > > > > > > > > Signed-off-by: Arun Easi <aeasi@marvell.com> > > > > > CC: stable@vger.kernel.org # v4.6+ > > > > > --- > > > > > > > > Wondering if there is something needed from my side. I could not find this > > > > in the v5.12 list. > > > > > > Sorry, I blew it on this one (and other VPD patches from Heiner). > > > It's too late for v5.12, but I'll try again for v5.13. > > > > > > > No worries. As these are mostly one-liners and straight forward changes, > > posting during RC is not an option for 5.12 inclusion? > > Not unless it's critical or it fixes a bug we introduced during the > merge window. This doesn't seem like either, but please clarify if it > is. > > From the commit log, it looks like this is just a cleanup with no > benefit to the user. If that's the case, there's no reason to > backport to stable either. > Actually, this fixes the issue that block users from seeing VPD data in "lspci -vvv" listing. My bad in not stating that well in the commit log. In retrospect, this was mentioned only in a prior e-mail (link[2] above -- sorry about our exchange servers mangling the URL and redirecting it via proofpoint). I can re-send the patch to correctly reflect it as a fix. Something like: Subject: "PCI/VPD: Fix blocking of VPD data in lspci for QLogic 1077:2261" What do you think? Regards, -Arun ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [EXT] Re: [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 2021-02-25 20:15 ` Arun Easi @ 2021-02-25 20:42 ` Bjorn Helgaas 0 siblings, 0 replies; 7+ messages in thread From: Bjorn Helgaas @ 2021-02-25 20:42 UTC (permalink / raw) To: Arun Easi; +Cc: Bjorn Helgaas, linux-pci, Girish Basrur, Quinn Tran On Thu, Feb 25, 2021 at 12:15:33PM -0800, Arun Easi wrote: > On Thu, 25 Feb 2021, 11:56am, Bjorn Helgaas wrote: > > On Thu, Feb 25, 2021 at 11:32:28AM -0800, Arun Easi wrote: > > > On Thu, 25 Feb 2021, 8:31am, Bjorn Helgaas wrote: > > > > On Wed, Feb 24, 2021 at 03:00:18PM -0800, Arun Easi wrote: > > > > > On Fri, 18 Dec 2020, 5:04pm, Arun Easi wrote: > > > > > > > > > > > The VPD quirk was added by [0] to avoid a system NMI; this issue > > > > > > has been long fixed in the HBA firmware. In addition, PCI also has > > > > > > the logic to check the VPD size [1], so this quirk can be reverted > > > > > > now. More details in the thread: > > > > > > "VPD blacklist of Marvell QLogic 1077/2261" [2]. > > > > > > > > > > > > [0] 0d5370d1d852 ("PCI: Prevent VPD access for QLogic ISP2722") > > > > > > [1] 104daa71b396 ("PCI: Determine actual VPD size on first access") > > > > > > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_linux-2Dpci_alpine.LRH.2.21.9999.2012161641230.28924-40irv1user01.caveonetworks.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=P-q_Qkt75qFy33SvdD2nAxAyN87eO1d-mFO-lqNOomw&m=Bw8qGbVsETqSibSD8JVMAxZh8BCn1cHuskKjbarfuT8&s=IMvYnIBgaHJkzF2-GgIrGymbRguV287NVLG1_KcP_po&e= > > > > > > > > > > > > Signed-off-by: Arun Easi <aeasi@marvell.com> > > > > > > CC: stable@vger.kernel.org # v4.6+ > > > > > > --- > > > > > > > > > > Wondering if there is something needed from my side. I could not find this > > > > > in the v5.12 list. > > > > > > > > Sorry, I blew it on this one (and other VPD patches from Heiner). > > > > It's too late for v5.12, but I'll try again for v5.13. > > > > > > > > > > No worries. As these are mostly one-liners and straight forward changes, > > > posting during RC is not an option for 5.12 inclusion? > > > > Not unless it's critical or it fixes a bug we introduced during the > > merge window. This doesn't seem like either, but please clarify if it > > is. > > > > From the commit log, it looks like this is just a cleanup with no > > benefit to the user. If that's the case, there's no reason to > > backport to stable either. > > Actually, this fixes the issue that block users from seeing VPD data in > "lspci -vvv" listing. My bad in not stating that well in the commit log. > In retrospect, this was mentioned only in a prior e-mail (link[2] above -- > sorry about our exchange servers mangling the URL and redirecting it via > proofpoint). > > I can re-send the patch to correctly reflect it as a fix. Something like: > > Subject: "PCI/VPD: Fix blocking of VPD data in lspci for QLogic 1077:2261" Yes, that would be useful :) The commit log needs to explain why the patch should be merged. Bjorn ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-02-25 20:43 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-12-19 1:04 [PATCH] PCI/VPD: Remove VPD quirk for QLogic 1077:2261 Arun Easi 2021-02-24 23:00 ` Arun Easi 2021-02-25 16:31 ` Bjorn Helgaas 2021-02-25 19:32 ` [EXT] " Arun Easi 2021-02-25 19:56 ` Bjorn Helgaas 2021-02-25 20:15 ` Arun Easi 2021-02-25 20:42 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox