Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp379921pxb; Thu, 31 Mar 2022 07:31:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycTADPmkSQcR0R7X9V7AbR2bW90hjJzkP6U4/4RvkdNKfyzLaxEhSJW6OBiwYADwUmFOqQ X-Received: by 2002:a05:6a00:cc5:b0:4fb:4969:3eb with SMTP id b5-20020a056a000cc500b004fb496903ebmr5719946pfv.59.1648737074865; Thu, 31 Mar 2022 07:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648737074; cv=none; d=google.com; s=arc-20160816; b=l7iekW5T7R+IvDG0g529s5R8aK2h+9No17K3ZLlTl/ZCIjTeUEPLj+0KpFY2flA2cV PWTK4VV/DyvT8nCKFs/M4aKienBj/KWdPDzJgnU2WDkSDC9zTNnrfZffdTaWsWOlZUp0 IglUR1KCtrSM9O+OzQ75Lcy6P9U72L13T0W1MYpeCwifS2nPSDT+JElkyGNKwplvK6xK DzftOv8kNRSuKmFVwvxFTlH3f69P5g/1pib8EOR26wz5f7XcmSqhQvyn+wjOWIo3bmFD oBPzkebr38zkhX/PdaA1WdUEhnRnhWwcgVysJ221UInppJ0+jQl5dZhd8Udumrwnb0tr ZBGA== 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=x7iQik+7jg3Jszj5Nc6Gv66IHAmPExdzFr0oBmWhq5Y=; b=QEypyaYCf1i+YvPGJF/YK7lq191p2jRIG8AVV4kzEfqkdnmGPL65T90/LdLKq2zwcW gFKghZ+6ylFuTFsmLSJoGUgVo+HdXwUmzArYWYMaqDb+JjkXe/+TUHdk04+TN0DOiIpk 0KegFI52tJDbAP4QWHMrvo7L/enn4cZiRPlV4PPZ6VskXa9gIAaDkBf5yzYO346dmpNd yMw4xoPE8UyQP6hRzQ0Ohm8oDPfcX6q5+QwZaz8xjeJdoB4sAO11j13hEpfRoPbvnUjt cOrYKiDExvR4/VXVgU8Xy5hCA9ZCzV7fVPClsPp/9l+eWNpOtf6+Y/+n60PzyR0rn5B5 Oiyw== 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 q26-20020a63751a000000b003821f8bcbb9si24810760pgc.94.2022.03.31.07.30.59; Thu, 31 Mar 2022 07:31:14 -0700 (PDT) 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 S233992AbiCaJax (ORCPT + 99 others); Thu, 31 Mar 2022 05:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234103AbiCaJak (ORCPT ); Thu, 31 Mar 2022 05:30:40 -0400 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 79F18204A85 for ; Thu, 31 Mar 2022 02:28:14 -0700 (PDT) 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 1nZr67-00066h-2h; Thu, 31 Mar 2022 11:28:07 +0200 Message-ID: <319e976acb0a686e596b88520dbcda59c78afe9e.camel@pengutronix.de> Subject: Re: [PATCH] soc: imx: gpcv2: keep i.MX8MM VPU-H1 bus clock active From: Lucas Stach To: Adam Ford , linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , linux-kernel@vger.kernel.org Date: Thu, 31 Mar 2022 11:28:05 +0200 In-Reply-To: <20211120193916.1309236-1-aford173@gmail.com> References: <20211120193916.1309236-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 Hi Adam, hi Shawn, Am Samstag, dem 20.11.2021 um 13:39 -0600 schrieb Adam Ford: > Enable the vpu-h1 clock when the domain is active because reading > or writing to the VPU-H1 IP block cause the system to hang. > > Fixes: 656ade7aa42a ("soc: imx: gpcv2: keep i.MX8M* bus clocks enabled") > Signed-off-by: Adam Ford > > diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c > index b8d52d8d29db..7b6dfa33dcb9 100644 > --- a/drivers/soc/imx/gpcv2.c > +++ b/drivers/soc/imx/gpcv2.c > @@ -734,6 +734,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = { > .map = IMX8MM_VPUH1_A53_DOMAIN, > }, > .pgc = BIT(IMX8MM_PGC_VPUH1), > + .keep_clocks = true, > }, > I missed this patch and just stumbled across it when looking at the git history. I don't think this patch is correct. The H1 GPC domain does not even have clocks assigned in the DT, so there is nothing to keep active. Also H1 is not a MIX domain, so it should not keep any bus clocks active, that is the job of the VPUMIX domain. While this patch is a no-op, as far as I can see, it still seems wrong and I think it should be reverted. Regards, Lucas