All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Pandita, Vikram" <vikram.pandita@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-arm-kernel@lists.arm.linux.org.uk"
	<linux-arm-kernel@lists.arm.linux.org.uk>
Subject: Re: [PATCH 1/5] OMAP1/2/3/4: DEBUG_LL: cleanup
Date: Thu, 27 Aug 2009 16:29:35 +0300	[thread overview]
Message-ID: <873a7dwfk0.fsf@deeprootsystems.com> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC35608702F9A44CAC@dbde02.ent.ti.com> (Vikram Pandita's message of "Thu\, 27 Aug 2009 18\:34\:54 +0530")

"Pandita, Vikram" <vikram.pandita@ti.com> writes:

>>-----Original Message-----
>>From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
>>"Pandita, Vikram" <vikram.pandita@ti.com> writes:
>>
>>>>Vikram Pandita wrote:
>>>>> This patch cleans up the DEBUG_LL infrastructure for omap boards.
>>>>
>>> Could you give reference to this code on DaVinci?
>>
>>http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git;a=blobdiff;f=arch/arm/mach-
>>davinci/include/mach/uncompress.h;h=0f1f12b67875f86232c0e06e1a687a6d7f19b18a;hp=1e27475f9a2322f1a4f61
>>e25fd1a1e5858e29fc2;hb=bb9647f44b091ebff17f400bb2a468c7e419f3ac;hpb=0dc6306a65f30c0483cfed9b3e8ee1eb3
>>d093e84
>>
>>> Yes this is doable, but the question is, how do we pass these
>>> variables to the kernel start: arch/arm/kernel/head.S
>>> First stage, arch/arm/boot/compressed/head.S gets the arch type ->
>>> shift/uart-addr. Fine.  This stage ends with relocated code over
>>> righting the decompressor.
>>> Second stage, arch/arm/kernel/head.S now starts.
>>> I am not sure how to share the data from Stage 1 in this stage?
>>
>>This is already taken care of.
>>
>>The zImage boot passes the machine-type in a register, then
>>arch/arm/kernel/head.S uses that to decide which machine to start.
>>This is where the MACHINE_START/MACHINE_END macros come in to
>>define the machine-specific hooks called at boot time.
>
> Yes. I agree. I have reviewed that path.
>
>>
>>You should use one of the early machine hooks (probably .map_io)
>>to to set the UART base and shift for the board.
>
> I am looking at even earlier than that.

OK

> The idea is to write to phys_io and io_pg_offset from kernel/head.S
> very early based on the uart address found in compressed/misc.c
>
> To make map_io writable, I will have to change the MACHINE_START to
> remove the const.  It so happens that Russell has defined
> MACHINE_START to be a const.
>
> Not sure is removing const from MACHINE_START is acceptable?

we'll find out after you post for RFC.

> I can have a sample implementation and post to get review comments.
>
>>
>>The catch is that between the start of the head.S code and the
>>mach->map_io hook, printascii() may be called and use the debug
>>macros to try to print out chars.  Care must be taken that
>>if the UART is not yet known/defined, nothing is printed.
>
> That is easy and can be taken care of.
>

ok, I look forward to seeing how you handle this.

Kevin


  reply	other threads:[~2009-08-27 13:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21 17:55 [PATCH 1/5] OMAP1/2/3/4: DEBUG_LL: cleanup Vikram Pandita
2009-08-22  7:23 ` Shilimkar, Santosh
2009-08-22  7:57 ` Kevin Hilman
2009-08-24 14:14   ` Tony Lindgren
2009-08-27  2:38   ` Pandita, Vikram
2009-08-27  9:21     ` Kevin Hilman
2009-08-27 13:04       ` Pandita, Vikram
2009-08-27 13:29         ` Kevin Hilman [this message]
2009-09-16 19:11           ` Russell King - ARM Linux
2009-09-17 19:00             ` Pandita, Vikram
2009-09-17 19:47               ` Russell King - ARM Linux
2009-09-18 21:16                 ` Pandita, Vikram

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=873a7dwfk0.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=vikram.pandita@ti.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.