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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26D97FA373D for ; Fri, 28 Oct 2022 00:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:To:Cc:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=791TO7ki9H0RmYp5tsgkt/AejuxCFujJuy9LORBwkow=; b=cB6uKEmDYMxvrR kdSjpy8vqGzmTyqCYUEUwvD96K0jghdD/BAsBqouwf8rNZ0oJMbpzs1hf3ZW5cc0Y0/LhzhzcDeoW wam33mXtE5Jxg1Xoc39HVYaYB6tydhNnhrwEg0fjxksRcAWkt0oQ0bVkS2Wk3P6mMq7lvwAi0UX4/ sq51Kk3ZJHegX+MGkbYyxRzuvIQCYt3aCB7w1f+csGj1bgI0bdPBsJSv27VyWLuVvuySTToe2Hnzc C8QzYmXD6OF/rLUaUPhhp8M7jEQzmkBQAl/pMLWwn5kNzqXmBaTgoe38MMhNxAr//uDqeHXxpfruS 2yszzn+hw0DTwqfNjfvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooDH2-00FINR-Am; Fri, 28 Oct 2022 00:31:00 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooDGz-00FIMs-Hy; Fri, 28 Oct 2022 00:30:59 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id 183966248B; Fri, 28 Oct 2022 00:30:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E83AC433D6; Fri, 28 Oct 2022 00:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666917056; bh=7AzsoUE0rePpZbDqReVe3Q4DRi9Xz6YXEX1Qv13iM14=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Olckj3vv9hu4ai3gmJOB1gAkrx/e8s467ngyyU0jziLGXp4acIubZ4KUFTOVI3D/v coH7hSDl7knKh3k7V0HK+bqe5fA5ranAc6h6+WGmjbQwdyazlWR4UYEBpCSuLQMI5s CElCk59xG2+IqqPdg+GBIWh785z7tkjWH767L1mpLPOfmfaDfpRl1i3lFwywddf2eW 9FCBoDSfzr/aFacknU6vwnP5cQh+kZOot1tMYZN4QOvs3MoviOtd9vDgX3e1ipSg4c gbbs+fTvuZo8+YnQ9iqaQSdmj65aYkObr5By8B9TQpdo6fde874TpGy0viWmyof+hb CDj9Ld9bbEBMw== MIME-Version: 1.0 In-Reply-To: <20221018070653.gsvnacqe7chvzux2@houat> References: <20221011135548.318323-1-angelogioacchino.delregno@collabora.com> <20221012085555.3nls7ja56vlnaz2w@houat> <20221012094004.jgiyvmbgomiyedik@houat> <6e76f90f-3b6a-330d-6902-b31bf3d33ad4@collabora.com> <20221012114813.6d6adro746w5bd7c@houat> <20221012135619.wxyzuqheolhypoec@houat> <20221014193652.0C745C433D6@smtp.kernel.org> <20221018070653.gsvnacqe7chvzux2@houat> Subject: Re: [PATCH v2] clk: mediatek: clk-mux: Add .determine_rate() callback From: Stephen Boyd Cc: AngeloGioacchino Del Regno , mturquette@baylibre.com, matthias.bgg@gmail.com, chun-jie.chen@mediatek.com, miles.chen@mediatek.com, wenst@chromium.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org To: Maxime Ripard Date: Thu, 27 Oct 2022 17:30:54 -0700 User-Agent: alot/0.10 Message-Id: <20221028003056.6E83AC433D6@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221027_173057_653326_98BF1024 X-CRM114-Status: GOOD ( 23.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Quoting Maxime Ripard (2022-10-18 00:06:53) > > We spent some time with Angelo yesterday debugging this, and it's still > not clear to me what happens. > > He provided a significant amount of traces, and we first checked that > the round_rate part of set_rate was returning something meaningful, and > it does. The rate is fine, the parent is too, everything's great. > > Next we checked the decisions by clk_calc_new_rates, and it does return > the proper top clock, and its proper rate. > > Finally, we hooked into clk_change_rate() to see what kind of decision > it was enforcing, and it seems to be ok as well. It doesn't change > parent, and it sets the proper rate, in both cases. > > There's still one thing we haven't checked: one of the clock in the tree > (the parent of the one we want to change the rate on, and it has > SET_RATE_PARENT) has a notifier. As we've had a bug recently over this > I've not ruled out that this could be a similar bug. > > I don't really think it is though, since the notifier callback doesn't > use the data provided by the framework: > https://elixir.bootlin.com/linux/v6.1-rc1/source/drivers/clk/mediatek/clk-mux.c#L279 > > I've pushed a branch for Angelo to test, just to confirm. > > So... yeah. I can't explain the regression at this point. Do you have an > idea? I don't really know. If the removal of WARN_ON() helps then it sounds like a console related problem where we hang the system trying to print the warning to the console. Did you try replacing that case with a trace_printk()? > > The good news is, since you merged this patch the regression is > invisible now to that platform. We still could encounter it on another > platform, but maybe it will also have a more obvious setup to replicate? > I guess that's good news :-/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel