mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:35:20 +03:00
gpu: nvgpu: set gpc_mask via HAL when possible
Update gr_config_set_gpc_mask() to always set gpc_mask via the HAL when possible and not just when CONFIG_NVGPU_DGPU is set. In GA10B, logical GPC ID does not necessarily equal physical GPC ID. Jira GVSCI-14589 Change-Id: I8785b6a8a7c21a9d4401137aed5135f150697e88 Signed-off-by: Austin Tajiri <atajiri@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2823541 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3b2b225c73
commit
0e6c8bb521
@@ -380,14 +380,9 @@ static void gr_config_log_info(struct gk20a *g,
|
||||
static void gr_config_set_gpc_mask(struct gk20a *g,
|
||||
struct nvgpu_gr_config *config)
|
||||
{
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
if (g->ops.gr.config.get_gpc_mask != NULL) {
|
||||
config->gpc_mask = g->ops.gr.config.get_gpc_mask(g);
|
||||
} else
|
||||
#else
|
||||
(void)g;
|
||||
#endif
|
||||
{
|
||||
} else {
|
||||
config->gpc_mask = nvgpu_safe_sub_u32(BIT32(config->gpc_count),
|
||||
1U);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user