sysinfo.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright IBM Corp. 2001, 2009
  4. * Author(s): Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
  5. * Martin Schwidefsky <schwidefsky@de.ibm.com>,
  6. */
  7. #include <linux/debugfs.h>
  8. #include <linux/kernel.h>
  9. #include <linux/mm.h>
  10. #include <linux/proc_fs.h>
  11. #include <linux/seq_file.h>
  12. #include <linux/init.h>
  13. #include <linux/delay.h>
  14. #include <linux/export.h>
  15. #include <linux/slab.h>
  16. #include <asm/ebcdic.h>
  17. #include <asm/debug.h>
  18. #include <asm/sysinfo.h>
  19. #include <asm/cpcmd.h>
  20. #include <asm/topology.h>
  21. #include <asm/fpu/api.h>
  22. int topology_max_mnest;
  23. static inline int __stsi(void *sysinfo, int fc, int sel1, int sel2, int *lvl)
  24. {
  25. register int r0 asm("0") = (fc << 28) | sel1;
  26. register int r1 asm("1") = sel2;
  27. int rc = 0;
  28. asm volatile(
  29. " stsi 0(%3)\n"
  30. "0: jz 2f\n"
  31. "1: lhi %1,%4\n"
  32. "2:\n"
  33. EX_TABLE(0b, 1b)
  34. : "+d" (r0), "+d" (rc)
  35. : "d" (r1), "a" (sysinfo), "K" (-EOPNOTSUPP)
  36. : "cc", "memory");
  37. *lvl = ((unsigned int) r0) >> 28;
  38. return rc;
  39. }
  40. /*
  41. * stsi - store system information
  42. *
  43. * Returns the current configuration level if function code 0 was specified.
  44. * Otherwise returns 0 on success or a negative value on error.
  45. */
  46. int stsi(void *sysinfo, int fc, int sel1, int sel2)
  47. {
  48. int lvl, rc;
  49. rc = __stsi(sysinfo, fc, sel1, sel2, &lvl);
  50. if (rc)
  51. return rc;
  52. return fc ? 0 : lvl;
  53. }
  54. EXPORT_SYMBOL(stsi);
  55. static bool convert_ext_name(unsigned char encoding, char *name, size_t len)
  56. {
  57. switch (encoding) {
  58. case 1: /* EBCDIC */
  59. EBCASC(name, len);
  60. break;
  61. case 2: /* UTF-8 */
  62. break;
  63. default:
  64. return false;
  65. }
  66. return true;
  67. }
  68. static void stsi_1_1_1(struct seq_file *m, struct sysinfo_1_1_1 *info)
  69. {
  70. int i;
  71. if (stsi(info, 1, 1, 1))
  72. return;
  73. EBCASC(info->manufacturer, sizeof(info->manufacturer));
  74. EBCASC(info->type, sizeof(info->type));
  75. EBCASC(info->model, sizeof(info->model));
  76. EBCASC(info->sequence, sizeof(info->sequence));
  77. EBCASC(info->plant, sizeof(info->plant));
  78. EBCASC(info->model_capacity, sizeof(info->model_capacity));
  79. EBCASC(info->model_perm_cap, sizeof(info->model_perm_cap));
  80. EBCASC(info->model_temp_cap, sizeof(info->model_temp_cap));
  81. seq_printf(m, "Manufacturer: %-16.16s\n", info->manufacturer);
  82. seq_printf(m, "Type: %-4.4s\n", info->type);
  83. if (info->lic)
  84. seq_printf(m, "LIC Identifier: %016lx\n", info->lic);
  85. /*
  86. * Sigh: the model field has been renamed with System z9
  87. * to model_capacity and a new model field has been added
  88. * after the plant field. To avoid confusing older programs
  89. * the "Model:" prints "model_capacity model" or just
  90. * "model_capacity" if the model string is empty .
  91. */
  92. seq_printf(m, "Model: %-16.16s", info->model_capacity);
  93. if (info->model[0] != '\0')
  94. seq_printf(m, " %-16.16s", info->model);
  95. seq_putc(m, '\n');
  96. seq_printf(m, "Sequence Code: %-16.16s\n", info->sequence);
  97. seq_printf(m, "Plant: %-4.4s\n", info->plant);
  98. seq_printf(m, "Model Capacity: %-16.16s %08u\n",
  99. info->model_capacity, info->model_cap_rating);
  100. if (info->model_perm_cap_rating)
  101. seq_printf(m, "Model Perm. Capacity: %-16.16s %08u\n",
  102. info->model_perm_cap,
  103. info->model_perm_cap_rating);
  104. if (info->model_temp_cap_rating)
  105. seq_printf(m, "Model Temp. Capacity: %-16.16s %08u\n",
  106. info->model_temp_cap,
  107. info->model_temp_cap_rating);
  108. if (info->ncr)
  109. seq_printf(m, "Nominal Cap. Rating: %08u\n", info->ncr);
  110. if (info->npr)
  111. seq_printf(m, "Nominal Perm. Rating: %08u\n", info->npr);
  112. if (info->ntr)
  113. seq_printf(m, "Nominal Temp. Rating: %08u\n", info->ntr);
  114. if (info->cai) {
  115. seq_printf(m, "Capacity Adj. Ind.: %d\n", info->cai);
  116. seq_printf(m, "Capacity Ch. Reason: %d\n", info->ccr);
  117. seq_printf(m, "Capacity Transient: %d\n", info->t);
  118. }
  119. if (info->p) {
  120. for (i = 1; i <= ARRAY_SIZE(info->typepct); i++) {
  121. seq_printf(m, "Type %d Percentage: %d\n",
  122. i, info->typepct[i - 1]);
  123. }
  124. }
  125. }
  126. static void stsi_15_1_x(struct seq_file *m, struct sysinfo_15_1_x *info)
  127. {
  128. int i;
  129. seq_putc(m, '\n');
  130. if (!MACHINE_HAS_TOPOLOGY)
  131. return;
  132. if (stsi(info, 15, 1, topology_max_mnest))
  133. return;
  134. seq_printf(m, "CPU Topology HW: ");
  135. for (i = 0; i < TOPOLOGY_NR_MAG; i++)
  136. seq_printf(m, " %d", info->mag[i]);
  137. seq_putc(m, '\n');
  138. #ifdef CONFIG_SCHED_TOPOLOGY
  139. store_topology(info);
  140. seq_printf(m, "CPU Topology SW: ");
  141. for (i = 0; i < TOPOLOGY_NR_MAG; i++)
  142. seq_printf(m, " %d", info->mag[i]);
  143. seq_putc(m, '\n');
  144. #endif
  145. }
  146. static void stsi_1_2_2(struct seq_file *m, struct sysinfo_1_2_2 *info)
  147. {
  148. struct sysinfo_1_2_2_extension *ext;
  149. int i;
  150. if (stsi(info, 1, 2, 2))
  151. return;
  152. ext = (struct sysinfo_1_2_2_extension *)
  153. ((unsigned long) info + info->acc_offset);
  154. seq_printf(m, "CPUs Total: %d\n", info->cpus_total);
  155. seq_printf(m, "CPUs Configured: %d\n", info->cpus_configured);
  156. seq_printf(m, "CPUs Standby: %d\n", info->cpus_standby);
  157. seq_printf(m, "CPUs Reserved: %d\n", info->cpus_reserved);
  158. if (info->mt_installed) {
  159. seq_printf(m, "CPUs G-MTID: %d\n", info->mt_gtid);
  160. seq_printf(m, "CPUs S-MTID: %d\n", info->mt_stid);
  161. }
  162. /*
  163. * Sigh 2. According to the specification the alternate
  164. * capability field is a 32 bit floating point number
  165. * if the higher order 8 bits are not zero. Printing
  166. * a floating point number in the kernel is a no-no,
  167. * always print the number as 32 bit unsigned integer.
  168. * The user-space needs to know about the strange
  169. * encoding of the alternate cpu capability.
  170. */
  171. seq_printf(m, "Capability: %u", info->capability);
  172. if (info->format == 1)
  173. seq_printf(m, " %u", ext->alt_capability);
  174. seq_putc(m, '\n');
  175. if (info->nominal_cap)
  176. seq_printf(m, "Nominal Capability: %d\n", info->nominal_cap);
  177. if (info->secondary_cap)
  178. seq_printf(m, "Secondary Capability: %d\n", info->secondary_cap);
  179. for (i = 2; i <= info->cpus_total; i++) {
  180. seq_printf(m, "Adjustment %02d-way: %u",
  181. i, info->adjustment[i-2]);
  182. if (info->format == 1)
  183. seq_printf(m, " %u", ext->alt_adjustment[i-2]);
  184. seq_putc(m, '\n');
  185. }
  186. }
  187. static void stsi_2_2_2(struct seq_file *m, struct sysinfo_2_2_2 *info)
  188. {
  189. if (stsi(info, 2, 2, 2))
  190. return;
  191. EBCASC(info->name, sizeof(info->name));
  192. seq_putc(m, '\n');
  193. seq_printf(m, "LPAR Number: %d\n", info->lpar_number);
  194. seq_printf(m, "LPAR Characteristics: ");
  195. if (info->characteristics & LPAR_CHAR_DEDICATED)
  196. seq_printf(m, "Dedicated ");
  197. if (info->characteristics & LPAR_CHAR_SHARED)
  198. seq_printf(m, "Shared ");
  199. if (info->characteristics & LPAR_CHAR_LIMITED)
  200. seq_printf(m, "Limited ");
  201. seq_putc(m, '\n');
  202. seq_printf(m, "LPAR Name: %-8.8s\n", info->name);
  203. seq_printf(m, "LPAR Adjustment: %d\n", info->caf);
  204. seq_printf(m, "LPAR CPUs Total: %d\n", info->cpus_total);
  205. seq_printf(m, "LPAR CPUs Configured: %d\n", info->cpus_configured);
  206. seq_printf(m, "LPAR CPUs Standby: %d\n", info->cpus_standby);
  207. seq_printf(m, "LPAR CPUs Reserved: %d\n", info->cpus_reserved);
  208. seq_printf(m, "LPAR CPUs Dedicated: %d\n", info->cpus_dedicated);
  209. seq_printf(m, "LPAR CPUs Shared: %d\n", info->cpus_shared);
  210. if (info->mt_installed) {
  211. seq_printf(m, "LPAR CPUs G-MTID: %d\n", info->mt_gtid);
  212. seq_printf(m, "LPAR CPUs S-MTID: %d\n", info->mt_stid);
  213. seq_printf(m, "LPAR CPUs PS-MTID: %d\n", info->mt_psmtid);
  214. }
  215. if (convert_ext_name(info->vsne, info->ext_name, sizeof(info->ext_name))) {
  216. seq_printf(m, "LPAR Extended Name: %-.256s\n", info->ext_name);
  217. seq_printf(m, "LPAR UUID: %pUb\n", &info->uuid);
  218. }
  219. }
  220. static void print_ext_name(struct seq_file *m, int lvl,
  221. struct sysinfo_3_2_2 *info)
  222. {
  223. size_t len = sizeof(info->ext_names[lvl]);
  224. if (!convert_ext_name(info->vm[lvl].evmne, info->ext_names[lvl], len))
  225. return;
  226. seq_printf(m, "VM%02d Extended Name: %-.256s\n", lvl,
  227. info->ext_names[lvl]);
  228. }
  229. static void print_uuid(struct seq_file *m, int i, struct sysinfo_3_2_2 *info)
  230. {
  231. if (uuid_is_null(&info->vm[i].uuid))
  232. return;
  233. seq_printf(m, "VM%02d UUID: %pUb\n", i, &info->vm[i].uuid);
  234. }
  235. static void stsi_3_2_2(struct seq_file *m, struct sysinfo_3_2_2 *info)
  236. {
  237. int i;
  238. if (stsi(info, 3, 2, 2))
  239. return;
  240. for (i = 0; i < info->count; i++) {
  241. EBCASC(info->vm[i].name, sizeof(info->vm[i].name));
  242. EBCASC(info->vm[i].cpi, sizeof(info->vm[i].cpi));
  243. seq_putc(m, '\n');
  244. seq_printf(m, "VM%02d Name: %-8.8s\n", i, info->vm[i].name);
  245. seq_printf(m, "VM%02d Control Program: %-16.16s\n", i, info->vm[i].cpi);
  246. seq_printf(m, "VM%02d Adjustment: %d\n", i, info->vm[i].caf);
  247. seq_printf(m, "VM%02d CPUs Total: %d\n", i, info->vm[i].cpus_total);
  248. seq_printf(m, "VM%02d CPUs Configured: %d\n", i, info->vm[i].cpus_configured);
  249. seq_printf(m, "VM%02d CPUs Standby: %d\n", i, info->vm[i].cpus_standby);
  250. seq_printf(m, "VM%02d CPUs Reserved: %d\n", i, info->vm[i].cpus_reserved);
  251. print_ext_name(m, i, info);
  252. print_uuid(m, i, info);
  253. }
  254. }
  255. static int sysinfo_show(struct seq_file *m, void *v)
  256. {
  257. void *info = (void *)get_zeroed_page(GFP_KERNEL);
  258. int level;
  259. if (!info)
  260. return 0;
  261. level = stsi(NULL, 0, 0, 0);
  262. if (level >= 1)
  263. stsi_1_1_1(m, info);
  264. if (level >= 1)
  265. stsi_15_1_x(m, info);
  266. if (level >= 1)
  267. stsi_1_2_2(m, info);
  268. if (level >= 2)
  269. stsi_2_2_2(m, info);
  270. if (level >= 3)
  271. stsi_3_2_2(m, info);
  272. free_page((unsigned long)info);
  273. return 0;
  274. }
  275. static int __init sysinfo_create_proc(void)
  276. {
  277. proc_create_single("sysinfo", 0444, NULL, sysinfo_show);
  278. return 0;
  279. }
  280. device_initcall(sysinfo_create_proc);
  281. /*
  282. * Service levels interface.
  283. */
  284. static DECLARE_RWSEM(service_level_sem);
  285. static LIST_HEAD(service_level_list);
  286. int register_service_level(struct service_level *slr)
  287. {
  288. struct service_level *ptr;
  289. down_write(&service_level_sem);
  290. list_for_each_entry(ptr, &service_level_list, list)
  291. if (ptr == slr) {
  292. up_write(&service_level_sem);
  293. return -EEXIST;
  294. }
  295. list_add_tail(&slr->list, &service_level_list);
  296. up_write(&service_level_sem);
  297. return 0;
  298. }
  299. EXPORT_SYMBOL(register_service_level);
  300. int unregister_service_level(struct service_level *slr)
  301. {
  302. struct service_level *ptr, *next;
  303. int rc = -ENOENT;
  304. down_write(&service_level_sem);
  305. list_for_each_entry_safe(ptr, next, &service_level_list, list) {
  306. if (ptr != slr)
  307. continue;
  308. list_del(&ptr->list);
  309. rc = 0;
  310. break;
  311. }
  312. up_write(&service_level_sem);
  313. return rc;
  314. }
  315. EXPORT_SYMBOL(unregister_service_level);
  316. static void *service_level_start(struct seq_file *m, loff_t *pos)
  317. {
  318. down_read(&service_level_sem);
  319. return seq_list_start(&service_level_list, *pos);
  320. }
  321. static void *service_level_next(struct seq_file *m, void *p, loff_t *pos)
  322. {
  323. return seq_list_next(p, &service_level_list, pos);
  324. }
  325. static void service_level_stop(struct seq_file *m, void *p)
  326. {
  327. up_read(&service_level_sem);
  328. }
  329. static int service_level_show(struct seq_file *m, void *p)
  330. {
  331. struct service_level *slr;
  332. slr = list_entry(p, struct service_level, list);
  333. slr->seq_print(m, slr);
  334. return 0;
  335. }
  336. static const struct seq_operations service_level_seq_ops = {
  337. .start = service_level_start,
  338. .next = service_level_next,
  339. .stop = service_level_stop,
  340. .show = service_level_show
  341. };
  342. static void service_level_vm_print(struct seq_file *m,
  343. struct service_level *slr)
  344. {
  345. char *query_buffer, *str;
  346. query_buffer = kmalloc(1024, GFP_KERNEL | GFP_DMA);
  347. if (!query_buffer)
  348. return;
  349. cpcmd("QUERY CPLEVEL", query_buffer, 1024, NULL);
  350. str = strchr(query_buffer, '\n');
  351. if (str)
  352. *str = 0;
  353. seq_printf(m, "VM: %s\n", query_buffer);
  354. kfree(query_buffer);
  355. }
  356. static struct service_level service_level_vm = {
  357. .seq_print = service_level_vm_print
  358. };
  359. static __init int create_proc_service_level(void)
  360. {
  361. proc_create_seq("service_levels", 0, NULL, &service_level_seq_ops);
  362. if (MACHINE_IS_VM)
  363. register_service_level(&service_level_vm);
  364. return 0;
  365. }
  366. subsys_initcall(create_proc_service_level);
  367. /*
  368. * CPU capability might have changed. Therefore recalculate loops_per_jiffy.
  369. */
  370. void s390_adjust_jiffies(void)
  371. {
  372. struct sysinfo_1_2_2 *info;
  373. unsigned long capability;
  374. struct kernel_fpu fpu;
  375. info = (void *) get_zeroed_page(GFP_KERNEL);
  376. if (!info)
  377. return;
  378. if (stsi(info, 1, 2, 2) == 0) {
  379. /*
  380. * Major sigh. The cpu capability encoding is "special".
  381. * If the first 9 bits of info->capability are 0 then it
  382. * is a 32 bit unsigned integer in the range 0 .. 2^23.
  383. * If the first 9 bits are != 0 then it is a 32 bit float.
  384. * In addition a lower value indicates a proportionally
  385. * higher cpu capacity. Bogomips are the other way round.
  386. * To get to a halfway suitable number we divide 1e7
  387. * by the cpu capability number. Yes, that means a floating
  388. * point division ..
  389. */
  390. kernel_fpu_begin(&fpu, KERNEL_FPR);
  391. asm volatile(
  392. " sfpc %3\n"
  393. " l %0,%1\n"
  394. " tmlh %0,0xff80\n"
  395. " jnz 0f\n"
  396. " cefbr %%f2,%0\n"
  397. " j 1f\n"
  398. "0: le %%f2,%1\n"
  399. "1: cefbr %%f0,%2\n"
  400. " debr %%f0,%%f2\n"
  401. " cgebr %0,5,%%f0\n"
  402. : "=&d" (capability)
  403. : "Q" (info->capability), "d" (10000000), "d" (0)
  404. : "cc"
  405. );
  406. kernel_fpu_end(&fpu, KERNEL_FPR);
  407. } else
  408. /*
  409. * Really old machine without stsi block for basic
  410. * cpu information. Report 42.0 bogomips.
  411. */
  412. capability = 42;
  413. loops_per_jiffy = capability * (500000/HZ);
  414. free_page((unsigned long) info);
  415. }
  416. /*
  417. * calibrate the delay loop
  418. */
  419. void calibrate_delay(void)
  420. {
  421. s390_adjust_jiffies();
  422. /* Print the good old Bogomips line .. */
  423. printk(KERN_DEBUG "Calibrating delay loop (skipped)... "
  424. "%lu.%02lu BogoMIPS preset\n", loops_per_jiffy/(500000/HZ),
  425. (loops_per_jiffy/(5000/HZ)) % 100);
  426. }
  427. #ifdef CONFIG_DEBUG_FS
  428. #define STSI_FILE(fc, s1, s2) \
  429. static int stsi_open_##fc##_##s1##_##s2(struct inode *inode, struct file *file)\
  430. { \
  431. file->private_data = (void *) get_zeroed_page(GFP_KERNEL); \
  432. if (!file->private_data) \
  433. return -ENOMEM; \
  434. if (stsi(file->private_data, fc, s1, s2)) { \
  435. free_page((unsigned long)file->private_data); \
  436. file->private_data = NULL; \
  437. return -EACCES; \
  438. } \
  439. return nonseekable_open(inode, file); \
  440. } \
  441. \
  442. static const struct file_operations stsi_##fc##_##s1##_##s2##_fs_ops = { \
  443. .open = stsi_open_##fc##_##s1##_##s2, \
  444. .release = stsi_release, \
  445. .read = stsi_read, \
  446. .llseek = no_llseek, \
  447. };
  448. static int stsi_release(struct inode *inode, struct file *file)
  449. {
  450. free_page((unsigned long)file->private_data);
  451. return 0;
  452. }
  453. static ssize_t stsi_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
  454. {
  455. return simple_read_from_buffer(buf, size, ppos, file->private_data, PAGE_SIZE);
  456. }
  457. STSI_FILE( 1, 1, 1);
  458. STSI_FILE( 1, 2, 1);
  459. STSI_FILE( 1, 2, 2);
  460. STSI_FILE( 2, 2, 1);
  461. STSI_FILE( 2, 2, 2);
  462. STSI_FILE( 3, 2, 2);
  463. STSI_FILE(15, 1, 2);
  464. STSI_FILE(15, 1, 3);
  465. STSI_FILE(15, 1, 4);
  466. STSI_FILE(15, 1, 5);
  467. STSI_FILE(15, 1, 6);
  468. struct stsi_file {
  469. const struct file_operations *fops;
  470. char *name;
  471. };
  472. static struct stsi_file stsi_file[] __initdata = {
  473. {.fops = &stsi_1_1_1_fs_ops, .name = "1_1_1"},
  474. {.fops = &stsi_1_2_1_fs_ops, .name = "1_2_1"},
  475. {.fops = &stsi_1_2_2_fs_ops, .name = "1_2_2"},
  476. {.fops = &stsi_2_2_1_fs_ops, .name = "2_2_1"},
  477. {.fops = &stsi_2_2_2_fs_ops, .name = "2_2_2"},
  478. {.fops = &stsi_3_2_2_fs_ops, .name = "3_2_2"},
  479. {.fops = &stsi_15_1_2_fs_ops, .name = "15_1_2"},
  480. {.fops = &stsi_15_1_3_fs_ops, .name = "15_1_3"},
  481. {.fops = &stsi_15_1_4_fs_ops, .name = "15_1_4"},
  482. {.fops = &stsi_15_1_5_fs_ops, .name = "15_1_5"},
  483. {.fops = &stsi_15_1_6_fs_ops, .name = "15_1_6"},
  484. };
  485. static u8 stsi_0_0_0;
  486. static __init int stsi_init_debugfs(void)
  487. {
  488. struct dentry *stsi_root;
  489. struct stsi_file *sf;
  490. int lvl, i;
  491. stsi_root = debugfs_create_dir("stsi", arch_debugfs_dir);
  492. if (IS_ERR_OR_NULL(stsi_root))
  493. return 0;
  494. lvl = stsi(NULL, 0, 0, 0);
  495. if (lvl > 0)
  496. stsi_0_0_0 = lvl;
  497. debugfs_create_u8("0_0_0", 0400, stsi_root, &stsi_0_0_0);
  498. for (i = 0; i < ARRAY_SIZE(stsi_file); i++) {
  499. sf = &stsi_file[i];
  500. debugfs_create_file(sf->name, 0400, stsi_root, NULL, sf->fops);
  501. }
  502. if (IS_ENABLED(CONFIG_SCHED_TOPOLOGY) && MACHINE_HAS_TOPOLOGY) {
  503. char link_to[10];
  504. sprintf(link_to, "15_1_%d", topology_mnest_limit());
  505. debugfs_create_symlink("topology", stsi_root, link_to);
  506. }
  507. return 0;
  508. }
  509. device_initcall(stsi_init_debugfs);
  510. #endif /* CONFIG_DEBUG_FS */