All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Tamas K Lengyel <tamas@tklengyel.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
Subject: Re: Console output stops on dbgp=xhci
Date: Fri, 16 Sep 2022 07:57:59 +0200	[thread overview]
Message-ID: <2697981f-8ae2-d3e7-1a6a-046927a66246@suse.com> (raw)
In-Reply-To: <CABfawh=si40W3foBq_W0nZ_NVXxPyeT02c0+L9k70LwsP=jjsA@mail.gmail.com>

On 15.09.2022 18:48, Tamas K Lengyel wrote:
> On Thu, Sep 15, 2022 at 10:39 AM Jan Beulich <jbeulich@suse.com> wrote:
>>
>> On 15.09.2022 16:16, Tamas K Lengyel wrote:
>>> On Thu, Sep 15, 2022 at 10:10 AM Jan Beulich <jbeulich@suse.com> wrote:
>>>>
>>>> On 15.09.2022 16:05, Tamas K Lengyel wrote:
>>>>> On Thu, Sep 15, 2022 at 3:56 AM Jan Beulich <jbeulich@suse.com> wrote:
>>>>>>
>>>>>> On 15.09.2022 02:41, Tamas K Lengyel wrote:
>>>>>>>>> Do you have any idea what might be going on and preventing the output
>>>>>>>>> from showing over USB3 afterwards? The /dev/ttyUSB0 device is still
>>>>>>>>> present on the receiving side, just nothing is being received over it.
>>>>>>>>
>>>>>>>> There are few more patches in the series that are de facto required.
>>>>>>>> Especially those about IOMMU, otherwise it can only possibly work with
>>>>>>>> iommu=0 (which I'm not sure if even is enough).
>>>>>>>
>>>>>>> Unfortunately with iommu=0 Xen doesn't boot at all for me. I see this
>>>>>>> on the console:
>>>>>>>
>>>>>>> (XEN) Panic on CPU 0:
>>>>>>> (XEN) FATAL PAGE FAULT
>>>>>>> (XEN) [error_code=0011]
>>>>>>> (XEN) Faulting linear address: 00000000328b3a54
>>>>>>
>>>>>> Perhaps in another thread, could you post details about this? I guess
>>>>>> we want to address this independent of your XHCI issue. That's an
>>>>>> attempt to execute code outside of the Xen image - the only reason I
>>>>>> can think of for this would be an EFI boot services or runtime
>>>>>> services call, with (possibly but not necessarily) quirky EFI firmware.
>>>>>> Any other context this is appearing in would quite certainly require a
>>>>>> fix in Xen, and I don't see how "iommu=0" could affect the set of EFI
>>>>>> calls we make.
>>>>>
>>>>> This was indeed observed with a xen.efi booted directly from UEFI.
>>>>> Beside the limited boot log I get through xhci I don't have more
>>>>> insight but happy to send that (and anything else you think would be
>>>>> useful).
>>>>
>>>> And with "iommu=0" but no use of XHCI it doesn't crash? Or there you have
>>>> no way to collect the log then?
>>>>
>>>> In any event, from your description the interesting part might be the
>>>> EFI memory map. That ought to be pretty stable between boots, so you may
>>>> be able to collect that in full via "xl dmesg" in a run without "iommu=0".
>>>
>>> I see the same crash with no xhci debug use. The EFI map is:
>>>
>>> (XEN) EFI memory map:
>>> [...]
>>> (XEN)  0000031f72000-0000032a95fff type=3 attr=000000000000000f
>>
>> This is the entry covering the address, which is EfiBootServicesCode
>> with no unusual attributes. Assuming the crash was still during boot
>> (of Xen, not Dom0), do you also have at least the full stack walk
>> from the crash, to know where in Xen the call chain started?
> 
> I don't see a stack walk right now, but it looks like the path to it
> is a previous panic that wants to restart the machine:
> 
> (XEN) Panic on CPU 0:
> 
> (XEN) Couldn't enable IOMMU and iommu=required/force
> 
> (XEN) ****************************************

Okay, so there's a panic initially, and since it's unlikely that you
passed iommu=force alongside iommu=0, I'd assume it's because of the
IOMMU being needed to support running in x2APIC mode (earlier
messages would tell us). Then ...

> (XEN) Reboot in five seconds...

... this leads to the crash, which effectively tells us that this is
likely yet another system where one needs to override the reboot
method (e.g. reboot=acpi).

Jan


  reply	other threads:[~2022-09-16  5:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14 18:18 Console output stops on dbgp=xhci Tamas K Lengyel
2022-09-14 21:57 ` Marek Marczykowski-Górecki
2022-09-15  0:41   ` Tamas K Lengyel
2022-09-15  1:28     ` Marek Marczykowski-Górecki
2022-09-15  7:55     ` Jan Beulich
2022-09-15 14:05       ` Tamas K Lengyel
2022-09-15 14:10         ` Jan Beulich
2022-09-15 14:16           ` Tamas K Lengyel
2022-09-15 14:39             ` Jan Beulich
2022-09-15 16:48               ` Tamas K Lengyel
2022-09-16  5:57                 ` Jan Beulich [this message]
2022-09-16  9:53                   ` Default reboot method (was: Re: Console output stops on dbgp=xhci) Marek Marczykowski-Górecki
2022-09-16 10:28                     ` Jan Beulich
2022-09-16 10:55                       ` Marek Marczykowski-Górecki
2022-09-16 11:10                         ` Roger Pau Monné
2022-09-16 11:44                         ` Jan Beulich

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=2697981f-8ae2-d3e7-1a6a-046927a66246@suse.com \
    --to=jbeulich@suse.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=tamas@tklengyel.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.