blacklist.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. /*
  2. * blacklist.c
  3. *
  4. * Check to see if the given machine has a known bad ACPI BIOS
  5. * or if the BIOS is too old.
  6. * Check given machine against acpi_osi_dmi_table[].
  7. *
  8. * Copyright (C) 2004 Len Brown <len.brown@intel.com>
  9. * Copyright (C) 2002 Andy Grover <andrew.grover@intel.com>
  10. *
  11. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or (at
  16. * your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful, but
  19. * WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  21. * General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License along
  24. * with this program; if not, write to the Free Software Foundation, Inc.,
  25. * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  26. *
  27. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  28. */
  29. #include <linux/kernel.h>
  30. #include <linux/module.h>
  31. #include <linux/init.h>
  32. #include <linux/acpi.h>
  33. #include <acpi/acpi_bus.h>
  34. #include <linux/dmi.h>
  35. enum acpi_blacklist_predicates {
  36. all_versions,
  37. less_than_or_equal,
  38. equal,
  39. greater_than_or_equal,
  40. };
  41. struct acpi_blacklist_item {
  42. char oem_id[7];
  43. char oem_table_id[9];
  44. u32 oem_revision;
  45. char *table;
  46. enum acpi_blacklist_predicates oem_revision_predicate;
  47. char *reason;
  48. u32 is_critical_error;
  49. };
  50. static struct dmi_system_id acpi_osi_dmi_table[] __initdata;
  51. /*
  52. * POLICY: If *anything* doesn't work, put it on the blacklist.
  53. * If they are critical errors, mark it critical, and abort driver load.
  54. */
  55. static struct acpi_blacklist_item acpi_blacklist[] __initdata = {
  56. /* Compaq Presario 1700 */
  57. {"PTLTD ", " DSDT ", 0x06040000, ACPI_SIG_DSDT, less_than_or_equal,
  58. "Multiple problems", 1},
  59. /* Sony FX120, FX140, FX150? */
  60. {"SONY ", "U0 ", 0x20010313, ACPI_SIG_DSDT, less_than_or_equal,
  61. "ACPI driver problem", 1},
  62. /* Compaq Presario 800, Insyde BIOS */
  63. {"INT440", "SYSFexxx", 0x00001001, ACPI_SIG_DSDT, less_than_or_equal,
  64. "Does not use _REG to protect EC OpRegions", 1},
  65. /* IBM 600E - _ADR should return 7, but it returns 1 */
  66. {"IBM ", "TP600E ", 0x00000105, ACPI_SIG_DSDT, less_than_or_equal,
  67. "Incorrect _ADR", 1},
  68. {"ASUS\0\0", "P2B-S ", 0, ACPI_SIG_DSDT, all_versions,
  69. "Bogus PCI routing", 1},
  70. {""}
  71. };
  72. #if CONFIG_ACPI_BLACKLIST_YEAR
  73. static int __init blacklist_by_year(void)
  74. {
  75. int year = dmi_get_year(DMI_BIOS_DATE);
  76. /* Doesn't exist? Likely an old system */
  77. if (year == -1) {
  78. printk(KERN_ERR PREFIX "no DMI BIOS year, "
  79. "acpi=force is required to enable ACPI\n" );
  80. return 1;
  81. }
  82. /* 0? Likely a buggy new BIOS */
  83. if (year == 0) {
  84. printk(KERN_ERR PREFIX "DMI BIOS year==0, "
  85. "assuming ACPI-capable machine\n" );
  86. return 0;
  87. }
  88. if (year < CONFIG_ACPI_BLACKLIST_YEAR) {
  89. printk(KERN_ERR PREFIX "BIOS age (%d) fails cutoff (%d), "
  90. "acpi=force is required to enable ACPI\n",
  91. year, CONFIG_ACPI_BLACKLIST_YEAR);
  92. return 1;
  93. }
  94. return 0;
  95. }
  96. #else
  97. static inline int blacklist_by_year(void)
  98. {
  99. return 0;
  100. }
  101. #endif
  102. int __init acpi_blacklisted(void)
  103. {
  104. int i = 0;
  105. int blacklisted = 0;
  106. struct acpi_table_header table_header;
  107. while (acpi_blacklist[i].oem_id[0] != '\0') {
  108. if (acpi_get_table_header(acpi_blacklist[i].table, 0, &table_header)) {
  109. i++;
  110. continue;
  111. }
  112. if (strncmp(acpi_blacklist[i].oem_id, table_header.oem_id, 6)) {
  113. i++;
  114. continue;
  115. }
  116. if (strncmp
  117. (acpi_blacklist[i].oem_table_id, table_header.oem_table_id,
  118. 8)) {
  119. i++;
  120. continue;
  121. }
  122. if ((acpi_blacklist[i].oem_revision_predicate == all_versions)
  123. || (acpi_blacklist[i].oem_revision_predicate ==
  124. less_than_or_equal
  125. && table_header.oem_revision <=
  126. acpi_blacklist[i].oem_revision)
  127. || (acpi_blacklist[i].oem_revision_predicate ==
  128. greater_than_or_equal
  129. && table_header.oem_revision >=
  130. acpi_blacklist[i].oem_revision)
  131. || (acpi_blacklist[i].oem_revision_predicate == equal
  132. && table_header.oem_revision ==
  133. acpi_blacklist[i].oem_revision)) {
  134. printk(KERN_ERR PREFIX
  135. "Vendor \"%6.6s\" System \"%8.8s\" "
  136. "Revision 0x%x has a known ACPI BIOS problem.\n",
  137. acpi_blacklist[i].oem_id,
  138. acpi_blacklist[i].oem_table_id,
  139. acpi_blacklist[i].oem_revision);
  140. printk(KERN_ERR PREFIX
  141. "Reason: %s. This is a %s error\n",
  142. acpi_blacklist[i].reason,
  143. (acpi_blacklist[i].
  144. is_critical_error ? "non-recoverable" :
  145. "recoverable"));
  146. blacklisted = acpi_blacklist[i].is_critical_error;
  147. break;
  148. } else {
  149. i++;
  150. }
  151. }
  152. blacklisted += blacklist_by_year();
  153. dmi_check_system(acpi_osi_dmi_table);
  154. return blacklisted;
  155. }
  156. #ifdef CONFIG_DMI
  157. static int __init dmi_enable_osi_linux(const struct dmi_system_id *d)
  158. {
  159. acpi_dmi_osi_linux(1, d); /* enable */
  160. return 0;
  161. }
  162. static int __init dmi_disable_osi_linux(const struct dmi_system_id *d)
  163. {
  164. acpi_dmi_osi_linux(0, d); /* disable */
  165. return 0;
  166. }
  167. static int __init dmi_unknown_osi_linux(const struct dmi_system_id *d)
  168. {
  169. acpi_dmi_osi_linux(-1, d); /* unknown */
  170. return 0;
  171. }
  172. /*
  173. * Most BIOS that invoke OSI(Linux) do nothing with it.
  174. * But some cause Linux to break.
  175. * Only a couple use it to make Linux run better.
  176. *
  177. * Thus, Linux should continue to disable OSI(Linux) by default,
  178. * should continue to discourage BIOS writers from using it, and
  179. * should whitelist the few existing systems that require it.
  180. *
  181. * If it appears clear a vendor isn't using OSI(Linux)
  182. * for anything constructive, blacklist them by name to disable
  183. * unnecessary dmesg warnings on all of their products.
  184. */
  185. static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
  186. /*
  187. * Disable OSI(Linux) warnings on all "Acer, inc."
  188. *
  189. * _OSI(Linux) disables the latest Windows BIOS code:
  190. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5050"),
  191. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5580"),
  192. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 3010"),
  193. * _OSI(Linux) effect unknown:
  194. * DMI_MATCH(DMI_PRODUCT_NAME, "Ferrari 5000"),
  195. */
  196. /*
  197. * note that dmi_check_system() uses strstr()
  198. * to match sub-strings rather than !strcmp(),
  199. * so "Acer" below matches "Acer, inc." above.
  200. */
  201. /*
  202. * Disable OSI(Linux) warnings on all "Acer"
  203. *
  204. * _OSI(Linux) effect unknown:
  205. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5100"),
  206. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"),
  207. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720Z"),
  208. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 5520"),
  209. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 6460"),
  210. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 7510"),
  211. * DMI_MATCH(DMI_PRODUCT_NAME, "Extensa 5220"),
  212. */
  213. {
  214. .callback = dmi_unknown_osi_linux,
  215. .ident = "Acer",
  216. .matches = {
  217. DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
  218. },
  219. },
  220. /*
  221. * Disable OSI(Linux) warnings on all "Apple Computer, Inc."
  222. *
  223. * _OSI(Linux) confirmed to be a NOP:
  224. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook1,1"),
  225. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook2,1"),
  226. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro2,2"),
  227. * _OSI(Linux) effect unknown:
  228. * DMI_MATCH(DMI_PRODUCT_NAME, "MacPro2,1"),
  229. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro1,1"),
  230. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro3,1"),
  231. */
  232. {
  233. .callback = dmi_disable_osi_linux,
  234. .ident = "Apple",
  235. .matches = {
  236. DMI_MATCH(DMI_SYS_VENDOR, "Apple Computer, Inc."),
  237. },
  238. },
  239. /*
  240. * Disable OSI(Linux) warnings on all "BenQ"
  241. *
  242. * _OSI(Linux) confirmed to be a NOP:
  243. * DMI_MATCH(DMI_PRODUCT_NAME, "Joybook S31"),
  244. */
  245. {
  246. .callback = dmi_disable_osi_linux,
  247. .ident = "BenQ",
  248. .matches = {
  249. DMI_MATCH(DMI_SYS_VENDOR, "BenQ"),
  250. },
  251. },
  252. /*
  253. * Disable OSI(Linux) warnings on all "Clevo Co."
  254. *
  255. * _OSI(Linux) confirmed to be a NOP:
  256. * DMI_MATCH(DMI_PRODUCT_NAME, "M570RU"),
  257. */
  258. {
  259. .callback = dmi_disable_osi_linux,
  260. .ident = "Clevo",
  261. .matches = {
  262. DMI_MATCH(DMI_SYS_VENDOR, "Clevo Co."),
  263. },
  264. },
  265. /*
  266. * Disable OSI(Linux) warnings on all "COMPAL"
  267. *
  268. * _OSI(Linux) confirmed to be a NOP:
  269. * DMI_MATCH(DMI_BOARD_NAME, "HEL8X"),
  270. * _OSI(Linux) unknown effect:
  271. * DMI_MATCH(DMI_BOARD_NAME, "IFL91"),
  272. */
  273. {
  274. .callback = dmi_unknown_osi_linux,
  275. .ident = "Compal",
  276. .matches = {
  277. DMI_MATCH(DMI_BIOS_VENDOR, "COMPAL"),
  278. },
  279. },
  280. { /* OSI(Linux) touches USB, breaks suspend to disk */
  281. .callback = dmi_disable_osi_linux,
  282. .ident = "Dell Dimension 5150",
  283. .matches = {
  284. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  285. DMI_MATCH(DMI_PRODUCT_NAME, "Dell DM051"),
  286. },
  287. },
  288. { /* OSI(Linux) is a NOP */
  289. .callback = dmi_disable_osi_linux,
  290. .ident = "Dell",
  291. .matches = {
  292. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  293. DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1501"),
  294. },
  295. },
  296. { /* OSI(Linux) effect unknown */
  297. .callback = dmi_unknown_osi_linux,
  298. .ident = "Dell",
  299. .matches = {
  300. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  301. DMI_MATCH(DMI_PRODUCT_NAME, "Latitude D830"),
  302. },
  303. },
  304. { /* OSI(Linux) effect unknown */
  305. .callback = dmi_unknown_osi_linux,
  306. .ident = "Dell",
  307. .matches = {
  308. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  309. DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex GX620"),
  310. },
  311. },
  312. { /* OSI(Linux) effect unknown */
  313. .callback = dmi_unknown_osi_linux,
  314. .ident = "Dell",
  315. .matches = {
  316. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  317. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 1900"),
  318. },
  319. },
  320. { /* OSI(Linux) touches USB */
  321. .callback = dmi_disable_osi_linux,
  322. .ident = "Dell",
  323. .matches = {
  324. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  325. DMI_MATCH(DMI_PRODUCT_NAME, "Precision WorkStation 390"),
  326. },
  327. },
  328. { /* OSI(Linux) is a NOP */
  329. .callback = dmi_disable_osi_linux,
  330. .ident = "Dell Vostro 1000",
  331. .matches = {
  332. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  333. DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1000"),
  334. },
  335. },
  336. { /* OSI(Linux) effect unknown */
  337. .callback = dmi_unknown_osi_linux,
  338. .ident = "Dell",
  339. .matches = {
  340. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  341. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge SC440"),
  342. },
  343. },
  344. { /* OSI(Linux) effect unknown */
  345. .callback = dmi_unknown_osi_linux,
  346. .ident = "Dialogue Flybook V5",
  347. .matches = {
  348. DMI_MATCH(DMI_SYS_VENDOR, "Dialogue Technology Corporation"),
  349. DMI_MATCH(DMI_PRODUCT_NAME, "Flybook V5"),
  350. },
  351. },
  352. /*
  353. * Disable OSI(Linux) warnings on all "FUJITSU SIEMENS"
  354. *
  355. * _OSI(Linux) disables latest Windows BIOS code:
  356. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pa 2510"),
  357. * _OSI(Linux) confirmed to be a NOP:
  358. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1536"),
  359. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1556"),
  360. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Xi 1546"),
  361. * _OSI(Linux) unknown effect:
  362. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo M1425"),
  363. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo Si 1520"),
  364. * DMI_MATCH(DMI_PRODUCT_NAME, "ESPRIMO Mobile V5505"),
  365. */
  366. {
  367. .callback = dmi_disable_osi_linux,
  368. .ident = "Fujitsu Siemens",
  369. .matches = {
  370. DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
  371. },
  372. },
  373. /*
  374. * Disable OSI(Linux) warnings on all "Hewlett-Packard"
  375. *
  376. * _OSI(Linux) confirmed to be a NOP:
  377. * .ident = "HP Pavilion tx 1000"
  378. * DMI_MATCH(DMI_BOARD_NAME, "30BF"),
  379. * .ident = "HP Pavilion dv2000"
  380. * DMI_MATCH(DMI_BOARD_NAME, "30B5"),
  381. * .ident = "HP Pavilion dv5000",
  382. * DMI_MATCH(DMI_BOARD_NAME, "30A7"),
  383. * .ident = "HP Pavilion dv6300 30BC",
  384. * DMI_MATCH(DMI_BOARD_NAME, "30BC"),
  385. * .ident = "HP Pavilion dv6000",
  386. * DMI_MATCH(DMI_BOARD_NAME, "30B7"),
  387. * DMI_MATCH(DMI_BOARD_NAME, "30B8"),
  388. * .ident = "HP Pavilion dv9000",
  389. * DMI_MATCH(DMI_BOARD_NAME, "30B9"),
  390. * .ident = "HP Pavilion dv9500",
  391. * DMI_MATCH(DMI_BOARD_NAME, "30CB"),
  392. * .ident = "HP/Compaq Presario C500",
  393. * DMI_MATCH(DMI_BOARD_NAME, "30C6"),
  394. * .ident = "HP/Compaq Presario F500",
  395. * DMI_MATCH(DMI_BOARD_NAME, "30D3"),
  396. * _OSI(Linux) unknown effect:
  397. * .ident = "HP Pavilion dv6500",
  398. * DMI_MATCH(DMI_BOARD_NAME, "30D0"),
  399. */
  400. {
  401. .callback = dmi_disable_osi_linux,
  402. .ident = "Hewlett-Packard",
  403. .matches = {
  404. DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
  405. },
  406. },
  407. /*
  408. * Lenovo has a mix of systems OSI(Linux) situations
  409. * and thus we can not wildcard the vendor.
  410. *
  411. * _OSI(Linux) helps sound
  412. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  413. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  414. * _OSI(Linux) is a NOP:
  415. * DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  416. */
  417. {
  418. .callback = dmi_enable_osi_linux,
  419. .ident = "Lenovo ThinkPad R61",
  420. .matches = {
  421. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  422. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  423. },
  424. },
  425. {
  426. .callback = dmi_enable_osi_linux,
  427. .ident = "Lenovo ThinkPad T61",
  428. .matches = {
  429. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  430. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  431. },
  432. },
  433. {
  434. .callback = dmi_unknown_osi_linux,
  435. .ident = "Lenovo 3000 V100",
  436. .matches = {
  437. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  438. DMI_MATCH(DMI_PRODUCT_VERSION, "LENOVO3000 V100"),
  439. },
  440. },
  441. {
  442. .callback = dmi_disable_osi_linux,
  443. .ident = "Lenovo 3000 N100",
  444. .matches = {
  445. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  446. DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  447. },
  448. },
  449. /*
  450. * Disable OSI(Linux) warnings on all "LG Electronics"
  451. *
  452. * _OSI(Linux) confirmed to be a NOP:
  453. * DMI_MATCH(DMI_PRODUCT_NAME, "P1-J150B"),
  454. */
  455. {
  456. .callback = dmi_disable_osi_linux,
  457. .ident = "LG",
  458. .matches = {
  459. DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
  460. },
  461. },
  462. /* NEC - OSI(Linux) effect unknown */
  463. {
  464. .callback = dmi_unknown_osi_linux,
  465. .ident = "NEC VERSA M360",
  466. .matches = {
  467. DMI_MATCH(DMI_SYS_VENDOR, "NEC Computers SAS"),
  468. DMI_MATCH(DMI_PRODUCT_NAME, "NEC VERSA M360"),
  469. },
  470. },
  471. /*
  472. * Disable OSI(Linux) warnings on all "Samsung Electronics"
  473. *
  474. * OSI(Linux) disables PNP0C32 and other BIOS code for Windows:
  475. * DMI_MATCH(DMI_PRODUCT_NAME, "R40P/R41P"),
  476. * DMI_MATCH(DMI_PRODUCT_NAME, "R59P/R60P/R61P"),
  477. */
  478. {
  479. .callback = dmi_disable_osi_linux,
  480. .ident = "Samsung",
  481. .matches = {
  482. DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
  483. },
  484. },
  485. /*
  486. * Disable OSI(Linux) warnings on all "Sony Corporation"
  487. *
  488. * _OSI(Linux) is a NOP:
  489. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ650N"),
  490. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ38GP_C"),
  491. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-TZ21MN_N"),
  492. * _OSI(Linux) unknown effect:
  493. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ11M"),
  494. */
  495. {
  496. .callback = dmi_unknown_osi_linux,
  497. .ident = "Sony",
  498. .matches = {
  499. DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
  500. },
  501. },
  502. /*
  503. * Disable OSI(Linux) warnings on all "TOSHIBA"
  504. *
  505. * _OSI(Linux) breaks sound (bugzilla 7787):
  506. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P100"),
  507. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P105"),
  508. * _OSI(Linux) is a NOP:
  509. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A100"),
  510. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A210"),
  511. * _OSI(Linux) unknown effect:
  512. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A135"),
  513. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A200"),
  514. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P205"),
  515. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite U305"),
  516. */
  517. {
  518. .callback = dmi_disable_osi_linux,
  519. .ident = "Toshiba",
  520. .matches = {
  521. DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
  522. },
  523. },
  524. {}
  525. };
  526. #endif /* CONFIG_DMI */