summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h11
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
1063struct 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
1063struct gk20a { 1072struct 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