All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Suchanek <hramrach@gmail.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 23:37:11 +0200	[thread overview]
Message-ID: <CAOMqctTxx9GRLR_fRVkUCOh882j=kByB4HYgRqaGOkSr7GDsrQ@mail.gmail.com> (raw)
In-Reply-To: <20140805210324.GF2019@lukather>

On 5 August 2014 23:03, Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
> On Mon, Aug 04, 2014 at 05:05:00PM +0200, Luc Verhaegen wrote:
>> On Mon, Aug 04, 2014 at 10:39:13AM +0200, Hans de Goede wrote:
>> > Hi Luc,
>> >
>> > First of all many thanks for your work on this.
>> >
>> > ATM I don't have time to do a full review, but I don't expect there
>> > to be too many suprises when I do find the time.
>> >
>> > Really my only concern is the handover of the reserved memory, etc. to
>> > the kernel. We need to get a plan in place for that *before* this can
>> > be merged. Note I don't want to raise any artificial barriers here,
>> > I would love to see this merged ASAP. But I don't want to paint us
>> > in a corner where u-boot having hdmi console support makes it harder
>> > to get kms support in the kernel going. I think we can both agree on that.
>> >
>> > So I really want to see some plan how this will work in place before merging.
>> > Note just a plan, I don't expect kernel patches ready to be merged for this,
>> > just a good idea / sketch of how all the bits will fit together.
>>
>> Memory is not the biggest worry.
>>
>> Some kernel code needs to claim clocks if the mode is to cleanly survive
>> the start of the kernel. If not, there is no coming back until a proper
>> display driver runs. If the simplefb driver claims these clocks, then
>> the simplefb driver also must release these clocks, and this driver
>> should then never be started again, so it should set the simplefb dt
>> node status to "disabled".
>
> I'm probably missing a bit of context, but one thing I still don't get
> is why you're taking into account the simplefb <-> KMS handover. It's
> a case that shouldn't exist.
>
> By essence, simplefb has never been meant for that. It's been meant to
> have a temporary solution until a full-fledged driver is merged in the
> kernel. Which is exactly the case we're into.

It's a permanent temporary solution. Same as offb/vesafb/uefi and
other unaccelerated drivers. It will be needed for platforms on which
KMS is not (yet) fully supported or happens to break.

Also how else do you express the fact that u-boot has left the display
enabled other than generating the simplefb DT node?

Note that the KMS driver will be probably unsuitable for early console
while the simplefb driver can just write into the framebuffer set up
by u-boot.

Thanks

Michal

  reply	other threads:[~2014-08-05 21:37 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
2014-08-05 21:03     ` Maxime Ripard
2014-08-05 21:37       ` Michal Suchanek [this message]
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='CAOMqctTxx9GRLR_fRVkUCOh882j=kByB4HYgRqaGOkSr7GDsrQ@mail.gmail.com' \
    --to=hramrach@gmail.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 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.