From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Matt Atwood <matthew.s.atwood@intel.com>
Cc: intel-gfx@freedesktop.org, suraj.kandpal@intel.com
Subject: Re: [PATCH] drm/i915/xe3lpd: Prune modes for YUV420
Date: Wed, 5 Mar 2025 15:32:36 +0200 [thread overview]
Message-ID: <Z8hSdBQvBMMosSIR@intel.com> (raw)
In-Reply-To: <20250304200032.68292-1-matthew.s.atwood@intel.com>
On Tue, Mar 04, 2025 at 12:00:31PM -0800, Matt Atwood wrote:
> From: Suraj Kandpal <suraj.kandpal@intel.com>
>
> We only support resolution upto 4k for single pipe when using
> YUV420 format so we prune these modes and restrict the plane size
> at src.
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 205ec315b413..8bccc6e0b5b3 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1396,6 +1396,7 @@ intel_dp_mode_valid(struct drm_connector *_connector,
> struct intel_display *display = to_intel_display(_connector->dev);
> struct intel_connector *connector = to_intel_connector(_connector);
> struct intel_dp *intel_dp = intel_attached_dp(connector);
> + enum intel_output_format sink_format;
> const struct drm_display_mode *fixed_mode;
> int target_clock = mode->clock;
> int max_rate, mode_rate, max_lanes, max_link_clock;
> @@ -1429,6 +1430,13 @@ intel_dp_mode_valid(struct drm_connector *_connector,
> mode->hdisplay, target_clock);
> max_dotclk *= num_joined_pipes;
>
> + sink_format = intel_dp_sink_format(connector, mode);
> + if (num_joined_pipes == 1) {
> + if (sink_format == INTEL_OUTPUT_FORMAT_YCBCR420 &&
sink_format is irrelevant. output_format is what matters.
> + mode->hdisplay > 4096)
> + return MODE_NO_420;
> + }
Which hardware limit are you actully trying to handle here?
> +
> if (target_clock > max_dotclk)
> return MODE_CLOCK_HIGH;
>
> @@ -1444,10 +1452,9 @@ intel_dp_mode_valid(struct drm_connector *_connector,
> intel_dp_mode_min_output_bpp(connector, mode));
>
> if (intel_dp_has_dsc(connector)) {
> - enum intel_output_format sink_format, output_format;
> + enum intel_output_format output_format;
> int pipe_bpp;
>
> - sink_format = intel_dp_sink_format(connector, mode);
> output_format = intel_dp_output_format(connector, sink_format);
> /*
> * TBD pass the connector BPC,
> --
> 2.45.0
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2025-03-05 13:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 20:00 [PATCH] drm/i915/xe3lpd: Prune modes for YUV420 Matt Atwood
2025-03-04 22:08 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2025-03-04 22:26 ` ✗ i915.CI.BAT: failure " Patchwork
2025-03-05 13:32 ` Ville Syrjälä [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-06-09 16:45 [PATCH] " Suraj Kandpal
2025-06-09 17:20 ` Cavitt, Jonathan
2025-06-09 17:59 ` Ville Syrjälä
2025-06-11 1:10 ` Kandpal, Suraj
2025-06-17 4:43 Suraj Kandpal
2025-06-17 9:00 ` Jani Nikula
2025-06-17 9:32 ` Kandpal, Suraj
2025-06-20 6:46 ` Kandpal, Suraj
2025-06-20 9:25 Suraj Kandpal
2025-07-07 4:30 ` Nautiyal, Ankit K
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=Z8hSdBQvBMMosSIR@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@freedesktop.org \
--cc=matthew.s.atwood@intel.com \
--cc=suraj.kandpal@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.