Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp968640ybi; Fri, 26 Jul 2019 23:56:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRNAa7wlfsI2K4bW6n9QIjMsjEeTF4WqwSz0+qTPxZeKkOWUMHSoljn5U1K14Kwk1EDXpY X-Received: by 2002:a62:3543:: with SMTP id c64mr25632051pfa.242.1564210612513; Fri, 26 Jul 2019 23:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564210612; cv=none; d=google.com; s=arc-20160816; b=bOs20a+dpYmEaW82ya6avkxKDGoz55+4bzqBI0Lr3sFUQVaqTod5y50Fm5ohsR9YJS EGtc5tXOYxjPaWpmamuADcncIGWQEqBQ1nIoJbuS40CAVf2vfwp0gsAcbLEQubmShK9W G8eA5/q+9JzAc4FpmjiA+oDXMCZsPwTFUfakued9x5NF1Ub/qPs8TGPkV1RyWJV9bVAU LJracibCrrcqTe3FNJw+4iJobBOn0pRHTH0s/Beiz/aOL7ugWiJtISMTj6ItRBOg6GiV Ks5mKtXlSmIWo74okHTGGV9r/nzlCUhmBZYi4G0IddbxrVnyRKhChlqwfvnu38KqvvJb H/Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ldJpVA6CE8TYIFWLOiSPguYs7EOGYw+Dfb3wpQniKEw=; b=xbVOgfIB7SS4kiLxRgSuU4I/QmoMYFdnZXfhhqAldh0ku54hX9KxIZvPifr9oqK2um FQWQYJqaGEMBmhbQBVio5DD4RhdmLD4gPr2WVPPt713s8snluUf4n2Df83e7uVQ4mJKB NJoj3J6mwgBCmlzTP830x5/5Rm3EYnoKRDa/4OBg6kszxddTAwMjZa7TH+GAqkemvXqQ pf2MPEXp4SqizBKJOkns1TYkU+EY7DIKt2z+NDkDVfD0r71UBHmq/htp4wURiIrO05qj t5+u0/St3j/TT6uTzeswL5cE8uSiorGOnFA4Ck/dnbxWuMKpRKHeWimYwXTj30ol0JXj yN4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sPAPHVvj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si18764006plp.4.2019.07.26.23.56.37; Fri, 26 Jul 2019 23:56:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sPAPHVvj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387443AbfG0GdY (ORCPT + 99 others); Sat, 27 Jul 2019 02:33:24 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37205 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfG0GdX (ORCPT ); Sat, 27 Jul 2019 02:33:23 -0400 Received: by mail-wm1-f65.google.com with SMTP id f17so49271994wme.2; Fri, 26 Jul 2019 23:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ldJpVA6CE8TYIFWLOiSPguYs7EOGYw+Dfb3wpQniKEw=; b=sPAPHVvj/MDKirz5G4DrNwsHaEC0OfA1zsJsGk2qMS1qyY87+dcEx7MzdyqHWvfh+e zPkHdYDZdYpEHzIPzgrYVsxPJMz/2orE7rs6BQcAf1EnyZouv2q9YKBs6ULpldMnIoRw DKPC8U0a+vCYNaheHFFXB/AVlxozJpJI16dQxFkPak/RBGY2p15dte3hJ3E9Id2vRUZQ sfC3oIjEse/IRiiXQNnfhQNLPlukknwB4Qcy0Sjz5+52G6mINUwuiwSdY1+CeXvVQWSc Ap8uXbYfRIx5yi8Gy6GbGBjXPVMRQr4arZd6854a5NbouDV3IWi6pRu6GhSevHiJgD82 OsAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ldJpVA6CE8TYIFWLOiSPguYs7EOGYw+Dfb3wpQniKEw=; b=B0MKRtk+nwB17UO9MKmDgD97ppmu9r8TisruBjuBxwuESs6O9hNtJa1d0crXgY5VRn 2QEKg2VLTILaIYIJf0FAuYf/k2KdeydI7kzw5D2aAWn+c3VxoeTO1Q6HAkhxY0EjjPNI rXD/ibZ4NKvnxMnqASiC5iLSHRI/Jy8YHatniLVZricleFRrG0wKPJapDGtzFwcOYV7s tMPfjLO9uyDKBQHeeNAWQcwyJdlcXzFK06nCVwnuJXaUcuL5hJNY48wcQvAmKZm2CijU nTrlXSirx0NRtgV08WjJmc3pasyQUBjwz5zuS6WwCs6ROoSXCVmda46Hovm4ABmBS1T9 Lh2w== X-Gm-Message-State: APjAAAWfXALFhv7bRctswB4NcjFZFJMJNYxmYfqJOdfcm4xr7RIkYeto XCkUzzPSMpprdHpZhQyzsZuecFYAggURqihbUdQ= X-Received: by 2002:a1c:96c7:: with SMTP id y190mr81779074wmd.87.1564209201152; Fri, 26 Jul 2019 23:33:21 -0700 (PDT) MIME-Version: 1.0 References: <20190705045612.27665-1-Anson.Huang@nxp.com> <20190705045612.27665-5-Anson.Huang@nxp.com> In-Reply-To: From: Daniel Baluta Date: Sat, 27 Jul 2019 09:33:10 +0300 Message-ID: Subject: Re: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag for IMX8MQ_CLK_TMU_ROOT To: Anson Huang Cc: "rui.zhang@intel.com" , "edubezval@gmail.com" , "daniel.lezcano@linaro.org" , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Michael Turquette , Stephen Boyd , Lucas Stach , Abel Vesa , Andrey Smirnov , "Angus Ainslie (Purism)" , Carlo Caione , =?UTF-8?Q?Guido_G=C3=BCnther?= , Leonard Crestez , "linux-pm@vger.kernel.org" , Devicetree List , Linux Kernel Mailing List , linux-arm-kernel , "linux-clk@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 27, 2019 at 9:19 AM Anson Huang wrote: > > Hi, Daniel > > > Subject: Re: [PATCH 5/6] clk: imx8mq: Remove CLK_IS_CRITICAL flag for > > IMX8MQ_CLK_TMU_ROOT > > > > Hi all, > > > > latest linux-next hangs at boot. > > > > commit fde50b96be821ac9673a7e00847cc4605bd88f34 (HEAD -> master, tag: > > next-20190726, origin/master, origin/HEAD) > > Author: Stephen Rothwell > > Date: Fri Jul 26 15:18:02 2019 +1000 > > > > Add linux-next specific files for 20190726 > > > > Signed-off-by: Stephen Rothwell > > > > > > I know this is crazy but reverting commit: > > > > commit 431bdd1df48ee2896ea9980d9153e3aeaf0c81ef (refs/bisect/bad) > > Author: Anson Huang > > Date: Fri Jul 5 12:56:11 2019 +0800 > > > > clk: imx8mq: Remove CLK_IS_CRITICAL flag for IMX8MQ_CLK_TMU_ROOT > > > > IMX8MQ_CLK_TMU_ROOT is ONLY used for thermal module, the driver > > should manage this clock, so no need to have CLK_IS_CRITICAL flag > > set. > > > > > > > > makes the boot work again. > > > > Any idea? > > I just found if disabling SDMA1, then kernel can boot up, it does NOT make sense > TMU clock is related to SDMA1, I will check with design and get back to you soon. > Hi Anson, Applying Abel's patch: commit 8816c47db6a82f55bb4d64f62fd9dd3af680f0e4 (HEAD -> master) Author: Abel Vesa Date: Tue Jun 25 12:01:56 2019 +0300 clk: imx8mq: Mark AHB clock as critical Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled. The kernel boots up again. It make some sense. I don't understand though why having IMX8MQ_CLK_TMU_ROOT as critical also "unhangs" the kernel. thanks, Daniel.