From b8bfcd4358275be4a11405641defee46d4b33b6b Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Sun, 29 Oct 2017 20:14:12 -0700 Subject: gpu: nvgpu: Add GPU arch and impl to common structure Add GPU architecture and implentation to a new struct nvgpu_gpu_params which is defined in common header file gk20a/gk20.h. JIRA NVGPU-259 Change-Id: I9113d188037c9ad7bfc2200e0e41b39cac576985 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1588032 GVS: Gerrit_Virtual_Submit Reviewed-by: svc-mobile-coverity Reviewed-by: Konsta Holtta Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 1e5a9d59..1442c19a 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c @@ -202,6 +202,9 @@ gk20a_ctrl_ioctl_gpu_characteristics( #ifdef CONFIG_TEGRA_19x_GPU pgpu->flags |= nvgpu_ctrl_ioctl_gpu_characteristics_flags_t19x(g); #endif + pgpu->arch = g->params.gpu_arch; + pgpu->impl = g->params.gpu_impl; + pgpu->rev = g->params.gpu_rev; if (request->gpu_characteristics_buf_size > 0) { size_t write_size = sizeof(*pgpu); -- cgit v1.2.2