Re: [Nouveau] How to check for proper MSI support?

2014-07-08 Thread Bjorn Helgaas
On Thu, Jul 3, 2014 at 10:32 PM, Ilia Mirkin imir...@alum.mit.edu wrote: So let me get this straight -- you're suggesting I add a quirk for every PCI chipset that doesn't support MSI? There are probably hundreds of these... anything made before 1999 or so, and probably a bunch since then too.

Re: [Nouveau] How to check for proper MSI support?

2014-07-04 Thread Yijing Wang
There is a NVIDIA G96 GPU (which is PCIe only) hanging off of a PCIe - PCI bridge (all on one card), which is plugged into a motherboard with the 430FX chipset (PCI 2.0 supported). The GPU PCI device, of course, has full support for MSI. However my understanding is that MSI won't actually

Re: [Nouveau] How to check for proper MSI support?

2014-07-04 Thread Yijing Wang
On 2014/7/4 14:26, Brian Becker wrote: I am booting a kernel with CONFIG_ACPI=n on a platform which does not support ACPI. Hmmm, so my suggestion is 1. Add quirk to detect 430FX chipset, if detected, disable MSI in this platform. or 2. Append boot argument pci=nomsi in OS command line when the

Re: [Nouveau] How to check for proper MSI support?

2014-07-04 Thread Brian Becker
Yijing, cat /sys/bus/pci/devices/\:00\:0e.0/msi_bus returns 1, suggesting that it supports MSI. However, this 00:0e.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge (rev aa) is a component of the addin card. Wouldn't the lack of support for MSI by the chipset

Re: [Nouveau] How to check for proper MSI support?

2014-07-04 Thread Brian Becker
My previous message was badly formatted, and didn't make it to linux-...@vger.kernel.org. Hopefully this information is of some use. root@p5-133:~# uname -a Linux p5-133 3.15.2-p5-133 #1 Thu Jun 26 22:56:27 EDT 2014 i586 GNU/Linux root@p5-133:~# lspci -vvvxxx 00:00.0 Host bridge: Intel

Re: [Nouveau] How to check for proper MSI support?

2014-07-04 Thread Brian Becker
I mistakenly only replied to Yijing Wang the first time. Here are the further details. uname -a: Linux p5-133 3.15.2-p5-133 #1 Thu Jun 26 22:56:27 EDT 2014 i586 GNU/Linux Here is the output from lspci -vvvxxx: root@p5-133:~# cat lspci.txt 00:00.0 Host bridge: Intel Corporation 430FX - 82437FX

Re: [Nouveau] How to check for proper MSI support?

2014-07-04 Thread Brian Becker
I am booting a kernel with CONFIG_ACPI=n on a platform which does not support ACPI. -Brian On Fri, Jul 4, 2014 at 1:59 AM, Yijing Wang wangyij...@huawei.com wrote: There is a NVIDIA G96 GPU (which is PCIe only) hanging off of a PCIe - PCI bridge (all on one card), which is plugged into a

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Yijing Wang
On 2014/7/3 11:20, Ilia Mirkin wrote: Hello, A user (cc'd) reported that nouveau's enabling of MSI causes the card to not work on his setup [1]. I think the situation is that MSI is just not supported by the underlying motherboard, even though the card, and probably bridge, support it just

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Yijing Wang
Hi Brian, From your 01:00.0 VGA compatible controller PCI config register, it supports 1 MSI vector, so I think this card has no problem. But you didn't answer what's the pci_enable_msi() return during it enable MSI fail. You can check PCI bus whether support MSI like: cat

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Ilia Mirkin
On Thu, Jul 3, 2014 at 10:35 PM, Yijing Wang wangyij...@huawei.com wrote: Hi Brian, From your 01:00.0 VGA compatible controller PCI config register, it supports 1 MSI vector, so I think this card has no problem. But you didn't answer what's the pci_enable_msi() return during it enable

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Yijing Wang
On 2014/7/4 10:43, Ilia Mirkin wrote: On Thu, Jul 3, 2014 at 10:35 PM, Yijing Wang wangyij...@huawei.com wrote: Hi Brian, From your 01:00.0 VGA compatible controller PCI config register, it supports 1 MSI vector, so I think this card has no problem. But you didn't answer what's the

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Yijing Wang
On 2014/7/4 10:45, Brian Becker wrote: Yijing, cat /sys/bus/pci/devices/\:00\:0e.0/msi_bus returns 1, suggesting that it supports MSI. However, this 00:0e.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge (rev aa) is a component of the addin card. Wouldn't the

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Ilia Mirkin
On Thu, Jul 3, 2014 at 11:09 PM, Yijing Wang wangyij...@huawei.com wrote: On 2014/7/4 10:43, Ilia Mirkin wrote: On Thu, Jul 3, 2014 at 10:35 PM, Yijing Wang wangyij...@huawei.com wrote: Hi Brian, From your 01:00.0 VGA compatible controller PCI config register, it supports 1 MSI vector, so

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Yijing Wang
On 2014/7/4 11:30, Ilia Mirkin wrote: On Thu, Jul 3, 2014 at 11:09 PM, Yijing Wang wangyij...@huawei.com wrote: On 2014/7/4 10:43, Ilia Mirkin wrote: On Thu, Jul 3, 2014 at 10:35 PM, Yijing Wang wangyij...@huawei.com wrote: Hi Brian, From your 01:00.0 VGA compatible controller PCI config

Re: [Nouveau] How to check for proper MSI support?

2014-07-03 Thread Ilia Mirkin
On Thu, Jul 3, 2014 at 11:56 PM, Yijing Wang wangyij...@huawei.com wrote: On 2014/7/4 11:30, Ilia Mirkin wrote: On Thu, Jul 3, 2014 at 11:09 PM, Yijing Wang wangyij...@huawei.com wrote: On 2014/7/4 10:43, Ilia Mirkin wrote: On Thu, Jul 3, 2014 at 10:35 PM, Yijing Wang wangyij...@huawei.com

[Nouveau] How to check for proper MSI support?

2014-07-02 Thread Ilia Mirkin
Hello, A user (cc'd) reported that nouveau's enabling of MSI causes the card to not work on his setup [1]. I think the situation is that MSI is just not supported by the underlying motherboard, even though the card, and probably bridge, support it just fine. It's a very old board. The nouveau