mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: move ltc related data to nvgpu_ltc
Moved following ltc related data to struct nvgpu_ltc and has a reference to it from struct gk20a: struct nvgpu_spinlock ltc_enabled_lock; u32 max_ltc_count; u32 ltc_count; u32 slices_per_ltc; u32 cacheline_size; Added function remove_support for ltc and it is called during nvgpu remove sequence. Added following helper functions in ltc.h: u32 nvgpu_ltc_get_ltc_count(struct gk20a *g); u32 nvgpu_ltc_get_slices_per_ltc(struct gk20a *g); u32 nvgpu_ltc_get_cacheline_size(struct gk20a *g); Removed redudnant ltc.init_fs_state call from vgpu init sequence since it is getting called from nvgpu_init_ltc_support. NVGPU-2044 Change-Id: I3c256dc3866f894c38715aa2609e85bd2e5cfe5a Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2073417 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4c8aadf83c
commit
60073d2156
@@ -343,9 +343,9 @@ gk20a_ctrl_ioctl_gpu_characteristics(
|
||||
gpu.gr_compbit_store_base_hw = g->cbc->compbit_store.base_hw;
|
||||
gpu.gr_gobs_per_comptagline_per_slice =
|
||||
g->cbc->gobs_per_comptagline_per_slice;
|
||||
gpu.num_ltc = g->ltc_count;
|
||||
gpu.lts_per_ltc = g->slices_per_ltc;
|
||||
gpu.cbc_cache_line_size = g->cacheline_size;
|
||||
gpu.num_ltc = nvgpu_ltc_get_ltc_count(g);
|
||||
gpu.lts_per_ltc = nvgpu_ltc_get_slices_per_ltc(g);
|
||||
gpu.cbc_cache_line_size = nvgpu_ltc_get_cacheline_size(g);
|
||||
gpu.cbc_comptags_per_line = g->cbc->comptags_per_cacheline;
|
||||
|
||||
if (g->ops.clk.get_maxrate)
|
||||
|
||||
Reference in New Issue
Block a user