[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCHv5 19/46] plat: Add variables in Config.uk for early debug console


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Wei Chen (Arm Technology China)" <Wei.Chen@xxxxxxx>
  • Date: Fri, 7 Sep 2018 05:34:05 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wei.Chen@xxxxxxx;
  • Cc: "Kaly Xin \(Arm Technology China\)" <Kaly.Xin@xxxxxxx>, nd <nd@xxxxxxx>
  • Delivery-date: Fri, 07 Sep 2018 05:34:16 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Nodisclaimer: True
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99
  • Thread-index: AQHUMHkRUFKH0ofQ3k63GebO1yejrqTjjuoAgADjtoA=
  • Thread-topic: [Minios-devel] [UNIKRAFT PATCHv5 19/46] plat: Add variables in Config.uk for early debug console

Hi Simon,

> -----Original Message-----
> From: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> Sent: 2018年9月6日 23:40
> To: Wei Chen (Arm Technology China) <Wei.Chen@xxxxxxx>; minios-
> devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Kaly Xin (Arm Technology China) <Kaly.Xin@xxxxxxx>; nd <nd@xxxxxxx>
> Subject: Re: [Minios-devel] [UNIKRAFT PATCHv5 19/46] plat: Add variables in
> Config.uk for early debug console
> 
> Hey,
> 
> On 10.08.2018 09:08, Wei Chen wrote:
> > Instead of hardcoding, we provide Kconfig variables for users
> > to enable early debug console and UART base address of early
> > debug console.
> >
> > Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> > ---
> >   plat/kvm/Config.uk | 11 +++++++++--
> >   1 file changed, 9 insertions(+), 2 deletions(-)
> >
> > diff --git a/plat/kvm/Config.uk b/plat/kvm/Config.uk
> > index 4378c26..c07f39b 100644
> > --- a/plat/kvm/Config.uk
> > +++ b/plat/kvm/Config.uk
> > @@ -16,7 +16,7 @@ menu "Console Options"
> >   config KVM_KERNEL_SERIAL_CONSOLE
> >           bool "Serial console for the kernel prints"
> >           default y
> > -        depends on (LIBUKDEBUG_PRINTK && ARCH_X86_64)
> > +        depends on (LIBUKDEBUG_PRINTK && (ARCH_X86_64 || ARCH_ARM_64))
> 
> You should not depend this on the libukdebug option. Just provide
> ukplat_coutd() and ukplat_coutk() independent of libukdebug. It is a
> platform API requirement.
> 

So, does this comment also apply to the KVM_KERNEL_VGA_CONSOLE?
If so, I will add a patch in next version to remove the 
LIBUKDEBUG_PRINTK dependence for KVM_KERNEL_VGA_CONSOLE and
KVM_KERNEL_VGA_CONSOLE before adding ARCH_ARM_64 dependence.

> >           help
> >             Choose serial console for the kernel printing
> >
> > @@ -30,7 +30,7 @@ config KVM_KERNEL_VGA_CONSOLE
> >   config KVM_DEBUG_SERIAL_CONSOLE
> >           bool "Serial console for the debug prints"
> >           default y
> > -        depends on (LIBUKDEBUG_PRINTD && ARCH_X86_64)
> > +        depends on (LIBUKDEBUG_PRINTD && (ARCH_X86_64 || ARCH_ARM_64))
> >           help
> >             Choose serial console for the debug printing
> >
> > @@ -40,6 +40,13 @@ config KVM_DEBUG_VGA_CONSOLE
> >           depends on (LIBUKDEBUG_PRINTD && ARCH_X86_64)
> >           help
> >             Choose VGA console for the debug printing
> > +
> > +config KVM_EARLY_DEBUG_PL011_UART
> > +   hex "Early debug pl011 serial address"
> > +   default 0x09000000
> > +   depends on (KVM_DEBUG_SERIAL_CONSOLE && ARCH_ARM_64)
> > +   help
> > +           Pl011 serial address used by early debug console.
> >   endmenu
> >
> 
> Hum, I think this option should not just be there for the debug console.
> ukplat_coutk() should also go there.
> 
> What about KVM_EARLY_PL011_UART_ADDR? and let it depend on ARCH_ARM_64 only
> 

Ok, That sounds more sensible.

> 
> >   config KVM_PCI
> >
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.