Skip to content

Commit 6c0d9f0

Browse files
davejianggregkh
authored andcommitted
dmaengine: ioatdma: Add Skylake PCI Dev ID
[ Upstream commit 1594c18fd297a8edcc72bc4b161f3f52603ebb92 ] Adding Skylake Xeon PCI device ids for ioatdma and related bits. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 65dab1d commit 6c0d9f0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

drivers/dma/ioat/hw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
#define PCI_DEVICE_ID_INTEL_IOAT_BDX8 0x6f2e
6565
#define PCI_DEVICE_ID_INTEL_IOAT_BDX9 0x6f2f
6666

67+
#define PCI_DEVICE_ID_INTEL_IOAT_SKX 0x2021
68+
6769
#define IOAT_VER_1_2 0x12 /* Version 1.2 */
6870
#define IOAT_VER_2_0 0x20 /* Version 2.0 */
6971
#define IOAT_VER_3_0 0x30 /* Version 3.0 */

drivers/dma/ioat/init.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ static struct pci_device_id ioat_pci_tbl[] = {
105105
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IOAT_BDX8) },
106106
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IOAT_BDX9) },
107107

108+
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IOAT_SKX) },
109+
108110
/* I/OAT v3.3 platforms */
109111
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IOAT_BWD0) },
110112
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_IOAT_BWD1) },
@@ -250,10 +252,15 @@ static bool is_bdx_ioat(struct pci_dev *pdev)
250252
}
251253
}
252254

255+
static inline bool is_skx_ioat(struct pci_dev *pdev)
256+
{
257+
return (pdev->device == PCI_DEVICE_ID_INTEL_IOAT_SKX) ? true : false;
258+
}
259+
253260
static bool is_xeon_cb32(struct pci_dev *pdev)
254261
{
255262
return is_jf_ioat(pdev) || is_snb_ioat(pdev) || is_ivb_ioat(pdev) ||
256-
is_hsw_ioat(pdev) || is_bdx_ioat(pdev);
263+
is_hsw_ioat(pdev) || is_bdx_ioat(pdev) || is_skx_ioat(pdev);
257264
}
258265

259266
bool is_bwd_ioat(struct pci_dev *pdev)

0 commit comments

Comments
 (0)