soc: mediatek: mtk-infracfg: Disable ACP on MT8192
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 15 Feb 2022 18:46:51 +0000 (13:46 -0500)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 1 Mar 2022 07:21:28 +0000 (08:21 +0100)
commitdcfd5192563909219f6304b4e3e10db071158eef
treecfa8074622cc7db199b0572206f965b22cd92634
parent15f1768365aed810826a61fef4a744437aa5b426
soc: mediatek: mtk-infracfg: Disable ACP on MT8192

MT8192 contains an experimental Accelerator Coherency Port
implementation, which does not work correctly but was unintentionally
enabled by default. For correct operation of the GPU, we must set a
chicken bit disabling ACP on MT8192.

Adapted from the following downstream change to the out-of-tree, legacy
Mali GPU driver:

https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2781271/5

Note this change is required for both Panfrost and the legacy kernel
driver.

Co-developed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Cc: Nick Fan <Nick.Fan@mediatek.com>
Cc: Nicolas Boichat <drinkcat@chromium.org>
Cc: Chen-Yu Tsai <wenst@chromium.org>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220215184651.12168-1-alyssa.rosenzweig@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-infracfg.c
include/linux/soc/mediatek/infracfg.h