From 268c298f45cb1bc0beb0b51a3583c803010b2aff Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Mon, 27 Aug 2018 16:28:25 +0300 Subject: gpu: nvgpu: use own usermode gpfifo object Add usermode_gpfifo member to channel to store the usermode-owned buffer data. This makes it more explicit about which (user or kernel) memory is accessed. Jira NVGPU-967 Change-Id: I98e4f4568f04aa31e00e497794fadd4997ba8aab Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1807503 Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Sourab Gupta Reviewed-by: Deepak Nibade Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index a6e0d31a..f7515294 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -228,6 +228,7 @@ struct channel_gk20a { struct gpfifo_desc gpfifo; struct nvgpu_mem usermode_userd; /* Used for Usermode Submission */ + struct nvgpu_mem usermode_gpfifo; struct nvgpu_mem inst_block; u64 userd_iova; -- cgit v1.2.2