From 4bdfd308e02052cf13d76762d9458880d0f199e8 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 9 Feb 2023 17:19:25 +0000 Subject: [PATCH] Unstub drm_gem_ttm_vmap/vunmap. ok jsg@ --- sys/dev/pci/drm/drm_gem_ttm_helper.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/drm_gem_ttm_helper.c b/sys/dev/pci/drm/drm_gem_ttm_helper.c index 776f4bbf201..1357eb168df 100644 --- a/sys/dev/pci/drm/drm_gem_ttm_helper.c +++ b/sys/dev/pci/drm/drm_gem_ttm_helper.c @@ -24,12 +24,17 @@ drm_gem_ttm_mmap(struct drm_gem_object *obj, int drm_gem_ttm_vmap(struct drm_gem_object *obj, struct iosys_map *ism) { - STUB(); - return -ENOSYS; + struct ttm_buffer_object *tbo = + container_of(obj, struct ttm_buffer_object, base); + + return ttm_bo_vmap(tbo, ism); } void drm_gem_ttm_vunmap(struct drm_gem_object *obj, struct iosys_map *ism) { - STUB(); + struct ttm_buffer_object *tbo = + container_of(obj, struct ttm_buffer_object, base); + + ttm_bo_vunmap(tbo, ism); } -- 2.20.1