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


Groups > linux.kernel > #1411326

Re: [PATCH 01/11] dma-buf/fence: make fence context 64 bit v2

From Gustavo Padovan <gustavo@padovan.org>
Newsgroups linux.kernel
Subject Re: [PATCH 01/11] dma-buf/fence: make fence context 64 bit v2
Date 2016-06-01 17:30 +0200
Message-ID <rFgfM-1DF-29@gated-at.bofh.it> (permalink)
References <rFedX-qG-9@gated-at.bofh.it> <rFedY-qG-55@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2016-06-01 Christian König <deathsimple@vodafone.de>:

> From: Christian König <christian.koenig@amd.com>
> 
> Fence contexts are created on the fly (for example) by the GPU scheduler used
> in the amdgpu driver as a result of an userspace request. Because of this
> userspace could in theory force a wrap around of the 32bit context number
> if it doesn't behave well.
> 
> Avoid this by increasing the context number to 64bits. This way even when
> userspace manages to allocate a billion contexts per second it takes more
> than 500 years for the context number to wrap around.
> 
> v2: fix printf formats as well.
> 
> Signed-off-by: Christian König <christian.koenig@amd.com>
> ---
>  drivers/dma-buf/fence.c                 |  8 ++++----
>  drivers/gpu/drm/amd/amdgpu/amdgpu.h     |  2 +-
>  drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c  |  2 +-
>  drivers/gpu/drm/etnaviv/etnaviv_gpu.h   |  2 +-
>  drivers/gpu/drm/nouveau/nouveau_fence.h |  3 ++-
>  drivers/gpu/drm/qxl/qxl_release.c       |  2 +-
>  drivers/gpu/drm/radeon/radeon.h         |  2 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |  2 +-
>  drivers/staging/android/sync.h          |  3 ++-
>  include/linux/fence.h                   | 13 +++++++------
>  10 files changed, 21 insertions(+), 18 deletions(-)

Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

	Gustavo

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


Thread

Fence array patchset Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 02/11] dma-buf/fence: add fence_array fences v6 Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
    Re: [PATCH 02/11] dma-buf/fence: add fence_array fences v6 Gustavo Padovan <gustavo@padovan.org> - 2016-06-01 16:10 +0200
    Re: [PATCH 02/11] dma-buf/fence: add fence_array fences v6 Gustavo Padovan <gustavo@padovan.org> - 2016-06-01 17:30 +0200
      Re: [PATCH 02/11] dma-buf/fence: add fence_array fences v6 Sumit Semwal <sumit.semwal@linaro.org> - 2016-06-01 18:30 +0200
        Re: [PATCH 02/11] dma-buf/fence: add fence_array fences v6 Daniel Vetter <daniel@ffwll.ch> - 2016-06-02 00:50 +0200
          Re: [PATCH 02/11] dma-buf/fence: add fence_array fences v6 Christian König <deathsimple@vodafone.de> - 2016-06-02 09:30 +0200
  [PATCH 07/11] drm/amdgpu: add optional ring to amdgpu_sync_is_idle Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 04/11] drm/amdgpu: document amdgpu_sync_get_fence Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 10/11] drm/amdgpu: use a fence array for VMID management Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 06/11] drm/amdgpu: remove amdgpu_sync_wait Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 05/11] drm/amdgpu: generalize the scheduler fence Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 08/11] drm/amdgpu: prefer VMIDs idle on the current ring Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  [PATCH 11/11] drm/amdgpu: remove now unnecessary checks Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
    Re: [PATCH 11/11] drm/amdgpu: remove now unnecessary checks Alex Deucher <alexdeucher@gmail.com> - 2016-06-06 23:20 +0200
  [PATCH 01/11] dma-buf/fence: make fence context 64 bit v2 Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
    Re: [PATCH 01/11] dma-buf/fence: make fence context 64 bit v2 Gustavo Padovan <gustavo@padovan.org> - 2016-06-01 17:30 +0200
  [PATCH 09/11] drm/amdgpu: reuse VMIDs assigned to a VM only if there is also a free one Christian König <deathsimple@vodafone.de> - 2016-06-01 15:20 +0200
  Re: Fence array patchset Alex Deucher <alexdeucher@gmail.com> - 2016-06-01 15:50 +0200

csiph-web