summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h
diff options
context:
space:
mode:
authorsujeet baranwal <sbaranwal@nvidia.com>2015-03-06 14:55:36 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:58:05 -0400
commit2155dfeaba1714bb00cb86af090aa056aec3acfd (patch)
tree545b791cbf1271750f8728e1e5ec30d107a4ef7b /drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h
parent895675e1d5790e2361b22edb50d702f7dd9a8edd (diff)
gpu: nvgpu: Gpu characterstics enhancement
New members are added in nvgpu_gpu_characterstics to export more information required specially from CUDA tools. Change-Id: I907f3bcbd272405a13f47ef6236bc2cff01c6c80 Signed-off-by: Sujeet Baranwal <sbaranwal@nvidia.com> Reviewed-on: http://git-master/r/679202 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h
index f3ca7498..35d9d347 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_top_gk20a.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2012-2015, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -138,4 +138,28 @@ static inline u32 top_device_info_entry_enum_v(void)
138{ 138{
139 return 0x00000002; 139 return 0x00000002;
140} 140}
141static inline u32 top_fs_status_fbp_r(void)
142{
143 return 0x00022548;
144}
145static inline u32 top_fs_status_fbp_cluster_v(u32 r)
146{
147 return (r >> 0) & 0xffff;
148}
149static inline u32 top_fs_status_fbp_cluster_enable_v(void)
150{
151 return 0x00000000;
152}
153static inline u32 top_fs_status_fbp_cluster_enable_f(void)
154{
155 return 0x0;
156}
157static inline u32 top_fs_status_fbp_cluster_disable_v(void)
158{
159 return 0x00000001;
160}
161static inline u32 top_fs_status_fbp_cluster_disable_f(void)
162{
163 return 0x1;
164}
141#endif 165#endif