From: Shixiong Ou Date: Thu, 22 May 2025 07:07:14 +0000 (+0800) Subject: drm/udl: use DRM_GEM_SHMEM_DRIVER_OPS_NO_MAP_SGT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6cbfa872045d7ed307c55aa1cdb0d5125d84282;p=thirdparty%2Flinux.git drm/udl: use DRM_GEM_SHMEM_DRIVER_OPS_NO_MAP_SGT Import dmabuf without mapping its sg_table to avoid issues likes: udl 2-1.4:1.0: swiotlb buffer is full (sz: 2097152 bytes), total 65536 (slots), used 1 (slots) Signed-off-by: Shixiong Ou Reviewed-by: Thomas Zimmermann Signed-off-by: Thomas Zimmermann Link: https://lore.kernel.org/r/20250522070714.439824-3-oushixiong1025@163.com --- diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c index 1922988625eb0..ce5ae7cacb906 100644 --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c @@ -57,7 +57,7 @@ static const struct drm_driver driver = { /* GEM hooks */ .fops = &udl_driver_fops, - DRM_GEM_SHMEM_DRIVER_OPS, + DRM_GEM_SHMEM_DRIVER_OPS_NO_MAP_SGT, DRM_FBDEV_SHMEM_DRIVER_OPS, .name = DRIVER_NAME,