Re: [PATCH] accel: Add .mmap to DRM_ACCEL_FOPS

2023-01-17 Thread Oded Gabbay
On Tue, Jan 17, 2023 at 7:48 PM Jeffrey Hugo wrote: > > In reviewing the ivpu driver, DEFINE_DRM_ACCEL_FOPS could have been used > if DRM_ACCEL_FOPS defined .mmap to be drm_gem_mmap. Lets add that since > accel drivers are a variant of drm drivers, modern drm drivers are > expected to use GEM, an

[PATCH] accel: Add .mmap to DRM_ACCEL_FOPS

2023-01-17 Thread Jeffrey Hugo
In reviewing the ivpu driver, DEFINE_DRM_ACCEL_FOPS could have been used if DRM_ACCEL_FOPS defined .mmap to be drm_gem_mmap. Lets add that since accel drivers are a variant of drm drivers, modern drm drivers are expected to use GEM, and mmap() is a common operation that is expected to be heavily u