public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Jim Bride <jim.bride@linux.intel.com>,
	"Srivatsa, Anusha" <anusha.srivatsa@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915/dp/mst: Validate modes against the available link bandwidth
Date: Mon, 26 Sep 2016 18:00:07 +0300	[thread overview]
Message-ID: <87intik8p4.fsf@intel.com> (raw)
In-Reply-To: <20160906185703.GA6875@shiv>

On Tue, 06 Sep 2016, Jim Bride <jim.bride@linux.intel.com> wrote:
> Ville wrote:
>> On Thu, Aug 18, 2016 at 05:11:31PM -0700, Anusha Srivatsa wrote:
>> > Change intel_dp_mst_mode_valid() to use available link bandwidth 
>> > rather than the link's maximum supported bandwidth to evaluate whether 
>> > modes are legal for the current configuration. This takes into account 
>> > the fact that link bandwidth may already be dedicated to other virtual 
>> > channels.
>> 
>> We can't do this. Results of mode_valid() aren't supposed to change
>> like this depending on what else is happening in the system. The only
>> thing mode_valid() tells us is whether it's possible to use the mode
>> under *some* circumstances. Only if the mode can't be used under
>> *any* circumstances should it be filtered out.
>> 
>> If we wanted to change this, we'd at the very least have to
>> synthesize hotplug uevents whenever the conditions changed. But doing
>> that would be a fairly big behavioural change, so I'm not sure how
>> people feel about it. It also doesn't really solve the problem since
>> eg. atomic can go directly from 0->n active pipes, so there's no way
>> to know upfront which modes we can pick for each pipe.
>> 
>
> I won't dispute that this won't help for all cases, but it does make hotplugs,
> at a minimum, more sane.  For that reason alone, I'd like to see this patch
> land.  Longer term I think we should look at how we can make user space
> and atomic better handle MST (IMHO in multi-modeset operations on MST atomic
> should ensure that the aggregate dotclock of the modes being set are less
> than the link bandwidth that's configured.)  I think that user space also
> needs to be more MST aware and update what's available based on the current
> configuration at any given time.  I'm not sure what the precise solution
> should look like here, but I'd think that what we want is for user space
> to fetch the list of available resolutions based on the current configuration
> any time we plug or unplug a device on a DP MST topology.  In an ideal world
> it would be nice to have some sort of information about the total link
> bandwidth, and how much bandwidth each mode is taking up so that the user
> could have a guide to tweaking their setup in such a way to maximize how
> they choose to configure their monitors based on the available link
> bandwidth.

We already have several restrictions outside of DP MST that impact what
configurations can be enabled at the same time. Things like available
PLLs, FDI bandwidth, etc. We can't prune the mode list on a first come,
first served basis. We can only look at the modes the userspace requests
at any given time, and tell the userspace whether we can deliver that or
not.

Imagine someone plugging in their 4k display, only to discover 1024x768
mode is there because all the bandwidth is reserved. With this patch,
they'd have to disable/unplug the first display, and then unplug/replug
the 4k display to see all the modes they have available.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      parent reply	other threads:[~2016-09-26 15:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-19  0:11 [PATCH] drm/i915/dp/mst: Validate modes against the available link bandwidth Anusha Srivatsa
2016-08-19  6:28 ` ✗ Ro.CI.BAT: failure for " Patchwork
2016-08-22 21:34   ` Srivatsa, Anusha
2016-08-29 16:07 ` [PATCH] " Jim Bride
     [not found] ` <20160905113851.GI4329@intel.com>
2016-09-06 18:39   ` Srivatsa, Anusha
2016-09-06 18:57     ` Jim Bride
2016-09-20 18:39       ` Srivatsa, Anusha
2016-09-26 15:00       ` Jani Nikula [this message]

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=87intik8p4.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=anusha.srivatsa@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jim.bride@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