Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1276571

Re: [PATCH] clk: tegra: Fix bypassing of PLLs

From Jon Hunter <jonathanh@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH] clk: tegra: Fix bypassing of PLLs
Date 2015-11-24 16:30 +0100
Message-ID <qynHC-1tb-63@gated-at.bofh.it> (permalink)
References <qwVDH-uA-7@gated-at.bofh.it> <qy8yR-8vh-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Tyler,

On 23/11/15 23:18, Tyler Baker wrote:
> Hi Jon,
> 
> On 20 November 2015 at 07:11, Jon Hunter <jonathanh@nvidia.com> wrote:
>> The _clk_disable_pll() function will attempt to place a PLL into bypass
>> if the TEGRA_PLL_BYPASS is specified for the PLL and then disable the PLL
>> by clearing the enable bit. To place the PLL into bypass, the bypass bit
>> needs to be set and not cleared. Fix this by setting the bypass bit and
>> not clearing it.
>>
>> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> 
> The kernelci.org bot recently detected a jetson-tk1 boot failure[1][2]
> in the tegra tree. This boot failure has only been observed when
> booting with a multi_v7_defconfig kernel variant. The bot bisected[3]
> this boot failure to this commit, and I confirmed reverting it on top
> of the tegra for-next branch resolves the issue. The ramdisk[4] used
> for booting is loaded with the modules from the build. It appears to
> me that as the modules are being loaded in userspace by eudev the
> jetson-tk1 locks up. I've sifted through the console logs a bit, and
> found this splat to be most interesting[5].  Can you confirm this
> issue on your end?

It appears that the crash is occurring when the tegra-devfreq driver is
loaded and I have been able to narrow it down to the pllm pll that is
causing the problem. If I remove the bypass flag for pllm then I no
longer see the problem (see below). However, the bypass bit is valid for
this pll and so I need to see if there is another bug lurking in the
management of this pll. The pllm has an additional override feature and
I see another enable bit. I need to check this code.

Cheers
Jon

commit 1e4a77f9f08b34f63fc1d4768a31edd5070321a7
Author: Jon Hunter <jonathanh@nvidia.com>
Date:   Tue Nov 24 15:13:58 2015 +0000

    clk: tegra: Don't bypass pllm (TESTING ONLY)

diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c
index c7b5f039d283..bf809086c1e6 100644
--- a/drivers/clk/tegra/clk-pll.c
+++ b/drivers/clk/tegra/clk-pll.c
@@ -1788,7 +1788,6 @@ struct clk *tegra_clk_register_pllm(const char
*name, const char *parent_name,
                pll_params->vco_min = pll_params->adjust_vco(pll_params,
                                                             parent_rate);

-       pll_params->flags |= TEGRA_PLL_BYPASS;
        pll_params->flags |= TEGRA_PLLM;
        pll = _tegra_init_pll(clk_base, pmc, pll_params, lock);
        if (IS_ERR(pll))
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-20 16:20 +0100
  Re: [PATCH] clk: tegra: Fix bypassing of PLLs Rhyland Klein <rklein@nvidia.com> - 2015-11-20 17:50 +0100
  Re: [PATCH] clk: tegra: Fix bypassing of PLLs Stephen Boyd <sboyd@codeaurora.org> - 2015-11-20 18:20 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-23 13:40 +0100
  Re: [PATCH] clk: tegra: Fix bypassing of PLLs Tyler Baker <tyler.baker@linaro.org> - 2015-11-24 00:20 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-24 11:30 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Thierry Reding <thierry.reding@gmail.com> - 2015-11-24 16:20 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-24 16:30 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Thierry Reding <thierry.reding@gmail.com> - 2015-11-25 16:20 +0100
      Re: [PATCH] clk: tegra: Fix bypassing of PLLs Tyler Baker <tyler.baker@linaro.org> - 2015-11-25 17:00 +0100
        Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-25 18:50 +0100
          Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-26 11:00 +0100

csiph-web