[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help] Xen 4.14.5 on Devuan 4.0 Chimaera, regression from Xen 4.0.1


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Denis <tachyon_gun@xxxxxx>
  • Date: Mon, 20 Mar 2023 13:46:28 +0100
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 20 Mar 2023 12:46:48 +0000
  • Importance: normal
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Sensitivity: Normal
  • Ui-outboundreport: notjunk:1;M01:P0:5h7jsF0OYmA=;AQQV2xwnhWXL7KEOzRDZ2ECCCxU Ii11wuNbIpUWRYAuHMOS2t3ESQgIY5H9l7fxIkXyPffNc7tDtkYG3eJdCXt+yZHzmoQhCk9S4 H7wYJXwXKo0/+gvhHC//LQJ6hFlwu9L/DTp3w4xRhy6a0CuQBh5b6ytKuUMQBNNg7/NEOG4oI NkErbNQMY0JlHQg+c52KOd21Hpt+NsFLkLICcaQauJXihxboA//lONvJo/ucOq/TrlLiZAUuH K09cgm2TO9Q+V93BvTjWC6BNZYFlG4xLVUWi8aZCl1sIqVGDUMPTvEDGSF1plNZUwy8MDGfVe 42f6G/HpvfdOSMICX42FcFgbah4TyMk+ULdVEggDCFyXz+S6RdZ+lxQ1LaWWWo3JC/eletaHd skEVNZY8jTVSquDCUj+4qHLer6IMD9xGxCP89pZV+b0W7wxM+B1voO12KozejowRdI6TV5pA1 CHNTUHnEwcnt/a0yka/9Q/9Sif/kBg7DS336XHj1kx77DaGwjFdX7H36AhRQamA74GeQdgVi4 baVJiJbz/fvlGKhIjrUPJZ2Di7cA8M0pK4lHF3bsgPdWJ9WPLuWyMP6Vy42i1Osv0J0q3GDD1 bCg+o4aRNWYfOXc7urUPw48RJhe+NnDoC3Ao+UfAAK4sYjHf3FTnAp7dTsj+zKyFJwJSiyYFb A9KCVYS1Dpr8LyiU+ep3QjKplL2o4GrWP0q8o4tR7XSM2rAMffLPpuuOpUsWa70MOtO4/+RXU zltqC4ek0OXIAOoTzGQGcs0bR232Vdbf3LRAODFqhlVZxUWf9wbCLAK6rA29sa3K5tPpMnfnl NfJfSSw1w3n2Qv27IN0Z3yYaylOV11ELixTS4pGDOidbM=

On 20.03.2023 12:01, Andrew Cooper wrote:
> On 19/03/2023 7:38 pm, Denis wrote:
> > On 14.03.2023 16:11, Andrew Cooper wrote:
> >> On 14/03/2023 2:53 pm, Denis wrote:
> >>> On 14.03.2023 07:37; Jan Beulich wrote:
> >>>> On 14.03.2023 02:15, Denis wrote:
> >>>>> On 13.03.2023 10:36, Jan wrote
> >>>>>> On 10.03.2023 21:50, Denis wrote:
> >>>>>>> Should I test something else?
> >>>>>> ... there was no request for any further testing here, for the moment.
> >>>>> ah...sorry, going by "Would be nice to have this confirmed forthe system
> >>>>> in question, i.e. without Xen underneath Linux" I thought I could test
> >>>>> something which might help shed some light on all of this.
> >>>> Well, yes, that Linux-without-Xen test would still be useful to have
> >>>> results from. I didn't account for this in my earlier reply because
> >>>> I had asked for it before already, and I did take "something else"
> >>>> for meaning anything that might have turned up as useful from the new
> >>>> data you had provided.
> >>> What tests could I do or what info should I provide to help?
> >> Can you please rebuild Xen with this patch:
> >>
> >> diff --git a/xen/drivers/passthrough/amd/iommu_acpi.c
> >> b/xen/drivers/passthrough/amd/iommu_acpi.c
> >> index 2fdebd2d74c9..747eae25f56c 100644
> >> --- a/xen/drivers/passthrough/amd/iommu_acpi.c
> >> +++ b/xen/drivers/passthrough/amd/iommu_acpi.c
> >> @@ -1033,7 +1033,7 @@ static int __init parse_ivrs_table(struct
> >> acpi_table_header *table)
> >>      const struct acpi_ivrs_header *ivrs_block;
> >>      unsigned long length;
> >>      unsigned int apic;
> >> -    bool_t sb_ioapic = !iommu_intremap;
> >> +    bool_t sb_ioapic = 1;
> >>      int error = 0;
> >>  
> >>      BUG_ON(!table);
> >>
> >> which should cause the behaviour to revert back to that of Xen 4.0.1 
> >> (i.e. it will fully ignore the checks relating to the southbridge ioapic).
> >>
> >> Confirm that with this, and booting Xen simply with `iommu=1` that full
> >> DMA remapping and interrupt remapping is considered active.
> >>
> >>
> >> Then, can you play around with passing the soundblaster through to VMs. 
> >> Looking at the LSPCI you provided, it only supports legacy line interrupts.
> >>
> >> Does the device work fine, or do you get a bunch of errors on `xl dmesg`
> >> about IO page faults (which is a generic "IOMMU said no to something"
> >> message)?
> > Sorry, it took my awhile to get it done.
> >
> > The relevant things are enabled again, passthrough works (even the PCI 
> > Audigy2) 
> > and the devices are recognzied in the HVM domU.
> >
> > As you suspected, there are a few IO page faults at the end of the boot 
> > process
> > (from my limited understanding it's maybe related to 
> > "00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus 
> > Controller (rev 41)")
> >
> > I'll attach the "xl dmesg" output file.
> 
> Do you have this file?
> 
> If they're only at the end of boot and not later around passthrough,
> then they might be from other functionality in the Southbridge.

Sorry, my bad, forgot to attach it :(

After booting, the messages appear only ant the end, yet when running the HVM 
domU,
a few lines pop up there as well.

Also, the domU in question seems to use more CPU that it did on the old system.
I don't know if this is a downside of the newer Xen versions and the chnges made
over time. 
 

Denis

Attachment: xl_dmesg_patched_iommu.txt
Description: Text document


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.