]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/ttm: enable swapout for reserved BOs during allocation
authorRoger He <Hongbo.He@amd.com>
Thu, 21 Dec 2017 09:42:53 +0000 (17:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Dec 2017 14:48:20 +0000 (09:48 -0500)
commitdc947770cf3400dd07ed2e2b7b9acb4f96d5137f
tree1b9a022f5a9719be858af07e69d747468844de06
parentd5769ba315d8ffcf6eeb90b6d7c99d3143547ddb
drm/ttm: enable swapout for reserved BOs during allocation

if the bo shares same reservation object then not lock it again
at swapout time to make it possible to swap out.

v2: refine the commmit message

Reviewed-by: Thomas Hellström <thellstrom@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chuming Zhou <david1.zhou@amd.com>
Signed-off-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_memory.c
include/drm/ttm/ttm_bo_api.h