[PATCH] Update udbg_progress() to display the integer
Timur Tabi
timur at freescale.com
Thu Feb 8 03:28:32 EST 2007
Mike Strosaker wrote:
> The op panel on recent systems has 2 lines; the first can display 16
> characters, the second, 80. The first line is usually used to display
> an 8 character hexadecimal progress/error message (called an SRC: System
> Reference Code), and the second line is used to display a location code
> when appropriate (e.g. when the SRC indicates a device failure). IBM
> documents many of their OF and RTAS SRCs deep in the Hardware
> Information Center:
In that case, the big question is: does the kernel conform to this standard?
Looking at the current usage of ppc_md.progress(), I can't help but think that
it being called the same way printk() is being called, i.e. at the whim of the
developer who wrote the code.
So let's say that we need to keep ppc_md.progress(). I think we should have
some way of restricting its usage to systems where it does something different
than printk(). On an Freescale 83xx reference board, for example, its output
goes to the same place as printk(), so it doesn't serve any purpose.
Perhaps we should define ppc_md.progress() such that it never sends the output
to the same place as printk(). If the only output device is the serial port,
and printk() already outputs there, then ppc_md.progress() should do nothing.
This would eliminate any "accidental" use of ppc_md.progress(), when printk() is
the better choice.
--
Timur Tabi
Linux Kernel Developer @ Freescale
More information about the Linuxppc-dev
mailing list