OSDN Git Service

drm/ttm/amdgpu: consolidate ttm reserve paths
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:55:38 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:16:31 +0000 (12:16 +1000)
commit46bca88bbdd3046db31b8b7e053a909ae79e285b
tree85a007c9ed594348bee70481baafdbbfb98cd54d
parent9c4cbb3a66e05270caaec7bea8fd5c04a47e42ac
drm/ttm/amdgpu: consolidate ttm reserve paths

Drop the WARN_ON and consolidate the two paths into one.

Use the consolidate slowpath in the execbuf utils code.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-6-airlied@gmail.com
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/ttm/ttm_execbuf_util.c
include/drm/ttm/ttm_bo_driver.h