linux-yocto/drivers
Alex Deucher 25e07c8403 drm/amdgpu: fix pm notifier handling
commit 4aaffc85751da5722e858e4333e8cf0aa4b6c78f upstream.

Set the s3/s0ix and s4 flags in the pm notifier so that we can skip
the resource evictions properly in pm prepare based on whether
we are suspending or hibernating.  Drop the eviction as processes
are not frozen at this time, we we can end up getting stuck trying
to evict VRAM while applications continue to submit work which
causes the buffers to get pulled back into VRAM.

v2: Move suspend flags out of pm notifier (Mario)

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4178
Fixes: 2965e6355dcd ("drm/amd: Add Suspend/Hibernate notification callback support")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 06f2dcc241e7e5c681f81fbc46cacdf4bfd7d6d7)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-22 14:29:54 +02:00
..
accel accel/ivpu: Fix fw log printing 2025-05-22 14:29:53 +02:00
accessibility
acpi ACPI: PPTT: Fix processor subtable walk 2025-05-22 14:29:46 +02:00
amba
android binder: fix offset calculation in debug log 2025-05-09 09:50:29 +02:00
ata ata: libata-scsi: Fix ata_msense_control_ata_feature() 2025-05-02 07:59:09 +02:00
atm
auxdisplay auxdisplay: hd44780: Fix an API misuse in hd44780.c 2025-04-20 10:15:31 +02:00
base x86/its: Enable Indirect Target Selection mitigation 2025-05-18 08:24:59 +02:00
bcma
block loop: Add sanity check for read/write_iter 2025-05-18 08:24:56 +02:00
bluetooth Bluetooth: btnxpuart: Fix kernel panic during FW release 2025-05-22 14:29:53 +02:00
bus bus: mhi: host: Fix race between unprepare and queue_buf 2025-04-20 10:15:42 +02:00
cache
cdrom
cdx cdx: Fix possible UAF error in driver_override_show() 2025-03-13 13:02:15 +01:00
char tpm: Mask TPM RC in tpm2_start_auth_session() 2025-05-22 14:29:50 +02:00
clk clk: check for disabled clock-provider in of_clk_get_hw_from_clkspec() 2025-05-02 07:59:15 +02:00
clocksource clocksource/i8253: Use raw_spinlock_irqsave() in clockevent_i8253_disable() 2025-05-18 08:24:54 +02:00
comedi comedi: jr3_pci: Fix synchronous deletion of timer 2025-05-02 07:59:30 +02:00
connector
counter counter: microchip-tcb-capture: Fix undefined counter channel state on probe 2025-04-07 10:08:36 +02:00
cpufreq cpufreq: Fix setting policy limits when frequency tables are used 2025-05-09 09:50:35 +02:00
cpuidle cpuidle: teo: Update documentation after previous changes 2025-01-23 17:22:49 +01:00
crypto crypto: ccp - Add support for PCI device 0x1134 2025-05-02 07:59:14 +02:00
cxl cxl/core/regs.c: Skip Memory Space Enable check for RCD and RCH Ports 2025-05-02 07:59:08 +02:00
dax
dca
devfreq
dio
dma dmaengine: idxd: Refactor remove call with idxd_cleanup() helper 2025-05-22 14:29:52 +02:00
dma-buf dma-buf: insert memory barrier before updating num_fences 2025-05-22 14:29:47 +02:00
dpll dpll: fix xa_alloc_cyclic() error handling 2025-03-28 22:03:27 +01:00
edac EDAC/altera: Set DDR and SDMMC interrupt mask before registration 2025-05-09 09:50:30 +02:00
eisa
extcon
firewire firewire: test: Fix potential null dereference in firewire kunit test 2025-02-08 09:57:57 +01:00
firmware firmware: arm_scmi: Fix timeout checks on polling path 2025-05-18 08:24:46 +02:00
fpga
fsi
gnss
gpio gpio: pca953x: fix IRQ storm on system wake up 2025-05-22 14:29:46 +02:00
gpu drm/amdgpu: fix pm notifier handling 2025-05-22 14:29:54 +02:00
greybus greybus: gb-beagleplay: Add error handling for gb_greybus_init 2025-04-10 14:39:22 +02:00
hid HID: bpf: abort dispatch if device destroyed 2025-05-22 14:29:44 +02:00
hsi HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition 2025-04-20 10:16:02 +02:00
hte
hv Drivers: hv: vmbus: Remove vmbus_sendpacket_pagebuffer() 2025-05-22 14:29:48 +02:00
hwmon hwmon: (nct6775-core) Fix out of bounds access for NCT679{8,9} 2025-04-10 14:39:31 +02:00
hwspinlock
hwtracing coresight-etm4x: add isb() before reading the TRCSTATR 2025-04-10 14:39:22 +02:00
i2c i2c: imx-lpi2c: Fix clock count when probe defers 2025-05-09 09:50:31 +02:00
i3c i3c: master: svc: Add support for Nuvoton npcm845 i3c 2025-05-02 07:59:18 +02:00
idle intel_idle: Handle older CPUs, which stop the TSC in deeper C states, correctly 2025-03-07 18:25:42 +01:00
iio iio: light: opt3001: fix deadlock due to concurrent flag access 2025-05-22 14:29:53 +02:00
infiniband RDMA/core: Fix "KASAN: slab-use-after-free Read in ib_register_device" problem 2025-05-22 14:29:39 +02:00
input Input: synaptics - enable InterTouch on TUXEDO InfinityBook Pro 14 v5 2025-05-18 08:24:51 +02:00
interconnect
iommu iommu/vt-d: Apply quirk_iommu_igfx for 8086:0044 (QM57/QS57) 2025-05-09 09:50:34 +02:00
ipack
irqchip irqchip/qcom-mpm: Prevent crash when trying to handle non-wake GPIOs 2025-05-09 09:50:31 +02:00
isdn
leds leds: rgb: leds-qcom-lpg: Fix calculation of best period Hi-Res PWMs 2025-04-20 10:15:44 +02:00
macintosh
mailbox mailbox: pcc: Always clear the platform ack interrupt first 2025-05-02 07:59:16 +02:00
mcb mcb: fix a double free bug in chameleon_parse_gdd() 2025-05-02 07:59:08 +02:00
md dm: add missing unlock on in dm_keyslot_evict() 2025-05-18 08:24:46 +02:00
media media: i2c: imx214: Fix uninitialized variable in imx214_set_ctrl() 2025-05-02 07:59:32 +02:00
memory memory: omap-gpmc: drop no compatible check 2025-04-10 14:39:31 +02:00
memstick memstick: rtsx_usb_ms: Fix slab-use-after-free in rtsx_usb_ms_drv_remove 2025-04-07 10:08:36 +02:00
message
mfd mfd: ene-kb3930: Fix a potential NULL pointer dereference 2025-04-20 10:15:44 +02:00
misc objtool, lkdtm: Obfuscate the do_nothing() pointer 2025-05-02 07:59:20 +02:00
mmc mmc: renesas_sdhi: Fix error handling in renesas_sdhi_probe 2025-05-09 09:50:32 +02:00
most
mtd mtd: rawnand: Add status chack in r852_ready() 2025-04-20 10:15:45 +02:00
mux
net net: qede: Initialize qede_ll_ops with designated initializer 2025-05-22 14:29:50 +02:00
nfc
ntb ntb_hw_amd: Add NTB PCI ID for new gen CPU 2025-05-02 07:59:20 +02:00
nubus
nvdimm
nvme nvme-pci: acquire cq_poll_lock in nvme_poll_irqdisable 2025-05-22 14:29:41 +02:00
nvmem nvmem: imx-ocotp-ele: set word length to 1 2025-02-17 10:05:38 +01:00
of of: resolver: Fix device node refcount leakage in of_resolve_phandles() 2025-05-02 07:58:55 +02:00
opp OPP: OF: Fix an OF node leak in _opp_add_static_v2() 2025-02-08 09:57:10 +01:00
parisc
parport serial: 8250_pci: Share WCH IDs with parport_serial driver 2025-02-21 14:01:25 +01:00
pci s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs 2025-05-18 08:24:47 +02:00
pcmcia
peci
perf perf/dwc_pcie: fix some unreleased resources 2025-04-20 10:15:11 +02:00
phy phy: tegra: xusb: remove a stray unlock 2025-05-22 14:29:54 +02:00
pinctrl pinctrl: imx: Return NULL if no group is matched and found 2025-05-09 09:50:36 +02:00
platform platform/x86: asus-wmi: Fix wlan_ctrl_by_user detection 2025-05-22 14:29:35 +02:00
pmdomain pmdomain: amlogic: fix T7 ISP secpower 2025-03-28 22:03:31 +01:00
pnp
power power: supply: max77693: Fix wrong conversion of charge input threshold value 2025-04-10 14:39:20 +02:00
powercap powercap: call put_device() on an error path in powercap_register_control_type() 2025-03-22 12:54:14 -07:00
pps pps: Fix a use-after-free 2025-02-08 09:58:16 +01:00
ps3
ptp ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations 2025-05-09 09:50:47 +02:00
pwm pwm: fsl-ftm: Handle clk_get_rate() returning 0 2025-04-20 10:15:28 +02:00
rapidio rapidio: fix an API misues when rio_add_net() fails 2025-03-13 13:01:58 +01:00
ras RAS/AMD/FMPM: Get masked address 2025-04-25 10:47:56 +02:00
regulator regulator: max20086: fix invalid memory access 2025-05-22 14:29:42 +02:00
remoteproc remoteproc: qcom_q6v5_mss: Handle platforms with one power domain 2025-04-10 14:39:19 +02:00
reset reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device 2025-01-23 17:22:52 +01:00
rpmsg
rtc rtc: pcf85063: do a SW reset if POR failed 2025-05-02 07:59:21 +02:00
s390 s390/tty: Fix a potential memory leak bug 2025-05-02 07:59:16 +02:00
sbus
scsi scsi: sd_zbc: block: Respect bio vector limits for REPORT ZONES buffer 2025-05-22 14:29:49 +02:00
sh
siox
slimbus slimbus: messaging: Free transaction ID in delayed interrupt scenario 2025-03-13 13:02:16 +01:00
soc soc: qcom: ice: introduce devm_of_qcom_ice_get 2025-05-02 07:58:52 +02:00
soundwire soundwire: slave: fix an OF node reference leak in soundwire slave device 2025-04-10 14:39:22 +02:00
spi spi: tegra114: Use value to check for invalid delays 2025-05-22 14:29:49 +02:00
spmi
ssb
staging staging: axis-fifo: Correct handling of tx_fifo_depth for size validation 2025-05-18 08:24:51 +02:00
target scsi: target: spc: Fix RSOC parameter data header size 2025-04-20 10:15:17 +02:00
tc
tee tee: optee: Fix supplicant wait loop 2025-02-27 04:30:21 -08:00
thermal thermal/drivers/mediatek/lvts: Disable Stage 3 thermal threshold 2025-04-20 10:16:00 +02:00
thunderbolt thunderbolt: Scan retimers after device router has been enumerated 2025-05-02 07:59:19 +02:00
tty serial: sifive: lock port in startup()/shutdown() callbacks 2025-05-02 07:59:11 +02:00
ufs scsi: ufs: core: Remove redundant query_complete trace 2025-05-09 09:50:43 +02:00
uio uio_hv_generic: Fix sysfs creation path for ring buffer 2025-05-22 14:29:36 +02:00
usb usb: typec: ucsi: displayport: Fix deadlock 2025-05-22 14:29:53 +02:00
vdpa vdpa/mlx5: Fix oversized null mkey longer than 32bit 2025-04-20 10:15:42 +02:00
vfio vfio/pci: Align huge faults to order 2025-05-18 08:24:47 +02:00
vhost vhost-scsi: Fix vhost_scsi_send_status() 2025-05-02 07:59:01 +02:00
video backlight: led_bl: Hold led_access lock when calling led_sysfs_disable() 2025-04-20 10:15:46 +02:00
virt drivers: virt: acrn: hsm: Use kzalloc to avoid info leak in pmcmd_ioctl 2025-03-13 13:02:16 +01:00
virtio virtio_ring: add a func argument 'recycle_done' to virtqueue_reset() 2025-05-22 14:29:38 +02:00
w1 w1: fix NULL pointer dereference in probe 2025-04-10 14:39:22 +02:00
watchdog watchdog: rti_wdt: Fix an OF node leak in rti_wdt_probe() 2025-02-08 09:57:54 +01:00
xen xenbus: Use kref to track req lifetime 2025-05-18 08:24:54 +02:00
zorro
Kconfig
Makefile