[Intel-gfx] [PATCH 1/2] drm: Add a new connector property for link status

Jani Nikula jani.nikula at linux.intel.com
Wed Oct 26 09:51:41 UTC 2016


On Wed, 26 Oct 2016, Chris Wilson <chris at 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?

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center


More information about the dri-devel mailing list