mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: move get_max_fbps/ltc/lts GR hals to TOP unit
Below HALs to get max FBPs, max LTC per FBP, max LTS pet LTC values are right now defined by GR unit. g->ops.gr.get_max_fbps_count() g->ops.gr.get_max_ltc_per_fbp() g->ops.gr.get_max_lts_per_ltc() These HALs only read registers from hw_top_*.h h/w unit, and as such belong to TOP unit. Move them appropriately as below g->ops.top.get_max_fbps_count() g->ops.top.get_max_ltc_per_fbp() g->ops.top.get_max_lts_per_ltc() Remove hw_top_*.h h/w header include from gr_gk20a.c and gr_gm20b.c Jira NVGPU-2894 Change-Id: I995d9f56edb65c9de98d2d15d34ecb72920a65c6 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2030672 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
5785491235
commit
fca82e45fb
@@ -335,10 +335,10 @@ gk20a_ctrl_ioctl_gpu_characteristics(
|
||||
gpu.gpu_va_bit_count = 40;
|
||||
|
||||
strlcpy(gpu.chipname, g->name, sizeof(gpu.chipname));
|
||||
gpu.max_fbps_count = g->ops.gr.get_max_fbps_count(g);
|
||||
gpu.max_fbps_count = g->ops.top.get_max_fbps_count(g);
|
||||
gpu.fbp_en_mask = g->ops.gr.get_fbp_en_mask(g);
|
||||
gpu.max_ltc_per_fbp = g->ops.gr.get_max_ltc_per_fbp(g);
|
||||
gpu.max_lts_per_ltc = g->ops.gr.get_max_lts_per_ltc(g);
|
||||
gpu.max_ltc_per_fbp = g->ops.top.get_max_ltc_per_fbp(g);
|
||||
gpu.max_lts_per_ltc = g->ops.top.get_max_lts_per_ltc(g);
|
||||
gpu.gr_compbit_store_base_hw = g->gr.compbit_store.base_hw;
|
||||
gpu.gr_gobs_per_comptagline_per_slice =
|
||||
g->gr.gobs_per_comptagline_per_slice;
|
||||
|
||||
Reference in New Issue
Block a user