Skip to content

Commit

Permalink
drm/etnaviv: short-circuit perfmon ioctls
Browse files Browse the repository at this point in the history
The feature implementation isn't stable yet. Reject any attempt to use
the IOCTLs for now. This keeps most of the code in place, so we can stabilize
it in-tree, but keeps userspace from using the feature for now.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
  • Loading branch information
Lucas Stach committed Oct 22, 2017
1 parent 988c3b3 commit 330b52b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/etnaviv/etnaviv_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ static int etnaviv_ioctl_pm_query_dom(struct drm_device *dev, void *data,
struct drm_etnaviv_pm_domain *args = data;
struct etnaviv_gpu *gpu;

/* reject as long as the feature isn't stable */
return -EINVAL;

if (args->pipe >= ETNA_MAX_PIPES)
return -EINVAL;

Expand All @@ -476,6 +479,9 @@ static int etnaviv_ioctl_pm_query_sig(struct drm_device *dev, void *data,
struct drm_etnaviv_pm_signal *args = data;
struct etnaviv_gpu *gpu;

/* reject as long as the feature isn't stable */
return -EINVAL;

if (args->pipe >= ETNA_MAX_PIPES)
return -EINVAL;

Expand Down

0 comments on commit 330b52b

Please sign in to comment.