From patchwork Mon Oct 24 11:32:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp443094wru; Mon, 24 Oct 2022 06:08:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5KnILBFD9hcAatSa9kTkEgjDLk8axGfBpMP14v+/Nx+SuAkz3D52DRcWnbYCOld5gSz9QR X-Received: by 2002:a17:902:e545:b0:184:2f27:b34 with SMTP id n5-20020a170902e54500b001842f270b34mr32974660plf.15.1666616925854; Mon, 24 Oct 2022 06:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666616925; cv=none; d=google.com; s=arc-20160816; b=s3DMJVojaPCTd1ahoQWKzwBj5JZXormMTxwuwB6fWjpGf6giPD8iyIkO7VzTX0rm/n cITcmJz6AT7kHBtnZHuZcTL21jXIssklDSRZKLPUNqGF1ri3naGErhlkt32Nyy5bSO1d Jm8oXV0xNnPh+NcBrtQ73LW/OkwfW0Ae6nXG6rWhQgDvVCgvbUUpkofonMoKucV03zsd hEImyYdesTObMySi7s8M+wfSvRFRSBWaIB7t/fdmq3bysM18umfeRAOc2am1dgtpPk/4 S66HNTb0mKUAy+7RbIgsBk2vW9aVqA6TweVGRzCkucj2EKXh+YsFkJoFFiLciSUfQENg iaFQ== 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=9EjKAyiskxHZZVVjfmOTFxCr7KUS4p9EzHhMuCgtJwA=; b=HZzETaPLb/L8o8EFLJ4rHR+dgTdgZSKu+hfDH0WhONhKvJ23gvqOYmJMREByXejAqt BCpYBoHR9MhtZKNaYJgbWM/MjWPrOSC0IRxvueAoOyvDJvkJot9MG6NUHMrUU1AtdFDF YE/Y8WEPl3DZ0IC0m/NPmPSTCah0WSIo0EW32PlqLPYgvvVusQrHORaxYEx7fV3zpWov PhUe4kuXufej/EHdgbTzdaThkIK18a5fH0Fpp1NKw3yMoj7NozPEnSac1vYGgABFLOkk KK3oqYfgpARscS5r8X0BXxqW5vsn3edOwmJr/faC98WpyNJ07E6XxlTFCMn1UddSTuoR bLGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xooVAMl0; 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 h13-20020a056a00230d00b0053652e1c0b6si39658176pfh.12.2022.10.24.06.08.29; Mon, 24 Oct 2022 06:08:45 -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=xooVAMl0; 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 S235329AbiJXNHf (ORCPT + 99 others); Mon, 24 Oct 2022 09:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235305AbiJXNFd (ORCPT ); Mon, 24 Oct 2022 09:05:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61CE29C2C9; Mon, 24 Oct 2022 05:20:57 -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 4488AB8162A; Mon, 24 Oct 2022 12:15:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CE50C433D6; Mon, 24 Oct 2022 12:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613723; bh=SbXe2nwOwKhBNsRxVbxJGpSzOkMliiXFJoOEnTh8kDY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xooVAMl05lQZmGmwVkyB/Y68xsmofZ3BJxSMPxO+IwHf+UCV9HDYWPMaYWtntAkqf RsEeg1qMNAhCdJh6OXg2TV6RtC74e9hNtaRfgKfrkGqetJ1oEc8Ql13vzXff+/OQYv Q7nAZRup9mmbLl7NCQN59IPB83+j6ohvpOn1JuhQ= 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.4 245/255] clk: bcm2835: Make peripheral PLLC critical Date: Mon, 24 Oct 2022 13:32:35 +0200 Message-Id: <20221024113011.414855682@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747574509935298831?= X-GMAIL-MSGID: =?utf-8?q?1747574509935298831?= 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 e650379b3230..b4e6a7923233 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -1756,7 +1756,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.