From patchwork Sat Oct 22 07:29:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1108980wrr; Sat, 22 Oct 2022 01:46:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5gukw0u/5wAlJujoZvIch595nj4UuJxVBsqaL+hXEifeBbtMWMsAtMe1KLTJ6NnELNJnpi X-Received: by 2002:a05:6402:4511:b0:45c:b2b4:3e69 with SMTP id ez17-20020a056402451100b0045cb2b43e69mr20964575edb.339.1666428407830; Sat, 22 Oct 2022 01:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428407; cv=none; d=google.com; s=arc-20160816; b=QklEzkvVgoDE0YNITuGVxdJpn0UWFrU8cBu8iw0wla/PX7JgwgSx0ktC0FIdIktfWi sVZssPdvPkOMGG2oU5dHMuuz0ObNoEwSKEL1+Ah0QbWJMPpo3U8tP8+0LwOmeXzGIEyt wZPg+pSv5OEy0dD7oGKfeFfO4Z2Vf1uERcdv7uuF5Byd5uDRcD/YAHp0WlPkSQReYebN u3azxBBsdrzarmdUM02iaLOuwmWyQnTSf5zxmGhe2DSQJ+m/Y4BGq6IwX85IG60UPRI3 gMWXOoW8UoZIYiMh8320TVO9L3qxbvjkyDFEcHRBcVNV64vCXdkVvXExeSCv481HciK7 /Bzg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=0wcJm6XXZSevavksoVHxdJAx5jep7QxZceFxdce7NXU=; b=patZGySTZU/q4A1WFPmTonk/W0wAVn0UcJyTYOMQNbxxEJ+vfOHo3eTFzxAK+KiG/S nTlE4RvS/ez22YLVhjRBTwWADRLb/oVedFPGGNhuhb5JSgU+eUUCaNAnS3B3mHyt4lW3 Kvx4boSkD/FejHi3WPy4aqImgFXI6dc0n9Ob5fteedyV0AbodK6oP6Y98gsPmgY8OQop mHI40JA/lZquGaWTpmM+hByszpyNc+k1DR8HHFvelNjPIcpGKkT3NoPnH52FQwz+jOWB B0yS+132XaaWtLbi6bRCybSHQpc3nnrMtTA/DgIxk06ysHkiMiLryZ8R1uVi/Ae5fjHC 2LQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U51R6I+7; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a1709064b5300b0078d42f9d0cfsi17818786ejv.420.2022.10.22.01.46.22; Sat, 22 Oct 2022 01:46:47 -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=@linuxfoundation.org header.s=korg header.b=U51R6I+7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbiJVIp7 (ORCPT + 99 others); Sat, 22 Oct 2022 04:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234407AbiJVInw (ORCPT ); Sat, 22 Oct 2022 04:43:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1E72EA2B5; Sat, 22 Oct 2022 01:07:31 -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 D7BDD60B40; Sat, 22 Oct 2022 08:07:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC585C433D6; Sat, 22 Oct 2022 08:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426024; bh=p6KS32qoHgkKgq4ULfN98+75gteCRbGAoMN6fl5aXBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U51R6I+772jBfQorpJtmK8pTzEqiWJFvfg9He6hciqwxdyLBVPjvnlM+BUPf4YBJs VBjpvI/Fkm9lP7GRT81fpdf3V8b90NeIHEsieNL7IoFC2CPQawK73Uq8H1VjKD+6QU MbBoolXFnMFeWWa4xckTXecs7tw7h5OqYYSw88nI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?utf-8?q?Noralf_Tr=C3=B8nnes?= , Maxime Ripard , Stefan Wahren , Stephen Boyd , Sasha Levin Subject: [PATCH 5.19 694/717] clk: bcm2835: Make peripheral PLLC critical Date: Sat, 22 Oct 2022 09:29:33 +0200 Message-Id: <20221022072529.169043434@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747376834355504470?= X-GMAIL-MSGID: =?utf-8?q?1747376834355504470?= From: Maxime Ripard [ Upstream commit 6c5422851d8be8c7451e968fd2e6da41b6109e17 ] When testing for a series affecting the VEC, it was discovered that turning off and on the VEC clock is crashing the system. It turns out that, when disabling the VEC clock, it's the only child of the PLLC-per clock which will also get disabled. The source of the crash is PLLC-per being disabled. It's likely that some other device might not take a clock reference that it actually needs, but it's unclear which at this point. Let's make PLLC-per critical so that we don't have that crash. Reported-by: Noralf Trønnes Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/20220926084509.12233-1-maxime@cerno.tech Reviewed-by: Stefan Wahren Acked-by: Noralf Trønnes Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/bcm/clk-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index 9e9f8b242958..f1102b4c7e88 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -1784,7 +1784,7 @@ static const struct bcm2835_clk_desc clk_desc_array[] = { .load_mask = CM_PLLC_LOADPER, .hold_mask = CM_PLLC_HOLDPER, .fixed_divider = 1, - .flags = CLK_SET_RATE_PARENT), + .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT), /* * PLLD is the display PLL, used to drive DSI display panels.