From bd688d31ce7df4a2d9134a521fa4c4f5eba06c2d Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Wed, 16 Mar 2016 20:03:10 -0700 Subject: 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 Reviewed-on: http://git-master/r/1120451 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp10b/hw_proj_gp10b.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 @@ /* - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -70,6 +70,10 @@ static inline u32 proj_lts_stride_v(void) { return 0x00000200; } +static inline u32 proj_fbpa_stride_v(void) +{ + return 0x00004000; +} static inline u32 proj_ppc_in_gpc_base_v(void) { return 0x00003000; @@ -114,6 +118,10 @@ static inline u32 proj_scal_litter_num_fbps_v(void) { return 0x00000001; } +static inline u32 proj_scal_litter_num_fbpas_v(void) +{ + return 0x00000001; +} static inline u32 proj_scal_litter_num_gpcs_v(void) { return 0x00000001; -- cgit v1.2.2