mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
Dan Willemsen
parent
ba03fd69dd
commit
177e4e4735
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user