arm: mach-k3: common: don't reconfigure background firewalls
authorManorit Chawdhry <m-chawdhry@ti.com>
Thu, 20 Apr 2023 11:46:24 +0000 (17:16 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 2 May 2023 18:24:36 +0000 (14:24 -0400)
commitb8ebf24e7f4afb5093a31bdf122e1ed0781e5c3c
tree07b479ec3a39749bbae8b27e22eb26d303e7f12d
parentfdb051ba3f791cd0cdc035b715509dd9dd17cb8e
arm: mach-k3: common: don't reconfigure background firewalls

K3 devices have some firewalls set up by ROM that we usually remove so
that the development is easy in HS devices.

While removing the firewalls disabling a background region before
disabling the foreground regions keeps the firewall in a state where all
the transactions will be blacklisted until all the regions are disabled.
This causes a race for some other entity trying to access that memory
region before all the firewalls are disabled and causes an exception.

Since the background regions configured by ROM are in such a manner
that they allow all transactions, don't touch the background regions at
all.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common.h