grufile.c 15 KB

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