From nobody Wed Dec 17 08:58:21 2025 Received: from ni.piap.pl (ni.piap.pl [195.187.100.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 791DD28031A; Fri, 9 May 2025 09:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.187.100.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746782821; cv=none; b=BTytdxy4ONIcuxaNOcoXLUR8ZsONP75j77vK39uBOnrn9pGDGN8yUmFfF0pMj4q6nn5ZGa/xUIk5iCtWn2IGb8Wd+6BnnplOQs28pD4Ev1lfOojKO2ECOFECk3u5lLPMxoYZEVGZ7Be2HxV2/tlVVdSlXnyBzZIGds0hsJjSXgQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746782821; c=relaxed/simple; bh=SOJyVp7M79mYTH2ICW1jzFJq6b++cdAYlf8m+j+m270=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HPe+IzePwqNhaS2CWFh0MDAlKzzLJprXhVleRGs+kEV90uGdv47pUPwb9SqHb91qNI5nQqEosVdpSF43w8Hti53VlCKr/hq8weLex48fBX57VtSVgHN3G7AYiY/KJiPyjR7tqlkkO+W4X5mrbTpcDmG+vzxSsjo8GdD7G5RIP9w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=piap.pl; spf=pass smtp.mailfrom=piap.pl; arc=none smtp.client-ip=195.187.100.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=piap.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=piap.pl Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPS id C88F3C405A46; Fri, 9 May 2025 11:26:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl C88F3C405A46 From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Shawn Guo , Sascha Hauer Cc: Ulf Hansson , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , linux-pm@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] imx8m-blk-ctrl: set ISI panic write hurry level Sender: khalasa@piap.pl Date: Fri, 09 May 2025 11:26:55 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Apparently, ISI needs cache settings similar to LCDIF. Otherwise we get artefacts in the image. Tested on i.MX8MP. Signed-off-by: Krzysztof Ha=C5=82asa diff --git a/drivers/pmdomain/imx/imx8m-blk-ctrl.c b/drivers/pmdomain/imx/i= mx8m-blk-ctrl.c index 912802b5215b..5c83e5599f1e 100644 --- a/drivers/pmdomain/imx/imx8m-blk-ctrl.c +++ b/drivers/pmdomain/imx/imx8m-blk-ctrl.c @@ -665,6 +665,11 @@ static const struct imx8m_blk_ctrl_data imx8mn_disp_bl= k_ctl_dev_data =3D { #define LCDIF_1_RD_HURRY GENMASK(15, 13) #define LCDIF_0_RD_HURRY GENMASK(12, 10) =20 +#define ISI_CACHE_CTRL 0x50 +#define ISI_V_WR_HURRY GENMASK(28, 26) +#define ISI_U_WR_HURRY GENMASK(25, 23) +#define ISI_Y_WR_HURRY GENMASK(22, 20) + static int imx8mp_media_power_notifier(struct notifier_block *nb, unsigned long action, void *data) { @@ -694,6 +699,11 @@ static int imx8mp_media_power_notifier(struct notifier= _block *nb, regmap_set_bits(bc->regmap, LCDIF_ARCACHE_CTRL, FIELD_PREP(LCDIF_1_RD_HURRY, 7) | FIELD_PREP(LCDIF_0_RD_HURRY, 7)); + /* Same here for ISI */ + regmap_set_bits(bc->regmap, ISI_CACHE_CTRL, + FIELD_PREP(ISI_V_WR_HURRY, 7) | + FIELD_PREP(ISI_U_WR_HURRY, 7) | + FIELD_PREP(ISI_Y_WR_HURRY, 7)); } =20 return NOTIFY_OK; --=20 Krzysztof "Chris" Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa