From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>, <lucas.demarchi@intel.com>,
<maarten.lankhorst@linux.intel.com>,
<ville.syrjala@linux.intel.com>
Subject: Re: [PATCH v3 04/15] drm/i915/display: join the platform and subplatform enums
Date: Mon, 7 Oct 2024 15:49:09 -0400 [thread overview]
Message-ID: <ZwQ7NUN3RC3J8a9F@intel.com> (raw)
In-Reply-To: <0c385a0ff098d14116f7b2d0bd5de10dc5196d64.1727699233.git.jani.nikula@intel.com>
On Mon, Sep 30, 2024 at 03:31:05PM +0300, Jani Nikula wrote:
> We'll want to use the subplatforms similar to platforms. Join the
> subplatforms next to their corresponding platforms. Update the comment
> while at it.
>
> v2: Put the subplatforms next to the platforms
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> .../drm/i915/display/intel_display_device.c | 2 +-
> .../drm/i915/display/intel_display_device.h | 54 +++++++++----------
> 2 files changed, 28 insertions(+), 28 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
> index d311edbfc069..ab98a69b84a7 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_device.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_device.c
> @@ -31,7 +31,7 @@ struct stepping_desc {
> .step_info.size = ARRAY_SIZE(_map)
>
> struct subplatform_desc {
> - enum intel_display_subplatform subplatform;
> + enum intel_display_platform subplatform;
> const char *name;
> const u16 *pciidlist;
> struct stepping_desc step_info;
> diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_display_device.h
> index 1cc1a2de9e6a..dc425e2661bc 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_device.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_device.h
> @@ -14,7 +14,11 @@
> struct drm_i915_private;
> struct drm_printer;
>
> -/* Keep in gen based order, and chronological order within a gen */
> +/*
> + * Display platforms and subplatforms. Keep platforms in display version based
> + * order, chronological order within a version, and subplatforms next to the
> + * platform.
> + */
> #define INTEL_DISPLAY_PLATFORMS(func) \
> func(PLATFORM_UNINITIALIZED) \
> /* Display ver 2 */ \
> @@ -42,28 +46,49 @@ struct drm_printer;
> func(IVYBRIDGE) \
> func(VALLEYVIEW) \
> func(HASWELL) \
> + func(HASWELL_ULT) \
> + func(HASWELL_ULX) \
> /* Display ver 8 */ \
> func(BROADWELL) \
> + func(BROADWELL_ULT) \
> + func(BROADWELL_ULX) \
> func(CHERRYVIEW) \
> /* Display ver 9 */ \
> func(SKYLAKE) \
> + func(SKYLAKE_ULT) \
> + func(SKYLAKE_ULX) \
> func(BROXTON) \
> func(KABYLAKE) \
> + func(KABYLAKE_ULT) \
> + func(KABYLAKE_ULX) \
> func(GEMINILAKE) \
> func(COFFEELAKE) \
> + func(COFFEELAKE_ULT) \
> + func(COFFEELAKE_ULX) \
> func(COMETLAKE) \
> + func(COMETLAKE_ULT) \
> + func(COMETLAKE_ULX) \
> /* Display ver 11 */ \
> func(ICELAKE) \
> + func(ICELAKE_PORT_F) \
> func(JASPERLAKE) \
> func(ELKHARTLAKE) \
> /* Display ver 12 */ \
> func(TIGERLAKE) \
> + func(TIGERLAKE_UY) \
> func(ROCKETLAKE) \
> func(DG1) \
> func(ALDERLAKE_S) \
> + func(ALDERLAKE_S_RAPTORLAKE_S) \
> /* Display ver 13 */ \
> func(ALDERLAKE_P) \
> + func(ALDERLAKE_P_ALDERLAKE_N) \
> + func(ALDERLAKE_P_RAPTORLAKE_P) \
> + func(ALDERLAKE_P_RAPTORLAKE_U) \
> func(DG2) \
> + func(DG2_G10) \
> + func(DG2_G11) \
> + func(DG2_G12) \
> /* Display ver 14 (based on GMD ID) */ \
> func(METEORLAKE) \
> /* Display ver 20 (based on GMD ID) */ \
> @@ -79,31 +104,6 @@ enum intel_display_platform {
>
> #undef __ENUM
>
> -enum intel_display_subplatform {
> - INTEL_DISPLAY_SUBPLATFORM_UNINITIALIZED = 0,
> - INTEL_DISPLAY_HASWELL_ULT,
> - INTEL_DISPLAY_HASWELL_ULX,
> - INTEL_DISPLAY_BROADWELL_ULT,
> - INTEL_DISPLAY_BROADWELL_ULX,
> - INTEL_DISPLAY_SKYLAKE_ULT,
> - INTEL_DISPLAY_SKYLAKE_ULX,
> - INTEL_DISPLAY_KABYLAKE_ULT,
> - INTEL_DISPLAY_KABYLAKE_ULX,
> - INTEL_DISPLAY_COFFEELAKE_ULT,
> - INTEL_DISPLAY_COFFEELAKE_ULX,
> - INTEL_DISPLAY_COMETLAKE_ULT,
> - INTEL_DISPLAY_COMETLAKE_ULX,
> - INTEL_DISPLAY_ICELAKE_PORT_F,
> - INTEL_DISPLAY_TIGERLAKE_UY,
> - INTEL_DISPLAY_ALDERLAKE_S_RAPTORLAKE_S,
> - INTEL_DISPLAY_ALDERLAKE_P_ALDERLAKE_N,
> - INTEL_DISPLAY_ALDERLAKE_P_RAPTORLAKE_P,
> - INTEL_DISPLAY_ALDERLAKE_P_RAPTORLAKE_U,
> - INTEL_DISPLAY_DG2_G10,
> - INTEL_DISPLAY_DG2_G11,
> - INTEL_DISPLAY_DG2_G12,
> -};
> -
> #define DEV_INFO_DISPLAY_FOR_EACH_FLAG(func) \
> /* Keep in alphabetical order */ \
> func(cursor_needs_physical); \
> @@ -211,7 +211,7 @@ enum intel_display_subplatform {
>
> struct intel_display_runtime_info {
> enum intel_display_platform platform;
> - enum intel_display_subplatform subplatform;
> + enum intel_display_platform subplatform;
>
> struct intel_display_ip_ver {
> u16 ver;
> --
> 2.39.5
>
next prev parent reply other threads:[~2024-10-07 19:49 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 12:31 [PATCH v3 00/15] drm/i915/display: platform identification with display->platform.<platform> Jani Nikula
2024-09-30 12:31 ` [PATCH v3 01/15] drm/i915/display: reindent subplatform initialization Jani Nikula
2024-10-07 19:35 ` Rodrigo Vivi
2024-09-30 12:31 ` [PATCH v3 02/15] drm/i915/display: use a macro to initialize subplatforms Jani Nikula
2024-10-07 19:41 ` Rodrigo Vivi
2024-09-30 12:31 ` [PATCH v3 03/15] drm/i915/display: use a macro to define platform enumerations Jani Nikula
2024-10-07 19:48 ` Rodrigo Vivi
2024-10-07 20:36 ` Michal Wajdeczko
2024-10-08 9:30 ` Jani Nikula
2024-10-08 9:42 ` Michal Wajdeczko
2024-10-08 10:08 ` Jani Nikula
2024-09-30 12:31 ` [PATCH v3 04/15] drm/i915/display: join the platform and subplatform enums Jani Nikula
2024-10-07 19:49 ` Rodrigo Vivi [this message]
2024-09-30 12:31 ` [PATCH v3 05/15] drm/i915/display: convert display platforms to lower case Jani Nikula
2024-10-07 19:49 ` Rodrigo Vivi
2024-09-30 12:31 ` [PATCH v3 06/15] drm/i915/display: add display platforms structure with platform members Jani Nikula
2024-10-07 19:54 ` Rodrigo Vivi
2024-10-08 9:36 ` Jani Nikula
2024-09-30 12:31 ` [PATCH v3 07/15] drm/i915/display: add platform member to struct intel_display Jani Nikula
2024-09-30 12:31 ` [PATCH v3 08/15] drm/i915/display: remove the display platform enum as unnecessary Jani Nikula
2024-09-30 12:31 ` [PATCH v3 09/15] drm/i915/display: add platform group for g4x Jani Nikula
2024-09-30 12:31 ` [PATCH v3 10/15] drm/i915/display: add subplatform group for HSW/BDW ULT Jani Nikula
2024-09-30 12:31 ` [PATCH v3 11/15] drm/i915/bios: use display->platform.<platform> instead of IS_<PLATFORM>() Jani Nikula
2024-09-30 12:31 ` [PATCH v3 12/15] drm/i915/pps: " Jani Nikula
2024-09-30 12:31 ` [PATCH v3 13/15] drm/i915/tv: " Jani Nikula
2024-09-30 12:31 ` [PATCH v3 14/15] drm/i915/vga: " Jani Nikula
2024-09-30 12:31 ` [PATCH v3 15/15] drm/i915/vblank: " Jani Nikula
2024-09-30 16:27 ` ✓ CI.Patch_applied: success for drm/i915/display: platform identification with display->platform.<platform> Patchwork
2024-09-30 16:27 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-30 16:29 ` ✓ CI.KUnit: success " Patchwork
2024-09-30 16:41 ` ✓ CI.Build: " Patchwork
2024-09-30 16:44 ` ✓ CI.Hooks: " Patchwork
2024-09-30 16:45 ` ✗ CI.checksparse: warning " Patchwork
2024-09-30 17:19 ` ✓ CI.BAT: success " Patchwork
2024-09-30 21:50 ` ✗ CI.FULL: failure " Patchwork
2024-10-01 1:45 ` ✗ Fi.CI.SPARSE: warning " Patchwork
2024-10-01 1:53 ` ✓ Fi.CI.BAT: success " Patchwork
2024-10-01 14:34 ` ✗ Fi.CI.IGT: failure " 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=ZwQ7NUN3RC3J8a9F@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=ville.syrjala@linux.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.