mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Add support for ELPG_MS feature
- To enable ELPG_MS feature, add identifier for MS_LTC engine. - The identifier is then passed as pg_engine_id to enable the MS_LTC engine. - Add enable flag NVGPU_ELPG_MS_ENABLED for enabling/disabling ELPG_MS feature at init. JIRA NVGPU-6430 Change-Id: Ie1f477918332d85ec98b3bd4d05b8e773d74eab8 Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2480750 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Alex Waterman <alexw@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
e10f201602
commit
cc34df76f9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -211,6 +211,12 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
|
||||
}
|
||||
|
||||
nvgpu_set_enabled(g, NVGPU_PMU_PERFMON, platform->enable_perfmon);
|
||||
|
||||
/* ELPG feature enable is SW pre-requisite for ELPG_MS */
|
||||
if (g->elpg_enabled) {
|
||||
nvgpu_set_enabled(g, NVGPU_ELPG_MS_ENABLED,
|
||||
platform->enable_elpg_ms);
|
||||
}
|
||||
}
|
||||
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_ASPM, !platform->disable_aspm);
|
||||
|
||||
Reference in New Issue
Block a user