public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Petri Latvala <petri.latvala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>,
	Lucas De Marchi <lucas.demarchi@intel.com>,
	Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t] lib: Add Cometlake platform definition
Date: Thu, 25 Apr 2019 16:00:45 +0300	[thread overview]
Message-ID: <20190425130045.14176-1-petri.latvala@intel.com> (raw)

Commit a794f28f01f2 ("lib: sync with the newer i915_pciids.h from the
Kernel") added CML PCI IDs but did not update intel_device_info.c

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110514
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
---
 lib/intel_chipset.h     |  1 +
 lib/intel_device_info.c | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 40170b7b..7fc9bd77 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -66,6 +66,7 @@ struct intel_device_info {
 	bool is_kabylake : 1;
 	bool is_geminilake : 1;
 	bool is_coffeelake : 1;
+	bool is_cometlake : 1;
 	bool is_cannonlake : 1;
 	bool is_icelake : 1;
 	const char *codename;
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 2bca5183..3f51211f 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -277,6 +277,21 @@ static const struct intel_device_info intel_coffeelake_gt3_info = {
 	.gt = 3,
 };
 
+#define COMETLAKE_FIELDS \
+	.gen = BIT(8), \
+	.is_cometlake = true, \
+	.codename = "cometlake"
+
+static const struct intel_device_info intel_cometlake_gt1_info = {
+	COMETLAKE_FIELDS,
+	.gt = 1,
+};
+
+static const struct intel_device_info intel_cometlake_gt2_info = {
+	COMETLAKE_FIELDS,
+	.gt = 2,
+};
+
 static const struct intel_device_info intel_cannonlake_info = {
 	.gen = BIT(9),
 	.is_cannonlake = true,
@@ -360,6 +375,9 @@ static const struct pci_id_match intel_device_match[] = {
 	INTEL_WHL_U_GT3_IDS(&intel_coffeelake_gt3_info),
 	INTEL_AML_CFL_GT2_IDS(&intel_coffeelake_gt2_info),
 
+	INTEL_CML_GT1_IDS(&intel_cometlake_gt1_info),
+	INTEL_CML_GT2_IDS(&intel_cometlake_gt2_info),
+
 	INTEL_CNL_IDS(&intel_cannonlake_info),
 
 	INTEL_ICL_11_IDS(&intel_icelake_info),
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

             reply	other threads:[~2019-04-25 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 13:00 Petri Latvala [this message]
2019-04-25 13:27 ` [igt-dev] ✓ Fi.CI.BAT: success for lib: Add Cometlake platform definition Patchwork
2019-04-25 15:41 ` [igt-dev] [PATCH i-g-t] " Antonio Argenziano
2019-04-26  0:07 ` [igt-dev] ✓ Fi.CI.IGT: success for " 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=20190425130045.14176-1-petri.latvala@intel.com \
    --to=petri.latvala@intel.com \
    --cc=anusha.srivatsa@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=lucas.demarchi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox