From ae47fa042c2b7379079d54be13df001911954b9e Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Fri, 8 Jun 2018 16:25:49 -0700 Subject: gpu: nvgpu: populate vsm mapping based on nonpes_aware_tpc For gv1xx, kernel smid configuration programming is done based on nonpes aware tpc. For user space to be in sync with hw populate vsm mapping based on nonpes_aware_tpcs. Bug 200405202 Change-Id: Id89291ca64c2118915dc6f18f62e17f411d467b0 Signed-off-by: seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/1744304 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 49f2a34a..be8917c7 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -481,6 +481,7 @@ struct gpu_ops { struct channel_gk20a *c); int (*commit_global_ctx_buffers)(struct gk20a *g, struct channel_gk20a *c, bool patch); + u32 (*get_nonpes_aware_tpc)(struct gk20a *g, u32 gpc, u32 tpc); } gr; struct { void (*init_hw)(struct gk20a *g); -- cgit v1.2.2