blacklist.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  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. .callback = dmi_disable_osi_linux,
  198. .ident = "Acer, inc.",
  199. .matches = {
  200. DMI_MATCH(DMI_SYS_VENDOR, "Acer, inc."),
  201. },
  202. },
  203. /*
  204. * Disable OSI(Linux) warnings on all "Acer"
  205. *
  206. * _OSI(Linux) effect unknown:
  207. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5100"),
  208. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"),
  209. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720Z"),
  210. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 5520"),
  211. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 6460"),
  212. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 7510"),
  213. * DMI_MATCH(DMI_PRODUCT_NAME, "Extensa 5220"),
  214. */
  215. {
  216. .callback = dmi_unknown_osi_linux,
  217. .ident = "Acer",
  218. .matches = {
  219. DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
  220. },
  221. },
  222. /*
  223. * Disable OSI(Linux) warnings on all "Apple Computer, Inc."
  224. *
  225. * _OSI(Linux) confirmed to be a NOP:
  226. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook1,1"),
  227. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook2,1"),
  228. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro2,2"),
  229. * _OSI(Linux) effect unknown:
  230. * DMI_MATCH(DMI_PRODUCT_NAME, "MacPro2,1"),
  231. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro1,1"),
  232. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro3,1"),
  233. */
  234. {
  235. .callback = dmi_disable_osi_linux,
  236. .ident = "Apple",
  237. .matches = {
  238. DMI_MATCH(DMI_SYS_VENDOR, "Apple Computer, Inc."),
  239. },
  240. },
  241. /*
  242. * Disable OSI(Linux) warnings on all "BenQ"
  243. *
  244. * _OSI(Linux) confirmed to be a NOP:
  245. * DMI_MATCH(DMI_PRODUCT_NAME, "Joybook S31"),
  246. */
  247. {
  248. .callback = dmi_disable_osi_linux,
  249. .ident = "BenQ",
  250. .matches = {
  251. DMI_MATCH(DMI_SYS_VENDOR, "BenQ"),
  252. },
  253. },
  254. /*
  255. * Disable OSI(Linux) warnings on all "Clevo Co."
  256. *
  257. * _OSI(Linux) confirmed to be a NOP:
  258. * DMI_MATCH(DMI_PRODUCT_NAME, "M570RU"),
  259. */
  260. {
  261. .callback = dmi_disable_osi_linux,
  262. .ident = "Clevo",
  263. .matches = {
  264. DMI_MATCH(DMI_SYS_VENDOR, "Clevo Co."),
  265. },
  266. },
  267. /*
  268. * Disable OSI(Linux) warnings on all "COMPAL"
  269. *
  270. * _OSI(Linux) confirmed to be a NOP:
  271. * DMI_MATCH(DMI_BOARD_NAME, "HEL8X"),
  272. * _OSI(Linux) unknown effect:
  273. * DMI_MATCH(DMI_BOARD_NAME, "IFL91"),
  274. */
  275. {
  276. .callback = dmi_unknown_osi_linux,
  277. .ident = "Compal",
  278. .matches = {
  279. DMI_MATCH(DMI_BIOS_VENDOR, "COMPAL"),
  280. },
  281. },
  282. { /* OSI(Linux) touches USB, breaks suspend to disk */
  283. .callback = dmi_disable_osi_linux,
  284. .ident = "Dell Dimension 5150",
  285. .matches = {
  286. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  287. DMI_MATCH(DMI_PRODUCT_NAME, "Dell DM051"),
  288. },
  289. },
  290. { /* OSI(Linux) is a NOP */
  291. .callback = dmi_disable_osi_linux,
  292. .ident = "Dell",
  293. .matches = {
  294. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  295. DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1501"),
  296. },
  297. },
  298. { /* OSI(Linux) effect unknown */
  299. .callback = dmi_unknown_osi_linux,
  300. .ident = "Dell",
  301. .matches = {
  302. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  303. DMI_MATCH(DMI_PRODUCT_NAME, "Latitude D830"),
  304. },
  305. },
  306. { /* OSI(Linux) effect unknown */
  307. .callback = dmi_unknown_osi_linux,
  308. .ident = "Dell",
  309. .matches = {
  310. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  311. DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex GX620"),
  312. },
  313. },
  314. { /* OSI(Linux) effect unknown */
  315. .callback = dmi_unknown_osi_linux,
  316. .ident = "Dell",
  317. .matches = {
  318. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  319. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 1900"),
  320. },
  321. },
  322. { /* OSI(Linux) touches USB */
  323. .callback = dmi_disable_osi_linux,
  324. .ident = "Dell",
  325. .matches = {
  326. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  327. DMI_MATCH(DMI_PRODUCT_NAME, "Precision WorkStation 390"),
  328. },
  329. },
  330. { /* OSI(Linux) is a NOP */
  331. .callback = dmi_disable_osi_linux,
  332. .ident = "Dell Vostro 1000",
  333. .matches = {
  334. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  335. DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1000"),
  336. },
  337. },
  338. { /* OSI(Linux) effect unknown */
  339. .callback = dmi_unknown_osi_linux,
  340. .ident = "Dell",
  341. .matches = {
  342. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  343. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge SC440"),
  344. },
  345. },
  346. { /* OSI(Linux) effect unknown */
  347. .callback = dmi_unknown_osi_linux,
  348. .ident = "Dialogue Flybook V5",
  349. .matches = {
  350. DMI_MATCH(DMI_SYS_VENDOR, "Dialogue Technology Corporation"),
  351. DMI_MATCH(DMI_PRODUCT_NAME, "Flybook V5"),
  352. },
  353. },
  354. /*
  355. * Disable OSI(Linux) warnings on all "FUJITSU SIEMENS"
  356. *
  357. * _OSI(Linux) disables latest Windows BIOS code:
  358. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pa 2510"),
  359. * _OSI(Linux) confirmed to be a NOP:
  360. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1536"),
  361. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1556"),
  362. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Xi 1546"),
  363. * _OSI(Linux) unknown effect:
  364. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo M1425"),
  365. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo Si 1520"),
  366. * DMI_MATCH(DMI_PRODUCT_NAME, "ESPRIMO Mobile V5505"),
  367. */
  368. {
  369. .callback = dmi_disable_osi_linux,
  370. .ident = "Fujitsu Siemens",
  371. .matches = {
  372. DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
  373. },
  374. },
  375. /*
  376. * Disable OSI(Linux) warnings on all "Hewlett-Packard"
  377. *
  378. * _OSI(Linux) confirmed to be a NOP:
  379. * .ident = "HP Pavilion tx 1000"
  380. * DMI_MATCH(DMI_BOARD_NAME, "30BF"),
  381. * .ident = "HP Pavilion dv2000"
  382. * DMI_MATCH(DMI_BOARD_NAME, "30B5"),
  383. * .ident = "HP Pavilion dv5000",
  384. * DMI_MATCH(DMI_BOARD_NAME, "30A7"),
  385. * .ident = "HP Pavilion dv6300 30BC",
  386. * DMI_MATCH(DMI_BOARD_NAME, "30BC"),
  387. * .ident = "HP Pavilion dv6000",
  388. * DMI_MATCH(DMI_BOARD_NAME, "30B7"),
  389. * DMI_MATCH(DMI_BOARD_NAME, "30B8"),
  390. * .ident = "HP Pavilion dv9000",
  391. * DMI_MATCH(DMI_BOARD_NAME, "30B9"),
  392. * .ident = "HP Pavilion dv9500",
  393. * DMI_MATCH(DMI_BOARD_NAME, "30CB"),
  394. * .ident = "HP/Compaq Presario C500",
  395. * DMI_MATCH(DMI_BOARD_NAME, "30C6"),
  396. * .ident = "HP/Compaq Presario F500",
  397. * DMI_MATCH(DMI_BOARD_NAME, "30D3"),
  398. * _OSI(Linux) unknown effect:
  399. * .ident = "HP Pavilion dv6500",
  400. * DMI_MATCH(DMI_BOARD_NAME, "30D0"),
  401. */
  402. {
  403. .callback = dmi_disable_osi_linux,
  404. .ident = "Hewlett-Packard",
  405. .matches = {
  406. DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
  407. },
  408. },
  409. /*
  410. * Lenovo has a mix of systems OSI(Linux) situations
  411. * and thus we can not wildcard the vendor.
  412. *
  413. * _OSI(Linux) helps sound
  414. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  415. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  416. * _OSI(Linux) is a NOP:
  417. * DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  418. */
  419. {
  420. .callback = dmi_enable_osi_linux,
  421. .ident = "Lenovo ThinkPad R61",
  422. .matches = {
  423. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  424. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  425. },
  426. },
  427. {
  428. .callback = dmi_enable_osi_linux,
  429. .ident = "Lenovo ThinkPad T61",
  430. .matches = {
  431. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  432. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  433. },
  434. },
  435. {
  436. .callback = dmi_unknown_osi_linux,
  437. .ident = "Lenovo 3000 V100",
  438. .matches = {
  439. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  440. DMI_MATCH(DMI_PRODUCT_VERSION, "LENOVO3000 V100"),
  441. },
  442. },
  443. {
  444. .callback = dmi_disable_osi_linux,
  445. .ident = "Lenovo 3000 N100",
  446. .matches = {
  447. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  448. DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  449. },
  450. },
  451. /*
  452. * Disable OSI(Linux) warnings on all "LG Electronics"
  453. *
  454. * _OSI(Linux) confirmed to be a NOP:
  455. * DMI_MATCH(DMI_PRODUCT_NAME, "P1-J150B"),
  456. */
  457. {
  458. .callback = dmi_disable_osi_linux,
  459. .ident = "LG",
  460. .matches = {
  461. DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
  462. },
  463. },
  464. /* NEC - OSI(Linux) effect unknown */
  465. {
  466. .callback = dmi_unknown_osi_linux,
  467. .ident = "NEC VERSA M360",
  468. .matches = {
  469. DMI_MATCH(DMI_SYS_VENDOR, "NEC Computers SAS"),
  470. DMI_MATCH(DMI_PRODUCT_NAME, "NEC VERSA M360"),
  471. },
  472. },
  473. /*
  474. * Disable OSI(Linux) warnings on all "Samsung Electronics"
  475. *
  476. * OSI(Linux) disables PNP0C32 and other BIOS code for Windows:
  477. * DMI_MATCH(DMI_PRODUCT_NAME, "R40P/R41P"),
  478. * DMI_MATCH(DMI_PRODUCT_NAME, "R59P/R60P/R61P"),
  479. */
  480. {
  481. .callback = dmi_disable_osi_linux,
  482. .ident = "Samsung",
  483. .matches = {
  484. DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
  485. },
  486. },
  487. /*
  488. * Disable OSI(Linux) warnings on all "Sony Corporation"
  489. *
  490. * _OSI(Linux) is a NOP:
  491. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ650N"),
  492. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ38GP_C"),
  493. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-TZ21MN_N"),
  494. * _OSI(Linux) unknown effect:
  495. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ11M"),
  496. */
  497. {
  498. .callback = dmi_unknown_osi_linux,
  499. .ident = "Sony",
  500. .matches = {
  501. DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
  502. },
  503. },
  504. /*
  505. * Disable OSI(Linux) warnings on all "TOSHIBA"
  506. *
  507. * _OSI(Linux) breaks sound (bugzilla 7787):
  508. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P100"),
  509. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P105"),
  510. * _OSI(Linux) is a NOP:
  511. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A100"),
  512. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A210"),
  513. * _OSI(Linux) unknown effect:
  514. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A135"),
  515. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A200"),
  516. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P205"),
  517. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite U305"),
  518. */
  519. {
  520. .callback = dmi_disable_osi_linux,
  521. .ident = "Toshiba",
  522. .matches = {
  523. DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
  524. },
  525. },
  526. {}
  527. };
  528. #endif /* CONFIG_DMI */