From f4b2a02b68d79d30a1292f9b3551d08c71fb899f Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 6 Nov 2015 08:33:15 -0800 Subject: gpu: nvgpu: gp10b: Add L2 clean comptags regs Bug 1698618 Change-Id: I5bad939d94171d2296897260043f0e67e43802e7 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/829097 (cherry picked from commit a067cfeb8dda03641ba981d86bef93fa9041e18e) Reviewed-on: http://git-master/r/829414 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu Tested-by: Seshendra Gadagottu GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h | 42 +++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp10b') diff --git a/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h index b8e236b8..f442991e 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_flush_gp10b.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2015, 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, @@ -114,6 +114,46 @@ static inline u32 flush_l2_flush_dirty_outstanding_true_v(void) { return 0x00000001; } +static inline u32 flush_clean_comptags_r(void) +{ + return 0x0007000c; +} +static inline u32 flush_clean_comptags_pending_v(u32 r) +{ + return (r >> 0) & 0x1; +} +static inline u32 flush_clean_comptags_pending_empty_v(void) +{ + return 0x00000000; +} +static inline u32 flush_clean_comptags_pending_empty_f(void) +{ + return 0x0; +} +static inline u32 flush_clean_comptags_pending_busy_v(void) +{ + return 0x00000001; +} +static inline u32 flush_clean_comptags_pending_busy_f(void) +{ + return 0x1; +} +static inline u32 flush_clean_comptags_outstanding_v(u32 r) +{ + return (r >> 1) & 0x1; +} +static inline u32 flush_clean_comptags_outstanding_false_v(void) +{ + return 0x00000000; +} +static inline u32 flush_clean_comptags_outstanding_false_f(void) +{ + return 0x0; +} +static inline u32 flush_clean_comptags_outstanding_true_v(void) +{ + return 0x00000001; +} static inline u32 flush_fb_flush_r(void) { return 0x00070000; -- cgit v1.2.2