OSDN Git Service

drm/msm: extend the submit ioctl to pass in flags
authorRob Clark <robdclark@gmail.com>
Sat, 23 Apr 2016 14:08:59 +0000 (10:08 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 15 Sep 2016 21:21:13 +0000 (17:21 -0400)
commitd9c181e22a0599fa7e27c3717f56bc1b3b020e63
treee95318f3dc683b374328a0523bde3f80b8d0084b
parent1d42a3fee6e83ae6e7c83808ccdf8620fc30447e
drm/msm: extend the submit ioctl to pass in flags

We'll want to be able to pass in flags, such as asking for explicit
fencing, and possibly other things down the road.  Fortunately we
don't need a full 32b for the pipe-id.  So use the upper 16 bits
for flags (which could be extended or reduced later if needed, so
start adding flags from the high bits).

Since anything with the upper bits set would not be a valid pipe-id,
an old userspace would not set any of the upper bits, and an old
kernel would reject it as an invalid pipe-id.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c
include/uapi/drm/msm_drm.h