[PATCH 1/2] drm/xe: Use xe_pm_runtime_get in xe_bo_move() if reclaim-safe.
Matthew Auld
matthew.auld at intel.com
Tue Sep 3 09:03:53 UTC 2024
On 02/09/2024 15:20, Thomas Hellström wrote:
> 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 <rodrigo.vivi at intel.com>
> Cc: Matthew Brost <matthew.brost at intel.com>
> Cc: Matthew Auld <matthew.auld at intel.com>
> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
More information about the Intel-xe
mailing list