WSL2-Linux-Kernel/drivers
Tim Huang 8660495a9c drm/amdgpu: skip mes self test after s0i3 resume for MES IP v11.0
MES is part of gfxoff and MES suspend and resume are skipped for S0i3.
But the mes_self_test call path is still in the amdgpu_device_ip_late_init.
it's should also be skipped for s0ix as no hardware re-initialization
happened.

Besides, mes_self_test will free the BO that triggers a lot of warning
messages while in the suspend state.

[   81.656085] WARNING: CPU: 2 PID: 1550 at drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:425 amdgpu_bo_free_kernel+0xfc/0x110 [amdgpu]
[   81.679435] Call Trace:
[   81.679726]  <TASK>
[   81.679981]  amdgpu_mes_remove_hw_queue+0x17a/0x230 [amdgpu]
[   81.680857]  amdgpu_mes_self_test+0x390/0x430 [amdgpu]
[   81.681665]  mes_v11_0_late_init+0x37/0x50 [amdgpu]
[   81.682423]  amdgpu_device_ip_late_init+0x53/0x280 [amdgpu]
[   81.683257]  amdgpu_device_resume+0xae/0x2a0 [amdgpu]
[   81.684043]  amdgpu_pmops_resume+0x37/0x70 [amdgpu]
[   81.684818]  pci_pm_resume+0x5c/0xa0
[   81.685247]  ? pci_pm_thaw+0x90/0x90
[   81.685658]  dpm_run_callback+0x4e/0x160
[   81.686110]  device_resume+0xad/0x210
[   81.686529]  async_resume+0x1e/0x40
[   81.686931]  async_run_entry_fn+0x33/0x120
[   81.687405]  process_one_work+0x21d/0x3f0
[   81.687869]  worker_thread+0x4a/0x3c0
[   81.688293]  ? process_one_work+0x3f0/0x3f0
[   81.688777]  kthread+0xff/0x130
[   81.689157]  ? kthread_complete_and_exit+0x20/0x20
[   81.689707]  ret_from_fork+0x22/0x30
[   81.690118]  </TASK>
[   81.690380] ---[ end trace 0000000000000000 ]---

v2: make the comment clean and use adev->in_s0ix instead of
adev->suspend

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.0, 6.1
2022-12-20 13:23:05 -05:00
..
accel accel: add dedicated minor for accelerator devices 2022-11-22 13:14:44 +02:00
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block block-6.1-2022-11-18 2022-11-18 13:59:45 -08:00
bluetooth
bus
cdrom
char
clk Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
fpga
fsi
gnss
gpio
gpu drm/amdgpu: skip mes self test after s0i3 resume for MES IP v11.0 2022-12-20 13:23:05 -05:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
input Input updates for v6.1-rc5 2022-11-18 17:56:29 -08:00
interconnect
iommu iommu/vt-d: Set SRE bit only when hardware has SRS cap 2022-11-19 10:46:52 +01:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md block-6.1-2022-11-18 2022-11-18 13:59:45 -08:00
media Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
memory memory: tegra: Add API for retrieving carveout bounds 2022-11-25 16:14:58 +01:00
memstick
message
mfd
misc Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme block-6.1-2022-11-18 2022-11-18 13:59:45 -08:00
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 SCSI fixes on 20221119 2022-11-19 15:51:22 -08:00
sbus
scsi SCSI fixes on 20221119 2022-11-19 15:51:22 -08:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
target scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus() 2022-11-17 17:46:16 +00:00
tc
tee
thermal
thunderbolt
tty TTY/Serial driver fixes for 6.1-rc6 2022-11-18 10:59:52 -08:00
ufs
uio
usb USB-serial fixes for 6.1-rc6 2022-11-17 22:06:28 +01:00
vdpa
vfio
vhost
video Some deferred-io and damage worker reworks revert and make a fb function 2022-12-09 11:53:52 +10:00
virt
virtio
vlynq
w1
watchdog
xen Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
zorro
Kconfig drivers/accel: define kconfig and register a new major 2022-11-22 13:13:51 +02:00
Makefile