i915_pci.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. /*
  2. * Copyright © 2016 Intel Corporation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice (including the next
  12. * paragraph) shall be included in all copies or substantial portions of the
  13. * Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  18. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  21. * IN THE SOFTWARE.
  22. *
  23. */
  24. #include <linux/console.h>
  25. #include <linux/vgaarb.h>
  26. #include <linux/vga_switcheroo.h>
  27. #include "i915_drv.h"
  28. #define GEN_DEFAULT_PIPEOFFSETS \
  29. .pipe_offsets = { PIPE_A_OFFSET, PIPE_B_OFFSET, \
  30. PIPE_C_OFFSET, PIPE_EDP_OFFSET }, \
  31. .trans_offsets = { TRANSCODER_A_OFFSET, TRANSCODER_B_OFFSET, \
  32. TRANSCODER_C_OFFSET, TRANSCODER_EDP_OFFSET }, \
  33. .palette_offsets = { PALETTE_A_OFFSET, PALETTE_B_OFFSET }
  34. #define GEN_CHV_PIPEOFFSETS \
  35. .pipe_offsets = { PIPE_A_OFFSET, PIPE_B_OFFSET, \
  36. CHV_PIPE_C_OFFSET }, \
  37. .trans_offsets = { TRANSCODER_A_OFFSET, TRANSCODER_B_OFFSET, \
  38. CHV_TRANSCODER_C_OFFSET, }, \
  39. .palette_offsets = { PALETTE_A_OFFSET, PALETTE_B_OFFSET, \
  40. CHV_PALETTE_C_OFFSET }
  41. #define CURSOR_OFFSETS \
  42. .cursor_offsets = { CURSOR_A_OFFSET, CURSOR_B_OFFSET, CHV_CURSOR_C_OFFSET }
  43. #define IVB_CURSOR_OFFSETS \
  44. .cursor_offsets = { CURSOR_A_OFFSET, IVB_CURSOR_B_OFFSET, IVB_CURSOR_C_OFFSET }
  45. #define BDW_COLORS \
  46. .color = { .degamma_lut_size = 512, .gamma_lut_size = 512 }
  47. #define CHV_COLORS \
  48. .color = { .degamma_lut_size = 65, .gamma_lut_size = 257 }
  49. /* Keep in gen based order, and chronological order within a gen */
  50. #define GEN2_FEATURES \
  51. .gen = 2, .num_pipes = 1, \
  52. .has_overlay = 1, .overlay_needs_physical = 1, \
  53. .has_gmch_display = 1, \
  54. .hws_needs_physical = 1, \
  55. .ring_mask = RENDER_RING, \
  56. GEN_DEFAULT_PIPEOFFSETS, \
  57. CURSOR_OFFSETS
  58. static const struct intel_device_info intel_i830_info = {
  59. GEN2_FEATURES,
  60. .platform = INTEL_I830,
  61. .is_mobile = 1, .cursor_needs_physical = 1,
  62. .num_pipes = 2, /* legal, last one wins */
  63. };
  64. static const struct intel_device_info intel_i845g_info = {
  65. GEN2_FEATURES,
  66. .platform = INTEL_I845G,
  67. };
  68. static const struct intel_device_info intel_i85x_info = {
  69. GEN2_FEATURES,
  70. .platform = INTEL_I85X, .is_mobile = 1,
  71. .num_pipes = 2, /* legal, last one wins */
  72. .cursor_needs_physical = 1,
  73. .has_fbc = 1,
  74. };
  75. static const struct intel_device_info intel_i865g_info = {
  76. GEN2_FEATURES,
  77. .platform = INTEL_I865G,
  78. };
  79. #define GEN3_FEATURES \
  80. .gen = 3, .num_pipes = 2, \
  81. .has_gmch_display = 1, \
  82. .ring_mask = RENDER_RING, \
  83. GEN_DEFAULT_PIPEOFFSETS, \
  84. CURSOR_OFFSETS
  85. static const struct intel_device_info intel_i915g_info = {
  86. GEN3_FEATURES,
  87. .platform = INTEL_I915G, .cursor_needs_physical = 1,
  88. .has_overlay = 1, .overlay_needs_physical = 1,
  89. .hws_needs_physical = 1,
  90. };
  91. static const struct intel_device_info intel_i915gm_info = {
  92. GEN3_FEATURES,
  93. .platform = INTEL_I915GM,
  94. .is_mobile = 1,
  95. .cursor_needs_physical = 1,
  96. .has_overlay = 1, .overlay_needs_physical = 1,
  97. .supports_tv = 1,
  98. .has_fbc = 1,
  99. .hws_needs_physical = 1,
  100. };
  101. static const struct intel_device_info intel_i945g_info = {
  102. GEN3_FEATURES,
  103. .platform = INTEL_I945G,
  104. .has_hotplug = 1, .cursor_needs_physical = 1,
  105. .has_overlay = 1, .overlay_needs_physical = 1,
  106. .hws_needs_physical = 1,
  107. };
  108. static const struct intel_device_info intel_i945gm_info = {
  109. GEN3_FEATURES,
  110. .platform = INTEL_I945GM, .is_mobile = 1,
  111. .has_hotplug = 1, .cursor_needs_physical = 1,
  112. .has_overlay = 1, .overlay_needs_physical = 1,
  113. .supports_tv = 1,
  114. .has_fbc = 1,
  115. .hws_needs_physical = 1,
  116. };
  117. static const struct intel_device_info intel_g33_info = {
  118. GEN3_FEATURES,
  119. .platform = INTEL_G33,
  120. .has_hotplug = 1,
  121. .has_overlay = 1,
  122. };
  123. static const struct intel_device_info intel_pineview_info = {
  124. GEN3_FEATURES,
  125. .platform = INTEL_PINEVIEW, .is_mobile = 1,
  126. .has_hotplug = 1,
  127. .has_overlay = 1,
  128. };
  129. #define GEN4_FEATURES \
  130. .gen = 4, .num_pipes = 2, \
  131. .has_hotplug = 1, \
  132. .has_gmch_display = 1, \
  133. .ring_mask = RENDER_RING, \
  134. GEN_DEFAULT_PIPEOFFSETS, \
  135. CURSOR_OFFSETS
  136. static const struct intel_device_info intel_i965g_info = {
  137. GEN4_FEATURES,
  138. .platform = INTEL_I965G,
  139. .has_overlay = 1,
  140. .hws_needs_physical = 1,
  141. };
  142. static const struct intel_device_info intel_i965gm_info = {
  143. GEN4_FEATURES,
  144. .platform = INTEL_I965GM,
  145. .is_mobile = 1, .has_fbc = 1,
  146. .has_overlay = 1,
  147. .supports_tv = 1,
  148. .hws_needs_physical = 1,
  149. };
  150. static const struct intel_device_info intel_g45_info = {
  151. GEN4_FEATURES,
  152. .platform = INTEL_G45,
  153. .has_pipe_cxsr = 1,
  154. .ring_mask = RENDER_RING | BSD_RING,
  155. };
  156. static const struct intel_device_info intel_gm45_info = {
  157. GEN4_FEATURES,
  158. .platform = INTEL_GM45,
  159. .is_mobile = 1, .has_fbc = 1,
  160. .has_pipe_cxsr = 1,
  161. .supports_tv = 1,
  162. .ring_mask = RENDER_RING | BSD_RING,
  163. };
  164. #define GEN5_FEATURES \
  165. .gen = 5, .num_pipes = 2, \
  166. .has_hotplug = 1, \
  167. .has_gmbus_irq = 1, \
  168. .ring_mask = RENDER_RING | BSD_RING, \
  169. GEN_DEFAULT_PIPEOFFSETS, \
  170. CURSOR_OFFSETS
  171. static const struct intel_device_info intel_ironlake_d_info = {
  172. GEN5_FEATURES,
  173. .platform = INTEL_IRONLAKE,
  174. };
  175. static const struct intel_device_info intel_ironlake_m_info = {
  176. GEN5_FEATURES,
  177. .platform = INTEL_IRONLAKE,
  178. .is_mobile = 1,
  179. };
  180. #define GEN6_FEATURES \
  181. .gen = 6, .num_pipes = 2, \
  182. .has_hotplug = 1, \
  183. .has_fbc = 1, \
  184. .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
  185. .has_llc = 1, \
  186. .has_rc6 = 1, \
  187. .has_rc6p = 1, \
  188. .has_gmbus_irq = 1, \
  189. .has_hw_contexts = 1, \
  190. .has_aliasing_ppgtt = 1, \
  191. GEN_DEFAULT_PIPEOFFSETS, \
  192. CURSOR_OFFSETS
  193. static const struct intel_device_info intel_sandybridge_d_info = {
  194. GEN6_FEATURES,
  195. .platform = INTEL_SANDYBRIDGE,
  196. };
  197. static const struct intel_device_info intel_sandybridge_m_info = {
  198. GEN6_FEATURES,
  199. .platform = INTEL_SANDYBRIDGE,
  200. .is_mobile = 1,
  201. };
  202. #define GEN7_FEATURES \
  203. .gen = 7, .num_pipes = 3, \
  204. .has_hotplug = 1, \
  205. .has_fbc = 1, \
  206. .ring_mask = RENDER_RING | BSD_RING | BLT_RING, \
  207. .has_llc = 1, \
  208. .has_rc6 = 1, \
  209. .has_rc6p = 1, \
  210. .has_gmbus_irq = 1, \
  211. .has_hw_contexts = 1, \
  212. .has_aliasing_ppgtt = 1, \
  213. .has_full_ppgtt = 1, \
  214. GEN_DEFAULT_PIPEOFFSETS, \
  215. IVB_CURSOR_OFFSETS
  216. static const struct intel_device_info intel_ivybridge_d_info = {
  217. GEN7_FEATURES,
  218. .platform = INTEL_IVYBRIDGE,
  219. .has_l3_dpf = 1,
  220. };
  221. static const struct intel_device_info intel_ivybridge_m_info = {
  222. GEN7_FEATURES,
  223. .platform = INTEL_IVYBRIDGE,
  224. .is_mobile = 1,
  225. .has_l3_dpf = 1,
  226. };
  227. static const struct intel_device_info intel_ivybridge_q_info = {
  228. GEN7_FEATURES,
  229. .platform = INTEL_IVYBRIDGE,
  230. .num_pipes = 0, /* legal, last one wins */
  231. .has_l3_dpf = 1,
  232. };
  233. static const struct intel_device_info intel_valleyview_info = {
  234. .platform = INTEL_VALLEYVIEW,
  235. .gen = 7,
  236. .is_lp = 1,
  237. .num_pipes = 2,
  238. .has_psr = 1,
  239. .has_runtime_pm = 1,
  240. .has_rc6 = 1,
  241. .has_gmbus_irq = 1,
  242. .has_hw_contexts = 1,
  243. .has_gmch_display = 1,
  244. .has_hotplug = 1,
  245. .has_aliasing_ppgtt = 1,
  246. .has_full_ppgtt = 1,
  247. .ring_mask = RENDER_RING | BSD_RING | BLT_RING,
  248. .display_mmio_offset = VLV_DISPLAY_BASE,
  249. GEN_DEFAULT_PIPEOFFSETS,
  250. CURSOR_OFFSETS
  251. };
  252. #define HSW_FEATURES \
  253. GEN7_FEATURES, \
  254. .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
  255. .has_ddi = 1, \
  256. .has_fpga_dbg = 1, \
  257. .has_psr = 1, \
  258. .has_resource_streamer = 1, \
  259. .has_dp_mst = 1, \
  260. .has_rc6p = 0 /* RC6p removed-by HSW */, \
  261. .has_runtime_pm = 1
  262. static const struct intel_device_info intel_haswell_info = {
  263. HSW_FEATURES,
  264. .platform = INTEL_HASWELL,
  265. .has_l3_dpf = 1,
  266. };
  267. #define BDW_FEATURES \
  268. HSW_FEATURES, \
  269. BDW_COLORS, \
  270. .has_logical_ring_contexts = 1, \
  271. .has_full_48bit_ppgtt = 1, \
  272. .has_64bit_reloc = 1
  273. static const struct intel_device_info intel_broadwell_info = {
  274. BDW_FEATURES,
  275. .gen = 8,
  276. .platform = INTEL_BROADWELL,
  277. };
  278. static const struct intel_device_info intel_broadwell_gt3_info = {
  279. BDW_FEATURES,
  280. .gen = 8,
  281. .platform = INTEL_BROADWELL,
  282. .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
  283. };
  284. static const struct intel_device_info intel_cherryview_info = {
  285. .gen = 8, .num_pipes = 3,
  286. .has_hotplug = 1,
  287. .is_lp = 1,
  288. .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING,
  289. .platform = INTEL_CHERRYVIEW,
  290. .has_64bit_reloc = 1,
  291. .has_psr = 1,
  292. .has_runtime_pm = 1,
  293. .has_resource_streamer = 1,
  294. .has_rc6 = 1,
  295. .has_gmbus_irq = 1,
  296. .has_hw_contexts = 1,
  297. .has_logical_ring_contexts = 1,
  298. .has_gmch_display = 1,
  299. .has_aliasing_ppgtt = 1,
  300. .has_full_ppgtt = 1,
  301. .display_mmio_offset = VLV_DISPLAY_BASE,
  302. GEN_CHV_PIPEOFFSETS,
  303. CURSOR_OFFSETS,
  304. CHV_COLORS,
  305. };
  306. static const struct intel_device_info intel_skylake_info = {
  307. BDW_FEATURES,
  308. .platform = INTEL_SKYLAKE,
  309. .gen = 9,
  310. .has_csr = 1,
  311. .has_guc = 1,
  312. .ddb_size = 896,
  313. };
  314. static const struct intel_device_info intel_skylake_gt3_info = {
  315. BDW_FEATURES,
  316. .platform = INTEL_SKYLAKE,
  317. .gen = 9,
  318. .has_csr = 1,
  319. .has_guc = 1,
  320. .ddb_size = 896,
  321. .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
  322. };
  323. #define GEN9_LP_FEATURES \
  324. .gen = 9, \
  325. .is_lp = 1, \
  326. .has_hotplug = 1, \
  327. .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
  328. .num_pipes = 3, \
  329. .has_64bit_reloc = 1, \
  330. .has_ddi = 1, \
  331. .has_fpga_dbg = 1, \
  332. .has_fbc = 1, \
  333. .has_runtime_pm = 1, \
  334. .has_pooled_eu = 0, \
  335. .has_csr = 1, \
  336. .has_resource_streamer = 1, \
  337. .has_rc6 = 1, \
  338. .has_dp_mst = 1, \
  339. .has_gmbus_irq = 1, \
  340. .has_hw_contexts = 1, \
  341. .has_logical_ring_contexts = 1, \
  342. .has_guc = 1, \
  343. .has_decoupled_mmio = 1, \
  344. .has_aliasing_ppgtt = 1, \
  345. .has_full_ppgtt = 1, \
  346. .has_full_48bit_ppgtt = 1, \
  347. GEN_DEFAULT_PIPEOFFSETS, \
  348. IVB_CURSOR_OFFSETS, \
  349. BDW_COLORS
  350. static const struct intel_device_info intel_broxton_info = {
  351. GEN9_LP_FEATURES,
  352. .platform = INTEL_BROXTON,
  353. .ddb_size = 512,
  354. };
  355. static const struct intel_device_info intel_geminilake_info = {
  356. GEN9_LP_FEATURES,
  357. .platform = INTEL_GEMINILAKE,
  358. .is_alpha_support = 1,
  359. .ddb_size = 1024,
  360. };
  361. static const struct intel_device_info intel_kabylake_info = {
  362. BDW_FEATURES,
  363. .platform = INTEL_KABYLAKE,
  364. .gen = 9,
  365. .has_csr = 1,
  366. .has_guc = 1,
  367. .ddb_size = 896,
  368. };
  369. static const struct intel_device_info intel_kabylake_gt3_info = {
  370. BDW_FEATURES,
  371. .platform = INTEL_KABYLAKE,
  372. .gen = 9,
  373. .has_csr = 1,
  374. .has_guc = 1,
  375. .ddb_size = 896,
  376. .ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
  377. };
  378. /*
  379. * Make sure any device matches here are from most specific to most
  380. * general. For example, since the Quanta match is based on the subsystem
  381. * and subvendor IDs, we need it to come before the more general IVB
  382. * PCI ID matches, otherwise we'll use the wrong info struct above.
  383. */
  384. static const struct pci_device_id pciidlist[] = {
  385. INTEL_I830_IDS(&intel_i830_info),
  386. INTEL_I845G_IDS(&intel_i845g_info),
  387. INTEL_I85X_IDS(&intel_i85x_info),
  388. INTEL_I865G_IDS(&intel_i865g_info),
  389. INTEL_I915G_IDS(&intel_i915g_info),
  390. INTEL_I915GM_IDS(&intel_i915gm_info),
  391. INTEL_I945G_IDS(&intel_i945g_info),
  392. INTEL_I945GM_IDS(&intel_i945gm_info),
  393. INTEL_I965G_IDS(&intel_i965g_info),
  394. INTEL_G33_IDS(&intel_g33_info),
  395. INTEL_I965GM_IDS(&intel_i965gm_info),
  396. INTEL_GM45_IDS(&intel_gm45_info),
  397. INTEL_G45_IDS(&intel_g45_info),
  398. INTEL_PINEVIEW_IDS(&intel_pineview_info),
  399. INTEL_IRONLAKE_D_IDS(&intel_ironlake_d_info),
  400. INTEL_IRONLAKE_M_IDS(&intel_ironlake_m_info),
  401. INTEL_SNB_D_IDS(&intel_sandybridge_d_info),
  402. INTEL_SNB_M_IDS(&intel_sandybridge_m_info),
  403. INTEL_IVB_Q_IDS(&intel_ivybridge_q_info), /* must be first IVB */
  404. INTEL_IVB_M_IDS(&intel_ivybridge_m_info),
  405. INTEL_IVB_D_IDS(&intel_ivybridge_d_info),
  406. INTEL_HSW_IDS(&intel_haswell_info),
  407. INTEL_VLV_IDS(&intel_valleyview_info),
  408. INTEL_BDW_GT12_IDS(&intel_broadwell_info),
  409. INTEL_BDW_GT3_IDS(&intel_broadwell_gt3_info),
  410. INTEL_BDW_RSVD_IDS(&intel_broadwell_info),
  411. INTEL_CHV_IDS(&intel_cherryview_info),
  412. INTEL_SKL_GT1_IDS(&intel_skylake_info),
  413. INTEL_SKL_GT2_IDS(&intel_skylake_info),
  414. INTEL_SKL_GT3_IDS(&intel_skylake_gt3_info),
  415. INTEL_SKL_GT4_IDS(&intel_skylake_gt3_info),
  416. INTEL_BXT_IDS(&intel_broxton_info),
  417. INTEL_GLK_IDS(&intel_geminilake_info),
  418. INTEL_KBL_GT1_IDS(&intel_kabylake_info),
  419. INTEL_KBL_GT2_IDS(&intel_kabylake_info),
  420. INTEL_KBL_GT3_IDS(&intel_kabylake_gt3_info),
  421. INTEL_KBL_GT4_IDS(&intel_kabylake_gt3_info),
  422. {0, 0, 0}
  423. };
  424. MODULE_DEVICE_TABLE(pci, pciidlist);
  425. static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
  426. {
  427. struct intel_device_info *intel_info =
  428. (struct intel_device_info *) ent->driver_data;
  429. if (IS_ALPHA_SUPPORT(intel_info) && !i915.alpha_support) {
  430. DRM_INFO("The driver support for your hardware in this kernel version is alpha quality\n"
  431. "See CONFIG_DRM_I915_ALPHA_SUPPORT or i915.alpha_support module parameter\n"
  432. "to enable support in this kernel version, or check for kernel updates.\n");
  433. return -ENODEV;
  434. }
  435. /* Only bind to function 0 of the device. Early generations
  436. * used function 1 as a placeholder for multi-head. This causes
  437. * us confusion instead, especially on the systems where both
  438. * functions have the same PCI-ID!
  439. */
  440. if (PCI_FUNC(pdev->devfn))
  441. return -ENODEV;
  442. /*
  443. * apple-gmux is needed on dual GPU MacBook Pro
  444. * to probe the panel if we're the inactive GPU.
  445. */
  446. if (vga_switcheroo_client_probe_defer(pdev))
  447. return -EPROBE_DEFER;
  448. return i915_driver_load(pdev, ent);
  449. }
  450. static void i915_pci_remove(struct pci_dev *pdev)
  451. {
  452. struct drm_device *dev = pci_get_drvdata(pdev);
  453. i915_driver_unload(dev);
  454. drm_dev_unref(dev);
  455. }
  456. static struct pci_driver i915_pci_driver = {
  457. .name = DRIVER_NAME,
  458. .id_table = pciidlist,
  459. .probe = i915_pci_probe,
  460. .remove = i915_pci_remove,
  461. .driver.pm = &i915_pm_ops,
  462. };
  463. static int __init i915_init(void)
  464. {
  465. bool use_kms = true;
  466. /*
  467. * Enable KMS by default, unless explicitly overriden by
  468. * either the i915.modeset prarameter or by the
  469. * vga_text_mode_force boot option.
  470. */
  471. if (i915.modeset == 0)
  472. use_kms = false;
  473. if (vgacon_text_force() && i915.modeset == -1)
  474. use_kms = false;
  475. if (!use_kms) {
  476. /* Silently fail loading to not upset userspace. */
  477. DRM_DEBUG_DRIVER("KMS disabled.\n");
  478. return 0;
  479. }
  480. return pci_register_driver(&i915_pci_driver);
  481. }
  482. static void __exit i915_exit(void)
  483. {
  484. if (!i915_pci_driver.driver.owner)
  485. return;
  486. pci_unregister_driver(&i915_pci_driver);
  487. }
  488. module_init(i915_init);
  489. module_exit(i915_exit);
  490. MODULE_AUTHOR("Tungsten Graphics, Inc.");
  491. MODULE_AUTHOR("Intel Corporation");
  492. MODULE_DESCRIPTION(DRIVER_DESC);
  493. MODULE_LICENSE("GPL and additional rights");