Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1281684

Re: [PATCH 4/9] drm/vc4: Add an API for creating GPU shaders in GEM BOs.

From Emil Velikov <emil.l.velikov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/9] drm/vc4: Add an API for creating GPU shaders in GEM BOs.
Date 2015-12-02 12:40 +0100
Message-ID <qBdVo-6zq-23@gated-at.bofh.it> (permalink)
References <qAZSq-622-7@gated-at.bofh.it> <qAZSr-622-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Eric,

On 1 December 2015 at 20:35, Eric Anholt <eric@anholt.net> wrote:
> Since we have no MMU, the kernel needs to validate that the submitted
> shader code won't make any accesses to memory that the user doesn't
> control, which involves banning some operations (general purpose DMA
> writes), and tracking where we need to write out pointers for other
> operations (texture sampling).  Once it's validated, we return a GEM
> BO containing the shader, which doesn't allow mapping for write or
> exporting to other subsystems.
>
> Signed-off-by: Eric Anholt <eric@anholt.net>
> ---
>  drivers/gpu/drm/vc4/Makefile               |   3 +-
>  drivers/gpu/drm/vc4/vc4_bo.c               | 140 ++++++++
>  drivers/gpu/drm/vc4/vc4_drv.c              |   9 +-
>  drivers/gpu/drm/vc4/vc4_drv.h              |  50 +++
>  drivers/gpu/drm/vc4/vc4_qpu_defines.h      | 264 +++++++++++++++

May I suggest that one 'exports' the header to something like
libdrm_vc4 ? There are patches in flight for nouveau which in similar
fashion, allow userspare to reuse existing api/abi.

-Emil
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/9] drm: Create a driver hook for allocating GEM object structs. Eric Anholt <eric@anholt.net> - 2015-12-01 21:40 +0100
  [PATCH 4/9] drm/vc4: Add an API for creating GPU shaders in GEM BOs. Eric Anholt <eric@anholt.net> - 2015-12-01 21:40 +0100
    Re: [PATCH 4/9] drm/vc4: Add an API for creating GPU shaders in GEM BOs. Emil Velikov <emil.l.velikov@gmail.com> - 2015-12-02 12:40 +0100
      Re: [PATCH 4/9] drm/vc4: Add an API for creating GPU shaders in GEM BOs. Eric Anholt <eric@anholt.net> - 2015-12-02 20:30 +0100
  [PATCH 6/9] drm/vc4: Bind and initialize the V3D engine. Eric Anholt <eric@anholt.net> - 2015-12-01 21:40 +0100
  [PATCH 8/9] drm/vc4: Add support for async pageflips. Eric Anholt <eric@anholt.net> - 2015-12-01 21:40 +0100
    Re: [PATCH 8/9] drm/vc4: Add support for async pageflips. Daniel Stone <daniel@fooishbar.org> - 2015-12-02 15:10 +0100
      Re: [PATCH 8/9] drm/vc4: Add support for async pageflips. Eric Anholt <eric@anholt.net> - 2015-12-04 02:50 +0100
        Re: [PATCH 8/9] drm/vc4: Add support for async pageflips. Daniel Stone <daniel@fooishbar.org> - 2015-12-07 11:20 +0100
  [PATCH 3/9] drm/vc4: Add create and map BO ioctls. Eric Anholt <eric@anholt.net> - 2015-12-01 21:40 +0100
    Re: [PATCH 3/9] drm/vc4: Add create and map BO ioctls. Emil Velikov <emil.l.velikov@gmail.com> - 2015-12-04 15:30 +0100
      Re: [PATCH 3/9] drm/vc4: Add create and map BO ioctls. Eric Anholt <eric@anholt.net> - 2015-12-08 02:20 +0100
        Re: [PATCH 3/9] drm/vc4: Add create and map BO ioctls. Michel Dänzer <michel@daenzer.net> - 2015-12-08 04:00 +0100
          Re: [PATCH 3/9] drm/vc4: Add create and map BO ioctls. Eric Anholt <eric@anholt.net> - 2015-12-08 05:10 +0100
  [PATCH 2/9] drm/vc4: Add a BO cache. Eric Anholt <eric@anholt.net> - 2015-12-01 21:40 +0100
  Re: [PATCH 1/9] drm: Create a driver hook for allocating GEM object  structs. Daniel Vetter <daniel@ffwll.ch> - 2015-12-02 10:00 +0100
  Re: [PATCH 7/9] drm/vc4: Add support for drawing 3D frames. Emil Velikov <emil.l.velikov@gmail.com> - 2015-12-02 12:30 +0100
    Re: [PATCH 7/9] drm/vc4: Add support for drawing 3D frames. Eric Anholt <eric@anholt.net> - 2015-12-02 20:30 +0100

csiph-web