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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1588032
GVS: Gerrit_Virtual_Submit
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-10-29 20:14:12 -07:00
committed by mobile promotions
parent 68dbfedd4f
commit b8bfcd4358
9 changed files with 36 additions and 21 deletions

View File

@@ -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);