Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1526462rwi; Thu, 27 Oct 2022 17:28:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ozs53gOQYKLtGlDPMv2AyKdasGOD6ExxKG+eiE+E+3dlLzw9pjPyX2YtpFq6BwceqxTZG X-Received: by 2002:a17:906:cc58:b0:7a9:6b4e:79e4 with SMTP id mm24-20020a170906cc5800b007a96b4e79e4mr19499326ejb.57.1666916935043; Thu, 27 Oct 2022 17:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666916935; cv=none; d=google.com; s=arc-20160816; b=Jp7A5qzlmhKsgjOQyzIub3j/YsNmBkl7nmkUh+SQvHhqR1/zwkfFLksGs7GV+cPx+h RQ67Z1VxaJcPTQ1+LzYin8gJvWIpnHYjlYWcJqEDl9+dmgg/scz7wRucYuiOP/iRQT5G MwzcxJg5vgfAfIl4ohyJR38KOrWPj8xoFqulYEigcDa/ySWs/6Wsxy7gCs4KpOavD09P RVeBLEjz6YAwey/y4F3OKYAFmU6nAuChKAxR5cpSmi+KDxfB16v7gQn4hGqZQJ8HlEsc NBEqv9LfcdK/MSiM0C5sxHl+nMYHXfmZVpFX83rAXE2N6n6teUTPlbflK+uyJcok7YaU YpJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=jx0BSCw6+jHyj/GIl4C+B8mB3o5ImwoK8edY4LEBpVM=; b=R3ck0IxZ4FTDrjTh6S0BP28nCVb2BZ2e7PkC1QIqRyBlIbGZ/GYT+P7MIYaBC89933 XodzBsd00M0tt0Ldxm9zTRK+GHlj/dabBVKUBkt5sWFfD0Fbdl6CXk/vSB7jrRqNsv6N SX3yKfLRfus4iUJbceSpKHVXMqx+VqICy9GGui3QtItcFaxdNqdY9Vigbf9dn5nJXP9u bkXp6rIpjPQpvvyyHPwWNj48U3L7uaOeIrAhtV1K6DV7eBrYDMZYALLCOIu0mZZxGrsq ZqdwKIhm0qRizc1mH9LdJaIrb8L2+5W170mYmZkC4WT7tPJHAK9fmVvIccqK3eYlZseR tOpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GLUVOAiA; 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 wg5-20020a17090705c500b0073cd848ae8asi3351323ejb.321.2022.10.27.17.28.30; Thu, 27 Oct 2022 17:28:55 -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=GLUVOAiA; 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 S235181AbiJ1AGo (ORCPT + 99 others); Thu, 27 Oct 2022 20:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbiJ1AGl (ORCPT ); Thu, 27 Oct 2022 20:06:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56EA79638; Thu, 27 Oct 2022 17:06:40 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4F07E6248B; Fri, 28 Oct 2022 00:06:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E2BAC433B5; Fri, 28 Oct 2022 00:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666915599; bh=jx0BSCw6+jHyj/GIl4C+B8mB3o5ImwoK8edY4LEBpVM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=GLUVOAiASoopt2C5HovDBuvNk58ohZc8ruDa4jC5ecG166JLuijUKJJm1eFLGxhZx l/sIHDr1otR9RBjJksk8ODELeTiHaSxY0rOmlGzePeGLd9QtULeRRYdXH4WwxzmN55 n3SH3+cEEviu2IAcVsxj6JHWJnaxqcfYI6LVrBLyNL0FtkskccItbufinu7hb1o8X1 yTsjrJBkYC7lrnnPMHD8BFQ6p7kxr0QFaZ9Xs9Hhf5IzP2mGuv92BZnv9TAU5ldWyv dXMpO5rS5PrXyc2G25wAyKEAZiOffYEw72GmpY4GDnuDwP02Wf67FSaP050CFwq9AV PZOjNEcdb5WGA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221018-clk-range-checks-fixes-v1-1-f3ef80518140@cerno.tech> References: <20221018-clk-range-checks-fixes-v1-0-f3ef80518140@cerno.tech> <20221018-clk-range-checks-fixes-v1-1-f3ef80518140@cerno.tech> Subject: Re: [PATCH 1/4] clk: Remove WARN_ON NULL parent in clk_core_init_rate_req() From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Maxime Ripard , linux-clk@vger.kernel.org To: Maxime Ripard , Michael Turquette Date: Thu, 27 Oct 2022 17:06:37 -0700 User-Agent: alot/0.10 Message-Id: <20221028000639.9E2BAC433B5@smtp.kernel.org> X-Spam-Status: No, score=-7.6 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 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 Quoting Maxime Ripard (2022-10-18 06:52:56) > If a clock has CLK_SET_RATE_PARENT, but core->parent is NULL (most > likely because it's orphan), callers of clk_core_init_rate_req() will > blindly call this function leading to a very verbose warning. >=20 > Since it's a fairly common situation, let's just remove the WARN_ON but > keep the check that prevents us from dereferencing the pointer. >=20 > Interestingly, it fixes a regression on the Mediatek MT8195 where the > GPU would stall during a clk_set_rate for its main clock. We couldn't > come up with a proper explanation since the condition is essentially the > same. >=20 > It was then assumed that it could be timing related since printing the > warning stacktrace takes a while, but we couldn't replicate the failure > by using fairly large (10ms) mdelays. >=20 > Fixes: 262ca38f4b6e ("clk: Stop forwarding clk_rate_requests to the paren= t") > Reported-by: AngeloGioacchino Del Regno > Signed-off-by: Maxime Ripard > --- Applied to clk-fixes