File: run-test

package info (click to toggle)
patchutils 0.3.1-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,480 kB
  • ctags: 279
  • sloc: sh: 6,676; ansic: 5,891; xml: 2,215; perl: 398; makefile: 259
file content (98 lines) | stat: -rwxr-xr-x 2,129 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh

. ${top_srcdir-.}/tests/common.sh

cat << EOF > patch1
--- linux.vanilla/arch/i386/kernel/dmi_scan.c	Thu Oct 25 16:26:33 2001
+++ linux.ac/arch/i386/kernel/dmi_scan.c	Fri Oct 26 19:39:16 2001
@@ -380,12 +380,11 @@
 		pm_kbd_request_override = pckbd_pm_resume;
 		printk(KERN_INFO "%s machine detected. Mousepad Resume Bug workaround enabled.\n", d->ident);
 	}
-#endif	
+#endif
 	return 0;
 }
 
 
-
 /*
  *	Process the DMI blacklists
  */
@@ -400,7 +399,6 @@
 blah
 blah
 blah
-blah
 blah
 blah
 blah
EOF
cat << EOF > patch2
--- linux.vanilla/arch/i386/kernel/dmi_scan.c	Thu Oct 25 16:26:33 2001
+++ linux.ac/arch/i386/kernel/dmi_scan.c	Fri Nov  2 14:43:41 2001
@@ -380,11 +380,26 @@
 		pm_kbd_request_override = pckbd_pm_resume;
 		printk(KERN_INFO "%s machine detected. Mousepad Resume Bug workaround enabled.\n", d->ident);
 	}
-#endif	
+#endif
 	return 0;
 }
 
 
+/*
+ * Dell Inspiron 8000 APM BIOS fails to correctly save and restore the
+ * config space of some PCI devices.
+ */
+
+static __init int broken_apm_pci_restore(struct dmi_blacklist *d)
+{
+#ifdef CONFIG_PCI
+	extern int pci_bridge_force_restore;
+
+	printk(KERN_WARNING "%s detected. Forcing restore of PCI configuration space on APM resume.\n", d->ident);
+	pci_bridge_force_restore = 1;
+#endif
+	return 0;
+}
 
 /*
  *	Process the DMI blacklists
@@ -400,7 +415,6 @@
 blah
 blah
 blah
-blah
 blah
 blah
 blah
EOF

${INTERDIFF} -q patch1 patch2 2>errors > patch1-2 || exit 1
[ -s errors ] && exit 1
cmp patch1-2 - << EOF || exit 1
--- linux.ac/arch/i386/kernel/dmi_scan.c	Fri Oct 26 19:39:16 2001
+++ linux.ac/arch/i386/kernel/dmi_scan.c	Fri Nov  2 14:43:41 2001
@@ -387,4 +387,20 @@
 
 /*
+ * Dell Inspiron 8000 APM BIOS fails to correctly save and restore the
+ * config space of some PCI devices.
+ */
+
+static __init int broken_apm_pci_restore(struct dmi_blacklist *d)
+{
+#ifdef CONFIG_PCI
+	extern int pci_bridge_force_restore;
+
+	printk(KERN_WARNING "%s detected. Forcing restore of PCI configuration space on APM resume.\n", d->ident);
+	pci_bridge_force_restore = 1;
+#endif
+	return 0;
+}
+
+/*
  *	Process the DMI blacklists
  */
EOF