diff options
| author | Jesse Zhang <Jesse.Zhang@amd.com> | 2026-09-30 14:21:19 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-10-07 12:58:23 -0400 |
| commit | 7f7c88dbf4d543f6703e53bdeed380e886733167 (patch) | |
| tree | 0b1c321a4a61f28793ab5968f407cb14551eee4d /tools/lib/python/kdoc/python_version.py | |
| parent | 7744262f5d63f9faa4d59dec127ae1c8b2d56495 (diff) | |
| download | linux-next-7f7c88dbf4d543f6703e53bdeed380e886733167.tar.gz linux-next-7f7c88dbf4d543f6703e53bdeed380e886733167.zip | |
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>
(cherry picked from commit f7497bbc19db4821c62b9d97b31c9086feb2d917)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
