mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 09:12:05 +03:00
HWPM components (PMA, RTR, perfmon) have MMIO address space and a corresponding virtual address region. It is possible that both MMIO and virtual addresses are same for an aperture. MMIO address of an aperture is used in device node to enable the aperture and further to map HWPM component in the driver. Virtual addresses are used by the applications to execute regops on HWPM apertures. Virtual addresses are also used to fake aperture address space in simulation. This patch updates - HWPM aperture structures to include MMIO address. - aperture ioremap function to use MMIO address values. - fake register allocation to use virtual address values. Jira THWPM-41 Change-Id: I05acb68dcb278722cd333e1187b2355d1d739e93 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> (cherry picked from commit 1c0e8107b4cddad7532c10dddc22bb30cef2540b) Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2853213 Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>