| From e0491ae4986caa31a297e0d2359ff56ccbfc4b32 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Wed, 24 Jun 2020 10:51:38 -0700 |
| Subject: platform/x86: ISST: Add new PCI device ids |
| |
| From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> |
| |
| [ Upstream commit e1eea3f839f41368d7cb4eb2d872d5b288677e94 ] |
| |
| Added new PCI device ids for supporting mailbox and MMIO interface for |
| Sapphire Rapids. |
| |
| Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> |
| Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/platform/x86/intel_speed_select_if/isst_if_common.h | 3 +++ |
| drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c | 1 + |
| drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c | 1 + |
| 3 files changed, 5 insertions(+) |
| |
| diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_common.h b/drivers/platform/x86/intel_speed_select_if/isst_if_common.h |
| index 1409a5bb55820..4f6f7f0761fc1 100644 |
| --- a/drivers/platform/x86/intel_speed_select_if/isst_if_common.h |
| +++ b/drivers/platform/x86/intel_speed_select_if/isst_if_common.h |
| @@ -13,6 +13,9 @@ |
| #define INTEL_RAPL_PRIO_DEVID_0 0x3451 |
| #define INTEL_CFG_MBOX_DEVID_0 0x3459 |
| |
| +#define INTEL_RAPL_PRIO_DEVID_1 0x3251 |
| +#define INTEL_CFG_MBOX_DEVID_1 0x3259 |
| + |
| /* |
| * Validate maximum commands in a single request. |
| * This is enough to handle command to every core in one ioctl, or all |
| diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c b/drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c |
| index de4169d0796bd..9a055fd54053f 100644 |
| --- a/drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c |
| +++ b/drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c |
| @@ -148,6 +148,7 @@ static long isst_if_mbox_proc_cmd(u8 *cmd_ptr, int *write_only, int resume) |
| |
| static const struct pci_device_id isst_if_mbox_ids[] = { |
| { PCI_DEVICE(PCI_VENDOR_ID_INTEL, INTEL_CFG_MBOX_DEVID_0)}, |
| + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, INTEL_CFG_MBOX_DEVID_1)}, |
| { 0 }, |
| }; |
| MODULE_DEVICE_TABLE(pci, isst_if_mbox_ids); |
| diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c |
| index ad8c7c0df4d9a..e3778204b7a60 100644 |
| --- a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c |
| +++ b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c |
| @@ -72,6 +72,7 @@ static long isst_if_mmio_rd_wr(u8 *cmd_ptr, int *write_only, int resume) |
| |
| static const struct pci_device_id isst_if_ids[] = { |
| { PCI_DEVICE(PCI_VENDOR_ID_INTEL, INTEL_RAPL_PRIO_DEVID_0)}, |
| + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, INTEL_RAPL_PRIO_DEVID_1)}, |
| { 0 }, |
| }; |
| MODULE_DEVICE_TABLE(pci, isst_if_ids); |
| -- |
| 2.25.1 |
| |