From: Jani Nikula <jani.nikula@intel.com>
To: Vinod Govindapillai <vinod.govindapillai@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v2 4/4] drm/915/display: configure SDP split for DP-MST
Date: Tue, 15 Aug 2023 20:34:27 +0300 [thread overview]
Message-ID: <87leecb464.fsf@intel.com> (raw)
In-Reply-To: <20230815142921.404127-5-vinod.govindapillai@intel.com>
On Tue, 15 Aug 2023, Vinod Govindapillai <vinod.govindapillai@intel.com> wrote:
> Extend the SDP split audio config for DP-MST
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
> drivers/gpu/drm/i915/display/intel_dp.h | 4 ++++
> drivers/gpu/drm/i915/display/intel_dp_mst.c | 7 +++----
> 3 files changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 0eb072a78d44..269828e22437 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2233,7 +2233,7 @@ intel_dp_compute_output_format(struct intel_encoder *encoder,
> return ret;
> }
>
> -static void
> +void
> intel_dp_audio_compute_config(struct intel_encoder *encoder,
> struct intel_crtc_state *pipe_config,
> struct drm_connector_state *conn_state,
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
> index e7b515b685ac..b8516a34cfaf 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.h
> +++ b/drivers/gpu/drm/i915/display/intel_dp.h
> @@ -65,6 +65,10 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
> struct link_config_limits *limits,
> int timeslots,
> bool recompute_pipe_bpp);
> +void intel_dp_audio_compute_config(struct intel_encoder *encoder,
> + struct intel_crtc_state *pipe_config,
> + struct drm_connector_state *conn_state,
> + struct intel_dp *intel_dp);
> bool intel_dp_has_hdmi_sink(struct intel_dp *intel_dp);
> bool intel_dp_is_edp(struct intel_dp *intel_dp);
> bool intel_dp_is_uhbr(const struct intel_crtc_state *crtc_state);
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index 8881cfd41ee7..05228c006a1b 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -309,10 +309,6 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder,
> pipe_config->output_format = INTEL_OUTPUT_FORMAT_RGB;
> pipe_config->has_pch_encoder = false;
>
> - pipe_config->has_audio =
> - intel_dp_has_audio(encoder, conn_state, intel_dp) &&
> - intel_audio_compute_config(encoder, pipe_config, conn_state);
Yeah, so there shouldn't be an intemediate step where you call
intel_dp_has_audio() directly from mst code. You just switch from the
current code to calling intel_dp_audio_compute_config().
BR,
Jani.
> -
> /*
> * for MST we always configure max link bw - the spec doesn't
> * seem to suggest we should do otherwise.
> @@ -375,6 +371,7 @@ static int intel_dp_mst_compute_config(struct intel_encoder *encoder,
> pipe_config->lane_lat_optim_mask =
> bxt_ddi_phy_calc_lane_lat_optim_mask(pipe_config->lane_count);
>
> + intel_dp_audio_compute_config(encoder, pipe_config, conn_state, intel_dp);
> intel_ddi_compute_min_voltage_level(dev_priv, pipe_config);
>
> return 0;
> @@ -779,6 +776,8 @@ static void intel_mst_enable_dp(struct intel_atomic_state *state,
> intel_de_rmw(dev_priv, CHICKEN_TRANS(trans), 0,
> FECSTALL_DIS_DPTSTREAM_DPTTG);
>
> + intel_audio_sdp_split_update(pipe_config);
> +
> intel_enable_transcoder(pipe_config);
>
> intel_crtc_vblank_on(pipe_config);
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-08-15 17:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 14:29 [Intel-gfx] [PATCH v2 0/4] SDP split for DP-MST Vinod Govindapillai
2023-08-15 14:29 ` [Intel-gfx] [PATCH v2 1/4] drm/i915/display: remove redundant parameter from sdp split update Vinod Govindapillai
2023-08-15 17:20 ` Jani Nikula
2023-08-15 14:29 ` [Intel-gfx] [PATCH v2 2/4] drm/i915/display: combine has_audio check for DP and DP-MST Vinod Govindapillai
2023-08-15 17:29 ` Jani Nikula
2023-08-15 14:29 ` [Intel-gfx] [PATCH v2 3/4] drm/i915/display: combine DP audio compute config steps Vinod Govindapillai
2023-08-15 17:32 ` Jani Nikula
2023-08-15 14:29 ` [Intel-gfx] [PATCH v2 4/4] drm/915/display: configure SDP split for DP-MST Vinod Govindapillai
2023-08-15 17:34 ` Jani Nikula [this message]
2023-08-15 15:18 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-08-15 15:18 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-08-15 15:36 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-15 16:52 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=87leecb464.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=vinod.govindapillai@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