Synchronizes the PCI IDs on i915_pciids for DG2
cover Synchronizes the PCI IDs on i915_pciids for DG2
From: Mauro Carvalho Chehab <[email protected]>
The list of PCI IDs for DG2 on IGT doesn't match the patch that was merged on drm-tip. Sync them, in order for IGT to identify the same PCI IDs as the Linux Kernel for such devices.
Mauro Carvalho Chehab (1):
lib/i915_pciids.h: Add DG2 PCI IDs
lib/i915_pciids.h | 27 +++++++++++++++++++++++++++ lib/i915_pciids_local.h | 20 -------------------- lib/intel_device_info.c | 1 - 3 files changed, 27 insertions(+), 21 deletions(-) delete mode 100644 lib/i915_pciids_local.h
Signature · 1 line
2.35.1
PATCH 1/1 lib/i915_pciids.h: Add DG2 PCI IDs
From: Mauro Carvalho Chehab <[email protected]>
As DG2 hardware will start showing up in CI shortly, and the DG2 list of PCI id's is not in sync with the patch merged at Linux drm-tip upstream, update them to reflect what it was merged there by this Linux changeset:
commit 92b805135ed2851989097106bbde0f099d664902
Author: Matt Roper <[email protected]>
Date: Tue Feb 15 13:45:44 2022 -0800
drm/i915: Add DG2 PCI IDs
DG2 hardware will start showing up in CI shortly; let's make sure it's recognized by the driver.
This patch partially reverts:b842aa665d48 ("lib/intel_device_info: Introduce i915_pciids_local.h and add DG2 definition")
--- lib/i915_pciids.h | 27 +++++++++++++++++++++++++++ lib/i915_pciids_local.h | 20 -------------------- lib/intel_device_info.c | 1 - 3 files changed, 27 insertions(+), 21 deletions(-) delete mode 100644 lib/i915_pciids_local.h
lib/i915_pciids.h +27 -0
@@ -681,4 +681,31 @@INTEL_VGA_DEVICE (0xA788 , info), \INTEL_VGA_DEVICE (0xA789 , info) +/* DG2 */ +#define INTEL_DG2_G10_IDS (info) \ + INTEL_VGA_DEVICE(0x5690, info), \ + INTEL_VGA_DEVICE(0x5691, info), \ + INTEL_VGA_DEVICE(0x5692, info), \ + INTEL_VGA_DEVICE(0x56A0, info), \ + INTEL_VGA_DEVICE(0x56A1, info), \ + INTEL_VGA_DEVICE(0x56A2, info) + +#define INTEL_DG2_G11_IDS (info) \ + INTEL_VGA_DEVICE(0x5693, info), \ + INTEL_VGA_DEVICE(0x5694, info), \ + INTEL_VGA_DEVICE(0x5695, info), \ + INTEL_VGA_DEVICE(0x56A5, info), \ + INTEL_VGA_DEVICE(0x56A6, info), \ + INTEL_VGA_DEVICE(0x56B0, info), \ + INTEL_VGA_DEVICE(0x56B1, info) + +#define INTEL_DG2_G12_IDS (info) \ + INTEL_VGA_DEVICE(0x56A3, info), \ + INTEL_VGA_DEVICE(0x56A4, info) + +#define INTEL_DG2_IDS (info) \ + INTEL_DG2_G10_IDS(info), \ + INTEL_DG2_G11_IDS(info), \ + INTEL_DG2_G12_IDS(info) +#endif /* _I915_PCIIDS_H */
lib/i915_pciids_local.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: MIT */ -/* -* Copyright © 2022 Intel Corporation -*/ -#ifndef _I915_PCIIDS_LOCAL_H_ -#define _I915_PCIIDS_LOCAL_H_ - -#include "i915_pciids.h" - -/* DG2 */ -#define INTEL_DG2_IDS (info) \ - INTEL_VGA_DEVICE(0x56A0, info), \ - INTEL_VGA_DEVICE(0x56A1, info), \ - INTEL_VGA_DEVICE(0x56A2, info), \ - INTEL_VGA_DEVICE(0x56A3, info), \ - INTEL_VGA_DEVICE(0x56A4, info), \ - INTEL_VGA_DEVICE(0x56A5, info), \ - INTEL_VGA_DEVICE(0x56A6, info) - -#endif /* _I915_PCIIDS_LOCAL_H */
lib/intel_device_info.c +0 -1
@@ -1,6 +1,5 @@#include "intel_chipset.h" #include "i915_pciids.h" -#include "i915_pciids_local.h" #include <strings.h> /* ffs() */
Signature · 1 line
2.35.1
Re: [igt-dev] [PATCH 1/1] lib/i915_pciids.h: Add DG2 PCI IDs
Quoted 16 lines · Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <[email protected]>
As DG2 hardware will start showing up in CI shortly, and the DG2 list of PCI id's is not in sync with the patch merged at Linux drm-tip upstream, update them to reflect what it was merged there by this Linux changeset:
commit
92b805135ed2851989097106bbde0f099d664902
Author: Matt Roper <[email protected]>
Date: Tue Feb 15 13:45:44 2022 -0800drm/i915: Add DG2 PCI IDs
DG2 hardware will start showing up in CI shortly; let's make sure it's recognized by the driver.
Quoted 7 lines
Signed-off-by Matt Roper <[email protected]>Reviewed-by Caz Yokoyama <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>This patch partially reverts:
b842aa665d48("lib/intel_device_info: Introducei915_pciids_local.hand add DG2 definition")
I would keep this file even if it stays empty. We will need this when we start upstreaming other gpus. I will add comment on the top of the file what's intention of it.
--
Zbigniew
Quoted 86 lines
Cc Zbigniew Kempczyński <[email protected]>Signed-off-by Mauro Carvalho Chehab <[email protected]>--- lib/i915_pciids.h | 27 +++++++++++++++++++++++++++ lib/i915_pciids_local.h | 20 -------------------- lib/intel_device_info.c | 1 - 3 files changed, 27 insertions(+), 21 deletions(-) delete mode 100644 lib/i915_pciids_local.hlib/i915_pciids.h +27
-0@@ -681,4 +681,31 @@INTEL_VGA_DEVICE (0xA788 , info), \INTEL_VGA_DEVICE (0xA789 , info) +/* DG2 */ +#define INTEL_DG2_G10_IDS (info) \ + INTEL_VGA_DEVICE(0x5690, info), \ + INTEL_VGA_DEVICE(0x5691, info), \ + INTEL_VGA_DEVICE(0x5692, info), \ + INTEL_VGA_DEVICE(0x56A0, info), \ + INTEL_VGA_DEVICE(0x56A1, info), \ + INTEL_VGA_DEVICE(0x56A2, info) + +#define INTEL_DG2_G11_IDS (info) \ + INTEL_VGA_DEVICE(0x5693, info), \ + INTEL_VGA_DEVICE(0x5694, info), \ + INTEL_VGA_DEVICE(0x5695, info), \ + INTEL_VGA_DEVICE(0x56A5, info), \ + INTEL_VGA_DEVICE(0x56A6, info), \ + INTEL_VGA_DEVICE(0x56B0, info), \ + INTEL_VGA_DEVICE(0x56B1, info) + +#define INTEL_DG2_G12_IDS (info) \ + INTEL_VGA_DEVICE(0x56A3, info), \ + INTEL_VGA_DEVICE(0x56A4, info) + +#define INTEL_DG2_IDS (info) \ + INTEL_DG2_G10_IDS(info), \ + INTEL_DG2_G11_IDS(info), \ + INTEL_DG2_G12_IDS(info) +#endif /* _I915_PCIIDS_H */ lib/i915_pciids_local.h deleted +0
-20@@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: MIT */ -/* -* Copyright © 2022 Intel Corporation -*/ -#ifndef _I915_PCIIDS_LOCAL_H_ -#define _I915_PCIIDS_LOCAL_H_ - -#include "i915_pciids.h" - -/* DG2 */ -#define INTEL_DG2_IDS (info) \ - INTEL_VGA_DEVICE(0x56A0, info), \ - INTEL_VGA_DEVICE(0x56A1, info), \ - INTEL_VGA_DEVICE(0x56A2, info), \ - INTEL_VGA_DEVICE(0x56A3, info), \ - INTEL_VGA_DEVICE(0x56A4, info), \ - INTEL_VGA_DEVICE(0x56A5, info), \ - INTEL_VGA_DEVICE(0x56A6, info) - -#endif /* _I915_PCIIDS_LOCAL_H */ lib/intel_device_info.c +0
-1@@ -1,6 +1,5 @@#include "intel_chipset.h" #include "i915_pciids.h" -#include "i915_pciids_local.h" #include <strings.h> /* ffs() */ Signature · 1 line
2.35.1