From 8a701842af18749a61cc6d4158bccf3f073e9488 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 20 Mar 2024 04:28:39 +0000 Subject: [PATCH] unstub i915_ttm_io_mem_pfn() --- sys/dev/pci/drm/i915/gem/i915_gem_ttm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c b/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c index 62e0553c481..e0279102620 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_ttm.c @@ -715,9 +715,6 @@ static int i915_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource static unsigned long i915_ttm_io_mem_pfn(struct ttm_buffer_object *bo, unsigned long page_offset) { - STUB(); - return 0; -#ifdef notyet struct drm_i915_gem_object *obj = i915_ttm_to_gem(bo); struct scatterlist *sg; unsigned long base; @@ -730,7 +727,6 @@ static unsigned long i915_ttm_io_mem_pfn(struct ttm_buffer_object *bo, sg = i915_gem_object_page_iter_get_sg(obj, &obj->ttm.get_io_page, page_offset, &ofs); return ((base + sg_dma_address(sg)) >> PAGE_SHIFT) + ofs; -#endif } static int i915_ttm_access_memory(struct ttm_buffer_object *bo, -- 2.20.1