[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOeoa-fAkNGfCbmZ-nBaYyupFV4Eo8fc7pKimaWtPhczmK4h3Q@mail.gmail.com>
Date: Fri, 23 Oct 2020 12:58:09 +0200
From: Kristian Høgsberg <hoegsberg@...il.com>
To: Rob Clark <robdclark@...il.com>
Cc: dri-devel <dri-devel@...ts.freedesktop.org>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Liviu Dudau <liviu.dudau@....com>,
Akhil P Oommen <akhilpo@...eaurora.org>,
Harigovindan P <harigovi@...eaurora.org>,
Eric Anholt <eric@...olt.net>,
AngeloGioacchino Del Regno <kholk11@...il.com>,
Sam Ravnborg <sam@...nborg.org>,
Emil Velikov <emil.velikov@...labora.com>,
Rob Clark <robdclark@...omium.org>,
Jonathan Marek <jonathan@...ek.ca>,
Matthias Kaehlcke <mka@...omium.org>,
Thierry Reding <treding@...dia.com>,
"open list:DMA BUFFER SHARING FRAMEWORK"
<linux-media@...r.kernel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
"open list:DRM DRIVER FOR MSM ADRENO GPU"
<linux-arm-msm@...r.kernel.org>,
Sharat Masetty <smasetty@...eaurora.org>,
Abhinav Kumar <abhinavk@...eaurora.org>,
"moderated list:DMA BUFFER SHARING FRAMEWORK"
<linaro-mm-sig@...ts.linaro.org>,
Jordan Crouse <jcrouse@...eaurora.org>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Rajendra Nayak <rnayak@...eaurora.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
open list <linux-kernel@...r.kernel.org>,
Daniel Vetter <daniel@...ll.ch>,
Brian Masney <masneyb@...tation.org>,
"open list:DRM DRIVER FOR MSM ADRENO GPU"
<freedreno@...ts.freedesktop.org>
Subject: Re: [Freedreno] [PATCH v3 00/23] drm/msm: de-struct_mutex-ification
On Mon, Oct 19, 2020 at 10:45 PM Rob Clark <robdclark@...il.com> wrote:
>
> From: Rob Clark <robdclark@...omium.org>
>
> This doesn't remove *all* the struct_mutex, but it covers the worst
> of it, ie. shrinker/madvise/free/retire. The submit path still uses
> struct_mutex, but it still needs *something* serialize a portion of
> the submit path, and lock_stat mostly just shows the lock contention
> there being with other submits. And there are a few other bits of
> struct_mutex usage in less critical paths (debugfs, etc). But this
> seems like a reasonable step in the right direction.
>
> v2: teach lockdep about shrinker locking patters (danvet) and
> convert to obj->resv locking (danvet)
> v3: fix get_vaddr locking for legacy userspace (relocs), devcoredump,
> and rd/hangrd
For the series:
Reviewed-by: Kristian H. Kristensen <hoegsberg@...gle.com>
> Rob Clark (23):
> drm/msm: Fix a couple incorrect usages of get_vaddr_active()
> drm/msm/gem: Add obj->lock wrappers
> drm/msm/gem: Rename internal get_iova_locked helper
> drm/msm/gem: Move prototypes to msm_gem.h
> drm/msm/gem: Add some _locked() helpers
> drm/msm/gem: Move locking in shrinker path
> drm/msm/submit: Move copy_from_user ahead of locking bos
> drm/msm: Do rpm get sooner in the submit path
> drm/msm/gem: Switch over to obj->resv for locking
> drm/msm: Use correct drm_gem_object_put() in fail case
> drm/msm: Drop chatty trace
> drm/msm: Move update_fences()
> drm/msm: Add priv->mm_lock to protect active/inactive lists
> drm/msm: Document and rename preempt_lock
> drm/msm: Protect ring->submits with it's own lock
> drm/msm: Refcount submits
> drm/msm: Remove obj->gpu
> drm/msm: Drop struct_mutex from the retire path
> drm/msm: Drop struct_mutex in free_object() path
> drm/msm: Remove msm_gem_free_work
> drm/msm: Drop struct_mutex in madvise path
> drm/msm: Drop struct_mutex in shrinker path
> drm/msm: Don't implicit-sync if only a single ring
>
> drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 6 +-
> drivers/gpu/drm/msm/adreno/a5xx_preempt.c | 12 +-
> drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +-
> drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 1 +
> drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 1 +
> drivers/gpu/drm/msm/dsi/dsi_host.c | 1 +
> drivers/gpu/drm/msm/msm_debugfs.c | 7 +
> drivers/gpu/drm/msm/msm_drv.c | 21 +-
> drivers/gpu/drm/msm/msm_drv.h | 73 +-----
> drivers/gpu/drm/msm/msm_fbdev.c | 1 +
> drivers/gpu/drm/msm/msm_gem.c | 266 +++++++++++-----------
> drivers/gpu/drm/msm/msm_gem.h | 133 +++++++++--
> drivers/gpu/drm/msm/msm_gem_shrinker.c | 81 ++-----
> drivers/gpu/drm/msm/msm_gem_submit.c | 158 ++++++++-----
> drivers/gpu/drm/msm/msm_gpu.c | 110 +++++----
> drivers/gpu/drm/msm/msm_gpu.h | 5 +-
> drivers/gpu/drm/msm/msm_rd.c | 2 +-
> drivers/gpu/drm/msm/msm_ringbuffer.c | 3 +-
> drivers/gpu/drm/msm/msm_ringbuffer.h | 13 +-
> 19 files changed, 495 insertions(+), 405 deletions(-)
>
> --
> 2.26.2
>
> _______________________________________________
> Freedreno mailing list
> Freedreno@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/freedreno
Powered by blists - more mailing lists