All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Henrik Nordström" <henrik@henriknordstrom.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] Re: [PATCH] video: add cfb console driver for sunxi
Date: Mon, 04 Aug 2014 23:26:22 +0200	[thread overview]
Message-ID: <1407187582.4733.63.camel@localhost> (raw)
In-Reply-To: <CAOMqctTygYfEUphn9AKvb3ptQTn8JPvxXTXxJSkWkEK5Z4PEnw@mail.gmail.com>

m?n 2014-08-04 klockan 18:53 +0200 skrev Michal Suchanek:

> Then you have to define what is compatible.

Yes, and the part I responded to was odd unexpected combinations of
u-boot only partially providing the right information (missing in DT) or
kernel not having enabled support.

Likewise there is the opposite situation which is also in the
unsupported area, simplefb nodes in the DT but framebuffer not actually
enabled by u-boot.

Exact details on what needs to be provided in DT and how for glitch free
handover from u-boot to KMS is a bit premature to dive into now.

> eg. you can define that if you do have simplefb in u-boot you should
> have it in kernel.

Maybe. I am only saying that there is no need to try to cover all corner
cases and odd/partial combinations. It's sufficient to cover two cases:
all enabled, all disabled. In both u-boot, kernel and DT. (well, enabled
in kernel but not in DT should be the same as disabled in kernel, so
three cases).

> If you do not have simplefb in kernel the fb memory may get reused and
> the clocks should get disabled as unused, eventually. Unless you set
> the debug option not to disable them. And KMS might eventually take
> over reprogramming or re-enabling the clocks again if you have it.

Memory would be lost today if the region is reserved in DT, but may
eventually be reclaimed when support is available in kernel. And user
should expect strange display effects as clock sources and eventually
memory gets reprogrammed and/or repurposed without anything shutting off
the disaplay engine. I do not see a problem here.

My preferred solution to this problem is to have u-boot shut off (or not
enable) the display engine before starting the kernel, and to provide a
DT without simplefb nodes. Don't worry too much about this odd case in
the kernel.

> Or as pointed out earlier you might find this unacceptable and even
> with simplefb compiled out the KMS driver would need enough simplefb
> logic to analyze the simplefb DT node and reuse the clocks and memory
> without reprogramming.

Maybe, but glich free handover is not a primary or even high priority
goal, or even what I really commented on.

It's something that can be looked into when KMS is functional. And
missing support should cause no more than a temporary display glitch
until KMS have fully claimed and programed the display components.
Likely on the same scale as KMS selecting another display mode.

Regards
Henrik

  reply	other threads:[~2014-08-04 21:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 16:14 [U-Boot] [PATCH] video: add cfb console driver for sunxi Luc Verhaegen
2014-08-04  8:39 ` Hans de Goede
2014-08-04 15:05   ` Luc Verhaegen
2014-08-04 15:31     ` [U-Boot] [linux-sunxi] " Henrik Nordström
2014-08-04 16:53       ` Michal Suchanek
2014-08-04 21:26         ` Henrik Nordström [this message]
2014-08-04 17:28       ` Luc Verhaegen
2014-08-04 22:10         ` Henrik Nordström
2014-08-05 20:55           ` Maxime Ripard
2014-08-05 21:03     ` Maxime Ripard
2014-08-05 21:37       ` Michal Suchanek
2014-08-06  7:24         ` [U-Boot] [linux-sunxi] " Koen Kooi
2014-08-06 11:10           ` Hans de Goede
2014-08-06 12:21         ` [U-Boot] [linux-sunxi] " Maxime Ripard
2014-08-05 11:56 ` [U-Boot] " Hans de Goede
2014-08-05 20:47   ` [U-Boot] [linux-sunxi] " Maxime Ripard
2014-08-06 11:40   ` [U-Boot] " Luc Verhaegen
2014-08-07  9:28     ` Hans de Goede

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=1407187582.4733.63.camel@localhost \
    --to=henrik@henriknordstrom.net \
    --cc=u-boot@lists.denx.de \
    /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.