From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by aws-us-west-2-korg-lkml-1.web.codeaurora.org (Postfix) with ESMTP id 5DBCBC433EF for ; Fri, 15 Jun 2018 11:39:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 15EBB20896 for ; Fri, 15 Jun 2018 11:39:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15EBB20896 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755770AbeFOLjX (ORCPT ); Fri, 15 Jun 2018 07:39:23 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34286 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755750AbeFOLjV (ORCPT ); Fri, 15 Jun 2018 07:39:21 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2AF008051C; Fri, 15 Jun 2018 13:39:20 +0200 (CEST) Date: Fri, 15 Jun 2018 13:39:19 +0200 From: Pavel Machek To: pali.rohar@gmail.com, sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com, Filip =?utf-8?Q?Matijevi=C4=87?= , stern@rowland.harvard.edu, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Subject: Re: v4.18-rc0: ohci-platform on n900 oops-es on reboot Message-ID: <20180615113919.GA28328@amd> References: <20180614194449.GB17808@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <20180614194449.GB17808@amd> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > When I enable >=20 > CONFIG_USB_OHCI_HCD=3Dy > CONFIG_USB_OHCI_HCD_OMAP3=3Dy > CONFIG_USB_OHCI_HCD_PLATFORM=3Dy >=20 > on n900 (I need it on droid4 and want common config), I get oops when > attempting to reboot the system. I believe problem is there in v4.17, > too. >=20 > I'll try to build it as a module and debug, but if you have better > idea, let me know... It oopses in the ohci_shutdown, see the "oopses here" below. Any ideas? Pavel + printk(KERN_CRIT "ohci_shutdown... have pointers %lx, %lx\n", hcd, = ohci); ohci_writel(ohci, (u32) ~0, &ohci->regs->intrdisable); + printk(KERN_CRIT "ohci_shutdown... disable done\n"); + udelay(1000); + printk(KERN_CRIT "ohci_shutdown... disable done\n"); =20 /* Software reset, after which the controller goes into SUSPEND */ ohci_writel(ohci, OHCI_HCR, &ohci->regs->cmdstatus); + printk(KERN_CRIT "ohci_shutdown... writel done\n"); ohci_readl(ohci, &ohci->regs->cmdstatus); /* flush the writes= */ + /* It oopses here */ + printk(KERN_CRIT "ohci_shutdown... readl done\n"); udelay(10); =20 + printk(KERN_CRIT "ohci_shutdown... reset done\n"); =20 ohci_writel(ohci, ohci->fminterval, &ohci->regs->fminterval); ohci->rh_state =3D OHCI_RH_HALTED; + + printk(KERN_CRIT "ohci_shutdown... all ok?\n");=20 =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlsjpWcACgkQMOfwapXb+vKe4QCfeThIxj9HPavRuH8Pr3SNY79x BfoAnRTiBtVVOBSR1j5aNy5mEXuTh9Bg =5JTG -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--