blacklist.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  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. {""}
  69. };
  70. #if CONFIG_ACPI_BLACKLIST_YEAR
  71. static int __init blacklist_by_year(void)
  72. {
  73. int year = dmi_get_year(DMI_BIOS_DATE);
  74. /* Doesn't exist? Likely an old system */
  75. if (year == -1) {
  76. printk(KERN_ERR PREFIX "no DMI BIOS year, "
  77. "acpi=force is required to enable ACPI\n" );
  78. return 1;
  79. }
  80. /* 0? Likely a buggy new BIOS */
  81. if (year == 0) {
  82. printk(KERN_ERR PREFIX "DMI BIOS year==0, "
  83. "assuming ACPI-capable machine\n" );
  84. return 0;
  85. }
  86. if (year < CONFIG_ACPI_BLACKLIST_YEAR) {
  87. printk(KERN_ERR PREFIX "BIOS age (%d) fails cutoff (%d), "
  88. "acpi=force is required to enable ACPI\n",
  89. year, CONFIG_ACPI_BLACKLIST_YEAR);
  90. return 1;
  91. }
  92. return 0;
  93. }
  94. #else
  95. static inline int blacklist_by_year(void)
  96. {
  97. return 0;
  98. }
  99. #endif
  100. int __init acpi_blacklisted(void)
  101. {
  102. int i = 0;
  103. int blacklisted = 0;
  104. struct acpi_table_header table_header;
  105. while (acpi_blacklist[i].oem_id[0] != '\0') {
  106. if (acpi_get_table_header(acpi_blacklist[i].table, 0, &table_header)) {
  107. i++;
  108. continue;
  109. }
  110. if (strncmp(acpi_blacklist[i].oem_id, table_header.oem_id, 6)) {
  111. i++;
  112. continue;
  113. }
  114. if (strncmp
  115. (acpi_blacklist[i].oem_table_id, table_header.oem_table_id,
  116. 8)) {
  117. i++;
  118. continue;
  119. }
  120. if ((acpi_blacklist[i].oem_revision_predicate == all_versions)
  121. || (acpi_blacklist[i].oem_revision_predicate ==
  122. less_than_or_equal
  123. && table_header.oem_revision <=
  124. acpi_blacklist[i].oem_revision)
  125. || (acpi_blacklist[i].oem_revision_predicate ==
  126. greater_than_or_equal
  127. && table_header.oem_revision >=
  128. acpi_blacklist[i].oem_revision)
  129. || (acpi_blacklist[i].oem_revision_predicate == equal
  130. && table_header.oem_revision ==
  131. acpi_blacklist[i].oem_revision)) {
  132. printk(KERN_ERR PREFIX
  133. "Vendor \"%6.6s\" System \"%8.8s\" "
  134. "Revision 0x%x has a known ACPI BIOS problem.\n",
  135. acpi_blacklist[i].oem_id,
  136. acpi_blacklist[i].oem_table_id,
  137. acpi_blacklist[i].oem_revision);
  138. printk(KERN_ERR PREFIX
  139. "Reason: %s. This is a %s error\n",
  140. acpi_blacklist[i].reason,
  141. (acpi_blacklist[i].
  142. is_critical_error ? "non-recoverable" :
  143. "recoverable"));
  144. blacklisted = acpi_blacklist[i].is_critical_error;
  145. break;
  146. } else {
  147. i++;
  148. }
  149. }
  150. blacklisted += blacklist_by_year();
  151. dmi_check_system(acpi_osi_dmi_table);
  152. return blacklisted;
  153. }
  154. #ifdef CONFIG_DMI
  155. static int __init dmi_enable_osi_linux(const struct dmi_system_id *d)
  156. {
  157. acpi_dmi_osi_linux(1, d); /* enable */
  158. return 0;
  159. }
  160. static int __init dmi_disable_osi_linux(const struct dmi_system_id *d)
  161. {
  162. acpi_dmi_osi_linux(0, d); /* disable */
  163. return 0;
  164. }
  165. static int __init dmi_unknown_osi_linux(const struct dmi_system_id *d)
  166. {
  167. acpi_dmi_osi_linux(-1, d); /* unknown */
  168. return 0;
  169. }
  170. /*
  171. * Most BIOS that invoke OSI(Linux) do nothing with it.
  172. * But some cause Linux to break.
  173. * Only a couple use it to make Linux run better.
  174. *
  175. * Thus, Linux should continue to disable OSI(Linux) by default,
  176. * should continue to discourage BIOS writers from using it, and
  177. * should whitelist the few existing systems that require it.
  178. *
  179. * If it appears clear a vendor isn't using OSI(Linux)
  180. * for anything constructive, blacklist them by name to disable
  181. * unnecessary dmesg warnings on all of their products.
  182. */
  183. static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
  184. /*
  185. * Disable OSI(Linux) warnings on all "Acer, inc."
  186. *
  187. * _OSI(Linux) disables the latest Windows BIOS code:
  188. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 3100"),
  189. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5050"),
  190. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5100"),
  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 5610"),
  206. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720Z"),
  207. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 5520"),
  208. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 6460"),
  209. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 7510"),
  210. * DMI_MATCH(DMI_PRODUCT_NAME, "Extensa 5220"),
  211. *
  212. * _OSI(Linux) is a NOP:
  213. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5315"),
  214. */
  215. {
  216. .callback = dmi_disable_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. * Disable OSI(Linux) warnings on all "Apple Inc."
  225. *
  226. * _OSI(Linux) confirmed to be a NOP:
  227. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook1,1"),
  228. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook2,1"),
  229. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro2,2"),
  230. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro3,1"),
  231. * _OSI(Linux) effect unknown:
  232. * DMI_MATCH(DMI_PRODUCT_NAME, "MacPro2,1"),
  233. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro1,1"),
  234. */
  235. {
  236. .callback = dmi_disable_osi_linux,
  237. .ident = "Apple",
  238. .matches = {
  239. DMI_MATCH(DMI_SYS_VENDOR, "Apple"),
  240. },
  241. },
  242. /*
  243. * Disable OSI(Linux) warnings on all "BenQ"
  244. *
  245. * _OSI(Linux) confirmed to be a NOP:
  246. * DMI_MATCH(DMI_PRODUCT_NAME, "Joybook S31"),
  247. */
  248. {
  249. .callback = dmi_disable_osi_linux,
  250. .ident = "BenQ",
  251. .matches = {
  252. DMI_MATCH(DMI_SYS_VENDOR, "BenQ"),
  253. },
  254. },
  255. /*
  256. * Disable OSI(Linux) warnings on all "Clevo Co."
  257. *
  258. * _OSI(Linux) confirmed to be a NOP:
  259. * DMI_MATCH(DMI_PRODUCT_NAME, "M570RU"),
  260. */
  261. {
  262. .callback = dmi_disable_osi_linux,
  263. .ident = "Clevo",
  264. .matches = {
  265. DMI_MATCH(DMI_SYS_VENDOR, "Clevo Co."),
  266. },
  267. },
  268. /*
  269. * Disable OSI(Linux) warnings on all "COMPAL"
  270. *
  271. * _OSI(Linux) confirmed to be a NOP:
  272. * DMI_MATCH(DMI_BOARD_NAME, "HEL8X"),
  273. * _OSI(Linux) unknown effect:
  274. * DMI_MATCH(DMI_BOARD_NAME, "IFL91"),
  275. */
  276. {
  277. .callback = dmi_disable_osi_linux,
  278. .ident = "Compal",
  279. .matches = {
  280. DMI_MATCH(DMI_BIOS_VENDOR, "COMPAL"),
  281. },
  282. },
  283. { /* OSI(Linux) touches USB, unknown side-effect */
  284. .callback = dmi_disable_osi_linux,
  285. .ident = "Dell Dimension 5150",
  286. .matches = {
  287. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  288. DMI_MATCH(DMI_PRODUCT_NAME, "Dell DM051"),
  289. },
  290. },
  291. { /* OSI(Linux) is a NOP */
  292. .callback = dmi_disable_osi_linux,
  293. .ident = "Dell i1501",
  294. .matches = {
  295. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  296. DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1501"),
  297. },
  298. },
  299. { /* OSI(Linux) effect unknown */
  300. .callback = dmi_unknown_osi_linux,
  301. .ident = "Dell Latitude D830",
  302. .matches = {
  303. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  304. DMI_MATCH(DMI_PRODUCT_NAME, "Latitude D830"),
  305. },
  306. },
  307. { /* OSI(Linux) effect unknown */
  308. .callback = dmi_unknown_osi_linux,
  309. .ident = "Dell OP GX620",
  310. .matches = {
  311. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  312. DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex GX620"),
  313. },
  314. },
  315. { /* OSI(Linux) effect unknown */
  316. .callback = dmi_unknown_osi_linux,
  317. .ident = "Dell PE 1900",
  318. .matches = {
  319. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  320. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 1900"),
  321. },
  322. },
  323. { /* OSI(Linux) is a NOP */
  324. .callback = dmi_disable_osi_linux,
  325. .ident = "Dell PE R200",
  326. .matches = {
  327. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  328. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge R200"),
  329. },
  330. },
  331. { /* OSI(Linux) touches USB */
  332. .callback = dmi_disable_osi_linux,
  333. .ident = "Dell PR 390",
  334. .matches = {
  335. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  336. DMI_MATCH(DMI_PRODUCT_NAME, "Precision WorkStation 390"),
  337. },
  338. },
  339. { /* OSI(Linux) is a NOP */
  340. .callback = dmi_disable_osi_linux,
  341. .ident = "Dell Vostro 1000",
  342. .matches = {
  343. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  344. DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1000"),
  345. },
  346. },
  347. { /* OSI(Linux) effect unknown */
  348. .callback = dmi_unknown_osi_linux,
  349. .ident = "Dell PE SC440",
  350. .matches = {
  351. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  352. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge SC440"),
  353. },
  354. },
  355. { /* OSI(Linux) effect unknown */
  356. .callback = dmi_unknown_osi_linux,
  357. .ident = "Dialogue Flybook V5",
  358. .matches = {
  359. DMI_MATCH(DMI_SYS_VENDOR, "Dialogue Technology Corporation"),
  360. DMI_MATCH(DMI_PRODUCT_NAME, "Flybook V5"),
  361. },
  362. },
  363. /*
  364. * Disable OSI(Linux) warnings on all "FUJITSU SIEMENS"
  365. *
  366. * _OSI(Linux) disables latest Windows BIOS code:
  367. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pa 2510"),
  368. * _OSI(Linux) confirmed to be a NOP:
  369. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1536"),
  370. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1556"),
  371. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Xi 1546"),
  372. * _OSI(Linux) unknown effect:
  373. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo M1425"),
  374. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo Si 1520"),
  375. * DMI_MATCH(DMI_PRODUCT_NAME, "ESPRIMO Mobile V5505"),
  376. */
  377. {
  378. .callback = dmi_disable_osi_linux,
  379. .ident = "Fujitsu Siemens",
  380. .matches = {
  381. DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
  382. },
  383. },
  384. /*
  385. * Disable OSI(Linux) warnings on all "Hewlett-Packard"
  386. *
  387. * _OSI(Linux) confirmed to be a NOP:
  388. * .ident = "HP Pavilion tx 1000"
  389. * DMI_MATCH(DMI_BOARD_NAME, "30BF"),
  390. * .ident = "HP Pavilion dv2000"
  391. * DMI_MATCH(DMI_BOARD_NAME, "30B5"),
  392. * .ident = "HP Pavilion dv5000",
  393. * DMI_MATCH(DMI_BOARD_NAME, "30A7"),
  394. * .ident = "HP Pavilion dv6300 30BC",
  395. * DMI_MATCH(DMI_BOARD_NAME, "30BC"),
  396. * .ident = "HP Pavilion dv6000",
  397. * DMI_MATCH(DMI_BOARD_NAME, "30B7"),
  398. * DMI_MATCH(DMI_BOARD_NAME, "30B8"),
  399. * .ident = "HP Pavilion dv9000",
  400. * DMI_MATCH(DMI_BOARD_NAME, "30B9"),
  401. * .ident = "HP Pavilion dv9500",
  402. * DMI_MATCH(DMI_BOARD_NAME, "30CB"),
  403. * .ident = "HP/Compaq Presario C500",
  404. * DMI_MATCH(DMI_BOARD_NAME, "30C6"),
  405. * .ident = "HP/Compaq Presario F500",
  406. * DMI_MATCH(DMI_BOARD_NAME, "30D3"),
  407. * _OSI(Linux) unknown effect:
  408. * .ident = "HP Pavilion dv6500",
  409. * DMI_MATCH(DMI_BOARD_NAME, "30D0"),
  410. */
  411. {
  412. .callback = dmi_disable_osi_linux,
  413. .ident = "Hewlett-Packard",
  414. .matches = {
  415. DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
  416. },
  417. },
  418. /*
  419. * Lenovo has a mix of systems OSI(Linux) situations
  420. * and thus we can not wildcard the vendor.
  421. *
  422. * _OSI(Linux) helps sound
  423. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  424. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  425. * _OSI(Linux) is a NOP:
  426. * DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  427. * _OSI(Linux) effect unknown
  428. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X61"),
  429. */
  430. {
  431. .callback = dmi_enable_osi_linux,
  432. .ident = "Lenovo ThinkPad R61",
  433. .matches = {
  434. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  435. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  436. },
  437. },
  438. {
  439. .callback = dmi_enable_osi_linux,
  440. .ident = "Lenovo ThinkPad T61",
  441. .matches = {
  442. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  443. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  444. },
  445. },
  446. {
  447. .callback = dmi_unknown_osi_linux,
  448. .ident = "Lenovo ThinkPad X61",
  449. .matches = {
  450. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  451. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X61"),
  452. },
  453. },
  454. {
  455. .callback = dmi_unknown_osi_linux,
  456. .ident = "Lenovo 3000 V100",
  457. .matches = {
  458. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  459. DMI_MATCH(DMI_PRODUCT_VERSION, "LENOVO3000 V100"),
  460. },
  461. },
  462. {
  463. .callback = dmi_disable_osi_linux,
  464. .ident = "Lenovo 3000 N100",
  465. .matches = {
  466. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  467. DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  468. },
  469. },
  470. /*
  471. * Disable OSI(Linux) warnings on all "LG Electronics"
  472. *
  473. * _OSI(Linux) confirmed to be a NOP:
  474. * DMI_MATCH(DMI_PRODUCT_NAME, "P1-J150B"),
  475. * with DMI_MATCH(DMI_BOARD_NAME, "ROCKY"),
  476. *
  477. * unknown:
  478. * DMI_MATCH(DMI_PRODUCT_NAME, "S1-MDGDG"),
  479. * with DMI_MATCH(DMI_BOARD_NAME, "ROCKY"),
  480. */
  481. {
  482. .callback = dmi_disable_osi_linux,
  483. .ident = "LG",
  484. .matches = {
  485. DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
  486. },
  487. },
  488. /* NEC - OSI(Linux) effect unknown */
  489. {
  490. .callback = dmi_unknown_osi_linux,
  491. .ident = "NEC VERSA M360",
  492. .matches = {
  493. DMI_MATCH(DMI_SYS_VENDOR, "NEC Computers SAS"),
  494. DMI_MATCH(DMI_PRODUCT_NAME, "NEC VERSA M360"),
  495. },
  496. },
  497. /* Panasonic */
  498. {
  499. .callback = dmi_unknown_osi_linux,
  500. .ident = "Panasonic",
  501. .matches = {
  502. DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
  503. /* Toughbook CF-52 */
  504. DMI_MATCH(DMI_PRODUCT_NAME, "CF-52CCABVBG"),
  505. },
  506. },
  507. /*
  508. * Disable OSI(Linux) warnings on all "Samsung Electronics"
  509. *
  510. * OSI(Linux) disables PNP0C32 and other BIOS code for Windows:
  511. * DMI_MATCH(DMI_PRODUCT_NAME, "R40P/R41P"),
  512. * DMI_MATCH(DMI_PRODUCT_NAME, "R59P/R60P/R61P"),
  513. */
  514. {
  515. .callback = dmi_disable_osi_linux,
  516. .ident = "Samsung",
  517. .matches = {
  518. DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
  519. },
  520. },
  521. /*
  522. * Disable OSI(Linux) warnings on all "Sony Corporation"
  523. *
  524. * _OSI(Linux) is a NOP:
  525. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ650N"),
  526. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ38GP_C"),
  527. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-TZ21MN_N"),
  528. * _OSI(Linux) unknown effect:
  529. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ11M"),
  530. */
  531. {
  532. .callback = dmi_disable_osi_linux,
  533. .ident = "Sony",
  534. .matches = {
  535. DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
  536. },
  537. },
  538. /*
  539. * Disable OSI(Linux) warnings on all "TOSHIBA"
  540. *
  541. * _OSI(Linux) breaks sound (bugzilla 7787):
  542. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P100"),
  543. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P105"),
  544. * _OSI(Linux) is a NOP:
  545. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A100"),
  546. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A210"),
  547. * _OSI(Linux) unknown effect:
  548. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A135"),
  549. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A200"),
  550. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P205"),
  551. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite U305"),
  552. */
  553. {
  554. .callback = dmi_disable_osi_linux,
  555. .ident = "Toshiba",
  556. .matches = {
  557. DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
  558. },
  559. },
  560. {}
  561. };
  562. #endif /* CONFIG_DMI */