drm/etnaviv: fix power register offset on GC300

[ Upstream commit 61a6920bb6 ]

Older GC300 revisions have their power registers at an offset of 0x200
rather than 0x100. Add new gpu_read_power and gpu_write_power functions
to encapsulate accesses to the power addresses and fix the addresses.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Stable-dep-of: 37dc473744 ("drm/etnaviv: hold GPU lock across perfmon sampling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Doug Brown 2022-09-10 13:29:39 -07:00 • committed by Greg Kroah-Hartman
commit d4ce36476c
3 changed files with 37 additions and 11 deletions