From 39cc741a02067e00f0003649dcd45285eb4640a5 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Sun, 29 Oct 2017 20:17:50 -0700 Subject: gpu: nvgpu: Add GPU arch and impl to common structure Add GPU architecture and implementation to a new struct nvgpu_gpu_params which is defined in common header file gk20a/gk20.h. JIRA NVGPU-259 Change-Id: Idde2caded75fcb1e03e95be11f6aa2ec33a0962b Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1588033 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c b/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c index 9f13abce..8b50125e 100644 --- a/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c +++ b/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c @@ -27,7 +27,7 @@ int gr_gv100_get_netlist_name(struct gk20a *g, int index, char *name) { - u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; + u32 ver = g->params.gpu_arch + g->params.gpu_impl; switch (ver) { case NVGPU_GPUID_GV100: -- cgit v1.2.2