Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/i915: Fix ATS-M definitions
@ 2022-06-15  9:32 Karolina Drobnik
  2022-06-15  9:57 ` Grzegorzek, Dominik
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Karolina Drobnik @ 2022-06-15  9:32 UTC (permalink / raw)
  To: igt-dev

Instead of using a separate "is_ats_m" flag, reuse "is_dg2" in ATS-M
intel_device_info definition. Delete is_ats_m in intel_device_info struct
definition and IS_ATS_M() macro, as they are no longer needed.

Signed-off-by: Karolina Drobnik <karolina.drobnik@intel.com>
---
 lib/intel_chipset.h     | 2 --
 lib/intel_device_info.c | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index de4749e1..06f73211 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -84,7 +84,6 @@ 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;
 };
 
@@ -191,7 +190,6 @@ 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 5b1da33f..bfdd9fa5 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -430,7 +430,7 @@ static const struct intel_device_info intel_alderlake_n_info = {
 static const struct intel_device_info intel_ats_m_info = {
 	.graphics_ver = 12,
 	.display_ver = 0, /* no display support */
-	.is_ats_m = true,
+	.is_dg2 = true,
 	.has_4tile = true,
 	.codename = "ats_m",
 	.has_flatccs = true,
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-15 21:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15  9:32 [igt-dev] [PATCH i-g-t] lib/i915: Fix ATS-M definitions Karolina Drobnik
2022-06-15  9:57 ` Grzegorzek, Dominik
2022-06-15 10:18 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-06-15 15:08 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-06-15 21:09 ` [igt-dev] [PATCH i-g-t] " Matt Roper
2022-06-15 21:20   ` Dixit, Ashutosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox