Skip to content
Snippets Groups Projects
Commit 6ed95285 authored by Vladimir Lypak's avatar Vladimir Lypak Committed by Rob Clark
Browse files

drm/msm/a5xx: Fix missing CP_PROTECT for SMMU on A540


A CP_PROTECT entry for SMMU registers is missing for A540. According to
downstream sources its length is same as on A530 - 0x20000 bytes.

On all other revisions SMMU region length is 0x10000 bytes. Despite
this, we setup region of length 0x20000 on all revisions. This doesn't
cause any issues on those GPUs. As for preventing accesses to the region
from protected mode it was tested to work the same.

This patch drops the "if" condition in setup of CP_PROTECT entry because
it already includes all supported revisions except A540.

Signed-off-by: default avatarVladimir Lypak <vladimir.lypak@gmail.com>
Link: https://lore.kernel.org/r/20211212160333.980343-2-vladimir.lypak@gmail.com


Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 6bf78053
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment