public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] Re: [PATCH] video: add cfb console driver for sunxi
Date: Tue, 5 Aug 2014 22:55:42 +0200	[thread overview]
Message-ID: <20140805205542.GE2019@lukather> (raw)
In-Reply-To: <1407190230.4733.77.camel@localhost>

On Tue, Aug 05, 2014 at 12:10:30AM +0200, Henrik Nordstr?m wrote:
> > How's this for the sunxi implementation of simplefb:
> > * u-boot lists used clocks, to allow some code in simplefb.c to grab all 
> >   clocks. This is necessary as the list of clocks might change with 
> >   changed cfb-console driver functionality.
> 
> Is this list of clocks in any way different from what KMS needs to use?

Not really, but Luc haven't been using all the clocks that might be
used by the KMS driver, and just uses a subset of it.

> > * when the clocks get disabled, the existing display engine setup 
> >   becomes useless. the dt simplefb node has its status set to disabled. 
> >   The memory range info remains, none of the reserved ram is returned 
> >   to system. This needs to happen in both simplefb.c and in clk-sunxi.c.
> 
> Disabled by whom?

Linux' clock framework.

> > * when the memory range gets mapped by the kms driver (currently, on 
> >   sunxi-3.4 i just use the full disp driver reserved range directly) in 
> >   a way that it will be released again at unload, the memory range info 
> >   remains. This ensures that future kms driver reloads can still grab 
> >   this memory.
> 
> Why do a KMS reload need to be able to grab the same memory again? The
> display is shut off when the KMS driver is unloaded, right? Or this only
> temporary?
> 
> > * when however the memory range gets mapped to cma globally, the memory 
> >   range info is removed.
> > 
> > It makes sense to add the clock handling and the disabling of the
> > simple-framebuffer node in the actual simplefb driver. The memory 
> > handling should be considered platform specific behaviour for now, but 
> > perhaps dt reserved memory infrastructure can come to the rescue in 
> > future.
> 
> Maybe, but people who need framebuffer in u-boot likley need it in
> kernel as well I would think, so I do not worry much about releasing the
> memory back to kernel for general purpose use if it has been reserved by
> u-boot.
> 
> If you really have no use of the display then don't enable it in the
> first place (or make sure it's shut off). Including any memory
> reservations.
> 
> Similar to PC BIOS settings for reserved (shared) memory on many IGP
> devices. You don't normally change such settings in kernel. If you want
> a different memory layout then shut down, change BIOS settings and boot
> again. Not a problem imho. (shut down, change u-boot & DT settings, boot
> again).

Except that here, "change u-boot & DT settings" means "recompile
u-boot and the DT, and flash the whole thing again to your
system". Not really as painless as what you're suggesting.


-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140805/5d94b6a5/attachment.pgp>

  reply	other threads:[~2014-08-05 20:55 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
2014-08-04 17:28       ` Luc Verhaegen
2014-08-04 22:10         ` Henrik Nordström
2014-08-05 20:55           ` Maxime Ripard [this message]
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=20140805205542.GE2019@lukather \
    --to=maxime.ripard@free-electrons.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox