mirror-linux/drivers/gpu/drm/amd
Ilpo Järvinen a0f0daf60b drm/amdgpu: Use RMW accessors for changing LNKCTL
[ Upstream commit ce7d88110b ]

Don't assume that only the driver would be accessing LNKCTL. ASPM policy
changes can trigger write to LNKCTL outside of driver's control.  And in
the case of upstream bridge, the driver does not even own the device it's
changing the registers for.

Use RMW capability accessors which do proper locking to avoid losing
concurrent updates to the register value.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Fixes: a2e73f56fa ("drm/amdgpu: Add support for CIK parts")
Fixes: 62a3755341 ("drm/amdgpu: add si implementation v10")
Link: https://lore.kernel.org/r/20230717120503.15276-6-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:47 +02:00
..
acp
amdgpu drm/amdgpu: Use RMW accessors for changing LNKCTL 2023-09-13 09:42:47 +02:00
amdkfd drm/amdkfd: Fix potential deallocation of previously deallocated memory. 2023-07-19 16:21:27 +02:00
display drm/amd/display: Do not set drr on pipe commit 2023-09-13 09:42:36 +02:00
include drm/amd/pm: fulfill swsmu peak profiling mode shader/memory clock settings 2023-08-16 18:27:22 +02:00
pm drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create() 2023-09-13 09:42:42 +02:00