From owner-svn-src-head@freebsd.org Wed Feb 15 10:31:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90779CDF6B8; Wed, 15 Feb 2017 10:31:23 +0000 (UTC) (envelope-from sanpei.ml@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 506D51100; Wed, 15 Feb 2017 10:31:23 +0000 (UTC) (envelope-from sanpei.ml@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id v200so79626301ywc.3; Wed, 15 Feb 2017 02:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=J5meNFn+w2fYQZo/caNEPDtEXBFY9XV8Gf1EosNYyrs=; b=O+roo587zw9DTojgbZqHAhePIwCDVa7ZnI7ksalYmdhhd1QC6MpJGvjzhpHv4izlNx bqV2/5i6xtEzaQv1jzhKqm9SHLYbtDZppAPDdi+YnX66x5r0FzrWGcsJod7NT+Y3Hk6S cZbCY8fmM7vbwtSU+1WiYsV9idLTOm5njSvY6XGCQwLG97SWV9s50+BKrny0K7Z5mO0j yWOqyGSfE2rhf5EY1YiKmY8Udm78w1+No66GPZuj4JD8bV1KjdXn7Q5fnIj2VRElXZ/u 0x/iEXSUdmECrfaIt24Qp/WOG9V9VDP0T14O6bWVu2qGUgwuPvuqKys0GA6LaPJMXVL6 nvUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=J5meNFn+w2fYQZo/caNEPDtEXBFY9XV8Gf1EosNYyrs=; b=hPuH6BG9y2YFV4jlqmUAZkT8Ff5j93Z9T0f5AhokZDpsyktwZNSxGcvvLttmi/u9aJ w07yquVBISdnmQfYA2gvr9uj8aoiuqUhm8N68GWzFIuTSzxngVipyiFpKcnt+OjJw3Hx KNWUL5s9oPrIDG06wo+P81zOsAv/BUNlX9Ngk6fNYbhrzKi+RroW654a22A2x2X4SyR3 B0FtoyMwlcLKufV9yUfsCO8YNYF2isQ9OFbSG6MjQdzutoZOCPB7PTmRpOh6jI9r1lmc k4XjV1CrigowCfVZVmuPusiyKkJzb8hD4Ic9Peep8N3LnDvdFKqAibyfxAN7ipiZQL7F EyIw== X-Gm-Message-State: AMke39n37oVJ/eLP41RpyrOS0ri5sasKGwAhYefO9D/+CVa4feps7zxjYo2w6XmgknHyyTFo9Pw7JrN8BhWPZw== X-Received: by 10.129.81.12 with SMTP id f12mr25035699ywb.80.1487154682343; Wed, 15 Feb 2017 02:31:22 -0800 (PST) MIME-Version: 1.0 References: <201701240209.v0O29UDD047838@repo.freebsd.org> In-Reply-To: <201701240209.v0O29UDD047838@repo.freebsd.org> From: Yoshiro MIHIRA Date: Wed, 15 Feb 2017 10:31:11 +0000 Message-ID: Subject: Re: svn commit: r312679 - head/sys/arm/freescale/imx To: Ian Lepore , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 10:31:23 -0000 Hi. Ian Thank you for your strong effort to support imx6 board. I have SolidRun HummingBoard-i2(imx6dl-hummingboard). I have reboot issue(never reset after reboot) and if I use Linux, I reproduce this issue So I reported this issue to SolidRun Forum. http://forum.solid-run.com/linux-on-cubox-i-and-hummingboard-f8/need-to-pus= h-reset-button-to-reboot-linux-system-t3122.html But I could not get any information. I tested latest kernel(r313280) unfortunately it was not solved. Do you know other information about reset issue, please let me know. Currently I need to push reset button when I restart system... Yours Yoshiro MIHIRA 2017=E5=B9=B41=E6=9C=8824=E6=97=A5(=E7=81=AB) 11:09 Ian Lepore : > Author: ian > Date: Tue Jan 24 02:09:30 2017 > New Revision: 312679 > URL: https://svnweb.freebsd.org/changeset/base/312679 > > Log: > Handle imx6 erratum ERR004346... to reboot, clear the SRS bit twice > within > the same cycle of the 32khz clock. > > I've never actually noticed this error happening, but it's an easy fix. > > Modified: > head/sys/arm/freescale/imx/imx_machdep.c > > Modified: head/sys/arm/freescale/imx/imx_machdep.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/arm/freescale/imx/imx_machdep.c Tue Jan 24 01:39:40 2017 > (r312678) > +++ head/sys/arm/freescale/imx/imx_machdep.c Tue Jan 24 02:09:30 2017 > (r312679) > @@ -69,11 +69,18 @@ imx_wdog_cpu_reset(vm_offset_t wdcr_phys > * Trigger an immediate reset by clearing the SRS bit in the > watchdog > * control register. The reset happens on the next cycle of the > wdog > * 32KHz clock, so hang out in a spin loop until the reset takes > effect. > + * > + * Imx6 erratum ERR004346 says the SRS bit has to be cleared twic= e > + * within the same cycle of the 32khz clock to reliably trigger t= he > + * reset. Writing it 3 times in a row ensures at least 2 of the > writes > + * happen in the same 32k clock cycle. > */ > if ((pcr =3D devmap_ptov(wdcr_physaddr, sizeof(*pcr))) =3D=3D NUL= L) { > printf("cpu_reset() can't find its control register... > locking up now."); > } else { > *pcr &=3D ~WDOG_CR_SRS; > + *pcr &=3D ~WDOG_CR_SRS; > + *pcr &=3D ~WDOG_CR_SRS; > } > for (;;) > continue; > >