Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea7342c2 authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Gerrit - the friendly Code Review server
Browse files

iommu/arm-smmu: Disable default bypass mode



Make sure HLOS sets the USFCFG bit in the non-secure CR0
register, irrespective of if Hyp sets it or not. Setting
this bit will make unidentified stream faults of non-secure
stream IDs to be capture as global fault by the SMMU.

Change-Id: I6bdf22036ae0b12d428f3d8dcacca8b88e2ce67f
Signed-off-by: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
parent e729e468
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ static int force_stage;
module_param(force_stage, int, S_IRUGO);
MODULE_PARM_DESC(force_stage,
	"Force SMMU mappings to be installed at a particular stage of translation. A value of '1' or '2' forces the corresponding stage. All other values are ignored (i.e. no stage is forced). Note that selecting a specific stage will disable support for nested translation.");
static bool disable_bypass;
static bool disable_bypass = true;
module_param(disable_bypass, bool, S_IRUGO);
MODULE_PARM_DESC(disable_bypass,
	"Disable bypass streams such that incoming transactions from devices that are not attached to an iommu domain will report an abort back to the device and will not be allowed to pass through the SMMU.");