diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2023-06-22 11:27:39 +0200 |
---|---|---|
committer | Will Deacon <[email protected]> | 2023-08-09 12:44:28 +0100 |
commit | 9f3fef23d9b5a858a6e6d5f478bb1b6b76265e76 (patch) | |
tree | 4293d384acdfd438f79bb9e527c7528bdd19cfcf /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | fcf226f1f7083cba76af47bf8dd764b68b149cd2 (diff) |
iommu/qcom: Disable and reset context bank before programming
Writing the new TTBRs, TCRs and MAIRs on a previously enabled
context bank may trigger a context fault, resulting in firmware
driven AP resets: change the domain initialization programming
sequence to disable the context bank(s) and to also clear the
related fault address (CB_FAR) and fault status (CB_FSR)
registers before writing new values to TTBR0/1, TCR/TCR2, MAIR0/1.
Fixes: 0ae349a0f33f ("iommu/qcom: Add qcom_iommu")
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions