Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1563698

Re: [RFC] [GPU][DRM][PROPERTY] -Added a new ioctl in Linux DRM KMS driver.

From Daniel Stone <daniel@fooishbar.org>
Newsgroups linux.kernel
Subject Re: [RFC] [GPU][DRM][PROPERTY] -Added a new ioctl in Linux DRM KMS driver.
Date 2017-01-20 16:00 +0100
Message-ID <t1IPx-5I-29@gated-at.bofh.it> (permalink)
References <t1CAp-4Pq-7@gated-at.bofh.it> <t1CAp-4Pq-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Satendra,

On 20 January 2017 at 08:12, Satendra Singh Thakur
<satendra.t@samsung.com> 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC] [GPU][DRM][PROPERTY] -Added a new ioctl in Linux DRM KMS driver. Satendra Singh Thakur <satendra.t@samsung.com> - 2017-01-20 09:20 +0100
  Re: [RFC] [GPU][DRM][PROPERTY] -Added a new ioctl in Linux DRM KMS driver. Daniel Stone <daniel@fooishbar.org> - 2017-01-20 16:00 +0100

csiph-web