x86/PCI: use host bridge _CRS info on MSI MS-7253
Bjorn Helgaas
maintainerPATCH 1/1 x86/PCI: use host bridge _CRS info on MSI MS-7253
From: Jonathan Nieder <[email protected]>
In the spirit of commit 29cf7a30f8a0 ("x86/PCI: use host bridge _CRS info on ASUS M2V-MX SE"), this DMI quirk turns on "pci_use_crs" by default on a board that needs it.
This fixes boot failures and oopses introduced in 3e3da00c01d0 ("x86/pci: AMD one chain system to use pci read out res"). The quirk is quite targetted (to a specific board and BIOS version) for two reasons:
(1) to emphasize that this method of tackling the problem one quirk at a time is a little insane
(2) to give BIOS vendors an opportunity to use simpler tables and allow us to return to generic behavior (whatever that happens to be) with a later BIOS update
In other words, I am not at all happy with having quirks like this. But it is even worse for the kernel not to work out of the box on these machines, so...
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=42619
--- arch/x86/pci/acpi.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
arch/x86/pci/acpi.c +11 -0
@@ -60,6 +60,17 @@ static const struct dmi_system_id pci_use_crs_table[] __initconst = { DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."), }, }, +/* https://bugzilla.kernel.org/show_bug.cgi?id=42619 */ + { + .callback = set_use_crs, + .ident = "MSI MS-7253", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), + DMI_MATCH(DMI_BOARD_NAME, "MS-7253"), + DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies, LTD"), + DMI_MATCH(DMI_BIOS_VERSION, "V1.6"), + }, + }, /* Now for the blacklist.. */
Bjorn Helgaas
maintainerQuoted 5 lines · Bjorn Helgaas
From: Jonathan Nieder <[email protected]>
In the spirit of commit
29cf7a30f8a0("x86/PCI: use host bridge_CRSinfo on ASUS M2V-MX SE"), this DMI quirk turns on "pci_use_crs" by default on a board that needs it.
Hi Jesse,
This patch is against upstream (891003abb0d), and I think it also applies cleanly on your linux-next branch. It fixes a regression and shouldn't affect other machines, so you might consider it even for 3.3. Otherwise it can go in the merge window.
Bjorn
Jesse Barnes
AppliedQuoted 14 lines · On Tue, 28 Feb 2012 11:51:10 -0700 Bjorn Helgaas <[email protected]> wrote:
From: Jonathan Nieder <[email protected]>
In the spirit of commit
29cf7a30f8a0("x86/PCI: use host bridge_CRSinfo on ASUS M2V-MX SE"), this DMI quirk turns on "pci_use_crs" by default on a board that needs it.This fixes boot failures and oopses introduced in
3e3da00c01d0("x86/pci: AMD one chain system to use pci read out res"). The quirk is quite targetted (to a specific board and BIOS version) for two reasons:(1) to emphasize that this method of tackling the problem one quirk at a time is a little insane
Quoted 7 lines
(2) to give BIOS vendors an opportunity to use simpler tables and allow us to return to generic behavior (whatever that happens to be) with a later BIOS update
In other words, I am not at all happy with having quirks like this. But it is even worse for the kernel not to work out of the box on these machines, so...
Applied to my for-linus branch, thanks.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
PATCH 1/1 x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
In reply to Bjorn HelgaasCarlos was getting
WARNING: at drivers/pci/pci.c:118 pci_ioremap_bar+0x24/0x52()
when probing his sound card, and sound did not work. After adding pci=use_crs to the kernel command line, no more trouble.
Ok, we can add a quirk. dmidecode output reveals that this is an MSI MS-7253, for which we already have a quirk, but the short-sighted author tied the quirk to a single BIOS version, making it not kick in on Carlos's machine with BIOS V1.2. If a later BIOS update makes it no longer necessary to look at the _CRS info it will still be harmless, so let's stop trying to guess which versions have and don't have accurate _CRS tables.
Addresses https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5533
Also see <https://bugzilla.kernel.org/show_bug.cgi?id=42619>.
---
Hi,
Could you squash this into the patch "x86/PCI: use host bridge _CRS info on MSI MS-7253", if it's not too late? Sorry for the thinko.
Thanks,
Jonathan
arch/x86/pci/acpi.c | 1 - 1 file changed, 1 deletion(-)
arch/x86/pci/acpi.c +0 -1
@@ -68,7 +68,6 @@ static const struct dmi_system_id pci_use_crs_table[] __initconst = { DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), DMI_MATCH(DMI_BOARD_NAME, "MS-7253"), DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies, LTD"), - DMI_MATCH(DMI_BIOS_VERSION, "V1.6"), }, },
Signature · 1 line
1.7.9.2
Re: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
Quoted 15 lines · Jonathan Nieder
Carlos was getting
WARNING: at drivers/pci/pci.c:118 pci_ioremap_bar+0x24/0x52()when probing his sound card, and sound did not work. After adding pci=use_crs to the kernel command line, no more trouble.
Ok, we can add a quirk. dmidecode output reveals that this is an MSI MS-7253, for which we already have a quirk, but the short-sighted author tied the quirk to a single BIOS version, making it not kick in on Carlos's machine with BIOS V1.2. If a later BIOS update makes it no longer necessary to look at the
_CRSinfo it will still be harmless, so let's stop trying to guess which versions have and don't have accurate_CRStables.
Quoted 2 lines
Addresses https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5533
Also see <https://bugzilla.kernel.org/show_bug.cgi?id=42619>.
Thanks, Jonathan. I was going to do this, but you saved me the trouble :)
Quoted 29 lines
Reported-by Carlos Luna <[email protected]>Signed-off-by Jonathan Nieder <[email protected]>---
Hi,Could you squash this into the patch "x86/PCI: use host bridge
_CRSinfo on MSI MS-7253", if it's not too late? Sorry for the thinko.Thanks,
Jonathanarch/x86/pci/acpi.c | 1 -
1 file changed, 1 deletion(-)arch/x86/pci/acpi.c +0
-2@@ -68,7 +68,6 @@ static const struct dmi_system_id pci_use_crs_table[] __initconst = { DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"), DMI_MATCH(DMI_BOARD_NAME, "MS-7253"), DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies, LTD"), - DMI_MATCH(DMI_BIOS_VERSION, "V1.6"), }, }, --1.7.9.2
Jesse Barnes
AppliedRe: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
In reply to Jonathan NiederQuoted 15 lines · On Tue, 28 Feb 2012 15:31:35 -0600 Jonathan Nieder <[email protected]> wrote:
Carlos was getting
WARNING: at drivers/pci/pci.c:118 pci_ioremap_bar+0x24/0x52()when probing his sound card, and sound did not work. After adding pci=use_crs to the kernel command line, no more trouble.
Ok, we can add a quirk. dmidecode output reveals that this is an MSI MS-7253, for which we already have a quirk, but the short-sighted author tied the quirk to a single BIOS version, making it not kick in on Carlos's machine with BIOS V1.2. If a later BIOS update makes it no longer necessary to look at the
_CRSinfo it will still be harmless, so let's stop trying to guess which versions have and don't have accurate_CRStables.
Quoted 6 lines
Addresses https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5533
Also see <https://bugzilla.kernel.org/show_bug.cgi?id=42619>.Reported-by Carlos Luna <[email protected]>Signed-off-by Jonathan Nieder <[email protected]>---
Applied to my for-linus branch, thanks.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Re: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
Hi Bjorn and Jesse,
Quoted 1 line · Jesse Barnes
Applied to my for-linus branch, thanks.
Thanks for taking care of it. I'll look into submitting these to -stable once they hit mainline if I notice.
[3.0.y, 3.2.y, 3.3.y] Re: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
Hi Greg,
Quoted 6 lines · Jonathan Nieder
Quoted 1 line · Jesse Barnes
Applied to my for-linus branch, thanks.
Thanks for taking care of it. I'll look into submitting these to -stable once they hit mainline if I notice.
Please queue
84113717 (x86/PCI: use host bridge _CRS info on MSI MS-7253) a97f4f5e (x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS
version)
for maintained stable trees 2.6.34.y and newer.
Those two patches address a regression that bisects to v2.6.34-rc1~218^2~26 (x86/pci: AMD one chain system to use pci read out res, 2010-02-10) and on the affected machines (Microstar MSI MS-7253) results in misconfiguration and instability --- some example symptoms were audio being silenced and crashes at boot time. They work by automatically enabling the pci=use_crs parameter so the kernel can pay attention to information in ACPI tables that can save it from trouble.
The patch was applied to mainline during the 3.3 merge window.
https://bugzilla.kernel.org/show_bug.cgi?id=42619 has details. Thanks to Svante Signell and Carlos Luna for reporting it and Bjorn Helgas and Paul Menzel for tracking it down.
Jonathan
Re: [3.0.y, 3.2.y, 3.3.y] Re: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
Quoted 2 lines · Jonathan Nieder
[Subject: [3.0.y, 3.2.y, 3.3.y] Re: [PATCH] x86/PCI: do not tie MSI MS-7253
use_crsquirk to BIOS version]
Since v3.3 already contains the patches, 3.3.y does not need this. 3.0.y and 3.2.y do, though. Sorry for the nonsense.
Greg Kroah-Hartman
AppliedRe: [3.0.y, 3.2.y, 3.3.y] Re: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
In reply to Jonathan NiederQuoted 10 lines · Jonathan Nieder
Hi Greg,
Quoted 6 lines · Jonathan Nieder
Quoted 1 line · Jesse Barnes
Applied to my for-linus branch, thanks.
Thanks for taking care of it. I'll look into submitting these to -stable once they hit mainline if I notice.
Quoted 7 lines
Please queue
84113717 (x86/PCI: use host bridge
_CRSinfo on MSI MS-7253)a97f4f5e(x86/PCI: do not tie MSI MS-7253use_crsquirk to BIOS
version)for maintained stable trees 2.6.34.y and newer.
Applied to 3.0-stable and newer.
greg k-h
Re: [3.0.y, 3.2.y, 3.3.y] Re: [PATCH] x86/PCI: do not tie MSI MS-7253 use_crs quirk to BIOS version
Quoted 11 lines · Greg Kroah-Hartman
Quoted 7 lines · Jonathan Nieder
Please queue
84113717 (x86/PCI: use host bridge
_CRSinfo on MSI MS-7253)a97f4f5e(x86/PCI: do not tie MSI MS-7253use_crsquirk to BIOS
version)for maintained stable trees 2.6.34.y and newer.
Applied to 3.0-stable and newer.
Thanks much.
Paul Gortmaker: FYI. [1] has context.
Ciao,
Jonathan
[1] http://thread.gmane.org/gmane.linux.kernel.pci/13825/focus=14618