diff options
author | Vladimir Lypak <vladimir.lypak@gmail.com> | 2021-12-12 16:03:17 +0000 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-12-17 15:09:46 -0800 |
commit | 6ed95285382d6f90a3c3a11d5806a5eb7db715c3 (patch) | |
tree | 801c2ec474a82a10eb60f304e71ac90b8fdec304 /arch/mips/sni | |
parent | 6bf7805321b96e4144c1232d7c3f66b2dce35761 (diff) | |
download | linux-6ed95285382d6f90a3c3a11d5806a5eb7db715c3.tar.bz2 |
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: Vladimir Lypak <vladimir.lypak@gmail.com>
Link: https://lore.kernel.org/r/20211212160333.980343-2-vladimir.lypak@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'arch/mips/sni')
0 files changed, 0 insertions, 0 deletions