All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t 2/2] lib/intel_chipset: Add flatccs flag for DG2
Date: Mon, 14 Feb 2022 13:33:38 +0100	[thread overview]
Message-ID: <20220214123338.39884-3-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20220214123338.39884-1-zbigniew.kempczynski@intel.com>

FlatCCS is discrete DG2+ feature and is worth to add the flag which
enables it. Add HAS_FLATCCS() macro which should make conditional code
simpler and compact.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
---
 lib/intel_chipset.h     | 3 +++
 lib/intel_device_info.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 1396f105b..e27b9aab1 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -40,6 +40,7 @@ struct intel_device_info {
 	unsigned graphics_ver;
 	unsigned display_ver;
 	unsigned gt; /* 0 if unknown */
+	bool has_flatccs;
 	bool is_mobile : 1;
 	bool is_whitney : 1;
 	bool is_almador : 1;
@@ -215,4 +216,6 @@ void intel_check_pch(void);
 				   IS_CHERRYVIEW(devid) || \
 				   IS_BROXTON(devid)))
 
+#define HAS_FLATCCS(devid)	(intel_get_device_info(devid)->has_flatccs)
+
 #endif /* _INTEL_CHIPSET_H */
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 4aabdafe0..9f1913679 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -395,6 +395,7 @@ static const struct intel_device_info intel_dg2_info = {
 	.display_ver = 13,
 	.is_dg2 = true,
 	.codename = "dg2",
+	.has_flatccs = true,
 };
 
 static const struct intel_device_info intel_alderlake_s_info = {
-- 
2.32.0

  parent reply	other threads:[~2022-02-14 12:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14 12:33 [igt-dev] [PATCH i-g-t 0/2] DG2 enable (locally) Zbigniew Kempczyński
2022-02-14 12:33 ` [igt-dev] [PATCH i-g-t 1/2] lib/intel_device_info: Introduce i915_pciids_local.h and add DG2 definition Zbigniew Kempczyński
2022-02-14 12:33 ` Zbigniew Kempczyński [this message]
2022-02-14 12:51 ` [igt-dev] [PATCH i-g-t 0/2] DG2 enable (locally) Petri Latvala
2022-02-14 13:01   ` Zbigniew Kempczyński
2022-02-15 13:11 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-02-15 15:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220214123338.39884-3-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.