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

[Minios-devel] [UNIKRAFT PATCHv6 05/37] plat: Add variables in Config.uk for early debug console


  • To: <minios-devel@xxxxxxxxxxxxxxxxxxxx>, <simon.kuenzer@xxxxxxxxx>
  • From: Wei Chen <wei.chen@xxxxxxx>
  • Date: Fri, 14 Sep 2018 07:56:38 +0000
  • Authentication-results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=bestguesspass action=none header.from=arm.com;
  • Cc: Kaly.Xin@xxxxxxx, nd@xxxxxxx, wei.chen@xxxxxxx
  • Delivery-date: Fri, 14 Sep 2018 07:57:35 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Nodisclaimer: True
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Instead of hardcoding, we provide Kconfig variables for users
to enable early debug console and UART base address of early
debug console.

As both ukplat_coutk and ukplat_coutd will use the PL011 UART
to print messages. But I still want to make EARLY_PRINT_PL011_UART_ADDR
depend on KVM_DEBUG_SERIAL_CONSOLE. Because I think before
ukpalt_init_console, only ukplat_coutd is avaibale, if we call
ukplat_coutk, we can't confirm it can be succeeded.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
 plat/Config.uk     | 7 +++++++
 plat/kvm/Config.uk | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/plat/Config.uk b/plat/Config.uk
index 7c07921..b776c45 100644
--- a/plat/Config.uk
+++ b/plat/Config.uk
@@ -9,4 +9,11 @@ config UKPLAT_MEMRNAME
        help
                Enable name field in memory region descriptors
 
+config EARLY_PRINT_PL011_UART_ADDR
+       hex "Early debug console pl011 serial address"
+       default 0x09000000
+       depends on (KVM_DEBUG_SERIAL_CONSOLE && ARCH_ARM_64)
+       help
+               Pl011 serial address used by early debug console.
+
 endmenu
diff --git a/plat/kvm/Config.uk b/plat/kvm/Config.uk
index 4378c26..9f54a23 100644
--- a/plat/kvm/Config.uk
+++ b/plat/kvm/Config.uk
@@ -16,21 +16,21 @@ 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 (ARCH_X86_64 || ARCH_ARM_64)
         help
           Choose serial console for the kernel printing
 
 config KVM_KERNEL_VGA_CONSOLE
         bool "VGA console for the kernel prints"
         default y
-        depends on (LIBUKDEBUG_PRINTK && ARCH_X86_64)
+        depends on  ARCH_X86_64
         help
           Choose VGA console for the kernel printing
 
 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
 
-- 
2.17.1


_______________________________________________
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®.