Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1098179pxb; Wed, 6 Apr 2022 08:40:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8WwJEr7jJNyQIR5wE6SQisn/1PBk2OUB4HNOkQJxWy9C3B+XvNHg1sIesCScWARobFqFk X-Received: by 2002:a63:7d56:0:b0:386:7d:a720 with SMTP id m22-20020a637d56000000b00386007da720mr7710587pgn.477.1649259616949; Wed, 06 Apr 2022 08:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649259616; cv=none; d=google.com; s=arc-20160816; b=RBQ4S7Pr/mLu6Lj4Q0uXRNh4WDz/fgsIApOVNOabiEvnaED+jdhZMirK8KT/IbM28R uU41VR2OFVstHWpEZSQImqctj3IjR8VmXE3wX+FJp7+dXN++yyOiv+D2acag4AqJwdIt DwQhzF8G46wKNk80wg3HyoRS4+4I3aBDnOgb1FNLCeMyreQGS6Abin4mAe9yYLZuDnXd XZTUJz24NEq9O1GmULw8ku+z9FDS38Hw7mKzkSDh9eyNsKu5Oa6Y1FRI99N/qeF59duU 42yuYSIk4EjZb08OESH68omo+vZon/gbJuiFsgOpZSf/BrrCTzVwj/tjrEeDtZ8ClZsb /ZDQ== 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=pk5r9qDsV84v8KX6LueqT6IMwHeYUGSZqIFlahUP7a0=; b=WjHwMigxKebFMVoKsJ5Ged1vKUHB/UlFAK+fKsXU92j0NMNgBiJhtScjqrESJbmL5f efI8xMgJfkeFUo9NJdQ1qgwO+MeRFzIezgOM2KDS25ShYaLqej3pz5VUc0Cc4oPcND87 2S7BPu+ChH0TMEaA/YUYZNyeAxpLqvO6+Han8uHXTKbfPqnzburUtupmsLK+2bmsjHjz T4hPgfxGqEqWfsrLshQxkRsT7blHHZXY4v+7x2ylEVHDWhWFROG0A0sEugo+gmHfvk7H dhfahVO8NN84Hv74bMmodWrPbyE0fx90MjkDn1EnAZZYJ+PQ96McqnV7PkDobhmF6knJ BfHg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t12-20020a17090ae50c00b001c74e871721si4622067pjy.177.2022.04.06.08.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 73C732AC29F; Wed, 6 Apr 2022 08:06:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235543AbiDFPIU (ORCPT + 99 others); Wed, 6 Apr 2022 11:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235914AbiDFPH5 (ORCPT ); Wed, 6 Apr 2022 11:07:57 -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 E2CA21BD9A4 for ; Wed, 6 Apr 2022 05:01:48 -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 1nc4Gd-0000QF-Of; Wed, 06 Apr 2022 13:56:07 +0200 Message-ID: <4fc33f18fcde29d421a014c22f6ea92a41a39da9.camel@pengutronix.de> Subject: Re: [PATCH 0/5] imx: support noc settings with power domain From: Lucas Stach To: Peng Fan , "Peng Fan (OSS)" , "djakov@kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" Cc: "festevam@gmail.com" , dl-linux-imx , "laurent.pinchart@ideasonboard.com" , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Date: Wed, 06 Apr 2022 13:56:06 +0200 In-Reply-To: References: <20220406082330.2681591-1-peng.fan@oss.nxp.com> <6a77a71069d771d408f716d05cafc6b3a1e13cda.camel@pengutronix.de> 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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mittwoch, dem 06.04.2022 um 10:55 +0000 schrieb Peng Fan: > > Subject: Re: [PATCH 0/5] imx: support noc settings with power domain > > > > Hi Peng, > > > > Am Mittwoch, dem 06.04.2022 um 16:23 +0800 schrieb Peng Fan (OSS): > > > From: Peng Fan > > > > > > i.MX8MP has a design that NoC(Not main NoC) is distributed in multiple > > > blocks, such as vpumix, hsiomix and etc. The access to NoC requires > > > power domain on and blk ctrl settings configured. > > > > > > So the design here is for mixes that not have blk-ctrl, configure the > > > NoC in gpcv2 driver, for mixes that have blk-ctrl, configure the NoC > > > in blk-ctrl drivers. > > > > > > This v1 patchset not apply on Shawn's tree, I picked up Lucas's HSIO > > > and Laurent's mediablk patches, then worked out this patchset: > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith > > > > > ub.com%2FMrVan%2Flinux%2Ftree%2Fnoc-imx8mp&data=04%7C01%7 > > Cpeng.fan > > > %40nxp.com%7C3bd1d020ad8f4a68efc808da17b28ac8%7C686ea1d3bc2b > > 4c6fa92cd9 > > > > > 9c5c301635%7C0%7C0%7C637848352908363591%7CUnknown%7CTWFpbG > > Zsb3d8eyJWIj > > > > > oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3 > > 000&am > > > > > p;sdata=ZVeHFy%2FEaWPhAj%2BURGIDXoWYdX5eeQoEIeZYZoxPPNo%3D&a > > mp;reserve > > > d=0 > > > > > > Note: This interconnect related functions not added. This patchset is > > > only to replace the function did in NXP downstream: > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsour > > > > > ce.codeaurora.org%2Fexternal%2Fimx%2Fimx-atf%2Ftree%2Fplat%2Fimx%2 > > Fimx > > > > > 8m%2Fimx8mp%2Fgpc.c%3Fh%3Dlf_v2.4%23n157&data=04%7C01%7C > > peng.fan%4 > > > > > 0nxp.com%7C3bd1d020ad8f4a68efc808da17b28ac8%7C686ea1d3bc2b4c6fa > > 92cd99c > > > > > 5c301635%7C0%7C0%7C637848352908363591%7CUnknown%7CTWFpbGZs > > b3d8eyJWIjoi > > > > > MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C30 > > 00& > > > > > sdata=eLawc3SJQBRmVwcOA2%2B6u6d2ZaYxqcO4Gm%2FqEJpqxFE%3D&a > > mp;reserved= > > > 0 > > > > As a general comment I think this is implemented the wrong way around. > > > > Neither GPC, nor the blk-ctrl should poke into the NoC registers directly. The > > NoC driver should attach itself to the power domain via a notifier (same as > > the blk-ctrl does with the GPC domains) and should do the necessary NoC > > configuration when the power domain is powered up. > > If separate NoC in a standalone driver, NoC may be configured not as early as > power domain up. Saying lcdif is running, NoC driver probe starts w/o defer > probe. The right way to solve this would be to actually implement the interconnect bits, so that consumers like the LCDIF that have specific NOC bandwidth/latency requirements could request them from the NoC driver. Proper probe deferral would come naturally with this. The static NoC configuration per domain is quite a cludge IHMO, maybe due to the decision to not open up any information about this part of the SoC. Spreading support for this hack into multiple drivers doesn't sound like a direction we want to take for upstream. At minimum we could try to define the interconnect DT bits, so that the LCDIF driver, etc. could attach to the NoC driver, giving us proper probe defer behavior, even if the actual configuration is still static. Regards, Lucas