All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: gma500: color distortion on framebuffer console unbind
Date: Tue, 25 Oct 2016 10:34:23 +0300	[thread overview]
Message-ID: <20161025073423.wcllob426yy3spvi@tarshish> (raw)
In-Reply-To: <CAMeQTsaF6E1RmFAqez6eCFWYzv8y_T1dZRZywooHthA8qc6Oyw@mail.gmail.com>

Hi Patrik,

On Thu, Oct 20, 2016 at 12:39:35AM +0200, Patrik Jakobsson wrote:
> Sorry for late reply. Could be that we're not restoring the state
> properly. Not sure though that we guarantee that the framebuffer
> contents is valid after unbind. Perhaps take a look at what other
> drivers do. I see the same issue on my PSB systems which run SDVO so
> it is at least not LVDS related. Unfortunately I wont have time to
> look at anything gma500 related at the moment. Feel free to dig into
> this and I'll also put it on my todo-list.

Thanks for taking the time to reproduce this issue. This rules out any local 
board layout issue on my side. For the record, my hardware is the Advantech 
SIMB-M02 Mini-ITX board.

I should have mentioned that the issue persists after unbind. That is, when I 
run fb-test only after unbind, I see the same corrupted display. So 
framebuffer content invalidation on console unbind is unlikely to be the issue 
here.

One more point that we see a similar issue with our Qt based application that 
uses the "linuxfb" plugin. The interesting twist here is that SOMETIMES the 
display corruption issue just disappears after a few minutes. The application 
is idle during that time. Not sure what to make of that.

Thanks,
baruch

> On Mon, Oct 10, 2016 at 10:01 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> > I am using the gma500 driver of the latest stable kernel, 4.8.1. My 
> > hardware is Atom N2600 processor integrated graphics controller, PCI PID: 
> > 0x0be1. Output is LVDS. The system starts with framebuffer console 
> > enabled. Later in the boot process I unbind the console with the following 
> > command:
> >
> >   echo 0 > /sys/class/vtconsole/vtcon1/bind
> >
> > Immediately as the console is unbound some colors on the screen appear
> > distorted. The links below show the output of 'fb-test'
> > (https://github.com/prpplague/fb-test-app) before and after unbind.
> >
> >   http://filebin.ca/2xxwlwtBBzBN/display-good.jpg
> >   http://filebin.ca/2xxxTyIboJnR/display-bad.jpg
> >
> > Suggestions are welcome.

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2016-10-25  7:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10  8:01 gma500: color distortion on framebuffer console unbind Baruch Siach
2016-10-19 22:39 ` Patrik Jakobsson
2016-10-25  7:34   ` Baruch Siach [this message]

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=20161025073423.wcllob426yy3spvi@tarshish \
    --to=baruch@tkos.co.il \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=patrik.r.jakobsson@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.