Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1601217
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Daniel Vetter <daniel@ffwll.ch> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH] dma-buf: Introduce dma-buf test module |
| Date | Wed, 15 Mar 2017 11:10:02 +0100 |
| Message-ID | <tle2u-689-15@gated-at.bofh.it> (permalink) |
| References | <tl0VB-5hH-27@gated-at.bofh.it> <tl15f-5mY-5@gated-at.bofh.it> <tl1oC-5wC-19@gated-at.bofh.it> |
| X-Original-To | Laura Abbott <labbott@redhat.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=hXHjnGm5/M2/cZv5lffEYz/RvLzsSLk8fJXayAYbj7Q=; b=ghSNgLx3bWDN/g8HrU9mdZZCtBhcrCwxNUbHaQjmxxcvUcf2AI6nMR/0qpTRByaIVp +9GDi+rJoRyqJqB4RsV8+qF7BRaFbPNGBlIXh3DespRVovOjz1WGyX0t2eKdXwqqYtb7 3sPoLzDooi+aMb1GdwChzuOnotUbrNGPvXRdM= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=hXHjnGm5/M2/cZv5lffEYz/RvLzsSLk8fJXayAYbj7Q=; b=qA+Y+/D2eeoQmL/XUlBBOhQcGrHCqYlUkgFJnzNlbGbLUEvle/t1i9vLWSc3/nuRyS OvFRGBhCy/fzqc3ebcDhAQD3UgRPhWe1ruz+b8tBulne2jGsMKUkod2M65RaT1y71NAv XbHBs8QBSNQ9XW7jS89b3yjLnRVfxuFy7oNnBflkQ2NsvNlhq+8wjgSL7ylrxGCJrbik 93S4+5WmnRI52f6RvjooZe7AFcw8riYtqjmB/XeM6Ki1rPRi91Xf10CYKOuO4ZNUsAOU C+xwGxbxe1++3d43Xmvm377ESz15PRwG1sp20D1TnfU42HzqNgMkCjFDWWRlsYjwWrpb QwFw== |
| X-Gm-Message-State | AFeK/H1fRyIL86oaO0lz4jzqGYEemzjXzrrWRCYebutOADBvC1ZWhe/FjhYzKmi6uDol9A== |
| X-Received | by 10.223.155.211 with SMTP id e19mr2095354wrc.74.1489572489878; Wed, 15 Mar 2017 03:08:09 -0700 (PDT) |
| Mail-Followup-To | Laura Abbott <labbott@redhat.com>, Sumit Semwal <sumit.semwal@linaro.org>, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Operating-System | Linux phenom 4.8.0-1-amd64 |
| User-Agent | NeoMutt/20170113 (1.7.2) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 39 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Sumit Semwal <sumit.semwal@linaro.org>, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org |
| X-Original-Date | Wed, 15 Mar 2017 11:08:06 +0100 |
| X-Original-Message-ID | <20170315100806.xibewpizce7iky6d@phenom.ffwll.local> |
| X-Original-References | <1489521859-20701-1-git-send-email-labbott@redhat.com> <20170314201303.2o6bhyn5yudjx4m6@phenom.ffwll.local> <93fc4722-bffc-e96b-0191-bd3bf875aaf8@redhat.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1601217 |
Show key headers only | View raw
On Tue, Mar 14, 2017 at 01:30:30PM -0700, Laura Abbott wrote: > On 03/14/2017 01:13 PM, Daniel Vetter wrote: > > On Tue, Mar 14, 2017 at 01:04:19PM -0700, Laura Abbott wrote: > >> > >> dma-buf is designed to share buffers. Sharing means that there needs to > >> be another subsystem to accept those buffers. Introduce a simple test > >> module to act as a dummy system to accept dma_bufs from elsewhere. The > >> goal is to provide a very simple interface to validate exported buffers > >> do something reasonable. This is based on ion_test.c that existed for > >> the Ion framework. > >> > >> Signed-off-by: Laura Abbott <labbott@redhat.com> > >> --- > >> This is basically a drop in of what was available as > >> drivers/staging/android/ion/ion_test.c. Given it has no Ion specific > >> parts it might be useful as a more general test module. RFC mostly > >> to see if this is generally useful or not. > > > > We already have a test dma-buf driver, which also handles reservation > > objects and can create fences to provoke signalling races an all kinds of > > other fun. It's drivers/gpu/drm/vgem. > > > > If there's anything missing in there, patches very much welcome. > > -Daniel > > > > Thanks for that pointer. It certainly looks more complete vs. allocating > a platform_device. I'll look and see if there's anything that needs > extension. Plus this means I can probably delete more code from Ion (woo) \o/ for less code! btw for the tests, I think we should really hard to either get them into kselftests or igt. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC][PATCH] dma-buf: Introduce dma-buf test module Laura Abbott <labbott@redhat.com> - 2017-03-14 21:10 +0100
Re: [RFC][PATCH] dma-buf: Introduce dma-buf test module Daniel Vetter <daniel@ffwll.ch> - 2017-03-14 21:20 +0100
Re: [RFC][PATCH] dma-buf: Introduce dma-buf test module Laura Abbott <labbott@redhat.com> - 2017-03-14 21:40 +0100
Re: [RFC][PATCH] dma-buf: Introduce dma-buf test module Daniel Vetter <daniel@ffwll.ch> - 2017-03-15 11:10 +0100
csiph-web