From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages] Date: Thu, 16 Apr 2015 18:15:47 +0100 Message-ID: <21807.60995.462892.714138@mariner.uk.xensource.com> References: <21798.24161.922394.539733@mariner.uk.xensource.com> <1428595851.4720.22.camel@prashant> <21798.44949.156680.399387@mariner.uk.xensource.com> <21798.46590.928152.666550@mariner.uk.xensource.com> <1428602883.4720.31.camel@prashant> <21799.59138.666831.970946@mariner.uk.xensource.com> <5528D4F0.6060203@broadcom.com> <21806.17257.971957.13215@mariner.uk.xensource.com> <552F241C.4080002@broadcom.com> <21807.35967.660396.209954@mariner.uk.xensource.com> <20150416122420.GA4051@oc0812247204.ltc.br.ibm.com> <1429202353.6668.5.camel@LTIRV-MCHAN1.corp.ad.broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: , Prashant , "Konrad Rzeszutek Wilk" , Boris Ostrovsky , David Vrabel , "Vlad Yasevich" , , , "Siva Reddy (Siva) Kallam" , Sanjeev Bansal To: Michael Chan Return-path: Received: from smtp02.citrix.com ([66.165.176.63]:54226 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbbDPRWi (ORCPT ); Thu, 16 Apr 2015 13:22:38 -0400 In-Reply-To: <1429202353.6668.5.camel@LTIRV-MCHAN1.corp.ad.broadcom.com> Sender: netdev-owner@vger.kernel.org List-ID: Michael Chan writes ("Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]"): > On Thu, 2015-04-16 at 09:24 -0300, cascardo@linux.vnet.ibm.com wrote: > > Yes, this looks like the driver is not syncing the DMA buffers. Unmap is > > supposed to synchronize as well. > > For small rx packets (< 256 bytes), we sync the DMA buffer before we > copy the data to another SKB. For larger packets, we unmap the DMA > buffer. Do we see the corruption in both cases? Yes, at least with swiotlb=force iommu=soft. Ian.