Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp72725pxb; Tue, 5 Apr 2022 00:27:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXZekQSeE9bL5D/RFOGkhcSQAbOG5lJ4cTtNBFD75EazYlr+pYHhFIfk0nmzF4VlqW7ZSP X-Received: by 2002:a05:6a02:105:b0:381:fd01:330f with SMTP id bg5-20020a056a02010500b00381fd01330fmr1698757pgb.483.1649143630942; Tue, 05 Apr 2022 00:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649143630; cv=none; d=google.com; s=arc-20160816; b=hCh/4GtuYdVxeGfXoIS659gGWV60rQvHS6fjrBr0rl8pk1vcq5wQfw/CXKk5AJU85a 3y2pcjrkUNg1LxvuBMLwl1xEzZnoODyfNvyG6Mlr2e+rXSdKpcLplZxibwrrYibpt/2E H6s1N4BcokTMNVC1Cz3N0n6ZeKAjuTUPHZYihCQc/yP0iqxU3CWyv8o9ZOoUBxEHbt6G NK4kHen5rYr4g0THhoS4wS6+RPvtllIvarqrsD4NkB1+fmB1J5YWejG5FavCcDzfmCet 2u1hgy9Ddhpeb2uyxyk4MWOE+EyhOTZ8OI4GF64Osi09iEq9a/GF7CMzz70oTqfjOsE1 bl+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0aWuTh8USySoSotuL79Q5JVUs1OKKMx1JqxVzGYXhnU=; b=JIbqOwU8v2YnltIKXe/+HzrqmRM8V0cFWZWooOeS2MUleIxkCllo7RU9OqLiFHKHan wFk3KP0HnCrnhbKaQKGuDuTkN6o3KLzp58xVl4CYDaOzfJ2SwQeo/dfaWfYt1qEBJ/+U nu5XHW//39FJJSSwaCHT4rwD8fblogwuEYkREnIZ43REldBURve2wC4qlxt4tNpejVrh dkmSOPN/k2mcBN7V4BmJal1k7lrQJPfQGNWKPmLyEh3E6Ai4is5bd/jAdBG3p7Qtd25M iZzMkuqMnQ0AKVG70Rd97PzfBW++ugAR2FOJB+ePUU8ZTIsx54maq0xg+RoLwhnIDzm9 6gLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QXqVyolF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf19-20020a17090b0b1300b001befa3ba5ebsi1319018pjb.17.2022.04.05.00.26.39; Tue, 05 Apr 2022 00:27:10 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QXqVyolF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbiDEGrY (ORCPT + 99 others); Tue, 5 Apr 2022 02:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231199AbiDEGrG (ORCPT ); Tue, 5 Apr 2022 02:47:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56991193C2 for ; Mon, 4 Apr 2022 23:45:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F222EB8180F for ; Tue, 5 Apr 2022 06:45:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE323C340F3; Tue, 5 Apr 2022 06:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649141105; bh=jaRGetbQ2s3ZlsHzZOV4e30zP3uvS93CzT4nFqJ6LTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QXqVyolFovvtyoe4QyT8L5O/aljf5lAjYTjxj/H7N8rh4052dO8y31QGb86WyJ3uA mhWc+8kpGg2N5ohm7Ka5l5wNVFHi+e6aiiKBpSm1BQwVJt3kFd0qC1H37QxxrwecIX T9cEETcRA2MmSDmwdSZsCPN2xdRkNvThQKiEabdU6MkSU+blvsn5OEm/PZ1CDOAhmJ JcK1Yi3PWkKIXaNdtdpPQle0BbNCjWOWNFRI3uE8NpIK9iX0hRU/kevj0DxAZ0O5su l4SaiT3rLtTY7+2V+z5/fCPGjjqAMPRsdmNmiaX2MA6fw+w+4tZgT1M7cjm4i/MHWI vRE4A/bERervg== Date: Tue, 5 Apr 2022 14:44:58 +0800 From: Shawn Guo To: Adam Ford Cc: Lucas Stach , arm-soc , Tim Harvey , Adam Ford-BE , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , Linux Kernel Mailing List Subject: Re: [PATCH] soc: imx: gpcv2: keep i.MX8MM VPU-H1 bus clock active Message-ID: <20220405064458.GA129381@dragon> References: <20211120193916.1309236-1-aford173@gmail.com> <319e976acb0a686e596b88520dbcda59c78afe9e.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Thu, Mar 31, 2022 at 06:32:13AM -0500, Adam Ford wrote: > On Thu, Mar 31, 2022 at 4:28 AM Lucas Stach wrote: > > > > 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. > > At the time I sent this, I was working with some people in the media > group to split the G1 and G2 up in the imx8mq and add G1 and G2 > support in the imx8mm. I had inquired about the feasibility of using > the H1 encoder on the imx8mm, but I needed to read some registers from > the IP block to see which features were fused out. I tried several > different options to get the H1 to not hang when reading registers, > and that was the only solution I found that worked. I thought it odd > as well since the G1 and G2 decoders didn't appear to need this. > However, during the course of my investigation, I learned that the > JPEG encoder was fused out of the imx8mm, and there wasn't a plan to > add VP8 or H.264 encodering any time soon. Since it is, as you put > it, a no-op, I have no objections to reverting it. I do not quite follow. You claimed that the change fixes a system hang. Are we getting the hang back if we revert the change? Shawn