linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH] PCI: disable nv_msi_ht_cap_quirk_leaf quirk on arm/arm64
           [not found] <20180730094213.11973-1-kwizart@gmail.com>
           [not found] ` <CABr+WT=ANAs4DgvbfcgQ2wnX5yhT9HTgLJh1LE8Q09fyCa0mBg@mail.gmail.com>
    @ 2019-04-15  9:25 ` Nicolas Chauvet
      2019-04-15 13:48   ` Bjorn Helgaas
      1 sibling, 1 reply; 9+ messages in thread
    From: Nicolas Chauvet @ 2019-04-15  9:25 UTC (permalink / raw)
      To: Thierry Reding, Jonathan Hunter, Manikanta Maddireddy,
    	Bjorn Helgaas, Lorenzo Pieralisi
      Cc: linux-tegra, linux-pci, Nicolas Chauvet
    
    This patch disable the use of nv_msi_ht_cap_quirk_leaf quirk on arm and
    arm64 NVIDIA devices such as Tegra
    
    This fixes the following output:
    "pci 0000:00:01.0: nv_msi_ht_cap_quirk didn't locate host bridge"
    as experienced on a Trimslice device with PCI host bridge enabled
    
    v3: exclude the quirk for arm and arm64 instead of only for x86
    
    v2: use __maybe_unused to avoid a warning on nv_msi_ht_cap_quirk_leaf
    
    Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
    Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
    Acked-by: Thierry Reding <treding@nvidia.com>
    ---
     drivers/pci/quirks.c | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
    index a59ad09ce911..1ac65f09d7ee 100644
    --- a/drivers/pci/quirks.c
    +++ b/drivers/pci/quirks.c
    @@ -2811,12 +2811,15 @@ static void nv_msi_ht_cap_quirk_all(struct pci_dev *dev)
     DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_ANY_ID, nv_msi_ht_cap_quirk_all);
     DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AL, PCI_ANY_ID, nv_msi_ht_cap_quirk_all);
     
    -static void nv_msi_ht_cap_quirk_leaf(struct pci_dev *dev)
    +static void __maybe_unused nv_msi_ht_cap_quirk_leaf(struct pci_dev *dev)
     {
     	return __nv_msi_ht_cap_quirk(dev, 0);
     }
    +/* HyperTransport is not relevant on theses arches */
    +#if !IS_ENABLED(CONFIG_ARM) && !IS_ENABLED(CONFIG_ARM64)
     DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, nv_msi_ht_cap_quirk_leaf);
     DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, nv_msi_ht_cap_quirk_leaf);
    +#endif
     
     static void quirk_msi_intx_disable_bug(struct pci_dev *dev)
     {
    -- 
    2.17.2
    
    
    ^ permalink raw reply related	[flat|nested] 9+ messages in thread

  • end of thread, other threads:[~2019-04-23 11:02 UTC | newest]
    
    Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <20180730094213.11973-1-kwizart@gmail.com>
         [not found] ` <CABr+WT=ANAs4DgvbfcgQ2wnX5yhT9HTgLJh1LE8Q09fyCa0mBg@mail.gmail.com>
    2019-04-15  4:40   ` [PATCH] pci: disable nv_msi_ht_cap_quirk_leaf quirk on non-x86 hw Manikanta Maddireddy
    2019-04-15  9:25 ` [PATCH] PCI: disable nv_msi_ht_cap_quirk_leaf quirk on arm/arm64 Nicolas Chauvet
    2019-04-15 13:48   ` Bjorn Helgaas
    2019-04-16  9:52     ` Manikanta Maddireddy
    2019-04-16 11:35     ` Thierry Reding
    2019-04-16 19:27       ` Manikanta Maddireddy
    2019-04-18 22:56       ` Bjorn Helgaas
    2019-04-18 23:17       ` Bjorn Helgaas
    2019-04-23 11:02         ` Thierry Reding
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).