summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJesse Zhang <Jesse.Zhang@amd.com>2026-10-20 10:15:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-11-04 12:10:07 -0500
commit37cfaaa6b5e9448ef786342d470d0e0b8eb89fa6 (patch)
treee2e812d2299eed5538587eb5eb46912f7d41b45f /include/linux
parent9b115ca0e5ceba08da9b9ca09e6ba65d1a2544c0 (diff)
drm/amdgpu: sign extend the addresses GEM_OP(GET_MAPPING_INFO) returns
GEM_VA takes the GPU virtual addresses above the VA hole sign extended, like the rest of the UAPI, but GET_MAPPING_INFO reports them without the upper bits, so they land in the hole. Mappings in the upper half of the address space can't be recreated or removed with what it returns. On navi31: MAP at 0xffff800100000000 -> 0 GET_MAPPING_INFO -> addr 0x800100000000 UNMAP at 0x800100000000 -> -EINVAL Sign extend the addresses before handing them out. Fixes: 4d82724f7f2b ("drm/amdgpu: Add mapping info option for GEM_OP ioctl") 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 9d5524a339390da9145b19bfb40da45640332fb3) Cc: stable@vger.kernel.org
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions