diff mbox series

PCI/VPD: Remove VPD quirk for QLogic 1077:2261

Message ID 20201219010443.6966-1-aeasi@marvell.com
State New
Headers show
Series PCI/VPD: Remove VPD quirk for QLogic 1077:2261 | expand

Commit Message

Arun Easi Dec. 19, 2020, 1:04 a.m. UTC
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(-)

Comments

Arun Easi Feb. 24, 2021, 11 p.m. UTC | #1
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
Bjorn Helgaas Feb. 25, 2021, 4:31 p.m. UTC | #2
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
Arun Easi Feb. 25, 2021, 7:32 p.m. UTC | #3
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
Bjorn Helgaas Feb. 25, 2021, 7:56 p.m. UTC | #4
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
Arun Easi Feb. 25, 2021, 8:15 p.m. UTC | #5
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
Bjorn Helgaas Feb. 25, 2021, 8:42 p.m. UTC | #6
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
diff mbox series

Patch

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.