From bbea338b44ba72bb96cc79789daabec7e7a56f07 Mon Sep 17 00:00:00 2001 From: Deepak Goyal Date: Fri, 13 Jan 2017 14:43:43 +0530 Subject: nvgpu: pmu: Update perfmon unit ID for T19x. update perfmon id for t19x in get_perfmon_id(). JIRA GV11B-30 Change-Id: I7c76b49cc47f8de1e6fa9492e2986830dcff901f Signed-off-by: Deepak Goyal Reviewed-on: http://git-master/r/1284763 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index 26ed3a49..0a2d36fe 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c @@ -39,6 +39,10 @@ #include "nvgpu_gpuid_t18x.h" #endif +#ifdef CONFIG_TEGRA_19x_GPU +#include "nvgpu_gpuid_t19x.h" +#endif + #define GK20A_PMU_UCODE_IMAGE "gpmu_ucode.bin" #define PMU_MEM_SCRUBBING_TIMEOUT_MAX 1000 @@ -3710,6 +3714,11 @@ static u8 get_perfmon_id(struct pmu_gk20a *pmu) case TEGRA_18x_GPUID3: unit_id = PMU_UNIT_PERFMON_T18X; break; +#endif +#if defined(CONFIG_TEGRA_19x_GPU) + case TEGRA_19x_GPUID: + unit_id = PMU_UNIT_PERFMON_T18X; + break; #endif case GK20A_GPUID_GM206: case GK20A_GPUID_GM204: -- cgit v1.2.2