linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Damien Dejean <dam.dejean@gmail.com>
Cc: linux-pci@vger.kernel.org, "Krzysztof Wilczyński" <kw@linux.com>
Subject: Re: Old Asus doesn't seem to support MSI
Date: Thu, 8 Jun 2023 11:21:05 -0500	[thread overview]
Message-ID: <20230608162105.GA1195684@bhelgaas> (raw)
In-Reply-To: <02093788-DDD2-4CD7-A23D-00A3E92D089C@gmail.com>

[+cc Krzysztof]

On Thu, Jun 08, 2023 at 09:57:32AM +0200, Damien Dejean wrote:
> Thanks for digging into this!
> 
> > It's also conceivable that MSI used to work in older kernels, but we
> > broke something by v5.10.  Do you know whether any old kernels ever
> > worked without "pci=nomsi”?
> 
> I remember trying older linux distributions (Debian oldstable,
> kernel 4.19) and some older Ubuntu(s) but I don’t remember any of
> them working. Plus, the Ubuntu wiki pages and various post replies
> to “… Linux is not working on my x73sl laptop” are always suggesting
> the pci=nomsi option, so I guess the problem exists since a while.

OK, more ideas:

1) Krzysztof found a slightly newer BIOS for your system [1].  It's
conceivable that could help.

2) If you happen to have Windows, AIDA64 [2] can tell us whether it
uses MSI.

3) I'm inclined to add the attached quirk, which disables MSI on any
machine with this chipset.  Should fix your ASUS X73SL, and could also
fix other platforms with the same chipset.  May slow down other
platforms where MSI *does* work.

4) If needed, we could make the quirk specific to ASUS X73SL.

Bjorn

[1] https://www.asus.com/us/supportonly/x73sl/helpdesk_bios/
[2] https://www.aida64.com/downloads


commit 240bbd06303f ("PCI: Disable MSI on SiS 671")
Author: Bjorn Helgaas <bhelgaas@google.com>
Date:   Thu Jun 8 10:13:11 2023 -0500

    PCI: Disable MSI on SiS 671
    
    Damien reports that MSI doesn't work on the SiS 671 chipset, at least on
    this platform:
    
      DMI: ASUSTeK Computer Inc.  F70SL/F70SL     , BIOS 211     02/18/2009
      pci 0000:00:00.0: [1039:0671] type 00 class 0x060000
    
    This prevents devices, e.g., NVIDIA GeForce 9300M GS GPU and an Atheros
    mini PCIe wifi adapter, from working.  Disable MSI completely on any
    platform with this chipset.
    
    I assume MSI *does* work on Windows on this platform, so there may be a
    chipset driver or something that configures it.  It's possible that MSI
    does work on different platforms with SiS 671, so if anybody cares, we
    *could* make this specific to the ASUS F70SL.
    
    Link: https://lore.kernel.org/r/19F46F0C-E9C8-489E-8AA5-2A16E13A6FE9@gmail.com
    Reported-by: Damien Dejean <dam.dejean@gmail.com>

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index f4e2a88729fd..adc58ce82d76 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2585,6 +2585,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT3336, quirk_disab
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT3351, quirk_disable_all_msi);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT3364, quirk_disable_all_msi);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8380_0, quirk_disable_all_msi);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, 0x0671, quirk_disable_all_msi);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, 0x0761, quirk_disable_all_msi);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SAMSUNG, 0xa5e3, quirk_disable_all_msi);
 

  reply	other threads:[~2023-06-08 16:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-03 15:52 Old Asus doesn't seem to support MSI Damien Dejean
2023-06-06 22:12 ` Bjorn Helgaas
2023-06-07 16:24   ` Damien Dejean
2023-06-07 21:53     ` Bjorn Helgaas
2023-06-08  7:57       ` Damien Dejean
2023-06-08 16:21         ` Bjorn Helgaas [this message]
2023-06-08 21:15           ` Damien Dejean
2023-06-08 21:53             ` Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230608162105.GA1195684@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=dam.dejean@gmail.com \
    --cc=kw@linux.com \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).