File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © 2024 Intel Corporation
4
4
*/
5
5
6
+ #include "xe_bo.h"
6
7
#include "xe_gt_tlb_invalidation.h"
7
8
#include "xe_migrate.h"
8
9
#include "xe_pt.h"
@@ -467,6 +468,13 @@ static struct xe_bo *to_xe_bo(struct drm_gpusvm_devmem *devmem_allocation)
467
468
return container_of (devmem_allocation , struct xe_bo , devmem_allocation );
468
469
}
469
470
471
+ static void xe_svm_devmem_release (struct drm_gpusvm_devmem * devmem_allocation )
472
+ {
473
+ struct xe_bo * bo = to_xe_bo (devmem_allocation );
474
+
475
+ xe_bo_put_async (bo );
476
+ }
477
+
470
478
static u64 block_offset_to_pfn (struct xe_vram_region * vr , u64 offset )
471
479
{
472
480
return PHYS_PFN (offset + vr -> hpa_base );
@@ -502,6 +510,7 @@ static int xe_svm_populate_devmem_pfn(struct drm_gpusvm_devmem *devmem_allocatio
502
510
503
511
__maybe_unused
504
512
static const struct drm_gpusvm_devmem_ops gpusvm_devmem_ops = {
513
+ .devmem_release = xe_svm_devmem_release ,
505
514
.populate_devmem_pfn = xe_svm_populate_devmem_pfn ,
506
515
.copy_to_devmem = xe_svm_copy_to_devmem ,
507
516
.copy_to_ram = xe_svm_copy_to_ram ,
You can’t perform that action at this time.
0 commit comments