From: Imre Deak <imre.deak@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/display: Exploratory patch for fi-icl-dsi
Date: Tue, 2 Jul 2019 17:01:44 +0300 [thread overview]
Message-ID: <20190702140144.GC1386@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20190702123326.11454-1-chris@chris-wilson.co.uk>
On Tue, Jul 02, 2019 at 01:33:26PM +0100, Chris Wilson wrote:
> icl-dsi is dying on suspend/resume at
>
> RIP: 0010:icl_update_active_dpll+0x2c/0xa0 [i915]
>
> so take a guess that it is the primary_port is NULL.
Yes, DSI ports are not intel_digital_ports but use the shared DPLL code.
Not sure why this wasn't caught already earlier.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 13 ++++---------
> 1 file changed, 4 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> index 76a2c879efc2..f953971e7c3b 100644
> --- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> +++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> @@ -2883,21 +2883,16 @@ static void icl_update_active_dpll(struct intel_atomic_state *state,
> struct intel_crtc_state *crtc_state =
> intel_atomic_get_new_crtc_state(state, crtc);
> struct intel_digital_port *primary_port;
> - enum icl_port_dpll_id port_dpll_id;
> + enum icl_port_dpll_id port_dpll_id = ICL_PORT_DPLL_DEFAULT;
>
> primary_port = encoder->type == INTEL_OUTPUT_DP_MST ?
> enc_to_mst(&encoder->base)->primary :
> enc_to_dig_port(&encoder->base);
>
> - switch (primary_port->tc_mode) {
> - case TC_PORT_TBT_ALT:
> - port_dpll_id = ICL_PORT_DPLL_DEFAULT;
> - break;
> - case TC_PORT_DP_ALT:
> - case TC_PORT_LEGACY:
> + if (primary_port &&
> + (primary_port->tc_mode == TC_PORT_DP_ALT ||
> + primary_port->tc_mode == TC_PORT_LEGACY))
> port_dpll_id = ICL_PORT_DPLL_MG_PHY;
> - break;
> - }
>
> icl_set_active_port_dpll(crtc_state, port_dpll_id);
> }
> --
> 2.20.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-07-02 14:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 12:33 [PATCH] drm/i915/display: Exploratory patch for fi-icl-dsi Chris Wilson
2019-07-02 14:01 ` Imre Deak [this message]
2019-07-02 14:09 ` [PATCH] drm/i915/display: Handle lost primary_port across suspend Chris Wilson
2019-07-02 18:05 ` ✗ Fi.CI.BAT: failure for drm/i915/display: Exploratory patch for fi-icl-dsi (rev2) Patchwork
2019-07-03 9:39 ` ✗ Fi.CI.BAT: failure for drm/i915/display: Exploratory patch for fi-icl-dsi (rev3) 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=20190702140144.GC1386@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/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