From owner-svn-src-head@freebsd.org Wed Feb 15 23:32:18 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 C3B7CCE0F54 for ; Wed, 15 Feb 2017 23:32:18 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D7601DF for ; Wed, 15 Feb 2017 23:32:18 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 06a6e5b6-f3d7-11e6-ba57-8bc134ee460a X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 06a6e5b6-f3d7-11e6-ba57-8bc134ee460a; Wed, 15 Feb 2017 23:32:34 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v1FNWFkv002243; Wed, 15 Feb 2017 16:32:15 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1487201535.73144.15.camel@freebsd.org> Subject: Re: svn commit: r312679 - head/sys/arm/freescale/imx From: Ian Lepore To: Yoshiro MIHIRA , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, "freebsd-arm@FreeBSD.org" Date: Wed, 15 Feb 2017 16:32:15 -0700 In-Reply-To: References: <201701240209.v0O29UDD047838@repo.freebsd.org> Content-Type: multipart/mixed; boundary="=-7+SAO7B1lPddo/yKeoRL" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 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 23:32:18 -0000 --=-7+SAO7B1lPddo/yKeoRL Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit > > Author: ian > > Date: Tue Jan 24 02:09:30 2017 > > New Revision: 312679 > > URL: https://svnweb.freebsd.org/changeset/base/312679 [...] On Wed, 2017-02-15 at 10:31 +0000, Yoshiro MIHIRA wrote: > 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-push-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 > [adding arm@ list] Are you set up to build and test a custom kernel?  If so, try applying the patch I'm attaching to this mail and let me know if it helps.  This turns on a bit in the control register that is described in the manual as "use a new more robust method to generate a software reset" (if it's better, I wonder why they didn't make it the hardware default?). -- Ian --=-7+SAO7B1lPddo/yKeoRL Content-Disposition: inline; filename="temp.diff" Content-Type: text/x-patch; name="temp.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: imx_machdep.c =================================================================== --- imx_machdep.c (revision 313569) +++ imx_machdep.c (working copy) @@ -78,6 +78,7 @@ imx_wdog_cpu_reset(vm_offset_t wdcr_physaddr) if ((pcr = devmap_ptov(wdcr_physaddr, sizeof(*pcr))) == NULL) { printf("cpu_reset() can't find its control register... locking up now."); } else { + *pcr |= 1 << 6; *pcr &= ~WDOG_CR_SRS; *pcr &= ~WDOG_CR_SRS; *pcr &= ~WDOG_CR_SRS; --=-7+SAO7B1lPddo/yKeoRL--