| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ${top_srcdir-.}/tests/common.sh |
| 4 |
|
| 5 |
cat << EOF > patch1 |
| 6 |
--- linux.vanilla/arch/i386/kernel/dmi_scan.c Thu Oct 25 16:26:33 2001 |
| 7 |
+++ linux.ac/arch/i386/kernel/dmi_scan.c Fri Oct 26 19:39:16 2001 |
| 8 |
@@ -380,12 +380,11 @@ |
| 9 |
pm_kbd_request_override = pckbd_pm_resume; |
| 10 |
printk(KERN_INFO "%s machine detected. Mousepad Resume Bug workaround enabled.\n", d->ident); |
| 11 |
} |
| 12 |
-#endif |
| 13 |
+#endif |
| 14 |
return 0; |
| 15 |
} |
| 16 |
|
| 17 |
|
| 18 |
- |
| 19 |
/* |
| 20 |
* Process the DMI blacklists |
| 21 |
*/ |
| 22 |
@@ -400,7 +399,6 @@ |
| 23 |
blah |
| 24 |
blah |
| 25 |
blah |
| 26 |
-blah |
| 27 |
blah |
| 28 |
blah |
| 29 |
blah |
| 30 |
EOF |
| 31 |
cat << EOF > patch2 |
| 32 |
--- linux.vanilla/arch/i386/kernel/dmi_scan.c Thu Oct 25 16:26:33 2001 |
| 33 |
+++ linux.ac/arch/i386/kernel/dmi_scan.c Fri Nov 2 14:43:41 2001 |
| 34 |
@@ -380,11 +380,26 @@ |
| 35 |
pm_kbd_request_override = pckbd_pm_resume; |
| 36 |
printk(KERN_INFO "%s machine detected. Mousepad Resume Bug workaround enabled.\n", d->ident); |
| 37 |
} |
| 38 |
-#endif |
| 39 |
+#endif |
| 40 |
return 0; |
| 41 |
} |
| 42 |
|
| 43 |
|
| 44 |
+/* |
| 45 |
+ * Dell Inspiron 8000 APM BIOS fails to correctly save and restore the |
| 46 |
+ * config space of some PCI devices. |
| 47 |
+ */ |
| 48 |
+ |
| 49 |
+static __init int broken_apm_pci_restore(struct dmi_blacklist *d) |
| 50 |
+{ |
| 51 |
+#ifdef CONFIG_PCI |
| 52 |
+ extern int pci_bridge_force_restore; |
| 53 |
+ |
| 54 |
+ printk(KERN_WARNING "%s detected. Forcing restore of PCI configuration space on APM resume.\n", d->ident); |
| 55 |
+ pci_bridge_force_restore = 1; |
| 56 |
+#endif |
| 57 |
+ return 0; |
| 58 |
+} |
| 59 |
|
| 60 |
/* |
| 61 |
* Process the DMI blacklists |
| 62 |
@@ -400,7 +415,6 @@ |
| 63 |
blah |
| 64 |
blah |
| 65 |
blah |
| 66 |
-blah |
| 67 |
blah |
| 68 |
blah |
| 69 |
blah |
| 70 |
EOF |
| 71 |
|
| 72 |
${INTERDIFF} -q patch1 patch2 2>errors > patch1-2 || exit 1 |
| 73 |
[ -s errors ] && exit 1 |
| 74 |
cmp patch1-2 - << EOF || exit 1 |
| 75 |
--- linux.ac/arch/i386/kernel/dmi_scan.c Fri Oct 26 19:39:16 2001 |
| 76 |
+++ linux.ac/arch/i386/kernel/dmi_scan.c Fri Nov 2 14:43:41 2001 |
| 77 |
@@ -387,4 +387,20 @@ |
| 78 |
|
| 79 |
/* |
| 80 |
+ * Dell Inspiron 8000 APM BIOS fails to correctly save and restore the |
| 81 |
+ * config space of some PCI devices. |
| 82 |
+ */ |
| 83 |
+ |
| 84 |
+static __init int broken_apm_pci_restore(struct dmi_blacklist *d) |
| 85 |
+{ |
| 86 |
+#ifdef CONFIG_PCI |
| 87 |
+ extern int pci_bridge_force_restore; |
| 88 |
+ |
| 89 |
+ printk(KERN_WARNING "%s detected. Forcing restore of PCI configuration space on APM resume.\n", d->ident); |
| 90 |
+ pci_bridge_force_restore = 1; |
| 91 |
+#endif |
| 92 |
+ return 0; |
| 93 |
+} |
| 94 |
+ |
| 95 |
+/* |
| 96 |
* Process the DMI blacklists |
| 97 |
*/ |
| 98 |
EOF |