From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 047E6C4727C for ; Wed, 30 Sep 2020 16:07:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C711820936 for ; Wed, 30 Sep 2020 16:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728081AbgI3QHc (ORCPT ); Wed, 30 Sep 2020 12:07:32 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:43148 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgI3QHc (ORCPT ); Wed, 30 Sep 2020 12:07:32 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C1h3k5v5jz1qsbM; Wed, 30 Sep 2020 18:07:30 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C1h3k5235z1sM9N; Wed, 30 Sep 2020 18:07:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fbOSTuzegyrM; Wed, 30 Sep 2020 18:07:29 +0200 (CEST) X-Auth-Info: cYsguOCUzXjdQzoEIsQlLEqh4CTdPG+DpebTtsGuq4E= Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 30 Sep 2020 18:07:29 +0200 (CEST) Subject: Re: [PATCH 02/11] soc: imx: gpcv2: move domain mapping to domain driver probe To: Lucas Stach , Shawn Guo , Rob Herring Cc: NXP Linux Team , Fabio Estevam , Frieder Schrempf , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, kernel@pengutronix.de, patchwork-lst@pengutronix.de References: <20200930155006.535712-1-l.stach@pengutronix.de> <20200930155006.535712-3-l.stach@pengutronix.de> From: Marek Vasut Message-ID: Date: Wed, 30 Sep 2020 18:07:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200930155006.535712-3-l.stach@pengutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 9/30/20 5:49 PM, Lucas Stach wrote: [...] > @@ -504,10 +499,13 @@ static int imx_pgc_domain_probe(struct platform_device *pdev) > return ret; > } > > + regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, > + domain->bits.map, domain->bits.map); Shouldn't this also clear the "top" bits of the mapping, to remove power control from the CM4 , now that CA53 Linux is in control of those domains ? In fact, what happens if you boot linux on the CM4 instead ? I think you can do it on MX7D . From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7880C4741F for ; Wed, 30 Sep 2020 16:09:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C28320789 for ; Wed, 30 Sep 2020 16:09:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GSyUsPRJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C28320789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1a9QnmYAUlXB3YjQOdUx61wXC23lhI8Z488OIZonbVE=; b=GSyUsPRJ6iSthwH16z+VuG7+i jhNpIbe+OJM7i5NTT8JFQQDKQYkLsCk/oKnyp9TXyBcIi6R8Tk9fiibyUIXE0axtMSVygNbeqkcrE 38bmEX2viaMVUMB3en6KWaoAlacmAMw7HLMIJIXoy3XUsELtJLISd1v6xCwa5QSBcSnoEROblCjea aOOnmlHsAOaNbHB0A42UG/Zd0dTF0LCkhtl7k1t3pblIWW7wwSC5gbE1t6DZciCJClpoeFqP8dz1R 78iyHWx+UWMcu1qIGSS/+vPdE3YcT1PWV4zecEob2ZhPKpOO0l32mB2xeDNBxXtH8rSM20JCRtL/S Z0bcjm0MQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNeeE-0006YV-9M; Wed, 30 Sep 2020 16:08:06 +0000 Received: from mail-out.m-online.net ([212.18.0.9]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNedg-0006H5-5B for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2020 16:07:33 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C1h3k5v5jz1qsbM; Wed, 30 Sep 2020 18:07:30 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C1h3k5235z1sM9N; Wed, 30 Sep 2020 18:07:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fbOSTuzegyrM; Wed, 30 Sep 2020 18:07:29 +0200 (CEST) X-Auth-Info: cYsguOCUzXjdQzoEIsQlLEqh4CTdPG+DpebTtsGuq4E= Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 30 Sep 2020 18:07:29 +0200 (CEST) Subject: Re: [PATCH 02/11] soc: imx: gpcv2: move domain mapping to domain driver probe To: Lucas Stach , Shawn Guo , Rob Herring References: <20200930155006.535712-1-l.stach@pengutronix.de> <20200930155006.535712-3-l.stach@pengutronix.de> From: Marek Vasut Message-ID: Date: Wed, 30 Sep 2020 18:07:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200930155006.535712-3-l.stach@pengutronix.de> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200930_120732_383928_F49D7E81 X-CRM114-Status: GOOD ( 14.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Frieder Schrempf , patchwork-lst@pengutronix.de, NXP Linux Team , kernel@pengutronix.de, Fabio Estevam , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 9/30/20 5:49 PM, Lucas Stach wrote: [...] > @@ -504,10 +499,13 @@ static int imx_pgc_domain_probe(struct platform_device *pdev) > return ret; > } > > + regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, > + domain->bits.map, domain->bits.map); Shouldn't this also clear the "top" bits of the mapping, to remove power control from the CM4 , now that CA53 Linux is in control of those domains ? In fact, what happens if you boot linux on the CM4 instead ? I think you can do it on MX7D . _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel