feat(k3low): optimize firewall configuration to minimize boot timeCurrently, ROM configured firewalls are removed during SOC init forAM62L by iterating over all regions of the firewalls and then t
feat(k3low): optimize firewall configuration to minimize boot timeCurrently, ROM configured firewalls are removed during SOC init forAM62L by iterating over all regions of the firewalls and then takingaction if they are active. In this process, we end up making anunnecessarily large number of TISCI calls, which negatively impacts theboot time.Instead, pre-determine the list of firewall IDs and respective regionsconfigured by ROM, and add a static table to only re-configure thoseregions. This greatly reduces the number of TISCI calls we are making,and hence minimizes boot time impact.While re-configuring, set a permissive background firewall enablingaccess to everyone. This is equivalent to keeping them disabled.However, when going into low-power modes, TIFS doesn't save context fordisabled firewalls. It only concerns itself with enabled firewalls.Hence, if we disable them instead, ROM comes up again in the resumesequence to make the same configurations. By keeping the firewallsenabled, TIFS will save their context during suspend, and handle theirrestoration during resume, thereby undoing anything ROM had done inresume. This is neater and faster than TF-A itself handling the firewallconfiguration again in resume.Change-Id: I9ba7fa112a8d10f08f887fbb5a13e33177d60a80Signed-off-by: T Pratham <t-pratham@ti.com>
show more ...
feat(k3low): re-configure firewalls for TI AM62LIn TI AM62L SoC, some of the firewalls are configured by ROM duringboot, or are at their default configurations. These firewalls are notnecessary a
feat(k3low): re-configure firewalls for TI AM62LIn TI AM62L SoC, some of the firewalls are configured by ROM duringboot, or are at their default configurations. These firewalls are notnecessary after the boot phase. For an HS-SE(SECURE ENFORCED) typedevice, where the security goals are fully enforced, this causesfirewall exception when those regions are accessed from non-secure A53core.This commit adds changes to properly configure firewalls for AM62L SoCinitialization to remove the appropriate firewalls. A similar approachis used for some other K3 TI SoCs, but in U-Boot. This code is based onthe U-Boot K3 firewall disabling code. Link:https://github.com/u-boot/u-boot/blob/f9ffeec4bdcf1da655a0ffea482062adde78fee8/arch/arm/mach-k3/r5/common.c#L282Change-Id: I6dd81d0544e181a58ce963ff9d724f465c764da0Signed-off-by: T Pratham <t-pratham@ti.com>