From 8a998b5aca3ca895a7722e7496a7fd18cd838f94 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Mon, 3 Oct 2022 19:26:33 +0800 Subject: [PATCH] fix(mt8186-emi-mpu): fix SCP permission Hardware video decoding is not working after enabling EMI MPU protection for SCP. According to coreboot DEVAPC setting, SCP belongs to domain 4 instead of domain 3. So correct the permission setting. BUG=b:249954378 TEST=play video and see codec irq count is incrementing. Signed-off-by: Yidi Lin Change-Id: If71de3eabf8682909f96924c159aa92f25deb96c --- plat/mediatek/mt8186/drivers/emi_mpu/emi_mpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/mediatek/mt8186/drivers/emi_mpu/emi_mpu.c b/plat/mediatek/mt8186/drivers/emi_mpu/emi_mpu.c index a183483ee..f2864a190 100644 --- a/plat/mediatek/mt8186/drivers/emi_mpu/emi_mpu.c +++ b/plat/mediatek/mt8186/drivers/emi_mpu/emi_mpu.c @@ -105,8 +105,8 @@ void emi_mpu_init(void) SET_ACCESS_PERMISSION(region_info.apc, 1, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, - FORBIDDEN, FORBIDDEN, FORBIDDEN, FORBIDDEN, - NO_PROTECTION, FORBIDDEN, FORBIDDEN, NO_PROTECTION); + FORBIDDEN, FORBIDDEN, FORBIDDEN, NO_PROTECTION, + FORBIDDEN, FORBIDDEN, FORBIDDEN, NO_PROTECTION); emi_mpu_set_protection(®ion_info); /* DSP protect address */