Re: [RFC] [GPU][DRM][PROPERTY] -Added a new ioctl in Linux DRM KMS driver.
From: Daniel Stone
Date: Fri Jan 20 2017 - 09:57:41 EST
Hi Satendra,
On 20 January 2017 at 08:12, Satendra Singh Thakur
<satendra.t@xxxxxxxxxxx> wrote:
> -Added a new ioctl in Linux DRM KMS driver.
> This ioctl allows user to set the values of an objectâs multiple
> properties in one go.
> -In the absence of such ioctl, User would be calling one ioctl to set each
> property value;
> Thus, user needs to call N ioctls to set values of N properties of an
> object, which is a time consuming and costly because each ioctl involves
> a system call entering/exiting kernel (context switch).
> -This ioctl will set N properties (provided that HW allows it)
> in a single context switch
> -This ioctl can be used to set multiple properties of ether a plane
> or a crtc or a connector (i.e. single object )
> -This ioctl can't be used to set one property of a plane and
> one property of crtc in one go.
The atomic API already exists to set multiple properties at once, and
has the advantage of being, well, atomic. The API you propose
duplicates atomic, but it also has the possibility of only
half-succeeding, leaving the device in a strange halfway state which
is not what the user intended.
Cheers,
Daniel