[RFC PATCH] ARM: add fixmap based earlycon support

Stefan Agner stefan at agner.ch
Mon Jun 1 04:00:49 PDT 2015


On 2015-06-01 10:26, Ard Biesheuvel wrote:
> (thread is here: http://thread.gmane.org/gmane.linux.ports.arm.kernel/409329)
> 
> On 2 May 2015 at 10:37, Ard Biesheuvel <ard.biesheuvel at linaro.org> wrote:
<snip>
>> However, I did notice after sending this that another implementation
>> had been proposed already:
>> http://lkml.iu.edu/hypermail/linux/kernel/1412.3/00855.html
>>
>> I am not sure which one is more correct, but the general idea is the
>> same, i.e., to allocate the fixmap PTEs from bss rather than the heap.
> 
> Anyone else care to comment on this?
> 
> DT based earlycon is a *really* useful thing to have if you are
> working on early kernel code.
> With many of the DTs now having been extended with a
> /chosen/stdout-path property, it really only takes a simple 'earlycon'
> command line parameter (without any arguments) to get console output
> as soon as the early DT scan is concluded. I suppose this is also a
> useful thing for multi platform kernels?
> 
> BTW the patch still applies to v4.1-rc6

I would appreciate earlycon support too. Serial stuff happen to be
initialized rather late on the HW I work often with, hence I quite often
have to enable/disable earlyprintk at the moment.

The patch I sent is missing a tlb flush, I can send a v2 if that
approach is preferred. On the other hand, your approach seems to be
simpler, judging from the number of changed lines...

--
Stefan



More information about the linux-arm-kernel mailing list