From: Arnd Bergmann <arnd@arndb.de> To: Cai Huoqing <cai.huoqing@linux.dev> Cc: "Arnd Bergmann" <arnd@arndb.de>, "Christian König" <christian.koenig@amd.com>, "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>, "Maxime Ripard" <mripard@kernel.org>, "Thomas Zimmermann" <tzimmermann@suse.de>, "David Airlie" <airlied@linux.ie>, "Daniel Vetter" <daniel@ffwll.ch>, "Sumit Semwal" <sumit.semwal@linaro.org>, "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>, dri-devel <dri-devel@lists.freedesktop.org>, "Linux Media Mailing List" <linux-media@vger.kernel.org>, linaro-mm-sig@lists.linaro.org Subject: Re: [Linaro-mm-sig] Re: [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver Date: Tue, 26 Apr 2022 14:38:21 +0200 [thread overview] Message-ID: <CAK8P3a2M=zw509HGRALmgbr+E6GjKoZqqkh9kCbyGB9hD_+3LA@mail.gmail.com> (raw) In-Reply-To: <20220426122404.GA6788@chq-T47> 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
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de> To: Cai Huoqing <cai.huoqing@linux.dev> Cc: "Arnd Bergmann" <arnd@arndb.de>, "David Airlie" <airlied@linux.ie>, "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>, "Sumit Semwal" <sumit.semwal@linaro.org>, linaro-mm-sig@lists.linaro.org, dri-devel <dri-devel@lists.freedesktop.org>, "Thomas Zimmermann" <tzimmermann@suse.de>, "Christian König" <christian.koenig@amd.com>, "Linux Media Mailing List" <linux-media@vger.kernel.org> Subject: Re: [Linaro-mm-sig] Re: [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver Date: Tue, 26 Apr 2022 14:38:21 +0200 [thread overview] Message-ID: <CAK8P3a2M=zw509HGRALmgbr+E6GjKoZqqkh9kCbyGB9hD_+3LA@mail.gmail.com> (raw) In-Reply-To: <20220426122404.GA6788@chq-T47> 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
next prev parent reply other threads:[~2022-04-26 12:38 UTC|newest] Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-26 6:07 [PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA Cai Huoqing 2022-04-26 6:07 ` Cai Huoqing 2022-04-26 6:07 ` [PATCH v2 1/4] MAINTAINERS: Add the driver info of the NVDLA Cai Huoqing 2022-04-26 6:07 ` Cai Huoqing 2022-04-26 6:07 ` [PATCH v2 2/4] drm/nvdla: Add driver support for NVDLA Cai Huoqing 2022-04-26 6:07 ` Cai Huoqing 2022-04-28 15:18 ` Thierry Reding 2022-04-28 15:18 ` Thierry Reding 2022-04-28 15:19 ` Thierry Reding 2022-04-28 15:19 ` Thierry Reding 2022-04-26 6:08 ` [PATCH v2 3/4] drm/nvdla: Add register head file of NVDLA Cai Huoqing 2022-04-26 6:08 ` Cai Huoqing 2022-04-28 14:31 ` Thierry Reding 2022-04-28 14:31 ` Thierry Reding 2022-04-26 6:08 ` [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver Cai Huoqing 2022-04-26 6:08 ` Cai Huoqing 2022-04-26 6:31 ` Christian König 2022-04-26 6:31 ` Christian König 2022-04-26 8:23 ` Cai Huoqing 2022-04-26 8:23 ` Cai Huoqing 2022-04-26 8:29 ` Christian König 2022-04-26 8:29 ` Christian König 2022-04-28 14:45 ` Thierry Reding 2022-04-28 14:45 ` Thierry Reding 2022-04-29 3:58 ` Cai Huoqing 2022-04-29 3:58 ` Cai Huoqing 2022-04-26 10:50 ` [Linaro-mm-sig] " Arnd Bergmann 2022-04-26 10:50 ` Arnd Bergmann 2022-04-26 12:24 ` Cai Huoqing 2022-04-26 12:24 ` Cai Huoqing 2022-04-26 12:38 ` Arnd Bergmann [this message] 2022-04-26 12:38 ` Arnd Bergmann 2022-04-26 10:12 ` kernel test robot 2022-04-26 10:12 ` kernel test robot 2022-04-26 11:23 ` kernel test robot 2022-04-26 11:23 ` kernel test robot 2022-04-28 14:40 ` Thierry Reding 2022-04-28 14:40 ` Thierry Reding 2022-04-28 14:10 ` [PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA Thierry Reding 2022-04-28 14:10 ` Thierry Reding 2022-04-28 15:56 ` Mikko Perttunen 2022-04-28 15:56 ` Mikko Perttunen 2022-04-28 16:35 ` Jon Hunter 2022-04-28 16:35 ` Jon Hunter 2022-04-29 3:37 ` Cai Huoqing 2022-04-29 3:37 ` Cai Huoqing 2022-04-29 3:28 ` Cai Huoqing 2022-04-29 3:28 ` Cai Huoqing 2022-05-02 17:04 ` Thierry Reding 2022-05-02 17:04 ` Thierry Reding 2022-05-07 9:05 ` Cai Huoqing 2022-05-07 9:05 ` Cai Huoqing
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAK8P3a2M=zw509HGRALmgbr+E6GjKoZqqkh9kCbyGB9hD_+3LA@mail.gmail.com' \ --to=arnd@arndb.de \ --cc=airlied@linux.ie \ --cc=cai.huoqing@linux.dev \ --cc=christian.koenig@amd.com \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=linaro-mm-sig@lists.linaro.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=maarten.lankhorst@linux.intel.com \ --cc=mripard@kernel.org \ --cc=sumit.semwal@linaro.org \ --cc=tzimmermann@suse.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.