Chris Wilson
c35de2e005
drm/i915/execlists: Fix annotation for decoupling virtual request
[ Upstream commit 08ad9a3846fc72b047b110b36d162ffbcf298fa2 ]
As we may signal a request and take the engine->active.lock within the
signaler, the engine submission paths have to use a nested annotation on
their requests -- but we guarantee that we can never submit on the same
engine as the signaling fence.
<4>[ 723.763281] WARNING: possible circular locking dependency detected
<4>[ 723.763285] 5.3.0-g80fa0e042cdb-drmtip_379+ #1 Tainted: G U
<4>[ 723.763288] ------------------------------------------------------
<4>[ 723.763291] gem_exec_await/1388 is trying to acquire lock:
<4>[ 723.763294] ffff93a7b53221d8 (&engine->active.lock){..-.}, at: execlists_submit_request+0x2b/0x1e0 [i915]
<4>[ 723.763378]
but task is already holding lock:
<4>[ 723.763381] ffff93a7c25f6d20 (&i915_request_get(rq)->submit/1){-.-.}, at: __i915_sw_fence_complete+0x1b2/0x250 [i915]
<4>[ 723.763420]
which lock already depends on the new lock.
<4>[ 723.763423]
the existing dependency chain (in reverse order) is:
<4>[ 723.763427]
-> #2 (&i915_request_get(rq)->submit/1){-.-.}:
<4>[ 723.763434] _raw_spin_lock_irqsave_nested+0x39/0x50
<4>[ 723.763478] __i915_sw_fence_complete+0x1b2/0x250 [i915]
<4>[ 723.763513] intel_engine_breadcrumbs_irq+0x3aa/0x5e0 [i915]
<4>[ 723.763600] cs_irq_handler+0x49/0x50 [i915]
<4>[ 723.763659] gen11_gt_irq_handler+0x17b/0x280 [i915]
<4>[ 723.763690] gen11_irq_handler+0x54/0xf0 [i915]
<4>[ 723.763695] __handle_irq_event_percpu+0x41/0x2d0
<4>[ 723.763699] handle_irq_event_percpu+0x2b/0x70
<4>[ 723.763702] handle_irq_event+0x2f/0x50
<4>[ 723.763706] handle_edge_irq+0xee/0x1a0
<4>[ 723.763709] do_IRQ+0x7e/0x160
<4>[ 723.763712] ret_from_intr+0x0/0x1d
<4>[ 723.763717] __slab_alloc.isra.28.constprop.33+0x4f/0x70
<4>[ 723.763720] kmem_cache_alloc+0x28d/0x2f0
<4>[ 723.763724] vm_area_dup+0x15/0x40
<4>[ 723.763727] dup_mm+0x2dd/0x550
<4>[ 723.763730] copy_process+0xf21/0x1ef0
<4>[ 723.763734] _do_fork+0x71/0x670
<4>[ 723.763737] __se_sys_clone+0x6e/0xa0
<4>[ 723.763741] do_syscall_64+0x4f/0x210
<4>[ 723.763744] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4>[ 723.763747]
-> #1 (&(&rq->lock)->rlock#2){-.-.}:
<4>[ 723.763752] _raw_spin_lock+0x2a/0x40
<4>[ 723.763789] __unwind_incomplete_requests+0x3eb/0x450 [i915]
<4>[ 723.763825] __execlists_submission_tasklet+0x9ec/0x1d60 [i915]
<4>[ 723.763864] execlists_submission_tasklet+0x34/0x50 [i915]
<4>[ 723.763874] tasklet_action_common.isra.5+0x47/0xb0
<4>[ 723.763878] __do_softirq+0xd8/0x4ae
<4>[ 723.763881] irq_exit+0xa9/0xc0
<4>[ 723.763883] smp_apic_timer_interrupt+0xb7/0x280
<4>[ 723.763887] apic_timer_interrupt+0xf/0x20
<4>[ 723.763892] cpuidle_enter_state+0xae/0x450
<4>[ 723.763895] cpuidle_enter+0x24/0x40
<4>[ 723.763899] do_idle+0x1e7/0x250
<4>[ 723.763902] cpu_startup_entry+0x14/0x20
<4>[ 723.763905] start_secondary+0x15f/0x1b0
<4>[ 723.763908] secondary_startup_64+0xa4/0xb0
<4>[ 723.763911]
-> #0 (&engine->active.lock){..-.}:
<4>[ 723.763916] __lock_acquire+0x15d8/0x1ea0
<4>[ 723.763919] lock_acquire+0xa6/0x1c0
<4>[ 723.763922] _raw_spin_lock_irqsave+0x33/0x50
<4>[ 723.763956] execlists_submit_request+0x2b/0x1e0 [i915]
<4>[ 723.764002] submit_notify+0xa8/0x13c [i915]
<4>[ 723.764035] __i915_sw_fence_complete+0x81/0x250 [i915]
<4>[ 723.764054] i915_sw_fence_wake+0x51/0x64 [i915]
<4>[ 723.764054] __i915_sw_fence_complete+0x1ee/0x250 [i915]
<4>[ 723.764054] dma_i915_sw_fence_wake_timer+0x14/0x20 [i915]
<4>[ 723.764054] dma_fence_signal_locked+0x9e/0x1c0
<4>[ 723.764054] dma_fence_signal+0x1f/0x40
<4>[ 723.764054] vgem_fence_signal_ioctl+0x67/0xc0 [vgem]
<4>[ 723.764054] drm_ioctl_kernel+0x83/0xf0
<4>[ 723.764054] drm_ioctl+0x2f3/0x3b0
<4>[ 723.764054] do_vfs_ioctl+0xa0/0x6f0
<4>[ 723.764054] ksys_ioctl+0x35/0x60
<4>[ 723.764054] __x64_sys_ioctl+0x11/0x20
<4>[ 723.764054] do_syscall_64+0x4f/0x210
<4>[ 723.764054] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4>[ 723.764054]
other info that might help us debug this:
<4>[ 723.764054] Chain exists of:
&engine->active.lock --> &(&rq->lock)->rlock#2 --> &i915_request_get(rq)->submit/1
<4>[ 723.764054] Possible unsafe locking scenario:
<4>[ 723.764054] CPU0 CPU1
<4>[ 723.764054] ---- ----
<4>[ 723.764054] lock(&i915_request_get(rq)->submit/1);
<4>[ 723.764054] lock(&(&rq->lock)->rlock#2);
<4>[ 723.764054] lock(&i915_request_get(rq)->submit/1);
<4>[ 723.764054] lock(&engine->active.lock);
<4>[ 723.764054]
*** DEADLOCK ***
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111862
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
|
2020-01-09 10:20:06 +01:00 |
| .. |
|
accessibility
|
|
|
|
acpi
|
ACPI: sysfs: Change ACPI_MASKABLE_GPE_MAX to 0x100
|
2020-01-09 10:20:02 +01:00 |
|
amba
|
ARM updates for 5.4-rc:
|
2019-10-23 06:26:33 -04:00 |
|
android
|
binder: fix incorrect calculation for num_valid
|
2019-12-17 19:55:33 +01:00 |
|
ata
|
libata: Fix retrieving of active qcs
|
2020-01-09 10:19:59 +01:00 |
|
atm
|
|
|
|
auxdisplay
|
|
|
|
base
|
firmware_loader: Fix labels with comma for builtin firmware
|
2019-12-31 16:45:39 +01:00 |
|
bcma
|
|
|
|
block
|
xen-blkback: prevent premature module unload
|
2020-01-09 10:19:51 +01:00 |
|
bluetooth
|
Bluetooth: btusb: fix PM leak in error case of setup
|
2020-01-09 10:20:04 +01:00 |
|
bus
|
bus: ti-sysc: Fix watchdog quirk handling
|
2019-10-18 08:45:32 -07:00 |
|
cdrom
|
cdrom: respect device capabilities during opening action
|
2020-01-04 19:18:25 +01:00 |
|
char
|
tpm: fix invalid locking in NONBLOCKING mode
|
2019-12-31 16:45:52 +01:00 |
|
clk
|
clk: pxa: fix one of the pxa RTC clocks
|
2020-01-04 19:18:11 +01:00 |
|
clocksource
|
clocksource: riscv: add notrace to riscv_sched_clock
|
2020-01-09 10:19:59 +01:00 |
|
connector
|
|
|
|
counter
|
|
|
|
cpufreq
|
cpufreq: Register drivers only after CPU devices have been registered
|
2019-12-31 16:45:26 +01:00 |
|
cpuidle
|
cpuidle: use first valid target residency as poll time
|
2019-12-17 19:56:23 +01:00 |
|
crypto
|
crypto: vmx - Avoid weird build failures
|
2019-12-31 16:45:45 +01:00 |
|
dax
|
|
|
|
dca
|
|
|
|
devfreq
|
PM / devfreq: Check NULL governor in available_governors_show
|
2020-01-09 10:20:01 +01:00 |
|
dio
|
|
|
|
dma
|
dmaengine: virt-dma: Fix access after free in vchan_complete()
|
2020-01-09 10:20:00 +01:00 |
|
dma-buf
|
dma-buf: Fix memory leak in sync_file_merge()
|
2019-12-21 11:04:48 +01:00 |
|
edac
|
EDAC/ghes: Fix grain calculation
|
2019-12-31 16:45:16 +01:00 |
|
eisa
|
|
|
|
extcon
|
extcon: sm5502: Reset registers during initialization
|
2019-12-31 16:44:04 +01:00 |
|
firewire
|
|
|
|
firmware
|
firmware: arm_scmi: Avoid double free in error flow
|
2020-01-09 10:20:03 +01:00 |
|
fpga
|
|
|
|
fsi
|
fsi: core: Fix small accesses and unaligned offsets via sysfs
|
2019-12-31 16:45:09 +01:00 |
|
gnss
|
|
|
|
gpio
|
gpiolib: fix up emulated open drain outputs
|
2020-01-09 10:19:59 +01:00 |
|
gpu
|
drm/i915/execlists: Fix annotation for decoupling virtual request
|
2020-01-09 10:20:06 +01:00 |
|
greybus
|
|
|
|
hid
|
HID: i2c-hid: Reset ALPS touchpads on resume
|
2020-01-09 10:20:02 +01:00 |
|
hsi
|
|
|
|
hv
|
Drivers: hv: vmbus: Fix crash handler reset of Hyper-V synic
|
2020-01-04 19:18:21 +01:00 |
|
hwmon
|
hwmon: (ina3221) Fix read timeout issue
|
2019-10-28 18:46:55 -07:00 |
|
hwspinlock
|
|
|
|
hwtracing
|
intel_th: msu: Fix window switching without windows
|
2019-12-31 16:46:09 +01:00 |
|
i2c
|
i2c: stm32f7: fix & reorder remove & probe error handling
|
2020-01-04 19:17:27 +01:00 |
|
i3c
|
|
|
|
ide
|
|
|
|
idle
|
|
|
|
iio
|
iio: adc: max9611: Fix too short conversion time delay
|
2020-01-09 10:19:43 +01:00 |
|
infiniband
|
IB/mlx5: Fix steering rule of drop and count
|
2020-01-09 10:19:50 +01:00 |
|
input
|
Input: ili210x - handle errors from input_mt_init_slots()
|
2020-01-04 19:17:34 +01:00 |
|
interconnect
|
interconnect: qcom: qcs404: Walk the list safely on node removal
|
2019-12-17 19:55:39 +01:00 |
|
iommu
|
iommu/vt-d: Remove incorrect PSI capability check
|
2020-01-09 10:20:02 +01:00 |
|
ipack
|
|
|
|
irqchip
|
irqchip: ingenic: Error out if IRQ domain creation failed
|
2020-01-04 19:17:22 +01:00 |
|
isdn
|
net: use skb_queue_empty_lockless() in poll() handlers
|
2019-10-28 13:33:41 -07:00 |
|
leds
|
leds: trigger: netdev: fix handling on interface rename
|
2020-01-04 19:17:05 +01:00 |
|
lightnvm
|
|
|
|
macintosh
|
cpufreq: Use per-policy frequency QoS
|
2019-10-21 02:05:21 +02:00 |
|
mailbox
|
mailbox: imx: Fix Tx doorbell shutdown path
|
2020-01-04 19:18:30 +01:00 |
|
mcb
|
|
|
|
md
|
md: raid1: check rdev before reference in raid1_sync_request func
|
2020-01-09 10:19:48 +01:00 |
|
media
|
media: usb: fix memory leak in af9005_identify_state
|
2020-01-09 10:20:05 +01:00 |
|
memory
|
|
|
|
memstick
|
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'
|
2019-10-09 11:08:03 +02:00 |
|
message
|
|
|
|
mfd
|
mfd: mt6397: Fix probe after changing mt6397-core
|
2019-10-24 08:49:25 +01:00 |
|
misc
|
habanalabs: skip VA block list update in reset flow
|
2020-01-04 19:18:18 +01:00 |
|
mmc
|
mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
|
2020-01-04 19:19:19 +01:00 |
|
mtd
|
mtd: rawnand: Change calculating of position page containing BBM
|
2019-12-17 19:55:54 +01:00 |
|
mux
|
|
|
|
net
|
ath9k_htc: Discard undersized packets
|
2020-01-09 10:20:06 +01:00 |
|
nfc
|
NFC: nxp-nci: Fix probing without ACPI
|
2019-12-31 16:41:49 +01:00 |
|
ntb
|
|
|
|
nubus
|
|
|
|
nvdimm
|
libnvdimm/btt: fix variable 'rc' set but not used
|
2020-01-04 19:18:12 +01:00 |
|
nvme
|
nvme/pci: Fix read queue count
|
2020-01-09 10:19:43 +01:00 |
|
nvmem
|
nvmem: imx-ocotp: reset error status on probe
|
2019-12-31 16:44:42 +01:00 |
|
of
|
of: overlay: add_changeset_property() memory leak
|
2020-01-09 10:20:03 +01:00 |
|
opp
|
opp: Reinitialize the list_kref before adding the static OPPs again
|
2019-10-23 10:58:44 +05:30 |
|
oprofile
|
|
|
|
parisc
|
parisc: Remove 32-bit DMA enforcement from sba_iommu
|
2019-10-14 21:44:26 +02:00 |
|
parport
|
parport: load lowlevel driver if ports not found
|
2019-12-31 16:45:25 +01:00 |
|
pci
|
PCI: Add a helper to check Power Resource Requirements _PR3 existence
|
2020-01-09 10:19:52 +01:00 |
|
pcmcia
|
|
|
|
perf
|
|
|
|
phy
|
phy: renesas: rcar-gen3-usb2: Use platform_get_irq_optional() for optional irq
|
2020-01-09 10:20:05 +01:00 |
|
pinctrl
|
pinctrl: baytrail: Really serialize all register accesses
|
2019-12-31 16:46:12 +01:00 |
|
platform
|
platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table
|
2020-01-09 10:20:03 +01:00 |
|
pnp
|
|
|
|
power
|
power: supply: cpcap-battery: Check voltage before orderly_poweroff
|
2019-12-31 16:44:12 +01:00 |
|
powercap
|
|
|
|
pps
|
|
|
|
ps3
|
|
|
|
ptp
|
ptp: fix the race between the release of ptp_clock and cdev
|
2020-01-04 19:18:48 +01:00 |
|
pwm
|
pwm: bcm-iproc: Prevent unloading the driver module while in use
|
2019-11-08 18:38:06 +01:00 |
|
rapidio
|
|
|
|
ras
|
|
|
|
regulator
|
regulator: ab8500: Remove AB8505 USB regulator
|
2020-01-09 10:20:04 +01:00 |
|
remoteproc
|
|
|
|
reset
|
reset: fix of_reset_control_get_count kerneldoc comment
|
2019-10-24 10:26:33 +02:00 |
|
rpmsg
|
rpmsg: glink: Free pending deferred work on remove
|
2019-12-21 11:04:41 +01:00 |
|
rtc
|
rtc: disable uie before setting time and enable after
|
2019-12-17 19:56:52 +01:00 |
|
s390
|
s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR
|
2020-01-04 19:18:27 +01:00 |
|
sbus
|
|
|
|
scsi
|
scsi: lpfc: Fix rpi release when deleting vport
|
2020-01-09 10:20:01 +01:00 |
|
sfi
|
|
|
|
sh
|
|
|
|
siox
|
|
|
|
slimbus
|
|
|
|
soc
|
soc: mediatek: cmdq: fixup wrong input order of write api
|
2019-12-13 08:42:40 +01:00 |
|
soundwire
|
soundwire: intel: fix PDI/stream mapping for Bulk
|
2019-12-31 16:45:11 +01:00 |
|
spi
|
spi: uniphier: Fix FIFO threshold
|
2020-01-09 10:20:04 +01:00 |
|
spmi
|
|
|
|
ssb
|
|
|
|
staging
|
staging/wlan-ng: add CRC32 dependency in Kconfig
|
2020-01-09 10:19:46 +01:00 |
|
target
|
scsi: target: iscsi: Wait for all commands to finish before freeing a session
|
2020-01-04 19:18:17 +01:00 |
|
tc
|
|
|
|
tee
|
|
|
|
thermal
|
thermal: Fix deadlock in thermal thermal_zone_device_check
|
2019-12-13 08:43:21 +01:00 |
|
thunderbolt
|
thunderbolt: Power cycle the router if NVM authentication fails
|
2019-12-04 22:30:50 +01:00 |
|
tty
|
tty: serial: msm_serial: Fix lockup for sysrq and oops
|
2020-01-09 10:20:05 +01:00 |
|
uio
|
|
|
|
usb
|
usb: gadget: fix wrong endpoint desc
|
2020-01-09 10:19:47 +01:00 |
|
vfio
|
vfio/pci: call irq_bypass_unregister_producer() before freeing irq
|
2019-12-21 11:04:48 +01:00 |
|
vhost
|
vhost/vsock: accept only packets with the right dst_cid
|
2020-01-04 19:19:18 +01:00 |
|
video
|
video/hdmi: Fix AVI bar unpack
|
2019-12-17 19:56:42 +01:00 |
|
virt
|
virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr
|
2019-10-10 14:50:32 +02:00 |
|
virtio
|
virtio-balloon: fix managed page counts when migrating pages between zones
|
2019-12-17 19:55:56 +01:00 |
|
visorbus
|
|
|
|
vlynq
|
|
|
|
vme
|
|
|
|
w1
|
w1: ds250x: Fix build error without CRC16
|
2019-10-10 15:35:41 +02:00 |
|
watchdog
|
watchdog: tqmx86_wdt: Fix build error
|
2020-01-09 10:20:03 +01:00 |
|
xen
|
xen/balloon: fix ballooned page accounting without hotplug enabled
|
2020-01-09 10:19:51 +01:00 |
|
zorro
|
|
|
|
Kconfig
|
|
|
|
Makefile
|
|
|