From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/display: pass display to intel_crtc_for_pipe()
Date: Thu, 05 Sep 2024 21:11:20 +0300 [thread overview]
Message-ID: <87a5gmotrr.fsf@intel.com> (raw)
In-Reply-To: <Zthj9wYWT5ESIGEX@intel.com>
On Wed, 04 Sep 2024, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Wed, Sep 04, 2024 at 04:06:32PM +0300, Jani Nikula wrote:
>> Convert the intel_crtc_for_pipe() struct drm_i915_private parameter to
>> struct intel_display.
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> drivers/gpu/drm/i915/display/i9xx_wm.c | 15 ++++++++++-----
>> .../gpu/drm/i915/display/intel_atomic_plane.c | 4 ++--
>> drivers/gpu/drm/i915/display/intel_cdclk.c | 6 ++++--
>> drivers/gpu/drm/i915/display/intel_crt.c | 3 ++-
>> drivers/gpu/drm/i915/display/intel_crtc.c | 8 +++++---
>> drivers/gpu/drm/i915/display/intel_crtc.h | 3 ++-
>> drivers/gpu/drm/i915/display/intel_display.c | 17 ++++++++++-------
>> .../gpu/drm/i915/display/intel_display_driver.c | 3 ++-
>> .../gpu/drm/i915/display/intel_display_irq.c | 9 ++++++---
>> .../gpu/drm/i915/display/intel_display_trace.h | 15 ++++++++++-----
>> drivers/gpu/drm/i915/display/intel_dpll.c | 3 ++-
>> drivers/gpu/drm/i915/display/intel_dsb.c | 2 +-
>> drivers/gpu/drm/i915/display/intel_fbc.c | 3 +--
>> drivers/gpu/drm/i915/display/intel_fdi.c | 10 ++++++----
>> .../gpu/drm/i915/display/intel_fifo_underrun.c | 15 ++++++++++-----
>> drivers/gpu/drm/i915/display/intel_link_bw.c | 3 +--
>> .../gpu/drm/i915/display/intel_modeset_setup.c | 12 ++++++++----
>> .../gpu/drm/i915/display/intel_sprite_uapi.c | 3 ++-
>> drivers/gpu/drm/i915/display/skl_watermark.c | 7 ++++---
>> 19 files changed, 88 insertions(+), 53 deletions(-)
>>
> <snip>
>> diff --git a/drivers/gpu/drm/i915/display/intel_crtc.c b/drivers/gpu/drm/i915/display/intel_crtc.c
>> index 1b578cad2813..32e0f2907899 100644
>> --- a/drivers/gpu/drm/i915/display/intel_crtc.c
>> +++ b/drivers/gpu/drm/i915/display/intel_crtc.c
>> @@ -48,12 +48,12 @@ struct intel_crtc *intel_first_crtc(struct drm_i915_private *i915)
>> return to_intel_crtc(drm_crtc_from_index(&i915->drm, 0));
>> }
>>
>> -struct intel_crtc *intel_crtc_for_pipe(struct drm_i915_private *i915,
>> +struct intel_crtc *intel_crtc_for_pipe(struct intel_display *display,
>> enum pipe pipe)
>> {
>> struct intel_crtc *crtc;
>>
>> - for_each_intel_crtc(&i915->drm, crtc) {
>> + for_each_intel_crtc(display->drm, crtc) {
>> if (crtc->pipe == pipe)
>> return crtc;
>> }
>> @@ -69,7 +69,9 @@ void intel_crtc_wait_for_next_vblank(struct intel_crtc *crtc)
>> void intel_wait_for_vblank_if_active(struct drm_i915_private *i915,
>> enum pipe pipe)
>> {
>> - struct intel_crtc *crtc = intel_crtc_for_pipe(i915, pipe);
>> + struct intel_display *display = &i915->display;
>> +
>
> Stray newline.
Whoopsie, fixed while pushing to drm-intel-next.
>
> Series is
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Thanks,
Jani.
>
>> + struct intel_crtc *crtc = intel_crtc_for_pipe(display, pipe);
>>
>> if (crtc->active)
>> intel_crtc_wait_for_next_vblank(crtc);
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-09-05 18:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 13:06 [PATCH 1/2] drm/i915/display: pass display to intel_crtc_for_pipe() Jani Nikula
2024-09-04 13:06 ` [PATCH 2/2] drm/i915/display: convert intel_display_trace.h to struct intel_display Jani Nikula
2024-09-04 13:43 ` [PATCH 1/2] drm/i915/display: pass display to intel_crtc_for_pipe() Ville Syrjälä
2024-09-05 18:11 ` Jani Nikula [this message]
2024-09-04 14:14 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] " Patchwork
2024-09-04 14:14 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-09-04 14:23 ` ✓ Fi.CI.BAT: success " Patchwork
2024-09-05 13:04 ` ✗ 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=87a5gmotrr.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--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.