[igt-dev] [PATCH v2 1/1] lib/i915_pciids.h: Add DG2 PCI IDs

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Mar 9 12:22:36 UTC 2022


On Wed, Mar 09, 2022 at 12:24:15PM +0100, Mauro Carvalho Chehab wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
> 
> 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 <matthew.d.roper at intel.com>
>   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.
> 
>     Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
>     Reviewed-by: Caz Yokoyama <caz.yokoyama at intel.com>
>     Link: https://patchwork.freedesktop.org/patch/msgid/20220215214544.2197483-1-matthew.d.roper@intel.com
>     Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> 
> This patch partially reverts:
> b842aa665d48 ("lib/intel_device_info: Introduce i915_pciids_local.h and add DG2 definition")
> but it preserves the file, as this may be used in the future while
> testing future devices, while PCI IDs are still a WIP.
> 
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> ---
>  lib/i915_pciids.h       | 27 +++++++++++++++++++++++++++
>  lib/i915_pciids_local.h | 10 +---------
>  2 files changed, 28 insertions(+), 9 deletions(-)
> 
> diff --git a/lib/i915_pciids.h b/lib/i915_pciids.h
> index 533890dc9da1..3609f3254f24 100644
> --- a/lib/i915_pciids.h
> +++ b/lib/i915_pciids.h
> @@ -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 */
> diff --git a/lib/i915_pciids_local.h b/lib/i915_pciids_local.h
> index 2a18109e59e5..3a26412e71ae 100644
> --- a/lib/i915_pciids_local.h
> +++ b/lib/i915_pciids_local.h
> @@ -7,14 +7,6 @@
>  
>  #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)
> +/* Curently empty. Should be used as place to put temporary PCI IDs */
>  
>  #endif /* _I915_PCIIDS_LOCAL_H */
> -- 
> 2.35.1
>

LGTM:

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew 


More information about the igt-dev mailing list