Messages in this thread | | | From | Arnd Bergmann <> | Date | Tue, 26 Apr 2022 14:38:21 +0200 | Subject | Re: [Linaro-mm-sig] Re: [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver |
| |
On Tue, Apr 26, 2022 at 2:24 PM Cai Huoqing <cai.huoqing@linux.dev> wrote: > On 26 4月 22 12:50:50, Arnd Bergmann wrote:
> > > > +#define DRM_NVDLA_SUBMIT 0x00 > > > > +#define DRM_NVDLA_GEM_CREATE 0x01 > > > > +#define DRM_NVDLA_GEM_MMAP 0x02 > > > > Is this an actual mmap() call, or something that needs to be done before the > > mmap()? Is the 'handle' a file descriptor or some internal number? > It's an gem object mmap which calls drm_gem_dumb_map_offset() inside and > the handle is gem object handle.
Ok, thanks for the clarification. I see that other drivers have the exact same thing, so I assume it's fine for drivers/gpu/ then, even if it would be a bit odd for other subsystems.
Arnd
| |