mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: fix tpc_fs_mask syfs output
The tpc_fs_mask sysfs entry outputs the TPC masks in logical order, however, contradicts the gpc_fs_mask which is in physical order. So for consistency, update tpc_fs_mask to provided output in physical order. Bug 3364907 Change-Id: I2cc7b66dac2bea215024ef95944cde4b46d51c9a Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2593803 Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5f62534127
commit
f3164a4672
@@ -973,7 +973,7 @@ static ssize_t tpc_fs_mask_show(struct device *dev,
|
||||
if (g->ops.gr.config.get_gpc_tpc_mask)
|
||||
tpc_fs_mask |=
|
||||
g->ops.gr.config.get_gpc_tpc_mask(g, gr_config, gpc_phys_id) <<
|
||||
(nvgpu_gr_config_get_max_tpc_per_gpc_count(gr_config) * gpc_index);
|
||||
(nvgpu_gr_config_get_max_tpc_per_gpc_count(gr_config) * gpc_phys_id);
|
||||
}
|
||||
|
||||
gk20a_idle(g);
|
||||
|
||||
Reference in New Issue
Block a user