diff options
| author | Maíra Canal <mcanal@igalia.com> | 2026-11-11 12:05:19 -0300 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-11-12 08:47:17 -0300 |
| commit | a7d7a25b566635ac1ee6af1c3ef06484cf752c3f (patch) | |
| tree | 972c9aa9137dc08d652699071e771ed16e73402a /rust/kernel/alloc/kvec/errors.rs | |
| parent | 431c2dffd2b7c1240a6e579f0c74104cd2e17329 (diff) | |
drm/vc4: Hold a runtime PM reference while allocating the binner BO
bin_bo_alloc() arms the out-of-memory interrupt once it has allocated the
binner BO, and accessing a V3D register requires the block to be powered.
vc4_submit_cl_ioctl() already holds a runtime PM reference by the time it
reaches vc4_get_bcl(), but vc4_create_bo_ioctl() reaches vc4_grab_bin_bo()
without one, so the write can land on a suspended device.
Take the reference in vc4_v3d_bin_bo_get(), which covers both callers, and
take it before bin_bo_lock so that runtime PM is never waited for with the
mutex held.
Cc: stable@vger.kernel.org
Fixes: 35c8b4b2c0fe ("drm/vc4: Allocate binner bo when starting to use the V3D")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patch.msgid.link/20261111-vc4-irq-cleanup-v2-1-aa757bb742f2@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
