dasd_fba.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. /*
  2. * File...........: linux/drivers/s390/block/dasd_fba.c
  3. * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  4. * Bugreports.to..: <Linux390@de.ibm.com>
  5. * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000
  6. *
  7. */
  8. #include <linux/stddef.h>
  9. #include <linux/kernel.h>
  10. #include <asm/debug.h>
  11. #include <linux/slab.h>
  12. #include <linux/hdreg.h> /* HDIO_GETGEO */
  13. #include <linux/bio.h>
  14. #include <linux/module.h>
  15. #include <linux/init.h>
  16. #include <asm/idals.h>
  17. #include <asm/ebcdic.h>
  18. #include <asm/io.h>
  19. #include <asm/todclk.h>
  20. #include <asm/ccwdev.h>
  21. #include "dasd_int.h"
  22. #include "dasd_fba.h"
  23. #ifdef PRINTK_HEADER
  24. #undef PRINTK_HEADER
  25. #endif /* PRINTK_HEADER */
  26. #define PRINTK_HEADER "dasd(fba):"
  27. #define DASD_FBA_CCW_WRITE 0x41
  28. #define DASD_FBA_CCW_READ 0x42
  29. #define DASD_FBA_CCW_LOCATE 0x43
  30. #define DASD_FBA_CCW_DEFINE_EXTENT 0x63
  31. MODULE_LICENSE("GPL");
  32. static struct dasd_discipline dasd_fba_discipline;
  33. struct dasd_fba_private {
  34. struct dasd_fba_characteristics rdc_data;
  35. };
  36. static struct ccw_device_id dasd_fba_ids[] = {
  37. { CCW_DEVICE_DEVTYPE (0x6310, 0, 0x9336, 0), .driver_info = 0x1},
  38. { CCW_DEVICE_DEVTYPE (0x3880, 0, 0x3370, 0), .driver_info = 0x2},
  39. { /* end of list */ },
  40. };
  41. MODULE_DEVICE_TABLE(ccw, dasd_fba_ids);
  42. static struct ccw_driver dasd_fba_driver; /* see below */
  43. static int
  44. dasd_fba_probe(struct ccw_device *cdev)
  45. {
  46. return dasd_generic_probe(cdev, &dasd_fba_discipline);
  47. }
  48. static int
  49. dasd_fba_set_online(struct ccw_device *cdev)
  50. {
  51. return dasd_generic_set_online(cdev, &dasd_fba_discipline);
  52. }
  53. static struct ccw_driver dasd_fba_driver = {
  54. .name = "dasd-fba",
  55. .owner = THIS_MODULE,
  56. .ids = dasd_fba_ids,
  57. .probe = dasd_fba_probe,
  58. .remove = dasd_generic_remove,
  59. .set_offline = dasd_generic_set_offline,
  60. .set_online = dasd_fba_set_online,
  61. .notify = dasd_generic_notify,
  62. };
  63. static inline void
  64. define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw,
  65. int blksize, int beg, int nr)
  66. {
  67. ccw->cmd_code = DASD_FBA_CCW_DEFINE_EXTENT;
  68. ccw->flags = 0;
  69. ccw->count = 16;
  70. ccw->cda = (__u32) __pa(data);
  71. memset(data, 0, sizeof (struct DE_fba_data));
  72. if (rw == WRITE)
  73. (data->mask).perm = 0x0;
  74. else if (rw == READ)
  75. (data->mask).perm = 0x1;
  76. else
  77. data->mask.perm = 0x2;
  78. data->blk_size = blksize;
  79. data->ext_loc = beg;
  80. data->ext_end = nr - 1;
  81. }
  82. static inline void
  83. locate_record(struct ccw1 * ccw, struct LO_fba_data *data, int rw,
  84. int block_nr, int block_ct)
  85. {
  86. ccw->cmd_code = DASD_FBA_CCW_LOCATE;
  87. ccw->flags = 0;
  88. ccw->count = 8;
  89. ccw->cda = (__u32) __pa(data);
  90. memset(data, 0, sizeof (struct LO_fba_data));
  91. if (rw == WRITE)
  92. data->operation.cmd = 0x5;
  93. else if (rw == READ)
  94. data->operation.cmd = 0x6;
  95. else
  96. data->operation.cmd = 0x8;
  97. data->blk_nr = block_nr;
  98. data->blk_ct = block_ct;
  99. }
  100. static int
  101. dasd_fba_check_characteristics(struct dasd_device *device)
  102. {
  103. struct dasd_fba_private *private;
  104. struct ccw_device *cdev = device->cdev;
  105. void *rdc_data;
  106. int rc;
  107. private = (struct dasd_fba_private *) device->private;
  108. if (private == NULL) {
  109. private = kzalloc(sizeof(struct dasd_fba_private), GFP_KERNEL);
  110. if (private == NULL) {
  111. DEV_MESSAGE(KERN_WARNING, device, "%s",
  112. "memory allocation failed for private "
  113. "data");
  114. return -ENOMEM;
  115. }
  116. device->private = (void *) private;
  117. }
  118. /* Read Device Characteristics */
  119. rdc_data = (void *) &(private->rdc_data);
  120. rc = read_dev_chars(device->cdev, &rdc_data, 32);
  121. if (rc) {
  122. DEV_MESSAGE(KERN_WARNING, device,
  123. "Read device characteristics returned error %d",
  124. rc);
  125. return rc;
  126. }
  127. DEV_MESSAGE(KERN_INFO, device,
  128. "%04X/%02X(CU:%04X/%02X) %dMB at(%d B/blk)",
  129. cdev->id.dev_type,
  130. cdev->id.dev_model,
  131. cdev->id.cu_type,
  132. cdev->id.cu_model,
  133. ((private->rdc_data.blk_bdsa *
  134. (private->rdc_data.blk_size >> 9)) >> 11),
  135. private->rdc_data.blk_size);
  136. return 0;
  137. }
  138. static int
  139. dasd_fba_do_analysis(struct dasd_device *device)
  140. {
  141. struct dasd_fba_private *private;
  142. int sb, rc;
  143. private = (struct dasd_fba_private *) device->private;
  144. rc = dasd_check_blocksize(private->rdc_data.blk_size);
  145. if (rc) {
  146. DEV_MESSAGE(KERN_INFO, device, "unknown blocksize %d",
  147. private->rdc_data.blk_size);
  148. return rc;
  149. }
  150. device->blocks = private->rdc_data.blk_bdsa;
  151. device->bp_block = private->rdc_data.blk_size;
  152. device->s2b_shift = 0; /* bits to shift 512 to get a block */
  153. for (sb = 512; sb < private->rdc_data.blk_size; sb = sb << 1)
  154. device->s2b_shift++;
  155. return 0;
  156. }
  157. static int
  158. dasd_fba_fill_geometry(struct dasd_device *device, struct hd_geometry *geo)
  159. {
  160. if (dasd_check_blocksize(device->bp_block) != 0)
  161. return -EINVAL;
  162. geo->cylinders = (device->blocks << device->s2b_shift) >> 10;
  163. geo->heads = 16;
  164. geo->sectors = 128 >> device->s2b_shift;
  165. return 0;
  166. }
  167. static dasd_era_t
  168. dasd_fba_examine_error(struct dasd_ccw_req * cqr, struct irb * irb)
  169. {
  170. struct dasd_device *device;
  171. struct ccw_device *cdev;
  172. device = (struct dasd_device *) cqr->device;
  173. if (irb->scsw.cstat == 0x00 &&
  174. irb->scsw.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END))
  175. return dasd_era_none;
  176. cdev = device->cdev;
  177. switch (cdev->id.dev_type) {
  178. case 0x3370:
  179. return dasd_3370_erp_examine(cqr, irb);
  180. case 0x9336:
  181. return dasd_9336_erp_examine(cqr, irb);
  182. default:
  183. return dasd_era_recover;
  184. }
  185. }
  186. static dasd_erp_fn_t
  187. dasd_fba_erp_action(struct dasd_ccw_req * cqr)
  188. {
  189. return dasd_default_erp_action;
  190. }
  191. static dasd_erp_fn_t
  192. dasd_fba_erp_postaction(struct dasd_ccw_req * cqr)
  193. {
  194. if (cqr->function == dasd_default_erp_action)
  195. return dasd_default_erp_postaction;
  196. DEV_MESSAGE(KERN_WARNING, cqr->device, "unknown ERP action %p",
  197. cqr->function);
  198. return NULL;
  199. }
  200. static struct dasd_ccw_req *
  201. dasd_fba_build_cp(struct dasd_device * device, struct request *req)
  202. {
  203. struct dasd_fba_private *private;
  204. unsigned long *idaws;
  205. struct LO_fba_data *LO_data;
  206. struct dasd_ccw_req *cqr;
  207. struct ccw1 *ccw;
  208. struct bio *bio;
  209. struct bio_vec *bv;
  210. char *dst;
  211. int count, cidaw, cplength, datasize;
  212. sector_t recid, first_rec, last_rec;
  213. unsigned int blksize, off;
  214. unsigned char cmd;
  215. int i;
  216. private = (struct dasd_fba_private *) device->private;
  217. if (rq_data_dir(req) == READ) {
  218. cmd = DASD_FBA_CCW_READ;
  219. } else if (rq_data_dir(req) == WRITE) {
  220. cmd = DASD_FBA_CCW_WRITE;
  221. } else
  222. return ERR_PTR(-EINVAL);
  223. blksize = device->bp_block;
  224. /* Calculate record id of first and last block. */
  225. first_rec = req->sector >> device->s2b_shift;
  226. last_rec = (req->sector + req->nr_sectors - 1) >> device->s2b_shift;
  227. /* Check struct bio and count the number of blocks for the request. */
  228. count = 0;
  229. cidaw = 0;
  230. rq_for_each_bio(bio, req) {
  231. bio_for_each_segment(bv, bio, i) {
  232. if (bv->bv_len & (blksize - 1))
  233. /* Fba can only do full blocks. */
  234. return ERR_PTR(-EINVAL);
  235. count += bv->bv_len >> (device->s2b_shift + 9);
  236. #if defined(CONFIG_64BIT)
  237. if (idal_is_needed (page_address(bv->bv_page),
  238. bv->bv_len))
  239. cidaw += bv->bv_len / blksize;
  240. #endif
  241. }
  242. }
  243. /* Paranoia. */
  244. if (count != last_rec - first_rec + 1)
  245. return ERR_PTR(-EINVAL);
  246. /* 1x define extent + 1x locate record + number of blocks */
  247. cplength = 2 + count;
  248. /* 1x define extent + 1x locate record */
  249. datasize = sizeof(struct DE_fba_data) + sizeof(struct LO_fba_data) +
  250. cidaw * sizeof(unsigned long);
  251. /*
  252. * Find out number of additional locate record ccws if the device
  253. * can't do data chaining.
  254. */
  255. if (private->rdc_data.mode.bits.data_chain == 0) {
  256. cplength += count - 1;
  257. datasize += (count - 1)*sizeof(struct LO_fba_data);
  258. }
  259. /* Allocate the ccw request. */
  260. cqr = dasd_smalloc_request(dasd_fba_discipline.name,
  261. cplength, datasize, device);
  262. if (IS_ERR(cqr))
  263. return cqr;
  264. ccw = cqr->cpaddr;
  265. /* First ccw is define extent. */
  266. define_extent(ccw++, cqr->data, rq_data_dir(req),
  267. device->bp_block, req->sector, req->nr_sectors);
  268. /* Build locate_record + read/write ccws. */
  269. idaws = (unsigned long *) (cqr->data + sizeof(struct DE_fba_data));
  270. LO_data = (struct LO_fba_data *) (idaws + cidaw);
  271. /* Locate record for all blocks for smart devices. */
  272. if (private->rdc_data.mode.bits.data_chain != 0) {
  273. ccw[-1].flags |= CCW_FLAG_CC;
  274. locate_record(ccw++, LO_data++, rq_data_dir(req), 0, count);
  275. }
  276. recid = first_rec;
  277. rq_for_each_bio(bio, req) bio_for_each_segment(bv, bio, i) {
  278. dst = page_address(bv->bv_page) + bv->bv_offset;
  279. if (dasd_page_cache) {
  280. char *copy = kmem_cache_alloc(dasd_page_cache,
  281. SLAB_DMA | __GFP_NOWARN);
  282. if (copy && rq_data_dir(req) == WRITE)
  283. memcpy(copy + bv->bv_offset, dst, bv->bv_len);
  284. if (copy)
  285. dst = copy + bv->bv_offset;
  286. }
  287. for (off = 0; off < bv->bv_len; off += blksize) {
  288. /* Locate record for stupid devices. */
  289. if (private->rdc_data.mode.bits.data_chain == 0) {
  290. ccw[-1].flags |= CCW_FLAG_CC;
  291. locate_record(ccw, LO_data++,
  292. rq_data_dir(req),
  293. recid - first_rec, 1);
  294. ccw->flags = CCW_FLAG_CC;
  295. ccw++;
  296. } else {
  297. if (recid > first_rec)
  298. ccw[-1].flags |= CCW_FLAG_DC;
  299. else
  300. ccw[-1].flags |= CCW_FLAG_CC;
  301. }
  302. ccw->cmd_code = cmd;
  303. ccw->count = device->bp_block;
  304. if (idal_is_needed(dst, blksize)) {
  305. ccw->cda = (__u32)(addr_t) idaws;
  306. ccw->flags = CCW_FLAG_IDA;
  307. idaws = idal_create_words(idaws, dst, blksize);
  308. } else {
  309. ccw->cda = (__u32)(addr_t) dst;
  310. ccw->flags = 0;
  311. }
  312. ccw++;
  313. dst += blksize;
  314. recid++;
  315. }
  316. }
  317. if (req->cmd_flags & REQ_FAILFAST)
  318. set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags);
  319. cqr->device = device;
  320. cqr->expires = 5 * 60 * HZ; /* 5 minutes */
  321. cqr->retries = 32;
  322. cqr->buildclk = get_clock();
  323. cqr->status = DASD_CQR_FILLED;
  324. return cqr;
  325. }
  326. static int
  327. dasd_fba_free_cp(struct dasd_ccw_req *cqr, struct request *req)
  328. {
  329. struct dasd_fba_private *private;
  330. struct ccw1 *ccw;
  331. struct bio *bio;
  332. struct bio_vec *bv;
  333. char *dst, *cda;
  334. unsigned int blksize, off;
  335. int i, status;
  336. if (!dasd_page_cache)
  337. goto out;
  338. private = (struct dasd_fba_private *) cqr->device->private;
  339. blksize = cqr->device->bp_block;
  340. ccw = cqr->cpaddr;
  341. /* Skip over define extent & locate record. */
  342. ccw++;
  343. if (private->rdc_data.mode.bits.data_chain != 0)
  344. ccw++;
  345. rq_for_each_bio(bio, req) bio_for_each_segment(bv, bio, i) {
  346. dst = page_address(bv->bv_page) + bv->bv_offset;
  347. for (off = 0; off < bv->bv_len; off += blksize) {
  348. /* Skip locate record. */
  349. if (private->rdc_data.mode.bits.data_chain == 0)
  350. ccw++;
  351. if (dst) {
  352. if (ccw->flags & CCW_FLAG_IDA)
  353. cda = *((char **)((addr_t) ccw->cda));
  354. else
  355. cda = (char *)((addr_t) ccw->cda);
  356. if (dst != cda) {
  357. if (rq_data_dir(req) == READ)
  358. memcpy(dst, cda, bv->bv_len);
  359. kmem_cache_free(dasd_page_cache,
  360. (void *)((addr_t)cda & PAGE_MASK));
  361. }
  362. dst = NULL;
  363. }
  364. ccw++;
  365. }
  366. }
  367. out:
  368. status = cqr->status == DASD_CQR_DONE;
  369. dasd_sfree_request(cqr, cqr->device);
  370. return status;
  371. }
  372. static int
  373. dasd_fba_fill_info(struct dasd_device * device,
  374. struct dasd_information2_t * info)
  375. {
  376. info->label_block = 1;
  377. info->FBA_layout = 1;
  378. info->format = DASD_FORMAT_LDL;
  379. info->characteristics_size = sizeof(struct dasd_fba_characteristics);
  380. memcpy(info->characteristics,
  381. &((struct dasd_fba_private *) device->private)->rdc_data,
  382. sizeof (struct dasd_fba_characteristics));
  383. info->confdata_size = 0;
  384. return 0;
  385. }
  386. static void
  387. dasd_fba_dump_sense(struct dasd_device *device, struct dasd_ccw_req * req,
  388. struct irb *irb)
  389. {
  390. char *page;
  391. struct ccw1 *act, *end, *last;
  392. int len, sl, sct, count;
  393. page = (char *) get_zeroed_page(GFP_ATOMIC);
  394. if (page == NULL) {
  395. DEV_MESSAGE(KERN_ERR, device, " %s",
  396. "No memory to dump sense data");
  397. return;
  398. }
  399. len = sprintf(page, KERN_ERR PRINTK_HEADER
  400. " I/O status report for device %s:\n",
  401. device->cdev->dev.bus_id);
  402. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  403. " in req: %p CS: 0x%02X DS: 0x%02X\n", req,
  404. irb->scsw.cstat, irb->scsw.dstat);
  405. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  406. " device %s: Failing CCW: %p\n",
  407. device->cdev->dev.bus_id,
  408. (void *) (addr_t) irb->scsw.cpa);
  409. if (irb->esw.esw0.erw.cons) {
  410. for (sl = 0; sl < 4; sl++) {
  411. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  412. " Sense(hex) %2d-%2d:",
  413. (8 * sl), ((8 * sl) + 7));
  414. for (sct = 0; sct < 8; sct++) {
  415. len += sprintf(page + len, " %02x",
  416. irb->ecw[8 * sl + sct]);
  417. }
  418. len += sprintf(page + len, "\n");
  419. }
  420. } else {
  421. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  422. " SORRY - NO VALID SENSE AVAILABLE\n");
  423. }
  424. MESSAGE_LOG(KERN_ERR, "%s",
  425. page + sizeof(KERN_ERR PRINTK_HEADER));
  426. /* dump the Channel Program */
  427. /* print first CCWs (maximum 8) */
  428. act = req->cpaddr;
  429. for (last = act; last->flags & (CCW_FLAG_CC | CCW_FLAG_DC); last++);
  430. end = min(act + 8, last);
  431. len = sprintf(page, KERN_ERR PRINTK_HEADER
  432. " Related CP in req: %p\n", req);
  433. while (act <= end) {
  434. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  435. " CCW %p: %08X %08X DAT:",
  436. act, ((int *) act)[0], ((int *) act)[1]);
  437. for (count = 0; count < 32 && count < act->count;
  438. count += sizeof(int))
  439. len += sprintf(page + len, " %08X",
  440. ((int *) (addr_t) act->cda)
  441. [(count>>2)]);
  442. len += sprintf(page + len, "\n");
  443. act++;
  444. }
  445. MESSAGE_LOG(KERN_ERR, "%s",
  446. page + sizeof(KERN_ERR PRINTK_HEADER));
  447. /* print failing CCW area */
  448. len = 0;
  449. if (act < ((struct ccw1 *)(addr_t) irb->scsw.cpa) - 2) {
  450. act = ((struct ccw1 *)(addr_t) irb->scsw.cpa) - 2;
  451. len += sprintf(page + len, KERN_ERR PRINTK_HEADER "......\n");
  452. }
  453. end = min((struct ccw1 *)(addr_t) irb->scsw.cpa + 2, last);
  454. while (act <= end) {
  455. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  456. " CCW %p: %08X %08X DAT:",
  457. act, ((int *) act)[0], ((int *) act)[1]);
  458. for (count = 0; count < 32 && count < act->count;
  459. count += sizeof(int))
  460. len += sprintf(page + len, " %08X",
  461. ((int *) (addr_t) act->cda)
  462. [(count>>2)]);
  463. len += sprintf(page + len, "\n");
  464. act++;
  465. }
  466. /* print last CCWs */
  467. if (act < last - 2) {
  468. act = last - 2;
  469. len += sprintf(page + len, KERN_ERR PRINTK_HEADER "......\n");
  470. }
  471. while (act <= last) {
  472. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  473. " CCW %p: %08X %08X DAT:",
  474. act, ((int *) act)[0], ((int *) act)[1]);
  475. for (count = 0; count < 32 && count < act->count;
  476. count += sizeof(int))
  477. len += sprintf(page + len, " %08X",
  478. ((int *) (addr_t) act->cda)
  479. [(count>>2)]);
  480. len += sprintf(page + len, "\n");
  481. act++;
  482. }
  483. if (len > 0)
  484. MESSAGE_LOG(KERN_ERR, "%s",
  485. page + sizeof(KERN_ERR PRINTK_HEADER));
  486. free_page((unsigned long) page);
  487. }
  488. /*
  489. * max_blocks is dependent on the amount of storage that is available
  490. * in the static io buffer for each device. Currently each device has
  491. * 8192 bytes (=2 pages). For 64 bit one dasd_mchunkt_t structure has
  492. * 24 bytes, the struct dasd_ccw_req has 136 bytes and each block can use
  493. * up to 16 bytes (8 for the ccw and 8 for the idal pointer). In
  494. * addition we have one define extent ccw + 16 bytes of data and a
  495. * locate record ccw for each block (stupid devices!) + 16 bytes of data.
  496. * That makes:
  497. * (8192 - 24 - 136 - 8 - 16) / 40 = 200.2 blocks at maximum.
  498. * We want to fit two into the available memory so that we can immediately
  499. * start the next request if one finishes off. That makes 100.1 blocks
  500. * for one request. Give a little safety and the result is 96.
  501. */
  502. static struct dasd_discipline dasd_fba_discipline = {
  503. .owner = THIS_MODULE,
  504. .name = "FBA ",
  505. .ebcname = "FBA ",
  506. .max_blocks = 96,
  507. .check_device = dasd_fba_check_characteristics,
  508. .do_analysis = dasd_fba_do_analysis,
  509. .fill_geometry = dasd_fba_fill_geometry,
  510. .start_IO = dasd_start_IO,
  511. .term_IO = dasd_term_IO,
  512. .examine_error = dasd_fba_examine_error,
  513. .erp_action = dasd_fba_erp_action,
  514. .erp_postaction = dasd_fba_erp_postaction,
  515. .build_cp = dasd_fba_build_cp,
  516. .free_cp = dasd_fba_free_cp,
  517. .dump_sense = dasd_fba_dump_sense,
  518. .fill_info = dasd_fba_fill_info,
  519. };
  520. static int __init
  521. dasd_fba_init(void)
  522. {
  523. ASCEBC(dasd_fba_discipline.ebcname, 4);
  524. return ccw_driver_register(&dasd_fba_driver);
  525. }
  526. static void __exit
  527. dasd_fba_cleanup(void)
  528. {
  529. ccw_driver_unregister(&dasd_fba_driver);
  530. }
  531. module_init(dasd_fba_init);
  532. module_exit(dasd_fba_cleanup);