diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2016-03-16 23:03:10 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | bd688d31ce7df4a2d9134a521fa4c4f5eba06c2d (patch) | |
tree | a163574c4b2de223a80ee65840a49f4a9b909205 /drivers/gpu/nvgpu | |
parent | 7ed45599dc18c4c1b82792b8f451329fbc72f712 (diff) |
gpu: nvgpu: Add fbpa number and stride
Add fbpa number and stride, used in hwpm context switch code
Bug 1648200
Change-Id: I44570c072b1266d7ec2fc5dfb7fa73000ac01831
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1120451
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_proj_gp10b.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_proj_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_proj_gp10b.h index a315ae2d..dedc5a3f 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_proj_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_proj_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2016, 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, |
@@ -70,6 +70,10 @@ static inline u32 proj_lts_stride_v(void) | |||
70 | { | 70 | { |
71 | return 0x00000200; | 71 | return 0x00000200; |
72 | } | 72 | } |
73 | static inline u32 proj_fbpa_stride_v(void) | ||
74 | { | ||
75 | return 0x00004000; | ||
76 | } | ||
73 | static inline u32 proj_ppc_in_gpc_base_v(void) | 77 | static inline u32 proj_ppc_in_gpc_base_v(void) |
74 | { | 78 | { |
75 | return 0x00003000; | 79 | return 0x00003000; |
@@ -114,6 +118,10 @@ static inline u32 proj_scal_litter_num_fbps_v(void) | |||
114 | { | 118 | { |
115 | return 0x00000001; | 119 | return 0x00000001; |
116 | } | 120 | } |
121 | static inline u32 proj_scal_litter_num_fbpas_v(void) | ||
122 | { | ||
123 | return 0x00000001; | ||
124 | } | ||
117 | static inline u32 proj_scal_litter_num_gpcs_v(void) | 125 | static inline u32 proj_scal_litter_num_gpcs_v(void) |
118 | { | 126 | { |
119 | return 0x00000001; | 127 | return 0x00000001; |