diff options
| author | 2026-09-30 14:21:19 +0800 | |
|---|---|---|
| committer | 2026-10-07 11:56:04 -0400 | |
| commit | f7497bbc19db4821c62b9d97b31c9086feb2d917 (patch) | |
| tree | b7a2cd163fcf68d601b3ee9bfb44c73d49dd35ee /scripts/Makefile.thinlto | |
| parent | drm/amdgpu: prevent suspend in fault handler (diff) | |
drm/amdgpu/userq: only accept doorbell BOs as queue doorbell
amdgpu_userq_get_doorbell_index() pins any BO passed as doorbell_handle
into the doorbell domain. For a regular BO, TTM moves it with
ttm_bo_move_null() and its contents are lost. Since an importer on the
same device gets the exporter's GEM object, a client can do this to a
buffer another client shared with it.
Reject BOs that were not created in the doorbell domain.
v2: drop the error message, use a local abo variable (Christian)
Fixes: f09c1e6077ab ("drm/amdgpu: generate doorbell index for userqueue")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
