diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-07-24 03:53:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-26 14:34:45 -0400 |
commit | b79c350d68bac79ec9ed80ef5f19f15a0d0eedf4 (patch) | |
tree | d0755f7bc96e0d2bb9857d051ade1da4bddd0054 | |
parent | b4b1fb97bd095fa0de72550b04dc414b0194903e (diff) |
gpu: nvgpu: allow all sizes in access fb API
For IOCTL NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY, we do not allow size of buffer
which is not 4 byte aligned
Remove this hard restriction and allow non 4 byte aligned buffer sizes too
since we don't really need to enforce this restriction
Bug 2265535
Change-Id: Ic4d60604be3698e8629f2b289c9e2d19e20ea525
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1784511
Reviewed-by: Kajetan Dutka <kdutka@nvidia.com>
Tested-by: Kajetan Dutka <kdutka@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-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 d530492a..1989a5cb 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | |||
@@ -1561,7 +1561,7 @@ static int nvgpu_dbg_gpu_ioctl_access_fb_memory(struct dbg_session_gk20a *dbg_s, | |||
1561 | u64 access_limit_size = SZ_4K; | 1561 | u64 access_limit_size = SZ_4K; |
1562 | int err = 0; | 1562 | int err = 0; |
1563 | 1563 | ||
1564 | if ((args->offset & 3) || (!args->size) || (args->size & 3)) | 1564 | if ((args->offset & 3) || (!args->size)) |
1565 | return -EINVAL; | 1565 | return -EINVAL; |
1566 | 1566 | ||
1567 | dmabuf = dma_buf_get(args->dmabuf_fd); | 1567 | dmabuf = dma_buf_get(args->dmabuf_fd); |