From: Jani Nikula <jani.nikula@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>, intel-gfx@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
Matt Roper <matthew.d.roper@intel.com>,
intel-xe@lists.freedesktop.org,
Andrzej Hajda <andrzej.hajda@intel.com>
Subject: Re: [Intel-gfx] [PATCH v2 0/6] i915: Move display identification/probing under display/
Date: Tue, 23 May 2023 16:07:17 +0300 [thread overview]
Message-ID: <87a5xvkxh6.fsf@intel.com> (raw)
In-Reply-To: <20230522202314.3939499-1-matthew.d.roper@intel.com>
On Mon, 22 May 2023, Matt Roper <matthew.d.roper@intel.com> wrote:
> Since i915's display code will soon be shared by two DRM drivers (i915
> and Xe), it makes sense for the display code itself to be responsible
> for recognizing the platform it's running on rather than relying on the
> making the top-level DRM driver handle this. This also becomes more
> important for all platforms MTL and beyond where we're not really
> supposed to identify platform behavior by PCI device ID anymore, but
> rather by the hardware IP version reported by the device through the
> GMD_ID register.
>
> This series creates a more well-defined split between display and
> non-display deviceinfo/runtimeinfo and then moves the definition of the
> display-specific feature flags under the display/ code. Finally, it
> switches MTL (and all future platforms), to select the display feature
> flags based on the hardware's GMD_ID identification.
My primary gripe with this series is that I didn't think of it myself.
I was always hung up on making device info (i915->__info) itself a
pointer, and got stuck there.
Nice job, and many thanks!
I see that there are already a bunch of reviews, so I didn't dig into
all the details. I left some nitpicky comments, but nothing that can't
be fixed later.
Acked-by: Jani Nikula <jani.nikula@intel.com>
BR,
Jani.
>
> v2:
> - Move DISPLAY_INFO() definition one patch earlier. (Andrzej)
> - Rename display's runtime default structure to __runtime_defaults to
> make it more clear what the purpose is. (Andrzej)
> - Simplify copy of runtime defaults to per-device runtime data.
> (Andrzej)
> - Fix uninitialized ptr use on error path during device probe. (lkp)
> - Add extra patch moving display-specific feature test macros to
> display/intel_display_device.h
>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> Cc: Andrzej Hajda <andrzej.hajda@intel.com>
>
> Matt Roper (5):
> drm/i915/display: Move display device info to header under display/
> drm/i915: Convert INTEL_INFO()->display to a pointer
> drm/i915/display: Move display runtime info to display structure
> drm/i915/display: Make display responsible for probing its own IP
> drm/i915/display: Handle GMD_ID identification in display code
> drm/i915/display: Move feature test macros to intel_display_device.h
>
> drivers/gpu/drm/i915/Makefile | 2 +
> drivers/gpu/drm/i915/display/intel_color.c | 31 +-
> drivers/gpu/drm/i915/display/intel_crtc.c | 2 +-
> drivers/gpu/drm/i915/display/intel_cursor.c | 4 +-
> drivers/gpu/drm/i915/display/intel_display.c | 2 +-
> drivers/gpu/drm/i915/display/intel_display.h | 10 +-
> .../drm/i915/display/intel_display_device.c | 764 ++++++++++++++++++
> .../drm/i915/display/intel_display_device.h | 129 +++
> .../drm/i915/display/intel_display_power.c | 6 +-
> .../drm/i915/display/intel_display_reg_defs.h | 14 +-
> drivers/gpu/drm/i915/display/intel_fb_pin.c | 2 +-
> drivers/gpu/drm/i915/display/intel_fbc.c | 6 +-
> drivers/gpu/drm/i915/display/intel_hdcp.c | 2 +-
> drivers/gpu/drm/i915/display/intel_hti.c | 2 +-
> .../drm/i915/display/skl_universal_plane.c | 2 +-
> drivers/gpu/drm/i915/display/skl_watermark.c | 8 +-
> drivers/gpu/drm/i915/i915_driver.c | 17 +-
> drivers/gpu/drm/i915/i915_drv.h | 65 +-
> drivers/gpu/drm/i915/i915_pci.c | 382 +--------
> drivers/gpu/drm/i915/i915_reg.h | 33 -
> drivers/gpu/drm/i915/intel_device_info.c | 113 +--
> drivers/gpu/drm/i915/intel_device_info.h | 67 +-
> drivers/gpu/drm/i915/intel_step.c | 8 +-
> 23 files changed, 1030 insertions(+), 641 deletions(-)
> create mode 100644 drivers/gpu/drm/i915/display/intel_display_device.c
> create mode 100644 drivers/gpu/drm/i915/display/intel_display_device.h
--
Jani Nikula, Intel Open Source Graphics Center
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>, intel-gfx@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
Matt Roper <matthew.d.roper@intel.com>,
intel-xe@lists.freedesktop.org,
Andrzej Hajda <andrzej.hajda@intel.com>
Subject: Re: [Intel-xe] [PATCH v2 0/6] i915: Move display identification/probing under display/
Date: Tue, 23 May 2023 16:07:17 +0300 [thread overview]
Message-ID: <87a5xvkxh6.fsf@intel.com> (raw)
In-Reply-To: <20230522202314.3939499-1-matthew.d.roper@intel.com>
On Mon, 22 May 2023, Matt Roper <matthew.d.roper@intel.com> wrote:
> Since i915's display code will soon be shared by two DRM drivers (i915
> and Xe), it makes sense for the display code itself to be responsible
> for recognizing the platform it's running on rather than relying on the
> making the top-level DRM driver handle this. This also becomes more
> important for all platforms MTL and beyond where we're not really
> supposed to identify platform behavior by PCI device ID anymore, but
> rather by the hardware IP version reported by the device through the
> GMD_ID register.
>
> This series creates a more well-defined split between display and
> non-display deviceinfo/runtimeinfo and then moves the definition of the
> display-specific feature flags under the display/ code. Finally, it
> switches MTL (and all future platforms), to select the display feature
> flags based on the hardware's GMD_ID identification.
My primary gripe with this series is that I didn't think of it myself.
I was always hung up on making device info (i915->__info) itself a
pointer, and got stuck there.
Nice job, and many thanks!
I see that there are already a bunch of reviews, so I didn't dig into
all the details. I left some nitpicky comments, but nothing that can't
be fixed later.
Acked-by: Jani Nikula <jani.nikula@intel.com>
BR,
Jani.
>
> v2:
> - Move DISPLAY_INFO() definition one patch earlier. (Andrzej)
> - Rename display's runtime default structure to __runtime_defaults to
> make it more clear what the purpose is. (Andrzej)
> - Simplify copy of runtime defaults to per-device runtime data.
> (Andrzej)
> - Fix uninitialized ptr use on error path during device probe. (lkp)
> - Add extra patch moving display-specific feature test macros to
> display/intel_display_device.h
>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> Cc: Andrzej Hajda <andrzej.hajda@intel.com>
>
> Matt Roper (5):
> drm/i915/display: Move display device info to header under display/
> drm/i915: Convert INTEL_INFO()->display to a pointer
> drm/i915/display: Move display runtime info to display structure
> drm/i915/display: Make display responsible for probing its own IP
> drm/i915/display: Handle GMD_ID identification in display code
> drm/i915/display: Move feature test macros to intel_display_device.h
>
> drivers/gpu/drm/i915/Makefile | 2 +
> drivers/gpu/drm/i915/display/intel_color.c | 31 +-
> drivers/gpu/drm/i915/display/intel_crtc.c | 2 +-
> drivers/gpu/drm/i915/display/intel_cursor.c | 4 +-
> drivers/gpu/drm/i915/display/intel_display.c | 2 +-
> drivers/gpu/drm/i915/display/intel_display.h | 10 +-
> .../drm/i915/display/intel_display_device.c | 764 ++++++++++++++++++
> .../drm/i915/display/intel_display_device.h | 129 +++
> .../drm/i915/display/intel_display_power.c | 6 +-
> .../drm/i915/display/intel_display_reg_defs.h | 14 +-
> drivers/gpu/drm/i915/display/intel_fb_pin.c | 2 +-
> drivers/gpu/drm/i915/display/intel_fbc.c | 6 +-
> drivers/gpu/drm/i915/display/intel_hdcp.c | 2 +-
> drivers/gpu/drm/i915/display/intel_hti.c | 2 +-
> .../drm/i915/display/skl_universal_plane.c | 2 +-
> drivers/gpu/drm/i915/display/skl_watermark.c | 8 +-
> drivers/gpu/drm/i915/i915_driver.c | 17 +-
> drivers/gpu/drm/i915/i915_drv.h | 65 +-
> drivers/gpu/drm/i915/i915_pci.c | 382 +--------
> drivers/gpu/drm/i915/i915_reg.h | 33 -
> drivers/gpu/drm/i915/intel_device_info.c | 113 +--
> drivers/gpu/drm/i915/intel_device_info.h | 67 +-
> drivers/gpu/drm/i915/intel_step.c | 8 +-
> 23 files changed, 1030 insertions(+), 641 deletions(-)
> create mode 100644 drivers/gpu/drm/i915/display/intel_display_device.c
> create mode 100644 drivers/gpu/drm/i915/display/intel_display_device.h
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-05-23 13:07 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 20:23 [Intel-gfx] [PATCH v2 0/6] i915: Move display identification/probing under display/ Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-22 20:23 ` [Intel-gfx] [PATCH v2 1/6] drm/i915/display: Move display device info to header " Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-22 20:23 ` [Intel-gfx] [PATCH v2 2/6] drm/i915: Convert INTEL_INFO()->display to a pointer Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-23 7:45 ` [Intel-gfx] " Andrzej Hajda
2023-05-23 7:45 ` [Intel-xe] " Andrzej Hajda
2023-05-23 12:47 ` [Intel-gfx] [Intel-xe] " Jani Nikula
2023-05-23 12:47 ` Jani Nikula
2023-05-22 20:23 ` [Intel-gfx] [PATCH v2 3/6] drm/i915/display: Move display runtime info to display structure Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-23 7:50 ` [Intel-gfx] " Andrzej Hajda
2023-05-23 7:50 ` [Intel-xe] " Andrzej Hajda
2023-05-23 12:45 ` Jani Nikula
2023-05-23 12:45 ` [Intel-xe] " Jani Nikula
2023-05-22 20:23 ` [Intel-gfx] [PATCH v2 4/6] drm/i915/display: Make display responsible for probing its own IP Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-23 7:51 ` [Intel-gfx] " Andrzej Hajda
2023-05-23 7:51 ` [Intel-xe] " Andrzej Hajda
2023-05-23 12:58 ` [Intel-gfx] [Intel-xe] " Jani Nikula
2023-05-23 12:58 ` Jani Nikula
2023-05-22 20:23 ` [Intel-gfx] [PATCH v2 5/6] drm/i915/display: Handle GMD_ID identification in display code Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-23 8:03 ` [Intel-gfx] " Andrzej Hajda
2023-05-23 8:03 ` [Intel-xe] " Andrzej Hajda
2023-05-23 13:02 ` [Intel-gfx] [Intel-xe] " Jani Nikula
2023-05-23 13:02 ` Jani Nikula
2023-05-23 14:43 ` [Intel-gfx] " Matt Roper
2023-05-23 14:43 ` Matt Roper
2023-05-22 20:23 ` [Intel-gfx] [PATCH v2 6/6] drm/i915/display: Move feature test macros to intel_display_device.h Matt Roper
2023-05-22 20:23 ` [Intel-xe] " Matt Roper
2023-05-23 8:06 ` [Intel-gfx] " Andrzej Hajda
2023-05-23 8:06 ` [Intel-xe] " Andrzej Hajda
2023-05-22 21:08 ` [Intel-xe] ✗ CI.Patch_applied: failure for i915: Move display identification/probing under display/ (rev2) Patchwork
2023-05-22 21:36 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2023-05-22 21:36 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-05-22 21:46 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-05-23 6:28 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-05-23 13:07 ` Jani Nikula [this message]
2023-05-23 13:07 ` [Intel-xe] [PATCH v2 0/6] i915: Move display identification/probing under display/ Jani Nikula
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=87a5xvkxh6.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=andrzej.hajda@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=matthew.d.roper@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.