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
23092309 * Device dependent values
23102310 */
23112311 static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS };
2312+static struct dev_dependent_vals dev_flash_gt_vals = { CXLFLASH_MAX_SECTORS };
23122313
23132314 /*
23142315 * PCI device binding table
@@ -2316,6 +2317,8 @@ static struct dev_dependent_vals dev_corsa_vals = { CXLFLASH_MAX_SECTORS }; · 1 unmodified line
23162317 static struct pci_device_id cxlflash_pci_table[] = {
23172318 {PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_CORSA,
23182319 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},
23192322 {}
23202323 };
23212324
drivers/scsi/cxlflash/main.h+2−2
@@ -23,8 +23,8 @@ · 22 unmodified lines
2323 #define CXLFLASH_NAME "cxlflash"
2424 #define CXLFLASH_ADAPTER_NAME "IBM POWER CXL Flash Adapter"
2525
26−#define PCI_DEVICE_ID_IBM_CORSA 0x04F0
27−#define CXLFLASH_SUBS_DEV_ID 0x04F0
26+#define PCI_DEVICE_ID_IBM_CORSA 0x04F0
27+#define PCI_DEVICE_ID_IBM_FLASH_GT 0x0600
2828
2929 /* Since there is only one target, make it 0 */
3030 #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