linux-stable/drivers
Nicholas Kazlauskas de1af9af37 drm/amd/display: Workaround register access in idle race with cursor
[ Upstream commit b5b6d62515 ]

[Why]
Cursor update can be pre-empted by a request for setting target flip
submission.

This causes an issue where we're in the middle of the exit sequence
trying to log to DM, but the pre-emption starts another DMCUB
command submission that requires being out of idle.

The DC lock aqusition can fail, and depending on the DM/OS interface
it's possible that the function inserted into this thread must not fail.

This means that lock aqusition must be skipped and exit *must* occur.

[How]
Modify when we consider idle as active. Consider it exited only once
the exit has fully finished.

Consider it as entered prior to actual notification.

Since we're on the same core/thread the cached values are coherent
and we'll see that we still need to exit. Once the cursor update resumes
it'll continue doing the double exit but this won't cause a functional
issue, just a (potential) redundant operation.

Reviewed-by: Duncan Ma <duncan.ma@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-27 13:52:15 +02:00
..
accel
accessibility speakup: Fix sizeof() vs ARRAY_SIZE() bug 2024-05-30 09:43:58 +02:00
acpi ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7 2024-06-27 13:52:14 +02:00
amba
android binder: fix max_thread type inconsistency 2024-05-25 16:30:54 +02:00
ata ata: libata-core: Add ATA_HORKAGE_NOLPM for AMD Radeon S3 SSD 2024-06-21 14:40:32 +02:00
atm
auxdisplay
base drivers: core: synchronize really_probe() and dev_uevent() 2024-06-21 14:40:28 +02:00
bcma
block null_blk: Print correct max open zones limit in null_init_zoned_dev() 2024-06-21 14:40:32 +02:00
bluetooth Bluetooth: ath3k: Fix multiple issues reported by checkpatch.pl 2024-06-27 13:52:15 +02:00
bus
cache
cdrom
cdx
char tpm_tis: Do *not* flush uninitialized work 2024-06-16 13:51:06 +02:00
clk clk: sifive: Do not register clkdevs for PRCI clocks 2024-06-21 14:40:17 +02:00
clocksource
comedi
connector
counter
cpufreq cpufreq: amd-pstate: remove global header file 2024-06-21 14:40:00 +02:00
cpuidle
crypto crypto: hisilicon/qm - Add the err memory release process to qm uninit 2024-06-27 13:52:11 +02:00
cxl cxl/region: Fix memregion leaks in devm_cxl_add_region() 2024-06-21 14:40:15 +02:00
dax dax/bus.c: use the right locking mode (read vs write) in size_show 2024-05-30 09:44:59 +02:00
dca
devfreq
dio
dma dmaengine: axi-dmac: fix possible race in remove() 2024-06-21 14:40:34 +02:00
dma-buf dma-buf: handle testing kthreads creation failure 2024-06-21 14:40:33 +02:00
dpll dpll: fix return value check for kmemdup 2024-05-30 09:44:39 +02:00
edac EDAC/igen6: Convert PCIBIOS_* return codes to errnos 2024-06-16 13:51:13 +02:00
eisa
extcon extcon: max8997: select IRQ_DOMAIN instead of depending on it 2024-06-12 11:39:18 +02:00
firewire
firmware LoongArch: Fix entry point in kernel image header 2024-06-16 13:51:03 +02:00
fpga fpga: region: add owner module and take its refcount 2024-06-12 11:39:13 +02:00
fsi
gnss
gpio gpio: tqmx86: fix broken IRQ_TYPE_EDGE_BOTH interrupt type 2024-06-21 14:40:18 +02:00
gpu drm/amd/display: Workaround register access in idle race with cursor 2024-06-27 13:52:15 +02:00
greybus greybus: Fix use-after-free bug in gb_interface_release due to race condition. 2024-06-21 14:40:38 +02:00
hid HID: asus: fix more n-key report descriptors if n-key quirked 2024-06-27 13:52:14 +02:00
hsi
hte
hv
hwmon hwmon: (ltc2992) Fix memory leak in ltc2992_parse_dt() 2024-06-16 13:51:12 +02:00
hwspinlock
hwtracing intel_th: pci: Add Lunar Lake support 2024-06-21 14:40:37 +02:00
i2c i2c: designware: Fix the functionality flags of the slave-only interface 2024-06-21 14:40:39 +02:00
i3c i3c: master: svc: fix invalidate IBI type and miss call client IBI handler 2024-06-16 13:51:12 +02:00
idle
iio iio: invensense: fix interrupt timestamp alignment 2024-06-21 14:40:35 +02:00
infiniband inet: introduce dst_rtable() helper 2024-06-12 11:39:55 +02:00
input Input: cyapa - add missing input core locking to suspend/resume functions 2024-06-12 11:39:31 +02:00
interconnect interconnect: qcom: qcm2290: Fix mas_snoc_bimc QoS port assignment 2024-06-12 11:39:09 +02:00
iommu iommu/amd: Fix sysfs leak in iommu init 2024-06-21 14:40:19 +02:00
ipack
irqchip irqchip/gic-v3-its: Fix potential race condition in its_vlpi_prop_update() 2024-06-21 14:40:30 +02:00
isdn
leds leds: class: Revert: "If no default trigger is given, make hw_control trigger the default trigger" 2024-06-21 14:40:27 +02:00
macintosh macintosh/via-macii: Fix "BUG: sleeping function called from invalid context" 2024-05-30 09:44:27 +02:00
mailbox mailbox: mtk-cmdq: Fix pm_runtime_get_sync() warning in mbox shutdown 2024-06-12 11:39:25 +02:00
mcb
md dm-integrity: set discard_granularity to logical block size 2024-06-21 14:40:34 +02:00
media media: v4l: async: Fix notifier list entry init 2024-06-16 13:50:59 +02:00
memory
memstick
message
mfd
misc misc: microchip: pci1xxxx: Fix a memory leak in the error handling of gp_aux_bus_probe() 2024-06-21 14:40:39 +02:00
mmc mmc: sdhci-acpi: Add quirk to enable pull-up on the card-detect GPIO on Asus T100TA 2024-06-16 13:51:00 +02:00
most
mtd mtd: rawnand: hynix: fixed typo 2024-05-30 09:44:43 +02:00
mux
net net: ena: Add validation for completion descriptors consistency 2024-06-27 13:52:15 +02:00
nfc
ntb
nubus
nvdimm
nvme nvmet-passthru: propagate status from id override functions 2024-06-21 14:40:24 +02:00
nvmem
of of: module: add buffer overflow check in of_modalias() 2024-05-30 09:45:00 +02:00
opp
parisc
parport
pci PCI: rockchip-ep: Remove wrong mask on subsys_vendor_id 2024-06-21 14:40:34 +02:00
pcmcia
peci
perf perf/arm-dmc620: Fix lockdep assert in ->event_init() 2024-06-12 11:39:37 +02:00
phy phy: qcom: qmp-combo: fix sm8650 voltage swing table 2024-06-12 11:39:27 +02:00
pinctrl pinctrl: qcom: pinctrl-sm7150: Fix sdc1 and ufs special pins regs 2024-06-12 11:39:16 +02:00
platform platform/chrome: cros_usbpd_notify: provide ID table for avoiding fallback match 2024-06-27 13:52:12 +02:00
pmdomain pmdomain: ti-sci: Fix duplicate PD referrals 2024-06-21 14:40:37 +02:00
pnp
power power: supply: core: simplify charge_behaviour formatting 2024-05-30 09:44:52 +02:00
powercap
pps
ps3
ptp ptp: Fix error message on failed pin verification 2024-06-21 14:40:07 +02:00
pwm pwm: meson: Use mul_u64_u64_div_u64() for frequency calculating 2024-05-30 09:44:28 +02:00
rapidio
ras RAS/AMD/ATL: Use system settings for MI300 DRAM to normalized address translation 2024-06-21 14:40:28 +02:00
regulator regulator: tps6594-regulator: Correct multi-phase configuration 2024-06-12 11:39:41 +02:00
remoteproc remoteproc: k3-r5: Jump to error handling labels in start/stop errors 2024-06-21 14:40:38 +02:00
reset
rpmsg
rtc
s390 s390/ap: Fix crash in AP internal function modify_bitmap() 2024-06-16 13:51:11 +02:00
sbus
scsi scsi: qedi: Fix crash while reading debugfs attribute 2024-06-27 13:52:13 +02:00
sh
siox
slimbus slimbus: qcom-ngd-ctrl: Add timeout for wait operation 2024-05-03 07:30:32 +02:00
soc soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request 2024-06-16 13:50:56 +02:00
soundwire soundwire: cadence: fix invalid PDI offset 2024-06-12 11:39:08 +02:00
spi spi: stm32: Don't warn about spurious interrupts 2024-06-12 11:39:54 +02:00
spmi spmi: hisi-spmi-controller: Do not override device identifier 2024-06-21 14:40:33 +02:00
ssb ssb: Fix potential NULL pointer dereference in ssb_device_uevent() 2024-06-27 13:52:12 +02:00
staging greybus: arche-ctrl: move device table to its right location 2024-06-12 11:39:09 +02:00
target
tc
tee
thermal thermal: core: Do not fail cdev registration because of invalid initial state 2024-06-21 14:40:21 +02:00
thunderbolt thunderbolt: debugfs: Fix margin debugfs node creation condition 2024-06-21 14:40:13 +02:00
tty serial: 8250_dw: Don't use struct dw8250_data outside of 8250_dw 2024-06-21 14:40:38 +02:00
ufs scsi: ufs: core: Quiesce request queues before checking pending cmds 2024-06-21 14:40:24 +02:00
uio
usb usb-storage: alauda: Check whether the media is initialized 2024-06-21 14:40:39 +02:00
vdpa
vfio vfio/pci: fix potential memory leak in vfio_intx_enable() 2024-06-12 11:39:13 +02:00
vhost
video fbdev: savage: Handle err return when savagefb_check_var failed 2024-06-16 13:51:01 +02:00
virt drivers/virt/acrn: fix PFNMAP PTE checks in acrn_vm_ram_map() 2024-05-30 09:44:58 +02:00
virtio virtio: delete vq in vp_find_vqs_msix() when request_irq() fails 2024-06-12 11:39:42 +02:00
w1
watchdog watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin 2024-06-16 13:51:08 +02:00
xen drivers/xen: Improve the late XenStore init protocol 2024-06-12 11:39:43 +02:00
zorro
Kconfig
Makefile