drm/amd/powerplay: use REG32_PCIE wrapper instead for powerplay
authorHuang Rui <ray.huang@amd.com>
Mon, 25 Feb 2019 06:54:20 +0000 (14:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Feb 2019 03:18:42 +0000 (22:18 -0500)
commit5307db85c745c46295f3ee2159667e1606fba268
treec2ac346325f13ffcb8f12a1baf98f15be30e5ba6
parent293b9160839fb6965fd0f58e6f66217193174538
drm/amd/powerplay: use REG32_PCIE wrapper instead for powerplay

This patch uses REG32_PCIE wrapper instead of writting pci_index2 and reading
pci_data2 for powerplay. This sequence should be protected by pcie_idx_lock.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c