diff options
| author | Thomas Hellström <[email protected]> | 2024-09-03 09:42:32 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2024-09-04 07:28:09 +0000 |
| commit | 34bb7b813ab398106f700b0a6b218509bb0b904c (patch) | |
| tree | 90af611bdf03dd54b0c47eed56302fb67f40d59e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/xe/display: Avoid encoder_suspend at runtime suspend (diff) | |
| download | kernel-34bb7b813ab398106f700b0a6b218509bb0b904c.tar.gz kernel-34bb7b813ab398106f700b0a6b218509bb0b904c.zip | |
drm/xe: Use xe_pm_runtime_get in xe_bo_move() if reclaim-safe.
xe_bo_move() might be called in the TTM swapout path from validation
by another TTM device. If so, we are not likely to have a RPM
reference. So iff xe_pm_runtime_get() is safe to call from reclaim,
use it instead of xe_pm_runtime_get_noresume().
Strictly this is currently needed only if handle_system_ccs is true,
but use xe_pm_runtime_get() if possible anyway to increase test
coverage.
At the same time warn if handle_system_ccs is true and we can't
call xe_pm_runtime_get() from reclaim context. This will likely trip
if someone tries to enable SRIOV on LNL, without fixing Xe SRIOV
runtime resume / suspend.
Cc: Rodrigo Vivi <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Matthew Auld <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
