kernel: Fix ath79 DSP exception at bootup
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 2 Jul 2020 22:54:38 +0000 (00:54 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Jul 2020 14:04:21 +0000 (16:04 +0200)
commit4bb5e331a781c2d4f3040c70df328b1ef90f1871
tree905f699a5d39534033b40d3cf28cad0f0e79f57f
parent3b0f698760ae3a62173a28f18e9e1e3adef9c492
kernel: Fix ath79 DSP exception at bootup

This resolves a hazard between a mtc0 and a mfc0 instruction after
activating the DSP support. Without this fix the CPU could use the old
value again and the DSP support would not be active.

Fixes: FS#2928, FS#2899
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [ath79/tl-wdr3600; ath79/tl-wdr4300]
Tested-by: David Bauer <mail@david-bauer.net> [ocedo_koala/ocedo_raccoon]
target/linux/generic/pending-4.19/350-MIPS-Add-missing-EHB-in-mtc0-mfc0-sequence-for-DSPen.patch [new file with mode: 0644]
target/linux/generic/pending-5.4/350-MIPS-Add-missing-EHB-in-mtc0-mfc0-sequence-for-DSPen.patch [new file with mode: 0644]