All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Halder, Ayan Kumar" <ayankuma@amd.com>
To: Michal Orzel <michal.orzel@amd.com>, <xen-devel@lists.xenproject.org>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Roger Pau Monné" <roger@xenproject.org>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Connor Davis" <connojdavis@gmail.com>,
	"Oleksii Kurochko" <oleksii.kurochko@gmail.com>,
	matthew.l.weber3@boeing.com,
	"Andrei Buzdugan" <andrei_buzdugan@epam.com>,
	"Simone Weiss" <simone.weiss@linutronix.de>,
	uwendi@gmail.com, harunobu.kurokawa.dn@renesas.com
Subject: Re: [PATCH 3/3] drivers/char: Panic when the requested UART fails to initialise
Date: Tue, 8 Sep 2026 11:15:46 +0100	[thread overview]
Message-ID: <a1534770-411a-4067-b21e-a19231948548@amd.com> (raw)
In-Reply-To: <48a7a4a3-605a-4a22-a7ad-2a4041f65b77@amd.com>


On 02/09/2026 10:44, Halder, Ayan Kumar wrote:
> Hi,
>
> On 02/09/2026 08:36, Michal Orzel wrote:
>> uart_init() cannot tell its caller that the UART the user asked for did
>> not come up: every failure path only printks. Arm and RISC-V carry on
>> into console_init_preirq() and boot without a console, rather than
>> refusing to boot as they do elsewhere when a user request cannot be met.
> I just want to emphasize that from functional safety perspective, this 
> is the preferred approach. The user's request is given the priority 
> and whenever it cannot be satisfied, Xen should panic.
The patch does it, so we are good.
>>
>> Return an error from dt_uart_init() and panic in start_xen(). An
>> explicit request Xen cannot satisfy should stop the boot rather than
>> silently degrade it,
>
> If there is a silent degradation, then we need to document this 
> behavior somewhere. I am happy to keep this documented under docs/fusa.
>
> In the safety manual, we should mention all the instances when there 
> is a silent degradation observed, the underlying reason and how the 
> end user can detect it.
>
> Other FuSa experts can comment.
>
>>   which is what start_xen() already does for the rest
>> of the boot configuration.
>>
>> Only a path given on the command line counts as a request we have to
>> satisfy. Falling back to /chosen/stdout-path or acpi_uart_init()
>> therefore never fails. SPCR is firmware provided, the analogue of
>> stdout-path, and there is no ACPI equivalent of dtuart= to make an
>> explicit request with.
>>
>> While here, decide whether the SPCR table was found from the returned
>> acpi_status rather than from the table pointer, which was only NULL
>> because the caller initialised it - acpi_get_table() writes it solely
>> on success.
>>
>> Signed-off-by: Michal Orzel <michal.orzel@amd.com>

Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>

- Ayan



      reply	other threads:[~2026-09-08 10:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02  7:36 [PATCH 0/3] dtuart fixes Michal Orzel
2026-09-02  7:36 ` [PATCH 1/3] cmdline: Document console=dtuart option Michal Orzel
2026-09-02  8:55   ` Jan Beulich
2026-09-02 11:12     ` Orzel, Michal
2026-09-02  7:36 ` [PATCH 2/3] drivers/char: Check if console=dtuart for ACPI SPCR serial bring up Michal Orzel
2026-09-02  8:56   ` Jan Beulich
2026-09-02  7:36 ` [PATCH 3/3] drivers/char: Panic when the requested UART fails to initialise Michal Orzel
2026-09-02  9:44   ` Halder, Ayan Kumar
2026-09-08 10:15     ` Halder, Ayan Kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a1534770-411a-4067-b21e-a19231948548@amd.com \
    --to=ayankuma@amd.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=alistair.francis@wdc.com \
    --cc=andrei_buzdugan@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bertrand.marquis@arm.com \
    --cc=connojdavis@gmail.com \
    --cc=harunobu.kurokawa.dn@renesas.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=matthew.l.weber3@boeing.com \
    --cc=michal.orzel@amd.com \
    --cc=oleksii.kurochko@gmail.com \
    --cc=roger@xenproject.org \
    --cc=simone.weiss@linutronix.de \
    --cc=sstabellini@kernel.org \
    --cc=uwendi@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.