Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp794808ybl; Wed, 14 Aug 2019 06:09:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJszhUiMqgXjycC4aHMHa7+rOq1f0rmpdZRvdR8E40mqSkCwSv7BKyuUoxLO0C0pY1qH40 X-Received: by 2002:aa7:8b51:: with SMTP id i17mr46961412pfd.33.1565788144119; Wed, 14 Aug 2019 06:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565788144; cv=none; d=google.com; s=arc-20160816; b=wXcoK43jdNDLaRZZ0VJ46+NTIuscRAsgYLUa6NrpeSbeLSazhxw7YM4hm5/1N9jAji 89kmCmYilEBTh/ZwgmtBEA1ACKYHP8GVO8eYRDuWusLRCy9sOclRBR2jMR+Q+i27XSwA 9KnCK+Gtpwl4+cAsItg1L05ULiqA7/0XCVxp0fUT1lHTRC0yj48p4SQuT9b23FwBRTn6 B81/12i8y3Ax/201TcPAcBR/DK1tGhRHBbxN/V7VqCrn+AcXvdthhatyaeBBG2Q2tSKw GXDUmkoIfu4YgjqyeIWToVnjhBTwMgG0fdSxVb777pv39LIFn9dhDN5gSzRlQkBHSVJy s0mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=rznoHZCu402kVkriFMS4QyVXv8e/s3tXzvMZ23mcUbY=; b=vlYWr787cWCgTdS8FzM+nG12rZTJK1L5eGRyQzBzVFdWyuEhPlTzkSzXPZqB+9m7gu ncSmaVUlSI+TMuawGeIlp/OatV89enbBX9M3xjT/fRJA0V9cO188JAVbIxNDfK6yZr0y Wwco82SOJCM4Ymow8/5zikpuOWsUcWDLViYN4751VzlpdIR3CZJYGJ/RSmNeW3ZbayqW tdE1vjpF/EOLy7xXIoLnBmmXIZtyHd9LL0pD63cuW5qXB1o1NlefHhLfly0dBF1STCFA V+n7qjSM76dwprikyDdz+8rjbNEBJjViUxSq3xO4sEK+JkRbMea4gMT2ohSr/azV80ma JcAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si2829244pjn.49.2019.08.14.06.08.46; Wed, 14 Aug 2019 06:09:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727819AbfHNNG2 (ORCPT + 99 others); Wed, 14 Aug 2019 09:06:28 -0400 Received: from mga03.intel.com ([134.134.136.65]:1678 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbfHNNG2 (ORCPT ); Wed, 14 Aug 2019 09:06:28 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2019 06:06:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,385,1559545200"; d="asc'?scan'208";a="328044176" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by orsmga004.jf.intel.com with ESMTP; 14 Aug 2019 06:06:08 -0700 From: Felipe Balbi To: Vicente Bergas , Robin Murphy Cc: Heiko Stuebner , Will Deacon , Marc Zyngier , Catalin Marinas , Matthias Brugger , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: kexec on rk3399 In-Reply-To: References: Date: Wed, 14 Aug 2019 16:06:04 +0300 Message-ID: <87v9uzaocj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Vicente Bergas writes: > On Monday, July 22, 2019 4:31:27 PM CEST, Vicente Bergas wrote: >> Hi, i have been running linux on rk3399 booted with kexec fine until 5.2 >> From 5.2 onwards, there are memory corruption issues as reported here: >> http://lkml.iu.edu/hypermail/linux/kernel/1906.2/07211.html >> kexec has been identified as the principal reason for the issues. >> >> It turns out that kexec has never worked reliably on this platform, >> i was just lucky until recently. >> >> Please, can you provide some directions on how to debug the issue? > > Thank you all for your suggestions on where the issue could be. > > It seems that it was the USB driver. > Now using v5.2.8 booted with kexec from v5.2.8 with a workaround and > so far so good. It is being tested on the Sapphire board. > > The workaround is: > --- a/drivers/usb/dwc3/dwc3-of-simple.c > +++ b/drivers/usb/dwc3/dwc3-of-simple.c > @@ -133,6 +133,13 @@ > return 0; > } >=20=20 > +static void dwc3_of_simple_shutdown(struct platform_device *pdev) > +{ > + struct dwc3_of_simple *simple =3D platform_get_drvdata(pdev); > + > + reset_control_assert(simple->resets); > +} > + > static int __maybe_unused dwc3_of_simple_runtime_suspend(struct device=20 > *dev) > { > struct dwc3_of_simple *simple =3D dev_get_drvdata(dev); > @@ -190,6 +197,7 @@ > static struct platform_driver dwc3_of_simple_driver =3D { > .probe =3D dwc3_of_simple_probe, > .remove =3D dwc3_of_simple_remove, > + .shutdown =3D dwc3_of_simple_shutdown, > .driver =3D { > .name =3D "dwc3-of-simple", > .of_match_table =3D of_dwc3_simple_match, > > If this patch is OK after review i can resubmit it as a pull request. not a pull request, just send a patch using git send-email > Should a similar change be applied to drivers/usb/dwc3/core.c ? Is it necessary? We haven't had any bug reports regarding that. Also, if we have reset control support in the core driver, why do we need it in of_simple? Seems like of_simple could just rely on what core does. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl1UBzwACgkQzL64meEa mQYOVQ//eKd2UVl0Lk/iBF9be4Qe4UnhUTXChWgQRk4zD9Xvjfgx16lvKHRd202Y tDKEYXDrOeSfQZTopKUfO8d3vjPkxfqYMeLyiiXTA983oXVwc6ZeaE6+VA3AO9m1 nWdQthWGnpSiBaXhceBgMmAaKkvuFe/dDua9OhGkLz/aOYFQ5iLEVT/Ffkj8sr5g u9oXIq/Vs49XFoymk8s+9qGip9l3ZbQNEkUkJbL4+hw83IiFR5SWtGG7kf/Uv/bI sA6JUkcTDvOXkqI/9cSk9ZeCePbOQpu5lk9C5B78//hdDNpkopJ8OeIW6YOBh5HF HIOZzyBgWjXu6fRM1XiqoRjWZvfpv/76CGml0zNKdDs5bvN4tbcUoJtf655JWdav S+0cEGfvLMsh5UiFcsBTT63S7+/Gh/d8Z/m3JsgSw9i0TBZLhbGQ36SYX+RpNSrr LNZsCbl67wc12ftHZOJaUTsdHy6MU4O5nf5vlSFTJCkRJtNKV65hODulCRMiTdkh kgyjs98yUegt2siGNHbVg8LC14GjWQaAxRLB7BN4pCx4243vmpapRRWjHG63f2Jh VZvYCB8hj5MBy+2BZ5S94siSoMS6+qaZ8DQ2L065EwdrlKLly4Rofh0FNhtbL5I5 F5P6V1xEnd0TN75wevzsI57lsNB2Cov8WoSeFQ0D7OSrS6eN38s= =9b3X -----END PGP SIGNATURE----- --=-=-=--