From f8578c92741425ec4630bc9fe52d8537fa8a5c16 Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Tue, 10 Apr 2018 12:44:25 +0530 Subject: gpu: nvgpu: remove usage of nvgpu_gpfifo Remove the usage of nvgpu_gpfifo splattered across nvgpu, and replace with a struct defined in common code. The usage is still inside Linux, but this helps the subsequent unification efforts, e.g. to unify the submit path. VQRM-3465 Change-Id: I9e5ac697a0c7f85239ddba319085c09481d20d6b Signed-off-by: Sourab Gupta Reviewed-on: https://git-master.nvidia.com/r/1691978 Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 ab1c4a6f..2008c471 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -59,6 +59,19 @@ struct nvgpu_channel_fence { u32 value; }; +/* + * The binary format of 'struct nvgpu_gpfifo_entry' introduced here + * should match that of 'struct nvgpu_gpfifo' defined in uapi header, since + * this struct is intended to be a mirror copy of the uapi struct. This is + * a rigid requirement because there's no conversion function and there are + * memcpy's present between the user gpfifo (of type nvgpu_gpfifo) and the + * kern gpfifo (of type nvgpu_gpfifo_entry). + */ +struct nvgpu_gpfifo_entry { + u32 entry0; + u32 entry1; +}; + struct nvgpu_gpfifo_args { u32 num_entries; u32 num_inflight_jobs; -- cgit v1.2.2