drm/ttm: use an operation ctx for ttm_tt_populate in ttm_bo_driver (v2)
forward the operation context to ttm_tt_populate as well, and the ultimate goal is swapout enablement for reserved BOs. v2: squash in fix for vboxvideo Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -291,14 +291,15 @@ static struct ttm_backend_func qxl_backend_func = {
|
||||
.destroy = &qxl_ttm_backend_destroy,
|
||||
};
|
||||
|
||||
static int qxl_ttm_tt_populate(struct ttm_tt *ttm)
|
||||
static int qxl_ttm_tt_populate(struct ttm_tt *ttm,
|
||||
struct ttm_operation_ctx *ctx)
|
||||
{
|
||||
int r;
|
||||
|
||||
if (ttm->state != tt_unpopulated)
|
||||
return 0;
|
||||
|
||||
r = ttm_pool_populate(ttm);
|
||||
r = ttm_pool_populate(ttm, ctx);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
|
Reference in New Issue
Block a user