From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Subject: Re: usb/net/hso: WARNING: ungligned urb->setup_dma Date: Wed, 1 Mar 2017 12:54:37 +0200 Message-ID: <20170301105437.tmm6ovmnrhce3ofa@tarshish> References: <20170228082810.syn656o2zzms7urf@tarshish> <20170228120134.4f65yihw7x22hfwd@tarshish> <36230d64-4ba0-7515-1131-ecf3ab9f352c@i2se.com> <20170228180700.3fxpimfysnhm6uis@tarshish> <1515966850.16584.1488306729844@email.1und1.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: John Youn , netdev@vger.kernel.org, linux-usb@vger.kernel.org, Olivier Sobrie , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org To: Stefan Wahren Return-path: Content-Disposition: inline In-Reply-To: <1515966850.16584.1488306729844@email.1und1.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: netdev.vger.kernel.org Hi Stefan, On Tue, Feb 28, 2017 at 07:32:09PM +0100, Stefan Wahren wrote: > > Baruch Siach hat am 28. Februar 2017 um 19:07 geschrieben: > > On Tue, Feb 28, 2017 at 05:21:18PM +0100, Stefan Wahren wrote: > > > Am 28.02.2017 um 13:01 schrieb Baruch Siach: > > > > On Tue, Feb 28, 2017 at 10:28:10AM +0200, Baruch Siach wrote: > > > > > I'm hitting this warning consistently on my Raspberry Pi 3 running > > > > > kernel > > > > > v4.10.1 with some unrelated device tree changes, and a debug print (below). > > > > > The device identifies as "GlobeTrotter HSDPA Modem", VID: 0af0, PID: 6971. > > > > > The warning triggers consistently on first write access to /dev/ttyHS0 that > > > > > ModemManager attempts. The first line in the log is my debug print. > > > > I tested the same hardware successfully on an i.MX6 CuBox-i (ARM32) using the > > > > same kernel version (4.10.1), and on an x86_64 PC (4.9). So this seems to be > > > > platform specific. I don't have any other ARM64 machine at the moment, though. > > > > > > those platforms usually doesn't use the dwc2 USB host controller. So it > > > should be tested with another dwc2 platform. > > > > The code that initializes setup_dma is not under drivers/usb/dwc2/. Though the > > problem looks like memory corruption, so its cause might be anywhere. > > only a suspicion, but could you please try this patch [1]? > > [1] - https://patchwork.kernel.org/patch/9166771/ It doesn't change anything. My guess is that source of the issue is memory corruption that just happens to corrupt also the setup_dma field of struct urb. In other words, it has nothing to do with DMA, IMO. Thanks, baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -