From: "Jan Beulich" Subject: Re: Problems with merlot* AMD Opteron 6376 systems (Was Re: stable trees (was: [xen-4.2-testing test] 58584: regressions)) Date: Fri, 26 Jun 2015 13:59:41 +0100 Message-ID: <558D68DD020000780008A4C8@mail.emea.novell.com> References: <558151930200007800085E5C@mail.emea.novell.com> <21889.19282.1828.571256@mariner.uk.xensource.com> <5582C989020000780008696A@mail.emea.novell.com> <1434637353.28264.37.camel@citrix.com> <5584024B0200007800086F10@mail.emea.novell.com> <1434712049.28264.100.camel@citrix.com> <1435136770.28264.252.camel@citrix.com> <1435138723.28264.279.camel@citrix.com> <1435315055.32500.161.camel@citrix.com> <558D4A6E020000780008A2E7@mail.emea.novell.com> <1435317382.32500.168.camel@citrix.com> <1435322261.32500.182.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z8TEN-0000Ob-N9 for xen-devel@lists.xenproject.org; Fri, 26 Jun 2015 12:59:43 +0000 In-Reply-To: <1435322261.32500.182.camel@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Lars Kurth , Stefano Stabellini , Andrew Cooper , Dario Faggioli , Ian Jackson , Aravind Gopalakrishnan , Suravee Suthikulpanit , Anthony Perard , xen-devel , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org >>> On 26.06.15 at 14:37, wrote: > On Fri, 2015-06-26 at 12:16 +0100, Ian Campbell wrote: >> On Fri, 2015-06-26 at 11:49 +0100, Jan Beulich wrote: >> > >>> On 26.06.15 at 12:37, wrote: >> > > At Andy Cooper's request I ran a quick job with mtrr.show=true >> > > http://logs.test-lab.xenproject.org/osstest/logs/58909/ >> > > >> > > I think the relevant serial output is: >> > > Jun 26 09:57:42.325077 (XEN) MTRR default type: uncachable >> > > Jun 26 09:57:42.325111 (XEN) MTRR fixed ranges enabled: >> > > Jun 26 09:57:42.333068 (XEN) 00000-9ffff write-back >> > > Jun 26 09:57:42.333101 (XEN) a0000-bffff uncachable >> > > Jun 26 09:57:42.333128 (XEN) c0000-fffff write-back >> > > Jun 26 09:57:42.341077 (XEN) MTRR variable ranges enabled: >> > > Jun 26 09:57:42.341110 (XEN) 0 base 000000000000 mask ffff80000000 > write-back >> > > Jun 26 09:57:42.349088 (XEN) 1 base 000080000000 mask ffffc0000000 > write-back >> > > Jun 26 09:57:42.349124 (XEN) 2 disabled >> > > Jun 26 09:57:42.357068 (XEN) 3 disabled >> > > Jun 26 09:57:42.357098 (XEN) 4 disabled >> > > Jun 26 09:57:42.357122 (XEN) 5 disabled >> > > Jun 26 09:57:42.357147 (XEN) 6 disabled >> > > Jun 26 09:57:42.365063 (XEN) 7 disabled >> > >> > This alone would mean UC for all memory above 4G. But I seem to >> > recall AMD having some mechanism to avoid using MTRRs for this >> > case. Let me try to dig this out once back from lunch. >> >> While you do that it seems like I may as well try a run with >> "e820-mtrr-clip" given to Xen. > > According to http://logs.test-lab.xenproject.org/osstest/logs/58914/ it > didn't make any difference to the end result. > > It did seems to cause a huge number of > Jun 26 11:51:29.933067 (XEN) AMD-Vi: IO_PAGE_FAULT: domain = 0, device id = > 0x92, fault address = 0xbdfe7000, flags = 0 > messages which weren't there before, not sure if that is a clue or not. I think that's a result of amd_iommu_hwdom_init() now stopping below the reserved ranges right below 3Gb. I.e. these ought to go away if you had the system use minimally more than 4Gb. I also think that you'd see those too without limiting memory if the reserved range was large enough to not share a PDX with the highest RAM page below 4Gb (due to the way mfn_valid() works), or if we indeed only mapped RAM pages there. Jan