diff options
author | Rob Clark | 2019-04-16 01:55:45 +0200 |
---|---|---|
committer | Rob Clark | 2019-04-19 20:49:42 +0200 |
commit | d674c963af7470b6394b4b7f98cf2716b3a757d7 (patch) | |
tree | 5c0a4c4b01f594a92c08db80efa1bf7c63cbb4ef /drivers/gpu/drm/msm/adreno | |
parent | drm/msm: a5xx: fix possible object reference leak (diff) | |
download | kernel-qcow2-linux-d674c963af7470b6394b4b7f98cf2716b3a757d7.tar.gz kernel-qcow2-linux-d674c963af7470b6394b4b7f98cf2716b3a757d7.tar.xz kernel-qcow2-linux-d674c963af7470b6394b4b7f98cf2716b3a757d7.zip |
drm/msm/gpu: add per-process pagetables param
For now it always returns '0' (false), but once the iommu work is in
place to enable per-process pagetables we can update the value returned.
Userspace needs to know this to make an informed decision about exposing
KHR_robustness.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c index 27898475cdf4..7727917806ce 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -63,6 +63,9 @@ int adreno_get_param(struct msm_gpu *gpu, uint32_t param, uint64_t *value) case MSM_PARAM_NR_RINGS: *value = gpu->nr_rings; return 0; + case MSM_PARAM_PP_PGTABLE: + *value = 0; + return 0; default: DBG("%s: invalid param: %u", gpu->name, param); return -EINVAL; |