Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp504201pxm; Fri, 25 Feb 2022 12:25:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJylY1jaPSewZLxWMi9U4XLuzohgMjxDGMXk5jv6nK42kP11DB5UlcBv63Z8EcEIUcF3RRM/ X-Received: by 2002:a17:902:7b81:b0:14f:1b7e:c83c with SMTP id w1-20020a1709027b8100b0014f1b7ec83cmr9227885pll.119.1645820759175; Fri, 25 Feb 2022 12:25:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645820759; cv=none; d=google.com; s=arc-20160816; b=HilzCTMhkCwNZ8lmklaJVCxZIVu8Y9cSJVFJbWRZuuRxUQMGVpBja+IyMeBaXEHY1I jBcSX9BBtvLG9agnagHWj3JmUBHcygfSbg4nxhMt3AXVD3ioDzmhENI4JWKbRe+5jA16 X049i3XfYS9p/eNlKfNVX0KDWEFgMFnn33zIwKvPcw+iUGCaJ1r78sDLCqhWMEPaOhJk 9LeseSbw6Qi5W8+ZVSemrHBAyOFJIa/6/mBy3JKsiWwrv11UyskJWWsjHHkotGfbOM6F 3zZgXTve3CldDV3u6x+9pAuVs5FS61/lIBAmvyXSuxIjWCFehChWCKlHZhCCU/N3sl9r k/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=xrJ6J5cXoE1P+zeuLCSh07y8wD000HDFNJVmifeF2XE=; b=M4gFcbpm0J8eoYAa1yRjSDbSPzgJ9gC3m8wFfdhZ72mq0FNa50vF0DjCqEB1aZd12V Bq9jjQqgWgnsbeFunrZc0niuVHImhFYdiELUza6jUURJgWY7+VVU3KooJmKQw4GHTYYy q+yX8d9Ed6Qj+9HqXvQiq4/UiTe8zGK6Ser2bDmpTIHFIowUesaaYVcFh5lPgTgItzJ3 IdmV1kSLjSKVsMBxtWEfK5cQ0I0RawFjlWzycOigDQTI9k60oilOT7/ysZyJHBkeYbKA myPKummZ6Kn00khIPNJdXhCfLwF8N5R9fSrFO/KK0RUezsTk5qInlx4SRFPWxkRPtO4i Rx+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a170902db0300b0014fd360c0d0si3033586plx.517.2022.02.25.12.25.43; Fri, 25 Feb 2022 12:25:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243421AbiBYQ7g (ORCPT + 99 others); Fri, 25 Feb 2022 11:59:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240859AbiBYQ7e (ORCPT ); Fri, 25 Feb 2022 11:59:34 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA2E1A7DBA for ; Fri, 25 Feb 2022 08:59:02 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNdvk-0004kZ-Pg; Fri, 25 Feb 2022 17:58:56 +0100 Message-ID: <919a0564850fbf4768e9d98c9beba60cc736077b.camel@pengutronix.de> Subject: Re: [PATCH] soc: imx: imx8m-blk-ctrl: Fix IMX8MN_DISPBLK_PD_ISI hang From: Lucas Stach To: Adam Ford , linux-arm-kernel@lists.infradead.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org Date: Fri, 25 Feb 2022 17:58:55 +0100 In-Reply-To: <20220225161741.395505-1-aford173@gmail.com> References: <20220225161741.395505-1-aford173@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, dem 25.02.2022 um 10:17 -0600 schrieb Adam Ford: > When attempting to communicate with the ISI, the system hangs. > Through trial and error, it appears removing the two root clocks > fixes the issues. Since IMX8MN_DISPBLK_PD_ISI enables the > pgc_dispmix, and pgc_dispmix enables those same root clocks, it should be > safe. > This doesn't look right. Why would this make a difference? The only difference is that those clocks may be disabled at the end of the power-up routine when they are assigned to the blk-ctrl domain. If ISI communication hangs while those clocks are disabled, then that is more of a hint for a missing clock enable on the ISI driver side than an issue on the blk-ctrl side. Regards, Lucas > Fixes: 7f511d514e8c ("soc: imx: imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl") > Signed-off-by: Adam Ford > > diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c > index 122f9c884b38..cacf379aef80 100644 > --- a/drivers/soc/imx/imx8m-blk-ctrl.c > +++ b/drivers/soc/imx/imx8m-blk-ctrl.c > @@ -574,9 +574,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mn_disp_blk_ctl_domain_data[] > }, > [IMX8MN_DISPBLK_PD_ISI] = { > .name = "dispblk-isi", > - .clk_names = (const char *[]){ "disp_axi", "disp_apb", "disp_axi_root", > - "disp_apb_root"}, > - .num_clks = 4, > + .clk_names = (const char *[]){ "disp_axi", "disp_apb" }, > + .num_clks = 2, > .gpc_name = "isi", > .rst_mask = BIT(6) | BIT(7), > .clk_mask = BIT(6) | BIT(7),