mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: gm20b: Store LTC configuration
Change-Id: Ia780e6a7cb3579f0d6ed2dca9949a349799535fd Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/448115 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
8554e9a9c8
commit
ccead861f2
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user