linux/drivers
Thomas Zimmermann ec144244a4 drm/gem-shmem: Acquire reservation lock in GEM pin/unpin callbacks
Export drm_gem_shmem_pin_locked() and acquire the reservation lock
directly in GEM pin callback. Same for unpin. Prepares for further
changes.

Dma-buf locking semantics require callers to hold the buffer's
reservation lock when invoking the pin and unpin callbacks. Prepare
gem-shmem accordingly by pushing locking out of the implementation.
A follow-up patch will fix locking for all GEM code at once.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> # virtio-gpu
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240227113853.8464-2-tzimmermann@suse.de
2024-03-11 13:33:50 +01:00
..
accel Merge drm/drm-next into drm-misc-next 2024-02-26 14:20:50 +01:00
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire
firmware firmware/sysfb: fix an error code in sysfb_init() 2024-02-27 09:21:06 +01:00
fpga
fsi
gnss
gpio
gpu drm/gem-shmem: Acquire reservation lock in GEM pin/unpin callbacks 2024-03-11 13:33:50 +01:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh macintosh/via-pmu-backlight: Include <linux/backlight.h> 2024-03-07 13:33:34 +01:00
mailbox
mcb
md
media Linux 6.8-rc6 2024-02-26 11:41:07 +01:00
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging staging/fbtft: Include <linux/backlight.h> 2024-02-28 09:59:27 +01:00
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb
vdpa
vfio
vhost
video fbdev/chipsfb: Include <linux/backlight.h> 2024-03-07 13:33:34 +01:00
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile