[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] cmdline: Document console=dtuart option
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Wed, 2 Sep 2026 13:12:13 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kZbdSDvhE8avk4BPKgNip2kR3pLCvmN2CAqV1gLtg6A=; b=uDaNloaL9Y9UCNd64lvTxA3E2VZjFfhWUYLnSfopEFcFz759Lfn9ulZYXexAGbH7M1U5j2UxIOyKCWogNF1i2pn8tFI6Ar8+k0iPEiPBOOhaRAbe3Q9dJDkPG6O4EQm75hygb4ksL37RGnzaffS/+Ynnnz+byzoA1lgo457tVzoJibH5AAmRzcEr5II26QW3PeOLpjyUaHVCPDNItolumJTWw9b+qhMkM1eMz04QFOSiScCWvUpaScakmtu4ReBZMSmLLA/6w0NGdP3IG2lzZXkknKFpkusLgPp8zri/B86yxbyrrCn7YbyEhGGG3OgcI87N12NE8R/2YViaXTnUsA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qk6WeogNW+h+nayx9Iuuq0ZrDWgdrg1KWQr6GZpnu8kJIuYeo9yIWKOOIFwdoyQvmO4Tod/5rNrloSAtbmPnCjJ9+5rE2dICeSCJh3k7JOk7vi6lJWSwMbD0Dith6IvRfws0T3eRX8/S5JKYXqeCmPrqqBYQA+FngGvGudNhmGssQTe/u2x6QJ2faBHXo8zG8JbqFUdpvM7ifPuUZeJyjsuTziwPhOX0b7Xqq/myW6qBDcM447PMnkH2kJM+cFQVi02niaJ4yZn9pdvnEKMDtO5GzhPtpjH99eX5DaRTg7EfPijwAaW3sWXs234EvyKwMHdHOAKGtxoRsew3yIjHhw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Wed, 02 Sep 2026 11:12:34 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 02-Sep-26 10:55, Jan Beulich wrote:
> On 02.09.2026 09:36, Michal Orzel wrote:
>> Document the default console= option on Arm and RISC-V that is
>> "dtuart" indicating a generic UART parsed from a device tree or
>> ACPI SPCR table. This serial utilizes SERHND_DTUART handle.
>>
>> Take the opportunity to:
>> - fix documented x86 default to vga to match OPT_CONSOLE_STR,
>
> I first wanted to object to this part, as I was sure this used to be
> "com1,vga". Yet indeed it's been almost 19 years ago when this was
> changed (92877a1f9ab2 ["x86: Auto-probe the serial port baud rate if
> 'com1' or 'com2' is"]).
>
>> - mark dtuart option as available on RISC-V,
>> - document fall back to /chosen/stdout-path.
>>
>> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
>
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
>
>> --- a/docs/misc/xen-command-line.pandoc
>> +++ b/docs/misc/xen-command-line.pandoc
>> @@ -430,9 +430,10 @@ The following are examples of correct specifications:
>> Specify the size of the console ring buffer.
>>
>> ### console
>> -> `= List of [ vga | com1[H,L] | com2[H,L] | pv | dbgp | ehci | xhci | none
>> ]`
>> +> `= List of [ vga | com1[H,L] | com2[H,L] | pv | dbgp | ehci | xhci |
>> dtuart | none ]`
>>
>> -> Default: `console=com1,vga`
>> +> Default (x86): `console=vga`
>> +> Default (Arm, RISC-V): `console=dtuart`
>
> Any reason to not also cover PPC here?
While PPC sets OPT_CONSOLE_STR to "dtuart", it does not select
CONFIG_GENERIC_UART_INIT that compiles in the uart-init.c which is what really
matters to decide whether dtuart is supported or not.
~Michal
|