xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: <bercarug@amazon.com>
To: "Roger Pau Monné" <roger.pau@citrix.com>,
	"Paul Durrant" <Paul.Durrant@citrix.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	David Woodhouse <dwmw2@infradead.org>,
	Jan Beulich <JBeulich@suse.com>,
	"Belgun, Adrian" <abelgun@amazon.com>
Subject: Re: PVH dom0 creation fails - the system freezes
Date: Wed, 8 Aug 2018 11:54:40 +0300	[thread overview]
Message-ID: <4c4c7ad4-cf4c-fb9f-edff-bded4d9df7f9@amazon.com> (raw)
In-Reply-To: <20180808085119.b54tbeftryvy427s@mac>

On 08/08/2018 11:51 AM, Roger Pau Monné wrote:
> On Wed, Aug 08, 2018 at 09:43:39AM +0100, Paul Durrant wrote:
>>> -----Original Message-----
>>> From: Roger Pau Monne
>>> Sent: 08 August 2018 09:08
>>> To: bercarug@amazon.com
>>> Cc: Paul Durrant <Paul.Durrant@citrix.com>; xen-devel <xen-
>>> devel@lists.xenproject.org>; David Woodhouse <dwmw2@infradead.org>;
>>> Jan Beulich <JBeulich@suse.com>; Belgun, Adrian <abelgun@amazon.com>
>>> Subject: Re: [Xen-devel] PVH dom0 creation fails - the system freezes
>>>
>>> On Wed, Aug 08, 2018 at 10:46:40AM +0300, bercarug@amazon.com wrote:
>>>> On 08/02/2018 04:55 PM, Roger Pau Monné wrote:
>>>>> Please try to avoid top posting.
>>>>>
>>>>> On Thu, Aug 02, 2018 at 11:36:26AM +0000, Bercaru, Gabriel wrote:
>>>>>> I applied the match mentioned, but the system fails to boot. Instead, it
>>>>>> drops to a BusyBox shell. It seems to be a file system issue.
>>>>> So you have applied 173c7803592065d27bf2e60d50e08e197a0efa83 and it
>>>>> causes a regression for you?
>>>>>
>>>>> As I understand it, before applying 173c780359206 you where capable of
>>>>> booting the PVH Dom0, albeit with non-working USB?
>>>>>
>>>>> And after applying 173c780359206 you are no longer able to boot?
>>>> Right, after applying 173c780359206 the system fails to boot (it drops to
>>>> the BusyBox shell).
>>>>>> Following is a sequence of the boot log regarding the file system issue.
>>>>> At least part of the issue seems to be that the IO-APIC information
>>>>> provided to Dom0 is wrong (from the attached log):
>>>>>
>>>>> [    0.000000] IOAPIC[0]: apic_id 2, version 152, address 0xfec00000, GSI 0-
>>> 0
>>>>> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 2
>>>>> [    0.000000] Failed to find ioapic for gsi : 2
>>>>> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 9
>>>>> [    0.000000] Failed to find ioapic for gsi : 9
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 1
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 2
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 3
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 4
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 5
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 6
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 7
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 8
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 9
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 10
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 11
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 12
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 13
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 14
>>>>> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 15
>>>>>
>>>>> Can you try to boot with just the staging branch (current commit is
>>>>> 008a8fb249b9d433) and see how that goes?
>>>>>
>>>>> Thanks, Roger.
>>>>>
>>>> I recompiled Xen using the staging branch, commit 008a8fb249b9d433 and
>>> the
>>>> system boots,
>>> OK, so your issues where not caused by 173c780359206 then?
>>>
>>> 008a8fb249b9d433 already contains 173c780359206 because it was
>>> committed earlier. In any case it's good to know you are able to boot
>>> (albeit with issues) using the current staging branch.
>>>
>>>> however the USB problem persists. I was able to log in using the serial port
>>>> and after executing
>>> Yes, the fixes for this issue have not been committed yet, see:
>>>
>>> https://lists.xenproject.org/archives/html/xen-devel/2018-
>>> 08/msg00528.html
>>>
>>> If you want you can give this branch a try, it should hopefully solve
>>> your USB issues.
>>>
>>>> "xl list -l" the memory decrease problem appeared.
>>> Yup, I will look into this now in order to find some kind of
>>> workaround.
>>>
>>>> I attached the boot log. Following are some lines extracted from the log,
>>>> regarding the USB
>>>>
>>>> devices problem:
>>>>
>>>> [    5.864084] usb 1-1: device descriptor read/64, error -71
>>>>
>>>> [    7.564025] usb 1-1: new full-speed USB device number 4 using xhci_hcd
>>>> [    7.571347] usb 1-1: Device not responding to setup address.
>>>>
>>>> [    8.008031] usb 1-1: device not accepting address 4, error -71
>>>>
>>>> [    8.609623] usb 1-1: device not accepting address 5, error -71
>>>>
>>>>
>>>> At the beginning of the log, there is a message regarding
>>>> iommu_inclusive_mapping:
>>>>
>>>>
>>>> (XEN) [VT-D]found ACPI_DMAR_RMRR:
>>>> (XEN) [VT-D]  RMRR address range 3e2e0000..3e2fffff not in reserved
>>> memory;
>>>> need "iommu_inclusive_mapping=1"?
>>>> (XEN) [VT-D] endpoint: 0000:00:14.0
>>>>
>>>>
>>>> I mention that I tried to boot again using this command line option, but
>>>> this message and the
>>>>
>>>> USB messages persist.
> Does USB work despite of the warning message?
No, it does not.
>
>>> Yes, iommu_inclusive_mapping doesn't work for PVH, that's what my
>>> patch series is trying to address. The error is caused by
>>> missing/wrong RMRR regions in the ACPI tables.
>>>
>> Looks like this warning is suggesting that there is an RMRR that falls outside of an E820 reserved region. For PV I guess that 'inclusive' will fix this, but for PVH 'reserved' isn't going to fix it. I hope that the range at least falls in a hole, so maybe we also need a dom0_iommu=holes option too? Ugly, but maybe necessary.
> I wanted to avoid adding such option because I think it's going to
> interact quite badly with BAR mappings.
>
> Maybe it would make sense to add RMRR regions as long as they don't
> reside in a RAM region and just print the warning message?
>
> As a side note, it would be good that you report this to the vendor,
> the firmware they are providing is broken and should be fixed.
>
> Thanks, Roger.





Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-08-08  8:54 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-23 11:50 PVH dom0 creation fails - the system freezes bercarug
2018-07-24  9:54 ` Jan Beulich
2018-07-25 10:06   ` bercarug
2018-07-25 10:22     ` Wei Liu
2018-07-25 10:43     ` Juergen Gross
2018-07-25 13:35     ` Roger Pau Monné
2018-07-25 13:41       ` Juergen Gross
2018-07-25 14:02         ` Wei Liu
2018-07-25 14:05           ` bercarug
2018-07-25 14:10             ` Wei Liu
2018-07-25 16:12             ` Roger Pau Monné
2018-07-25 16:29               ` Juergen Gross
2018-07-25 18:56                 ` [Memory Accounting] was: " Andrew Cooper
2018-07-25 23:07                   ` Boris Ostrovsky
2018-07-26  9:41                     ` Juergen Gross
2018-07-26  9:45                     ` George Dunlap
2018-07-26 11:11                       ` Roger Pau Monné
2018-07-26 11:22                         ` Juergen Gross
2018-07-26 11:27                           ` George Dunlap
2018-07-26 12:19                             ` Juergen Gross
2018-07-26 14:44                               ` George Dunlap
2018-07-26 13:50                           ` Roger Pau Monné
2018-07-26 13:58                             ` Juergen Gross
2018-07-26 14:35                               ` Roger Pau Monné
2018-07-26 11:23                         ` George Dunlap
2018-07-26 11:08                 ` Roger Pau Monné
2018-07-26  8:15               ` bercarug
2018-07-26  8:31                 ` Juergen Gross
2018-07-26 11:05                   ` Roger Pau Monné
2018-07-25 13:57       ` bercarug
2018-07-25 14:12         ` Roger Pau Monné
2018-07-25 16:19           ` Paul Durrant
2018-07-26 16:46             ` Roger Pau Monné
2018-07-27  8:48               ` Bercaru, Gabriel
2018-07-27  9:11                 ` Roger Pau Monné
2018-08-02 11:36                   ` Bercaru, Gabriel
2018-08-02 13:55                     ` Roger Pau Monné
2018-08-08  7:46                       ` bercarug
2018-08-08  8:08                         ` Roger Pau Monné
2018-08-08  8:39                           ` bercarug
2018-08-08  8:43                           ` Paul Durrant
2018-08-08  8:51                             ` Roger Pau Monné
2018-08-08  8:54                               ` bercarug [this message]
2018-08-08  9:44                                 ` Roger Pau Monné
2018-08-08 10:11                                   ` Roger Pau Monné
2018-08-08 10:13                                     ` bercarug
     [not found]                               ` <5B6AAD430200009A03E1638C@prv1-mh.provo.novell.com>
     [not found]                                 ` <5B6AAF130200003B04D2E796@prv1-mh.provo.novell.com>
2018-08-08 10:00                                   ` 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=4c4c7ad4-cf4c-fb9f-edff-bded4d9df7f9@amazon.com \
    --to=bercarug@amazon.com \
    --cc=JBeulich@suse.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=abelgun@amazon.com \
    --cc=dwmw2@infradead.org \
    --cc=roger.pau@citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).