gpu: nvgpu: Store gpu config

This patch adds necessary code to store the gpu configuration into
gr structure.

Bug 1409151

Change-Id: I045b21ebdc849833380a3d953d951f8352842ac7
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
This commit is contained in:
Arto Merilainen
2014-03-05 17:34:07 +02:00
committed by Dan Willemsen
parent ba03fd69dd
commit 177e4e4735
2 changed files with 8 additions and 0 deletions

View File

@@ -207,6 +207,10 @@ struct gr_gk20a {
int initialized; int initialized;
u32 num_fbps; u32 num_fbps;
u32 comptags_per_cacheline;
u32 slices_per_fbp;
u32 cacheline_size;
u32 max_gpc_count; u32 max_gpc_count;
u32 max_fbps_count; u32 max_fbps_count;
u32 max_tpc_per_gpc_count; u32 max_tpc_per_gpc_count;

View File

@@ -101,6 +101,10 @@ static int gk20a_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
max_comptag_lines - 1, /* length*/ max_comptag_lines - 1, /* length*/
1); /* align */ 1); /* align */
gr->comptags_per_cacheline = comptags_per_cacheline;
gr->slices_per_fbp = slices_per_fbp;
gr->cacheline_size = cacheline_size;
return 0; return 0;
} }