blacklist.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  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. static int __init dmi_disable_osi_vista(const struct dmi_system_id *d)
  171. {
  172. printk(KERN_NOTICE PREFIX "DMI detected: %s\n", d->ident);
  173. acpi_osi_setup("!Windows 2006");
  174. return 0;
  175. }
  176. /*
  177. * Most BIOS that invoke OSI(Linux) do nothing with it.
  178. * But some cause Linux to break.
  179. * Only a couple use it to make Linux run better.
  180. *
  181. * Thus, Linux should continue to disable OSI(Linux) by default,
  182. * should continue to discourage BIOS writers from using it, and
  183. * should whitelist the few existing systems that require it.
  184. *
  185. * If it appears clear a vendor isn't using OSI(Linux)
  186. * for anything constructive, blacklist them by name to disable
  187. * unnecessary dmesg warnings on all of their products.
  188. */
  189. static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
  190. /*
  191. * Disable OSI(Linux) warnings on all "Acer, inc."
  192. *
  193. * _OSI(Linux) disables the latest Windows BIOS code:
  194. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 3100"),
  195. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5050"),
  196. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5100"),
  197. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5580"),
  198. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 3010"),
  199. * _OSI(Linux) effect unknown:
  200. * DMI_MATCH(DMI_PRODUCT_NAME, "Ferrari 5000"),
  201. */
  202. /*
  203. * note that dmi_check_system() uses strstr()
  204. * to match sub-strings rather than !strcmp(),
  205. * so "Acer" below matches "Acer, inc." above.
  206. */
  207. /*
  208. * Disable OSI(Linux) warnings on all "Acer"
  209. *
  210. * _OSI(Linux) effect unknown:
  211. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"),
  212. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720Z"),
  213. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 5520"),
  214. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 6460"),
  215. * DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 7510"),
  216. *
  217. * _OSI(Linux) is a NOP:
  218. * DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5315"),
  219. * DMI_MATCH(DMI_PRODUCT_NAME, "Extensa 5220"),
  220. */
  221. {
  222. .callback = dmi_disable_osi_linux,
  223. .ident = "Acer",
  224. .matches = {
  225. DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
  226. },
  227. },
  228. /*
  229. * Disable OSI(Linux) warnings on all "Apple Computer, Inc."
  230. * Disable OSI(Linux) warnings on all "Apple Inc."
  231. *
  232. * _OSI(Linux) confirmed to be a NOP:
  233. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook1,1"),
  234. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBook2,1"),
  235. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro2,2"),
  236. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro3,1"),
  237. * _OSI(Linux) effect unknown:
  238. * DMI_MATCH(DMI_PRODUCT_NAME, "MacPro2,1"),
  239. * DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro1,1"),
  240. */
  241. {
  242. .callback = dmi_disable_osi_linux,
  243. .ident = "Apple",
  244. .matches = {
  245. DMI_MATCH(DMI_SYS_VENDOR, "Apple"),
  246. },
  247. },
  248. /*
  249. * Disable OSI(Linux) warnings on all "BenQ"
  250. *
  251. * _OSI(Linux) confirmed to be a NOP:
  252. * DMI_MATCH(DMI_PRODUCT_NAME, "Joybook S31"),
  253. */
  254. {
  255. .callback = dmi_disable_osi_linux,
  256. .ident = "BenQ",
  257. .matches = {
  258. DMI_MATCH(DMI_SYS_VENDOR, "BenQ"),
  259. },
  260. },
  261. /*
  262. * Disable OSI(Linux) warnings on all "Clevo Co."
  263. *
  264. * _OSI(Linux) confirmed to be a NOP:
  265. * DMI_MATCH(DMI_PRODUCT_NAME, "M570RU"),
  266. */
  267. {
  268. .callback = dmi_disable_osi_linux,
  269. .ident = "Clevo",
  270. .matches = {
  271. DMI_MATCH(DMI_SYS_VENDOR, "Clevo Co."),
  272. },
  273. },
  274. /*
  275. * Disable OSI(Linux) warnings on all "COMPAL"
  276. *
  277. * _OSI(Linux) confirmed to be a NOP:
  278. * DMI_MATCH(DMI_BOARD_NAME, "HEL8X"),
  279. * _OSI(Linux) unknown effect:
  280. * DMI_MATCH(DMI_BOARD_NAME, "IFL91"),
  281. */
  282. {
  283. .callback = dmi_disable_osi_linux,
  284. .ident = "Compal",
  285. .matches = {
  286. DMI_MATCH(DMI_BIOS_VENDOR, "COMPAL"),
  287. },
  288. },
  289. { /* OSI(Linux) touches USB, unknown side-effect */
  290. .callback = dmi_disable_osi_linux,
  291. .ident = "Dell Dimension 5150",
  292. .matches = {
  293. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  294. DMI_MATCH(DMI_PRODUCT_NAME, "Dell DM051"),
  295. },
  296. },
  297. { /* OSI(Linux) is a NOP */
  298. .callback = dmi_disable_osi_linux,
  299. .ident = "Dell i1501",
  300. .matches = {
  301. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  302. DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1501"),
  303. },
  304. },
  305. { /* OSI(Linux) effect unknown */
  306. .callback = dmi_unknown_osi_linux,
  307. .ident = "Dell Latitude D830",
  308. .matches = {
  309. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  310. DMI_MATCH(DMI_PRODUCT_NAME, "Latitude D830"),
  311. },
  312. },
  313. { /* OSI(Linux) effect unknown */
  314. .callback = dmi_unknown_osi_linux,
  315. .ident = "Dell OptiPlex GX620",
  316. .matches = {
  317. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  318. DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex GX620"),
  319. },
  320. },
  321. { /* OSI(Linux) causes some USB initialization to not run */
  322. .callback = dmi_unknown_osi_linux,
  323. .ident = "Dell OptiPlex 755",
  324. .matches = {
  325. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  326. DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 755"),
  327. },
  328. },
  329. { /* OSI(Linux) effect unknown */
  330. .callback = dmi_unknown_osi_linux,
  331. .ident = "Dell PE 1900",
  332. .matches = {
  333. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  334. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 1900"),
  335. },
  336. },
  337. { /* OSI(Linux) is a NOP */
  338. .callback = dmi_unknown_osi_linux,
  339. .ident = "Dell PE 1950",
  340. .matches = {
  341. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  342. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 1950"),
  343. },
  344. },
  345. { /* OSI(Linux) is a NOP */
  346. .callback = dmi_disable_osi_linux,
  347. .ident = "Dell PE R200",
  348. .matches = {
  349. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  350. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge R200"),
  351. },
  352. },
  353. { /* OSI(Linux) touches USB */
  354. .callback = dmi_disable_osi_linux,
  355. .ident = "Dell PR 390",
  356. .matches = {
  357. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  358. DMI_MATCH(DMI_PRODUCT_NAME, "Precision WorkStation 390"),
  359. },
  360. },
  361. { /* OSI(Linux) touches USB */
  362. .callback = dmi_unknown_osi_linux,
  363. .ident = "Dell PR 390",
  364. .matches = {
  365. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  366. DMI_MATCH(DMI_PRODUCT_NAME, "Precision WorkStation 690"),
  367. },
  368. },
  369. { /* OSI(Linux) unknown - ASL looks benign, but may effect dock/SMM */
  370. .callback = dmi_unknown_osi_linux,
  371. .ident = "Dell PR M4300",
  372. .matches = {
  373. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  374. DMI_MATCH(DMI_PRODUCT_NAME, "Precision M4300"),
  375. },
  376. },
  377. { /* OSI(Linux) is a NOP */
  378. .callback = dmi_disable_osi_linux,
  379. .ident = "Dell Vostro 1000",
  380. .matches = {
  381. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  382. DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 1000"),
  383. },
  384. },
  385. { /* OSI(Linux) effect unknown */
  386. .callback = dmi_unknown_osi_linux,
  387. .ident = "Dell PE SC440",
  388. .matches = {
  389. DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  390. DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge SC440"),
  391. },
  392. },
  393. { /* OSI(Linux) effect unknown */
  394. .callback = dmi_unknown_osi_linux,
  395. .ident = "Dialogue Flybook V5",
  396. .matches = {
  397. DMI_MATCH(DMI_SYS_VENDOR, "Dialogue Technology Corporation"),
  398. DMI_MATCH(DMI_PRODUCT_NAME, "Flybook V5"),
  399. },
  400. },
  401. /*
  402. * Disable OSI(Linux) warnings on all "FUJITSU SIEMENS"
  403. *
  404. * _OSI(Linux) disables latest Windows BIOS code:
  405. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pa 2510"),
  406. * _OSI(Linux) confirmed to be a NOP:
  407. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1536"),
  408. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Pi 1556"),
  409. * DMI_MATCH(DMI_PRODUCT_NAME, "AMILO Xi 1546"),
  410. * DMI_MATCH(DMI_PRODUCT_NAME, "ESPRIMO Mobile V5505"),
  411. * _OSI(Linux) unknown effect:
  412. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo M1425"),
  413. * DMI_MATCH(DMI_PRODUCT_NAME, "Amilo Si 1520"),
  414. */
  415. {
  416. .callback = dmi_disable_osi_linux,
  417. .ident = "Fujitsu Siemens",
  418. .matches = {
  419. DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
  420. },
  421. },
  422. {
  423. .callback = dmi_disable_osi_vista,
  424. .ident = "Fujitsu Siemens",
  425. .matches = {
  426. DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),
  427. DMI_MATCH(DMI_PRODUCT_NAME, "ESPRIMO Mobile V5505"),
  428. },
  429. },
  430. /*
  431. * Disable OSI(Linux) warnings on all "Hewlett-Packard"
  432. *
  433. * _OSI(Linux) confirmed to be a NOP:
  434. * .ident = "HP Pavilion tx 1000"
  435. * DMI_MATCH(DMI_BOARD_NAME, "30BF"),
  436. * .ident = "HP Pavilion dv2000"
  437. * DMI_MATCH(DMI_BOARD_NAME, "30B5"),
  438. * .ident = "HP Pavilion dv5000",
  439. * DMI_MATCH(DMI_BOARD_NAME, "30A7"),
  440. * .ident = "HP Pavilion dv6300 30BC",
  441. * DMI_MATCH(DMI_BOARD_NAME, "30BC"),
  442. * .ident = "HP Pavilion dv6000",
  443. * DMI_MATCH(DMI_BOARD_NAME, "30B7"),
  444. * DMI_MATCH(DMI_BOARD_NAME, "30B8"),
  445. * .ident = "HP Pavilion dv9000",
  446. * DMI_MATCH(DMI_BOARD_NAME, "30B9"),
  447. * .ident = "HP Pavilion dv9500",
  448. * DMI_MATCH(DMI_BOARD_NAME, "30CB"),
  449. * .ident = "HP/Compaq Presario C500",
  450. * DMI_MATCH(DMI_BOARD_NAME, "30C6"),
  451. * .ident = "HP/Compaq Presario F500",
  452. * DMI_MATCH(DMI_BOARD_NAME, "30D3"),
  453. * _OSI(Linux) unknown effect:
  454. * .ident = "HP Pavilion dv6500",
  455. * DMI_MATCH(DMI_BOARD_NAME, "30D0"),
  456. */
  457. {
  458. .callback = dmi_disable_osi_linux,
  459. .ident = "Hewlett-Packard",
  460. .matches = {
  461. DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
  462. },
  463. },
  464. /*
  465. * Lenovo has a mix of systems OSI(Linux) situations
  466. * and thus we can not wildcard the vendor.
  467. *
  468. * _OSI(Linux) helps sound
  469. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  470. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  471. * _OSI(Linux) has Linux specific hooks
  472. * DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X61"),
  473. * _OSI(Linux) is a NOP:
  474. * DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  475. * DMI_MATCH(DMI_PRODUCT_VERSION, "LENOVO3000 V100"),
  476. */
  477. {
  478. .callback = dmi_enable_osi_linux,
  479. .ident = "Lenovo ThinkPad R61",
  480. .matches = {
  481. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  482. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad R61"),
  483. },
  484. },
  485. {
  486. .callback = dmi_enable_osi_linux,
  487. .ident = "Lenovo ThinkPad T61",
  488. .matches = {
  489. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  490. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T61"),
  491. },
  492. },
  493. {
  494. .callback = dmi_enable_osi_linux,
  495. .ident = "Lenovo ThinkPad X61",
  496. .matches = {
  497. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  498. DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X61"),
  499. },
  500. },
  501. {
  502. .callback = dmi_disable_osi_linux,
  503. .ident = "Lenovo 3000 V100",
  504. .matches = {
  505. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  506. DMI_MATCH(DMI_PRODUCT_VERSION, "LENOVO3000 V100"),
  507. },
  508. },
  509. {
  510. .callback = dmi_disable_osi_linux,
  511. .ident = "Lenovo 3000 N100",
  512. .matches = {
  513. DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  514. DMI_MATCH(DMI_PRODUCT_VERSION, "3000 N100"),
  515. },
  516. },
  517. /*
  518. * Disable OSI(Linux) warnings on all "LG Electronics"
  519. *
  520. * _OSI(Linux) confirmed to be a NOP:
  521. * DMI_MATCH(DMI_PRODUCT_NAME, "P1-J150B"),
  522. * with DMI_MATCH(DMI_BOARD_NAME, "ROCKY"),
  523. *
  524. * unknown:
  525. * DMI_MATCH(DMI_PRODUCT_NAME, "S1-MDGDG"),
  526. * with DMI_MATCH(DMI_BOARD_NAME, "ROCKY"),
  527. */
  528. {
  529. .callback = dmi_disable_osi_linux,
  530. .ident = "LG",
  531. .matches = {
  532. DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
  533. },
  534. },
  535. /* NEC - OSI(Linux) effect unknown */
  536. {
  537. .callback = dmi_unknown_osi_linux,
  538. .ident = "NEC VERSA M360",
  539. .matches = {
  540. DMI_MATCH(DMI_SYS_VENDOR, "NEC Computers SAS"),
  541. DMI_MATCH(DMI_PRODUCT_NAME, "NEC VERSA M360"),
  542. },
  543. },
  544. /* Panasonic */
  545. {
  546. .callback = dmi_unknown_osi_linux,
  547. .ident = "Panasonic",
  548. .matches = {
  549. DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
  550. /* Toughbook CF-52 */
  551. DMI_MATCH(DMI_PRODUCT_NAME, "CF-52CCABVBG"),
  552. },
  553. },
  554. /*
  555. * Disable OSI(Linux) warnings on all "Samsung Electronics"
  556. *
  557. * OSI(Linux) disables PNP0C32 and other BIOS code for Windows:
  558. * DMI_MATCH(DMI_PRODUCT_NAME, "R40P/R41P"),
  559. * DMI_MATCH(DMI_PRODUCT_NAME, "R59P/R60P/R61P"),
  560. */
  561. {
  562. .callback = dmi_disable_osi_linux,
  563. .ident = "Samsung",
  564. .matches = {
  565. DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
  566. },
  567. },
  568. /*
  569. * Disable OSI(Linux) warnings on all "Sony Corporation"
  570. *
  571. * _OSI(Linux) is a NOP:
  572. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-NR11S_S"),
  573. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ38GP_C"),
  574. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-SZ650N"),
  575. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-TZ21MN_N"),
  576. * _OSI(Linux) unknown effect:
  577. * DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ11M"),
  578. */
  579. {
  580. .callback = dmi_disable_osi_linux,
  581. .ident = "Sony",
  582. .matches = {
  583. DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
  584. },
  585. },
  586. /*
  587. * Disable OSI(Linux) warnings on all "TOSHIBA"
  588. *
  589. * _OSI(Linux) breaks sound (bugzilla 7787):
  590. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P100"),
  591. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P105"),
  592. * _OSI(Linux) is a NOP:
  593. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A100"),
  594. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A210"),
  595. * _OSI(Linux) unknown effect:
  596. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A135"),
  597. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite A200"),
  598. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P205"),
  599. * DMI_MATCH(DMI_PRODUCT_NAME, "Satellite U305"),
  600. */
  601. {
  602. .callback = dmi_disable_osi_linux,
  603. .ident = "Toshiba",
  604. .matches = {
  605. DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
  606. },
  607. },
  608. {}
  609. };
  610. #endif /* CONFIG_DMI */