Skip to content

Commit fbdab61

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - add support for 401xx devices
QAT_401xx is a derivative of 4xxx. Add support for that device in the qat_4xxx driver by including the DIDs (both PF and VF), extending the probe and the firmware loader. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Srinivas Kerekare <srinivas.kerekare@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent d091447 commit fbdab61

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/crypto/qat/qat_4xxx/adf_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
static const struct pci_device_id adf_pci_tbl[] = {
1616
{ PCI_VDEVICE(INTEL, ADF_4XXX_PCI_DEVICE_ID), },
17+
{ PCI_VDEVICE(INTEL, ADF_401XX_PCI_DEVICE_ID), },
1718
{ }
1819
};
1920
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);

drivers/crypto/qat/qat_common/adf_accel_devices.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#define ADF_4XXX_DEVICE_NAME "4xxx"
2020
#define ADF_4XXX_PCI_DEVICE_ID 0x4940
2121
#define ADF_4XXXIOV_PCI_DEVICE_ID 0x4941
22+
#define ADF_401XX_PCI_DEVICE_ID 0x4942
23+
#define ADF_401XXIOV_PCI_DEVICE_ID 0x4943
2224
#define ADF_DEVICE_FUSECTL_OFFSET 0x40
2325
#define ADF_DEVICE_LEGFUSE_OFFSET 0x4C
2426
#define ADF_DEVICE_FUSECTL_MASK 0x80000000

drivers/crypto/qat/qat_common/qat_hal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ static int qat_hal_chip_init(struct icp_qat_fw_loader_handle *handle,
695695
handle->pci_dev = pci_info->pci_dev;
696696
switch (handle->pci_dev->device) {
697697
case ADF_4XXX_PCI_DEVICE_ID:
698+
case ADF_401XX_PCI_DEVICE_ID:
698699
handle->chip_info->mmp_sram_size = 0;
699700
handle->chip_info->nn = false;
700701
handle->chip_info->lm2lm3 = true;

drivers/crypto/qat/qat_common/qat_uclo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ qat_uclo_get_dev_type(struct icp_qat_fw_loader_handle *handle)
731731
case PCI_DEVICE_ID_INTEL_QAT_C3XXX:
732732
return ICP_QAT_AC_C3XXX_DEV_TYPE;
733733
case ADF_4XXX_PCI_DEVICE_ID:
734+
case ADF_401XX_PCI_DEVICE_ID:
734735
return ICP_QAT_AC_4XXX_A_DEV_TYPE;
735736
default:
736737
pr_err("QAT: unsupported device 0x%x\n",

0 commit comments

Comments
 (0)