linux/drivers
Paloma Arellano 14f109bf74 drm/msm/dpu: Add mutex lock in control vblank irq
[ Upstream commit 45284ff733 ]

Add a mutex lock to control vblank irq to synchronize vblank
enable/disable operations happening from different threads to prevent
race conditions while registering/unregistering the vblank irq callback.

v4: -Removed vblank_ctl_lock from dpu_encoder_virt, so it is only a
    parameter of dpu_encoder_phys.
    -Switch from atomic refcnt to a simple int counter as mutex has
    now been added
v3: Mistakenly did not change wording in last version. It is done now.
v2: Slightly changed wording of commit message

Signed-off-by: Paloma Arellano <quic_parellan@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/571854/
Link: https://lore.kernel.org/r/20231212231101.9240-2-quic_parellan@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-02-05 20:17:00 +00:00
..
accel accel/habanalabs: fix information leak in sec_attest_info() 2024-01-25 15:45:06 -08:00
accessibility accessibility: speakup: refactor deprecated strncpy 2023-10-05 13:34:05 +02:00
acpi ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events 2024-02-05 20:16:46 +00:00
amba amba: bus: balance firmware node reference counting 2023-10-17 13:37:35 -05:00
android binder: fix race between mmput() and do_exit() 2024-01-25 15:45:09 -08:00
ata SCSI fixes on 20231130 2023-12-02 06:27:20 +09:00
atm atm: solos-pci: Fix potential deadlock on &tx_queue_lock 2023-12-09 21:17:45 +00:00
auxdisplay auxdisplay: panel: Replace deprecated strncpy() with strtomem_pad() 2023-09-29 14:48:31 -07:00
base arm64: irq: set the correct node for VMAP stack 2024-02-05 20:16:44 +00:00
bcma bcma: Add explicit of_device.h include 2023-04-14 15:32:56 +03:00
block block/rnbd-srv: Check for unlikely string overflow 2024-02-05 20:16:53 +00:00
bluetooth Bluetooth: qca: Set both WIDEBAND_SPEECH and LE_STATES quirks for QCA2066 2024-02-05 20:16:55 +00:00
bus bus: mhi: host: Add spinlock to protect WP access when queueing TREs 2024-01-31 16:20:56 -08:00
cache riscv: RISCV_NONSTANDARD_CACHE_OPS shouldn't depend on RISCV_DMA_NONCOHERENT 2023-10-26 09:42:37 +02:00
cdrom cdrom: Remove now superfluous sentinel element from ctl_table array 2023-10-02 20:04:58 -06:00
cdx cdx: Unlock on error path in rescan_store() 2024-01-25 15:45:25 -08:00
char hwrng: starfive - Fix dev_err_probe return error 2024-02-05 20:16:46 +00:00
clk clk: qcom: dispcc-sm8550: Use the correct PLL configuration function 2024-01-25 15:45:07 -08:00
clocksource clocksource/drivers/ep93xx: Fix error handling during probe 2024-01-25 15:45:10 -08:00
comedi comedi: add HAS_IOPORT dependencies again 2023-10-05 13:34:05 +02:00
connector connector: Fix proc_event_num_listeners count not cleared 2024-01-02 14:13:48 +00:00
counter First set of Counter fixes for 6.6 2023-10-02 13:13:15 +02:00
cpufreq cpufreq/amd-pstate: Fix setting scaling max/min freq values 2024-01-31 16:21:20 -08:00
cpuidle cpuidle: haltpoll: Do not enable interrupts when entering idle 2024-01-25 15:44:40 -08:00
crypto crypto: stm32/crc32 - fix parsing list of devices 2024-02-05 20:16:47 +00:00
cxl cxl/region:Fix overflow issue in alloc_hpa() 2024-01-31 16:21:20 -08:00
dax Many singleton patches against the MM code. The patch series which are 2023-11-02 19:38:47 -10:00
dca Mainly singleton patches all over the place. Series of note are: 2023-04-27 19:57:00 -07:00
devfreq PM / devfreq: Synchronize devfreq_monitor_[start/stop] 2024-02-05 20:16:46 +00:00
dio drivers: dio: fix possible memory leak in dio_init() 2022-11-09 15:12:37 +01:00
dma dmaengine: xilinx: xdma: Fix the count of elapsed periods in cyclic mode 2024-01-31 16:20:57 -08:00
dma-buf dma-buf: fix check in dma_resv_add_fence 2023-11-27 20:00:47 +01:00
dpll dpll: fix register pin with unregistered parent pin 2024-01-31 16:21:06 -08:00
edac EDAC/thunderx: Fix possible out-of-bounds string access 2024-01-25 15:44:37 -08:00
eisa EISA: Replace all non-returning strlcpy with strscpy 2023-07-27 10:04:42 -07:00
extcon extcon: realtek: add the error handler for nvmem_cell_read 2023-10-17 17:38:57 +09:00
firewire firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards 2024-01-05 21:28:08 +09:00
firmware firmware: arm_ffa: Check xa_load() return value 2024-01-31 16:21:19 -08:00
fpga Char/Misc and other driver changes for 6.7-rc1 2023-11-03 14:51:08 -10:00
fsi fsi: i2cr: Switch to use struct i2c_driver's .probe() 2023-08-22 15:51:33 +02:00
gnss driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
gpio gpio: eic-sprd: Clear interrupt after set the interrupt type 2024-01-31 16:21:19 -08:00
gpu drm/msm/dpu: Add mutex lock in control vblank irq 2024-02-05 20:17:00 +00:00
greybus greybus: gb-beagleplay: Remove use of pad bytes 2024-01-25 15:45:23 -08:00
hid HID: wacom: Correct behavior when processing some confidence == false touches 2024-01-25 15:45:17 -08:00
hsi hsi: omap_ssi: Explicitly include correct DT includes 2023-07-31 23:17:57 +02:00
hte hte: Changes for v6.7-rc1 2023-10-31 18:32:51 -10:00
hv TTY/Serial changes for 6.7-rc1 2023-11-03 15:44:25 -10:00
hwmon hwmon: (hp-wmi-sensors) Fix failure to load on EliteDesk 800 G6 2024-02-05 20:16:59 +00:00
hwspinlock hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation 2023-07-17 11:49:18 -07:00
hwtracing coresight: etm4x: Fix width of CCITMIN field 2024-01-20 11:53:02 +01:00
i2c i2c: s3c24xx: fix transferring more than one message in polling mode 2024-01-25 15:45:31 -08:00
i3c I3C for 6.7 2023-11-04 16:25:36 -10:00
idle x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram 2024-01-25 15:44:37 -08:00
iio iio: adc: ad7091r: Enable internal vref if external vref is not supplied 2024-01-31 16:20:57 -08:00
infiniband IB/ipoib: Fix mcast list locking 2024-02-05 20:16:59 +00:00
input Input: atkbd - use ab83 as id when skipping the getid command 2024-01-25 15:45:09 -08:00
interconnect interconnect: qcom: icc-rpm: Fix peak rate calculation 2023-12-06 17:00:42 +02:00
iommu iommu: Don't reserve 0-length IOVA region 2024-01-25 15:45:23 -08:00
ipack tty: make tty_operations::write()'s count size_t 2023-08-11 21:12:46 +02:00
irqchip - Flush the translation service tables to prevent unpredictable behavior 2023-11-19 13:49:32 -08:00
isdn hardening updates for v6.7-rc1 2023-10-30 19:09:55 -10:00
leds leds: aw200xx: Fix write to DIM parameter 2024-01-25 15:45:18 -08:00
macintosh powerpc updates for 6.7 2023-11-03 10:07:39 -10:00
mailbox Moving repo 2023-11-05 18:45:32 -08:00
mcb mcb: fix error handling for different scenarios when parsing 2023-10-21 23:04:02 +02:00
md md: Whenassemble the array, consult the superblock of the freshest device 2024-02-05 20:16:54 +00:00
media media: i2c: imx335: Fix hblank min/max values 2024-02-05 20:17:00 +00:00
memory IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
memstick memstick: jmb38x_ms: Annotate struct jmb38x_ms with __counted_by 2023-09-27 12:13:18 +02:00
message scsi: message: fusion: Initialize return value in mptfc_bus_reset() 2023-10-24 22:36:39 -04:00
mfd mfd: intel-lpss: Fix the fractional clock divider flags 2024-01-25 15:45:18 -08:00
misc misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write 2023-11-27 13:38:29 +00:00
mmc mmc: mmc_spi: remove custom DMA mapped buffers 2024-01-31 16:21:00 -08:00
most staging: most: Replace all non-returning strlcpy with strscpy 2023-06-01 07:07:37 -07:00
mtd mtd: rawnand: Clarify conditions to enable continuous reads 2024-01-31 16:20:55 -08:00
mux mux: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
net net: dsa: qca8k: put MDIO bus OF node on qca8k_mdio_register() failure 2024-02-05 20:16:56 +00:00
nfc nfc: virtual_ncidev: Add variable to check if ndev is running 2023-11-22 10:55:48 +00:00
ntb ntb: Check tx descriptors outstanding instead of head/tail for tx queue 2023-08-22 12:38:19 -04:00
nubus nubus: Don't list slot resources by default 2023-05-22 13:51:56 +02:00
nvdimm libnvdimm: remove kernel-doc warnings: 2023-10-18 09:48:05 -07:00
nvme nvmet-tcp: Fix the H2C expected PDU len calculation 2024-01-25 15:45:25 -08:00
nvmem nvmem: brcm_nvram: store a copy of NVRAM content 2023-12-15 13:15:02 +01:00
of of: unittest: Fix of_count_phandle_with_args() expected value message 2024-01-25 15:45:09 -08:00
opp OPP: The level field is always of unsigned int type 2024-02-05 20:16:46 +00:00
parisc parisc/power: Fix power soft-off button emulation on qemu 2024-01-31 16:20:56 -08:00
parport parport: parport_serial: Add Brainboxes device IDs and geometry 2024-01-20 11:53:02 +01:00
pci PCI: Add no PM reset quirk for NVIDIA Spectrum devices 2024-02-05 20:16:50 +00:00
pcmcia PCMCIA odd cleanups and fixes for v6.7-rc1 2023-11-07 16:40:42 -08:00
peci Update peci-next for v6.6-rc1 2023-08-08 10:53:30 +02:00
perf drivers/perf: pmuv3: don't expose SW_INCR event in sysfs 2024-02-05 20:16:44 +00:00
phy phy fixes for 6.7 2023-12-17 09:19:27 -08:00
pinctrl pinctrl: at91-pio4: use dedicated lock class for IRQ 2023-12-21 09:05:02 +01:00
platform platform/x86/intel/ifs: Call release_firmware() when handling errors. 2024-01-31 16:21:20 -08:00
pmdomain Power management fixes for 6.7-rc4 2023-12-02 09:01:00 +09:00
pnp PNP: ACPI: fix fortify warning 2024-02-05 20:16:45 +00:00
power power: supply: Fix null pointer dereference in smb2_probe 2024-01-25 15:45:23 -08:00
powercap powercap: DTPM: Fix missing cpufreq_cpu_put() calls 2023-12-05 20:51:24 +01:00
pps driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
ps3 driver/ps3: Include <video/cmdline.h> for mode parsing 2023-02-20 14:56:51 +01:00
ptp ptp: ocp: fix bug in unregistering the DPLL subsystem 2023-12-29 08:37:23 +00:00
pwm pwm: Fix out-of-bounds access in of_pwm_single_xlate() 2024-01-25 15:45:14 -08:00
rapidio rapidio: make all 'class' structures const 2023-10-05 13:51:35 +02:00
ras ras/debugfs: Fix error checking for debugfs_create_dir() 2023-05-16 21:12:23 +02:00
regulator regulator: core: Only increment use_count when enable_count changes 2024-02-05 20:16:45 +00:00
remoteproc remoteproc: st: Fix sometimes uninitialized ret in st_rproc_probe() 2023-10-16 11:24:34 -06:00
reset reset: Fix crash when freeing non-existent optional resets 2023-11-30 15:02:21 +01:00
rpmsg rpmsg: virtio: Free driver_override when rpmsg_remove() 2024-01-31 16:20:55 -08:00
rtc rtc: Extend timeout for waiting for UIP to clear to 1s 2024-01-31 16:21:02 -08:00
s390 s390/vfio-ap: fix sysfs status attribute for AP queue devices 2024-02-05 20:16:48 +00:00
sbus sbus: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
scsi scsi: hisi_sas: Set .phy_attached before notifing phyup event HISI_PHYE_PHY_UP_PM 2024-02-05 20:16:54 +00:00
sh sh: Remove superhyway bus support 2023-10-25 16:50:11 +02:00
siox siox: fix possible memory leak in siox_device_add() 2022-11-09 15:40:14 +01:00
slimbus driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
soc soc: xilinx: fix unhandled SGI warning message 2024-02-05 20:16:50 +00:00
soundwire soundwire: fix initializing sysfs for same devices on different buses 2024-01-31 16:20:53 -08:00
spi spi: fix finalize message on error return 2024-01-31 16:21:20 -08:00
spmi spmi: mtk-pmif: Serialize PMIF status check and command submission 2024-01-25 15:45:23 -08:00
ssb ssb: relax SSB_EMBEDDED dependencies 2023-10-19 10:26:26 +03:00
staging staging: vc04_services: Do not pass NULL to vchiq_log_error() 2024-01-25 15:45:20 -08:00
target scsi: target: core: add missing file_{start,end}_write() 2024-01-25 15:45:13 -08:00
tc The main MIPS changes for 5.6: 2020-01-31 11:28:31 -08:00
tee OP-TEE fix for supplicant based device enumeration 2023-12-06 16:15:26 +01:00
thermal thermal: core: Fix thermal zone suspend-resume synchronization 2024-02-05 20:16:46 +00:00
thunderbolt thunderbolt: Fix minimum allocated USB 3.x and PCIe bandwidth 2023-12-08 09:03:49 +02:00
tty serial: sc16is7xx: improve do/while loop in sc16is7xx_irq() 2024-01-31 16:21:04 -08:00
ufs scsi: ufs: core: Remove the ufshcd_hba_exit() call from ufshcd_async_scan() 2024-01-31 16:20:57 -08:00
uio uio: Fix use-after-free in uio_open 2024-01-20 11:53:01 +01:00
usb usb: xhci-mtk: fix a short packet issue of gen1 isoc-in transfer 2024-01-25 15:45:24 -08:00
vdpa vdpa: Fix an error handling path in eni_vdpa_probe() 2024-01-25 15:45:23 -08:00
vfio hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume 2024-01-25 15:45:25 -08:00
vhost virtio/vsock: send credit update during setting SO_RCVLOWAT 2024-01-25 15:44:52 -08:00
video fbdev: flush deferred IO before closing 2024-01-25 15:45:13 -08:00
virt configfs-tsm for v6.7 2023-11-04 15:58:13 -10:00
virtio virtio_ring: fix syncs DMA memory with different direction 2023-12-04 08:36:25 -05:00
w1 nvmem: add explicit config option to read old syntax fixed OF cells 2023-10-21 19:19:06 +02:00
watchdog watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused 2024-01-25 15:45:05 -08:00
xen xen/events: fix error code in xen_bind_pirq_msi_to_irq() 2023-11-28 12:48:27 +01:00
zorro zorro: Include zorro.h in names.c 2023-08-21 13:27:44 +02:00
Kconfig - removed AR7 platform support 2023-11-10 09:19:46 -08:00
Makefile - removed AR7 platform support 2023-11-10 09:19:46 -08:00