From 3d313d06570dcb28bba73247a2c0fc52bec56af0 Mon Sep 17 00:00:00 2001 From: Mayank Kaushik Date: Wed, 17 Sep 2014 18:11:45 -0700 Subject: gpu: nvgpu: gm20b: halify tpc lookup Since the number of TPCs is different between GM20B and GK20a, the function to look up the number of TPCs needs to be halified. Change-Id: I19dab9a7105814f86c08c92283a0bb70abb6aa00 Signed-off-by: Mayank Kaushik Reviewed-on: http://git-master/r/500064 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 28d43081..309a1b08 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -135,6 +135,8 @@ struct gpu_ops { u32 mode); int (*get_zcull_info)(struct gk20a *g, struct gr_gk20a *gr, struct gr_zcull_info *zcull_params); + bool (*is_tpc_addr)(u32 addr); + u32 (*get_tpc_num)(u32 addr); } gr; const char *name; struct { -- cgit v1.2.2