public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Tuomas Tynkkynen <tuomas-yrGDUoBaLx3QT0dZR+AlfA@public.gmane.org>
To: Stefan Agner <stefan.agner-2KBjVHiyJgBBDgjK7y7TUQ@public.gmane.org>
Cc: Marcel Ziswiler
	<marcel.ziswiler-2KBjVHiyJgBBDgjK7y7TUQ@public.gmane.org>,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: TK1 System Freeze
Date: Tue, 6 Feb 2018 18:40:41 +0200	[thread overview]
Message-ID: <20180206184041.131525eb@duuni> (raw)
In-Reply-To: <19526d1015c3c60e8bbdf26ec9d082bb-XLVq0VzYD2Y@public.gmane.org>

Hi Stefan,

On Tue, 06 Feb 2018 08:51:19 +0100
stefan-XLVq0VzYD2Y-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org wrote:

> On 13.01.2018 01:19, Stefan Agner wrote:
> > Hi Marcel, Hi Thierry,
> > 
> > On 2017-11-20 00:57, Marcel Ziswiler wrote:  
> >> Hi there
> >>
> >> I lately was tasked to run some legacy Qt4e [1] application on Apalis
> >> TK1. It should really only draw directly to the Linux frame buffer
> >> /dev/fb0. Strangely as soon as that application is started the whole
> >> system freezes. Running it with the VNC backend or a pure frame buffer
> >> emulation it works just fine. So it must have something to do with the
> >> particular way the frame buffer is done on TK1. So far no attempt in
> >> debugging this any further bear any fruit. Whether stracing what the
> >> application is doing nor tracing the linux kernel side of things
> >> revealed where exactly the freeze happens. As I feared some kind of a
> >> configuration issue on Apalis TK1 I also tried the same on Jetson TK1
> >> with latest stock Linux kernel 4.14. However the same freeze happens.  
> > 
> > This is still the case with 4.15-rc7.
> > 
> > While dd is not enough to reproduce it, using a simple fbdev application
> > such as ts_calibrate seems to be sufficient. Qt and ts_calibrate use
> > mmap for the framebuffer. The system seems to freeze when it tries to
> > write into the mapped area (at the memset line):
> > https://github.com/kergoth/tslib/blob/master/tests/fbutils-linux.c#L160
> > 
> > Is this a known problem? Any idea?  
> 
> Thierry, anybody else, any idea? This should be easily reproducible on
> Jetson TK1.
> 

Some time ago I was able to cause a similar-sounding hang by running kmscon[1]
on the Jetson TK1. I remember that I tried the debug the problem with a
Lauterbach JTAG debugger at some point, but whatever steps that I did
to make the Lauterbach usable on mainline also made the problem disappear!
IIRC, it was disabling cpuidle (either via cmdline or sysfs, can't remember)
that made the hang go away.

[1]: https://github.com/dvdhrm/kmscon

- Tuomas

  parent reply	other threads:[~2018-02-06 16:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-19 23:57 TK1 System Freeze Marcel Ziswiler
     [not found] ` <1511135854.13661.3.camel-2KBjVHiyJgBBDgjK7y7TUQ@public.gmane.org>
2018-01-13  0:19   ` Stefan Agner
     [not found]     ` <7d874417cbb2067bcb4f49af000f9f03-XLVq0VzYD2Y@public.gmane.org>
2018-02-06  7:51       ` stefan-XLVq0VzYD2Y
     [not found]         ` <19526d1015c3c60e8bbdf26ec9d082bb-XLVq0VzYD2Y@public.gmane.org>
2018-02-06 16:40           ` Tuomas Tynkkynen [this message]
2018-02-07 17:51           ` Thierry Reding
2018-02-07 19:20             ` stefan-XLVq0VzYD2Y

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180206184041.131525eb@duuni \
    --to=tuomas-yrgduobalx3qt0dzr+alfa@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marcel.ziswiler-2KBjVHiyJgBBDgjK7y7TUQ@public.gmane.org \
    --cc=stefan.agner-2KBjVHiyJgBBDgjK7y7TUQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox