]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: use REG32_PCIE wrapper instead for sw smu
authorHuang Rui <ray.huang@amd.com>
Mon, 25 Feb 2019 06:46:03 +0000 (14:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:02 +0000 (15:04 -0500)
commita729bb0dcc58b3f7ea56b065db17151a35106ed1
treeb9a525438b6a4dcc381929ea42bd89e9688d8238
parentd8cf85cf4f725663ac9b4bcaabae73eba2f50622
drm/amd/powerplay: use REG32_PCIE wrapper instead for sw smu

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

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