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.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -277,6 +277,9 @@ · 276 unmodified lines | ||
| 277 | 277 | #define INFRA_TOPAXI_PROTECTEN_SET 0x0260 |
| 278 | 278 | #define INFRA_TOPAXI_PROTECTEN_CLR 0x0264 |
| 279 | 279 | |
| 280 | +#define MT8192_INFRA_CTRL 0x290 | |
| 281 | +#define MT8192_INFRA_CTRL_DISABLE_MFG2ACP BIT(9) | |
| 282 | + | |
| 280 | 283 | #define REG_INFRA_MISC 0xf00 |
| 281 | 284 | #define F_DDR_4GB_SUPPORT_EN BIT(13) |
| 282 | 285 | |