[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210308205456.1317366-1-zackr@vmware.com>
Date: Mon, 8 Mar 2021 15:54:54 -0500
From: Zack Rusin <zackr@...are.com>
To: <linux-kernel@...r.kernel.org>
CC: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, Will Deacon <will@...nel.org>,
Martin Krastev <krastevm@...are.com>,
Roland Scheidegger <sroland@...are.com>,
<dri-devel@...ts.freedesktop.org>
Subject: [PATCH 0/2] locking/rwsem: Add down_write_interruptible and use it
vmwgfx has really ugly implemention of an interruptible lock trying
to match rw sem semantics. By adding a small bit of code implementing
down_write_interruptible to rwsem which already supported
down_read_interruptible we can completely remove all of the custom
code from vmwgfx.
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: Will Deacon <will@...nel.org>
Cc: Martin Krastev <krastevm@...are.com>
Cc: Roland Scheidegger <sroland@...are.com>
Cc: linux-kernel@...r.kernel.org
Cc: dri-devel@...ts.freedesktop.org
Zack Rusin (2):
locking/rwsem: Add down_write_interruptible
drm/vmwgfx: Remove custom locking code
drivers/gpu/drm/vmwgfx/Makefile | 2 +-
drivers/gpu/drm/vmwgfx/ttm_lock.c | 194 ----------------
drivers/gpu/drm/vmwgfx/ttm_lock.h | 218 ------------------
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 24 +-
drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 4 +-
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 57 +----
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 32 ++-
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 4 +-
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 10 +-
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 8 +-
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 4 +-
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 8 +-
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 4 +-
.../gpu/drm/vmwgfx/vmwgfx_simple_resource.c | 4 +-
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 16 +-
include/linux/rwsem.h | 1 +
kernel/locking/rwsem.c | 23 ++
17 files changed, 98 insertions(+), 515 deletions(-)
delete mode 100644 drivers/gpu/drm/vmwgfx/ttm_lock.c
delete mode 100644 drivers/gpu/drm/vmwgfx/ttm_lock.h
--
2.27.0
Powered by blists - more mailing lists