From owner-freebsd-arm@FreeBSD.ORG Sun Apr 19 20:00:44 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 CE39B9AE for ; Sun, 19 Apr 2015 20:00:44 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.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 9A4E677E for ; Sun, 19 Apr 2015 20:00:43 +0000 (UTC) Received: by obcux3 with SMTP id ux3so94937obc.2 for ; Sun, 19 Apr 2015 13:00:42 -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:cc:content-type; bh=7ezo2HQIf0uCusXbR2+y2k310hmKvuc2F6XEr247rwE=; b=D5d9Hnp+FmcVysXL+6IdRu+s1HVYJMbyvugYETSd7SDTeMMpeWkWcHlQL9N6iNhstv 5VWcz7fPAJ2LxK9uotQpSmUmFPYEUuE4eaValJ4lKwEdnYG6P2vugb0oYkO8UhJhRYrL Jl+7eZw/3j11OakE6T35wF4WLOdDIUITBK/TyVbmfSXlul16D3ndexbqxQ7Qe7cC9ktF zGfUfRyQcBkHBO5N1b0yAJQspcdMutn0f9mzGTYF63INwgMLSM8jS5p92Q4UK4tWkWlj vTpYAnKw5XW0ZPDF+6kak6AsalF333OIMary/JVYiwfY8EcYwbWRILlY1GMSEknneL+k ptiQ== X-Gm-Message-State: ALoCoQkfKNgAWZDKGhtEUs8xGHAStrKAkjotMl8tfzkuJAQ29LTzw7iScr0KjY2bix4+ZrE6aqdT MIME-Version: 1.0 X-Received: by 10.60.147.165 with SMTP id tl5mr11427057oeb.81.1429473642595; Sun, 19 Apr 2015 13:00:42 -0700 (PDT) Received: by 10.60.63.72 with HTTP; Sun, 19 Apr 2015 13:00:42 -0700 (PDT) In-Reply-To: References: <6970CFB2-6347-4BAF-BA24-56196C33C3BC@nimrev.com> <37983D60-3AD9-4DEC-A1D8-4E65BABE3066@nimrev.com> Date: Sun, 19 Apr 2015 23:00:42 +0300 Message-ID: Subject: Re: mmc/sd driver testing. From: Alexander Fedorov To: Luiz Otavio O Souza Cc: Bas Vermin , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Sun, 19 Apr 2015 20:00:44 -0000 Hi Luiz! Your patches work great to me! It works good on my PC-Duino with typical use cases. I'm performing 'make buildworld' tomorrow to make all thing up and kicking=). Thanks. 2015-04-18 6:32 GMT+03:00 Luiz Otavio O Souza : > On 16 April 2015 at 19:32, Luiz Otavio O Souza wrote: >> On 16 April 2015 at 18:41, Alexander Fedorov wrote: >>> Hello! >>> >>> If it helps, I've updated my patch to CURRENT r281599. >>> >>> These are the changes from the previous version: >>> - Style fixes, suggested by Ian. >>> - Speed improovment (reading from 2 MB/s to 5-6 MB/s, writing from 0.8 >>> to 1.5 MB/s). >>> - Use bus_space_write_multi_4/bus_space_read_multi_4 for large blocks. >>> - Multiblock I/O support. >> >> I did a few changes to your driver and now I need some help with >> testing (I have tested only on Cubieboard2 so far). >> >> The changes include: >> >> - better error handling on mmc_acquire_host(); >> - Removed the busy loops from interrupt handler; >> - Use PLL6 as the clock source for MMC/SD (from netbsd); >> - Simplified interrupt handling - always unmasked and enabled (from netbsd); >> - Style(9) fixes. > > Okay, I have committed a few changes to reduce the differences and now > you need only the following patches (with a fresh -head): > > http://loos.com.br/allwinner/a10_mmc.diff > http://loos.com.br/allwinner/kernel-conf.diff > http://loos.com.br/allwinner/sunxi-dts.diff > > Please, try it and report back :) > > Luiz