From: Jani Nikula <jani.nikula@linux.intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>, intel-xe@lists.freedesktop.org
Cc: uma.shankar@intel.com, jouni.hogander@intel.com,
Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH] drm/i915/psr: Implement WA to help reach PC10
Date: Thu, 10 Oct 2024 11:29:45 +0300 [thread overview]
Message-ID: <87y12w743q.fsf@intel.com> (raw)
In-Reply-To: <20241006164934.1689930-2-suraj.kandpal@intel.com>
On Sun, 06 Oct 2024, Suraj Kandpal <suraj.kandpal@intel.com> wrote:
> +static bool
> +intel_psr_is_dc5_entry_possible(struct intel_display *display,
> + struct intel_crtc_state *crtc_state)
> +{
> + struct intel_crtc *intel_crtc;
Always struct intel_crtc *crtc;
> +
> + if ((display->power.domains.target_dc_state &
> + DC_STATE_EN_UPTO_DC5_DC6_MASK) == 0)
> + return false;
> +
> + if (!crtc_state->has_psr && !crtc_state->has_sel_update &&
> + !crtc_state->has_panel_replay)
> + return false;
> +
> + for_each_intel_crtc(display->drm, intel_crtc) {
> + struct drm_crtc *crtc = &intel_crtc->base;
Just don't add struct drm_crtc local variables, so you don't get the
name conflict.
> + struct drm_vblank_crtc *vblank;
> + struct intel_encoder *encoder;
> +
> + if (!intel_crtc->active)
> + continue;
> +
> + vblank = drm_crtc_vblank_crtc(crtc);
> +
> + if (vblank->enabled)
> + return false;
> +
> + for_each_encoder_on_crtc(display->drm, crtc, encoder)
> + if (encoder->type != INTEL_OUTPUT_EDP ||
> + !CAN_PSR(enc_to_intel_dp(encoder)))
> + return false;
> + }
> +
> + return true;
> +}
> +
[snip]
> +void intel_psr_compute_config_late(struct intel_encoder *intel_encoder,
Always struct intel_encoder *encoder;
> + struct intel_crtc_state *crtc_state)
> +{
> + struct intel_display *display = to_intel_display(intel_encoder);
> + struct intel_dp *dp = enc_to_intel_dp(intel_encoder);
Always struct intel_dp *intel_dp;
> +
> + if (DISPLAY_VER(display) == 20) {
> + mutex_lock(&dp->psr.lock);
> + dp->psr.is_dpkgc_configured =
> + intel_psr_is_dpkgc_configured(display, crtc_state);
> + dp->psr.is_dc5_entry_possible =
> + intel_psr_is_dc5_entry_possible(display, crtc_state);
> + dp->psr.is_wa_delayed_vblank_limit =
> + intel_psr_check_wa_delayed_vblank(&crtc_state->hw.adjusted_mode);
> + mutex_unlock(&dp->psr.lock);
> + }
> +}
> +
--
Jani Nikula, Intel
next prev parent reply other threads:[~2024-10-10 8:29 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-03 14:53 [PATCH] drm/i915/psr: Implement WA to help reach PC10 Suraj Kandpal
2024-10-03 15:26 ` ✓ CI.Patch_applied: success for " Patchwork
2024-10-03 15:27 ` ✓ CI.checkpatch: " Patchwork
2024-10-03 15:28 ` ✓ CI.KUnit: " Patchwork
2024-10-03 15:39 ` ✓ CI.Build: " Patchwork
2024-10-03 15:42 ` ✓ CI.Hooks: " Patchwork
2024-10-03 15:43 ` ✗ CI.checksparse: warning " Patchwork
2024-10-03 16:02 ` ✓ CI.BAT: success " Patchwork
2024-10-03 17:30 ` ✗ CI.FULL: failure " Patchwork
2024-10-06 16:49 ` [PATCH] " Suraj Kandpal
2024-10-09 14:45 ` Jani Nikula
2024-10-10 3:41 ` Kandpal, Suraj
2024-10-10 8:40 ` Jani Nikula
2024-10-17 4:45 ` Kandpal, Suraj
2024-10-10 8:29 ` Jani Nikula [this message]
2024-10-07 15:54 ` ✓ CI.Patch_applied: success for drm/i915/psr: Implement WA to help reach PC10 (rev2) Patchwork
2024-10-07 15:54 ` ✓ CI.checkpatch: " Patchwork
2024-10-07 15:56 ` ✓ CI.KUnit: " Patchwork
2024-10-07 16:07 ` ✓ CI.Build: " Patchwork
2024-10-07 16:09 ` ✓ CI.Hooks: " Patchwork
2024-10-07 16:11 ` ✗ CI.checksparse: warning " Patchwork
2024-10-07 16:43 ` ✗ CI.BAT: failure " Patchwork
2024-10-08 7:22 ` ✗ CI.FULL: " Patchwork
2024-10-17 7:55 ` [PATCH] drm/i915/psr: Implement WA to help reach PC10 Suraj Kandpal
2024-10-23 10:27 ` Hogander, Jouni
2024-11-04 9:01 ` Kandpal, Suraj
2024-10-17 8:03 ` ✓ CI.Patch_applied: success for drm/i915/psr: Implement WA to help reach PC10 (rev3) Patchwork
2024-10-17 8:03 ` ✓ CI.checkpatch: " Patchwork
2024-10-17 8:04 ` ✓ CI.KUnit: " Patchwork
2024-10-17 8:16 ` ✓ CI.Build: " Patchwork
2024-10-17 8:18 ` ✓ CI.Hooks: " Patchwork
2024-10-17 8:20 ` ✗ CI.checksparse: warning " Patchwork
2024-10-17 8:37 ` ✓ CI.BAT: success " Patchwork
2024-10-17 17:24 ` ✗ CI.FULL: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-11-04 9:12 [PATCH] drm/i915/psr: Implement WA to help reach PC10 Suraj Kandpal
2024-11-04 14:18 ` Jani Nikula
2024-11-06 8:18 ` Kandpal, Suraj
2024-11-06 9:00 Suraj Kandpal
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=87y12w743q.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
--cc=suraj.kandpal@intel.com \
--cc=uma.shankar@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;
as well as URLs for NNTP newsgroup(s).