openwrt/target/linux/lantiq/patches-5.10
Thomas Nixon d3b47909b1 lantiq: nand: don't yield while holding spinlock
The nand driver normally while waiting for the device to become ready;
this is normally fine, but xway_nand holds the ebu_lock spinlock, and
this can cause lockups if other threads which use ebu_lock are
interleaved. Fix this by waiting instead of polling.

This mainly showed up as crashes in ath9k_pci_owl_loader (see
https://github.com/openwrt/openwrt/issues/9829 ), but turning on
spinlock debugging shows this happening in other places too.

This doesn't seem to measurably impact boot time.

Tested on bt_homehub-v5a with 5.10 and 5.15.

Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
[Add commit description into patch]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-04-02 17:08:45 +02:00
..
0001-MIPS-lantiq-add-pcie-driver.patch
0004-MIPS-lantiq-add-atm-hack.patch
0008-MIPS-lantiq-backport-old-timer-code.patch
0018-MTD-nand-lots-of-xrx200-fixes.patch
0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
0023-NET-PHY-add-led-support-for-intel-xway.patch
0028-NET-lantiq-various-etop-fixes.patch
0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch
0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch
0042-arch-mips-increase-io_space_limit.patch
0050-USB-DWC2-make-the-lantiq-settings-match-vendor-drive.patch
0051-MIPS-lantiq-improve-USB-initialization.patch
0101-find_active_root.patch
0151-lantiq-ifxmips_pcie-use-of.patch
0152-lantiq-VPE.patch
0154-lantiq-pci-bar11mask-fix.patch
0155-lantiq-VPE-nosmp.patch
0160-owrt-lantiq-multiple-flash.patch
0300-MTD-cfi-cmdset-0001-disable-buffered-writes.patch
0301-xrx200-add-gphy-clk-src-device-tree-binding.patch
0310-v5.16-MIPS-lantiq-dma-make-the-burst-length-configurable-b.patch
0320-v6.1-MIPS-lantiq-enable-all-hardware-interrupts-on-second.patch
0400-mtd-rawnand-xway-don-t-yield-while-holding-spinlock.patch lantiq: nand: don't yield while holding spinlock 2023-04-02 17:08:45 +02:00
0701-NET-lantiq-etop-of-mido.patch
0702-v5.16-net-lantiq-add-support-for-jumbo-frames.patch
0703-v5.16-net-lantiq_xrx200-increase-buffer-reservation.patch
0704-v5.17-net-lantiq_xrx200-add-ingress-SG-DMA-support.patch
0705-v5.13-net-dsa-lantiq-allow-to-use-all-GPHYs-on-xRX300-and-.patch
0706-v5.18-net-lantiq-enable-jumbo-frames-on-GSWIP.patch
0710-v5.16-net-lantiq-configure-the-burst-length-in-ethernet-dr.patch
0711-v5.16-net-lantiq_xrx200-Hardcode-the-burst-length-value.patch
0712-v5.16-net-ethernet-lantiq_etop-Fix-compilation-error.patch
0713-v5.17-MIPS-lantiq-dma-increase-descritor-count.patch
0714-v5.17-net-lantiq_xrx200-increase-napi-poll-weigth.patch
0715-v5.17-net-lantiq_xrx200-convert-to-build_skb.patch
0716-v5.17-net-lantiq_xrx200-fix-use-after-free-bug.patch
0717-v6.0-net-lantiq_xrx200-confirm-skb-is-allocated-before-us.patch
0718-v6.0-net-lantiq_xrx200-fix-lock-under-memory-pressure.patch
0719-v6.0-net-lantiq_xrx200-restore-buffer-if-memory-allocatio.patch