From: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
<igt-dev@lists.freedesktop.org>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-xe] [PATCH igt 2/4] lib/intel_chipset: Add Lunar Lake support
Date: Thu, 31 Aug 2023 12:18:22 +0530 [thread overview]
Message-ID: <ZPA3tuQCuZkPKntS@bvivekan-mobl> (raw)
In-Reply-To: <20230829141107.1505705-3-lucas.demarchi@intel.com>
On 29.08.2023 07:11, Lucas De Marchi wrote:
> Add basic definition for the Lunar Lake platform. This uses the PCI ID
> from the xe_pciids.h which has a macro in a slighlty different form.
>
> Going forward we could also trim down a little bit the the info struct
> like was done in the kernel, relying on gmdid and IP version checks.
> This is left for later.
>
> Cc: Swati Sharma <swati2.sharma@intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> lib/intel_chipset.h | 5 +++++
> lib/intel_device_info.c | 12 ++++++++++++
> 2 files changed, 17 insertions(+)
>
> diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
> index 84cf1799e..52b15ccea 100644
> --- a/lib/intel_chipset.h
> +++ b/lib/intel_chipset.h
> @@ -46,6 +46,7 @@ struct intel_device_info {
> bool has_4tile : 1;
> bool has_flatccs : 1;
> bool has_oam : 1;
> + bool has_gmdid : 1;
> bool is_mobile : 1;
> bool is_whitney : 1;
> bool is_almador : 1;
> @@ -90,6 +91,7 @@ struct intel_device_info {
> bool is_alderlake_n : 1;
> bool is_meteorlake : 1;
> bool is_pontevecchio : 1;
> + bool is_lunarlake : 1;
> const struct intel_cmds_info *cmds_info;
> const char *codename;
> };
> @@ -203,6 +205,7 @@ void intel_check_pch(void);
> #define IS_ALDERLAKE_N(devid) (intel_get_device_info(devid)->is_alderlake_n)
> #define IS_METEORLAKE(devid) (intel_get_device_info(devid)->is_meteorlake)
> #define IS_PONTEVECCHIO(devid) (intel_get_device_info(devid)->is_pontevecchio)
> +#define IS_LUNARLAKE(devid) (intel_get_device_info(devid)->is_lunarlake)
>
> #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)
> @@ -236,4 +239,6 @@ void intel_check_pch(void);
>
> #define HAS_OAM(devid) (intel_get_device_info(devid)->has_oam)
>
> +#define HAS_GMDID(devid) (intel_get_device_info(devid)->has_gmdid)
> +
> #endif /* _INTEL_CHIPSET_H */
> diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
> index 5d53d2906..86a8b3650 100644
> --- a/lib/intel_device_info.c
> +++ b/lib/intel_device_info.c
> @@ -504,6 +504,16 @@ static const struct intel_device_info intel_pontevecchio_info = {
> .cmds_info = &gen12_pvc_cmds_info,
> };
>
> +static const struct intel_device_info intel_lunarlake_info = {
> + .graphics_ver = 20,
> + .graphics_rel = 4,
> + .display_ver = 20,
> + .has_4tile = true,
> + .has_gmdid = true,
has_gmdid should be set true even for Meteorlake. If not in this patch,
in a follow up.
Regards,
Bala
> + .is_lunarlake = true,
> + .codename = "lunarlake"
> +};
> +
> static const struct pci_id_match intel_device_match[] = {
> INTEL_I810_IDS(&intel_i810_info),
> INTEL_I815_IDS(&intel_i815_info),
> @@ -607,6 +617,8 @@ static const struct pci_id_match intel_device_match[] = {
>
> INTEL_PVC_IDS(&intel_pontevecchio_info),
>
> + XE_LNL_IDS(INTEL_VGA_DEVICE, &intel_lunarlake_info),
> +
> INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info),
> };
>
> --
> 2.40.1
>
next prev parent reply other threads:[~2023-08-31 6:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 14:11 [igt-dev] [PATCH igt 0/4] Add LNL support to xe tests Lucas De Marchi
2023-08-29 14:11 ` [igt-dev] [PATCH igt 1/4] lib: Add xe_pciids.h Lucas De Marchi
2023-08-31 6:28 ` [igt-dev] [Intel-xe] " Balasubramani Vivekanandan
2023-08-31 6:55 ` Balasubramani Vivekanandan
2023-09-01 9:21 ` Lucas De Marchi
2023-09-01 12:17 ` Vivi, Rodrigo
2023-08-29 14:11 ` [igt-dev] [PATCH igt 2/4] lib/intel_chipset: Add Lunar Lake support Lucas De Marchi
2023-08-31 6:48 ` Balasubramani Vivekanandan [this message]
2023-08-31 6:51 ` [igt-dev] [Intel-xe] " Balasubramani Vivekanandan
2023-08-31 17:15 ` Matt Roper
2023-08-29 14:11 ` [igt-dev] [PATCH igt 3/4] lib/intel_device_info: Add blitter cmd info for Lunar Lake Lucas De Marchi
2023-08-30 23:48 ` Srivatsa, Anusha
2023-08-29 14:11 ` [igt-dev] [PATCH igt 4/4] tests/xe_debugfs: skip page table level check for Xe2 Lucas De Marchi
2023-08-30 23:50 ` Srivatsa, Anusha
2023-08-29 14:26 ` [igt-dev] ✗ GitLab.Pipeline: warning for Add LNL support to xe tests Patchwork
2023-08-29 14:59 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-08-29 15:26 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-08-29 21:38 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-08-30 21:07 ` [igt-dev] [Intel-xe] [PATCH igt 0/4] " Rodrigo Vivi
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=ZPA3tuQCuZkPKntS@bvivekan-mobl \
--to=balasubramani.vivekanandan@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=intel-xe@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