All of lore.kernel.org
 help / color / mirror / Atom feed
* PVH Dom0 related UART failure
@ 2023-05-18  0:59 Stefano Stabellini
  2023-05-18 10:34 ` Roger Pau Monné
  0 siblings, 1 reply; 23+ messages in thread
From: Stefano Stabellini @ 2023-05-18  0:59 UTC (permalink / raw)
  To: jbeulich, roger.pau
  Cc: sstabellini, andrew.cooper3, xen-devel, marmarek,
	xenia.ragiadakou

Hi all,

I have run into another PVH Dom0 issue. I am trying to enable a PVH Dom0
test with the brand new gitlab-ci runner offered by Qubes. It is an AMD
Zen3 system and we already have a few successful tests with it, see
automation/gitlab-ci/test.yaml.

We managed to narrow down the issue to a console problem. We are
currently using console=com1 com1=115200,8n1,pci,msi as Xen command line
options, it works with PV Dom0 and it is using a PCI UART card.

In the case of Dom0 PVH:
- it works without console=com1
- it works with console=com1 and with the patch appended below
- it doesn't work otherwise and crashes with this error:
https://matrix-client.matrix.org/_matrix/media/r0/download/invisiblethingslab.com/uzcmldIqHptFZuxqsJtviLZK

What is the right way to fix it?

Keep in mind that I don't have access to the system except via gitlab-ci
pipelines. Marek (CCed) might have more info on the system and the PCI
UART he is using in case it's needed.

Many thanks for any help you can provide.

Cheers,

Stefano


diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c
index 212a9c49ae..57623bc091 100644
--- a/xen/drivers/char/ns16550.c
+++ b/xen/drivers/char/ns16550.c
@@ -429,17 +428,6 @@ static void __init cf_check ns16550_init_postirq(struct serial_port *port)
 #ifdef NS16550_PCI
     if ( uart->bar || uart->ps_bdf_enable )
     {
-        if ( uart->param && uart->param->mmio &&
-             rangeset_add_range(mmio_ro_ranges, PFN_DOWN(uart->io_base),
-                                PFN_UP(uart->io_base + uart->io_size) - 1) )
-            printk(XENLOG_INFO "Error while adding MMIO range of device to mmio_ro_ranges\n");
-
-        if ( pci_ro_device(0, uart->ps_bdf[0],
-                           PCI_DEVFN(uart->ps_bdf[1], uart->ps_bdf[2])) )
-            printk(XENLOG_INFO "Could not mark config space of %02x:%02x.%u read-only.\n",
-                   uart->ps_bdf[0], uart->ps_bdf[1],
-                   uart->ps_bdf[2]);
-
         if ( uart->msi )
         {
             struct msi_info msi = {


^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2023-05-24 13:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-18  0:59 PVH Dom0 related UART failure Stefano Stabellini
2023-05-18 10:34 ` Roger Pau Monné
2023-05-19  1:46   ` Stefano Stabellini
2023-05-19  8:10     ` Roger Pau Monné
2023-05-20  0:02       ` Stefano Stabellini
2023-05-20  0:34         ` Marek Marczykowski-Górecki
2023-05-20 10:28         ` Roger Pau Monné
2023-05-20 12:27           ` Marek Marczykowski-Górecki
2023-05-22 22:20           ` Stefano Stabellini
2023-05-23  6:44             ` Jan Beulich
2023-05-23 10:59               ` Roger Pau Monné
2023-05-23 12:45                 ` Jan Beulich
2023-05-24  1:13               ` Stefano Stabellini
2023-05-24  6:18                 ` Jan Beulich
     [not found]                 ` <a08128b5-b6e7-8329-3127-96e171bb76b9@suse.com>
2023-05-24 11:52                   ` Jan Beulich
2023-05-24 13:47                 ` Jan Beulich
2023-05-19  7:22   ` Jan Beulich
2023-05-19  7:38     ` Roger Pau Monné
2023-05-19  8:20       ` Jan Beulich
2023-05-19  8:55         ` Roger Pau Monné
2023-05-19  9:09           ` Jan Beulich
2023-05-19 22:44     ` Stefano Stabellini
2023-05-22  6:51       ` Jan Beulich

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.