mic_x100.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. /*
  2. * Intel MIC Platform Software Stack (MPSS)
  3. *
  4. * Copyright(c) 2013 Intel Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License, version 2, as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * The full GNU General Public License is included in this distribution in
  16. * the file called "COPYING".
  17. *
  18. * Intel MIC Host driver.
  19. *
  20. */
  21. #include <linux/fs.h>
  22. #include <linux/pci.h>
  23. #include <linux/sched.h>
  24. #include <linux/firmware.h>
  25. #include <linux/delay.h>
  26. #include "../common/mic_dev.h"
  27. #include "mic_device.h"
  28. #include "mic_x100.h"
  29. #include "mic_smpt.h"
  30. /**
  31. * mic_x100_write_spad - write to the scratchpad register
  32. * @mdev: pointer to mic_device instance
  33. * @idx: index to the scratchpad register, 0 based
  34. * @val: the data value to put into the register
  35. *
  36. * This function allows writing of a 32bit value to the indexed scratchpad
  37. * register.
  38. *
  39. * RETURNS: none.
  40. */
  41. static void
  42. mic_x100_write_spad(struct mic_device *mdev, unsigned int idx, u32 val)
  43. {
  44. dev_dbg(mdev->sdev->parent, "Writing 0x%x to scratch pad index %d\n",
  45. val, idx);
  46. mic_mmio_write(&mdev->mmio, val,
  47. MIC_X100_SBOX_BASE_ADDRESS +
  48. MIC_X100_SBOX_SPAD0 + idx * 4);
  49. }
  50. /**
  51. * mic_x100_read_spad - read from the scratchpad register
  52. * @mdev: pointer to mic_device instance
  53. * @idx: index to scratchpad register, 0 based
  54. *
  55. * This function allows reading of the 32bit scratchpad register.
  56. *
  57. * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
  58. */
  59. static u32
  60. mic_x100_read_spad(struct mic_device *mdev, unsigned int idx)
  61. {
  62. u32 val = mic_mmio_read(&mdev->mmio,
  63. MIC_X100_SBOX_BASE_ADDRESS +
  64. MIC_X100_SBOX_SPAD0 + idx * 4);
  65. dev_dbg(mdev->sdev->parent,
  66. "Reading 0x%x from scratch pad index %d\n", val, idx);
  67. return val;
  68. }
  69. /**
  70. * mic_x100_enable_interrupts - Enable interrupts.
  71. * @mdev: pointer to mic_device instance
  72. */
  73. static void mic_x100_enable_interrupts(struct mic_device *mdev)
  74. {
  75. u32 reg;
  76. struct mic_mw *mw = &mdev->mmio;
  77. u32 sice0 = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_SICE0;
  78. u32 siac0 = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_SIAC0;
  79. reg = mic_mmio_read(mw, sice0);
  80. reg |= MIC_X100_SBOX_DBR_BITS(0xf) | MIC_X100_SBOX_DMA_BITS(0xff);
  81. mic_mmio_write(mw, reg, sice0);
  82. /*
  83. * Enable auto-clear when enabling interrupts. Applicable only for
  84. * MSI-x. Legacy and MSI mode cannot have auto-clear enabled.
  85. */
  86. if (mdev->irq_info.num_vectors > 1) {
  87. reg = mic_mmio_read(mw, siac0);
  88. reg |= MIC_X100_SBOX_DBR_BITS(0xf) |
  89. MIC_X100_SBOX_DMA_BITS(0xff);
  90. mic_mmio_write(mw, reg, siac0);
  91. }
  92. }
  93. /**
  94. * mic_x100_disable_interrupts - Disable interrupts.
  95. * @mdev: pointer to mic_device instance
  96. */
  97. static void mic_x100_disable_interrupts(struct mic_device *mdev)
  98. {
  99. u32 reg;
  100. struct mic_mw *mw = &mdev->mmio;
  101. u32 sice0 = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_SICE0;
  102. u32 siac0 = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_SIAC0;
  103. u32 sicc0 = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_SICC0;
  104. reg = mic_mmio_read(mw, sice0);
  105. mic_mmio_write(mw, reg, sicc0);
  106. if (mdev->irq_info.num_vectors > 1) {
  107. reg = mic_mmio_read(mw, siac0);
  108. reg &= ~(MIC_X100_SBOX_DBR_BITS(0xf) |
  109. MIC_X100_SBOX_DMA_BITS(0xff));
  110. mic_mmio_write(mw, reg, siac0);
  111. }
  112. }
  113. /**
  114. * mic_x100_send_sbox_intr - Send an MIC_X100_SBOX interrupt to MIC.
  115. * @mdev: pointer to mic_device instance
  116. */
  117. static void mic_x100_send_sbox_intr(struct mic_device *mdev,
  118. int doorbell)
  119. {
  120. struct mic_mw *mw = &mdev->mmio;
  121. u64 apic_icr_offset = MIC_X100_SBOX_APICICR0 + doorbell * 8;
  122. u32 apicicr_low = mic_mmio_read(mw, MIC_X100_SBOX_BASE_ADDRESS +
  123. apic_icr_offset);
  124. /* for MIC we need to make sure we "hit" the send_icr bit (13) */
  125. apicicr_low = (apicicr_low | (1 << 13));
  126. /* Ensure that the interrupt is ordered w.r.t. previous stores. */
  127. wmb();
  128. mic_mmio_write(mw, apicicr_low,
  129. MIC_X100_SBOX_BASE_ADDRESS + apic_icr_offset);
  130. }
  131. /**
  132. * mic_x100_send_rdmasr_intr - Send an RDMASR interrupt to MIC.
  133. * @mdev: pointer to mic_device instance
  134. */
  135. static void mic_x100_send_rdmasr_intr(struct mic_device *mdev,
  136. int doorbell)
  137. {
  138. int rdmasr_offset = MIC_X100_SBOX_RDMASR0 + (doorbell << 2);
  139. /* Ensure that the interrupt is ordered w.r.t. previous stores. */
  140. wmb();
  141. mic_mmio_write(&mdev->mmio, 0,
  142. MIC_X100_SBOX_BASE_ADDRESS + rdmasr_offset);
  143. }
  144. /**
  145. * __mic_x100_send_intr - Send interrupt to MIC.
  146. * @mdev: pointer to mic_device instance
  147. * @doorbell: doorbell number.
  148. */
  149. static void mic_x100_send_intr(struct mic_device *mdev, int doorbell)
  150. {
  151. int rdmasr_db;
  152. if (doorbell < MIC_X100_NUM_SBOX_IRQ) {
  153. mic_x100_send_sbox_intr(mdev, doorbell);
  154. } else {
  155. rdmasr_db = doorbell - MIC_X100_NUM_SBOX_IRQ +
  156. MIC_X100_RDMASR_IRQ_BASE;
  157. mic_x100_send_rdmasr_intr(mdev, rdmasr_db);
  158. }
  159. }
  160. /**
  161. * mic_ack_interrupt - Device specific interrupt handling.
  162. * @mdev: pointer to mic_device instance
  163. *
  164. * Returns: bitmask of doorbell events triggered.
  165. */
  166. static u32 mic_x100_ack_interrupt(struct mic_device *mdev)
  167. {
  168. u32 reg = 0;
  169. struct mic_mw *mw = &mdev->mmio;
  170. u32 sicr0 = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_SICR0;
  171. /* Clear pending bit array. */
  172. if (MIC_A0_STEP == mdev->stepping)
  173. mic_mmio_write(mw, 1, MIC_X100_SBOX_BASE_ADDRESS +
  174. MIC_X100_SBOX_MSIXPBACR);
  175. if (mdev->irq_info.num_vectors <= 1) {
  176. reg = mic_mmio_read(mw, sicr0);
  177. if (unlikely(!reg))
  178. goto done;
  179. mic_mmio_write(mw, reg, sicr0);
  180. }
  181. if (mdev->stepping >= MIC_B0_STEP)
  182. mdev->intr_ops->enable_interrupts(mdev);
  183. done:
  184. return reg;
  185. }
  186. /**
  187. * mic_x100_hw_intr_init - Initialize h/w specific interrupt
  188. * information.
  189. * @mdev: pointer to mic_device instance
  190. */
  191. static void mic_x100_hw_intr_init(struct mic_device *mdev)
  192. {
  193. mdev->intr_info = (struct mic_intr_info *)mic_x100_intr_init;
  194. }
  195. /**
  196. * mic_x100_read_msi_to_src_map - read from the MSI mapping registers
  197. * @mdev: pointer to mic_device instance
  198. * @idx: index to the mapping register, 0 based
  199. *
  200. * This function allows reading of the 32bit MSI mapping register.
  201. *
  202. * RETURNS: The value in the register.
  203. */
  204. static u32
  205. mic_x100_read_msi_to_src_map(struct mic_device *mdev, int idx)
  206. {
  207. return mic_mmio_read(&mdev->mmio,
  208. MIC_X100_SBOX_BASE_ADDRESS +
  209. MIC_X100_SBOX_MXAR0 + idx * 4);
  210. }
  211. /**
  212. * mic_x100_program_msi_to_src_map - program the MSI mapping registers
  213. * @mdev: pointer to mic_device instance
  214. * @idx: index to the mapping register, 0 based
  215. * @offset: The bit offset in the register that needs to be updated.
  216. * @set: boolean specifying if the bit in the specified offset needs
  217. * to be set or cleared.
  218. *
  219. * RETURNS: None.
  220. */
  221. static void
  222. mic_x100_program_msi_to_src_map(struct mic_device *mdev,
  223. int idx, int offset, bool set)
  224. {
  225. unsigned long reg;
  226. struct mic_mw *mw = &mdev->mmio;
  227. u32 mxar = MIC_X100_SBOX_BASE_ADDRESS +
  228. MIC_X100_SBOX_MXAR0 + idx * 4;
  229. reg = mic_mmio_read(mw, mxar);
  230. if (set)
  231. __set_bit(offset, &reg);
  232. else
  233. __clear_bit(offset, &reg);
  234. mic_mmio_write(mw, reg, mxar);
  235. }
  236. /*
  237. * mic_x100_reset_fw_ready - Reset Firmware ready status field.
  238. * @mdev: pointer to mic_device instance
  239. */
  240. static void mic_x100_reset_fw_ready(struct mic_device *mdev)
  241. {
  242. mdev->ops->write_spad(mdev, MIC_X100_DOWNLOAD_INFO, 0);
  243. }
  244. /*
  245. * mic_x100_is_fw_ready - Check if firmware is ready.
  246. * @mdev: pointer to mic_device instance
  247. */
  248. static bool mic_x100_is_fw_ready(struct mic_device *mdev)
  249. {
  250. u32 scratch2 = mdev->ops->read_spad(mdev, MIC_X100_DOWNLOAD_INFO);
  251. return MIC_X100_SPAD2_DOWNLOAD_STATUS(scratch2) ? true : false;
  252. }
  253. /**
  254. * mic_x100_get_apic_id - Get bootstrap APIC ID.
  255. * @mdev: pointer to mic_device instance
  256. */
  257. static u32 mic_x100_get_apic_id(struct mic_device *mdev)
  258. {
  259. u32 scratch2 = 0;
  260. scratch2 = mdev->ops->read_spad(mdev, MIC_X100_DOWNLOAD_INFO);
  261. return MIC_X100_SPAD2_APIC_ID(scratch2);
  262. }
  263. /**
  264. * mic_x100_send_firmware_intr - Send an interrupt to the firmware on MIC.
  265. * @mdev: pointer to mic_device instance
  266. */
  267. static void mic_x100_send_firmware_intr(struct mic_device *mdev)
  268. {
  269. u32 apicicr_low;
  270. u64 apic_icr_offset = MIC_X100_SBOX_APICICR7;
  271. int vector = MIC_X100_BSP_INTERRUPT_VECTOR;
  272. struct mic_mw *mw = &mdev->mmio;
  273. /*
  274. * For MIC we need to make sure we "hit"
  275. * the send_icr bit (13).
  276. */
  277. apicicr_low = (vector | (1 << 13));
  278. mic_mmio_write(mw, mic_x100_get_apic_id(mdev),
  279. MIC_X100_SBOX_BASE_ADDRESS + apic_icr_offset + 4);
  280. /* Ensure that the interrupt is ordered w.r.t. previous stores. */
  281. wmb();
  282. mic_mmio_write(mw, apicicr_low,
  283. MIC_X100_SBOX_BASE_ADDRESS + apic_icr_offset);
  284. }
  285. /**
  286. * mic_x100_hw_reset - Reset the MIC device.
  287. * @mdev: pointer to mic_device instance
  288. */
  289. static void mic_x100_hw_reset(struct mic_device *mdev)
  290. {
  291. u32 reset_reg;
  292. u32 rgcr = MIC_X100_SBOX_BASE_ADDRESS + MIC_X100_SBOX_RGCR;
  293. struct mic_mw *mw = &mdev->mmio;
  294. /* Ensure that the reset is ordered w.r.t. previous loads and stores */
  295. mb();
  296. /* Trigger reset */
  297. reset_reg = mic_mmio_read(mw, rgcr);
  298. reset_reg |= 0x1;
  299. mic_mmio_write(mw, reset_reg, rgcr);
  300. /*
  301. * It seems we really want to delay at least 1 second
  302. * after touching reset to prevent a lot of problems.
  303. */
  304. msleep(1000);
  305. }
  306. /**
  307. * mic_x100_load_command_line - Load command line to MIC.
  308. * @mdev: pointer to mic_device instance
  309. * @fw: the firmware image
  310. *
  311. * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
  312. */
  313. static int
  314. mic_x100_load_command_line(struct mic_device *mdev, const struct firmware *fw)
  315. {
  316. u32 len = 0;
  317. u32 boot_mem;
  318. char *buf;
  319. void __iomem *cmd_line_va = mdev->aper.va + mdev->bootaddr + fw->size;
  320. #define CMDLINE_SIZE 2048
  321. boot_mem = mdev->aper.len >> 20;
  322. buf = kzalloc(CMDLINE_SIZE, GFP_KERNEL);
  323. if (!buf) {
  324. dev_err(mdev->sdev->parent,
  325. "%s %d allocation failed\n", __func__, __LINE__);
  326. return -ENOMEM;
  327. }
  328. len += snprintf(buf, CMDLINE_SIZE - len,
  329. " mem=%dM", boot_mem);
  330. if (mdev->cmdline)
  331. snprintf(buf + len, CMDLINE_SIZE - len, " %s", mdev->cmdline);
  332. memcpy_toio(cmd_line_va, buf, strlen(buf) + 1);
  333. kfree(buf);
  334. return 0;
  335. }
  336. /**
  337. * mic_x100_load_ramdisk - Load ramdisk to MIC.
  338. * @mdev: pointer to mic_device instance
  339. *
  340. * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
  341. */
  342. static int
  343. mic_x100_load_ramdisk(struct mic_device *mdev)
  344. {
  345. const struct firmware *fw;
  346. int rc;
  347. struct boot_params __iomem *bp = mdev->aper.va + mdev->bootaddr;
  348. rc = request_firmware(&fw,
  349. mdev->ramdisk, mdev->sdev->parent);
  350. if (rc < 0) {
  351. dev_err(mdev->sdev->parent,
  352. "ramdisk request_firmware failed: %d %s\n",
  353. rc, mdev->ramdisk);
  354. goto error;
  355. }
  356. /*
  357. * Typically the bootaddr for card OS is 64M
  358. * so copy over the ramdisk @ 128M.
  359. */
  360. memcpy_toio(mdev->aper.va + (mdev->bootaddr << 1), fw->data, fw->size);
  361. iowrite32(cpu_to_le32(mdev->bootaddr << 1), &bp->hdr.ramdisk_image);
  362. iowrite32(cpu_to_le32(fw->size), &bp->hdr.ramdisk_size);
  363. release_firmware(fw);
  364. error:
  365. return rc;
  366. }
  367. /**
  368. * mic_x100_get_boot_addr - Get MIC boot address.
  369. * @mdev: pointer to mic_device instance
  370. *
  371. * This function is called during firmware load to determine
  372. * the address at which the OS should be downloaded in card
  373. * memory i.e. GDDR.
  374. * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
  375. */
  376. static int
  377. mic_x100_get_boot_addr(struct mic_device *mdev)
  378. {
  379. u32 scratch2, boot_addr;
  380. int rc = 0;
  381. scratch2 = mdev->ops->read_spad(mdev, MIC_X100_DOWNLOAD_INFO);
  382. boot_addr = MIC_X100_SPAD2_DOWNLOAD_ADDR(scratch2);
  383. dev_dbg(mdev->sdev->parent, "%s %d boot_addr 0x%x\n",
  384. __func__, __LINE__, boot_addr);
  385. if (boot_addr > (1 << 31)) {
  386. dev_err(mdev->sdev->parent,
  387. "incorrect bootaddr 0x%x\n",
  388. boot_addr);
  389. rc = -EINVAL;
  390. goto error;
  391. }
  392. mdev->bootaddr = boot_addr;
  393. error:
  394. return rc;
  395. }
  396. /**
  397. * mic_x100_load_firmware - Load firmware to MIC.
  398. * @mdev: pointer to mic_device instance
  399. * @buf: buffer containing boot string including firmware/ramdisk path.
  400. *
  401. * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
  402. */
  403. static int
  404. mic_x100_load_firmware(struct mic_device *mdev, const char *buf)
  405. {
  406. int rc;
  407. const struct firmware *fw;
  408. rc = mic_x100_get_boot_addr(mdev);
  409. if (rc)
  410. goto error;
  411. /* load OS */
  412. rc = request_firmware(&fw, mdev->firmware, mdev->sdev->parent);
  413. if (rc < 0) {
  414. dev_err(mdev->sdev->parent,
  415. "ramdisk request_firmware failed: %d %s\n",
  416. rc, mdev->firmware);
  417. goto error;
  418. }
  419. if (mdev->bootaddr > mdev->aper.len - fw->size) {
  420. rc = -EINVAL;
  421. dev_err(mdev->sdev->parent, "%s %d rc %d bootaddr 0x%x\n",
  422. __func__, __LINE__, rc, mdev->bootaddr);
  423. release_firmware(fw);
  424. goto error;
  425. }
  426. memcpy_toio(mdev->aper.va + mdev->bootaddr, fw->data, fw->size);
  427. mdev->ops->write_spad(mdev, MIC_X100_FW_SIZE, fw->size);
  428. if (!strcmp(mdev->bootmode, "elf"))
  429. goto done;
  430. /* load command line */
  431. rc = mic_x100_load_command_line(mdev, fw);
  432. if (rc) {
  433. dev_err(mdev->sdev->parent, "%s %d rc %d\n",
  434. __func__, __LINE__, rc);
  435. goto error;
  436. }
  437. release_firmware(fw);
  438. /* load ramdisk */
  439. if (mdev->ramdisk)
  440. rc = mic_x100_load_ramdisk(mdev);
  441. error:
  442. dev_dbg(mdev->sdev->parent, "%s %d rc %d\n", __func__, __LINE__, rc);
  443. done:
  444. return rc;
  445. }
  446. /**
  447. * mic_x100_get_postcode - Get postcode status from firmware.
  448. * @mdev: pointer to mic_device instance
  449. *
  450. * RETURNS: postcode.
  451. */
  452. static u32 mic_x100_get_postcode(struct mic_device *mdev)
  453. {
  454. return mic_mmio_read(&mdev->mmio, MIC_X100_POSTCODE);
  455. }
  456. /**
  457. * mic_x100_smpt_set - Update an SMPT entry with a DMA address.
  458. * @mdev: pointer to mic_device instance
  459. *
  460. * RETURNS: none.
  461. */
  462. static void
  463. mic_x100_smpt_set(struct mic_device *mdev, dma_addr_t dma_addr, u8 index)
  464. {
  465. #define SNOOP_ON (0 << 0)
  466. #define SNOOP_OFF (1 << 0)
  467. /*
  468. * Sbox Smpt Reg Bits:
  469. * Bits 31:2 Host address
  470. * Bits 1 RSVD
  471. * Bits 0 No snoop
  472. */
  473. #define BUILD_SMPT(NO_SNOOP, HOST_ADDR) \
  474. (u32)(((HOST_ADDR) << 2) | ((NO_SNOOP) & 0x01))
  475. uint32_t smpt_reg_val = BUILD_SMPT(SNOOP_ON,
  476. dma_addr >> mdev->smpt->info.page_shift);
  477. mic_mmio_write(&mdev->mmio, smpt_reg_val,
  478. MIC_X100_SBOX_BASE_ADDRESS +
  479. MIC_X100_SBOX_SMPT00 + (4 * index));
  480. }
  481. /**
  482. * mic_x100_smpt_hw_init - Initialize SMPT X100 specific fields.
  483. * @mdev: pointer to mic_device instance
  484. *
  485. * RETURNS: none.
  486. */
  487. static void mic_x100_smpt_hw_init(struct mic_device *mdev)
  488. {
  489. struct mic_smpt_hw_info *info = &mdev->smpt->info;
  490. info->num_reg = 32;
  491. info->page_shift = 34;
  492. info->page_size = (1ULL << info->page_shift);
  493. info->base = 0x8000000000ULL;
  494. }
  495. struct mic_smpt_ops mic_x100_smpt_ops = {
  496. .init = mic_x100_smpt_hw_init,
  497. .set = mic_x100_smpt_set,
  498. };
  499. struct mic_hw_ops mic_x100_ops = {
  500. .aper_bar = MIC_X100_APER_BAR,
  501. .mmio_bar = MIC_X100_MMIO_BAR,
  502. .read_spad = mic_x100_read_spad,
  503. .write_spad = mic_x100_write_spad,
  504. .send_intr = mic_x100_send_intr,
  505. .ack_interrupt = mic_x100_ack_interrupt,
  506. .reset = mic_x100_hw_reset,
  507. .reset_fw_ready = mic_x100_reset_fw_ready,
  508. .is_fw_ready = mic_x100_is_fw_ready,
  509. .send_firmware_intr = mic_x100_send_firmware_intr,
  510. .load_mic_fw = mic_x100_load_firmware,
  511. .get_postcode = mic_x100_get_postcode,
  512. };
  513. struct mic_hw_intr_ops mic_x100_intr_ops = {
  514. .intr_init = mic_x100_hw_intr_init,
  515. .enable_interrupts = mic_x100_enable_interrupts,
  516. .disable_interrupts = mic_x100_disable_interrupts,
  517. .program_msi_to_src_map = mic_x100_program_msi_to_src_map,
  518. .read_msi_to_src_map = mic_x100_read_msi_to_src_map,
  519. };