From owner-freebsd-arm@freebsd.org Mon Mar 7 21:29:37 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 C1994AC3377 for ; Mon, 7 Mar 2016 21:29:37 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (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 7C06FFD2 for ; Mon, 7 Mar 2016 21:29:37 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-vk0-x232.google.com with SMTP id e6so132785200vkh.2 for ; Mon, 07 Mar 2016 13:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vzqjleksSE6feDxqRCZc9vNettHnzfKr52daLDtj5Y8=; b=WWcL3gRHYLJG8Wd628WZy7ThtjAsODCnvXB/VlZcfAUin3CMQpUliRGHSq+sLgwmze Ts1t2NHvmW1C6h0xIsQ/u3RVFXKy9o6mtyUqVTpKo5KPp2xLF/vQJ/qh2MsjZ4ZCWJrB 7CnjuQIAI+D/7ACz1gjqXEOwSF6YR6o12x1xQUt1fa/PwD+Jm7AqdfaR7cy3VWK4c0ze Ux+ZM9UdqVhjtgKHxtOcwK/P80ErQw66/d5UZuSF6VyfkCE+fYvM8RjvX8UKvLhLIJA5 rLrXxDnkvOCSqQlrnt5+O+F3aS7VcDhi2nCmJnAhZoQ4xC98ssk6bInsdN+TZ5X2EUFp 9alw== 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:from:date :message-id:subject:to:cc; bh=vzqjleksSE6feDxqRCZc9vNettHnzfKr52daLDtj5Y8=; b=ZkRAbPNgY0LLZBQxpOF7o2khZLmihszsaeQSNgz5H0UKHKyNN8mD4oy901pNxXZFf3 6L/+xAQoU5Tc6WPiLYKsDi/hGtc+ZoZoRwz/j4i/Ergz2ysjLG7TmJEEbQnUZjvKxz+9 4+5Duz16EpKmPQaL16m6y5ypUVd5wirog4YJDyg/2vAZC5zT2CQnZPH3NCWReDMqyKG2 CR1L3Ql9U8GYIltdjbc1KbForkH+Ia1V/x2etCWHXsdtHEmW0WGy/wTAsZR5c9iCumiv Sog9r1G/bsfubdiEu9KzLYcKp8cMID8uMMKEHzQR/heloC/xo0MRcqYolmyjoNgMckJd GH/w== X-Gm-Message-State: AD7BkJJL9IP1sf3qniYy6SBLwAHNdBMsp+zrBr+MEYi2GA5fonMBzd6+3PCtxzOG5TuZb2ueSNQwmjGL6DLnWbiiHNVWfx88mcQjVyVRRUEIm9i00a2RwFqTbTSpNNF+ef9ByS41Rt17BwaOGizO+A== X-Received: by 10.31.14.195 with SMTP id 186mr22524945vko.2.1457386176308; Mon, 07 Mar 2016 13:29:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.36.197 with HTTP; Mon, 7 Mar 2016 13:29:21 -0800 (PST) In-Reply-To: <437ca32e613c8ecc6825e6da18ca64b1@bakulin.de> References: <20160229225811.GB74374@server.rulingia.com> <20160301002249.GA61549@mutt-hardenedbsd> <437ca32e613c8ecc6825e6da18ca64b1@bakulin.de> From: "Lundberg, Johannes" Date: Mon, 7 Mar 2016 13:29:21 -0800 Message-ID: Subject: Re: FreeBSD on the RaspberryPi 3 To: Ilya Bakulin Cc: Adrian Chadd , "freebsd-arm@freebsd.org" , imp@freebsd.org, owner-freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 21:29:38 -0000 Hi Ilya Great work! I am eager to start using the eMMC on my Intel Atom board so whatever I can do to help. This board uses ACPI by default so I started working on a sdhci_acpi driver but it is also possible to switch to PCI in BIOS. However, with PCI mode and the original FreeBSD 11 code or your patch, it can't detect the MMC memory chip (which is soldered to the board). I wonder if that is related to the problem they have on Linux http://permalink.gmane.org/gmane.linux.kernel.mmc/35512 Simply, it says like this: "Intel BXT/APL use a card detect GPIO however the host controller will not enable bus power unless it's card detect also reflects the presence of a card. Unfortunately those 2 things race which can result in commands not starting, after which the controller does nothing and there is a 10 second wait for the driver's 10-second timer to timeout. That is fixed by having the driver look also at the present state register to determine if the card is present. Consequently, provide a 'get_cd' sdhci host operation for BXT/APL that does that." Will your patch take this into consideration? If you need a board for testing, let me know. On Wed, Mar 2, 2016 at 3:37 AM, Ilya Bakulin wrote: > On 2016-03-01 03:07, Adrian Chadd wrote: > >> Someone ordered me one, so I can take a crack at the broadcom sdio bits. >> >> It'll require the ARM SDIO driver to first work.. >> >> > Actually SDIO support I'm working on is not ARM-specific, it can work wit= h > any SDHC driver FreeBSD already has support for. > > With the release of RPi3 I'm kinda feel really motivated to finish SDIO > implementation ASAP. I've already ordered one board yesterday. > > Anyone who wants to track progress just keep an eye on > https://reviews.freebsd.org/D4761. > Short summary: my stack is already able to init SDIO cards and do data > transfers. I need to implement some missing bits, but it's in a good shap= e. > > I'm doing this work in my spare time, so cannot make any promises, though= . > > -- > Ilya > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.