Re: [PATCH v3] drm/panthor: Don't create a file offset for NO_MMAP BOs

2025-04-22 Thread Boris Brezillon
On Thu, 17 Apr 2025 14:19:42 +0200 Boris Brezillon wrote: > Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by > panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can > have a file offset but can't be mapped anyway, because > panthor_gem_mmap() will filter them out. > > If we e

Re: [PATCH v3] drm/panthor: Don't create a file offset for NO_MMAP BOs

2025-04-18 Thread Adrián Larumbe
On 17.04.2025 14:19, Boris Brezillon wrote: > Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by > panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can > have a file offset but can't be mapped anyway, because > panthor_gem_mmap() will filter them out. > > If we error out at mmap_

[PATCH v3] drm/panthor: Don't create a file offset for NO_MMAP BOs

2025-04-17 Thread Boris Brezillon
Right now the DRM_PANTHOR_BO_NO_MMAP flag is ignored by panthor_ioctl_bo_mmap_offset(), meaning BOs with this flag set can have a file offset but can't be mapped anyway, because panthor_gem_mmap() will filter them out. If we error out at mmap_offset creation time, we can get rid of panthor_gem_mma