public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* tegra-devfreq hangs TK1 with R21.4 u-boot
@ 2016-06-12  3:45 Martin Michlmayr
  2016-06-12 17:15 ` Shreshtha
       [not found] ` <20160612034541.GA31426-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Martin Michlmayr @ 2016-06-12  3:45 UTC (permalink / raw)
  To: Thierry Reding, Tomeu Vizoso; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA

I noticed that the Jetson TK1 hangs during boot (when/before mounting
the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
from R21.4 is used (2014.10-rc2).

The hang does not occur when I disable tegra-devfreq or when I use
tegra-devfreq in combination with u-boot 2016.03 (from DENX upstream,
built by Debian).

Steps to reproduce:

ARCH=arm make multi_v7_defconfig
Set CONFIG_ARM_TEGRA_DEVFREQ=y
Boot from an external SD card and it will hang when/before mounting the
SD card.

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
  2016-06-12  3:45 tegra-devfreq hangs TK1 with R21.4 u-boot Martin Michlmayr
@ 2016-06-12 17:15 ` Shreshtha
       [not found]   ` <loom.20160612T175114-608-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
       [not found] ` <20160612034541.GA31426-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Shreshtha @ 2016-06-12 17:15 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA

Martin Michlmayr <tbm@...> writes:

> 
> I noticed that the Jetson TK1 hangs during boot (when/before mounting
> the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
> from R21.4 is used (2014.10-rc2).

I cannot find CONFIG_ARM_TEGRA_DEVFREQ in r21.4 codeline. With default
"tegra12_defconfig", CONFIG_PM_DEVFREQ is getting enabled.

Can you please share some more details about CONFIG_ARM_TEGRA_DEVFREQ, which
file it complies and if it is really present in code or pulled from other git.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
       [not found]   ` <loom.20160612T175114-608-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
@ 2016-06-12 17:31     ` Martin Michlmayr
       [not found]       ` <20160612173106.GA31522-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Michlmayr @ 2016-06-12 17:31 UTC (permalink / raw)
  To: Shreshtha; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA

* Shreshtha <shreshthakumar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [2016-06-12 17:15]:
> > I noticed that the Jetson TK1 hangs during boot (when/before mounting
> > the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
> > from R21.4 is used (2014.10-rc2).
> 
> I cannot find CONFIG_ARM_TEGRA_DEVFREQ in r21.4 codeline. With default
> "tegra12_defconfig", CONFIG_PM_DEVFREQ is getting enabled.
> 
> Can you please share some more details about CONFIG_ARM_TEGRA_DEVFREQ, which
> file it complies and if it is really present in code or pulled from other git.

Sorry for not being clear.  I'm talking about the mainline kernel from
kernel.org:
drivers/devfreq/Makefile:obj-$(CONFIG_ARM_TEGRA_DEVFREQ)                += tegra-devfreq.o

Booting a mainline kernel with tegra-devfreq enabled will hang my machine
during bootup when I use the u-boot from R21.4 (which I believe is the
latest provided by NVIDIA).

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
       [not found] ` <20160612034541.GA31426-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
@ 2016-06-13  5:45   ` Tomeu Vizoso
  2016-06-16 16:16   ` Thierry Reding
  1 sibling, 0 replies; 8+ messages in thread
From: Tomeu Vizoso @ 2016-06-13  5:45 UTC (permalink / raw)
  To: Martin Michlmayr
  Cc: Thierry Reding,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On 12 June 2016 at 05:45, Martin Michlmayr <tbm-R+vWnYXSFMfQT0dZR+AlfA@public.gmane.org> wrote:
> I noticed that the Jetson TK1 hangs during boot (when/before mounting
> the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
> from R21.4 is used (2014.10-rc2).
>
> The hang does not occur when I disable tegra-devfreq or when I use
> tegra-devfreq in combination with u-boot 2016.03 (from DENX upstream,
> built by Debian).

Works as well with 2015.01, which is closer to the one in R21.4.

https://lava.collabora.co.uk/scheduler/job/238991/log_file#L_3_5

Regards,

Tomeu

> Steps to reproduce:
>
> ARCH=arm make multi_v7_defconfig
> Set CONFIG_ARM_TEGRA_DEVFREQ=y
> Boot from an external SD card and it will hang when/before mounting the
> SD card.
>
> --
> Martin Michlmayr
> http://www.cyrius.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
       [not found] ` <20160612034541.GA31426-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  2016-06-13  5:45   ` Tomeu Vizoso
@ 2016-06-16 16:16   ` Thierry Reding
       [not found]     ` <20160616161611.GC19360-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Thierry Reding @ 2016-06-16 16:16 UTC (permalink / raw)
  To: Martin Michlmayr
  Cc: Tomeu Vizoso, linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

On Sat, Jun 11, 2016 at 08:45:41PM -0700, Martin Michlmayr wrote:
> I noticed that the Jetson TK1 hangs during boot (when/before mounting
> the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
> from R21.4 is used (2014.10-rc2).
> 
> The hang does not occur when I disable tegra-devfreq or when I use
> tegra-devfreq in combination with u-boot 2016.03 (from DENX upstream,
> built by Debian).
> 
> Steps to reproduce:
> 
> ARCH=arm make multi_v7_defconfig
> Set CONFIG_ARM_TEGRA_DEVFREQ=y
> Boot from an external SD card and it will hang when/before mounting the
> SD card.

Stephen, any ideas what might be going on here?

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
       [not found]       ` <20160612173106.GA31522-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
@ 2016-06-17 16:17         ` Stephen Warren
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Warren @ 2016-06-17 16:17 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: Shreshtha, linux-tegra-u79uwXL29TY76Z2rM5mHXA

On 06/12/2016 11:31 AM, Martin Michlmayr wrote:
> * Shreshtha <shreshthakumar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [2016-06-12 17:15]:
>>> I noticed that the Jetson TK1 hangs during boot (when/before mounting
>>> the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
>>> from R21.4 is used (2014.10-rc2).
>>
>> I cannot find CONFIG_ARM_TEGRA_DEVFREQ in r21.4 codeline. With default
>> "tegra12_defconfig", CONFIG_PM_DEVFREQ is getting enabled.
>>
>> Can you please share some more details about CONFIG_ARM_TEGRA_DEVFREQ, which
>> file it complies and if it is really present in code or pulled from other git.
>
> Sorry for not being clear.  I'm talking about the mainline kernel from
> kernel.org:
> drivers/devfreq/Makefile:obj-$(CONFIG_ARM_TEGRA_DEVFREQ)                += tegra-devfreq.o
>
> Booting a mainline kernel with tegra-devfreq enabled will hang my machine
> during bootup when I use the u-boot from R21.4 (which I believe is the
> latest provided by NVIDIA).

Note that if you're booting a mainline kernel, there's no need to use 
the L4T U-Boot release; a mainline U-Boot release should work just fine. 
Or put another way, the "latest provided by NVIDIA" is actually mainline 
U-Boot, unless you need to boot a downstream L4T kernel which has some 
downstream-specific requirements.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
       [not found]     ` <20160616161611.GC19360-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
@ 2016-06-17 16:30       ` Stephen Warren
       [not found]         ` <5764258F.3060207-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Warren @ 2016-06-17 16:30 UTC (permalink / raw)
  To: Thierry Reding, Martin Michlmayr
  Cc: Tomeu Vizoso, linux-tegra-u79uwXL29TY76Z2rM5mHXA, Stephen Warren

On 06/16/2016 10:16 AM, Thierry Reding wrote:
> On Sat, Jun 11, 2016 at 08:45:41PM -0700, Martin Michlmayr wrote:
>> I noticed that the Jetson TK1 hangs during boot (when/before mounting
>> the SD disk) when CONFIG_ARM_TEGRA_DEVFREQ=y is set and when u-boot
>> from R21.4 is used (2014.10-rc2).
>>
>> The hang does not occur when I disable tegra-devfreq or when I use
>> tegra-devfreq in combination with u-boot 2016.03 (from DENX upstream,
>> built by Debian).
>>
>> Steps to reproduce:
>>
>> ARCH=arm make multi_v7_defconfig
>> Set CONFIG_ARM_TEGRA_DEVFREQ=y
>> Boot from an external SD card and it will hang when/before mounting the
>> SD card.
>
> Stephen, any ideas what might be going on here?

I can't think of anything obvious, and the commit history of the L4T 
U-Boot is constructed in such a way that's it's essentially impossible 
to follow, so I can't easily tell what changes exist in the L4T U-Boot 
release that weren't upstream or vice-versa. If simply using mainline 
U-Boot works and is an option for you, I'd suggest that.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: tegra-devfreq hangs TK1 with R21.4 u-boot
       [not found]         ` <5764258F.3060207-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2016-06-17 17:34           ` Martin Michlmayr
  0 siblings, 0 replies; 8+ messages in thread
From: Martin Michlmayr @ 2016-06-17 17:34 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Thierry Reding, Tomeu Vizoso, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	Stephen Warren

* Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> [2016-06-17 10:30]:
> If simply using mainline U-Boot works and is an option for you, I'd
> suggest that.

Sure, that works for me.

Some background: I'm currently in the process of documenting how to
run Debian on the TK1.  I wanted to give users a choice to stay with
the u-boot from R21.4 or to upgrade to a newer mainline u-boot.  And
then I ran into the problems with the R21.4 u-boot I described.

I'm perfectly fine with telling users they have to upgrade to mainline
u-boot.  We provide precompiled u-boot binaries for TK1 in Debian
anyway.

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-17 17:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-12  3:45 tegra-devfreq hangs TK1 with R21.4 u-boot Martin Michlmayr
2016-06-12 17:15 ` Shreshtha
     [not found]   ` <loom.20160612T175114-608-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2016-06-12 17:31     ` Martin Michlmayr
     [not found]       ` <20160612173106.GA31522-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
2016-06-17 16:17         ` Stephen Warren
     [not found] ` <20160612034541.GA31426-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
2016-06-13  5:45   ` Tomeu Vizoso
2016-06-16 16:16   ` Thierry Reding
     [not found]     ` <20160616161611.GC19360-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-06-17 16:30       ` Stephen Warren
     [not found]         ` <5764258F.3060207-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-06-17 17:34           ` Martin Michlmayr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox