All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	Manasi Navare <manasi.d.navare@intel.com>,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [Intel-gfx] [PATCH 1/2] drm: Add a new connector property for link status
Date: Wed, 26 Oct 2016 14:29:49 +0100	[thread overview]
Message-ID: <20161026132949.GQ10167@nuc-i3427.alporthouse.com> (raw)
In-Reply-To: <20161026131539.GE4617@intel.com>

On Wed, Oct 26, 2016 at 04:15:39PM +0300, Ville Syrjälä wrote:
> On Wed, Oct 26, 2016 at 02:11:00PM +0100, Chris Wilson wrote:
> > On Wed, Oct 26, 2016 at 02:17:16PM +0300, Ville Syrjälä wrote:
> > > On Wed, Oct 26, 2016 at 12:51:41PM +0300, Jani Nikula wrote:
> > > > On Wed, 26 Oct 2016, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > > > > On Wed, Oct 26, 2016 at 07:52:26AM +0200, Daniel Vetter wrote:
> > > > >> I'd go further and just always create this as one of the standard
> > > > >> properties (and always attach it to the connector, like edid), and only
> > > > >> expose helpers to set the link status to good or bad.
> > > > >
> > > > > One of the sketches for this idea was that this could serve as the
> > > > > failure notification path for nonblocking modesets (well modesets in
> > > > > general since it appears returning the error is not going to happen).
> > > > 
> > > > In nonblocking modesets, when should we change the status from bad to
> > > > good? If the setcrtc returns and userspace looks at link status and sees
> > > > it's still bad (because the kernel hasn't gotten around to enabling the
> > > > link yet, or whatever), userspace might think it would have to try
> > > > again. Do we set it to good immediately on setcrtc ioctl, or add a
> > > > "pending" status? Or something better?
> > > 
> > > I was thinking it'd start out as "good" and only change to something
> > > else when things actually go south.
> > > 
> > > Not sure if we should also want "off" as one of the values, for when
> > > it's really off at the request of the user.
> > 
> > That's something the user knows. At least, if the ddx has output->crtc
> > set and sees that link-status=off the response is to say "that can't be
> > me!" and reapply the desired mode, i.e. same response as if the
> > link-status was bad. Maybe useful for someone else to differentiate?
> 
> Dunno really. If we don't add it we have to define what the link status
> will indicate when the thing is really off though. With "good" and "bad"
> the only options I guess "good" would be the right answer?

Fair point.

bad = -1, (any specific error can then be -value)
ok = 0,
suspend,
standy,
off, [looking suspiciously like dpms modes :]
?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2016-10-26 13:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26  1:16 [PATCH 1/2] drm: Add a new connector property for link status Manasi Navare
2016-10-26  1:16 ` [PATCH 2/2] drm/i915: Set link status property for DP connector Manasi Navare
2016-10-26  1:19 ` [PATCH 1/2] drm: Add a new connector property for link status Manasi Navare
2016-10-26  9:27   ` Chris Wilson
2016-10-26  1:58 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] " Patchwork
2016-10-26  5:52 ` [Intel-gfx] [PATCH 1/2] " Daniel Vetter
2016-10-26  9:42   ` Chris Wilson
2016-10-26  9:51     ` Jani Nikula
2016-10-26 11:17       ` [Intel-gfx] " Ville Syrjälä
2016-10-26 13:11         ` Chris Wilson
2016-10-26 13:15           ` Ville Syrjälä
2016-10-26 13:29             ` Chris Wilson [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=20161026132949.GQ10167@nuc-i3427.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=manasi.d.navare@intel.com \
    --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 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.