unstub i915_gem_object_map_pfn()
authorjsg <jsg@openbsd.org>
Wed, 20 Mar 2024 02:48:20 +0000 (02:48 +0000)
committerjsg <jsg@openbsd.org>
Wed, 20 Mar 2024 02:48:20 +0000 (02:48 +0000)
sys/dev/pci/drm/i915/gem/i915_gem_pages.c

index 0e580f6..eaa5ac0 100644 (file)
@@ -329,9 +329,6 @@ static void *i915_gem_object_map_page(struct drm_i915_gem_object *obj,
 static void *i915_gem_object_map_pfn(struct drm_i915_gem_object *obj,
                                     enum i915_map_type type)
 {
-       STUB();
-       return NULL;
-#ifdef notyet
        resource_size_t iomap = obj->mm.region->iomap.base -
                obj->mm.region->region.start;
        unsigned long n_pfn = obj->base.size >> PAGE_SHIFT;
@@ -357,7 +354,6 @@ static void *i915_gem_object_map_pfn(struct drm_i915_gem_object *obj,
                kvfree(pfns);
 
        return vaddr ?: ERR_PTR(-ENOMEM);
-#endif
 }
 
 static void *i915_gem_object_map(struct drm_i915_gem_object *obj,