Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

imx8m-blk-ctrl: set ISI panic write hurry level

Apparently, ISI needs cache settings similar to LCDIF.
Otherwise we get artefacts in the image.
Tested on i.MX8MP.

Signed-off-by: Krzysztof Hałasa <khalasa@piap.pl>
Link: https://lore.kernel.org/r/m3ldr69lsw.fsf@t19.piap.pl
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Krzysztof Hałasa and committed by
Ulf Hansson
c01fba0b 3068b386

+10
+10
drivers/pmdomain/imx/imx8m-blk-ctrl.c
··· 665 665 #define LCDIF_1_RD_HURRY GENMASK(15, 13) 666 666 #define LCDIF_0_RD_HURRY GENMASK(12, 10) 667 667 668 + #define ISI_CACHE_CTRL 0x50 669 + #define ISI_V_WR_HURRY GENMASK(28, 26) 670 + #define ISI_U_WR_HURRY GENMASK(25, 23) 671 + #define ISI_Y_WR_HURRY GENMASK(22, 20) 672 + 668 673 static int imx8mp_media_power_notifier(struct notifier_block *nb, 669 674 unsigned long action, void *data) 670 675 { ··· 699 694 regmap_set_bits(bc->regmap, LCDIF_ARCACHE_CTRL, 700 695 FIELD_PREP(LCDIF_1_RD_HURRY, 7) | 701 696 FIELD_PREP(LCDIF_0_RD_HURRY, 7)); 697 + /* Same here for ISI */ 698 + regmap_set_bits(bc->regmap, ISI_CACHE_CTRL, 699 + FIELD_PREP(ISI_V_WR_HURRY, 7) | 700 + FIELD_PREP(ISI_U_WR_HURRY, 7) | 701 + FIELD_PREP(ISI_Y_WR_HURRY, 7)); 702 702 } 703 703 704 704 return NOTIFY_OK;