From owner-freebsd-arm@FreeBSD.ORG Tue Oct 28 16:53:12 2014 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 2CBB82AD for ; Tue, 28 Oct 2014 16:53:12 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB93E81D for ; Tue, 28 Oct 2014 16:53:11 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hi2so2227134wib.13 for ; Tue, 28 Oct 2014 09:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=AM+y8Au7qo0oKAxV1S2N/iEymfRhXTWILbYhySTiD+4=; b=zayGoOZT7xyy2a5d5v4aPiVdCuzjA0k8qHOpypAJTBzCKXroitOLwQcr4ZmkUcFCPM sJacbdGuPCL0czRF3839AKfk8YQ2irybhF5SI/ykG4qiwhJfGYrTrhkE0BeIexmB5dvM uTLs75+LHnbkO1/gPKJfrpdZOOLZ12Yk09JtGcy7HSaDIhCr2kI6cAJGXHiOmWgLpuKV k3rchWSxO9fqzZRA6vA2Ta+qp8xOu4+DBWs6KRXQtvV3UmP1JWQceP+JC+iQshq10Spp R7fmz7ydlabDruq3KY6bCqYu/E6edFmyA9XS+JJpSjmAT1l3lkolMIx8cPBoFVOOiYXe RZrQ== MIME-Version: 1.0 X-Received: by 10.194.216.162 with SMTP id or2mr5795050wjc.68.1414515190080; Tue, 28 Oct 2014 09:53:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Tue, 28 Oct 2014 09:53:09 -0700 (PDT) In-Reply-To: References: <544D8D53.5060100@foxvalley.net> Date: Tue, 28 Oct 2014 09:53:09 -0700 X-Google-Sender-Auth: ayiTZRasJML3W2S_cKZOHR3ZxOs Message-ID: Subject: Re: new support for Raspberry Pi B+ From: Adrian Chadd To: Luiz Otavio O Souza Content-Type: text/plain; charset=UTF-8 Cc: Dan Raymond , "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 16:53:12 -0000 Hi, can you downgrade the driver speed after it's started? Ie, once you see a handful of errors, say "ok fine!" and drop down to the slower speed? -adrian On 28 October 2014 05:31, Luiz Otavio O Souza wrote: > On 26 October 2014 22:09, Dan Raymond wrote: >> One small correction to my previous test results: with the 16GB Transcend >> card I *can* get it to boot reliably with the hw.bcm2835.sdhci.hs="0" hack. >> >> To summarize, I see no improvement regarding SD card failures between >> r271779 and r273702. Nor do I see any improvement between the previous >> commit to crochet and the current commit. I do see a minor regression: >> without the sdhci.hs hack I used to get 50% boot failures on my 16GB >> Transcend and now I get 100% boot failures. > > Dan, > > It's not a regression, it is a improvement, but as usual, it uncovered > another bugs (a bug never come alone). > > Try 10 or 15 boots with and without the fix and check the differences > on the SD card identification at dmesg, it should look like: > > mmcsd0: 2GB at mmc0 > 25.0MHz/4bit/65535-block > > Without the patch you'll see odd values for bus speed and width in > some of the boots, they will coincide with the times that your card > boots fine. What is happening here was that the controller cannot read > the card identification data and it will switch to safe (and slow) > defaults. > > With the patch the card is always identified with correct speed and > bus speed, this leads to consistent failures as RPi cannot handle HS > speed for some cards, whence the the use of hw.bcm2835.sdhci.hs="0" to > make it work. > > So, to summarize: > > - The fix improve the card detection and identification, making it reliable. > > - The fix does not improve the situation of cards running into errors > when working at HS. > > I'm still chasing other possible bugs in this driver, but no promises. > > Luiz > _______________________________________________ > 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"