lparcfg.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. /*
  2. * PowerPC64 LPAR Configuration Information Driver
  3. *
  4. * Dave Engebretsen engebret@us.ibm.com
  5. * Copyright (c) 2003 Dave Engebretsen
  6. * Will Schmidt willschm@us.ibm.com
  7. * SPLPAR updates, Copyright (c) 2003 Will Schmidt IBM Corporation.
  8. * seq_file updates, Copyright (c) 2004 Will Schmidt IBM Corporation.
  9. * Nathan Lynch nathanl@austin.ibm.com
  10. * Added lparcfg_write, Copyright (C) 2004 Nathan Lynch IBM Corporation.
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License
  14. * as published by the Free Software Foundation; either version
  15. * 2 of the License, or (at your option) any later version.
  16. *
  17. * This driver creates a proc file at /proc/ppc64/lparcfg which contains
  18. * keyword - value pairs that specify the configuration of the partition.
  19. */
  20. #include <linux/config.h>
  21. #include <linux/module.h>
  22. #include <linux/types.h>
  23. #include <linux/errno.h>
  24. #include <linux/proc_fs.h>
  25. #include <linux/init.h>
  26. #include <linux/seq_file.h>
  27. #include <asm/uaccess.h>
  28. #include <asm/iSeries/HvLpConfig.h>
  29. #include <asm/lppaca.h>
  30. #include <asm/hvcall.h>
  31. #include <asm/cputable.h>
  32. #include <asm/rtas.h>
  33. #include <asm/system.h>
  34. #include <asm/time.h>
  35. #include <asm/iSeries/ItExtVpdPanel.h>
  36. #define MODULE_VERS "1.6"
  37. #define MODULE_NAME "lparcfg"
  38. /* #define LPARCFG_DEBUG */
  39. /* find a better place for this function... */
  40. void log_plpar_hcall_return(unsigned long rc, char *tag)
  41. {
  42. if (rc == 0) /* success, return */
  43. return;
  44. /* check for null tag ? */
  45. if (rc == H_Hardware)
  46. printk(KERN_INFO
  47. "plpar-hcall (%s) failed with hardware fault\n", tag);
  48. else if (rc == H_Function)
  49. printk(KERN_INFO
  50. "plpar-hcall (%s) failed; function not allowed\n", tag);
  51. else if (rc == H_Authority)
  52. printk(KERN_INFO
  53. "plpar-hcall (%s) failed; not authorized to this function\n",
  54. tag);
  55. else if (rc == H_Parameter)
  56. printk(KERN_INFO "plpar-hcall (%s) failed; Bad parameter(s)\n",
  57. tag);
  58. else
  59. printk(KERN_INFO
  60. "plpar-hcall (%s) failed with unexpected rc(0x%lx)\n",
  61. tag, rc);
  62. }
  63. static struct proc_dir_entry *proc_ppc64_lparcfg;
  64. #define LPARCFG_BUFF_SIZE 4096
  65. #ifdef CONFIG_PPC_ISERIES
  66. /*
  67. * For iSeries legacy systems, the PPA purr function is available from the
  68. * emulated_time_base field in the paca.
  69. */
  70. static unsigned long get_purr(void)
  71. {
  72. unsigned long sum_purr = 0;
  73. int cpu;
  74. struct paca_struct *lpaca;
  75. for_each_cpu(cpu) {
  76. lpaca = paca + cpu;
  77. sum_purr += lpaca->lppaca.emulated_time_base;
  78. #ifdef PURR_DEBUG
  79. printk(KERN_INFO "get_purr for cpu (%d) has value (%ld) \n",
  80. cpu, lpaca->lppaca.emulated_time_base);
  81. #endif
  82. }
  83. return sum_purr;
  84. }
  85. #define lparcfg_write NULL
  86. /*
  87. * Methods used to fetch LPAR data when running on an iSeries platform.
  88. */
  89. static int lparcfg_data(struct seq_file *m, void *v)
  90. {
  91. unsigned long pool_id, lp_index;
  92. int shared, entitled_capacity, max_entitled_capacity;
  93. int processors, max_processors;
  94. struct paca_struct *lpaca = get_paca();
  95. unsigned long purr = get_purr();
  96. seq_printf(m, "%s %s \n", MODULE_NAME, MODULE_VERS);
  97. shared = (int)(lpaca->lppaca_ptr->shared_proc);
  98. seq_printf(m, "serial_number=%c%c%c%c%c%c%c\n",
  99. e2a(xItExtVpdPanel.mfgID[2]),
  100. e2a(xItExtVpdPanel.mfgID[3]),
  101. e2a(xItExtVpdPanel.systemSerial[1]),
  102. e2a(xItExtVpdPanel.systemSerial[2]),
  103. e2a(xItExtVpdPanel.systemSerial[3]),
  104. e2a(xItExtVpdPanel.systemSerial[4]),
  105. e2a(xItExtVpdPanel.systemSerial[5]));
  106. seq_printf(m, "system_type=%c%c%c%c\n",
  107. e2a(xItExtVpdPanel.machineType[0]),
  108. e2a(xItExtVpdPanel.machineType[1]),
  109. e2a(xItExtVpdPanel.machineType[2]),
  110. e2a(xItExtVpdPanel.machineType[3]));
  111. lp_index = HvLpConfig_getLpIndex();
  112. seq_printf(m, "partition_id=%d\n", (int)lp_index);
  113. seq_printf(m, "system_active_processors=%d\n",
  114. (int)HvLpConfig_getSystemPhysicalProcessors());
  115. seq_printf(m, "system_potential_processors=%d\n",
  116. (int)HvLpConfig_getSystemPhysicalProcessors());
  117. processors = (int)HvLpConfig_getPhysicalProcessors();
  118. seq_printf(m, "partition_active_processors=%d\n", processors);
  119. max_processors = (int)HvLpConfig_getMaxPhysicalProcessors();
  120. seq_printf(m, "partition_potential_processors=%d\n", max_processors);
  121. if (shared) {
  122. entitled_capacity = HvLpConfig_getSharedProcUnits();
  123. max_entitled_capacity = HvLpConfig_getMaxSharedProcUnits();
  124. } else {
  125. entitled_capacity = processors * 100;
  126. max_entitled_capacity = max_processors * 100;
  127. }
  128. seq_printf(m, "partition_entitled_capacity=%d\n", entitled_capacity);
  129. seq_printf(m, "partition_max_entitled_capacity=%d\n",
  130. max_entitled_capacity);
  131. if (shared) {
  132. pool_id = HvLpConfig_getSharedPoolIndex();
  133. seq_printf(m, "pool=%d\n", (int)pool_id);
  134. seq_printf(m, "pool_capacity=%d\n",
  135. (int)(HvLpConfig_getNumProcsInSharedPool(pool_id) *
  136. 100));
  137. seq_printf(m, "purr=%ld\n", purr);
  138. }
  139. seq_printf(m, "shared_processor_mode=%d\n", shared);
  140. return 0;
  141. }
  142. #endif /* CONFIG_PPC_ISERIES */
  143. #ifdef CONFIG_PPC_PSERIES
  144. /*
  145. * Methods used to fetch LPAR data when running on a pSeries platform.
  146. */
  147. /*
  148. * H_GET_PPP hcall returns info in 4 parms.
  149. * entitled_capacity,unallocated_capacity,
  150. * aggregation, resource_capability).
  151. *
  152. * R4 = Entitled Processor Capacity Percentage.
  153. * R5 = Unallocated Processor Capacity Percentage.
  154. * R6 (AABBCCDDEEFFGGHH).
  155. * XXXX - reserved (0)
  156. * XXXX - reserved (0)
  157. * XXXX - Group Number
  158. * XXXX - Pool Number.
  159. * R7 (IIJJKKLLMMNNOOPP).
  160. * XX - reserved. (0)
  161. * XX - bit 0-6 reserved (0). bit 7 is Capped indicator.
  162. * XX - variable processor Capacity Weight
  163. * XX - Unallocated Variable Processor Capacity Weight.
  164. * XXXX - Active processors in Physical Processor Pool.
  165. * XXXX - Processors active on platform.
  166. */
  167. static unsigned int h_get_ppp(unsigned long *entitled,
  168. unsigned long *unallocated,
  169. unsigned long *aggregation,
  170. unsigned long *resource)
  171. {
  172. unsigned long rc;
  173. rc = plpar_hcall_4out(H_GET_PPP, 0, 0, 0, 0, entitled, unallocated,
  174. aggregation, resource);
  175. log_plpar_hcall_return(rc, "H_GET_PPP");
  176. return rc;
  177. }
  178. static void h_pic(unsigned long *pool_idle_time, unsigned long *num_procs)
  179. {
  180. unsigned long rc;
  181. unsigned long dummy;
  182. rc = plpar_hcall(H_PIC, 0, 0, 0, 0, pool_idle_time, num_procs, &dummy);
  183. log_plpar_hcall_return(rc, "H_PIC");
  184. }
  185. static unsigned long get_purr(void);
  186. /* Track sum of all purrs across all processors. This is used to further */
  187. /* calculate usage values by different applications */
  188. static unsigned long get_purr(void)
  189. {
  190. unsigned long sum_purr = 0;
  191. int cpu;
  192. struct cpu_usage *cu;
  193. for_each_cpu(cpu) {
  194. cu = &per_cpu(cpu_usage_array, cpu);
  195. sum_purr += cu->current_tb;
  196. }
  197. return sum_purr;
  198. }
  199. #define SPLPAR_CHARACTERISTICS_TOKEN 20
  200. #define SPLPAR_MAXLENGTH 1026*(sizeof(char))
  201. /*
  202. * parse_system_parameter_string()
  203. * Retrieve the potential_processors, max_entitled_capacity and friends
  204. * through the get-system-parameter rtas call. Replace keyword strings as
  205. * necessary.
  206. */
  207. static void parse_system_parameter_string(struct seq_file *m)
  208. {
  209. int call_status;
  210. char *local_buffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL);
  211. if (!local_buffer) {
  212. printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
  213. __FILE__, __FUNCTION__, __LINE__);
  214. return;
  215. }
  216. spin_lock(&rtas_data_buf_lock);
  217. memset(rtas_data_buf, 0, SPLPAR_MAXLENGTH);
  218. call_status = rtas_call(rtas_token("ibm,get-system-parameter"), 3, 1,
  219. NULL,
  220. SPLPAR_CHARACTERISTICS_TOKEN,
  221. __pa(rtas_data_buf));
  222. memcpy(local_buffer, rtas_data_buf, SPLPAR_MAXLENGTH);
  223. spin_unlock(&rtas_data_buf_lock);
  224. if (call_status != 0) {
  225. printk(KERN_INFO
  226. "%s %s Error calling get-system-parameter (0x%x)\n",
  227. __FILE__, __FUNCTION__, call_status);
  228. } else {
  229. int splpar_strlen;
  230. int idx, w_idx;
  231. char *workbuffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL);
  232. if (!workbuffer) {
  233. printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
  234. __FILE__, __FUNCTION__, __LINE__);
  235. return;
  236. }
  237. #ifdef LPARCFG_DEBUG
  238. printk(KERN_INFO "success calling get-system-parameter \n");
  239. #endif
  240. splpar_strlen = local_buffer[0] * 16 + local_buffer[1];
  241. local_buffer += 2; /* step over strlen value */
  242. memset(workbuffer, 0, SPLPAR_MAXLENGTH);
  243. w_idx = 0;
  244. idx = 0;
  245. while ((*local_buffer) && (idx < splpar_strlen)) {
  246. workbuffer[w_idx++] = local_buffer[idx++];
  247. if ((local_buffer[idx] == ',')
  248. || (local_buffer[idx] == '\0')) {
  249. workbuffer[w_idx] = '\0';
  250. if (w_idx) {
  251. /* avoid the empty string */
  252. seq_printf(m, "%s\n", workbuffer);
  253. }
  254. memset(workbuffer, 0, SPLPAR_MAXLENGTH);
  255. idx++; /* skip the comma */
  256. w_idx = 0;
  257. } else if (local_buffer[idx] == '=') {
  258. /* code here to replace workbuffer contents
  259. with different keyword strings */
  260. if (0 == strcmp(workbuffer, "MaxEntCap")) {
  261. strcpy(workbuffer,
  262. "partition_max_entitled_capacity");
  263. w_idx = strlen(workbuffer);
  264. }
  265. if (0 == strcmp(workbuffer, "MaxPlatProcs")) {
  266. strcpy(workbuffer,
  267. "system_potential_processors");
  268. w_idx = strlen(workbuffer);
  269. }
  270. }
  271. }
  272. kfree(workbuffer);
  273. local_buffer -= 2; /* back up over strlen value */
  274. }
  275. kfree(local_buffer);
  276. }
  277. static int lparcfg_count_active_processors(void);
  278. /* Return the number of processors in the system.
  279. * This function reads through the device tree and counts
  280. * the virtual processors, this does not include threads.
  281. */
  282. static int lparcfg_count_active_processors(void)
  283. {
  284. struct device_node *cpus_dn = NULL;
  285. int count = 0;
  286. while ((cpus_dn = of_find_node_by_type(cpus_dn, "cpu"))) {
  287. #ifdef LPARCFG_DEBUG
  288. printk(KERN_ERR "cpus_dn %p \n", cpus_dn);
  289. #endif
  290. count++;
  291. }
  292. return count;
  293. }
  294. static int lparcfg_data(struct seq_file *m, void *v)
  295. {
  296. int partition_potential_processors;
  297. int partition_active_processors;
  298. struct device_node *rootdn;
  299. const char *model = "";
  300. const char *system_id = "";
  301. unsigned int *lp_index_ptr, lp_index = 0;
  302. struct device_node *rtas_node;
  303. int *lrdrp;
  304. rootdn = find_path_device("/");
  305. if (rootdn) {
  306. model = get_property(rootdn, "model", NULL);
  307. system_id = get_property(rootdn, "system-id", NULL);
  308. lp_index_ptr = (unsigned int *)
  309. get_property(rootdn, "ibm,partition-no", NULL);
  310. if (lp_index_ptr)
  311. lp_index = *lp_index_ptr;
  312. }
  313. seq_printf(m, "%s %s \n", MODULE_NAME, MODULE_VERS);
  314. seq_printf(m, "serial_number=%s\n", system_id);
  315. seq_printf(m, "system_type=%s\n", model);
  316. seq_printf(m, "partition_id=%d\n", (int)lp_index);
  317. rtas_node = find_path_device("/rtas");
  318. lrdrp = (int *)get_property(rtas_node, "ibm,lrdr-capacity", NULL);
  319. if (lrdrp == NULL) {
  320. partition_potential_processors = systemcfg->processorCount;
  321. } else {
  322. partition_potential_processors = *(lrdrp + 4);
  323. }
  324. partition_active_processors = lparcfg_count_active_processors();
  325. if (cur_cpu_spec->firmware_features & FW_FEATURE_SPLPAR) {
  326. unsigned long h_entitled, h_unallocated;
  327. unsigned long h_aggregation, h_resource;
  328. unsigned long pool_idle_time, pool_procs;
  329. unsigned long purr;
  330. h_get_ppp(&h_entitled, &h_unallocated, &h_aggregation,
  331. &h_resource);
  332. seq_printf(m, "R4=0x%lx\n", h_entitled);
  333. seq_printf(m, "R5=0x%lx\n", h_unallocated);
  334. seq_printf(m, "R6=0x%lx\n", h_aggregation);
  335. seq_printf(m, "R7=0x%lx\n", h_resource);
  336. purr = get_purr();
  337. /* this call handles the ibm,get-system-parameter contents */
  338. parse_system_parameter_string(m);
  339. seq_printf(m, "partition_entitled_capacity=%ld\n", h_entitled);
  340. seq_printf(m, "group=%ld\n", (h_aggregation >> 2 * 8) & 0xffff);
  341. seq_printf(m, "system_active_processors=%ld\n",
  342. (h_resource >> 0 * 8) & 0xffff);
  343. /* pool related entries are apropriate for shared configs */
  344. if (paca[0].lppaca.shared_proc) {
  345. h_pic(&pool_idle_time, &pool_procs);
  346. seq_printf(m, "pool=%ld\n",
  347. (h_aggregation >> 0 * 8) & 0xffff);
  348. /* report pool_capacity in percentage */
  349. seq_printf(m, "pool_capacity=%ld\n",
  350. ((h_resource >> 2 * 8) & 0xffff) * 100);
  351. seq_printf(m, "pool_idle_time=%ld\n", pool_idle_time);
  352. seq_printf(m, "pool_num_procs=%ld\n", pool_procs);
  353. }
  354. seq_printf(m, "unallocated_capacity_weight=%ld\n",
  355. (h_resource >> 4 * 8) & 0xFF);
  356. seq_printf(m, "capacity_weight=%ld\n",
  357. (h_resource >> 5 * 8) & 0xFF);
  358. seq_printf(m, "capped=%ld\n", (h_resource >> 6 * 8) & 0x01);
  359. seq_printf(m, "unallocated_capacity=%ld\n", h_unallocated);
  360. seq_printf(m, "purr=%ld\n", purr);
  361. } else { /* non SPLPAR case */
  362. seq_printf(m, "system_active_processors=%d\n",
  363. partition_potential_processors);
  364. seq_printf(m, "system_potential_processors=%d\n",
  365. partition_potential_processors);
  366. seq_printf(m, "partition_max_entitled_capacity=%d\n",
  367. partition_potential_processors * 100);
  368. seq_printf(m, "partition_entitled_capacity=%d\n",
  369. partition_active_processors * 100);
  370. }
  371. seq_printf(m, "partition_active_processors=%d\n",
  372. partition_active_processors);
  373. seq_printf(m, "partition_potential_processors=%d\n",
  374. partition_potential_processors);
  375. seq_printf(m, "shared_processor_mode=%d\n", paca[0].lppaca.shared_proc);
  376. return 0;
  377. }
  378. /*
  379. * Interface for changing system parameters (variable capacity weight
  380. * and entitled capacity). Format of input is "param_name=value";
  381. * anything after value is ignored. Valid parameters at this time are
  382. * "partition_entitled_capacity" and "capacity_weight". We use
  383. * H_SET_PPP to alter parameters.
  384. *
  385. * This function should be invoked only on systems with
  386. * FW_FEATURE_SPLPAR.
  387. */
  388. static ssize_t lparcfg_write(struct file *file, const char __user * buf,
  389. size_t count, loff_t * off)
  390. {
  391. char *kbuf;
  392. char *tmp;
  393. u64 new_entitled, *new_entitled_ptr = &new_entitled;
  394. u8 new_weight, *new_weight_ptr = &new_weight;
  395. unsigned long current_entitled; /* parameters for h_get_ppp */
  396. unsigned long dummy;
  397. unsigned long resource;
  398. u8 current_weight;
  399. ssize_t retval = -ENOMEM;
  400. kbuf = kmalloc(count, GFP_KERNEL);
  401. if (!kbuf)
  402. goto out;
  403. retval = -EFAULT;
  404. if (copy_from_user(kbuf, buf, count))
  405. goto out;
  406. retval = -EINVAL;
  407. kbuf[count - 1] = '\0';
  408. tmp = strchr(kbuf, '=');
  409. if (!tmp)
  410. goto out;
  411. *tmp++ = '\0';
  412. if (!strcmp(kbuf, "partition_entitled_capacity")) {
  413. char *endp;
  414. *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10);
  415. if (endp == tmp)
  416. goto out;
  417. new_weight_ptr = &current_weight;
  418. } else if (!strcmp(kbuf, "capacity_weight")) {
  419. char *endp;
  420. *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10);
  421. if (endp == tmp)
  422. goto out;
  423. new_entitled_ptr = &current_entitled;
  424. } else
  425. goto out;
  426. /* Get our current parameters */
  427. retval = h_get_ppp(&current_entitled, &dummy, &dummy, &resource);
  428. if (retval) {
  429. retval = -EIO;
  430. goto out;
  431. }
  432. current_weight = (resource >> 5 * 8) & 0xFF;
  433. pr_debug("%s: current_entitled = %lu, current_weight = %lu\n",
  434. __FUNCTION__, current_entitled, current_weight);
  435. pr_debug("%s: new_entitled = %lu, new_weight = %lu\n",
  436. __FUNCTION__, *new_entitled_ptr, *new_weight_ptr);
  437. retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr,
  438. *new_weight_ptr);
  439. if (retval == H_Success || retval == H_Constrained) {
  440. retval = count;
  441. } else if (retval == H_Busy) {
  442. retval = -EBUSY;
  443. } else if (retval == H_Hardware) {
  444. retval = -EIO;
  445. } else if (retval == H_Parameter) {
  446. retval = -EINVAL;
  447. } else {
  448. printk(KERN_WARNING "%s: received unknown hv return code %ld",
  449. __FUNCTION__, retval);
  450. retval = -EIO;
  451. }
  452. out:
  453. kfree(kbuf);
  454. return retval;
  455. }
  456. #endif /* CONFIG_PPC_PSERIES */
  457. static int lparcfg_open(struct inode *inode, struct file *file)
  458. {
  459. return single_open(file, lparcfg_data, NULL);
  460. }
  461. struct file_operations lparcfg_fops = {
  462. .owner = THIS_MODULE,
  463. .read = seq_read,
  464. .open = lparcfg_open,
  465. .release = single_release,
  466. };
  467. int __init lparcfg_init(void)
  468. {
  469. struct proc_dir_entry *ent;
  470. mode_t mode = S_IRUSR;
  471. /* Allow writing if we have FW_FEATURE_SPLPAR */
  472. if (cur_cpu_spec->firmware_features & FW_FEATURE_SPLPAR) {
  473. lparcfg_fops.write = lparcfg_write;
  474. mode |= S_IWUSR;
  475. }
  476. ent = create_proc_entry("ppc64/lparcfg", mode, NULL);
  477. if (ent) {
  478. ent->proc_fops = &lparcfg_fops;
  479. ent->data = kmalloc(LPARCFG_BUFF_SIZE, GFP_KERNEL);
  480. if (!ent->data) {
  481. printk(KERN_ERR
  482. "Failed to allocate buffer for lparcfg\n");
  483. remove_proc_entry("lparcfg", ent->parent);
  484. return -ENOMEM;
  485. }
  486. } else {
  487. printk(KERN_ERR "Failed to create ppc64/lparcfg\n");
  488. return -EIO;
  489. }
  490. proc_ppc64_lparcfg = ent;
  491. return 0;
  492. }
  493. void __exit lparcfg_cleanup(void)
  494. {
  495. if (proc_ppc64_lparcfg) {
  496. if (proc_ppc64_lparcfg->data) {
  497. kfree(proc_ppc64_lparcfg->data);
  498. }
  499. remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent);
  500. }
  501. }
  502. module_init(lparcfg_init);
  503. module_exit(lparcfg_cleanup);
  504. MODULE_DESCRIPTION("Interface for LPAR configuration data");
  505. MODULE_AUTHOR("Dave Engebretsen");
  506. MODULE_LICENSE("GPL");