diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-10-29 23:14:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-01 12:36:22 -0400 |
commit | b8bfcd4358275be4a11405641defee46d4b33b6b (patch) | |
tree | 528497c2a78c67224a1f526d184ae52dd5b0b3fa /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 68dbfedd4f837d1bf2bab128500140f5d8cfadac (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index dca27887..550e8a0c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1060,6 +1060,15 @@ struct nvgpu_bios { | |||
1060 | u32 expansion_rom_offset; | 1060 | u32 expansion_rom_offset; |
1061 | }; | 1061 | }; |
1062 | 1062 | ||
1063 | struct nvgpu_gpu_params { | ||
1064 | /* GPU architecture ID */ | ||
1065 | u32 gpu_arch; | ||
1066 | /* GPU implementation ID */ | ||
1067 | u32 gpu_impl; | ||
1068 | /* GPU revision ID */ | ||
1069 | u32 gpu_rev; | ||
1070 | }; | ||
1071 | |||
1063 | struct gk20a { | 1072 | struct gk20a { |
1064 | struct nvgpu_nvhost_dev *nvhost_dev; | 1073 | struct nvgpu_nvhost_dev *nvhost_dev; |
1065 | 1074 | ||
@@ -1081,6 +1090,8 @@ struct gk20a { | |||
1081 | u32 log_mask; | 1090 | u32 log_mask; |
1082 | u32 log_trace; | 1091 | u32 log_trace; |
1083 | 1092 | ||
1093 | struct nvgpu_gpu_params params; | ||
1094 | |||
1084 | /* | 1095 | /* |
1085 | * Guards access to hardware when usual gk20a_{busy,idle} are skipped | 1096 | * Guards access to hardware when usual gk20a_{busy,idle} are skipped |
1086 | * for submits and held for channel lifetime but dropped for an ongoing | 1097 | * for submits and held for channel lifetime but dropped for an ongoing |