WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] USB disk corruption on Xen 4.1.0 & Linux 2.6.38.7

To: Anthony Wright <anthony@xxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: RE: [Xen-devel] USB disk corruption on Xen 4.1.0 & Linux 2.6.38.7
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Date: Wed, 15 Jun 2011 12:43:17 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 15 Jun 2011 04:45:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <30260355.6.1308134733567.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20110613220625.GB23755@xxxxxxxxxxxx> <30260355.6.1308134733567.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwrSXJLkbv6vz/oSwuSXqgbtQYjegAB07pg
Thread-topic: [Xen-devel] USB disk corruption on Xen 4.1.0 & Linux 2.6.38.7
> I hit it every time, though with slight variations on which blocks are 
> affected. I
> get the problem on two out of three of my machines. I don't supply any
> command line options to Xen or the kernel. I do use an initramfs.

If you're seeing the issue I think you are, you'll be vulnerable to it whenever 
any of dom0's memory is allocated above 4GB. 

If you patch xen to always allocate dom0's memory from below 4GB I bet you 
don't see the issue (though obviously you'll be limited to having a dom0 that 
is a bit smaller than 4GB). The real bug is probably in the EHCI driver's use 
of swiotlb.


Ian

> ----- Original Message -----
> From: "Konrad Rzeszutek Wilk" <konrad.wilk@xxxxxxxxxx>
> To: "Anthony Wright" <anthony@xxxxxxxxxxxxxxx>
> Cc: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
> Sent: Monday, 13 June, 2011 11:06:25 PM
> Subject: Re: [Xen-devel] USB disk corruption on Xen 4.1.0 & Linux 2.6.38.7
> 
> On Fri, Jun 10, 2011 at 12:46:56PM -0400, Konrad Rzeszutek Wilk wrote:
> > On Thu, Jun 09, 2011 at 09:32:08AM -0400, Konrad Rzeszutek Wilk wrote:
> > > On Thu, Jun 09, 2011 at 02:11:27PM +0100, Anthony Wright wrote:
> > > > I've got things running on a number of systems now, and have tried a
> > > > number of combinations. I have changed machines and USB memory
> sticks,
> > > > and the fault seems to be related to the machine rather than the
> memory
> > > > stick. I have 3 machines with >4GB ram & 2 memory sticks, changing
> > > > memory sticks doesn't have any effect, but only two out of the three
> > > > machines I tried has a problem, the third works fine.
> > >
> > > One of them was an MCP61 based (BIOSTAR) and the other is
> > > SB600 (Gigabyte gs_ma69vm_s2) Southbridge. Both are AMD based ...
> and
> > > I vagually remember something about quirks for those boards for the
> AHCI
> > > controller.
> > >
> > > Let me see if I can reproduce this issue on my box next week.
> >
> > I tried on my BIOSTAR Group N61PB-M2S which has 4GB physically
> > and couldn't reproduce it. But let me try to put in some more memory and
> see.
> 
> So, playing around on a 8gB machine with ballooning memory up (I had
> initially set
> only 2GB to dom0) and then using the md5sum I was able to trigger this once.
> 
> You said you are hitting this everytime right? Do you limit the amount of
> memory
> to the initial domain?
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel