From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 75143891D2 for ; Wed, 12 Aug 2020 09:42:44 +0000 (UTC) Date: Wed, 12 Aug 2020 12:42:41 +0300 From: Petri Latvala Message-ID: <20200812094241.GQ7444@platvala-desk.ger.corp.intel.com> References: <20200812090548.4973-1-adam.miszczak@linux.intel.com> <20200812090548.4973-3-adam.miszczak@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200812090548.4973-3-adam.miszczak@linux.intel.com> Subject: Re: [igt-dev] [PATCH i-g-t 2/2] lib/i915: Add DG1 platform definition List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Adam Miszczak Cc: igt-dev@lists.freedesktop.org, Chris Wilson List-ID: On Wed, Aug 12, 2020 at 11:05:48AM +0200, Adam Miszczak wrote: > Signed-off-by: Adam Miszczak > Cc: Chris Wilson > Cc: Petri Latvala Reviewed-by: Petri Latvala > --- > lib/intel_chipset.h | 2 ++ > lib/intel_device_info.c | 8 ++++++++ > 2 files changed, 10 insertions(+) > > diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h > index 18f860ca..51093091 100644 > --- a/lib/intel_chipset.h > +++ b/lib/intel_chipset.h > @@ -74,6 +74,7 @@ struct intel_device_info { > bool is_elkhartlake : 1; > bool is_tigerlake : 1; > bool is_rocketlake : 1; > + bool is_dg1 : 1; > const char *codename; > }; > > @@ -173,6 +174,7 @@ void intel_check_pch(void); > #define IS_ICELAKE(devid) (intel_get_device_info(devid)->is_icelake) > #define IS_TIGERLAKE(devid) (intel_get_device_info(devid)->is_tigerlake) > #define IS_ROCKETLAKE(devid) (intel_get_device_info(devid)->is_rocketlake) > +#define IS_DG1(devid) (intel_get_device_info(devid)->is_dg1) > > #define IS_GEN(devid, x) (intel_get_device_info(devid)->gen & (1u << ((x)-1))) > #define AT_LEAST_GEN(devid, x) (intel_get_device_info(devid)->gen & -(1u << ((x)-1))) > diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c > index e5720443..d5f70156 100644 > --- a/lib/intel_device_info.c > +++ b/lib/intel_device_info.c > @@ -327,6 +327,12 @@ static const struct intel_device_info intel_rocketlake_info = { > .codename = "rocketlake" > }; > > +static const struct intel_device_info intel_dg1_info = { > + .gen = BIT(11), > + .is_dg1 = true, > + .codename = "dg1" > +}; > + > static const struct pci_id_match intel_device_match[] = { > INTEL_I810_IDS(&intel_i810_info), > INTEL_I815_IDS(&intel_i815_info), > @@ -413,6 +419,8 @@ static const struct pci_id_match intel_device_match[] = { > INTEL_TGL_12_IDS(&intel_tigerlake_info), > INTEL_RKL_IDS(&intel_rocketlake_info), > > + INTEL_DG1_IDS(&intel_dg1_info), > + > INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info), > }; > > -- > 2.27.0 > _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev