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 9CE21C61DB6 for ; Mon, 24 Aug 2026 15:29:48 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UsIn++xSwaqCcYqboRHZGch9ipUhaKeDCps7za14CyE=; b=xvQWJNDoz/F+cR qc6hqx8hPDMOfGW031FjMIiRXWlSnk2K0R7dat8FD6hUnHPjbQS3zkCwcySzhMzCCFPmt33lDw9wm u8mb/cJ0q1glMKlwt6qzKcxSWFsEJhTUn01Hw+HD80/Ngs5Sdd47tBqvNMCvI/e3/BBfMBXhiiTTY piAOTGP/387pdteFa3BktctdCe+Q3CMP9lKLIPECL/M/RpT8YuaaM5/JcStut+BxzHiSKW6bJg5Bh 9gUymbjeuj3XB5fJPfwewCJLGa2wXk1LDk4cR1cW9kG1DlYC6GBZ4KhR9qkWujkKv/1j9mwe4tDfb IrzBGCbkkJJk+MS7IOSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wyWcK-0000000Gvi0-3UgH; Mon, 24 Aug 2026 15:29:44 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wyWcH-0000000Gvg3-1G0i for linux-amlogic@lists.infradead.org; Mon, 24 Aug 2026 15:29:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1787585380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/goNprm3vb+vqF+2+ZaUSBOvzdh+ZGsOcB6bvYFMahs=; b=dWHpnMI9KLnxCUbUwoz/Qb/oJXKZzWvjL60pzC6v2rIE0fLTeU087rD+KNHjZip6Yuz6/i r+tXrumCl7ZHRYiQUDx0eSyaa/R3OEC5tBnAM5Efl3G+bX+DOxnwWD/J5dT56nAZ0iw4by WXKvc1gLtQrQeWfAgqQjUEyHNr58+1s= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-665-DNo1pucxOBK2wXp6oEZVJQ-1; Mon, 24 Aug 2026 11:29:38 -0400 X-MC-Unique: DNo1pucxOBK2wXp6oEZVJQ-1 X-Mimecast-MFC-AGG-ID: DNo1pucxOBK2wXp6oEZVJQ_1787585378 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-51c1a97644aso47542871cf.2 for ; Mon, 24 Aug 2026 08:29:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787585378; x=1788190178; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/goNprm3vb+vqF+2+ZaUSBOvzdh+ZGsOcB6bvYFMahs=; b=fS6XPT6WdYZ7jqKYI2ngeIflai4meVhTolohNk2cfooFYwzvIalvsgsRacKquJNMsZ bHJrcjJipz1RSc/VTyF6PjQcA1Flxclg5ylJ/XJQAQM692lkl3g353TgEXtz7RR8PZUc g+Qb5JFd95TFa/OIGLCiGKNCrwMKkQxavrJJUO9vEBajehNmKuAtIxo6IKAdEXaZdS+H hGDlsVPH2vroiRNeVs9207xTUPjejhfdg1UkaO5/13w6edt9ZYmK3f1CHRtgY4/OpFQ9 u0FioMw9NlgYMG6Dnzu6oV4ffC6lo1x1aUuN5hKwG7Q/6+PhjpS08AbQBbZGl0HQfr/b DpPg== X-Forwarded-Encrypted: i=1; AHgh+RqAu961PHXLNYE/Hdaf86ZtQ6kl/b2B6nbcCuBZRVWjZ58R8kdtWMdK3uVIaxLM66dWCgJlGbXSUbfTzKPw@lists.infradead.org X-Gm-Message-State: AFuF++kOZKIeLtdlH7o8Lz4eJAf6MkzfBXAeIQ77mEXtfZaCA1hXIH/N yR/mxSRiibdzpRCDxLjbKnlMAdNtfHpMMWRXWxUFkZCACmUMykcEfM3txHaelpzjGtKx1Rk45fw i1cQKan3jr47gVIemCMuoDMPTnejixStMtLM+u/HltqGUonuSN9xdRer5vt7TyIOhDTFe2SMb X-Gm-Gg: AR+sD11aDMPi8oZwKfucYTy/55iGTsB8wJredmKJ6LnweDi+kSrejLzvEyDyD/huu7h GdTsW9Q6nhecct2p1vh6Mvdx0IpE6y8sB8CW97HCuQJgkw9nqgL1MyJS1bf5oYftxpj8potJ4RA sndUDXf4UsF70zI3NPuc0sLyiHximS1npAs3i2Y4bpAaJavvj1EWCVNfPne9tt1wOxFlCjAFOOn 3iqwDTGroJVR+Rb9yrVaBWk7sGgODiB8IL2m3a+5VB20Rks6fAr8Bl6lyPaGF9DBz+uucY36Ihf BrFVqa8RBKk6aoIIQaOFOIEccPG0hbXylYSEjqpS8GHwtpsNyj2/Iq7CyVXV1j0N0lqoLjRvzQw yBgIwSmd/iSNr79Udx1DZkFUrCG7FVvIHA5k= X-Received: by 2002:a05:6214:212d:b0:8c4:edb4:a44a with SMTP id 6a1803df08f44-90c80f9357fmr293301096d6.23.1787585377975; Mon, 24 Aug 2026 08:29:37 -0700 (PDT) X-Received: by 2002:a05:6214:212d:b0:8c4:edb4:a44a with SMTP id 6a1803df08f44-90c80f9357fmr293300306d6.23.1787585377513; Mon, 24 Aug 2026 08:29:37 -0700 (PDT) Received: from redhat.com (c-73-183-53-213.hsd1.pa.comcast.net. [73.183.53.213]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-90c936183d0sm65105676d6.22.2026.08.24.08.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2026 08:29:36 -0700 (PDT) Date: Mon, 24 Aug 2026 11:29:35 -0400 From: Brian Masney To: Lucas Tanure Cc: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Jian Hu , Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] clk: meson: t7: Intermittent boot instability and memory corruption on VIM4 Message-ID: References: <3930906f-783b-4d72-9260-ba25cc8081cb@linux.com> MIME-Version: 1.0 In-Reply-To: <3930906f-783b-4d72-9260-ba25cc8081cb@linux.com> User-Agent: Mutt/2.4.0 (2026-06-19) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: dwm7-ZhxxVMqZk9tDOAbWIpKARHTRGqcuXxzFKWtVxs_1787585378 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260824_082941_406631_6460DD18 X-CRM114-Status: GOOD ( 16.20 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Hi Lucas, On Sun, Aug 23, 2026 at 04:40:42PM +0100, Lucas Tanure wrote: > While testing mainline Linux on the Khadas VIM4 (Amlogic A311D2 / T7), I am > hitting intermittent system instability, storage loss, and memory corruption > during boot, unless I append clk_ignore_unused to the kernel command line. > > Because the failure is intermittent, I am running 100-reboot test campaigns > to bisect the remaining clocks and isolate which clocks are critical and > cannot be safely disabled. > > As testing takes significant time over serial console, I wanted to check if > Amlogic or the maintainers could shed light on this: > > Are there specific T7 clocks or hardware domains that must remain > critical/protected even without an explicit in-kernel consumer? > > Current clocks being disabled that don't kill the board on a test run: > > [ 0.380313] clk: Disabling unused clocks > [ 0.380413] clk: Disabled unused clock: rtc_dualdiv > [ 0.380718] clk: Disabled unused clock: rtc_duandiv_in > [ 0.381377] clk: Unprepared unused clock: a73_div16 > [ 0.381972] clk: Unprepared unused clock: cpu_div16 > [ 0.382605] clk: Unprepared unused clock: f50m > [ 0.383174] clk: Unprepared unused clock: fixed_pll_dco > [ 0.383786] clk: Unprepared unused clock: hdmi_pll_osc > [ 0.384416] clk: Unprepared unused clock: sys1_pll_osc > [ 0.385056] clk: Unprepared unused clock: earc_osc > [ 0.385652] clk: Unprepared unused clock: pcie_refclk_osc > [ 0.386323] clk: Unprepared unused clock: eth_pll_osc > [ 0.386961] clk: Unprepared unused clock: pcie_osc > [ 0.387548] clk: Unprepared unused clock: mclk_pll_osc > [ 0.388187] clk: Unprepared unused clock: usb_pll1_osc > [ 0.388826] clk: Unprepared unused clock: usb_pll0_osc > [ 0.389465] clk: Unprepared unused clock: tcon_pll_osc > [ 0.390105] clk: Unprepared unused clock: top_pll_osc > [ 0.390738] clk: Unprepared unused clock: aud_pll_osc > [ 0.391361] clk: Unprepared unused clock: ddr_pll_osc > > I am not forcing any clock to be disabled; I am forcing all clocks to stay > on and letting them be disabled if unused one by one. > > Any guidance or hints on required platform clocks would be greatly > appreciated. I have an outstanding series that disables unused clocks via the sync_state callback: https://lore.kernel.org/linux-clk/20260626-clk-sync-state-v1-0-4156d8196dc8@redhat.com/ Be sure to not have clk_ignore_unused in your kernel command line. I suggest comparing the list of which clocks are disabled with that series against your list of clocks above. Brian _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic