grufile.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. /*
  2. * SN Platform GRU Driver
  3. *
  4. * FILE OPERATIONS & DRIVER INITIALIZATION
  5. *
  6. * This file supports the user system call for file open, close, mmap, etc.
  7. * This also incudes the driver initialization code.
  8. *
  9. * Copyright (c) 2008-2014 Silicon Graphics, Inc. All Rights Reserved.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  24. */
  25. #include <linux/module.h>
  26. #include <linux/kernel.h>
  27. #include <linux/errno.h>
  28. #include <linux/slab.h>
  29. #include <linux/mm.h>
  30. #include <linux/io.h>
  31. #include <linux/spinlock.h>
  32. #include <linux/device.h>
  33. #include <linux/miscdevice.h>
  34. #include <linux/interrupt.h>
  35. #include <linux/proc_fs.h>
  36. #include <linux/uaccess.h>
  37. #ifdef CONFIG_X86_64
  38. #include <asm/uv/uv_irq.h>
  39. #endif
  40. #include <asm/uv/uv.h>
  41. #include "gru.h"
  42. #include "grulib.h"
  43. #include "grutables.h"
  44. #include <asm/uv/uv_hub.h>
  45. #include <asm/uv/uv_mmrs.h>
  46. struct gru_blade_state *gru_base[GRU_MAX_BLADES] __read_mostly;
  47. unsigned long gru_start_paddr __read_mostly;
  48. void *gru_start_vaddr __read_mostly;
  49. unsigned long gru_end_paddr __read_mostly;
  50. unsigned int gru_max_gids __read_mostly;
  51. struct gru_stats_s gru_stats;
  52. /* Guaranteed user available resources on each node */
  53. static int max_user_cbrs, max_user_dsr_bytes;
  54. static struct miscdevice gru_miscdev;
  55. static int gru_supported(void)
  56. {
  57. return is_uv_system() &&
  58. (uv_hub_info->hub_revision < UV3_HUB_REVISION_BASE);
  59. }
  60. /*
  61. * gru_vma_close
  62. *
  63. * Called when unmapping a device mapping. Frees all gru resources
  64. * and tables belonging to the vma.
  65. */
  66. static void gru_vma_close(struct vm_area_struct *vma)
  67. {
  68. struct gru_vma_data *vdata;
  69. struct gru_thread_state *gts;
  70. struct list_head *entry, *next;
  71. if (!vma->vm_private_data)
  72. return;
  73. vdata = vma->vm_private_data;
  74. vma->vm_private_data = NULL;
  75. gru_dbg(grudev, "vma %p, file %p, vdata %p\n", vma, vma->vm_file,
  76. vdata);
  77. list_for_each_safe(entry, next, &vdata->vd_head) {
  78. gts =
  79. list_entry(entry, struct gru_thread_state, ts_next);
  80. list_del(&gts->ts_next);
  81. mutex_lock(&gts->ts_ctxlock);
  82. if (gts->ts_gru)
  83. gru_unload_context(gts, 0);
  84. mutex_unlock(&gts->ts_ctxlock);
  85. gts_drop(gts);
  86. }
  87. kfree(vdata);
  88. STAT(vdata_free);
  89. }
  90. /*
  91. * gru_file_mmap
  92. *
  93. * Called when mmapping the device. Initializes the vma with a fault handler
  94. * and private data structure necessary to allocate, track, and free the
  95. * underlying pages.
  96. */
  97. static int gru_file_mmap(struct file *file, struct vm_area_struct *vma)
  98. {
  99. if ((vma->vm_flags & (VM_SHARED | VM_WRITE)) != (VM_SHARED | VM_WRITE))
  100. return -EPERM;
  101. if (vma->vm_start & (GRU_GSEG_PAGESIZE - 1) ||
  102. vma->vm_end & (GRU_GSEG_PAGESIZE - 1))
  103. return -EINVAL;
  104. vma->vm_flags |= VM_IO | VM_PFNMAP | VM_LOCKED |
  105. VM_DONTCOPY | VM_DONTEXPAND | VM_DONTDUMP;
  106. vma->vm_page_prot = PAGE_SHARED;
  107. vma->vm_ops = &gru_vm_ops;
  108. vma->vm_private_data = gru_alloc_vma_data(vma, 0);
  109. if (!vma->vm_private_data)
  110. return -ENOMEM;
  111. gru_dbg(grudev, "file %p, vaddr 0x%lx, vma %p, vdata %p\n",
  112. file, vma->vm_start, vma, vma->vm_private_data);
  113. return 0;
  114. }
  115. /*
  116. * Create a new GRU context
  117. */
  118. static int gru_create_new_context(unsigned long arg)
  119. {
  120. struct gru_create_context_req req;
  121. struct vm_area_struct *vma;
  122. struct gru_vma_data *vdata;
  123. int ret = -EINVAL;
  124. if (copy_from_user(&req, (void __user *)arg, sizeof(req)))
  125. return -EFAULT;
  126. if (req.data_segment_bytes > max_user_dsr_bytes)
  127. return -EINVAL;
  128. if (req.control_blocks > max_user_cbrs || !req.maximum_thread_count)
  129. return -EINVAL;
  130. if (!(req.options & GRU_OPT_MISS_MASK))
  131. req.options |= GRU_OPT_MISS_FMM_INTR;
  132. down_write(&current->mm->mmap_sem);
  133. vma = gru_find_vma(req.gseg);
  134. if (vma) {
  135. vdata = vma->vm_private_data;
  136. vdata->vd_user_options = req.options;
  137. vdata->vd_dsr_au_count =
  138. GRU_DS_BYTES_TO_AU(req.data_segment_bytes);
  139. vdata->vd_cbr_au_count = GRU_CB_COUNT_TO_AU(req.control_blocks);
  140. vdata->vd_tlb_preload_count = req.tlb_preload_count;
  141. ret = 0;
  142. }
  143. up_write(&current->mm->mmap_sem);
  144. return ret;
  145. }
  146. /*
  147. * Get GRU configuration info (temp - for emulator testing)
  148. */
  149. static long gru_get_config_info(unsigned long arg)
  150. {
  151. struct gru_config_info info;
  152. int nodesperblade;
  153. if (num_online_nodes() > 1 &&
  154. (uv_node_to_blade_id(1) == uv_node_to_blade_id(0)))
  155. nodesperblade = 2;
  156. else
  157. nodesperblade = 1;
  158. memset(&info, 0, sizeof(info));
  159. info.cpus = num_online_cpus();
  160. info.nodes = num_online_nodes();
  161. info.blades = info.nodes / nodesperblade;
  162. info.chiplets = GRU_CHIPLETS_PER_BLADE * info.blades;
  163. if (copy_to_user((void __user *)arg, &info, sizeof(info)))
  164. return -EFAULT;
  165. return 0;
  166. }
  167. /*
  168. * gru_file_unlocked_ioctl
  169. *
  170. * Called to update file attributes via IOCTL calls.
  171. */
  172. static long gru_file_unlocked_ioctl(struct file *file, unsigned int req,
  173. unsigned long arg)
  174. {
  175. int err = -EBADRQC;
  176. gru_dbg(grudev, "file %p, req 0x%x, 0x%lx\n", file, req, arg);
  177. switch (req) {
  178. case GRU_CREATE_CONTEXT:
  179. err = gru_create_new_context(arg);
  180. break;
  181. case GRU_SET_CONTEXT_OPTION:
  182. err = gru_set_context_option(arg);
  183. break;
  184. case GRU_USER_GET_EXCEPTION_DETAIL:
  185. err = gru_get_exception_detail(arg);
  186. break;
  187. case GRU_USER_UNLOAD_CONTEXT:
  188. err = gru_user_unload_context(arg);
  189. break;
  190. case GRU_USER_FLUSH_TLB:
  191. err = gru_user_flush_tlb(arg);
  192. break;
  193. case GRU_USER_CALL_OS:
  194. err = gru_handle_user_call_os(arg);
  195. break;
  196. case GRU_GET_GSEG_STATISTICS:
  197. err = gru_get_gseg_statistics(arg);
  198. break;
  199. case GRU_KTEST:
  200. err = gru_ktest(arg);
  201. break;
  202. case GRU_GET_CONFIG_INFO:
  203. err = gru_get_config_info(arg);
  204. break;
  205. case GRU_DUMP_CHIPLET_STATE:
  206. err = gru_dump_chiplet_request(arg);
  207. break;
  208. }
  209. return err;
  210. }
  211. /*
  212. * Called at init time to build tables for all GRUs that are present in the
  213. * system.
  214. */
  215. static void gru_init_chiplet(struct gru_state *gru, unsigned long paddr,
  216. void *vaddr, int blade_id, int chiplet_id)
  217. {
  218. spin_lock_init(&gru->gs_lock);
  219. spin_lock_init(&gru->gs_asid_lock);
  220. gru->gs_gru_base_paddr = paddr;
  221. gru->gs_gru_base_vaddr = vaddr;
  222. gru->gs_gid = blade_id * GRU_CHIPLETS_PER_BLADE + chiplet_id;
  223. gru->gs_blade = gru_base[blade_id];
  224. gru->gs_blade_id = blade_id;
  225. gru->gs_chiplet_id = chiplet_id;
  226. gru->gs_cbr_map = (GRU_CBR_AU == 64) ? ~0 : (1UL << GRU_CBR_AU) - 1;
  227. gru->gs_dsr_map = (1UL << GRU_DSR_AU) - 1;
  228. gru->gs_asid_limit = MAX_ASID;
  229. gru_tgh_flush_init(gru);
  230. if (gru->gs_gid >= gru_max_gids)
  231. gru_max_gids = gru->gs_gid + 1;
  232. gru_dbg(grudev, "bid %d, gid %d, vaddr %p (0x%lx)\n",
  233. blade_id, gru->gs_gid, gru->gs_gru_base_vaddr,
  234. gru->gs_gru_base_paddr);
  235. }
  236. static int gru_init_tables(unsigned long gru_base_paddr, void *gru_base_vaddr)
  237. {
  238. int pnode, nid, bid, chip;
  239. int cbrs, dsrbytes, n;
  240. int order = get_order(sizeof(struct gru_blade_state));
  241. struct page *page;
  242. struct gru_state *gru;
  243. unsigned long paddr;
  244. void *vaddr;
  245. max_user_cbrs = GRU_NUM_CB;
  246. max_user_dsr_bytes = GRU_NUM_DSR_BYTES;
  247. for_each_possible_blade(bid) {
  248. pnode = uv_blade_to_pnode(bid);
  249. nid = uv_blade_to_memory_nid(bid);/* -1 if no memory on blade */
  250. page = alloc_pages_node(nid, GFP_KERNEL, order);
  251. if (!page)
  252. goto fail;
  253. gru_base[bid] = page_address(page);
  254. memset(gru_base[bid], 0, sizeof(struct gru_blade_state));
  255. gru_base[bid]->bs_lru_gru = &gru_base[bid]->bs_grus[0];
  256. spin_lock_init(&gru_base[bid]->bs_lock);
  257. init_rwsem(&gru_base[bid]->bs_kgts_sema);
  258. dsrbytes = 0;
  259. cbrs = 0;
  260. for (gru = gru_base[bid]->bs_grus, chip = 0;
  261. chip < GRU_CHIPLETS_PER_BLADE;
  262. chip++, gru++) {
  263. paddr = gru_chiplet_paddr(gru_base_paddr, pnode, chip);
  264. vaddr = gru_chiplet_vaddr(gru_base_vaddr, pnode, chip);
  265. gru_init_chiplet(gru, paddr, vaddr, bid, chip);
  266. n = hweight64(gru->gs_cbr_map) * GRU_CBR_AU_SIZE;
  267. cbrs = max(cbrs, n);
  268. n = hweight64(gru->gs_dsr_map) * GRU_DSR_AU_BYTES;
  269. dsrbytes = max(dsrbytes, n);
  270. }
  271. max_user_cbrs = min(max_user_cbrs, cbrs);
  272. max_user_dsr_bytes = min(max_user_dsr_bytes, dsrbytes);
  273. }
  274. return 0;
  275. fail:
  276. for (bid--; bid >= 0; bid--)
  277. free_pages((unsigned long)gru_base[bid], order);
  278. return -ENOMEM;
  279. }
  280. static void gru_free_tables(void)
  281. {
  282. int bid;
  283. int order = get_order(sizeof(struct gru_state) *
  284. GRU_CHIPLETS_PER_BLADE);
  285. for (bid = 0; bid < GRU_MAX_BLADES; bid++)
  286. free_pages((unsigned long)gru_base[bid], order);
  287. }
  288. static unsigned long gru_chiplet_cpu_to_mmr(int chiplet, int cpu, int *corep)
  289. {
  290. unsigned long mmr = 0;
  291. int core;
  292. /*
  293. * We target the cores of a blade and not the hyperthreads themselves.
  294. * There is a max of 8 cores per socket and 2 sockets per blade,
  295. * making for a max total of 16 cores (i.e., 16 CPUs without
  296. * hyperthreading and 32 CPUs with hyperthreading).
  297. */
  298. core = uv_cpu_core_number(cpu) + UV_MAX_INT_CORES * uv_cpu_socket_number(cpu);
  299. if (core >= GRU_NUM_TFM || uv_cpu_ht_number(cpu))
  300. return 0;
  301. if (chiplet == 0) {
  302. mmr = UVH_GR0_TLB_INT0_CONFIG +
  303. core * (UVH_GR0_TLB_INT1_CONFIG - UVH_GR0_TLB_INT0_CONFIG);
  304. } else if (chiplet == 1) {
  305. mmr = UVH_GR1_TLB_INT0_CONFIG +
  306. core * (UVH_GR1_TLB_INT1_CONFIG - UVH_GR1_TLB_INT0_CONFIG);
  307. } else {
  308. BUG();
  309. }
  310. *corep = core;
  311. return mmr;
  312. }
  313. #ifdef CONFIG_IA64
  314. static int gru_irq_count[GRU_CHIPLETS_PER_BLADE];
  315. static void gru_noop(struct irq_data *d)
  316. {
  317. }
  318. static struct irq_chip gru_chip[GRU_CHIPLETS_PER_BLADE] = {
  319. [0 ... GRU_CHIPLETS_PER_BLADE - 1] {
  320. .irq_mask = gru_noop,
  321. .irq_unmask = gru_noop,
  322. .irq_ack = gru_noop
  323. }
  324. };
  325. static int gru_chiplet_setup_tlb_irq(int chiplet, char *irq_name,
  326. irq_handler_t irq_handler, int cpu, int blade)
  327. {
  328. unsigned long mmr;
  329. int irq = IRQ_GRU + chiplet;
  330. int ret, core;
  331. mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
  332. if (mmr == 0)
  333. return 0;
  334. if (gru_irq_count[chiplet] == 0) {
  335. gru_chip[chiplet].name = irq_name;
  336. ret = irq_set_chip(irq, &gru_chip[chiplet]);
  337. if (ret) {
  338. printk(KERN_ERR "%s: set_irq_chip failed, errno=%d\n",
  339. GRU_DRIVER_ID_STR, -ret);
  340. return ret;
  341. }
  342. ret = request_irq(irq, irq_handler, 0, irq_name, NULL);
  343. if (ret) {
  344. printk(KERN_ERR "%s: request_irq failed, errno=%d\n",
  345. GRU_DRIVER_ID_STR, -ret);
  346. return ret;
  347. }
  348. }
  349. gru_irq_count[chiplet]++;
  350. return 0;
  351. }
  352. static void gru_chiplet_teardown_tlb_irq(int chiplet, int cpu, int blade)
  353. {
  354. unsigned long mmr;
  355. int core, irq = IRQ_GRU + chiplet;
  356. if (gru_irq_count[chiplet] == 0)
  357. return;
  358. mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
  359. if (mmr == 0)
  360. return;
  361. if (--gru_irq_count[chiplet] == 0)
  362. free_irq(irq, NULL);
  363. }
  364. #elif defined CONFIG_X86_64
  365. static int gru_chiplet_setup_tlb_irq(int chiplet, char *irq_name,
  366. irq_handler_t irq_handler, int cpu, int blade)
  367. {
  368. unsigned long mmr;
  369. int irq, core;
  370. int ret;
  371. mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
  372. if (mmr == 0)
  373. return 0;
  374. irq = uv_setup_irq(irq_name, cpu, blade, mmr, UV_AFFINITY_CPU);
  375. if (irq < 0) {
  376. printk(KERN_ERR "%s: uv_setup_irq failed, errno=%d\n",
  377. GRU_DRIVER_ID_STR, -irq);
  378. return irq;
  379. }
  380. ret = request_irq(irq, irq_handler, 0, irq_name, NULL);
  381. if (ret) {
  382. uv_teardown_irq(irq);
  383. printk(KERN_ERR "%s: request_irq failed, errno=%d\n",
  384. GRU_DRIVER_ID_STR, -ret);
  385. return ret;
  386. }
  387. gru_base[blade]->bs_grus[chiplet].gs_irq[core] = irq;
  388. return 0;
  389. }
  390. static void gru_chiplet_teardown_tlb_irq(int chiplet, int cpu, int blade)
  391. {
  392. int irq, core;
  393. unsigned long mmr;
  394. mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core);
  395. if (mmr) {
  396. irq = gru_base[blade]->bs_grus[chiplet].gs_irq[core];
  397. if (irq) {
  398. free_irq(irq, NULL);
  399. uv_teardown_irq(irq);
  400. }
  401. }
  402. }
  403. #endif
  404. static void gru_teardown_tlb_irqs(void)
  405. {
  406. int blade;
  407. int cpu;
  408. for_each_online_cpu(cpu) {
  409. blade = uv_cpu_to_blade_id(cpu);
  410. gru_chiplet_teardown_tlb_irq(0, cpu, blade);
  411. gru_chiplet_teardown_tlb_irq(1, cpu, blade);
  412. }
  413. for_each_possible_blade(blade) {
  414. if (uv_blade_nr_possible_cpus(blade))
  415. continue;
  416. gru_chiplet_teardown_tlb_irq(0, 0, blade);
  417. gru_chiplet_teardown_tlb_irq(1, 0, blade);
  418. }
  419. }
  420. static int gru_setup_tlb_irqs(void)
  421. {
  422. int blade;
  423. int cpu;
  424. int ret;
  425. for_each_online_cpu(cpu) {
  426. blade = uv_cpu_to_blade_id(cpu);
  427. ret = gru_chiplet_setup_tlb_irq(0, "GRU0_TLB", gru0_intr, cpu, blade);
  428. if (ret != 0)
  429. goto exit1;
  430. ret = gru_chiplet_setup_tlb_irq(1, "GRU1_TLB", gru1_intr, cpu, blade);
  431. if (ret != 0)
  432. goto exit1;
  433. }
  434. for_each_possible_blade(blade) {
  435. if (uv_blade_nr_possible_cpus(blade))
  436. continue;
  437. ret = gru_chiplet_setup_tlb_irq(0, "GRU0_TLB", gru_intr_mblade, 0, blade);
  438. if (ret != 0)
  439. goto exit1;
  440. ret = gru_chiplet_setup_tlb_irq(1, "GRU1_TLB", gru_intr_mblade, 0, blade);
  441. if (ret != 0)
  442. goto exit1;
  443. }
  444. return 0;
  445. exit1:
  446. gru_teardown_tlb_irqs();
  447. return ret;
  448. }
  449. /*
  450. * gru_init
  451. *
  452. * Called at boot or module load time to initialize the GRUs.
  453. */
  454. static int __init gru_init(void)
  455. {
  456. int ret;
  457. if (!gru_supported())
  458. return 0;
  459. #if defined CONFIG_IA64
  460. gru_start_paddr = 0xd000000000UL; /* ZZZZZZZZZZZZZZZZZZZ fixme */
  461. #else
  462. gru_start_paddr = uv_read_local_mmr(UVH_RH_GAM_GRU_OVERLAY_CONFIG_MMR) &
  463. 0x7fffffffffffUL;
  464. #endif
  465. gru_start_vaddr = __va(gru_start_paddr);
  466. gru_end_paddr = gru_start_paddr + GRU_MAX_BLADES * GRU_SIZE;
  467. printk(KERN_INFO "GRU space: 0x%lx - 0x%lx\n",
  468. gru_start_paddr, gru_end_paddr);
  469. ret = misc_register(&gru_miscdev);
  470. if (ret) {
  471. printk(KERN_ERR "%s: misc_register failed\n",
  472. GRU_DRIVER_ID_STR);
  473. goto exit0;
  474. }
  475. ret = gru_proc_init();
  476. if (ret) {
  477. printk(KERN_ERR "%s: proc init failed\n", GRU_DRIVER_ID_STR);
  478. goto exit1;
  479. }
  480. ret = gru_init_tables(gru_start_paddr, gru_start_vaddr);
  481. if (ret) {
  482. printk(KERN_ERR "%s: init tables failed\n", GRU_DRIVER_ID_STR);
  483. goto exit2;
  484. }
  485. ret = gru_setup_tlb_irqs();
  486. if (ret != 0)
  487. goto exit3;
  488. gru_kservices_init();
  489. printk(KERN_INFO "%s: v%s\n", GRU_DRIVER_ID_STR,
  490. GRU_DRIVER_VERSION_STR);
  491. return 0;
  492. exit3:
  493. gru_free_tables();
  494. exit2:
  495. gru_proc_exit();
  496. exit1:
  497. misc_deregister(&gru_miscdev);
  498. exit0:
  499. return ret;
  500. }
  501. static void __exit gru_exit(void)
  502. {
  503. if (!gru_supported())
  504. return;
  505. gru_teardown_tlb_irqs();
  506. gru_kservices_exit();
  507. gru_free_tables();
  508. misc_deregister(&gru_miscdev);
  509. gru_proc_exit();
  510. }
  511. static const struct file_operations gru_fops = {
  512. .owner = THIS_MODULE,
  513. .unlocked_ioctl = gru_file_unlocked_ioctl,
  514. .mmap = gru_file_mmap,
  515. .llseek = noop_llseek,
  516. };
  517. static struct miscdevice gru_miscdev = {
  518. .minor = MISC_DYNAMIC_MINOR,
  519. .name = "gru",
  520. .fops = &gru_fops,
  521. };
  522. const struct vm_operations_struct gru_vm_ops = {
  523. .close = gru_vma_close,
  524. .fault = gru_fault,
  525. };
  526. #ifndef MODULE
  527. fs_initcall(gru_init);
  528. #else
  529. module_init(gru_init);
  530. #endif
  531. module_exit(gru_exit);
  532. module_param(gru_options, ulong, 0644);
  533. MODULE_PARM_DESC(gru_options, "Various debug options");
  534. MODULE_AUTHOR("Silicon Graphics, Inc.");
  535. MODULE_LICENSE("GPL");
  536. MODULE_DESCRIPTION(GRU_DRIVER_ID_STR GRU_DRIVER_VERSION_STR);
  537. MODULE_VERSION(GRU_DRIVER_VERSION_STR);