public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eric Nelson <eric.nelson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Disabling video in bootm (cleanup_before_linux)
Date: Sat, 22 Sep 2012 08:35:38 -0700	[thread overview]
Message-ID: <505DDACA.7070604@boundarydevices.com> (raw)
In-Reply-To: <CAP9ODKraaSGRHm6xFLePjqYVv-7OGa3PMiRvnZ-SCLOGEHsM-g@mail.gmail.com>

On 09/22/2012 06:35 AM, Otavio Salvador wrote:
> On Fri, Sep 21, 2012 at 2:44 PM, Eric Nelson
> <eric.nelson@boundarydevices.com>  wrote:
>> On 09/21/2012 10:22 AM, Anatolij Gustschin wrote:
>>>
>>> Hi Eric,
>>>
>>> On Fri, 21 Sep 2012 09:38:23 -0700
>>> Eric Nelson<eric.nelson@boundarydevices.com>   wrote:
>>>
>>>> Hi all,
>>>>
>>>> While looking into some trouble booting the latest Linux kernel patches
>>>> for i.MX6 display support, I found that the kernel driver was thrown off
>>>> by
>>>> the interrupt status bits in the i.MX6 IPU.
>>>>
>>>> Until and unless we have the ability to hand off a 'live' display, it
>>>> seems
>>>> that we should disable the video driver as a part of the 'bootm' process.
>>>>
>>>> At the very least, doing this will avoid the possibility of trash on the
>>>> display during the transition.
>>>>
>>>> I've been looking, and I don't see a place to tap into this process.
>>>> It seems that having a shutdown routine for the display drivers
>>>> (cfb_console?) is the way to go.
>>>
>>>
>>> cfb_console driver is a renderer of the characters and bitmaps
>>> to the framebuffer memory and is not a good place for a shutdown
>>> routine, I think. But we can add a shutdown function to the IPU
>>> driver drivers/video/mxc_ipuv3_fb.c and call it before booting.
>>> bootm code in common/cmd_bootm.c has a weak arch_preboot_os()
>>> function that can be overridden by platform specific preboot
>>> routine. We could define a preboot function in
>>>
>>>       arch/arm/cpu/armv7/mx6/soc.c
>>> or in
>>>       arch/arm/cpu/armv7/imx-common/cpu.c
>>>
>>> and call IPU shutdown routine in it.
>>>
>>
>> Thanks Anatolij.
>>
>> This is just what we need. I'll send a patch shortly.
>
> It would be nice to try to add support for mx5 too so we fix same boot
> hungs in mx5 kernels. I am adding Fabio in CC as he knows more about
> it.
>

Hi Otavio,

I believe it will work on MX5 boards as well, though I haven't tested.
	http://patchwork.ozlabs.org/patch/185928/

Regards,


Eric

  reply	other threads:[~2012-09-22 15:35 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 16:38 [U-Boot] Disabling video in bootm (cleanup_before_linux) Eric Nelson
2012-09-21 17:22 ` Anatolij Gustschin
2012-09-21 17:44   ` Eric Nelson
2012-09-22 13:35     ` Otavio Salvador
2012-09-22 15:35       ` Eric Nelson [this message]
2012-09-22 15:37         ` Otavio Salvador
2012-09-21 20:36   ` [U-Boot] [PATCH 0/2] i.MX: ipufb: shut down IPU frame buffer before booting O/S Eric Nelson
2012-09-21 20:36     ` [U-Boot] [PATCH 1/2] i.MX: mxc_ipuv3_fb: add ipuv3_fb_shutdown() routine to stop IPU before bootm Eric Nelson
2012-09-22 13:42       ` Otavio Salvador
2012-09-22 14:37         ` Fabio Estevam
2012-09-22 14:39           ` Otavio Salvador
2012-09-23 15:56           ` Stefano Babic
2012-09-23 16:32             ` Dirk Behme
2012-09-23 16:46             ` Eric Nelson
2012-09-23 16:59               ` Fabio Estevam
2012-09-23 17:27               ` Stefano Babic
2012-09-23 18:13                 ` [U-Boot] Displays on i.MX (was Re: [PATCH 1/2]) Eric Nelson
2012-09-23 20:12                   ` [U-Boot] [PATCH] i2c_probe: update for use in scripting Eric Nelson
2012-10-16  3:58                     ` Heiko Schocher
2012-09-23 23:02                   ` [U-Boot] [PATCH 0/3] i.MX6: implement hdmidet command Eric Nelson
2012-09-23 23:02                     ` [U-Boot] [PATCH 1/3] i.MX6: add HDMI transmitter register declarations from kernel WIP Eric Nelson
2012-09-23 23:02                     ` [U-Boot] [PATCH 2/3] i.MX6: Add hdmidet command to detect attached HDMI monitor Eric Nelson
2012-09-23 23:02                     ` [U-Boot] [PATCH 3/3] i.MX6: mx6qsabrelite: Include hdmidet command Eric Nelson
2012-10-02  8:28                     ` [U-Boot] [PATCH 0/3] i.MX6: implement " Stefano Babic
2012-09-23 18:15                 ` [U-Boot] [PATCH 1/2] i.MX: mxc_ipuv3_fb: add ipuv3_fb_shutdown() routine to stop IPU before bootm Sascha Hauer
2012-09-23 17:30               ` [U-Boot] [PATCH V2 0/2] i.MX: ipufb: shut down IPU frame buffer before booting Eric Nelson
2012-09-23 17:30                 ` [U-Boot] [PATCH V2 1/2] i.MX: mxc_ipuv3_fb: add ipuv3_fb_shutdown() routine to stop IPU frame buffer Eric Nelson
2012-09-24  8:50                   ` Stefano Babic
2012-09-23 17:30                 ` [U-Boot] [PATCH V2 2/2] i.MX: shut down video before launch of O/S Eric Nelson
2012-09-24  8:50                   ` Stefano Babic
2012-09-21 20:36     ` [U-Boot] [PATCH " Eric Nelson
2012-09-21 22:41       ` Fabio Estevam
2012-09-21 23:02         ` Eric Nelson

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=505DDACA.7070604@boundarydevices.com \
    --to=eric.nelson@boundarydevices.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