Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea642c32 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/ttm: add io_mem_pfn callback



This allows the driver to handle io_mem mappings on their own.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 018b7fc3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1089,6 +1089,7 @@ static struct ttm_bo_driver amdgpu_bo_driver = {
	.fault_reserve_notify = &amdgpu_bo_fault_reserve_notify,
	.io_mem_reserve = &amdgpu_ttm_io_mem_reserve,
	.io_mem_free = &amdgpu_ttm_io_mem_free,
	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
};

int amdgpu_ttm_init(struct amdgpu_device *adev)
+1 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ struct ttm_bo_driver ast_bo_driver = {
	.verify_access = ast_bo_verify_access,
	.io_mem_reserve = &ast_ttm_io_mem_reserve,
	.io_mem_free = &ast_ttm_io_mem_free,
	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
};

int ast_mm_init(struct ast_private *ast)
+1 −0
Original line number Diff line number Diff line
@@ -205,6 +205,7 @@ struct ttm_bo_driver bochs_bo_driver = {
	.verify_access = bochs_bo_verify_access,
	.io_mem_reserve = &bochs_ttm_io_mem_reserve,
	.io_mem_free = &bochs_ttm_io_mem_free,
	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
};

int bochs_mm_init(struct bochs_device *bochs)
+1 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ struct ttm_bo_driver cirrus_bo_driver = {
	.verify_access = cirrus_bo_verify_access,
	.io_mem_reserve = &cirrus_ttm_io_mem_reserve,
	.io_mem_free = &cirrus_ttm_io_mem_free,
	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
};

int cirrus_mm_init(struct cirrus_device *cirrus)
+1 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ struct ttm_bo_driver mgag200_bo_driver = {
	.verify_access = mgag200_bo_verify_access,
	.io_mem_reserve = &mgag200_ttm_io_mem_reserve,
	.io_mem_free = &mgag200_ttm_io_mem_free,
	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
};

int mgag200_mm_init(struct mga_device *mdev)
Loading