intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Readout conn_state->max_bpc
Date: Tue, 16 Feb 2021 17:25:27 +0000	[thread overview]
Message-ID: <161349632758.8311.6775260061918956330@build.alporthouse.com> (raw)
In-Reply-To: <20210216160035.4780-1-ville.syrjala@linux.intel.com>

Quoting Ville Syrjala (2021-02-16 16:00:35)
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Populate conn_state->max_bpc with something sensible from the start.
> Otherwise it's possible that we get to compute_sink_pipe_bpp() with
> max_bpc==0.
> 
> The specific scenario goes as follows:
> 1. Initial connector state allocated with max_bpc==0
> 2. Trigger a modeset on the crtc feeding the connector, without
>    actually adding the connector to the commit
> 3. drm_atomic_connector_check() is skipped because the
>    connector has not yet been added, hence conn_state->max_bpc
>    retains its current value
> 4. drm_atomic_helper_check_modeset() ->
>    drm_atomic_add_affected_connectors() -> the connector
>    is now part of the commit
> 5. compute_baseline_pipe_bpp() -> MISSING_CASE(max_bpc==0)
> 
> Note that pipe_bpp itself may not be populated on pre-g4x machines,
> in which case we just fall back to max_bpc==8 and let .compute_config()
> limit the resulting pipe_bpp further if necessary.
> 
> Cc: Daniel Vetter <daniel@ffwll.ch>
> Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2021-02-16 17:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 16:00 [Intel-gfx] [PATCH] drm/i915: Readout conn_state->max_bpc Ville Syrjala
2021-02-16 17:25 ` Chris Wilson [this message]
2021-02-16 17:41 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-16 19:52 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-03-02 19:02 ` [Intel-gfx] [PATCH] " Souza, Jose

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=161349632758.8311.6775260061918956330@build.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --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 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).