History

cxlflash: Enable device id for future IBM CXL adapter

This drop enables a future card with a device id of 0x0600 to be recognized by the cxlflash driver. As per the design, the Accelerator Function Unit (AFU) for this new IBM CXL Flash Adapter retains the same host interface as the previous generation. For the early prototypes of the new card, the driver with this change behaves exactly as the driver prior to this behaved with the earlier generation card. Therefore, no card specific programming has been added. These card specific changes can be staged in later if needed.

Manoj Kumar committed 10 years ago

Commit a2746fb1 parent b45cdba2 files · +5 −2Browse files

Unified · Split

2 files
  1. drivers/scsi/cxlflash/main.c +3 −0
  2. drivers/scsi/cxlflash/main.h +2 −2
drivers/scsi/cxlflash/main.c+3−0
@@ -2309,6 +2309,7 @@ static struct scsi_host_template driver_template = { · 2308 unmodified lines
2309 * Device dependent values2309 * Device dependent values
2310 */2310 */
2311static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS };2311static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS };
2312static struct dev_dependent_vals dev_flash_gt_vals = { CXLFLASH_MAX_SECTORS };
2312 2313
2313/*2314/*
2314 * PCI device binding table2315 * PCI device binding table
@@ -2316,6 +2317,8 @@ static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS }; · 1 unmodified line
2316static struct pci_device_id cxlflash_pci_table[] = {2317static struct pci_device_id cxlflash_pci_table[] = {
2317 {PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_CORSA,2318 {PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_CORSA,
2318 PCI_ANY_ID, PCI_ANY_ID, 0, 0, (kernel_ulong_t)&dev_corsa_vals},2319 PCI_ANY_ID, PCI_ANY_ID, 0, 0, (kernel_ulong_t)&dev_corsa_vals},
2320 {PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_FLASH_GT,
2321 PCI_ANY_ID, PCI_ANY_ID, 0, 0, (kernel_ulong_t)&dev_flash_gt_vals},
2319 {}2322 {}
2320};2323};
2321 2324
drivers/scsi/cxlflash/main.h+2−2
@@ -23,8 +23,8 @@ · 22 unmodified lines
23#define CXLFLASH_NAME "cxlflash"23#define CXLFLASH_NAME "cxlflash"
24#define CXLFLASH_ADAPTER_NAME "IBM POWER CXL Flash Adapter"24#define CXLFLASH_ADAPTER_NAME "IBM POWER CXL Flash Adapter"
25 25
26#define PCI_DEVICE_ID_IBM_CORSA 0x04F026#define PCI_DEVICE_ID_IBM_CORSA 0x04F0
27#define CXLFLASH_SUBS_DEV_ID 0x04F027#define PCI_DEVICE_ID_IBM_FLASH_GT 0x0600
28 28
29/* Since there is only one target, make it 0 */29/* Since there is only one target, make it 0 */
30#define CXLFLASH_TARGET 030#define CXLFLASH_TARGET 0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t