From owner-freebsd-arm@FreeBSD.ORG Tue May 19 05:45:05 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 444B2CB6 for ; Tue, 19 May 2015 05:45:05 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) (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 10F7E1DB4 for ; Tue, 19 May 2015 05:45:04 +0000 (UTC) Received: by igbyr2 with SMTP id yr2so67345095igb.0 for ; Mon, 18 May 2015 22:44:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=AmxR3cjvd3OPZGbDZwC2g5wBnW1C4DHk/05ZnafC7m4=; b=axFw9k0r+1ioKiJuCleHKVWkZ8ePJz9SuRBR627jpOtXC3if5WJrk/FuYcoWh05vwS 5SJ5rW6CIpDYvKexjhpatSOTnSUvKsBXgodeif3RPcLXQe6hSRHSvllpS7dSBUKQryof o9GKPGWNM9tqaFH8X4QALUG+SSZiU6ZQFX8yUfr7y9DnQMSn9bNHUoS5T18rEN8Fb0Bc a4P9SujjhfPE1bGl1TFo9s+Z0euV6Ve0NLUr4PwT6BTDwlxm4vfjuu0LKaemNVN+mNrJ BJILyQwXp6k91C0oaa05kn+lnM5rKgu9YMFy8WvScl/0+4Drv6jbLMIqYTcJB+vWnHAU 2BLQ== X-Gm-Message-State: ALoCoQlaRfUW2rLq1cToyP/S7AR3/FypJwzZxv+Kt1CbRLPK2vokGWFq/gSz+aJq7UVPI7qNIXgB MIME-Version: 1.0 X-Received: by 10.42.204.14 with SMTP id fk14mr38260783icb.96.1432014297941; Mon, 18 May 2015 22:44:57 -0700 (PDT) Received: by 10.36.28.201 with HTTP; Mon, 18 May 2015 22:44:57 -0700 (PDT) In-Reply-To: <555AA2BE.4030008@foxvalley.net> References: <5550C252.6030001@foxvalley.net> <1431357226.2428197.265704673.6A544F74@webmail.messagingengine.com> <555177D9.8080001@foxvalley.net> <555A8792.9000809@foxvalley.net> <555AA2BE.4030008@foxvalley.net> Date: Tue, 19 May 2015 07:44:57 +0200 Message-ID: Subject: Re: state of FreeBSD ARM (less stable than 6 months ago) From: Andreas Andersson To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 05:45:05 -0000 I can confirm this patch works. I haven't gotten any kernel panics yet. 2015-05-19 4:41 GMT+02:00 Dan Raymond : > > On Tue, 12 May 2015, Luiz Otavio O Souza wrote: >>> >>> On 12 May 2015 at 00:47, Dan Raymond wrote: >>>> >>>>> >>>>> sdhci_bcm0-slot0: Controller timeout >>>>> sdhci_bcm0-slot0: ============== REGISTER DUMP ============== >>>>> sdhci_bcm0-slot0: Sys addr: 0x4d295a00 | Version: 0x00009902 >>>>> sdhci_bcm0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000020 >>>>> sdhci_bcm0-slot0: Argument: 0x002d19c0 | Trn mode: 0x0000193a >>>>> sdhci_bcm0-slot0: Present: 0x01ff0506 | Host ctl: 0x00000003 >>>>> sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 >>>>> sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00000507 >>>>> sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000010 >>>>> sdhci_b >>>>> >>>>> >>>>> >>>>> mmcsd0: Error indicated: 1 Timeout >>>>> g_vfs_done():mmcsd0s2a[WRITE(offset=1460830208, length=24576)]error = 5 >>>>> panic: No b_bufobj 0xd767ca00 >>>>> cpuid = 1 >>>>> KDB: enter: panic >>>>> [ thread pid 12 tid 100013 ] >>>>> Stopped at $d.7: ldrb r15, [r15, r15, ror r15]! >>>>> db> >>>>> >>>> >>>> Hm, I have seen this already, it is the sdhci software timeout. >>>> >>>> The 'happens at night' part rings a bell for me. >>>> >>>> In my case it happened only with a card that has failed a few weeks >>>> later, so I thought it was a pre-fail case. >>>> >>>> But in certain cases (depending on the card) I think this timeout can >>>> be triggered with normal usage. >>>> >>>> Please try the attached patch and let me know if it works for you. >>>> >>>> Luiz >>>> >>>> Index: sys/dev/sdhci/sdhci.c >>>> =================================================================== >>>> --- sys/dev/sdhci/sdhci.c (revision 282210) >>>> +++ sys/dev/sdhci/sdhci.c (working copy) >>>> @@ -872,7 +872,7 @@ >>>> /* Start command. */ >>>> WR2(slot, SDHCI_COMMAND_FLAGS, (cmd->opcode << 8) | (flags & >>>> 0xff)); >>>> /* Start timeout callout. */ >>>> - callout_reset(&slot->timeout_callout, 2*hz, sdhci_timeout, >>>> slot); >>>> + callout_reset(&slot->timeout_callout, 10*hz, sdhci_timeout, >>>> slot); >>>> } >>>> >>>> static void >>>> >>> >>> Luiz, the patch works for me. Thanks! >>> >>> [Tested on BBB with a 2GB microSD that previously gave a WRITE timeout.] >>> >>> ...keith >>> >> >> I was out of town for a few days but yesterday I tried the patch and I >> was able to build my ports without a panic. I'll continue to do some more >> testing. >> >> > Now I hit a panic while running "restart" from a terminal: > > panic: vm_page_unwire: page 0xc0c63e30's wire count is zero > cpuid = 1 > KDB: enter: panic > [ thread pid 502 tid 100081 ] > Stopped at $d.7: ldrb r15, [r15, r15, ror r15]! > db> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >