mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: remove max_ctxsw_ring_buffer_size from nvgpu_gr
max_ctxsw_ring_buffer_size variable in struct nvgpu_gr is used to store max ring buffer size which is then referred into linux specific code We only use macro GK20A_CTXSW_TRACE_MAX_VM_RING_SIZE to initialize the variable. And max_ctxsw_ring_buffer_size does not belong to nvgpu_gr struct anyways Considering above remove max_ctxsw_ring_buffer_size from nvgpu_gr and use macro directly in linux specific code Jira NVGPU-3125 Change-Id: Ibed9901d2bde35633d9ad0df8bd08b414e075bf4 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2105653 GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c474f7c288
commit
0271ffd77b
@@ -35,8 +35,6 @@
|
||||
#include "os_linux.h"
|
||||
#include "fecs_trace_linux.h"
|
||||
|
||||
#define GK20A_CTXSW_TRACE_MAX_VM_RING_SIZE (128*PAGE_SIZE)
|
||||
|
||||
/* Userland-facing FIFO (one global + eventually one per VM) */
|
||||
struct gk20a_ctxsw_dev {
|
||||
struct gk20a *g;
|
||||
@@ -602,8 +600,6 @@ int gk20a_ctxsw_trace_init(struct gk20a *g)
|
||||
if (unlikely(err))
|
||||
goto fail;
|
||||
|
||||
g->gr->max_ctxsw_ring_buffer_size = GK20A_CTXSW_TRACE_MAX_VM_RING_SIZE;
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
||||
Reference in New Issue
Block a user