[igt-dev] [PATCH i-g-t] lib/i915: Add ATS-M definitions

Petri Latvala petri.latvala at intel.com
Tue May 31 11:17:58 UTC 2022


On Tue, May 31, 2022 at 12:59:28PM +0200, Karolina Drobnik wrote:
> Add local definitions for ATS-M to enable it for testing.
> 
> Signed-off-by: Karolina Drobnik <karolina.drobnik at intel.com>

Reviewed-by: Petri Latvala <petri.latvala at intel.com>

> ---
>  lib/i915_pciids_local.h | 11 +++++++++++
>  lib/intel_chipset.h     |  2 ++
>  lib/intel_device_info.c | 11 +++++++++++
>  3 files changed, 24 insertions(+)
> 
> diff --git a/lib/i915_pciids_local.h b/lib/i915_pciids_local.h
> index 2a18109e..b3ac70ff 100644
> --- a/lib/i915_pciids_local.h
> +++ b/lib/i915_pciids_local.h
> @@ -17,4 +17,15 @@
>  	INTEL_VGA_DEVICE(0x56A5, info), \
>  	INTEL_VGA_DEVICE(0x56A6, info)
>  
> +/* ATS-M */
> +#define INTEL_ATS_M150_IDS(info) \
> +	INTEL_VGA_DEVICE(0x56C0, info)
> +
> +#define INTEL_ATS_M75_IDS(info) \
> +	INTEL_VGA_DEVICE(0x56C1, info)
> +
> +#define INTEL_ATS_M_IDS(info) \
> +	INTEL_ATS_M150_IDS(info), \
> +	INTEL_ATS_M75_IDS(info)
> +
>  #endif /* _I915_PCIIDS_LOCAL_H */
> diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
> index 4d9f4623..81547408 100644
> --- a/lib/intel_chipset.h
> +++ b/lib/intel_chipset.h
> @@ -84,6 +84,7 @@ struct intel_device_info {
>  	bool is_raptorlake_s : 1;
>  	bool is_alderlake_p : 1;
>  	bool is_alderlake_n : 1;
> +	bool is_ats_m : 1;
>  	const char *codename;
>  };
>  
> @@ -190,6 +191,7 @@ void intel_check_pch(void);
>  #define IS_RAPTORLAKE_S(devid)	(intel_get_device_info(devid)->is_raptorlake_s)
>  #define IS_ALDERLAKE_P(devid)	(intel_get_device_info(devid)->is_alderlake_p)
>  #define IS_ALDERLAKE_N(devid)	(intel_get_device_info(devid)->is_alderlake_n)
> +#define IS_ATS_M(devid)	(intel_get_device_info(devid)->is_ats_m)
>  
>  #define IS_GEN(devid, x)	(intel_get_device_info(devid)->graphics_ver == x)
>  #define AT_LEAST_GEN(devid, x)	(intel_get_device_info(devid)->graphics_ver >= x)
> diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
> index 0253a732..5b1da33f 100644
> --- a/lib/intel_device_info.c
> +++ b/lib/intel_device_info.c
> @@ -427,6 +427,15 @@ static const struct intel_device_info intel_alderlake_n_info = {
>  	.codename = "alderlake_n"
>  };
>  
> +static const struct intel_device_info intel_ats_m_info = {
> +	.graphics_ver = 12,
> +	.display_ver = 0, /* no display support */
> +	.is_ats_m = true,
> +	.has_4tile = true,
> +	.codename = "ats_m",
> +	.has_flatccs = true,
> +};
> +
>  static const struct pci_id_match intel_device_match[] = {
>  	INTEL_I810_IDS(&intel_i810_info),
>  	INTEL_I815_IDS(&intel_i815_info),
> @@ -524,6 +533,8 @@ static const struct pci_id_match intel_device_match[] = {
>  	INTEL_RPLP_IDS(&intel_alderlake_p_info),
>  	INTEL_ADLN_IDS(&intel_alderlake_n_info),
>  
> +	INTEL_ATS_M_IDS(&intel_ats_m_info),
> +
>  	INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info),
>  };
>  
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list