public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
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>
Subject: Re: [PATCH 01/15] drm/i915/display: identify discrete graphics
Date: Wed, 6 Nov 2024 11:43:10 -0500	[thread overview]
Message-ID: <ZyucnsTEuMxrQeCg@intel.com> (raw)
In-Reply-To: <833bffea68615ca823bb412e9e2edd6abbcfafcf.1730740629.git.jani.nikula@intel.com>

On Mon, Nov 04, 2024 at 07:19:15PM +0200, Jani Nikula wrote:
> Identify discrete graphics separately in display, using the platform
> group mechanism. This enables dropping the dependency on i915_drv.h
> IS_DGFX() from display code.
> 
> Start grouping platform groups separately in INTEL_DISPLAY_PLATFORMS()
> in anticipation of more groups to come.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_display_device.c | 8 ++++++--
>  drivers/gpu/drm/i915/display/intel_display_device.h | 4 +++-
>  2 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
> index 5f98e1b2a401..47957384d56d 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_device.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_device.c
> @@ -1011,6 +1011,7 @@ static const enum intel_step dg1_steppings[] = {
>  
>  static const struct platform_desc dg1_desc = {
>  	PLATFORM(dg1),
> +	PLATFORM_GROUP(dgfx),
>  	.info = &(const struct intel_display_device_info) {
>  		XE_D_DISPLAY,
>  
> @@ -1238,6 +1239,7 @@ static const enum intel_step dg2_g12_steppings[] = {
>  
>  static const struct platform_desc dg2_desc = {
>  	PLATFORM(dg2),
> +	PLATFORM_GROUP(dgfx),
>  	.subplatforms = (const struct subplatform_desc[]) {
>  		{
>  			SUBPLATFORM(dg2, g10),
> @@ -1338,6 +1340,7 @@ static const struct platform_desc lnl_desc = {
>  
>  static const struct platform_desc bmg_desc = {
>  	PLATFORM(battlemage),
> +	PLATFORM_GROUP(dgfx),
>  };
>  
>  static const struct platform_desc ptl_desc = {
> @@ -1636,9 +1639,10 @@ void intel_display_device_probe(struct drm_i915_private *i915)
>  
>  	DISPLAY_RUNTIME_INFO(i915)->step = step;
>  
> -	drm_info(&i915->drm, "Found %s%s%s (device ID %04x) display version %u.%02u stepping %s\n",
> +	drm_info(&i915->drm, "Found %s%s%s (device ID %04x) %s display version %u.%02u stepping %s\n",
>  		 desc->name, subdesc ? "/" : "", subdesc ? subdesc->name : "",
> -		 pdev->device, DISPLAY_RUNTIME_INFO(i915)->ip.ver,
> +		 pdev->device, display->platform.dgfx ? "discrete" : "integrated",
> +		 DISPLAY_RUNTIME_INFO(i915)->ip.ver,
>  		 DISPLAY_RUNTIME_INFO(i915)->ip.rel,
>  		 step != STEP_NONE ? intel_step_name(step) : "N/A");
>  
> diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_display_device.h
> index 43144a037f9f..392fbe29e974 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_device.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_device.h
> @@ -21,6 +21,9 @@ struct drm_printer;
>   * platform.
>   */
>  #define INTEL_DISPLAY_PLATFORMS(func) \

INTEL_DISPLAY_PLATFORMS sudently doesn't sound a good name anymore...
but no better suggestion or other thoughts and I like this group thing

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> +	/* Platform group aliases */ \
> +	func(g4x) /* g45 and gm45 */ \
> +	func(dgfx) /* discrete graphics */ \
>  	/* Display ver 2 */ \
>  	func(i830) \
>  	func(i845g) \
> @@ -38,7 +41,6 @@ struct drm_printer;
>  	func(i965gm) \
>  	func(g45) \
>  	func(gm45) \
> -	func(g4x) /* group alias for g45 and gm45 */ \
>  	/* Display ver 5 */ \
>  	func(ironlake) \
>  	/* Display ver 6 */ \
> -- 
> 2.39.5
> 

  reply	other threads:[~2024-11-06 16:43 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04 17:19 [PATCH 00/15] drm/i915/display: convert display feature helpers to struct intel_display Jani Nikula
2024-11-04 17:19 ` [PATCH 01/15] drm/i915/display: identify discrete graphics Jani Nikula
2024-11-06 16:43   ` Rodrigo Vivi [this message]
2024-11-04 17:19 ` [PATCH 02/15] drm/i915/display: convert HAS_D12_PLANE_MINIMIZATION() to struct intel_display Jani Nikula
2024-11-06  8:58   ` Govindapillai, Vinod
2024-11-06  9:07     ` Jani Nikula
2024-11-06 16:44   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 03/15] drm/i915/display: convert HAS_4TILE() " Jani Nikula
2024-11-06  9:11   ` Govindapillai, Vinod
2024-11-06 16:45   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 04/15] drm/i915/display: convert HAS_DOUBLE_BUFFERED_M_N() " Jani Nikula
2024-11-06  9:17   ` Govindapillai, Vinod
2024-11-06 16:46   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 05/15] drm/i915/display: convert HAS_DP20() " Jani Nikula
2024-11-06 10:19   ` Govindapillai, Vinod
2024-11-06 16:47   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 06/15] drm/i915/display: convert HAS_GMBUS_BURST_READ() " Jani Nikula
2024-11-06 10:21   ` Govindapillai, Vinod
2024-11-06 17:03   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 07/15] drm/i915/display: convert HAS_IPS() " Jani Nikula
2024-11-06 10:24   ` Govindapillai, Vinod
2024-11-06 17:04   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 08/15] drm/i915/display: convert HAS_MBUS_JOINING() " Jani Nikula
2024-11-06 10:27   ` Govindapillai, Vinod
2024-11-06 17:04   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 09/15] drm/i915/display: convert HAS_SAGV() " Jani Nikula
2024-11-06 10:38   ` Govindapillai, Vinod
2024-11-06 17:06   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 10/15] drm/i915/display: convert HAS_HW_SAGV_WM() " Jani Nikula
2024-11-06 10:44   ` Govindapillai, Vinod
2024-11-06 17:08   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 11/15] drm/i915/display: convert HAS_ULTRAJOINER() " Jani Nikula
2024-11-06 10:55   ` Govindapillai, Vinod
2024-11-06 17:09   ` Rodrigo Vivi
2024-11-04 17:19 ` [PATCH 12/15] drm/i915/display: rename i915 parameter to __display in feature helpers Jani Nikula
2024-11-06 11:50   ` Govindapillai, Vinod
2024-11-04 17:19 ` [PATCH 13/15] drm/i915/display: convert display device identification to struct intel_display Jani Nikula
2024-11-05 10:17   ` [PATCH v2] " Jani Nikula
2024-11-06 13:03     ` Govindapillai, Vinod
2024-11-04 17:19 ` [PATCH 14/15] drm/i915/display: pass struct pci_dev * to intel_display_device_probe() Jani Nikula
2024-11-06 13:10   ` Govindapillai, Vinod
2024-11-04 17:19 ` [PATCH 15/15] drm/i915/display: add mobile platform group Jani Nikula
2024-11-05 18:53   ` kernel test robot
2024-11-06  9:27   ` [PATCH v2] " Jani Nikula
2024-11-06 15:44     ` Govindapillai, Vinod
2024-11-06 16:40   ` [PATCH 15/15] " Rodrigo Vivi
2024-11-07 10:32     ` Jani Nikula
2024-11-07 18:10       ` Rodrigo Vivi
2024-11-04 17:51 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: convert display feature helpers to struct intel_display Patchwork
2024-11-04 17:51 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-04 18:43 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-11-05 11:15 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: convert display feature helpers to struct intel_display (rev2) Patchwork
2024-11-05 11:15 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-05 12:27 ` ✓ Fi.CI.BAT: success " Patchwork
2024-11-06 10:01 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: convert display feature helpers to struct intel_display (rev3) Patchwork
2024-11-06 10:02 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-11-06 10:17 ` ✓ Fi.CI.BAT: success " Patchwork
2024-11-06 12:33 ` ✗ 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=ZyucnsTEuMxrQeCg@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@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