diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-08-09 03:21:16 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-13 15:09:14 -0400 |
commit | 7ce03327a1e6353ecba2163cae2bf18038f279ad (patch) | |
tree | 5e97747bb9a2b43867e483215e1410e7847a2254 /drivers | |
parent | c989f3159302e966324f634c85ec54fd7ae4c599 (diff) |
Revert "gpu: nvgpu: allow all sizes in access fb API"
This reverts commit b79c350d68bac79ec9ed80ef5f19f15a0d0eedf4.
Underlying PRAMIN infrastructure enforces 4 byte aligned size only,
so the API should enforce that too
Bug 2285052
Change-Id: I2b4a209edd479d72992708b35e1d52940ff20637
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1795653
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c index e7bb6700..ff4fcdca 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | |||
@@ -1568,7 +1568,7 @@ static int nvgpu_dbg_gpu_ioctl_access_fb_memory(struct dbg_session_gk20a *dbg_s, | |||
1568 | u64 access_limit_size = SZ_4K; | 1568 | u64 access_limit_size = SZ_4K; |
1569 | int err = 0; | 1569 | int err = 0; |
1570 | 1570 | ||
1571 | if ((args->offset & 3) || (!args->size)) | 1571 | if ((args->offset & 3) || (!args->size) || (args->size & 3)) |
1572 | return -EINVAL; | 1572 | return -EINVAL; |
1573 | 1573 | ||
1574 | dmabuf = dma_buf_get(args->dmabuf_fd); | 1574 | dmabuf = dma_buf_get(args->dmabuf_fd); |