diff options
| author | Rob Clark <[email protected]> | 2023-11-21 00:38:48 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2023-12-10 18:23:13 +0000 |
| commit | 2d7d2c4e84802485a1e765bd0732d41526dcf25c (patch) | |
| tree | 57b92f0c67adf2b7b86ec32558d859cc2081b636 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/msm/gem: Don't queue job to sched in error cases (diff) | |
| download | kernel-2d7d2c4e84802485a1e765bd0732d41526dcf25c.tar.gz kernel-2d7d2c4e84802485a1e765bd0732d41526dcf25c.zip | |
drm/msm/gem: Split out submit_unpin_objects() helper
Untangle unpinning from unlock/unref loop. The unpin only happens in
error paths so it is easier to decouple from the normal unlock path.
Since we never have an intermediate state where a subset of buffers
are pinned (ie. we never bail out of the pin or unpin loops) we can
replace the bo state flag bit with a global flag in the submit.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/568335/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
