[PATCH v3 5/8] iommu/arm-smmu-qcom: Consistently initialize stream mappings

Sai Prakash Ranjan saiprakash.ranjan at codeaurora.org
Fri Sep 11 04:26:29 EDT 2020


On 2020-09-04 21:25, Bjorn Andersson wrote:
> Firmware that traps writes to S2CR to translate BYPASS into FAULT also
> ignores writes of type FAULT. As such booting with "disable_bypass" set
> will result in all S2CR registers left as configured by the bootloader.
> 
> This has been seen to result in indeterministic results, as these
> mappings might linger and reference context banks that Linux is
> reconfiguring.
> 
> Use the fact that BYPASS writes result in FAULT type to force all 
> stream
> mappings to FAULT.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson at linaro.org>
> ---

Reviewed-by: Sai Prakash Ranjan <saiprakash.ranjan at codeaurora.org>
Tested-by: Sai Prakash Ranjan <saiprakash.ranjan at codeaurora.org>


-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a 
member
of Code Aurora Forum, hosted by The Linux Foundation



More information about the linux-arm-kernel mailing list