From owner-freebsd-arm@freebsd.org Mon Feb 22 07:28:20 2016 Return-Path: Delivered-To: freebsd-arm@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 D6A8CAB047A; Mon, 22 Feb 2016 07:28:20 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x231.google.com (mail-vk0-x231.google.com [IPv6:2607:f8b0:400c:c05::231]) (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 8DAEF1630; Mon, 22 Feb 2016 07:28:20 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x231.google.com with SMTP id e185so121775845vkb.1; Sun, 21 Feb 2016 23:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Bvm/hkRy4Z/6K0Yg+JhMt7W6UyOVcXB4q/ozkMqpmRY=; b=PujuR22am1CHF5E5xa0sTWE3UOt6r571sHN934BpYYStm/R2KXvkoFFEiUuwxhrsmG 5K5TT9jsa/tAMuXrToDj6HZVEuWty3xISslx0tYbNEuALNuQzgqvZhaWcADYMR6VKCaL +nW2dl+GGCRVSx+yDKZ3skHHi5zQ5OwddT7XVjkcKtP95DPWq7uYu3lUVinNEsgbpymZ xrFlIxU7TDwAF/DpiQpJNlv5sK9m7UVXrn5CxMUgxnD3wmn3KBTxRo0FJ4QJS5RV9+68 ZNz0/5oAfjZKNtGIkgj+I/gT/1W0xBc4ImMCuRCDVPZMGiHdEs3NaqpqGV0cI1gKt0Dg rUSg== 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=Bvm/hkRy4Z/6K0Yg+JhMt7W6UyOVcXB4q/ozkMqpmRY=; b=Kq3R2k+tF/t7s1W4Pus9MK66ou12z6MiBWTM4ayRnT+9kgjls/2j/RuK5iduYSMEWy QEFdOKsbzrs0XYfoM3h+zXUK9R6rP0FisAIzvqrKMJbmuCkqVDx0ysXGsoeCLRnAfmtV /r72QkvmbefaNyRs9OIwvgp28WWNhVbECK4KpS3y2NRfAHQ5a5xz45oWacqpiuFlvQ6T Avcq2pli4iQN8rD2W01O/XsQx7SN/92RwgbFkaHF6477aaOHRscOtxvt3hxGon+Rjgl8 t1eHVFJBvR4xd9VkoV+Dvl9eub5Ov3Pe1MEck2JuxqgIiUr3DQBU20JWBBdVv9dJGtlA u3uQ== X-Gm-Message-State: AG10YOT3gXl0SuYzXBn0EXM8LtQ8JMA+7soGdER9wVXAH4NHNWTPmpP9srOTDhtxArcEMTAdPt8yTNpjtuKo9g== MIME-Version: 1.0 X-Received: by 10.31.56.151 with SMTP id f145mr22437799vka.107.1456126099558; Sun, 21 Feb 2016 23:28:19 -0800 (PST) Received: by 10.31.54.13 with HTTP; Sun, 21 Feb 2016 23:28:19 -0800 (PST) In-Reply-To: References: <20140216111153.GA74858@olymp.kibab.com> <5C2CF572-360D-4CA0-81C7-18A5C455AED5@bsdimp.com> <20140224142642.GA32538@olymp.kibab.com> <53120EE8.1080600@bakulin.de> <5688F015.4090002@bakulin.de> <6942A46B-110B-4E1F-9DA1-F965009E8E92@FreeBSD.org> <38dd08fc2a5930d58b09e9bd3cb6d3e7@bakulin.de> Date: Sun, 21 Feb 2016 23:28:19 -0800 Message-ID: Subject: Re: MMC/SDIO stack under CAM From: Russell Haley To: Warner Losh Cc: NGie Cooper , Adrian Chadd , "freebsd-hackers@freebsd.org" , Alexander Motin , Ilya Bakulin , "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: Mon, 22 Feb 2016 07:28:20 -0000 On Mon, Feb 15, 2016 at 9:33 PM, Warner Losh wrote: > On Mon, Feb 15, 2016 at 7:22 AM, NGie Cooper wrote: > >> >> > On Feb 15, 2016, at 02:13, Ilya Bakulin wrote: >> > >> > On 2016-02-11 19:54, Stanislav Sedov wrote: >> >>> On Feb 11, 2016, at 10:47 AM, Ilya Bakulin wrote: >> >>> I'll use an excellent opportunity to post a small status update about >> my work :-) >> >>> * SDHC controller on Wandboard now works with the new stack; >> >>> * SDIO block read now works! >> >>> * camcontrol userland app is extended to support "mmcsdcmd" command >> that allows to send MMC commands from userland apps directly to the card >> via pass(4) device -- now we can write WLAN driver in userland :-D >> >> Great news, userspace drivers are the best!:) >> >> So what are the remaining pieces that prevent this work from hitting >> the HEAD? >> >> -- >> >> Stanislav Sedov >> >> ST4096-RIPE >> > >> > Hi Stas, >> > >> > As I'm not a committer, someone needs to review my code and assist in >> intergration into -HEAD :-) >> > Currently nobody was able to do a review because of -ENOTIME. >> > The only feature that is missing in the new stack (from my PoV) is >> working with high-speed cards -- I just haven't implemented switching to >> high-speed mode yet. Although now it's possible to send required commands >> to the card and then switch controller speed -- all using camcontrol >> mmcsdcmd :-). >> > >> > Do you know anyone not on CC line who is able to help me with this? Or >> maybe you could even find some time yourself? >> >> Hi Ilya, >> Could you please post the patch to phrabricator and CC the interested >> parties/me? >> > > It's been up on phab for a while. There's been some comments on it. There's > some > things wrong still that I've been meaning to get bcak to Ilya on. > > When it is ready, I plan on committing this. It goes hand in hand with the > nvme CAM stuff > I've been working on. > > Anybody can take a look at it: https://reviews.freebsd.org/D4761 > I tried to apply the SDIO patch like this: mv ~/Downloads/D4761.diff /usr/patches Then from within my build jail: cd /usr/src patch < /usr/patches/D4761.diff and I wind up with the mmc source files in my root. What should my working directory be when applying this patch? Thanks, Russ