linux-stable/drivers/soc/ti
Tony Lindgren 7078a5ba7a soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1
We have rst_map_012 used for various accelerators like dsp, ipu and iva.
For these use cases, we have rstctrl bit 2 control the subsystem module
reset, and have and bits 0 and 1 control the accelerator specific
features.

If the bootloader, or kexec boot, has left any accelerator specific
reset bits deasserted, deasserting bit 2 reset will potentially enable
an accelerator with unconfigured MMU and no firmware. And we may get
spammed with a lot by warnings on boot with "Data Access in User mode
during Functional access", or depending on the accelerator, the system
can also just hang.

This issue can be quite easily reproduced by setting a rst_map_012 type
rstctrl register to 0 or 4 in the bootloader, and booting the system.

Let's just assert all reset bits for rst_map_012 type resets. So far
it looks like the other rstctrl types don't need this. If it turns out
that the other type rstctrl bits also need reset on init, we need to
add an instance specific reset mask for the bits to avoid resetting
unwanted bits.

Reported-by: Carl Philipp Klemm <philipp@uvos.xyz>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: Suman Anna <s-anna@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Tested-by: Carl Philipp Klemm <philipp@uvos.xyz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2020-12-30 10:47:26 +02:00
..
k3-ringacc.c soc: ti: k3: ringacc: add am65x sr2.0 support 2020-09-11 21:34:17 -07:00
k3-socinfo.c soc: ti: k3-socinfo: Add entry for J7200 2020-09-11 21:47:39 -07:00
Kconfig soc: ti: pruss: Enable support for ICSSG subsystems on K3 AM65x SoCs 2020-09-11 21:43:36 -07:00
knav_dma.c soc: ti: Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-20 19:30:30 -07:00
knav_qmss.h soc: ti: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
knav_qmss_acc.c soc: TI knav_qmss: make symbol 'knav_acc_range_ops' static 2020-07-24 14:47:10 -07:00
knav_qmss_queue.c soc: ti: Convert to DEFINE_SHOW_ATTRIBUTE 2020-09-20 19:30:30 -07:00
Makefile ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
omap_prm.c soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1 2020-12-30 10:47:26 +02:00
pm33xx.c soc: ti: pm33xx: Simplify RTC usage to prepare to drop platform data 2020-08-24 08:38:32 +03:00
pruss.c soc: ti: pruss: support CORECLK_MUX and IEPCLK_MUX 2020-09-11 21:47:10 -07:00
smartreflex.c PM: AVS: smartreflex Move driver to soc specific drivers 2020-10-16 18:28:43 +02:00
ti_sci_inta_msi.c soc: ti: Add MSI domain bus support for Interrupt Aggregator 2019-05-01 10:49:17 +01:00
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: check for proper args count in xlate 2020-10-29 22:13:38 +01:00
wkup_m3_ipc.c soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot 2019-12-17 15:18:36 -08:00