From ccead861f2b0b679b3b38faf35e2372b74bbb334 Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Mon, 28 Jul 2014 15:58:13 +0300 Subject: gpu: nvgpu: gm20b: Store LTC configuration Change-Id: Ia780e6a7cb3579f0d6ed2dca9949a349799535fd Signed-off-by: Arto Merilainen Reviewed-on: http://git-master/r/448115 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 2 +- drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 2 +- drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index dadcbca2..d4f7bc70 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h @@ -211,7 +211,7 @@ struct gr_gk20a { u32 num_fbps; u32 comptags_per_cacheline; - u32 slices_per_fbp; + u32 slices_per_ltc; u32 cacheline_size; u32 max_gpc_count; diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c index db7f81b4..db00fa1a 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c @@ -96,7 +96,7 @@ static int gk20a_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) 1); /* align */ gr->comptags_per_cacheline = comptags_per_cacheline; - gr->slices_per_fbp = slices_per_fbp; + gr->slices_per_ltc = slices_per_fbp / g->ltc_count; gr->cacheline_size = cacheline_size; return 0; diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index e3c003a6..683aa2ac 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c @@ -95,6 +95,10 @@ static int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) max_comptag_lines - 1, /* length*/ 1); /* align */ + gr->comptags_per_cacheline = comptags_per_cacheline; + gr->slices_per_ltc = slices_per_ltc; + gr->cacheline_size = cacheline_size; + return 0; } -- cgit v1.2.2