From ba34af77a4aae32d6566ef4f159477d234aa37df Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Thu, 26 Aug 2021 16:52:05 -0700 Subject: [PATCH] tegra: hwpm: update hwpm readl/writel debug prints Add dt_aperture address to hwpm readl/writel prints, this helps during debugs. THWPM-2 Change-Id: I2be3c9a5e2f023673c96e6f261a73117f0e2c6d4 Signed-off-by: Vedashree Vidwans Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2585980 Reviewed-by: svc_kernel_abi Reviewed-by: Seema Khowala Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- tegra-soc-hwpm-io.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tegra-soc-hwpm-io.c b/tegra-soc-hwpm-io.c index bc76853..85d5679 100644 --- a/tegra-soc-hwpm-io.c +++ b/tegra-soc-hwpm-io.c @@ -2009,8 +2009,9 @@ u32 hwpm_readl(struct tegra_soc_hwpm *hwpm, return 0; } - tegra_soc_hwpm_dbg("reg read: dt_aperture(%d), reg_offset(0x%x)", - dt_aperture, reg_offset); + tegra_soc_hwpm_dbg( + "dt_aperture(%d): dt_aperture addr(0x%llx) reg_offset(0x%x)", + dt_aperture, hwpm->dt_apertures[dt_aperture], reg_offset); if (hwpm->fake_registers_enabled) { u64 base_pa = 0; @@ -2040,8 +2041,9 @@ void hwpm_writel(struct tegra_soc_hwpm *hwpm, } tegra_soc_hwpm_dbg( - "reg write: dt_aperture(%d), reg_offset(0x%x), val(0x%x)", - dt_aperture, reg_offset, val); + "dt_aperture(%d): dt_aperture addr(0x%llx) " + "reg_offset(0x%x), val(0x%x)", + dt_aperture, hwpm->dt_apertures[dt_aperture], reg_offset, val); if (hwpm->fake_registers_enabled) { u64 base_pa = 0;