mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: ga10b: Update ga10b_is_pmu_supported
Update ga10b_is_pmu_supported function to add support for pre-si platforms along with silicon. JIRA NVGPU-4701 Change-Id: If7eec7753c01135c9c9c20d49278b3f1fe9332ae Signed-off-by: mpoojary <mpoojary@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2652871 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
09cf3642ef
commit
4e98b53944
@@ -38,7 +38,18 @@ bool ga10b_is_pmu_supported(struct gk20a *g)
|
||||
{
|
||||
(void)g;
|
||||
#ifdef CONFIG_NVGPU_LS_PMU
|
||||
return nvgpu_platform_is_simulation(g) ? false : true;
|
||||
if (nvgpu_platform_is_silicon(g)) {
|
||||
return true;
|
||||
} else {
|
||||
/* Pre-Si platforms */
|
||||
if (nvgpu_is_enabled(g, NVGPU_SEC_PRIVSECURITY)) {
|
||||
/* Security is enabled - PMU is supported. */
|
||||
return true;
|
||||
} else {
|
||||
/* NS PMU is not supported */
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* set to false to disable LS PMU ucode support */
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user