[PATCH] drm: Fix locking for sysfs dpms file

2015-09-29 Thread Jani Nikula
On Tue, 29 Sep 2015, Daniel Vetter wrote: > With atomic drivers we need to make sure that (at least in general) > property reads hold the right locks. But the legacy dpms property is > special and can be read locklessly. Since userspace loves to just > randomly look at that all the time (like with

[PATCH] drm: Fix locking for sysfs dpms file

2015-09-29 Thread Daniel Vetter
With atomic drivers we need to make sure that (at least in general) property reads hold the right locks. But the legacy dpms property is special and can be read locklessly. Since userspace loves to just randomly look at that all the time (like with "status") do that. To make it clear that we play

[PATCH] drm: Fix locking for sysfs dpms file

2015-09-29 Thread Daniel Vetter
With atomic drivers we need to make sure that (at least in general) property reads hold the right locks. But the legacy dpms property is special and can be read locklessly. Since userspace loves to just randomly look at that all the time (like with "status") do that. To make it clear that we play

[PATCH] drm: Fix locking for sysfs dpms file

2015-09-29 Thread Jens Axboe
On 09/29/2015 01:56 AM, Daniel Vetter wrote: > With atomic drivers we need to make sure that (at least in general) > property reads hold the right locks. But the legacy dpms property is > special and can be read locklessly. Since userspace loves to just > randomly look at that all the time (like wi