dasd_fba.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  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 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 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 = dasd_generic_read_dev_chars(device, "FBA ", &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 req_iterator iter;
  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. private = (struct dasd_fba_private *) device->private;
  216. if (rq_data_dir(req) == READ) {
  217. cmd = DASD_FBA_CCW_READ;
  218. } else if (rq_data_dir(req) == WRITE) {
  219. cmd = DASD_FBA_CCW_WRITE;
  220. } else
  221. return ERR_PTR(-EINVAL);
  222. blksize = device->bp_block;
  223. /* Calculate record id of first and last block. */
  224. first_rec = req->sector >> device->s2b_shift;
  225. last_rec = (req->sector + req->nr_sectors - 1) >> device->s2b_shift;
  226. /* Check struct bio and count the number of blocks for the request. */
  227. count = 0;
  228. cidaw = 0;
  229. rq_for_each_segment(bv, req, iter) {
  230. if (bv->bv_len & (blksize - 1))
  231. /* Fba can only do full blocks. */
  232. return ERR_PTR(-EINVAL);
  233. count += bv->bv_len >> (device->s2b_shift + 9);
  234. #if defined(CONFIG_64BIT)
  235. if (idal_is_needed (page_address(bv->bv_page), bv->bv_len))
  236. cidaw += bv->bv_len / blksize;
  237. #endif
  238. }
  239. /* Paranoia. */
  240. if (count != last_rec - first_rec + 1)
  241. return ERR_PTR(-EINVAL);
  242. /* 1x define extent + 1x locate record + number of blocks */
  243. cplength = 2 + count;
  244. /* 1x define extent + 1x locate record */
  245. datasize = sizeof(struct DE_fba_data) + sizeof(struct LO_fba_data) +
  246. cidaw * sizeof(unsigned long);
  247. /*
  248. * Find out number of additional locate record ccws if the device
  249. * can't do data chaining.
  250. */
  251. if (private->rdc_data.mode.bits.data_chain == 0) {
  252. cplength += count - 1;
  253. datasize += (count - 1)*sizeof(struct LO_fba_data);
  254. }
  255. /* Allocate the ccw request. */
  256. cqr = dasd_smalloc_request(dasd_fba_discipline.name,
  257. cplength, datasize, device);
  258. if (IS_ERR(cqr))
  259. return cqr;
  260. ccw = cqr->cpaddr;
  261. /* First ccw is define extent. */
  262. define_extent(ccw++, cqr->data, rq_data_dir(req),
  263. device->bp_block, req->sector, req->nr_sectors);
  264. /* Build locate_record + read/write ccws. */
  265. idaws = (unsigned long *) (cqr->data + sizeof(struct DE_fba_data));
  266. LO_data = (struct LO_fba_data *) (idaws + cidaw);
  267. /* Locate record for all blocks for smart devices. */
  268. if (private->rdc_data.mode.bits.data_chain != 0) {
  269. ccw[-1].flags |= CCW_FLAG_CC;
  270. locate_record(ccw++, LO_data++, rq_data_dir(req), 0, count);
  271. }
  272. recid = first_rec;
  273. rq_for_each_segment(bv, req, iter) {
  274. dst = page_address(bv->bv_page) + bv->bv_offset;
  275. if (dasd_page_cache) {
  276. char *copy = kmem_cache_alloc(dasd_page_cache,
  277. GFP_DMA | __GFP_NOWARN);
  278. if (copy && rq_data_dir(req) == WRITE)
  279. memcpy(copy + bv->bv_offset, dst, bv->bv_len);
  280. if (copy)
  281. dst = copy + bv->bv_offset;
  282. }
  283. for (off = 0; off < bv->bv_len; off += blksize) {
  284. /* Locate record for stupid devices. */
  285. if (private->rdc_data.mode.bits.data_chain == 0) {
  286. ccw[-1].flags |= CCW_FLAG_CC;
  287. locate_record(ccw, LO_data++,
  288. rq_data_dir(req),
  289. recid - first_rec, 1);
  290. ccw->flags = CCW_FLAG_CC;
  291. ccw++;
  292. } else {
  293. if (recid > first_rec)
  294. ccw[-1].flags |= CCW_FLAG_DC;
  295. else
  296. ccw[-1].flags |= CCW_FLAG_CC;
  297. }
  298. ccw->cmd_code = cmd;
  299. ccw->count = device->bp_block;
  300. if (idal_is_needed(dst, blksize)) {
  301. ccw->cda = (__u32)(addr_t) idaws;
  302. ccw->flags = CCW_FLAG_IDA;
  303. idaws = idal_create_words(idaws, dst, blksize);
  304. } else {
  305. ccw->cda = (__u32)(addr_t) dst;
  306. ccw->flags = 0;
  307. }
  308. ccw++;
  309. dst += blksize;
  310. recid++;
  311. }
  312. }
  313. if (req->cmd_flags & REQ_FAILFAST)
  314. set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags);
  315. cqr->device = device;
  316. cqr->expires = 5 * 60 * HZ; /* 5 minutes */
  317. cqr->retries = 32;
  318. cqr->buildclk = get_clock();
  319. cqr->status = DASD_CQR_FILLED;
  320. return cqr;
  321. }
  322. static int
  323. dasd_fba_free_cp(struct dasd_ccw_req *cqr, struct request *req)
  324. {
  325. struct dasd_fba_private *private;
  326. struct ccw1 *ccw;
  327. struct req_iterator iter;
  328. struct bio_vec *bv;
  329. char *dst, *cda;
  330. unsigned int blksize, off;
  331. int status;
  332. if (!dasd_page_cache)
  333. goto out;
  334. private = (struct dasd_fba_private *) cqr->device->private;
  335. blksize = cqr->device->bp_block;
  336. ccw = cqr->cpaddr;
  337. /* Skip over define extent & locate record. */
  338. ccw++;
  339. if (private->rdc_data.mode.bits.data_chain != 0)
  340. ccw++;
  341. rq_for_each_segment(bv, req, iter) {
  342. dst = page_address(bv->bv_page) + bv->bv_offset;
  343. for (off = 0; off < bv->bv_len; off += blksize) {
  344. /* Skip locate record. */
  345. if (private->rdc_data.mode.bits.data_chain == 0)
  346. ccw++;
  347. if (dst) {
  348. if (ccw->flags & CCW_FLAG_IDA)
  349. cda = *((char **)((addr_t) ccw->cda));
  350. else
  351. cda = (char *)((addr_t) ccw->cda);
  352. if (dst != cda) {
  353. if (rq_data_dir(req) == READ)
  354. memcpy(dst, cda, bv->bv_len);
  355. kmem_cache_free(dasd_page_cache,
  356. (void *)((addr_t)cda & PAGE_MASK));
  357. }
  358. dst = NULL;
  359. }
  360. ccw++;
  361. }
  362. }
  363. out:
  364. status = cqr->status == DASD_CQR_DONE;
  365. dasd_sfree_request(cqr, cqr->device);
  366. return status;
  367. }
  368. static int
  369. dasd_fba_fill_info(struct dasd_device * device,
  370. struct dasd_information2_t * info)
  371. {
  372. info->label_block = 1;
  373. info->FBA_layout = 1;
  374. info->format = DASD_FORMAT_LDL;
  375. info->characteristics_size = sizeof(struct dasd_fba_characteristics);
  376. memcpy(info->characteristics,
  377. &((struct dasd_fba_private *) device->private)->rdc_data,
  378. sizeof (struct dasd_fba_characteristics));
  379. info->confdata_size = 0;
  380. return 0;
  381. }
  382. static void
  383. dasd_fba_dump_sense(struct dasd_device *device, struct dasd_ccw_req * req,
  384. struct irb *irb)
  385. {
  386. char *page;
  387. struct ccw1 *act, *end, *last;
  388. int len, sl, sct, count;
  389. page = (char *) get_zeroed_page(GFP_ATOMIC);
  390. if (page == NULL) {
  391. DEV_MESSAGE(KERN_ERR, device, " %s",
  392. "No memory to dump sense data");
  393. return;
  394. }
  395. len = sprintf(page, KERN_ERR PRINTK_HEADER
  396. " I/O status report for device %s:\n",
  397. device->cdev->dev.bus_id);
  398. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  399. " in req: %p CS: 0x%02X DS: 0x%02X\n", req,
  400. irb->scsw.cstat, irb->scsw.dstat);
  401. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  402. " device %s: Failing CCW: %p\n",
  403. device->cdev->dev.bus_id,
  404. (void *) (addr_t) irb->scsw.cpa);
  405. if (irb->esw.esw0.erw.cons) {
  406. for (sl = 0; sl < 4; sl++) {
  407. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  408. " Sense(hex) %2d-%2d:",
  409. (8 * sl), ((8 * sl) + 7));
  410. for (sct = 0; sct < 8; sct++) {
  411. len += sprintf(page + len, " %02x",
  412. irb->ecw[8 * sl + sct]);
  413. }
  414. len += sprintf(page + len, "\n");
  415. }
  416. } else {
  417. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  418. " SORRY - NO VALID SENSE AVAILABLE\n");
  419. }
  420. MESSAGE_LOG(KERN_ERR, "%s",
  421. page + sizeof(KERN_ERR PRINTK_HEADER));
  422. /* dump the Channel Program */
  423. /* print first CCWs (maximum 8) */
  424. act = req->cpaddr;
  425. for (last = act; last->flags & (CCW_FLAG_CC | CCW_FLAG_DC); last++);
  426. end = min(act + 8, last);
  427. len = sprintf(page, KERN_ERR PRINTK_HEADER
  428. " Related CP in req: %p\n", req);
  429. while (act <= end) {
  430. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  431. " CCW %p: %08X %08X DAT:",
  432. act, ((int *) act)[0], ((int *) act)[1]);
  433. for (count = 0; count < 32 && count < act->count;
  434. count += sizeof(int))
  435. len += sprintf(page + len, " %08X",
  436. ((int *) (addr_t) act->cda)
  437. [(count>>2)]);
  438. len += sprintf(page + len, "\n");
  439. act++;
  440. }
  441. MESSAGE_LOG(KERN_ERR, "%s",
  442. page + sizeof(KERN_ERR PRINTK_HEADER));
  443. /* print failing CCW area */
  444. len = 0;
  445. if (act < ((struct ccw1 *)(addr_t) irb->scsw.cpa) - 2) {
  446. act = ((struct ccw1 *)(addr_t) irb->scsw.cpa) - 2;
  447. len += sprintf(page + len, KERN_ERR PRINTK_HEADER "......\n");
  448. }
  449. end = min((struct ccw1 *)(addr_t) irb->scsw.cpa + 2, last);
  450. while (act <= end) {
  451. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  452. " CCW %p: %08X %08X DAT:",
  453. act, ((int *) act)[0], ((int *) act)[1]);
  454. for (count = 0; count < 32 && count < act->count;
  455. count += sizeof(int))
  456. len += sprintf(page + len, " %08X",
  457. ((int *) (addr_t) act->cda)
  458. [(count>>2)]);
  459. len += sprintf(page + len, "\n");
  460. act++;
  461. }
  462. /* print last CCWs */
  463. if (act < last - 2) {
  464. act = last - 2;
  465. len += sprintf(page + len, KERN_ERR PRINTK_HEADER "......\n");
  466. }
  467. while (act <= last) {
  468. len += sprintf(page + len, KERN_ERR PRINTK_HEADER
  469. " CCW %p: %08X %08X DAT:",
  470. act, ((int *) act)[0], ((int *) act)[1]);
  471. for (count = 0; count < 32 && count < act->count;
  472. count += sizeof(int))
  473. len += sprintf(page + len, " %08X",
  474. ((int *) (addr_t) act->cda)
  475. [(count>>2)]);
  476. len += sprintf(page + len, "\n");
  477. act++;
  478. }
  479. if (len > 0)
  480. MESSAGE_LOG(KERN_ERR, "%s",
  481. page + sizeof(KERN_ERR PRINTK_HEADER));
  482. free_page((unsigned long) page);
  483. }
  484. /*
  485. * max_blocks is dependent on the amount of storage that is available
  486. * in the static io buffer for each device. Currently each device has
  487. * 8192 bytes (=2 pages). For 64 bit one dasd_mchunkt_t structure has
  488. * 24 bytes, the struct dasd_ccw_req has 136 bytes and each block can use
  489. * up to 16 bytes (8 for the ccw and 8 for the idal pointer). In
  490. * addition we have one define extent ccw + 16 bytes of data and a
  491. * locate record ccw for each block (stupid devices!) + 16 bytes of data.
  492. * That makes:
  493. * (8192 - 24 - 136 - 8 - 16) / 40 = 200.2 blocks at maximum.
  494. * We want to fit two into the available memory so that we can immediately
  495. * start the next request if one finishes off. That makes 100.1 blocks
  496. * for one request. Give a little safety and the result is 96.
  497. */
  498. static struct dasd_discipline dasd_fba_discipline = {
  499. .owner = THIS_MODULE,
  500. .name = "FBA ",
  501. .ebcname = "FBA ",
  502. .max_blocks = 96,
  503. .check_device = dasd_fba_check_characteristics,
  504. .do_analysis = dasd_fba_do_analysis,
  505. .fill_geometry = dasd_fba_fill_geometry,
  506. .start_IO = dasd_start_IO,
  507. .term_IO = dasd_term_IO,
  508. .examine_error = dasd_fba_examine_error,
  509. .erp_action = dasd_fba_erp_action,
  510. .erp_postaction = dasd_fba_erp_postaction,
  511. .build_cp = dasd_fba_build_cp,
  512. .free_cp = dasd_fba_free_cp,
  513. .dump_sense = dasd_fba_dump_sense,
  514. .fill_info = dasd_fba_fill_info,
  515. };
  516. static int __init
  517. dasd_fba_init(void)
  518. {
  519. ASCEBC(dasd_fba_discipline.ebcname, 4);
  520. return ccw_driver_register(&dasd_fba_driver);
  521. }
  522. static void __exit
  523. dasd_fba_cleanup(void)
  524. {
  525. ccw_driver_unregister(&dasd_fba_driver);
  526. }
  527. module_init(dasd_fba_init);
  528. module_exit(dasd_fba_cleanup);