[kernel/f16] Create a blacklist for pci=nocrs Add Dell Studio 1536 to it.
Dave Jones
davej at fedoraproject.org
Thu Dec 29 18:11:16 UTC 2011
commit 2da15d95218328771a3b5620002d175ce71a64e6
Author: Dave Jones <davej at redhat.com>
Date: Thu Dec 29 13:10:57 2011 -0500
Create a blacklist for pci=nocrs
Add Dell Studio 1536 to it.
kernel.spec | 10 +++++++++-
pci-crs-blacklist.patch | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 1 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index f934e78..7ce7f0f 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -54,7 +54,7 @@ Summary: The Linux kernel
# For non-released -rc kernels, this will be appended after the rcX and
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
#
-%global baserelease 1
+%global baserelease 2
%global fedora_build %{baserelease}
# base_sublevel is the kernel version we're starting with and patching
@@ -826,6 +826,8 @@ Patch21220: mac80211_offchannel_rework_revert.patch
Patch21225: pci-Rework-ASPM-disable-code.patch
+Patch21226: pci-crs-blacklist.patch
+
#rhbz #757839
Patch21230: net-sky2-88e8059-fix-link-speed.patch
@@ -1553,6 +1555,8 @@ ApplyPatch mac80211_offchannel_rework_revert.patch
ApplyPatch pci-Rework-ASPM-disable-code.patch
+ApplyPatch pci-crs-blacklist.patch
+
#rhbz #757839
ApplyPatch net-sky2-88e8059-fix-link-speed.patch
@@ -2348,6 +2352,10 @@ fi
# and build.
%changelog
+* Thu Dec 29 2011 Dave Jones <davej at redhat.com> 3.1.6-2
+- Create a blacklist for pci=nocrs
+ Add Dell Studio 1536 to it.
+
* Fri Dec 23 2011 Dennis Gilmore <dennis at ausil.us>
- build imx highbank and kirkwood kernels for arm
diff --git a/pci-crs-blacklist.patch b/pci-crs-blacklist.patch
new file mode 100644
index 0000000..bc17d54
--- /dev/null
+++ b/pci-crs-blacklist.patch
@@ -0,0 +1,36 @@
+diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
+index 404f21a..2704a9c 100644
+--- a/arch/x86/pci/acpi.c
++++ b/arch/x86/pci/acpi.c
+@@ -24,6 +24,12 @@ static int __init set_use_crs(const struct dmi_system_id *id)
+ return 0;
+ }
+
++static int __init set_nouse_crs(const struct dmi_system_id *id)
++{
++ pci_use_crs = false;
++ return 0;
++}
++
+ static const struct dmi_system_id pci_use_crs_table[] __initconst = {
+ /* http://bugzilla.kernel.org/show_bug.cgi?id=14183 */
+ {
+@@ -54,6 +60,18 @@ static const struct dmi_system_id pci_use_crs_table[] __initconst = {
+ DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."),
+ },
+ },
++
++ /* Now for the blacklist.. */
++
++ /* https://bugzilla.redhat.com/show_bug.cgi?id=770308 */
++ {
++ .callback = set_nouse_crs,
++ .ident = "Dell Studio 1536",
++ .matches = {
++ DMI_MATCH(DMI_BOARD_VENDOR, "Dell Inc."),
++ DMI_MATCH(DMI_BOARD_NAME, "0M273C"),
++ },
++ },
+ {}
+ };
+
More information about the scm-commits
mailing list