imr.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. /**
  2. * imr.c
  3. *
  4. * Copyright(c) 2013 Intel Corporation.
  5. * Copyright(c) 2015 Bryan O'Donoghue <pure.logic@nexus-software.ie>
  6. *
  7. * IMR registers define an isolated region of memory that can
  8. * be masked to prohibit certain system agents from accessing memory.
  9. * When a device behind a masked port performs an access - snooped or
  10. * not, an IMR may optionally prevent that transaction from changing
  11. * the state of memory or from getting correct data in response to the
  12. * operation.
  13. *
  14. * Write data will be dropped and reads will return 0xFFFFFFFF, the
  15. * system will reset and system BIOS will print out an error message to
  16. * inform the user that an IMR has been violated.
  17. *
  18. * This code is based on the Linux MTRR code and reference code from
  19. * Intel's Quark BSP EFI, Linux and grub code.
  20. *
  21. * See quark-x1000-datasheet.pdf for register definitions.
  22. * http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/quark-x1000-datasheet.pdf
  23. */
  24. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  25. #include <asm-generic/sections.h>
  26. #include <asm/cpu_device_id.h>
  27. #include <asm/imr.h>
  28. #include <asm/iosf_mbi.h>
  29. #include <linux/debugfs.h>
  30. #include <linux/init.h>
  31. #include <linux/mm.h>
  32. #include <linux/module.h>
  33. #include <linux/types.h>
  34. struct imr_device {
  35. struct dentry *file;
  36. bool init;
  37. struct mutex lock;
  38. int max_imr;
  39. int reg_base;
  40. };
  41. static struct imr_device imr_dev;
  42. /*
  43. * IMR read/write mask control registers.
  44. * See quark-x1000-datasheet.pdf sections 12.7.4.5 and 12.7.4.6 for
  45. * bit definitions.
  46. *
  47. * addr_hi
  48. * 31 Lock bit
  49. * 30:24 Reserved
  50. * 23:2 1 KiB aligned lo address
  51. * 1:0 Reserved
  52. *
  53. * addr_hi
  54. * 31:24 Reserved
  55. * 23:2 1 KiB aligned hi address
  56. * 1:0 Reserved
  57. */
  58. #define IMR_LOCK BIT(31)
  59. struct imr_regs {
  60. u32 addr_lo;
  61. u32 addr_hi;
  62. u32 rmask;
  63. u32 wmask;
  64. };
  65. #define IMR_NUM_REGS (sizeof(struct imr_regs)/sizeof(u32))
  66. #define IMR_SHIFT 8
  67. #define imr_to_phys(x) ((x) << IMR_SHIFT)
  68. #define phys_to_imr(x) ((x) >> IMR_SHIFT)
  69. /**
  70. * imr_is_enabled - true if an IMR is enabled false otherwise.
  71. *
  72. * Determines if an IMR is enabled based on address range and read/write
  73. * mask. An IMR set with an address range set to zero and a read/write
  74. * access mask set to all is considered to be disabled. An IMR in any
  75. * other state - for example set to zero but without read/write access
  76. * all is considered to be enabled. This definition of disabled is how
  77. * firmware switches off an IMR and is maintained in kernel for
  78. * consistency.
  79. *
  80. * @imr: pointer to IMR descriptor.
  81. * @return: true if IMR enabled false if disabled.
  82. */
  83. static inline int imr_is_enabled(struct imr_regs *imr)
  84. {
  85. return !(imr->rmask == IMR_READ_ACCESS_ALL &&
  86. imr->wmask == IMR_WRITE_ACCESS_ALL &&
  87. imr_to_phys(imr->addr_lo) == 0 &&
  88. imr_to_phys(imr->addr_hi) == 0);
  89. }
  90. /**
  91. * imr_read - read an IMR at a given index.
  92. *
  93. * Requires caller to hold imr mutex.
  94. *
  95. * @idev: pointer to imr_device structure.
  96. * @imr_id: IMR entry to read.
  97. * @imr: IMR structure representing address and access masks.
  98. * @return: 0 on success or error code passed from mbi_iosf on failure.
  99. */
  100. static int imr_read(struct imr_device *idev, u32 imr_id, struct imr_regs *imr)
  101. {
  102. u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base;
  103. int ret;
  104. ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_lo);
  105. if (ret)
  106. return ret;
  107. ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->addr_hi);
  108. if (ret)
  109. return ret;
  110. ret = iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->rmask);
  111. if (ret)
  112. return ret;
  113. return iosf_mbi_read(QRK_MBI_UNIT_MM, MBI_REG_READ, reg++, &imr->wmask);
  114. }
  115. /**
  116. * imr_write - write an IMR at a given index.
  117. *
  118. * Requires caller to hold imr mutex.
  119. * Note lock bits need to be written independently of address bits.
  120. *
  121. * @idev: pointer to imr_device structure.
  122. * @imr_id: IMR entry to write.
  123. * @imr: IMR structure representing address and access masks.
  124. * @lock: indicates if the IMR lock bit should be applied.
  125. * @return: 0 on success or error code passed from mbi_iosf on failure.
  126. */
  127. static int imr_write(struct imr_device *idev, u32 imr_id,
  128. struct imr_regs *imr, bool lock)
  129. {
  130. unsigned long flags;
  131. u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base;
  132. int ret;
  133. local_irq_save(flags);
  134. ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->addr_lo);
  135. if (ret)
  136. goto failed;
  137. ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->addr_hi);
  138. if (ret)
  139. goto failed;
  140. ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->rmask);
  141. if (ret)
  142. goto failed;
  143. ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE, reg++, imr->wmask);
  144. if (ret)
  145. goto failed;
  146. /* Lock bit must be set separately to addr_lo address bits. */
  147. if (lock) {
  148. imr->addr_lo |= IMR_LOCK;
  149. ret = iosf_mbi_write(QRK_MBI_UNIT_MM, MBI_REG_WRITE,
  150. reg - IMR_NUM_REGS, imr->addr_lo);
  151. if (ret)
  152. goto failed;
  153. }
  154. local_irq_restore(flags);
  155. return 0;
  156. failed:
  157. /*
  158. * If writing to the IOSF failed then we're in an unknown state,
  159. * likely a very bad state. An IMR in an invalid state will almost
  160. * certainly lead to a memory access violation.
  161. */
  162. local_irq_restore(flags);
  163. WARN(ret, "IOSF-MBI write fail range 0x%08x-0x%08x unreliable\n",
  164. imr_to_phys(imr->addr_lo), imr_to_phys(imr->addr_hi) + IMR_MASK);
  165. return ret;
  166. }
  167. /**
  168. * imr_dbgfs_state_show - print state of IMR registers.
  169. *
  170. * @s: pointer to seq_file for output.
  171. * @unused: unused parameter.
  172. * @return: 0 on success or error code passed from mbi_iosf on failure.
  173. */
  174. static int imr_dbgfs_state_show(struct seq_file *s, void *unused)
  175. {
  176. phys_addr_t base;
  177. phys_addr_t end;
  178. int i;
  179. struct imr_device *idev = s->private;
  180. struct imr_regs imr;
  181. size_t size;
  182. int ret = -ENODEV;
  183. mutex_lock(&idev->lock);
  184. for (i = 0; i < idev->max_imr; i++) {
  185. ret = imr_read(idev, i, &imr);
  186. if (ret)
  187. break;
  188. /*
  189. * Remember to add IMR_ALIGN bytes to size to indicate the
  190. * inherent IMR_ALIGN size bytes contained in the masked away
  191. * lower ten bits.
  192. */
  193. if (imr_is_enabled(&imr)) {
  194. base = imr_to_phys(imr.addr_lo);
  195. end = imr_to_phys(imr.addr_hi) + IMR_MASK;
  196. } else {
  197. base = 0;
  198. end = 0;
  199. }
  200. size = end - base;
  201. seq_printf(s, "imr%02i: base=%pa, end=%pa, size=0x%08zx "
  202. "rmask=0x%08x, wmask=0x%08x, %s, %s\n", i,
  203. &base, &end, size, imr.rmask, imr.wmask,
  204. imr_is_enabled(&imr) ? "enabled " : "disabled",
  205. imr.addr_lo & IMR_LOCK ? "locked" : "unlocked");
  206. }
  207. mutex_unlock(&idev->lock);
  208. return ret;
  209. }
  210. /**
  211. * imr_state_open - debugfs open callback.
  212. *
  213. * @inode: pointer to struct inode.
  214. * @file: pointer to struct file.
  215. * @return: result of single open.
  216. */
  217. static int imr_state_open(struct inode *inode, struct file *file)
  218. {
  219. return single_open(file, imr_dbgfs_state_show, inode->i_private);
  220. }
  221. static const struct file_operations imr_state_ops = {
  222. .open = imr_state_open,
  223. .read = seq_read,
  224. .llseek = seq_lseek,
  225. .release = single_release,
  226. };
  227. /**
  228. * imr_debugfs_register - register debugfs hooks.
  229. *
  230. * @idev: pointer to imr_device structure.
  231. * @return: 0 on success - errno on failure.
  232. */
  233. static int imr_debugfs_register(struct imr_device *idev)
  234. {
  235. idev->file = debugfs_create_file("imr_state", S_IFREG | S_IRUGO, NULL,
  236. idev, &imr_state_ops);
  237. return PTR_ERR_OR_ZERO(idev->file);
  238. }
  239. /**
  240. * imr_debugfs_unregister - unregister debugfs hooks.
  241. *
  242. * @idev: pointer to imr_device structure.
  243. * @return:
  244. */
  245. static void imr_debugfs_unregister(struct imr_device *idev)
  246. {
  247. debugfs_remove(idev->file);
  248. }
  249. /**
  250. * imr_check_params - check passed address range IMR alignment and non-zero size
  251. *
  252. * @base: base address of intended IMR.
  253. * @size: size of intended IMR.
  254. * @return: zero on valid range -EINVAL on unaligned base/size.
  255. */
  256. static int imr_check_params(phys_addr_t base, size_t size)
  257. {
  258. if ((base & IMR_MASK) || (size & IMR_MASK)) {
  259. pr_err("base %pa size 0x%08zx must align to 1KiB\n",
  260. &base, size);
  261. return -EINVAL;
  262. }
  263. if (size == 0)
  264. return -EINVAL;
  265. return 0;
  266. }
  267. /**
  268. * imr_raw_size - account for the IMR_ALIGN bytes that addr_hi appends.
  269. *
  270. * IMR addr_hi has a built in offset of plus IMR_ALIGN (0x400) bytes from the
  271. * value in the register. We need to subtract IMR_ALIGN bytes from input sizes
  272. * as a result.
  273. *
  274. * @size: input size bytes.
  275. * @return: reduced size.
  276. */
  277. static inline size_t imr_raw_size(size_t size)
  278. {
  279. return size - IMR_ALIGN;
  280. }
  281. /**
  282. * imr_address_overlap - detects an address overlap.
  283. *
  284. * @addr: address to check against an existing IMR.
  285. * @imr: imr being checked.
  286. * @return: true for overlap false for no overlap.
  287. */
  288. static inline int imr_address_overlap(phys_addr_t addr, struct imr_regs *imr)
  289. {
  290. return addr >= imr_to_phys(imr->addr_lo) && addr <= imr_to_phys(imr->addr_hi);
  291. }
  292. /**
  293. * imr_add_range - add an Isolated Memory Region.
  294. *
  295. * @base: physical base address of region aligned to 1KiB.
  296. * @size: physical size of region in bytes must be aligned to 1KiB.
  297. * @read_mask: read access mask.
  298. * @write_mask: write access mask.
  299. * @lock: indicates whether or not to permanently lock this region.
  300. * @return: zero on success or negative value indicating error.
  301. */
  302. int imr_add_range(phys_addr_t base, size_t size,
  303. unsigned int rmask, unsigned int wmask, bool lock)
  304. {
  305. phys_addr_t end;
  306. unsigned int i;
  307. struct imr_device *idev = &imr_dev;
  308. struct imr_regs imr;
  309. size_t raw_size;
  310. int reg;
  311. int ret;
  312. if (WARN_ONCE(idev->init == false, "driver not initialized"))
  313. return -ENODEV;
  314. ret = imr_check_params(base, size);
  315. if (ret)
  316. return ret;
  317. /* Tweak the size value. */
  318. raw_size = imr_raw_size(size);
  319. end = base + raw_size;
  320. /*
  321. * Check for reserved IMR value common to firmware, kernel and grub
  322. * indicating a disabled IMR.
  323. */
  324. imr.addr_lo = phys_to_imr(base);
  325. imr.addr_hi = phys_to_imr(end);
  326. imr.rmask = rmask;
  327. imr.wmask = wmask;
  328. if (!imr_is_enabled(&imr))
  329. return -ENOTSUPP;
  330. mutex_lock(&idev->lock);
  331. /*
  332. * Find a free IMR while checking for an existing overlapping range.
  333. * Note there's no restriction in silicon to prevent IMR overlaps.
  334. * For the sake of simplicity and ease in defining/debugging an IMR
  335. * memory map we exclude IMR overlaps.
  336. */
  337. reg = -1;
  338. for (i = 0; i < idev->max_imr; i++) {
  339. ret = imr_read(idev, i, &imr);
  340. if (ret)
  341. goto failed;
  342. /* Find overlap @ base or end of requested range. */
  343. ret = -EINVAL;
  344. if (imr_is_enabled(&imr)) {
  345. if (imr_address_overlap(base, &imr))
  346. goto failed;
  347. if (imr_address_overlap(end, &imr))
  348. goto failed;
  349. } else {
  350. reg = i;
  351. }
  352. }
  353. /* Error out if we have no free IMR entries. */
  354. if (reg == -1) {
  355. ret = -ENOMEM;
  356. goto failed;
  357. }
  358. pr_debug("add %d phys %pa-%pa size %zx mask 0x%08x wmask 0x%08x\n",
  359. reg, &base, &end, raw_size, rmask, wmask);
  360. /* Enable IMR at specified range and access mask. */
  361. imr.addr_lo = phys_to_imr(base);
  362. imr.addr_hi = phys_to_imr(end);
  363. imr.rmask = rmask;
  364. imr.wmask = wmask;
  365. ret = imr_write(idev, reg, &imr, lock);
  366. if (ret < 0) {
  367. /*
  368. * In the highly unlikely event iosf_mbi_write failed
  369. * attempt to rollback the IMR setup skipping the trapping
  370. * of further IOSF write failures.
  371. */
  372. imr.addr_lo = 0;
  373. imr.addr_hi = 0;
  374. imr.rmask = IMR_READ_ACCESS_ALL;
  375. imr.wmask = IMR_WRITE_ACCESS_ALL;
  376. imr_write(idev, reg, &imr, false);
  377. }
  378. failed:
  379. mutex_unlock(&idev->lock);
  380. return ret;
  381. }
  382. EXPORT_SYMBOL_GPL(imr_add_range);
  383. /**
  384. * __imr_remove_range - delete an Isolated Memory Region.
  385. *
  386. * This function allows you to delete an IMR by its index specified by reg or
  387. * by address range specified by base and size respectively. If you specify an
  388. * index on its own the base and size parameters are ignored.
  389. * imr_remove_range(0, base, size); delete IMR at index 0 base/size ignored.
  390. * imr_remove_range(-1, base, size); delete IMR from base to base+size.
  391. *
  392. * @reg: imr index to remove.
  393. * @base: physical base address of region aligned to 1 KiB.
  394. * @size: physical size of region in bytes aligned to 1 KiB.
  395. * @return: -EINVAL on invalid range or out or range id
  396. * -ENODEV if reg is valid but no IMR exists or is locked
  397. * 0 on success.
  398. */
  399. static int __imr_remove_range(int reg, phys_addr_t base, size_t size)
  400. {
  401. phys_addr_t end;
  402. bool found = false;
  403. unsigned int i;
  404. struct imr_device *idev = &imr_dev;
  405. struct imr_regs imr;
  406. size_t raw_size;
  407. int ret = 0;
  408. if (WARN_ONCE(idev->init == false, "driver not initialized"))
  409. return -ENODEV;
  410. /*
  411. * Validate address range if deleting by address, else we are
  412. * deleting by index where base and size will be ignored.
  413. */
  414. if (reg == -1) {
  415. ret = imr_check_params(base, size);
  416. if (ret)
  417. return ret;
  418. }
  419. /* Tweak the size value. */
  420. raw_size = imr_raw_size(size);
  421. end = base + raw_size;
  422. mutex_lock(&idev->lock);
  423. if (reg >= 0) {
  424. /* If a specific IMR is given try to use it. */
  425. ret = imr_read(idev, reg, &imr);
  426. if (ret)
  427. goto failed;
  428. if (!imr_is_enabled(&imr) || imr.addr_lo & IMR_LOCK) {
  429. ret = -ENODEV;
  430. goto failed;
  431. }
  432. found = true;
  433. } else {
  434. /* Search for match based on address range. */
  435. for (i = 0; i < idev->max_imr; i++) {
  436. ret = imr_read(idev, i, &imr);
  437. if (ret)
  438. goto failed;
  439. if (!imr_is_enabled(&imr) || imr.addr_lo & IMR_LOCK)
  440. continue;
  441. if ((imr_to_phys(imr.addr_lo) == base) &&
  442. (imr_to_phys(imr.addr_hi) == end)) {
  443. found = true;
  444. reg = i;
  445. break;
  446. }
  447. }
  448. }
  449. if (!found) {
  450. ret = -ENODEV;
  451. goto failed;
  452. }
  453. pr_debug("remove %d phys %pa-%pa size %zx\n", reg, &base, &end, raw_size);
  454. /* Tear down the IMR. */
  455. imr.addr_lo = 0;
  456. imr.addr_hi = 0;
  457. imr.rmask = IMR_READ_ACCESS_ALL;
  458. imr.wmask = IMR_WRITE_ACCESS_ALL;
  459. ret = imr_write(idev, reg, &imr, false);
  460. failed:
  461. mutex_unlock(&idev->lock);
  462. return ret;
  463. }
  464. /**
  465. * imr_remove_range - delete an Isolated Memory Region by address
  466. *
  467. * This function allows you to delete an IMR by an address range specified
  468. * by base and size respectively.
  469. * imr_remove_range(base, size); delete IMR from base to base+size.
  470. *
  471. * @base: physical base address of region aligned to 1 KiB.
  472. * @size: physical size of region in bytes aligned to 1 KiB.
  473. * @return: -EINVAL on invalid range or out or range id
  474. * -ENODEV if reg is valid but no IMR exists or is locked
  475. * 0 on success.
  476. */
  477. int imr_remove_range(phys_addr_t base, size_t size)
  478. {
  479. return __imr_remove_range(-1, base, size);
  480. }
  481. EXPORT_SYMBOL_GPL(imr_remove_range);
  482. /**
  483. * imr_clear - delete an Isolated Memory Region by index
  484. *
  485. * This function allows you to delete an IMR by an address range specified
  486. * by the index of the IMR. Useful for initial sanitization of the IMR
  487. * address map.
  488. * imr_ge(base, size); delete IMR from base to base+size.
  489. *
  490. * @reg: imr index to remove.
  491. * @return: -EINVAL on invalid range or out or range id
  492. * -ENODEV if reg is valid but no IMR exists or is locked
  493. * 0 on success.
  494. */
  495. static inline int imr_clear(int reg)
  496. {
  497. return __imr_remove_range(reg, 0, 0);
  498. }
  499. /**
  500. * imr_fixup_memmap - Tear down IMRs used during bootup.
  501. *
  502. * BIOS and Grub both setup IMRs around compressed kernel, initrd memory
  503. * that need to be removed before the kernel hands out one of the IMR
  504. * encased addresses to a downstream DMA agent such as the SD or Ethernet.
  505. * IMRs on Galileo are setup to immediately reset the system on violation.
  506. * As a result if you're running a root filesystem from SD - you'll need
  507. * the boot-time IMRs torn down or you'll find seemingly random resets when
  508. * using your filesystem.
  509. *
  510. * @idev: pointer to imr_device structure.
  511. * @return:
  512. */
  513. static void __init imr_fixup_memmap(struct imr_device *idev)
  514. {
  515. phys_addr_t base = virt_to_phys(&_text);
  516. size_t size = virt_to_phys(&__end_rodata) - base;
  517. int i;
  518. int ret;
  519. /* Tear down all existing unlocked IMRs. */
  520. for (i = 0; i < idev->max_imr; i++)
  521. imr_clear(i);
  522. /*
  523. * Setup a locked IMR around the physical extent of the kernel
  524. * from the beginning of the .text secton to the end of the
  525. * .rodata section as one physically contiguous block.
  526. */
  527. ret = imr_add_range(base, size, IMR_CPU, IMR_CPU, true);
  528. if (ret < 0) {
  529. pr_err("unable to setup IMR for kernel: (%p - %p)\n",
  530. &_text, &__end_rodata);
  531. } else {
  532. pr_info("protecting kernel .text - .rodata: %zu KiB (%p - %p)\n",
  533. size / 1024, &_text, &__end_rodata);
  534. }
  535. }
  536. static const struct x86_cpu_id imr_ids[] __initconst = {
  537. { X86_VENDOR_INTEL, 5, 9 }, /* Intel Quark SoC X1000. */
  538. {}
  539. };
  540. MODULE_DEVICE_TABLE(x86cpu, imr_ids);
  541. /**
  542. * imr_init - entry point for IMR driver.
  543. *
  544. * return: -ENODEV for no IMR support 0 if good to go.
  545. */
  546. static int __init imr_init(void)
  547. {
  548. struct imr_device *idev = &imr_dev;
  549. int ret;
  550. if (!x86_match_cpu(imr_ids) || !iosf_mbi_available())
  551. return -ENODEV;
  552. idev->max_imr = QUARK_X1000_IMR_MAX;
  553. idev->reg_base = QUARK_X1000_IMR_REGBASE;
  554. idev->init = true;
  555. mutex_init(&idev->lock);
  556. ret = imr_debugfs_register(idev);
  557. if (ret != 0)
  558. pr_warn("debugfs register failed!\n");
  559. imr_fixup_memmap(idev);
  560. return 0;
  561. }
  562. /**
  563. * imr_exit - exit point for IMR code.
  564. *
  565. * Deregisters debugfs, leave IMR state as-is.
  566. *
  567. * return:
  568. */
  569. static void __exit imr_exit(void)
  570. {
  571. imr_debugfs_unregister(&imr_dev);
  572. }
  573. module_init(imr_init);
  574. module_exit(imr_exit);
  575. MODULE_AUTHOR("Bryan O'Donoghue <pure.logic@nexus-software.ie>");
  576. MODULE_DESCRIPTION("Intel Isolated Memory Region driver");
  577. MODULE_LICENSE("Dual BSD/GPL");