From owner-freebsd-arm@freebsd.org Sun Jul 12 03:57:19 2015 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 87D659971A0 for ; Sun, 12 Jul 2015 03:57:19 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from nm19-vm8.bullet.mail.gq1.yahoo.com (nm19-vm8.bullet.mail.gq1.yahoo.com [98.136.217.31]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B6DA1C84 for ; Sun, 12 Jul 2015 03:57:18 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from [98.137.12.190] by nm19.bullet.mail.gq1.yahoo.com with NNFMP; 12 Jul 2015 03:53:51 -0000 Received: from [98.138.87.3] by tm11.bullet.mail.gq1.yahoo.com with NNFMP; 12 Jul 2015 03:53:51 -0000 Received: from [127.0.0.1] by omp1003.mail.ne1.yahoo.com with NNFMP; 12 Jul 2015 03:53:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 785152.50289.bm@omp1003.mail.ne1.yahoo.com Received: (qmail 30895 invoked by uid 60001); 12 Jul 2015 03:53:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s1024; t=1436673231; bh=Zh+HtcjbGBREnUH14lWvpRbsIP6vzlr87+vM2nuDvWk=; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dcC0zhYt2UrRkqBNysWnR/zslRGSYDRd3LLQivfLb7MdU78vFt2wRblxnHoEmHjApFWpRY1nMeG81ZfW65Xlt+p8NcC9DtkGc2RJ4f8hXwYWS0kugafU+ub6SRd7H6yT7VeXt1sIJd0McDdvxZBWLX9t6OAdx4LUvPTrEFyX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djYvSVNPLUlNQUdFUy8xMC4xL0YBMAEBAQE- X-Mailer: YahooMailBasic/568 YahooMailWebService/0.8.203.802 Message-ID: <1436673231.10221.YahooMailBasic@web120801.mail.ne1.yahoo.com> Date: Sat, 11 Jul 2015 20:53:51 -0700 From: Leonardo Fogel Subject: Re: How to Xbuild to BBB? To: Tim Kientzle Cc: freebsd-arm In-Reply-To: <19291C97-5A51-42D2-AC08-6B067AB8D2BD@kientzle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 12 Jul 2015 03:57:19 -0000 Tim, Very nice guide. Thank you very much. The official 10.1 image [1] does not boot. Some filenames include the BB- p= refix, BB-UENV.TXT is empty (0 byte), and there isn't a kernel image. I'll = report the issue. ([1] ftp://ftp.freebsd.org/pub/FreeBSD/releases/arm/armv6= /ISO-IMAGES/10.1/FreeBSD-10.1-RELEASE-arm-armv6-BEAGLEBONE.img.bz2) I've also tried qemu (on Debian), but it does not support FAT12. I'll creat= e a larger partition, large enough for FAT16, and try again. I've not tried 11.x yet. Leonardo From owner-freebsd-arm@freebsd.org Sun Jul 12 04:03:55 2015 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 CF063997481 for ; Sun, 12 Jul 2015 04:03:55 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from nm9.bullet.mail.ne1.yahoo.com (nm9.bullet.mail.ne1.yahoo.com [98.138.90.72]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 934511FAB for ; Sun, 12 Jul 2015 04:03:55 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from [98.138.101.130] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 12 Jul 2015 04:00:58 -0000 Received: from [98.138.226.162] by tm18.bullet.mail.ne1.yahoo.com with NNFMP; 12 Jul 2015 04:00:57 -0000 Received: from [127.0.0.1] by omp1063.mail.ne1.yahoo.com with NNFMP; 12 Jul 2015 04:00:57 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 978376.48884.bm@omp1063.mail.ne1.yahoo.com Received: (qmail 87805 invoked by uid 60001); 12 Jul 2015 04:00:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s1024; t=1436673657; bh=mk8hnhMDWaNGY+CElAnxbXO2CZIiQywa3aW01Uw6pY8=; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=r6n1f0FUKsVKmx/Ngr10ilwKprm/NDhS9E046wPIhXZDB3yoMOW4eipfTtxF725HgjTwHrw/EivLSat7WRFs2ZjdrGkWMsCO3L7padJQydvl6XMxrH+RtPySm4SNJu6Z9T2X5MEZ3IuZgcA578g+wgzYLjJ8n7aNrJjH142jRY0= X-YMail-OSG: Gvfje6MVM1mu51iVRqKwRvu0WRM_q5aXuj0jIV1PBQCY7uH JPghu7QVaIQgH.YGbUvPLkbjn40E2PZuqfpjnm6lZKF1k4F3d75tupW9PBIe 9D42nge1JCXz8bfR4sWV_MOHZHf12kzzDZGRuIeB8dBK1RWPzI5kbkXY2SZ8 J.k2ks6HwMd0A6Q1iaSmEkObLc78ZtdNtyBgDcJSK_DIgkf.f0uShkP1ktHt Ye9PR8S9Pb8RbvqA9ueLpnKnOtewLxEtYATZykYpC65TdjnqA2IdWIMSERX4 4KIaXXgjdC_LgimBLD5g9KIT_0v8unUoyxVHUXW9gNZuARo4Wi4.qSbMjo1h rm5C.Q8cwbkYMyVOa0U.g3oQaZlOfqwm7vP1PUEmynqIhbPCnC12iMmL0nAx zZmFaj6BG.J8D7KUAwqEVxcpjyX8vp92MMhE9ZR.w4egZ62xglYmKP870zv5 TOMO1lI.uKtE9FircELs6nddljU3dX7R1MxPwiyQBPhbf_At1U_.Uxp8xfEP Ae4ErH3MrM_X2pg2GBLFcFdBMXGmtI3IOjq9YSBG7CYnXgzNpK8lJQxBzpVD ffMSL9QXEaSohgdY- Received: from [179.210.71.155] by web120804.mail.ne1.yahoo.com via HTTP; Sat, 11 Jul 2015 21:00:57 PDT X-Rocket-MIMEInfo: 002.001, SWFuIExlcG9yZSA8aWFuQGZyZWVic2Qub3JnPiB3cm90ZToNCg0KPiBIZXJlIGlzIHNvbWUgbW9yZSBpbmZvIG9uIGFybSBjcm9zcy1idWlsZGluZy4uLg0KPiBodHRwczovL3dpa2kuZnJlZWJzZC5vcmcvRnJlZUJTRC9hcm0vY3Jvc3NidWlsZA0KDQpIaS4NCkknZCB0cmllZCBpdCBiZWZvcmUsIGFuZCBmYWlsZWQuIEJ1dCwgYXMgeW91IG1heSBrbm93LCB0aGUgcHJvYmxlbSB3YXMgbXkgVmlydHVhbEJveCBWTS4gT25jZSB1cGRhdGVkLCBJIGNvdWxkIGZpbmlzaCBidWlsZGluZyBrZXJuZWwtdG9vbGNoYWkBMAEBAQE- X-Mailer: YahooMailBasic/568 YahooMailWebService/0.8.203.802 Message-ID: <1436673657.32171.YahooMailBasic@web120804.mail.ne1.yahoo.com> Date: Sat, 11 Jul 2015 21:00:57 -0700 From: Leonardo Fogel Subject: Re: How to Xbuild to BBB? To: Ian Lepore Cc: freebsd-arm In-Reply-To: <1436648478.1334.183.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 12 Jul 2015 04:03:55 -0000 Ian Lepore wrote: > Here is some more info on arm cross-building... > https://wiki.freebsd.org/FreeBSD/arm/crossbuild Hi. I'd tried it before, and failed. But, as you may know, the problem was my V= irtualBox VM. Once updated, I could finish building kernel-toolchain and th= e kernel. Many thanks. Leonardo From owner-freebsd-arm@freebsd.org Sun Jul 12 06:48:13 2015 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 EEA2D9997D0; Sun, 12 Jul 2015 06:48:13 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC1S3.hotmail.com (col004-omc1s3.hotmail.com [65.55.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C94F9EA; Sun, 12 Jul 2015 06:48:13 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL130-W27 ([65.55.34.7]) by COL004-OMC1S3.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 11 Jul 2015 23:48:07 -0700 X-TMN: [k8hyYP6w1UMyMZCvhy6RxrYPGTH2WSf5] X-Originating-Email: [m.vale@live.com.au] Message-ID: From: Michael Vale To: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "portmgr@freebsd.org" Subject: Cross Ports - skip stage and install directly to sysroot Date: Sun, 12 Jul 2015 17:18:06 +1030 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 12 Jul 2015 06:48:07.0026 (UTC) FILETIME=[B5712520:01D0BC6E] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: Sun, 12 Jul 2015 06:48:14 -0000 http://www.mediafire.com/download/4xqxzldx29oaxzd/bsd.port.mk.sysrootinstal= l.patch I haven't had a chance to test this out because there are some bugs in pkg-= 1.5.4 source that doesn't let me compile it=2C but. it installs to the abs= olute path=2C so i'm not sure that's what we want=2C it might be best to ju= st leave the stage in else pkg might get confused and store the wrong path = on the target systems pkgdb and be unable to remove said packages=2C but I = don't know if thats the case for sure or not. Choice is yours. = From owner-freebsd-arm@freebsd.org Sun Jul 12 06:52:11 2015 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 6AB28999917; Sun, 12 Jul 2015 06:52:11 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC1S11.hotmail.com (col004-omc1s11.hotmail.com [65.55.34.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49FFD614; Sun, 12 Jul 2015 06:52:11 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL130-W2 ([65.55.34.9]) by COL004-OMC1S11.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 11 Jul 2015 23:51:04 -0700 X-TMN: [NAtRoRd9RhHuBEuzfuTWibHSUXgKsAk/] X-Originating-Email: [m.vale@live.com.au] Message-ID: From: Michael Vale To: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "portmgr@freebsd.org" Subject: RE: Cross Ports - skip stage and install directly to sysroot Date: Sun, 12 Jul 2015 17:21:04 +1030 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 12 Jul 2015 06:51:04.0519 (UTC) FILETIME=[1F3C6D70:01D0BC6F] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: Sun, 12 Jul 2015 06:52:11 -0000 I can break up the paths if need be but it wont be today. In a few days pe= rhaps. > From: m.vale@live.com.au > To: freebsd-embedded@freebsd.org=3B freebsd-mips@freebsd.org=3B freebsd-a= rm@freebsd.org=3B portmgr@freebsd.org > Subject: Cross Ports - skip stage and install directly to sysroot > Date: Sun=2C 12 Jul 2015 17:18:06 +1030 >=20 > http://www.mediafire.com/download/4xqxzldx29oaxzd/bsd.port.mk.sysrootinst= all.patch > I haven't had a chance to test this out because there are some bugs in pk= g-1.5.4 source that doesn't let me compile it=2C but. it installs to the a= bsolute path=2C so i'm not sure that's what we want=2C it might be best to = just leave the stage in else pkg might get confused and store the wrong pat= h on the target systems pkgdb and be unable to remove said packages=2C but = I don't know if thats the case for sure or not. > Choice is yours. =20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe=2C send any mail to "freebsd-arm-unsubscribe@freebsd.org" = From owner-freebsd-arm@freebsd.org Sun Jul 12 19:51:31 2015 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 2DB4999B723 for ; Sun, 12 Jul 2015 19:51:31 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1101C1299 for ; Sun, 12 Jul 2015 19:51:30 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t6CJpUbx091856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 12 Jul 2015 12:51:30 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t6CJpUED091855 for freebsd-arm@FreeBSD.org; Sun, 12 Jul 2015 12:51:30 -0700 (PDT) (envelope-from jmg) Date: Sun, 12 Jul 2015 12:51:30 -0700 From: John-Mark Gurney To: freebsd-arm@FreeBSD.org Subject: Video on BBB detected, but no output.. Message-ID: <20150712195130.GK8523@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Sun, 12 Jul 2015 12:51:30 -0700 (PDT) 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, 12 Jul 2015 19:51:31 -0000 I've heard that FreeBSD now supports vidoe on BBB. I decided to try that w/ the recent June 25th snap (I thought I d/l'd the July 1st, but apparently didn't): FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284814: Thu Jun 25 20:55:47 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm It detects the display properly, but it does not appear to output anything to the TV. I cannot select the input as the TV claims that there is nothing connected... Vendor: [SAM] Samsung Product: [0B92] SAMSUNG [...] Number of extension blocks: 1 fb0: detected videomode: 1440x900 @ 60KHz fbd0 on fb0 VT: initialize with new VT driver "fb". There does appear to be a getty running: 607 v0 Is+ 0:00.02 /usr/libexec/getty Pc ttyv0 Comments? Suggestions? I will admit that I don't have a keyboard plugged in, but that shouldn't cause a problem, should it? We do need to not call edid_parse unless bootverbose is set so that we don't get such verbose output on boot... We may want to look at passing device_t to edid_print, so that it can use device_printf and get the device properly prepended to each line too... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@freebsd.org Sun Jul 12 19:52:22 2015 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 29D9599B787; Sun, 12 Jul 2015 19:52:22 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC1S5.hotmail.com (col004-omc1s5.hotmail.com [65.55.34.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0913B1586; Sun, 12 Jul 2015 19:52:21 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL130-W39 ([65.55.34.7]) by COL004-OMC1S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 12 Jul 2015 12:52:15 -0700 X-TMN: [UuiUAwdgXhZghkpkX4qQY18c7xhGJbn/] X-Originating-Email: [m.vale@live.com.au] Message-ID: From: Michael Vale To: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "portmgr@freebsd.org" Subject: RE: Cross Ports - skip stage and install directly to sysroot Date: Mon, 13 Jul 2015 06:22:14 +1030 Importance: Normal In-Reply-To: References: , MIME-Version: 1.0 X-OriginalArrivalTime: 12 Jul 2015 19:52:15.0519 (UTC) FILETIME=[408772F0:01D0BCDC] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: Sun, 12 Jul 2015 19:52:22 -0000 Okay I broke them up and reversed it like so STAGEDIR=3D /SYSROOT=3D ${LOCALBASE}/../root/${ARCH}/SYSROOT=3D ${SYSROOT}$= {STAGEDIR} I also want to fix up the mips-gcc naming conventions because it's rediculo= us. last time I did this job and had no stage=2C they were shorter and mor= e compact! the target was simply ${ARCH}-freebsd${OSREL} with the binutils = and gcc simply mips-freebsd-gcc=2C ar=2C ranlib=2C etc. > From: m.vale@live.com.au > To: freebsd-embedded@freebsd.org=3B freebsd-mips@freebsd.org=3B freebsd-a= rm@freebsd.org=3B portmgr@freebsd.org > Subject: RE: Cross Ports - skip stage and install directly to sysroot > Date: Sun=2C 12 Jul 2015 17:21:04 +1030 >=20 > I can break up the paths if need be but it wont be today. In a few days = perhaps. >=20 > > From: m.vale@live.com.au > > To: freebsd-embedded@freebsd.org=3B freebsd-mips@freebsd.org=3B freebsd= -arm@freebsd.org=3B portmgr@freebsd.org > > Subject: Cross Ports - skip stage and install directly to sysroot > > Date: Sun=2C 12 Jul 2015 17:18:06 +1030 > >=20 > > http://www.mediafire.com/download/4xqxzldx29oaxzd/bsd.port.mk.sysrootin= stall.patch > > I haven't had a chance to test this out because there are some bugs in = pkg-1.5.4 source that doesn't let me compile it=2C but. it installs to the= absolute path=2C so i'm not sure that's what we want=2C it might be best t= o just leave the stage in else pkg might get confused and store the wrong p= ath on the target systems pkgdb and be unable to remove said packages=2C bu= t I don't know if thats the case for sure or not. > > Choice is yours. =20 > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe=2C send any mail to "freebsd-arm-unsubscribe@freebsd.org= " > =20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe=2C send any mail to "freebsd-arm-unsubscribe@freebsd.org" = From owner-freebsd-arm@freebsd.org Sun Jul 12 19:59:20 2015 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 6857F99B838; Sun, 12 Jul 2015 19:59:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (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 345021A37; Sun, 12 Jul 2015 19:59:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbij6 with SMTP id ij6so8496714igb.1; Sun, 12 Jul 2015 12:59:19 -0700 (PDT) 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=PlxuGxjAE+dxbId6YNOBzNZAFYYyTW2WNa8Zo8dfXYk=; b=gDxibvUBNdtDkf+K8s/ttLM5yiIrratt2piWV8BAn7Pj+effUJmVk4hMbbkXx4GLMu CkkR8raQYv8q8DGKFJke75AY8rInCzKJOyv0hU6ddsXYCYWtbGc9EKdx+q+crSA+7dzF 0NNfFk8m6kPymsSc4Bj/0z5InmWGr/V5WvcyRVHCo+/B/lhR4csYzjOlSn8Bm8f10P2U TVVsDaLbAG5qzJ7Kk+jTtpChhPLrEqnvSNOqORBJyY1GcvxcphV9rexc+RkQscNfvRs0 09UpE5+3VX3hjcMh0mqcXzK/Iu81FtGTQqoCBDYAlf4vZRZ/p/OKOhOowns7VX0a+BiV UHFw== MIME-Version: 1.0 X-Received: by 10.107.35.144 with SMTP id j138mr17575958ioj.105.1436731159693; Sun, 12 Jul 2015 12:59:19 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Sun, 12 Jul 2015 12:59:19 -0700 (PDT) In-Reply-To: References: Date: Sun, 12 Jul 2015 12:59:19 -0700 Message-ID: Subject: Re: Cross Ports - skip stage and install directly to sysroot From: Adrian Chadd To: Michael Vale Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "portmgr@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, 12 Jul 2015 19:59:20 -0000 Hi, The paths you're using are very specific to how the freebsd-wifi-build things do stuff. Ie, finding it in ${LOCALBASE}/../root/${ARCH} . Ideally we'd just pass in a SYSROOT variable in as part of building and it'd set everything appropriately. -adrian From owner-freebsd-arm@freebsd.org Sun Jul 12 22:08:16 2015 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 B7D2A99BD1E for ; Sun, 12 Jul 2015 22:08:16 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (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 7D6E11E08 for ; Sun, 12 Jul 2015 22:08:16 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by igvi1 with SMTP id i1so20421512igv.1 for ; Sun, 12 Jul 2015 15:08:16 -0700 (PDT) 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=4M36L1UbR4j7EN4RvuxqmZ6vT43G/kLEzku0ERpD2zc=; b=Ke5OjfpShQwiM3Zdar86zHm000NclqPRHukhER/sUc+nt+yFWvk3NQL/Aqsz2zJgOm u+5UW62uENd3kSgY4Vzuh+ZlrIRIf/RNAKQwdvHJ58IwgH3HlcXU2QGUPrQd03r7OiEC CKHA69kK9C3R3TVeoEWbrFsfKUGVWIE+7nyAPRYuhYQxK1/TKC3KbNs3FHdPIIFVQoeT JQbWBQlLC9mQGQm1LJSrBXewG8kGA/7FRoA7hROkRpJRigebwdnwq8dt7gAE1q+pYzVf qwzjKlsFyRzrjwtpSm2p1VnmkI10wf3fU2yQFBhdypN4t8WbMlSkFnnleIvxfFG/8Dtj NBHQ== MIME-Version: 1.0 X-Received: by 10.50.18.39 with SMTP id t7mr8605885igd.3.1436738895928; Sun, 12 Jul 2015 15:08:15 -0700 (PDT) Received: by 10.64.148.84 with HTTP; Sun, 12 Jul 2015 15:08:15 -0700 (PDT) In-Reply-To: <20150712195130.GK8523@funkthat.com> References: <20150712195130.GK8523@funkthat.com> Date: Mon, 13 Jul 2015 00:08:15 +0200 Message-ID: Subject: Re: Video on BBB detected, but no output.. From: Svatopluk Kraus To: John-Mark Gurney Cc: "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, 12 Jul 2015 22:08:16 -0000 On Sun, Jul 12, 2015 at 9:51 PM, John-Mark Gurney wrote: > I've heard that FreeBSD now supports vidoe on BBB. I decided to try > that w/ the recent June 25th snap (I thought I d/l'd the July 1st, but > apparently didn't): > FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284814: Thu Jun 25 20:55:47 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm > > It detects the display properly, but it does not appear to output > anything to the TV. I cannot select the input as the TV claims that > there is nothing connected... > > Vendor: [SAM] Samsung > Product: [0B92] SAMSUNG > [...] > Number of extension blocks: 1 > fb0: detected videomode: 1440x900 @ 60KHz > fbd0 on fb0 > VT: initialize with new VT driver "fb". > > There does appear to be a getty running: > 607 v0 Is+ 0:00.02 /usr/libexec/getty Pc ttyv0 > > Comments? Suggestions? Hmm, I did try some gonzo's work-in-progress patches before he commited them. I had a problem with some monitors because of not to much robust method how video clocks frequencies are selected. Fortunatelly, I had another monitor which was able to show video signal frequencies even if the video output was out of supported range. Svatopluk Kraus > > I will admit that I don't have a keyboard plugged in, but that shouldn't > cause a problem, should it? > > We do need to not call edid_parse unless bootverbose is set so that > we don't get such verbose output on boot... > > We may want to look at passing device_t to edid_print, so that it > can use device_printf and get the device properly prepended to each > line too... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > 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" From owner-freebsd-arm@freebsd.org Mon Jul 13 03:59:27 2015 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 C66C399B9A7 for ; Mon, 13 Jul 2015 03:59:27 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter03.peakinternet.com (filter03.peakinternet.com [207.55.16.94]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B0711113 for ; Mon, 13 Jul 2015 03:59:27 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter03.peakinternet.com ({a3d4bcbc-467e-4baf-8e5e-c89ccb4fcca2}) via TCP (outbound) with ESMTPS id 20150713035558084_0000 for ; Sun, 12 Jul 2015 20:55:58 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id A4F1C114AFB for ; Sun, 12 Jul 2015 20:55:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 99031114426 for ; Sun, 12 Jul 2015 20:55:56 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7yrmd0MVlkLp for ; Sun, 12 Jul 2015 20:55:56 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 5D400114ACF for ; Sun, 12 Jul 2015 20:55:56 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZEUqM-0007a7-AK for freebsd-arm@freebsd.org; Sun, 12 Jul 2015 20:55:50 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: RPi won't boot 10.2-BETA1 X-Clacks-Overhead: GNU Terry Pratchett Date: Sun, 12 Jul 2015 20:55:50 -0700 Message-ID: <87wpy41zjt.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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, 13 Jul 2015 03:59:27 -0000 I just tried to boot 10.2-BETA1 from a SD card, but it gives me a few lines of messages, including 'unrecognized filesystem type'. I have been running Linux on it and had run FreeBSD 10-STABLE from back in January, so the Pi is running. I programmed the card from Linux using dd, and had already verified the checksum. I verified that the FAT and UFS partitions appear valid on the card, so I must be overlooking something. The following are the messages on the screen when the system halted: In: serial Out: lcd Err: lcd mbox: Timeout waiting for response bcm2835: Could not set USB power state Net: Net Initialization Skipped No ethernet found. ** Unrecognized filesystem type ** Hit any key to stop autoboot: 0 Booting from: mmc 0 ubldr ** Unrecognized filesystem type ** U-Boot> Does anybody see what I am missing here? Thanks for any suggestions. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Mon Jul 13 16:33:27 2015 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 DA20299C696; Mon, 13 Jul 2015 16:33:27 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (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 7F9AB10FB; Mon, 13 Jul 2015 16:33:27 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wgxm20 with SMTP id m20so117381439wgx.3; Mon, 13 Jul 2015 09:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=dumGtzvCQ+bF7rGIG+PCmvSz61b8S2H+b3oBV2RWuf0=; b=P2UqKKe+JrShew7AB7U5mPbBvDsfraPP5aIRHuUO8I8LA3YaDuMXNdVw9aK4u6gtbD KzwGYv/lcMf8fm1Cl5F1CY6mXDNaKOXOxhqKBkac9y92iV6Pu2q/xdwEI52qiicOHVyK YoyQT1Cpk8s48PN9yS+i3zeOHbgCJPSslgkiklFGv4dpehsTjEINIMmNxQKnATrsi7QE xm892LwmGlT2X/OkgXfEKiXQU3Fj9Q0FCThF4ynxirIis/8/aPbWbnjCu714NfbT3vfj Lmrz24TgkqeOnfOYkQdpa1PmOACLpsu9YTW2+0dmtv07Ld0zePAy+r7IEU7ynUwSXpkg oS+A== X-Received: by 10.194.48.71 with SMTP id j7mr69799856wjn.59.1436805205821; Mon, 13 Jul 2015 09:33:25 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id lq9sm30089260wjb.35.2015.07.13.09.33.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 09:33:24 -0700 (PDT) Sender: Baptiste Daroussin Date: Mon, 13 Jul 2015 18:33:22 +0200 From: Baptiste Daroussin To: Michael Vale Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "portmgr@freebsd.org" Subject: Re: Cross Ports - skip stage and install directly to sysroot Message-ID: <20150713163322.GE37597@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jTMWTj4UTAEmbWeb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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, 13 Jul 2015 16:33:28 -0000 --jTMWTj4UTAEmbWeb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 12, 2015 at 05:18:06PM +1030, Michael Vale wrote: > http://www.mediafire.com/download/4xqxzldx29oaxzd/bsd.port.mk.sysrootinst= all.patch > I haven't had a chance to test this out because there are some bugs in pk= g-1.5.4 source that doesn't let me compile it, but. it installs to the abs= olute path, so i'm not sure that's what we want, it might be best to just l= eave the stage in else pkg might get confused and store the wrong path on t= he target systems pkgdb and be unable to remove said packages, but I don't = know if thats the case for sure or not. > Choice is yours. =20 First thanks for working on that. Would it be possible that you attache the patch in the mail next time? would be way easier to review. Concerning the bug in pkg you are speaking about, what compiler are you usi= ng, because the fact one contributed file is in CRLF (we keep the upstream vers= ion as vanilla as possible) should not be a problem for any compiler. Best regards, Bapt --jTMWTj4UTAEmbWeb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWj6FIACgkQ8kTtMUmk6EzbOQCgsuw6zSkaosEURgfTVUssRDK8 2G8AoIRs/RRaJadlHko1/fTIfBKrUYdd =In4L -----END PGP SIGNATURE----- --jTMWTj4UTAEmbWeb-- From owner-freebsd-arm@freebsd.org Mon Jul 13 16:49:07 2015 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 44BA299C857 for ; Mon, 13 Jul 2015 16:49:07 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 23DD019B8 for ; Mon, 13 Jul 2015 16:49:06 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t6DGn5PV006980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Jul 2015 09:49:05 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t6DGn56p006979; Mon, 13 Jul 2015 09:49:05 -0700 (PDT) (envelope-from jmg) Date: Mon, 13 Jul 2015 09:49:05 -0700 From: John-Mark Gurney To: Svatopluk Kraus Cc: "freebsd-arm@freebsd.org" Subject: Re: Video on BBB detected, but no output.. Message-ID: <20150713164905.GM8523@funkthat.com> References: <20150712195130.GK8523@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Mon, 13 Jul 2015 09:49:05 -0700 (PDT) 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, 13 Jul 2015 16:49:07 -0000 Svatopluk Kraus wrote this message on Mon, Jul 13, 2015 at 00:08 +0200: > On Sun, Jul 12, 2015 at 9:51 PM, John-Mark Gurney wrote: > > I've heard that FreeBSD now supports vidoe on BBB. I decided to try > > that w/ the recent June 25th snap (I thought I d/l'd the July 1st, but > > apparently didn't): > > FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284814: Thu Jun 25 20:55:47 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm > > > > It detects the display properly, but it does not appear to output > > anything to the TV. I cannot select the input as the TV claims that > > there is nothing connected... > > > > Vendor: [SAM] Samsung > > Product: [0B92] SAMSUNG > > [...] > > Number of extension blocks: 1 > > fb0: detected videomode: 1440x900 @ 60KHz > > fbd0 on fb0 > > VT: initialize with new VT driver "fb". > > > > There does appear to be a getty running: > > 607 v0 Is+ 0:00.02 /usr/libexec/getty Pc ttyv0 > > > > Comments? Suggestions? > > Hmm, I did try some gonzo's work-in-progress patches before he > commited them. I had a problem with some monitors because of not to > much robust method how video clocks frequencies are selected. > Fortunatelly, I had another monitor which was able to show video > signal frequencies even if the video output was out of supported > range. Ok, I did try on a proper computer monitor instead of a TV (though I have a feeling lots of people want to use their BBB w/ their TV more than a computer monitor), and it worked... Vendor: [DEL] Dell Product: [A091] DELL U2713H [...] Range: Horizontal: 29 - 113 kHz Vertical: 49 - 86 Hz Max Dot Clock: 280 MHz [...] Preferred mode: 2560x1440 @ 60Hz Number of extension blocks: 1 fb0: detected videomode: 1280x1024 @ 60KHz fbd0 on fb0 VT: initialize with new VT driver "fb". So, looks like the video mode selection needs to be improved some, or my TV is presenting modes that it doesn't support... I'll investigate further... I did notice that none of the 24Hz or 30Hz modes are presented, and I know that at least on MacOSX, they are around.. Also, when I unplug/plug the HDMI cable, I don't see any reprobing of EDID information... > > I will admit that I don't have a keyboard plugged in, but that shouldn't > > cause a problem, should it? > > > > We do need to not call edid_parse unless bootverbose is set so that > > we don't get such verbose output on boot... > > > > We may want to look at passing device_t to edid_print, so that it > > can use device_printf and get the device properly prepended to each > > line too... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@freebsd.org Mon Jul 13 17:27:48 2015 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 AE4B799CE93 for ; Mon, 13 Jul 2015 17:27:48 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from nm13-vm3.bullet.mail.ne1.yahoo.com (nm13-vm3.bullet.mail.ne1.yahoo.com [98.138.91.143]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 558FEF33 for ; Mon, 13 Jul 2015 17:27:47 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from [98.138.100.111] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 13 Jul 2015 17:25:26 -0000 Received: from [98.138.226.160] by tm100.bullet.mail.ne1.yahoo.com with NNFMP; 13 Jul 2015 17:25:26 -0000 Received: from [127.0.0.1] by omp1061.mail.ne1.yahoo.com with NNFMP; 13 Jul 2015 17:25:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 356997.53755.bm@omp1061.mail.ne1.yahoo.com Received: (qmail 5055 invoked by uid 60001); 13 Jul 2015 17:25:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s1024; t=1436808326; bh=HklR8Jp/cKDk4mJFm1HZPqx5cB7s+E0CS9E77hWXbrU=; h=Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4qYN/+nQ3oXr6zGw1UnIlEI2gOrB5ul7wn40YBahLSWt3xhCLjEHd5LPMREM+aKmsRu/5CkFF/Cw4fOciv/yfyyq4NGCsLL6FsMvUCziEawaQikg4aqqmVegEgI30uU4aovDFxriq5+cZf+F4sL7835hpZSs3T/ZwUkWP/jeVVY= X-YMail-OSG: VlJ3SjIVM1nX66LBFvw7nz_vqcU9LrNdSsKiAzgmkxTeGkM Gy3UYlPbsSL_BwvfsymgYZ1c7af.7c1h2iAkBFlBMj3.c0LAPKTeMxbGzc.g llGhMyemPnR4F.N4o_6rHC4EhVpVepzBEQewnFKQagtYQYeqjsrA4nahCL0q N1zbslTusFb5ys8qZztHOiQFJWSqoMaeyAHxq3o3RvNOsE9fWfGySm6yX72L p3Z2giOJYGiZNIlYes7FE5lS3SHi3abNqy614jmK59heEgzIy9.30C8v._vJ NLFVP.pkjc728t4sye5qJNZFHecXzZWAV43aKUisXDM.rCugiAqqv_LLkAiO X.NN.EuaXa7XhM0JTj8a3ait4G441LLxqW0.dbmzaG1GBuoUundcL3hFo0pZ tKYE1JRVpXYV1pj7eK7PFYnL1TYfgfngCCrRrPUsOtOl9pztRMFzFAVrHsBW .I9u.Ra_tLJV1LuGnERMQe8Vv6LdHah4UQ3DaY8otYmhwzqu4TneYEiimjS3 ru.ixDmnhXtisRO86YNqP2buAsXyeZLYc3EA_zQr9AN17ka.DJDbzS6boiKt RoIO8ZV.4DIJkkbRe Received: from [186.228.53.250] by web120802.mail.ne1.yahoo.com via HTTP; Mon, 13 Jul 2015 10:25:26 PDT X-Rocket-MIMEInfo: 002.001, PiBEb2VzIGFueWJvZHkgc2VlIHdoYXQgSSBhbSBtaXNzaW5nIGhlcmU_ICBUaGFua3MgZm9yIGFueSBzdWdnZXN0aW9ucy4NCg0KSSd2ZSBnb3QgYSBzaW1pbGFyIGVycm9yIHRyeWluZyB0byBib290IHRoZSBCQkIgaW1hZ2UuIEFzIEkgdW5kZXJzdGFuZCBpdCwgdGhlIGltYWdlIGl0c2VsZiBpcyBicm9rZW4uDQpPbiB0aGUgVS1Cb290PiBwcm9tcHQsIHlvdSBjYW4gdHlwZSB0aGUgY29tbWFuZCAnZmF0bHMgbW1jIDAnIHRvIGxpc3QgdGhlIEZBVCBjb250ZW50LiBZb3UnbGwgc2VlIHRoZXJlIGlzbid0IGEBMAEBAQE- X-Mailer: YahooMailBasic/568 YahooMailWebService/0.8.203.802 Message-ID: <1436808326.55378.YahooMailBasic@web120802.mail.ne1.yahoo.com> Date: Mon, 13 Jul 2015 10:25:26 -0700 From: Leonardo Fogel Subject: Re: RPi won't boot 10.2-BETA1 To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 13 Jul 2015 17:27:48 -0000 > Does anybody see what I am missing here? Thanks for any suggestions. I've got a similar error trying to boot the BBB image. As I understand it, = the image itself is broken. On the U-Boot> prompt, you can type the command 'fatls mmc 0' to list the F= AT content. You'll see there isn't any kernel image, the filenames are not = in the "canonical" form, and (BB-)uEnv.txt is empty. Just in case you don't know, these are the steps to mount the image (the FA= T partition) from Linux: # rmmod loop # modprobe loop max_part=3D16 # losetup /dev/loop0 # mount /dev/loop0p1 Regards, Leonardo From owner-freebsd-arm@freebsd.org Mon Jul 13 17:35:54 2015 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 183DF99B2D2 for ; Mon, 13 Jul 2015 17:35:54 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id EF28E2BB for ; Mon, 13 Jul 2015 17:35:53 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Mon, 13 Jul 2015 17:34:20 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6DHZiqd047514; Mon, 13 Jul 2015 11:35:44 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1436808944.1334.206.camel@freebsd.org> Subject: Re: RPi won't boot 10.2-BETA1 From: Ian Lepore To: Leonardo Fogel Cc: freebsd-arm@freebsd.org Date: Mon, 13 Jul 2015 11:35:44 -0600 In-Reply-To: <1436808326.55378.YahooMailBasic@web120802.mail.ne1.yahoo.com> References: <1436808326.55378.YahooMailBasic@web120802.mail.ne1.yahoo.com> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, 13 Jul 2015 17:35:54 -0000 On Mon, 2015-07-13 at 10:25 -0700, Leonardo Fogel wrote: > > Does anybody see what I am missing here? Thanks for any suggestions. > > I've got a similar error trying to boot the BBB image. As I understand it, the image itself is broken. > On the U-Boot> prompt, you can type the command 'fatls mmc 0' to list the FAT content. You'll see there isn't any kernel image, the filenames are not in the "canonical" form, and (BB-)uEnv.txt is empty. > > Just in case you don't know, these are the steps to mount the image (the FAT partition) from Linux: > # rmmod loop > # modprobe loop max_part=16 > # losetup /dev/loop0 > # mount /dev/loop0p1 > This appears to be purely linux-oriented commands and advice. There is, by design, no kernel image file visible to u-boot, because the kernel lives in the ufs filesystem, and u-boot doesn't read ufs. What you should see in the FAT partition is u-boot and ubldr (and on an RPi some firmware files). U-boot loads ubldr, and ubldr loads the kernel and the fdt data from the freebsd filesystem. -- Ian From owner-freebsd-arm@freebsd.org Mon Jul 13 19:34:37 2015 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 9888699CDB0 for ; Mon, 13 Jul 2015 19:34:37 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from nm16-vm2.bullet.mail.ne1.yahoo.com (nm16-vm2.bullet.mail.ne1.yahoo.com [98.138.91.92]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DD4FAAB for ; Mon, 13 Jul 2015 19:34:36 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from [98.138.100.102] by nm16.bullet.mail.ne1.yahoo.com with NNFMP; 13 Jul 2015 19:32:07 -0000 Received: from [98.138.89.175] by tm101.bullet.mail.ne1.yahoo.com with NNFMP; 13 Jul 2015 19:32:07 -0000 Received: from [127.0.0.1] by omp1031.mail.ne1.yahoo.com with NNFMP; 13 Jul 2015 19:32:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 456032.63579.bm@omp1031.mail.ne1.yahoo.com Received: (qmail 35775 invoked by uid 60001); 13 Jul 2015 19:32:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s1024; t=1436815927; bh=qj2QbrD8mQSCCcpnst7CDjdmuamDWg+GTt+kyX1PZak=; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fZXaKOoYc3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ycnkgZm9yIHRoZSBtaXNsZWFkaW5nIGluZm8uDQoNCkxlb25hcmRvATABAQEB X-Mailer: YahooMailBasic/568 YahooMailWebService/0.8.203.802 Message-ID: <1436815927.68714.YahooMailBasic@web120804.mail.ne1.yahoo.com> Date: Mon, 13 Jul 2015 12:32:07 -0700 From: Leonardo Fogel Subject: Re: RPi won't boot 10.2-BETA1 To: Ian Lepore Cc: freebsd-arm@freebsd.org In-Reply-To: <1436808944.1334.206.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 13 Jul 2015 19:34:37 -0000 > This appears to be purely linux-oriented commands and advice. It is also the MINIX 3 and NetBSD approach. The FreeBSD model is new to me. Sorry for the misleading info. Leonardo From owner-freebsd-arm@freebsd.org Mon Jul 13 21:37:22 2015 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 9F40099C6D7 for ; Mon, 13 Jul 2015 21:37:22 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter01.peakinternet.com (filter01.peakinternet.com [207.55.16.92]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79D621CE5 for ; Mon, 13 Jul 2015 21:37:22 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter01.peakinternet.com ({e1c81c21-e4c4-4528-aa90-7a27869c545a}) via TCP (outbound) with ESMTPS id 20150713213720821_0000 for ; Mon, 13 Jul 2015 14:37:20 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id 45F3110DCE1 for ; Mon, 13 Jul 2015 14:37:20 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 37FFA18FB4B for ; Mon, 13 Jul 2015 14:37:20 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jBOOGDGcnTWP for ; Mon, 13 Jul 2015 14:37:20 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 020DE11CCC1 for ; Mon, 13 Jul 2015 14:37:19 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZElPa-0002Tp-SI for freebsd-arm@freebsd.org; Mon, 13 Jul 2015 14:37:18 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: RPi won't boot 10.2-BETA1 References: <1436808326.55378.YahooMailBasic@web120802.mail.ne1.yahoo.com> <1436808944.1334.206.camel@freebsd.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 13 Jul 2015 14:37:18 -0700 In-Reply-To: <1436808944.1334.206.camel@freebsd.org> (Ian Lepore's message of "Mon, 13 Jul 2015 11:35:44 -0600") Message-ID: <87pp3v20z5.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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, 13 Jul 2015 21:37:22 -0000 Ian Lepore writes: >> > Does anybody see what I am missing here? Thanks for any suggestions. >> > There is, by design, no kernel image file visible to u-boot, because the > kernel lives in the ufs filesystem, and u-boot doesn't read ufs. What > you should see in the FAT partition is u-boot and ubldr (and on an RPi > some firmware files). U-boot loads ubldr, and ubldr loads the kernel > and the fdt data from the freebsd filesystem. Thanks, but those files appear to be there. This is what I have: # ls -l /mnt total 3680 -rwxr-xr-x 1 root root 17840 Jul 10 12:41 BOOTCODE.BIN* -rwxr-xr-x 1 root root 102 Jul 10 12:41 CONFIG.TXT* -rwxr-xr-x 1 root root 6122 Jul 10 12:41 FIXUP.DAT* -rwxr-xr-x 1 root root 2335 Jul 10 12:41 FIXUP_CD.DAT* -r-xr-xr-x 1 root root 9017 Jul 10 12:55 RPI.DTB* -rwxr-xr-x 1 root root 2619352 Jul 10 12:41 START.ELF* -rwxr-xr-x 1 root root 536216 Jul 10 12:41 START_CD.ELF* -rwxr-xr-x 1 root root 303152 Jul 10 12:41 U-BOOT.IMG* -r-xr-xr-x 1 root root 252090 Jul 10 12:55 UBLDR* I also had the same problem with snapshots 10.1-STABLE from 20150617 and 11.0-CURRENT from 20150618. I had tested 10.1-STABLE from 20150111 and that booted properly. I also tried typing something in at the 'U-Boot>' prompt this time, but there was no response or echo. I assume that might be due to it looking at serial instead of the keyboard. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Mon Jul 13 21:42:52 2015 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 EAAED99C8C2 for ; Mon, 13 Jul 2015 21:42:52 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter02.peakinternet.com (filter02.peakinternet.com [207.55.16.93]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C56E7D1 for ; Mon, 13 Jul 2015 21:42:52 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter02.peakinternet.com ({c0e096ac-ab76-477d-8a9d-eab3e47a6d30}) via TCP (outbound) with ESMTPS id 20150713213932556_0000 for ; Mon, 13 Jul 2015 14:39:32 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id 7299DDD5D for ; Mon, 13 Jul 2015 14:39:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 669C318FEFE for ; Mon, 13 Jul 2015 14:39:31 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 4etVyCv1JDjx for ; Mon, 13 Jul 2015 14:39:31 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 3544318CACF for ; Mon, 13 Jul 2015 14:39:31 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZElRi-0002UO-7N for freebsd-arm@freebsd.org; Mon, 13 Jul 2015 14:39:30 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: RPi won't boot 10.2-BETA1 References: <1436815927.68714.YahooMailBasic@web120804.mail.ne1.yahoo.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 13 Jul 2015 14:39:30 -0700 In-Reply-To: <1436815927.68714.YahooMailBasic@web120804.mail.ne1.yahoo.com> (Leonardo Fogel's message of "Mon, 13 Jul 2015 12:32:07 -0700") Message-ID: <87lhej20vh.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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, 13 Jul 2015 21:42:53 -0000 Leonardo Fogel writes: >> This appears to be purely linux-oriented commands and advice. > > It is also the MINIX 3 and NetBSD approach. The FreeBSD model is new to me. > Sorry for the misleading info. It wasn't misleading to me, and I learned something from it. Thanks for posting that. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Tue Jul 14 00:29:33 2015 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 0BC08999997 for ; Tue, 14 Jul 2015 00:29:33 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from nm9-vm6.bullet.mail.ne1.yahoo.com (nm9-vm6.bullet.mail.ne1.yahoo.com [98.138.91.102]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A94051BCB for ; Tue, 14 Jul 2015 00:29:32 +0000 (UTC) (envelope-from leonardofogel@yahoo.com.br) Received: from [98.138.100.117] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 14 Jul 2015 00:29:25 -0000 Received: from [98.138.89.245] by tm108.bullet.mail.ne1.yahoo.com with NNFMP; 14 Jul 2015 00:29:25 -0000 Received: from [127.0.0.1] by omp1059.mail.ne1.yahoo.com with NNFMP; 14 Jul 2015 00:29:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 192412.84829.bm@omp1059.mail.ne1.yahoo.com Received: (qmail 38931 invoked by uid 60001); 14 Jul 2015 00:29:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.br; s=s1024; t=1436833765; bh=f//ABr/sxocdkYBpPP/j1YRuBfXcd6xuiBj0TT5As1Q=; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4PsYjBzwN3/+rQ2QcQIY0w6HsXsmWDr/Plt1H47AHvdQBzGAA68d91bcdFC7/Gh3xwwwjqdV2YWRA8WTon51qvpb+Jte73hyDUmHsCWRb4oYC2pYs/rdbP321xg6+eWd/Bx5gNnGniYqNcvWmnHFhV5ESJC562zDEDDbf8ySw0s= X-YMail-OSG: S09mqfMVM1nnhtkRC.Rss0zmh5I6xIKhy18EFrmZ9XlXoBD uvJv0CT3VVuUXLUFdotK5KF63Vlj6T4p6kuZ3FoJiFq2WyTI4guZe4jA1D.F 0uOHbMI6w9W6zfwkXzVPwownAJraKg.BCS3lHGBPdZyT.tr79YTOU8V7TEIU JNo2w1s1SEdECC88Z822qrtZsMxr7_7kw.ON3Jto6QxVJ81reMFu.KY2t.O2 T7wC1QxxwRrop89ZJBRpx9DCSCxDMYVD9fhiEf7oYf56AdBPtwNtsQX1ZYg. WHzLMOnXXhLQz6xKhXYEZlInwHS.Bd3ZvXnmJHJY15SlSpjucZByPqOq1VRK LqUVlsJKSo8i2LVRiXGL_Q9w4V6LwsPrpH2UHSm4zBhV0R4UfiYgG9AHJ0zb jcjtnGGhyLX8ax2NTAXHJVYDcYjopHOLrxp8LDu4UZqH1n3q5bWH9neEUhil FtHck3Ipxmf.lDwLkisqAY60mcj0u5m0vi6VElWmV7x96d8Q4gbsWAJ0H69c IIu9kwraKOkVQoQe3DFFLlwXo31cZpWh6cJlbQ33o0sUBMzrQgIAei_yccgR uIkcdpEja2Eh7L4GpJCo- Received: from [179.210.179.219] by web120801.mail.ne1.yahoo.com via HTTP; Mon, 13 Jul 2015 17:29:25 PDT X-Rocket-MIMEInfo: 002.001, PiA.IEkndmUgZ290IGEgc2ltaWxhciBlcnJvciB0cnlpbmcgdG8gYm9vdCB0aGUgQkJCIGltYWdlLiBBcyBJIHVuZGVyc3RhbmQNCj4gPiBpdCwgdGhlIGltYWdlIGl0c2VsZiBpcyBicm9rZW4uDQo.ID4NCj4gVGhlcmUgaXMsIGJ5IGRlc2lnbiwgbm8ga2VybmVsIGltYWdlIGZpbGUgdmlzaWJsZSB0byB1LWJvb3QsIGJlY2F1c2UNCj4gdGhlIGtlcm5lbCBsaXZlcyBpbiB0aGUgdWZzIGZpbGVzeXN0ZW0sIGFuZCB1LWJvb3QgZG9lc24ndCByZWFkIHVmcy4NCj4gV2hhdCB5b3Ugc2hvdWxkIHNlZSBpbiB0aGUBMAEBAQE- X-Mailer: YahooMailBasic/569 YahooMailWebService/0.8.203.802 Message-ID: <1436833765.57993.YahooMailBasic@web120801.mail.ne1.yahoo.com> Date: Mon, 13 Jul 2015 17:29:25 -0700 From: Leonardo Fogel Subject: Re: RPi won't boot 10.2-BETA1 To: Ian Lepore Cc: freebsd-arm@freebsd.org In-Reply-To: <1436808944.1334.206.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 14 Jul 2015 00:29:33 -0000 > > I've got a similar error trying to boot the BBB image. As I understand > > it, the image itself is broken. > > > There is, by design, no kernel image file visible to u-boot, because > the kernel lives in the ufs filesystem, and u-boot doesn't read ufs. > What you should see in the FAT partition is u-boot and ubldr (and on > an RPi some firmware files). U-boot loads ubldr, and ubldr loads the > kernel and the fdt data from the freebsd filesystem. Ian, My mistake. I was not pressing the BOOT switch hard enough; the ROM code wa= s loading MLO from the eMMC. The uSD image for the BeagleBone is perfect. Thank you for your attention to the matter. Leonardo From owner-freebsd-arm@freebsd.org Tue Jul 14 01:34:42 2015 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 76A49998A07 for ; Tue, 14 Jul 2015 01:34:42 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57C8D18D9 for ; Tue, 14 Jul 2015 01:34:42 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.14.9/8.14.5) with ESMTP id t6E1Oiug024645; Mon, 13 Jul 2015 18:24:44 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.14.9/8.14.5/Submit) id t6E1OiBG024644; Mon, 13 Jul 2015 18:24:44 -0700 (PDT) (envelope-from fbsd) Date: Mon, 13 Jul 2015 18:24:44 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Swap on SD or on usb flash drive for rpi2? Message-ID: <20150714012444.GA24345@www.zefox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i 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, 14 Jul 2015 01:34:42 -0000 Hi all, For some reason my rpi2 insists on having a token amount of swap. It's running FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285428: Sun Jun 14 02:20:56 UTC 2015 bob@rpi2:/usr/obj/usr/src/sys/RPI2 arm (please disregard the date, the system built itself today, July 13 2015) When running a buildworld cycle it uses about 68 MB of swap. It happens that the md filesystems use close to the same amount of space. By any chance could the need for swap be eliminated if the memory filesystems were replaced by physical partitions on the SD card or a usb flash device? If physical swap _is_ mandatory is there significant advantage to placing it on a device separate from /, as with mechanical disks? Thanks for reading and any guidance, bob prohaska From owner-freebsd-arm@freebsd.org Tue Jul 14 01:45:47 2015 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 679D3998C81 for ; Tue, 14 Jul 2015 01:45:47 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery4.ore.mailhop.org (pmta2.delivery4.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id 4A0261E23 for ; Tue, 14 Jul 2015 01:45:46 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Tue, 14 Jul 2015 01:45:33 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6E1jiJS048278; Mon, 13 Jul 2015 19:45:44 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1436838344.1334.259.camel@freebsd.org> Subject: Re: Swap on SD or on usb flash drive for rpi2? From: Ian Lepore To: bob prohaska Cc: freebsd-arm@freebsd.org Date: Mon, 13 Jul 2015 19:45:44 -0600 In-Reply-To: <20150714012444.GA24345@www.zefox.net> References: <20150714012444.GA24345@www.zefox.net> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, 14 Jul 2015 01:45:47 -0000 On Mon, 2015-07-13 at 18:24 -0700, bob prohaska wrote: > Hi all, > > For some reason my rpi2 insists on having a token amount of swap. > It's running FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285428: Sun Jun 14 02:20:56 UTC 2015 bob@rpi2:/usr/obj/usr/src/sys/RPI2 arm > (please disregard the date, the system built itself today, July 13 2015) > > When running a buildworld cycle it uses about 68 MB of swap. It > happens that the md filesystems use close to the same amount of > space. By any chance could the need for swap be eliminated if the > memory filesystems were replaced by physical partitions on the > SD card or a usb flash device? > > If physical swap _is_ mandatory is there significant advantage to > placing it on a device separate from /, as with mechanical disks? > > Thanks for reading and any guidance, > > bob prohaska It's probably better for performance to keep /tmp as a memory filesystem. Also, such filesystems only use as much memory as they have files stored in them. When you delete files the md driver releases the memory. There's no reason for /var/tmp and /var/log to be memory filesystems. It doesn't matter where a swapfile goes on a flash device, since there's no overhead for seeking. It's likely you only need the swap for a few seconds during buildworld, as it builds bits of clang (especially the tblgen app which takes a ton of memory to build). -- Ian From owner-freebsd-arm@freebsd.org Tue Jul 14 09:18:44 2015 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 EABAA99CB8A for ; Tue, 14 Jul 2015 09:18:44 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id D395A2DE for ; Tue, 14 Jul 2015 09:18:44 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id CF18A18E5; Tue, 14 Jul 2015 09:18:44 +0000 (UTC) Date: Tue, 14 Jul 2015 09:18:44 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Updated] D3034: Add BUS_UNMASK_INTR method Message-ID: <889dd78252fdfb7886fdf36f63118bbb@localhost.localdomain> X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWk0/Q= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 09:18:45 -0000 zbb added a subscriber: freebsd-arm-list. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Tue Jul 14 09:49:25 2015 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 439F199B1BE for ; Tue, 14 Jul 2015 09:49:25 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 07F547B0 for ; Tue, 14 Jul 2015 09:49:24 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZEwpw-0002vS-At for freebsd-arm@freebsd.org; Tue, 14 Jul 2015 11:49:21 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Date: Tue, 14 Jul 2015 11:49:15 +0200 Subject: ubldr on armv4/v5 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: -- X-Spam-Score: -2.9 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED, BAYES_00 autolearn=disabled version=3.3.1 X-Scan-Signature: b23ffabd93680167408d22b6bc748885 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, 14 Jul 2015 09:49:25 -0000 Hi, I read about ubldr a while ago. Would it be possible to use this on armv4/5 (i.e. my sheevaplug)? I now copy a kernel.bin file in the nand memory. Would it work to copy /boot/ubldr.bin in there? Or are more steps involved? Regards, Ronald. From owner-freebsd-arm@freebsd.org Tue Jul 14 09:54:05 2015 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 E15BD99B2B7 for ; Tue, 14 Jul 2015 09:54:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id BA9D7A4C for ; Tue, 14 Jul 2015 09:54:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id A8F3F194C; Tue, 14 Jul 2015 09:54:05 +0000 (UTC) Date: Tue, 14 Jul 2015 09:54:05 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Updated, 78 lines] D3034: Add BUS_UNMASK_INTR method Message-ID: <89c8a53b781c6acdecfaca9079910103@localhost.localdomain> X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWk3D0= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_89c8a53b781c6acdecfaca9079910103" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 09:54:06 -0000 --b1_89c8a53b781c6acdecfaca9079910103 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com updated the summary for this revision. wma_semihalf.com updated this revision to Diff 6910. wma_semihalf.com added a comment. Moved arm_unmask_irq here. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3034?vs=6811&id=6910 REVISION DETAIL https://reviews.freebsd.org/D3034 AFFECTED FILES sys/arm64/arm64/intr_machdep.c sys/arm64/arm64/nexus.c sys/dev/fdt/simplebus.c sys/kern/bus_if.m sys/kern/subr_bus.c sys/sys/bus.h EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste --b1_89c8a53b781c6acdecfaca9079910103 Content-Type: text/x-patch; charset=utf-8; name="D3034.6910.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3034.6910.patch" ZGlmZiAtLWdpdCBhL3N5cy9zeXMvYnVzLmggYi9zeXMvc3lzL2J1cy5oCi0tLSBhL3N5cy9zeXMv YnVzLmgKKysrIGIvc3lzL3N5cy9idXMuaApAQCAtNDAyLDYgKzQwMiw4IEBACiAJCQkgICAgICAg c3RydWN0IHJlc291cmNlICppcnEsIGludCBmbGFncywKIAkJCSAgICAgICBkcml2ZXJfZmlsdGVy X3QgKmZpbHRlciwgZHJpdmVyX2ludHJfdCAqaW50ciwgCiAJCQkgICAgICAgdm9pZCAqYXJnLCB2 b2lkICoqY29va2llcCk7CitpbnQJYnVzX2dlbmVyaWNfdW5tYXNrX2ludHIoZGV2aWNlX3QgZGV2 LCBkZXZpY2VfdCBjaGlsZCwKKwkJCSAgICAgICBzdHJ1Y3QgcmVzb3VyY2UgKmlycSk7CiAKIHN0 cnVjdCByZXNvdXJjZSAqCiAJYnVzX2dlbmVyaWNfcmxfYWxsb2NfcmVzb3VyY2UgKGRldmljZV90 LCBkZXZpY2VfdCwgaW50LCBpbnQgKiwKQEAgLTQ1Niw2ICs0NTgsNyBAQAogCQkgICAgICAgZHJp dmVyX2ZpbHRlcl90IGZpbHRlciwgZHJpdmVyX2ludHJfdCBoYW5kbGVyLCAKIAkJICAgICAgIHZv aWQgKmFyZywgdm9pZCA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dF9waWMsIGlycSk7Cit9CisKICNpZmRlZiBTTVAKIHZvaWQK IGFybV9zZXR1cF9pcGloYW5kbGVyKGRyaXZlcl9maWx0ZXJfdCAqZmlsdCwgdV9pbnQgaXBpKQoK --b1_89c8a53b781c6acdecfaca9079910103-- From owner-freebsd-arm@freebsd.org Tue Jul 14 11:20:29 2015 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 0D28099C1DF for ; Tue, 14 Jul 2015 11:20:29 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id E7B3F38E for ; Tue, 14 Jul 2015 11:20:28 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id D91C91EE2; Tue, 14 Jul 2015 11:20:28 +0000 (UTC) Date: Tue, 14 Jul 2015 11:20:28 +0000 To: freebsd-arm@freebsd.org From: "meloun-miracle-cz (Michal Meloun)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Commented On] D3034: Add BUS_UNMASK_INTR method Message-ID: X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWk8Hw= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 11:20:29 -0000 meloun-miracle-cz added a comment. With full respect, I don’t think that this new bus method is right solution for our problem(s). The proposed bus_unmask_intr() cannot be used from outside of secondary CPUs startup context. It cannot be used for SPI, it cannot be used of PPI after scheduler is started on given core. Why you cannot simply call arm_unmask_irq() directly from driver? REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Tue Jul 14 14:22:36 2015 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 DDB309A1A58 for ; Tue, 14 Jul 2015 14:22:36 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id A6423E6A for ; Tue, 14 Jul 2015 14:22:36 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Tue, 14 Jul 2015 14:21:07 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6EEMXG9049558; Tue, 14 Jul 2015 08:22:33 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1436883753.1334.272.camel@freebsd.org> Subject: Re: ubldr on armv4/v5 From: Ian Lepore To: Ronald Klop Cc: freebsd-arm@freebsd.org Date: Tue, 14 Jul 2015 08:22:33 -0600 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, 14 Jul 2015 14:22:37 -0000 On Tue, 2015-07-14 at 11:49 +0200, Ronald Klop wrote: > Hi, > > I read about ubldr a while ago. Would it be possible to use this on > armv4/5 (i.e. my sheevaplug)? > I now copy a kernel.bin file in the nand memory. Would it work to copy > /boot/ubldr.bin in there? Or are more steps involved? > > Regards, > Ronald. In theory it should work fine. It would require that you compile a new u-boot for the sheeva system with the CONFIG_API option enabled -- ubldr won't run unless the u-boot API is available. -- Ian From owner-freebsd-arm@freebsd.org Tue Jul 14 15:06:32 2015 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 371DC9A1608 for ; Tue, 14 Jul 2015 15:06:32 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 1F910926 for ; Tue, 14 Jul 2015 15:06:32 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 1C70F1FF0; Tue, 14 Jul 2015 15:06:32 +0000 (UTC) Date: Tue, 14 Jul 2015 15:06:32 +0000 To: freebsd-arm@freebsd.org From: "onwahe-gmail-com (Svatopluk Kraus)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Commented On] D3034: Add BUS_UNMASK_INTR method Message-ID: X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWlJXg= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 15:06:32 -0000 onwahe-gmail-com added a subscriber: onwahe-gmail-com. onwahe-gmail-com added a comment. Well, I do not like to change bus interface so fast. What about to think of PPI on each core like separate interrupt with its irq number, counter, handler, and handler argument. This way bus_setup_intr will be called only once for PPI on each core. Of course, some coding is needed in nexus and/or interrupt framework. Sadly, there is a new interrupt framework waiting for review for long time. Thus, this thing could be already discussed without such hurry. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: onwahe-gmail-com, freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Tue Jul 14 19:09:14 2015 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 C158B9A13CC for ; Tue, 14 Jul 2015 19:09:14 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 945D21439 for ; Tue, 14 Jul 2015 19:09:14 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id t6EJ9MGE093806; Tue, 14 Jul 2015 19:09:22 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.100] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id hziqm5dkfw4pynirh8b2qmqtye; Tue, 14 Jul 2015 19:09:22 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: RPi won't boot 10.2-BETA1 From: Tim Kientzle In-Reply-To: <1436808326.55378.YahooMailBasic@web120802.mail.ne1.yahoo.com> Date: Tue, 14 Jul 2015 12:09:06 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1436808326.55378.YahooMailBasic@web120802.mail.ne1.yahoo.com> To: Leonardo Fogel X-Mailer: Apple Mail (2.2102) 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, 14 Jul 2015 19:09:14 -0000 > On Jul 13, 2015, at 10:25 AM, Leonardo Fogel = wrote: >=20 >> Does anybody see what I am missing here? Thanks for any suggestions. >=20 > I've got a similar error trying to boot the BBB image. As I understand = it, the image itself is broken. > On the U-Boot> prompt, you can type the command 'fatls mmc 0' to list = the FAT content. You'll see there isn't any kernel image, FreeBSD images boot ubldr from U-Boot. ubldr then loads the kernel from UFS. It's easier to chain-load through FreeBSD=E2=80=99s loader than to teach U-Boot how to configure the FreeBSD kernel. ubldr is basically just FreeBSD=E2=80=99s loader(8) except that it is designed to boot from a system using U-Boot rather than a system running a PC BIOS. It knows how to read configuration files from UFS that can be used to load modules and otherwise configure the kernel before it boots. ubldr also knows how to read the kernel and FDT from UFS, which simplifies upgrades. (There are variations, of course. On RPi and RPi2, the FDT is actually read from FAT by the RPi firmware before U-Boot loads. The firmware adjusts the FDT which is then accessed at a known position in memory by U-Boot, ubldr, and the kernel.) Yes, this is different from other systems: U-Boot knows how to read e2fs and how to configure a Linux kernel, so an additional boot stage is unnecessary. Other systems forego boot-time configuration entirely. > the filenames are not in the "canonical" form, and I=E2=80=99m not sure what you mean by this. > (BB-)uEnv.txt is empty. An empty uEnv.txt is expected. You can put U-Boot commands there if you need to customize U-Boot operation. Most people don=E2=80=99t. If it=E2=80=99s missing, then U-Boot prints some warnings, so = distributions typically put an empty file there. Tim From owner-freebsd-arm@freebsd.org Tue Jul 14 20:50:04 2015 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 9AB6E9A1799 for ; Tue, 14 Jul 2015 20:50:04 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (jenkins-9.freebsd.org [8.8.178.209]) by mx1.freebsd.org (Postfix) with ESMTP id 8927D228C; Tue, 14 Jul 2015 20:50:04 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (localhost [127.0.0.1]) by jenkins-9.freebsd.org (Postfix) with ESMTP id 4A236A80; Tue, 14 Jul 2015 20:50:04 +0000 (UTC) Date: Tue, 14 Jul 2015 20:50:01 +0000 (GMT) From: jenkins-admin@FreeBSD.org To: markj@FreeBSD.org, bapt@FreeBSD.org, markm@FreeBSD.org, ed@FreeBSD.org, joel@FreeBSD.org, andrew@FreeBSD.org, allanjude@FreeBSD.org, jenkins-admin@FreeBSD.org, freebsd-arm@FreeBSD.org Message-ID: <548554636.46.1436907004272.JavaMail.jenkins@jenkins-9.freebsd.org> Subject: FreeBSD_HEAD_arm64 - Build #598 - Failure MIME-Version: 1.0 X-Jenkins-Job: FreeBSD_HEAD_arm64 X-Jenkins-Result: FAILURE Precedence: bulk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 20:50:04 -0000 FreeBSD_HEAD_arm64 - Build #598 - Failure: Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/598/ Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/598/changes Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/598/console Change summaries: 285556 by joel: mdoc: minor Xr fixes 285555 by joel: mdoc: add missing .El 285554 by allanjude: Set a mountpoint on the root of the pool so user-created datasets have a mountpoint to inherit Reviewed by: darius Approved by: brueffer MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3063 285553 by allanjude: Have bsdinstall's zfsboot script make /var/audit its own dataset, so it is not part of the OS boot environment PR: 199864 Submitted by: Jason Unovitch Approved by: brueffer MFC after: 3 days Relnotes: yes Differential Revision: https://reviews.freebsd.org/D2861 285552 by bapt: Convert atoi(3) to stronum(3) which allows to arguments and report proper errors to the users Obtained from: OpenBSD 285551 by andrew: Also accept "ok" to enable a device, some vendor device trees use this when they mean "okay" 285550 by markm: Widen the host field so that a full IPv6 address will be seen. 285549 by ed: Implement the CloudABI random_get() system call. The random_get() system call works similar to getentropy()/getrandom() on OpenBSD/Linux. It fills a buffer with random data. This change introduces a new function, read_random_uio(), that is used to implement read() on the random devices. We can call into this function from within the CloudABI compatibility layer. Approved by: secteam Reviewed by: jmg, markm, wblock Obtained from: https://github.com/NuxiNL/freebsd Differential Revision: https://reviews.freebsd.org/D3053 285548 by markj: Fix some error-handling bugs when core dump compression is enabled: - Ensure that core dump parameters are initialized in the error path. - Don't call gzio_fini() on a NULL stream. Reported by: rpaulo The end of the build log: [...truncated 141680 lines...] cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/audit/bsm_errno.c --- bsm_fcntl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/audit/bsm_fcntl.c --- bsm_socket_type.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/audit/bsm_socket_type.c --- bsm_token.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/audit/bsm_token.c --- mac_framework.o --- --- mac_inet.o --- --- mac_framework.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_framework.c --- mac_inet.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_inet.c --- mac_inet6.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_inet6.c --- mac_label.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_label.c --- mac_net.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_net.c --- mac_posix_sem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_posix_sem.c --- mac_posix_shm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_posix_shm.c --- mac_priv.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_priv.c --- mac_socket.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_socket.c --- ffs_tables.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/ufs/ffs/ffs_tables.c --- default_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/default_pager.c --- device_pager.o --- --- phys_pager.o --- --- device_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/device_pager.c --- phys_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/phys_pager.c --- sg_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/sg_pager.c --- uma_core.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/uma_core.c --- uma_dbg.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/uma_dbg.c --- vm_glue.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_glue.c --- vm_init.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_init.c --- vm_kern.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_kern.c --- vm_meter.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_meter.c --- vm_phys.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_phys.c --- vm_radix.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_radix.c --- vm_reserv.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_reserv.c --- vm_domain.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_domain.c --- vm_unix.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_unix.c --- vm_zeroidle.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_zeroidle.c --- xdr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr.c --- xdr_array.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_array.c --- xdr_mbuf.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_mbuf.c --- xdr_mem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_mem.c --- xdr_reference.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_reference.c --- xdr_sizeof.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_sizeof.c --- devmap.o --- --- bcopy.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bcopy.c --- devmap.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm/arm/devmap.c --- bus_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bus_machdep.c --- bus_space_asm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bus_space_asm.S --- clock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/clock.c --- copystr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/copystr.c --- cpufunc_asm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/cpufunc_asm.S --- db_disasm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_disasm.c --- db_interface.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_interface.c --- db_trace.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_trace.c --- debug_monitor.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/debug_monitor.c --- dump_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/dump_machdep.c --- identcpu.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/identcpu.c --- in_cksum.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/in_cksum.c --- mem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/mem.c --- minidump_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/minidump_machdep.c --- stack_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/stack_machdep.c --- sys_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/sys_machdep.c --- trap.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/trap.c --- uio_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/uio_machdep.c --- unwind.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/unwind.c --- vfp.o --- --- vm_machdep.o --- --- vfp.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/vfp.c --- vm_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/vm_machdep.c --- bf_enc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/crypto/blowfish/bf_enc.c --- des_enc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/crypto/des/des_enc.c --- psci_arm64.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/psci/psci_arm64.S --- subr_dummy_vdso_tc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/subr_dummy_vdso_tc.c --- bcmp.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/bcmp.c --- ffs.o --- --- ffsl.o --- --- ffs.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/ffs.c --- ffsl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/ffsl.c --- fls.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/fls.c --- flsl.o --- --- flsll.o --- --- flsl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/flsl.c --- flsll.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/flsll.c --- memmove.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/memmove.c --- memset.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/memset.c --- config.o --- --- env.o --- --- config.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror config.c --- env.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror env.c --- hints.o --- --- null.o --- --- hints.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror hints.c --- null.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/null/null.c --- randomdev.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/random/randomdev.c --- uart_subr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/uart/uart_subr.c --- if_vtnet.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/network/if_vtnet.c --- randomdev.o --- /usr/src/sys/dev/random/randomdev.c:171:7: error: use of undeclared identifier 'flags'; did you mean 'labs'? if (flags & O_NONBLOCK) { ^~~~~ labs /usr/src/sys/sys/libkern.h:70:22: note: 'labs' declared here static __inline long labs(long a) { return (a < 0 ? -a : a); } ^ /usr/src/sys/dev/random/randomdev.c:171:13: error: invalid operands to binary expression ('long (*)(long)' and 'int') if (flags & O_NONBLOCK) { ~~~~~ ^ ~~~~~~~~~~ 2 errors generated. *** [randomdev.o] Error code 1 make[2]: stopped in /usr/obj/arm64.aarch64/usr/src/sys/GENERIC 1 error make[2]: stopped in /usr/obj/arm64.aarch64/usr/src/sys/GENERIC *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildkernel] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src Build step 'Execute shell' marked build as failure [PostBuildScript] - Execution post build scripts. [FreeBSD_HEAD_arm64] $ /bin/sh -xe /tmp/hudson2202134756497857704.sh + export 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin' + export 'jname=FreeBSD_HEAD_arm64' + echo 'clean up jail FreeBSD_HEAD_arm64' clean up jail FreeBSD_HEAD_arm64 + sudo jail -r FreeBSD_HEAD_arm64 + sudo ifconfig igb0 inet6 2610:1c1:1:607c::104:1 -alias + sudo umount FreeBSD_HEAD_arm64/usr/src + sudo umount FreeBSD_HEAD_arm64/dev + sudo rm -fr FreeBSD_HEAD_arm64 rm: FreeBSD_HEAD_arm64/usr/lib32/libthr.so.3: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/librt.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libcrypt.so.5: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libc.so.7: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32: Directory not empty rm: FreeBSD_HEAD_arm64/usr/lib/librt.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib: Directory not empty rm: FreeBSD_HEAD_arm64/usr/bin/ypchsh: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchfn: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/passwd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchpass: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chfn: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/su: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/opieinfo: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chsh: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/yppasswd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chpass: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/opiepasswd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/crontab: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/login: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin: Directory not empty rm: FreeBSD_HEAD_arm64/usr: Directory not empty rm: FreeBSD_HEAD_arm64/lib/libcrypt.so.5: Operation not permitted rm: FreeBSD_HEAD_arm64/lib/libc.so.7: Operation not permitted rm: FreeBSD_HEAD_arm64/lib/libthr.so.3: Operation not permitted rm: FreeBSD_HEAD_arm64/lib: Directory not empty rm: FreeBSD_HEAD_arm64/libexec/ld-elf.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/libexec/ld-elf32.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/libexec: Directory not empty rm: FreeBSD_HEAD_arm64/sbin/init: Operation not permitted rm: FreeBSD_HEAD_arm64/sbin: Directory not empty rm: FreeBSD_HEAD_arm64: Directory not empty + true + sudo chflags -R noschg FreeBSD_HEAD_arm64 + sudo rm -fr FreeBSD_HEAD_arm64 Email was triggered for: Failure - Any Sending email for trigger: Failure - Any From owner-freebsd-arm@freebsd.org Tue Jul 14 21:19:11 2015 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 8E3159A1FB2 for ; Tue, 14 Jul 2015 21:19:11 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (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 2B0761605 for ; Tue, 14 Jul 2015 21:19:11 +0000 (UTC) (envelope-from venture37@gmail.com) Received: by wiga1 with SMTP id a1so110981079wig.0 for ; Tue, 14 Jul 2015 14:19:09 -0700 (PDT) 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 :content-type; bh=SxJ1OxxGF6MZbB5SQV0AJmSXq3acIprwjvVDnEiBf4c=; b=FL5bMhbpS2WOpuUgjzZkmETm9PjYIfwPVSxdPBBpowBlmXQiplzX256h0pt/14c0F5 I96pW887toFW4L9NYCPdgv4J5PtqlHxb4VmarfAMVlHA7m3GidKUrRsDZ7OH5BTo6Xhb ZLCs9vAkHAaf0B6q0EfyPzw1f8zVs1ddtmHhcT3cY9zFSCfrXeUrYCz6ZoJrC42GFm1B /ZFGlGG/k3/teCryMGhbCCotWj11VVpZmjAzselPUKXp93eC1Y4UQj7tIF9o56bM7LvV u63Tan7x6B9mxbEX3tfXwEOJJnRYqLOjDwkaRHWbBSDiUZQJKuB8YSP0OPwC6K6NdpV+ tE3A== MIME-Version: 1.0 X-Received: by 10.180.92.162 with SMTP id cn2mr9047450wib.26.1436908749568; Tue, 14 Jul 2015 14:19:09 -0700 (PDT) Received: by 10.194.187.234 with HTTP; Tue, 14 Jul 2015 14:19:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 Jul 2015 22:19:09 +0100 Message-ID: Subject: Re: UFS support in uboot From: "Sevan / Venture37" To: freebsd-arm 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: Tue, 14 Jul 2015 21:19:11 -0000 On 9 March 2015 at 22:51, Sevan / Venture37 wrote: > Hi, > I remember a while back there was talk of getting patches resubmitted > to uboot so that it would support uboot natively, did anything come of > it? "support uboot natively" *sigh* I mean UFS! Answering back to my own post to make it easier to fish out again. "Remind me about this after 10.2 is done." - gjb https://lists.freebsd.org/pipermail/freebsd-arm/2014-February/007529.html Sevan / Venture37 From owner-freebsd-arm@freebsd.org Tue Jul 14 22:50:15 2015 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 7EB529A29AB for ; Tue, 14 Jul 2015 22:50:15 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (jenkins-9.freebsd.org [8.8.178.209]) by mx1.freebsd.org (Postfix) with ESMTP id 6EBC91493; Tue, 14 Jul 2015 22:50:15 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (localhost [127.0.0.1]) by jenkins-9.freebsd.org (Postfix) with ESMTP id 077AAAAA; Tue, 14 Jul 2015 22:50:16 +0000 (UTC) Date: Tue, 14 Jul 2015 22:50:15 +0000 (GMT) From: jenkins-admin@FreeBSD.org To: ed@FreeBSD.org, gjb@FreeBSD.org, allanjude@FreeBSD.org, jenkins-admin@FreeBSD.org, freebsd-arm@FreeBSD.org Message-ID: <73454434.50.1436914215990.JavaMail.jenkins@jenkins-9.freebsd.org> In-Reply-To: <548554636.46.1436907004272.JavaMail.jenkins@jenkins-9.freebsd.org> References: <548554636.46.1436907004272.JavaMail.jenkins@jenkins-9.freebsd.org> Subject: FreeBSD_HEAD_arm64 - Build #599 - Fixed MIME-Version: 1.0 X-Jenkins-Job: FreeBSD_HEAD_arm64 X-Jenkins-Result: SUCCESS Precedence: bulk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 22:50:15 -0000 FreeBSD_HEAD_arm64 - Build #599 - Fixed: Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/599/ Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/599/changes Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/599/console Change summaries: 285580 by gjb: Document r279824, dtb module for AM335x systems. Sponsored by: The FreeBSD Foundation 285579 by gjb: Document r278340, rpi.dtb installed into /boot/dtb for the Raspberry Pi by default. Sponsored by: The FreeBSD Foundation 285578 by gjb: Document r278338, rpi.dtb module. Sponsored by: The FreeBSD Foundation 285577 by gjb: Document r283514, sfxge(4) 7XXX-series NIC support. Add Solarflare Communications to sponsors.ent. Sponsored by: The FreeBSD Foundation 285576 by gjb: Document r282215, SIFTR kernel configuration option. Sponsored by: The FreeBSD Foundation 285575 by gjb: Document r281495, PAE_TABLES option. Sponsored by: The FreeBSD Foundation 285574 by gjb: Document r273849, timeo, actimeo, noac, proto mount_nfs(8) options. Sponsored by: The FreeBSD Foundation 285573 by ed: Fix the build after breaking it in r285549. I performed the commit on a different system as where I wrote the change. After pulling in the change from Phabricator, I didn't notice that a single chunk did not apply. Approved by: secteam (implicit, as intended change was approved) Pointy hat to: me 285566 by gjb: Reword the r282731 entry. Sponsored by: The FreeBSD Foundation 285565 by gjb: Document r279950, bzipfs support in EFI loader. Sponsored by: The FreeBSD Foundation 285564 by gjb: Document r282731, ubldr is relocatable. Sponsored by: The FreeBSD Foundation 285563 by gjb: Document r282727, support for booting relocatable kernels extended beyond non-EFI systems. Sponsored by: The FreeBSD Foundation 285562 by gjb: Document r277962, support for booting relocatable PowerPC kernels. Sponsored by: The FreeBSD Foundation 285561 by gjb: Document r277644, AUDMUX, SDMA, SSI support. Sponsored by: The FreeBSD Foundation 285560 by gjb: Document r268838, support for Toradex Apalis i.MX6 board. Sponsored by: The FreeBSD Foundation 285559 by gjb: Document r266943, r267390: Support for Exynos 5420 and SMP enabled by default. Sponsored by: The FreeBSD Foundation 285558 by gjb: Document r277042, support to poweroff the BeagleBone Black via shutdown(8) and poweroff(8) added. Sponsored by: The FreeBSD Foundation 285557 by allanjude: Make bsdinstall's zfsboot script align partitions to 4k/1m when the user requests it PR: 195174 Reviewed by: darius Approved by: brueffer MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3062 From owner-freebsd-arm@freebsd.org Wed Jul 15 00:12:51 2015 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 15DF29A1FA9 for ; Wed, 15 Jul 2015 00:12:51 +0000 (UTC) (envelope-from draymond@foxvalley.net) Received: from mail.FoxValley.net (mail.FoxValley.net [64.135.192.34]) by mx1.freebsd.org (Postfix) with SMTP id D016414B7 for ; Wed, 15 Jul 2015 00:12:49 +0000 (UTC) (envelope-from draymond@foxvalley.net) Received: (qmail 9832 invoked from network) for freebsd-arm@freebsd.org; 14 Jul 2015 19:06:09 -0500 Received: from 71-211-198-65.hlrn.qwest.net (HELO ?192.168.1.3?) (draymond@71.211.198.65) by mail.foxvalley.net with SMTP; 14 Jul 2015 19:06:09 -0500 Message-ID: <55A5A3F4.7040105@foxvalley.net> Date: Tue, 14 Jul 2015 18:06:12 -0600 From: Dan Raymond User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: SDHC errors during boot on RPi2 (11.0-CURRENT) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 00:12:51 -0000 Is anyone else getting these errors during every boot? I'm running r285346. sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== mmc0: CMD7 failed, RESULT: 1 mmcsd0: 31GB at mmc0 25.0MHz/4bit/65535-block From owner-freebsd-arm@freebsd.org Wed Jul 15 03:54:16 2015 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 7B7E999B719 for ; Wed, 15 Jul 2015 03:54:16 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter01.peakinternet.com (filter01.peakinternet.com [207.55.16.92]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C5E2153D for ; Wed, 15 Jul 2015 03:54:16 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter01.peakinternet.com ({e1c81c21-e4c4-4528-aa90-7a27869c545a}) via TCP (outbound) with ESMTPS id 20150715035409221_0000 for ; Tue, 14 Jul 2015 20:54:09 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id 29EA3114B06 for ; Tue, 14 Jul 2015 20:54:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 1DE0C114B02 for ; Tue, 14 Jul 2015 20:54:08 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KhQHxezjSz6d for ; Tue, 14 Jul 2015 20:54:08 -0700 (PDT) Received: from mailproxy-lb-05.peak.org (mailproxy-lb-05.peak.org [207.55.17.95]) by zmail-mta02.peak.org (Postfix) with ESMTP id DDDBF114AFF for ; Tue, 14 Jul 2015 20:54:07 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZFDlm-0000PW-Vh for freebsd-arm@freebsd.org; Tue, 14 Jul 2015 20:54:07 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: RPi won't boot 10.2-BETA1 -- SOLVED References: <87wpy41zjt.fsf@elk.localnet> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 14 Jul 2015 20:54:06 -0700 In-Reply-To: <87wpy41zjt.fsf@elk.localnet> (Carl Johnson's message of "Sun, 12 Jul 2015 20:55:50 -0700") Message-ID: <87y4iiyt29.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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: Wed, 15 Jul 2015 03:54:16 -0000 Carl Johnson writes: > I just tried to boot 10.2-BETA1 from a SD card, but it gives me a few > lines of messages, including 'unrecognized filesystem type'. I have > been running Linux on it and had run FreeBSD 10-STABLE from back in > January, so the Pi is running. > > I programmed the card from Linux using dd, and had already verified the > checksum. I verified that the FAT and UFS partitions appear valid on > the card, so I must be overlooking something. The following are the > messages on the screen when the system halted: > > In: serial > Out: lcd > Err: lcd > mbox: Timeout waiting for response > bcm2835: Could not set USB power state > Net: Net Initialization Skipped > No ethernet found. > ** Unrecognized filesystem type ** > Hit any key to stop autoboot: 0 > Booting from: mmc 0 ubldr > ** Unrecognized filesystem type ** > U-Boot> I bought a new microSDHC card and that card works. The new one is a 16GB SanDisk Ultra PLUS UHS-1 card in case anybody is keeping track. I had tried two different Class 4 cards that didn't work, so maybe the faster speed is necessary now, or maybe it is picky about brands. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Wed Jul 15 04:01:12 2015 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 049F499B8C4 for ; Wed, 15 Jul 2015 04:01:12 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E6D5D196D; Wed, 15 Jul 2015 04:01:11 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 69AED175F; Wed, 15 Jul 2015 04:01:11 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Wed, 15 Jul 2015 04:01:09 +0000 From: Glen Barber To: Carl Johnson Cc: freebsd-arm@freebsd.org Subject: Re: RPi won't boot 10.2-BETA1 -- SOLVED Message-ID: <20150715040109.GV15828@FreeBSD.org> References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DHfswzTG6eDt0nli" Content-Disposition: inline In-Reply-To: <87y4iiyt29.fsf@elk.localnet> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.23 (2014-03-12) 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: Wed, 15 Jul 2015 04:01:12 -0000 --DHfswzTG6eDt0nli Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 14, 2015 at 08:54:06PM -0700, Carl Johnson wrote: > I bought a new microSDHC card and that card works. The new one is a > 16GB SanDisk Ultra PLUS UHS-1 card in case anybody is keeping track. I > had tried two different Class 4 cards that didn't work, so maybe the > faster speed is necessary now, or maybe it is picky about brands. >=20 FWIW, I have a few class-10 cards that will absolutely not work, and a few class-4 cards that work perfectly fine. After getting my test setup working properly (cards that work, etc.), I looked into it a bit further, and it *seems* that all of my cards (except one class-10 card) out of about 12 different SD cards work fine with "normal data." Just an additional data point, although I realize it contradicts your findings. Glen --DHfswzTG6eDt0nli Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVpdsFAAoJEAMUWKVHj+KTMgcQAIrtB9xwvXlEWTInarRSqVg6 p4yJodzs3dmrqCv6JLXwfI6ebR5CmeJGaTNSrmY2EY4skEsvgRQPQ6PIat0eWUHR 3LZxPyGyNWvrdxtxbcj6tl7lBl0R4T0JEdQscbNITBb4YtXBT3XATuMOUwc4xmo5 xQiVKpVPAJzokGhmGzoe9dsr3H2M2b87mvoublbxSbu/wCpelOQ/PWMpEFAmpHAn SvYZ19DeJnV5TN9cipV8GZiY4tgR1ZIUeypFDGVTG6y3xpAo8jx6U27ztB9wynwS i2sCWf+N2+P3A2VwH3y5rEGuhCgWlZdbfsldtV4Ru16WygmGF8WwUDnih2UePYB6 2oFC1raSGxMiO1RcJ2eFKv6BiBvBK6xxiSBYVyzFQAhjPGbzdVkMl5axCcnOmyoS JTeIHAhtKXbBVaNYaFnz3B5s4RUCjRnbofxvTGahXGjYp3YR1lySJuq9I/FVgyam Cn6CYbuNPu2tO+cRDWRyEDc0caVxu2KaclbkFMBzirOTO0TlSFSjIdAUS+TWrIN9 m31+Gl3pfWGnsHoEeUvTjzppqEpl1olkeMyiNnJ9shY17vEWjwnwt2mF5BW02TYQ aSAfp+KFz34UCeWiDQFEznD0pfKN3smP+9chUblK6Adiot8GZp8vRoT/EAknF07P JBf7AZKziY4DMzKtnSpL =8L8L -----END PGP SIGNATURE----- --DHfswzTG6eDt0nli-- From owner-freebsd-arm@freebsd.org Wed Jul 15 05:26:38 2015 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 D509599C8B7 for ; Wed, 15 Jul 2015 05:26:38 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id B4BF7190A for ; Wed, 15 Jul 2015 05:26:38 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id AE259EF8C; Wed, 15 Jul 2015 05:26:38 +0000 (UTC) Date: Wed, 15 Jul 2015 05:26:38 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Commented On] D3034: Add BUS_UNMASK_INTR method Message-ID: X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWl7w4= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 05:26:38 -0000 wma_semihalf.com added a comment. I guess treating PPIs are separate IRQs number will cause a huge mess. I'm starting to port fbsd on 96 core armv8 platform and the idea of 1536 vectors wasted for PPIs is outrageous. My point in adding separate interface is to support multi-PIC systems. Calling BUS_UNMASK_INTR with an appropriate resource will allow to pick up the correct PIC controller in a generic way (as I looked into intrng last time it was capable of associating device with specific PIC). Adding the same code to timer driver might be really inelegant, thus require a static map either in the driver or in intr_machdep file. > The proposed bus_unmask_intr() cannot be used from outside of secondary CPUs startup context. It cannot be used for SPI, it cannot be used of PPI after scheduler is started on given core. Actually, I'm not quite sure I understand your point. Why cannot one use it for SPI (except it might not have a sense) or what the scheduler has to do with PPI? The only risk I see (in current implementation) is that someone calls unmask when irq is not configured. The freebsd also lacks the fine-grained interrupt blocking mechanism, like, for example, mask/unmask pair exported as bus interface (that would require adding mask call here also). I bet if you ever tried to write a driver for some queer and exotic piece of hardware you wished these functions existed, like in other OSes. Or at least I have... REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: onwahe-gmail-com, freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 06:45:39 2015 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 ADF459A28B8 for ; Wed, 15 Jul 2015 06:45:39 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA8D1E84 for ; Wed, 15 Jul 2015 06:45:39 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 7FB1BE351; Wed, 15 Jul 2015 06:45:39 +0000 (UTC) Date: Wed, 15 Jul 2015 06:45:39 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Request, 91 lines] D3093: ARMv8 locore.S cleanup and TCR register update Message-ID: X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAz Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_c5978e36b71369e40b76db68e6531fb9" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 06:45:39 -0000 --b1_c5978e36b71369e40b76db68e6531fb9 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: zbb, emaste, andrew. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY This commit adds proper cache and shareability attributes to the TCR registers. Set memory attributes to Normal, outer and inner cacheable WBWA. Set shareability to inner and outer shareable when SMP is enabled. Also a locore file was cleaned up: - build_block_pagetables have an additional parameter added (shareability attribute) to allow mapping memory with other SH ATTR chosen if one wants to do so (like device SOC_DEV or similar) Fixes in locore.s: - opt_kstack_pages.h include was added to ensure the proper KSTACK_PAGES value is used - secondary stack calculation is modified to provide stack_top = secondary_stacks + (cpu_id)*PAGE_SIZE*KSTACK_PAGES because on ARMv8 the stack grows into lower memory addresses REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3093 AFFECTED FILES sys/arm64/arm64/locore.S sys/arm64/include/armreg.h EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_c5978e36b71369e40b76db68e6531fb9 Content-Type: text/x-patch; charset=utf-8; name="D3093.6958.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3093.6958.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9pbmNsdWRlL2FybXJlZy5oIGIvc3lzL2FybTY0L2luY2x1 ZGUvYXJtcmVnLmgKLS0tIGEvc3lzL2FybTY0L2luY2x1ZGUvYXJtcmVnLmgKKysrIGIvc3lzL2Fy bTY0L2luY2x1ZGUvYXJtcmVnLmgKQEAgLTIwMCw2ICsyMDAsMjggQEAKICNkZWZpbmUJVENSX1RH MV80SwkoMiA8PCBUQ1JfVEcxX1NISUZUKQogI2RlZmluZQlUQ1JfVEcxXzY0SwkoMyA8PCBUQ1Jf VEcxX1NISUZUKQogCisjZGVmaW5lCVRDUl9TSDFfU0hJRlQJMjgKKyNkZWZpbmUJVENSX1NIMV9J UwkoMHgzVUwgPDwgVENSX1NIMV9TSElGVCkKKyNkZWZpbmUJVENSX09SR04xX1NISUZUCTI2Cisj ZGVmaW5lCVRDUl9PUkdOMV9XQldBCSgweDFVTCA8PCBUQ1JfT1JHTjFfU0hJRlQpCisjZGVmaW5l CVRDUl9JUkdOMV9TSElGVAkyNAorI2RlZmluZQlUQ1JfSVJHTjFfV0JXQQkoMHgxVUwgPDwgVENS X0lSR04xX1NISUZUKQorI2RlZmluZQlUQ1JfU0gwX1NISUZUCTEyCisjZGVmaW5lCVRDUl9TSDBf SVMJKDB4M1VMIDw8IFRDUl9TSDBfU0hJRlQpCisjZGVmaW5lCVRDUl9PUkdOMF9TSElGVAkxMAor I2RlZmluZQlUQ1JfT1JHTjBfV0JXQQkoMHgxVUwgPDwgVENSX09SR04wX1NISUZUKQorI2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d.org Wed Jul 15 06:47:45 2015 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 85BA99A28D4 for ; Wed, 15 Jul 2015 06:47:45 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 385F61082 for ; Wed, 15 Jul 2015 06:47:45 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id E3103E45E; Wed, 15 Jul 2015 06:47:44 +0000 (UTC) Date: Wed, 15 Jul 2015 06:47:44 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3009+327+e1fd0ca814329cfb@FreeBSD.org Subject: [Differential] [Changed Subscribers] D3009: Add MSI-x support to AHCI driver Message-ID: X-Priority: 3 Thread-Topic: D3009: Add MSI-x support to AHCI driver X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ODRjZmU3ZjM0YmRkYWRjYjdmNDlhOTk2NzE1IFWmAhA= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 06:47:45 -0000 wma_semihalf.com added a subscriber: freebsd-arm-list. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3009 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, mav, jhb Cc: freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 06:55:22 2015 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 75BFB9A2A7B for ; Wed, 15 Jul 2015 06:55:22 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB2018BE for ; Wed, 15 Jul 2015 06:55:22 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 0AEB2E810; Wed, 15 Jul 2015 06:55:22 +0000 (UTC) Date: Wed, 15 Jul 2015 06:55:22 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3009+327+e1fd0ca814329cfb@FreeBSD.org Subject: [Differential] [Commented On] D3009: Add MSI-x support to AHCI driver Message-ID: <0388b2fe3b9e1740f2dd084eb53dc6ef@localhost.localdomain> X-Priority: 3 Thread-Topic: D3009: Add MSI-x support to AHCI driver X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ODRjZmU3ZjM0YmRkYWRjYjdmNDlhOTk2NzE1IFWmA9o= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 06:55:22 -0000 wma_semihalf.com added a comment. Please give any feedback. We'd like to submit it next week if no other objections are reported. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3009 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, mav, jhb Cc: freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 07:36:13 2015 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 A849F9A21FD for ; Wed, 15 Jul 2015 07:36:13 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 902FF1DF3 for ; Wed, 15 Jul 2015 07:36:13 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 80D8DEE37; Wed, 15 Jul 2015 07:36:13 +0000 (UTC) Date: Wed, 15 Jul 2015 07:36:13 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Request, 12 lines] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdh Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_02e5a17ed84b5a608dd9cd36c9fbabff" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 07:36:13 -0000 --b1_02e5a17ed84b5a608dd9cd36c9fbabff Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: emaste, andrew, zbb. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY If KSTACK_PAGES was changed to anything alse than the default, the value from param.h was taken instead. Ensure all places where KSTACK_PAGES are used the opt_kstack_pages.h is included. The issue with wrong stack size is very hard to debug, so author desided to remove default to unhide any potential code errors. From now, each time one use KSTACK_PAGES the proper file must be included as well or the compile will generate an error. The default was moved to GENERIC config instead. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 AFFECTED FILES sys/arm64/arm64/locore.S sys/arm64/arm64/mp_machdep.c sys/arm64/arm64/swtch.S sys/arm64/conf/GENERIC sys/arm64/include/param.h sys/ddb/db_ps.c sys/ddb/db_sym.c CHANGE DETAILS diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -31,6 +31,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include #include diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -30,6 +30,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include #include diff --git a/sys/arm64/include/param.h b/sys/arm64/include/param.h --- a/sys/arm64/include/param.h +++ b/sys/arm64/include/param.h @@ -92,10 +92,6 @@ #define MAXPAGESIZES 1 /* maximum number of supported page sizes */ -#ifndef KSTACK_PAGES -#define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ -#endif - #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define PCPU_PAGES 1 diff --git a/sys/arm64/conf/GENERIC b/sys/arm64/conf/GENERIC --- a/sys/arm64/conf/GENERIC +++ b/sys/arm64/conf/GENERIC @@ -70,6 +70,7 @@ options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default options RCTL # Resource limits options SMP +options KSTACK_PAGES=4 # Debugging support. Always need this: options KDB # Enable kernel debugger support. diff --git a/sys/arm64/arm64/swtch.S b/sys/arm64/arm64/swtch.S --- a/sys/arm64/arm64/swtch.S +++ b/sys/arm64/arm64/swtch.S @@ -30,6 +30,7 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" #include "opt_sched.h" #include diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c --- a/sys/arm64/arm64/mp_machdep.c +++ b/sys/arm64/arm64/mp_machdep.c @@ -29,6 +29,7 @@ */ #include "opt_platform.h" +#include "opt_kstack_pages.h" #include __FBSDID("$FreeBSD$"); diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -27,6 +27,7 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" #include #include #include EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, andrew, zbb Cc: imp, andrew, freebsd-arm-list, emaste --b1_02e5a17ed84b5a608dd9cd36c9fbabff Content-Type: text/x-patch; charset=utf-8; name="D3094.6960.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3094.6960.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZGIvZGJfc3ltLmMgYi9zeXMvZGRiL2RiX3N5bS5jCi0tLSBhL3N5 cy9kZGIvZGJfc3ltLmMKKysrIGIvc3lzL2RkYi9kYl9zeW0uYwpAQCAtMzEsNiArMzEsOCBAQAog I2luY2x1ZGUgPHN5cy9jZGVmcy5oPgogX19GQlNESUQoIiRGcmVlQlNEJCIpOwogCisjaW5jbHVk ZSAib3B0X2tzdGFja19wYWdlcy5oIgorCiAjaW5jbHVkZSA8c3lzL3BhcmFtLmg+CiAjaW5jbHVk ZSA8c3lzL3BjcHUuaD4KICNpbmNsdWRlIDxzeXMvc21wLmg+CmRpZmYgLS1naXQgYS9zeXMvZGRi L2RiX3BzLmMgYi9zeXMvZGRiL2RiX3BzLmMKLS0tIGEvc3lzL2RkYi9kYl9wcy5jCisrKyBiL3N5 cy9kZGIvZGJfcHMuYwpAQCAtMzAsNiArMzAsOCBAQAogI2luY2x1ZGUgPHN5cy9jZGVmcy5oPgog X19GQlNESUQoIiRGcmVlQlNEJCIpOwogCisjaW5jbHVkZSAib3B0X2tzdGFja19wYWdlcy5oIgor CiAjaW5jbHVkZSA8c3lzL3BhcmFtLmg+CiAjaW5jbHVkZSA8c3lzL2NvbnMuaD4KICNpbmNsdWRl IDxzeXMvamFpbC5oPgpkaWZmIC0tZ2l0IGEvc3lzL2FybTY0L2luY2x1ZGUvcGFyYW0uaCBiL3N5 cy9hcm02NC9pbmNsdWRlL3BhcmFtLmgKLS0tIGEvc3lzL2FybTY0L2luY2x1ZGUvcGFyYW0uaAor KysgYi9zeXMvYXJtNjQvaW5jbHVkZS9wYXJhbS5oCkBAIC05MiwxMCArOTIsNiBAQAogCiAjZGVm aW5lCU1BWFBBR0VTSVpFUwkxCQkvKiBtYXhpbXVtIG51bWJlciBvZiBzdXBwb3J0ZWQgcGFnZSBz aXplcyAqLwogCi0jaWZuZGVm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uaD4KZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02 NC9tcF9tYWNoZGVwLmMgYi9zeXMvYXJtNjQvYXJtNjQvbXBfbWFjaGRlcC5jCi0tLSBhL3N5cy9h cm02NC9hcm02NC9tcF9tYWNoZGVwLmMKKysrIGIvc3lzL2FybTY0L2FybTY0L21wX21hY2hkZXAu YwpAQCAtMjksNiArMjksNyBAQAogICovCiAKICNpbmNsdWRlICJvcHRfcGxhdGZvcm0uaCIKKyNp bmNsdWRlICJvcHRfa3N0YWNrX3BhZ2VzLmgiCiAKICNpbmNsdWRlIDxzeXMvY2RlZnMuaD4KIF9f RkJTRElEKCIkRnJlZUJTRCQiKTsKZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9sb2NvcmUu UyBiL3N5cy9hcm02NC9hcm02NC9sb2NvcmUuUwotLS0gYS9zeXMvYXJtNjQvYXJtNjQvbG9jb3Jl LlMKKysrIGIvc3lzL2FybTY0L2FybTY0L2xvY29yZS5TCkBAIC0yNyw2ICsyNyw3IEBACiAgKi8K IAogI2luY2x1ZGUgImFzc3ltLnMiCisjaW5jbHVkZSAib3B0X2tzdGFja19wYWdlcy5oIgogI2lu Y2x1ZGUgPHN5cy9zeXNjYWxsLmg+CiAjaW5jbHVkZSA8bWFjaGluZS9hc20uaD4KICNpbmNsdWRl IDxtYWNoaW5lL2FybXJlZy5oPgoK --b1_02e5a17ed84b5a608dd9cd36c9fbabff-- From owner-freebsd-arm@freebsd.org Wed Jul 15 07:36:53 2015 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 A48D19A2217 for ; Wed, 15 Jul 2015 07:36:53 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB7D1E45 for ; Wed, 15 Jul 2015 07:36:53 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 7F360EE8C; Wed, 15 Jul 2015 07:36:53 +0000 (UTC) Date: Wed, 15 Jul 2015 07:36:53 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Updated] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWmDZU= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 07:36:53 -0000 wma_semihalf.com updated the summary for this revision. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, andrew, zbb Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 07:48:03 2015 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 48F9A9A2416 for ; Wed, 15 Jul 2015 07:48:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 2E01C1623 for ; Wed, 15 Jul 2015 07:48:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 1C5ECE3C8; Wed, 15 Jul 2015 07:48:03 +0000 (UTC) Date: Wed, 15 Jul 2015 07:48:03 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3095+327+6dc882db4fe57193@FreeBSD.org Subject: [Differential] [Request, 7 lines] D3095: Add identify_cpu to ARMv8 init_secondary routine Message-ID: X-Priority: 3 Thread-Topic: D3095: Add identify_cpu to ARMv8 init_secondary routine X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: NDAyNDhmYzQyZTUyMzNjYjI0N2VlZGE3MmQ3 Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_33f3fa933c5921e896784d4274b7e942" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 07:48:03 -0000 --b1_33f3fa933c5921e896784d4274b7e942 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: emaste, andrew, zbb. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY Identify current CPU. This is necessary to setup affinity structures and to provide support for runtime chip identification. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3095 AFFECTED FILES sys/arm64/arm64/mp_machdep.c CHANGE DETAILS diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c --- a/sys/arm64/arm64/mp_machdep.c +++ b/sys/arm64/arm64/mp_machdep.c @@ -229,6 +229,13 @@ pcpup->pc_curthread = pcpup->pc_idlethread; pcpup->pc_curpcb = pcpup->pc_idlethread->td_pcb; + /* + * Identify current CPU. This is necessary to setup + * affinity registers and to provide support for + * runtime chip identification. + */ + identify_cpu(); + /* Configure the interrupt controller */ arm_init_secondary(); EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, andrew, zbb Cc: imp, andrew, freebsd-arm-list, emaste --b1_33f3fa933c5921e896784d4274b7e942 Content-Type: text/x-patch; charset=utf-8; name="D3095.6961.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3095.6961.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9tcF9tYWNoZGVwLmMgYi9zeXMvYXJtNjQvYXJt NjQvbXBfbWFjaGRlcC5jCi0tLSBhL3N5cy9hcm02NC9hcm02NC9tcF9tYWNoZGVwLmMKKysrIGIv c3lzL2FybTY0L2FybTY0L21wX21hY2hkZXAuYwpAQCAtMjI5LDYgKzIyOSwxMyBAQAogCXBjcHVw LT5wY19jdXJ0aHJlYWQgPSBwY3B1cC0+cGNfaWRsZXRocmVhZDsKIAlwY3B1cC0+cGNfY3VycGNi ID0gcGNwdXAtPnBjX2lkbGV0aHJlYWQtPnRkX3BjYjsKIAorCS8qCisJICogSWRlbnRpZnkgY3Vy cmVudCBDUFUuIFRoaXMgaXMgbmVjZXNzYXJ5IHRvIHNldHVwCisJICogYWZmaW5pdHkgcmVnaXN0 ZXJzIGFuZCB0byBwcm92aWRlIHN1cHBvcnQgZm9yCisJICogcnVudGltZSBjaGlwIGlkZW50aWZp Y2F0aW9uLgorCSAqLworCWlkZW50aWZ5X2NwdSgpOworCiAJLyogQ29uZmlndXJlIHRoZSBpbnRl cnJ1cHQgY29udHJvbGxlciAqLwogCWFybV9pbml0X3NlY29uZGFyeSgpOwogCgo= --b1_33f3fa933c5921e896784d4274b7e942-- From owner-freebsd-arm@freebsd.org Wed Jul 15 08:35:37 2015 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 DE3459A2EAF for ; Wed, 15 Jul 2015 08:35:37 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id C52871E27 for ; Wed, 15 Jul 2015 08:35:37 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id AE012E97E; Wed, 15 Jul 2015 08:35:37 +0000 (UTC) Date: Wed, 15 Jul 2015 08:35:37 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3095+327+6dc882db4fe57193@FreeBSD.org Subject: [Differential] [Accepted] D3095: Add identify_cpu to ARMv8 init_secondary routine Message-ID: X-Priority: 3 Thread-Topic: D3095: Add identify_cpu to ARMv8 init_secondary routine X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: NDAyNDhmYzQyZTUyMzNjYjI0N2VlZGE3MmQ3IFWmG1k= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 08:35:38 -0000 andrew accepted this revision. This revision has a positive review. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3095 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 08:55:31 2015 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 10C9399C2B4 for ; Wed, 15 Jul 2015 08:55:31 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id E75961BAC for ; Wed, 15 Jul 2015 08:55:30 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id E271EE1F5; Wed, 15 Jul 2015 08:55:30 +0000 (UTC) Date: Wed, 15 Jul 2015 08:55:30 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Updated] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: <167850e465197a5f5992cc784b43ba00@localhost.localdomain> X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWmIAI= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 08:55:31 -0000 andrew added a comment. The parts of this change to add the missing includes are good, I'm not convinced about the change to GENERIC and params.h. INLINE COMMENTS sys/arm64/include/param.h:98 You will need a stronger argument as to why we should do this differently to other architectures. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 08:59:05 2015 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 6F83799C331 for ; Wed, 15 Jul 2015 08:59:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 58FC71C2D for ; Wed, 15 Jul 2015 08:59:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 541ECE331; Wed, 15 Jul 2015 08:59:05 +0000 (UTC) Date: Wed, 15 Jul 2015 08:59:05 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Updated] D3093: ARMv8 locore.S cleanup and TCR register update Message-ID: X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWmINk= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 08:59:05 -0000 andrew added a comment. Why do you need to pass in the shareability attribute? It's needed for notmal memory, and ignored in device memory so we can add it unconditionally. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3093 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 09:15:04 2015 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 0D69399CAF3 for ; Wed, 15 Jul 2015 09:15:04 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id E458215F7 for ; Wed, 15 Jul 2015 09:15:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id D578DECE8; Wed, 15 Jul 2015 09:15:03 +0000 (UTC) Date: Wed, 15 Jul 2015 09:15:03 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Updated, 36 lines] D3093: ARMv8 locore.S cleanup and TCR register update Message-ID: <9f87ed71ec84b4a79f9c3137dbc0ea95@localhost.localdomain> X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWmJJc= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_9f87ed71ec84b4a79f9c3137dbc0ea95" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 09:15:04 -0000 --b1_9f87ed71ec84b4a79f9c3137dbc0ea95 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com updated the summary for this revision. wma_semihalf.com updated this revision to Diff 6962. wma_semihalf.com added a comment. Agreed. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3093?vs=6958&id=6962 REVISION DETAIL https://reviews.freebsd.org/D3093 AFFECTED FILES sys/arm64/arm64/locore.S sys/arm64/include/armreg.h CHANGE DETAILS diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -200,6 +200,28 @@ #define TCR_TG1_4K (2 << TCR_TG1_SHIFT) #define TCR_TG1_64K (3 << TCR_TG1_SHIFT) +#define TCR_SH1_SHIFT 28 +#define TCR_SH1_IS (0x3UL << TCR_SH1_SHIFT) +#define TCR_ORGN1_SHIFT 26 +#define TCR_ORGN1_WBWA (0x1UL << TCR_ORGN1_SHIFT) +#define TCR_IRGN1_SHIFT 24 +#define TCR_IRGN1_WBWA (0x1UL << TCR_IRGN1_SHIFT) +#define TCR_SH0_SHIFT 12 +#define TCR_SH0_IS (0x3UL << TCR_SH0_SHIFT) +#define TCR_ORGN0_SHIFT 10 +#define TCR_ORGN0_WBWA (0x1UL << TCR_ORGN0_SHIFT) +#define TCR_IRGN0_SHIFT 8 +#define TCR_IRGN0_WBWA (0x1UL << TCR_IRGN0_SHIFT) + +#define TCR_CACHE_ATTRS ((TCR_IRGN0_WBWA | TCR_IRGN1_WBWA) |\ + (TCR_ORGN0_WBWA | TCR_ORGN1_WBWA)) + +#ifdef SMP +#define TCR_SMP_ATTRS (TCR_SH0_IS | TCR_SH1_IS) +#else +#define TCR_SMP_ATTRS 0 +#endif + #define TCR_T1SZ_SHIFT 16 #define TCR_T0SZ_SHIFT 0 #define TCR_TxSZ(x) (((x) << TCR_T1SZ_SHIFT) | ((x) << TCR_T0SZ_SHIFT)) diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -27,6 +27,8 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" + #include #include #include @@ -43,6 +45,12 @@ #define NORMAL_UNCACHED 1 #define NORMAL_MEM 2 +#ifdef SMP +#define SHAREABILITY ATTR_SH(ATTR_SH_IS) +#else +#define SHAREABILITY 0 +#endif + /* * We assume: * MMU on with an identity map, or off @@ -180,8 +188,7 @@ mp_virtdone: ldr x4, =secondary_stacks mov x5, #(PAGE_SIZE * KSTACK_PAGES) - sub x1, x0, #1 - mul x5, x1, x5 + mul x5, x0, x5 add sp, x4, x5 b init_secondary @@ -535,7 +542,8 @@ /* Device Normal, no cache Normal, write-back */ .quad MAIR_ATTR(0x00, 0) | MAIR_ATTR(0x44, 1) | MAIR_ATTR(0xff, 2) tcr: - .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K) + .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K | \ + TCR_CACHE_ATTRS | TCR_SMP_ATTRS) sctlr_set: /* Bits to set */ .quad (SCTLR_UCI | SCTLR_nTWE | SCTLR_nTWI | SCTLR_UCT | SCTLR_DZE | \ EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_9f87ed71ec84b4a79f9c3137dbc0ea95 Content-Type: text/x-patch; charset=utf-8; name="D3093.6962.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3093.6962.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9pbmNsdWRlL2FybXJlZy5oIGIvc3lzL2FybTY0L2luY2x1 ZGUvYXJtcmVnLmgKLS0tIGEvc3lzL2FybTY0L2luY2x1ZGUvYXJtcmVnLmgKKysrIGIvc3lzL2Fy bTY0L2luY2x1ZGUvYXJtcmVnLmgKQEAgLTIwMC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gKzU0Miw4IEBACiAJCS8qIERl dmljZSAgICAgICAgICAgIE5vcm1hbCwgbm8gY2FjaGUgICAgIE5vcm1hbCwgd3JpdGUtYmFjayAq LwogCS5xdWFkCU1BSVJfQVRUUigweDAwLCAwKSB8IE1BSVJfQVRUUigweDQ0LCAxKSB8IE1BSVJf QVRUUigweGZmLCAyKQogdGNyOgotCS5xdWFkIChUQ1JfVHhTWig2NCAtIFZJUlRfQklUUykgfCBU Q1JfQVNJRF8xNiB8IFRDUl9URzFfNEspCisJLnF1YWQgKFRDUl9UeFNaKDY0IC0gVklSVF9CSVRT KSB8IFRDUl9BU0lEXzE2IHwgVENSX1RHMV80SyB8IFwKKwkgICAgVENSX0NBQ0hFX0FUVFJTIHwg VENSX1NNUF9BVFRSUykKIHNjdGxyX3NldDoKIAkvKiBCaXRzIHRvIHNldCAqLwogCS5xdWFkIChT Q1RMUl9VQ0kgfCBTQ1RMUl9uVFdFIHwgU0NUTFJfblRXSSB8IFNDVExSX1VDVCB8IFNDVExSX0Ra RSB8IFwKCg== --b1_9f87ed71ec84b4a79f9c3137dbc0ea95-- From owner-freebsd-arm@freebsd.org Wed Jul 15 09:25:05 2015 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 5543D9A1033 for ; Wed, 15 Jul 2015 09:25:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCDA1CCE for ; Wed, 15 Jul 2015 09:25:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 2E224E240; Wed, 15 Jul 2015 09:25:05 +0000 (UTC) Date: Wed, 15 Jul 2015 09:25:05 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3095+327+6dc882db4fe57193@FreeBSD.org Subject: [Differential] [Closed] D3095: Add identify_cpu to ARMv8 init_secondary routine Message-ID: <59ca74d4d6e5e89d21e9973dfdfb6a90@localhost.localdomain> X-Priority: 3 Thread-Topic: D3095: Add identify_cpu to ARMv8 init_secondary routine X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: NDAyNDhmYzQyZTUyMzNjYjI0N2VlZGE3MmQ3IFWmJvE= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_59ca74d4d6e5e89d21e9973dfdfb6a90" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 09:25:05 -0000 --b1_59ca74d4d6e5e89d21e9973dfdfb6a90 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285597: Add identify_cpu() to ARM64 init_secondary routine (authored by zbb). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D3095?vs=6961&id=6963#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3095?vs=6961&id=6963 REVISION DETAIL https://reviews.freebsd.org/D3095 AFFECTED FILES head/sys/arm64/arm64/mp_machdep.c CHANGE DETAILS diff --git a/head/sys/arm64/arm64/mp_machdep.c b/head/sys/arm64/arm64/mp_machdep.c --- a/head/sys/arm64/arm64/mp_machdep.c +++ b/head/sys/arm64/arm64/mp_machdep.c @@ -229,6 +229,13 @@ pcpup->pc_curthread = pcpup->pc_idlethread; pcpup->pc_curpcb = pcpup->pc_idlethread->td_pcb; + /* + * Identify current CPU. This is necessary to setup + * affinity registers and to provide support for + * runtime chip identification. + */ + identify_cpu(); + /* Configure the interrupt controller */ arm_init_secondary(); EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_59ca74d4d6e5e89d21e9973dfdfb6a90 Content-Type: text/x-patch; charset=utf-8; name="D3095.6963.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3095.6963.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2FybTY0L2FybTY0L21wX21hY2hkZXAuYyBiL2hlYWQvc3lz L2FybTY0L2FybTY0L21wX21hY2hkZXAuYwotLS0gYS9oZWFkL3N5cy9hcm02NC9hcm02NC9tcF9t YWNoZGVwLmMKKysrIGIvaGVhZC9zeXMvYXJtNjQvYXJtNjQvbXBfbWFjaGRlcC5jCkBAIC0yMjks NiArMjI5LDEzIEBACiAJcGNwdXAtPnBjX2N1cnRocmVhZCA9IHBjcHVwLT5wY19pZGxldGhyZWFk OwogCXBjcHVwLT5wY19jdXJwY2IgPSBwY3B1cC0+cGNfaWRsZXRocmVhZC0+dGRfcGNiOwogCisJ LyoKKwkgKiBJZGVudGlmeSBjdXJyZW50IENQVS4gVGhpcyBpcyBuZWNlc3NhcnkgdG8gc2V0dXAK KwkgKiBhZmZpbml0eSByZWdpc3RlcnMgYW5kIHRvIHByb3ZpZGUgc3VwcG9ydCBmb3IKKwkgKiBy dW50aW1lIGNoaXAgaWRlbnRpZmljYXRpb24uCisJICovCisJaWRlbnRpZnlfY3B1KCk7CisKIAkv KiBDb25maWd1cmUgdGhlIGludGVycnVwdCBjb250cm9sbGVyICovCiAJYXJtX2luaXRfc2Vjb25k YXJ5KCk7CiAKCg== --b1_59ca74d4d6e5e89d21e9973dfdfb6a90-- From owner-freebsd-arm@freebsd.org Wed Jul 15 09:26:59 2015 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 491D89A1066 for ; Wed, 15 Jul 2015 09:26:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 2EA101D3E for ; Wed, 15 Jul 2015 09:26:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 2B61CE2FD; Wed, 15 Jul 2015 09:26:59 +0000 (UTC) Date: Wed, 15 Jul 2015 09:26:59 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Commented On] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWmJ2M= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 09:26:59 -0000 wma_semihalf.com added inline comments. INLINE COMMENTS sys/arm64/include/param.h:98 Hm... isn't the argument about error vulnerability good enough? I'm pretty sure that sooner or later, when someone creates new file which uses KSTACK_PAGES he looks where is defined and includes forgetting about prior including of "opt_kstack_pages.h" (*). In that case the default value will be used regardless of the one set up in KERNCONF. The compiler won't show even slightest indication of an error and the bug will appear in the most unpredictable place. I remember how much time took to find this bug, because errors it caused were at the first look completely unrelated to anything. If we really want to have armv8 the tier1 architecture, I'd like to remove this piece of code because is dangerous. (*) All armv8 machdep files are the perfect example of that situation. The code was copied from armv7 (where I think that KSTACK_PAGES doesn't work either, but no one ever tried to change the default) and the bug propagated. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 10:07:21 2015 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 113F09A1708 for ; Wed, 15 Jul 2015 10:07:21 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id F1B851E09 for ; Wed, 15 Jul 2015 10:07:20 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id EAFFBEDBD; Wed, 15 Jul 2015 10:07:20 +0000 (UTC) Date: Wed, 15 Jul 2015 10:07:20 +0000 To: freebsd-arm@freebsd.org From: "mav (Alexander Motin)" Reply-to: D3009+327+e1fd0ca814329cfb@FreeBSD.org Subject: [Differential] [Commented On] D3009: Add MSI-x support to AHCI driver Message-ID: <06cca6273b0f5ca009a452e2800f069e@localhost.localdomain> X-Priority: 3 Thread-Topic: D3009: Add MSI-x support to AHCI driver X-Herald-Rules: <28> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ODRjZmU3ZjM0YmRkYWRjYjdmNDlhOTk2NzE1IFWmMNg= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 10:07:21 -0000 mav added a comment. It looks better to me, though John's comment would be good to have. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3009 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, mav, jhb Cc: freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 10:41:02 2015 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 CFAE19A1D6B for ; Wed, 15 Jul 2015 10:41:02 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id BA7901CF4 for ; Wed, 15 Jul 2015 10:41:02 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id B544CEC97; Wed, 15 Jul 2015 10:41:02 +0000 (UTC) Date: Wed, 15 Jul 2015 10:41:02 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Commented On] D3093: ARMv8 locore.S cleanup and TCR register update Message-ID: <3c9f1eddfca8222de1cd25087bece5f3@localhost.localdomain> X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWmOL4= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 10:41:02 -0000 andrew added inline comments. INLINE COMMENTS sys/arm64/arm64/locore.S:48-52 Is this still needed? sys/arm64/arm64/locore.S:191 This looks to be unrelated to the rest of the change. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3093 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 10:47:21 2015 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 BBD489A1ECE for ; Wed, 15 Jul 2015 10:47:21 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id A33291F1D for ; Wed, 15 Jul 2015 10:47:21 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 92284EED3; Wed, 15 Jul 2015 10:47:21 +0000 (UTC) Date: Wed, 15 Jul 2015 10:47:21 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Commented On] D3093: ARMv8 locore.S cleanup and TCR register update Message-ID: <7c48c367946946db0109fa5f94d00c59@localhost.localdomain> X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWmOjk= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 10:47:21 -0000 wma_semihalf.com added inline comments. INLINE COMMENTS sys/arm64/arm64/locore.S:48-52 You're right, I'll remove it prior submitting. sys/arm64/arm64/locore.S:191 It's the part of locore fixes described in the patch summary > - secondary stack calculation is modified to provide > stack_top = secondary_stacks + (cpu_id)*PAGE_SIZE*KSTACK_PAGES > because on ARMv8 the stack grows into lower memory addresses Please let me know if I should split this patch into two (include+stack and TCR reg) or leave as a one. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3093 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 11:11:57 2015 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 387009A243D for ; Wed, 15 Jul 2015 11:11:57 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 23F451DCE for ; Wed, 15 Jul 2015 11:11:57 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 1E683EBCE; Wed, 15 Jul 2015 11:11:57 +0000 (UTC) Date: Wed, 15 Jul 2015 11:11:57 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Commented On] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWmP/0= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 11:11:57 -0000 andrew added inline comments. INLINE COMMENTS sys/arm64/include/param.h:98 The argument is that your changing it just in arm64 to be different than amd64, arm i386, mips, powerpc, and sparc64, i.e. all the other architectures. You will need to explain why you are changing it in this one place, but not in the 6 other places we define this. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 11:16:03 2015 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 8A7219A2461 for ; Wed, 15 Jul 2015 11:16:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 51C231EB2 for ; Wed, 15 Jul 2015 11:16:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 4D7F8ED1A; Wed, 15 Jul 2015 11:16:03 +0000 (UTC) Date: Wed, 15 Jul 2015 11:16:03 +0000 To: freebsd-arm@freebsd.org From: "onwahe-gmail-com (Svatopluk Kraus)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Commented On] D3034: Add BUS_UNMASK_INTR method Message-ID: <1f064448b2140c9a20cb47c34c1b1415@localhost.localdomain> X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWmQPM= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 11:16:03 -0000 onwahe-gmail-com added a comment. In https://reviews.freebsd.org/D3034#61087, @wma_semihalf.com wrote: > I guess treating PPIs are separate IRQs number will cause a huge mess. I'm starting to port fbsd on 96 core armv8 platform and the idea of 1536 vectors wasted for PPIs is outrageous. In fact, PPIs are separate interrupts. So if you have 96 core armv8 platform with 16 PPIs on each core, then you have 1536 PPIs. If you have 96 core, then you have probably enough memory to run them all. And I certainly will not call using of 1536 IRQ numbers as wasting in this case. Moreover, 1536 IRQ numbers are allocated only if all of them are used. Further, with such many cores, I can imagine more than before that same PPI could be served differently on various subsets of cores. However, I do not say that it's necessary to have an IRQ number for each PPI on each core. I just say that it should be so in principle. It could be optimalized according to usage. Think about PPI statistics for example. Will be PPI interrupts counted on a single counter? (Just do not forget to use atomic increment in that case. I have confirmed that even two cores count badly without atomics.) Anyhow, I still think that problem with PPIs you desribed can be dealt with either in nexus or in interrupt framework without a need to change bus interface. (You can change the way how bus_setup_intr() and bus_teardown_intr() are implemented for PPI kind of interrupts.) > My point in adding separate interface is to support multi-PIC systems. Calling BUS_UNMASK_INTR with an appropriate resource will allow to pick up the correct PIC controller in a generic way (as I looked into intrng last time it was capable of associating device with specific PIC). Adding the same code to timer driver might be really inelegant, thus require a static map either in the driver or in intr_machdep file. Note that only root PIC is capable of PPIs and SGIs (IPIs). However, if you really want to add some new bus interface, I would like to know more about it. For example, what about to add man pages for it? What about to add bus_mask_intr() too? What is difference between it and bus_activate_resource()? What about to add cpuset_t argument to it? (Which, I believe, was Michal's point for using with SPI.) Must be ensured that no cpu migration happens during the call? I have a really bad feeling with the change how it's introduced now. > > The proposed bus_unmask_intr() cannot be used from outside of secondary CPUs startup context. It cannot be used for SPI, it cannot be used of PPI after scheduler is started on given core. > > > Actually, I'm not quite sure I understand your point. Why cannot one use it for SPI (except it might not have a sense) or what the scheduler has to do with PPI? The only risk I see (in current implementation) is that someone calls unmask when irq is not configured. > The freebsd also lacks the fine-grained interrupt blocking mechanism, like, for example, mask/unmask pair exported as bus interface (that would require adding mask call here also). I bet if you ever tried to write a driver for some queer and exotic piece of hardware you wished these functions existed, like in other OSes. Or at least I have... REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: onwahe-gmail-com, freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 11:27:32 2015 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 6D6529A2600 for ; Wed, 15 Jul 2015 11:27:32 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 563031286 for ; Wed, 15 Jul 2015 11:27:32 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 528FEE13F; Wed, 15 Jul 2015 11:27:32 +0000 (UTC) Date: Wed, 15 Jul 2015 11:27:32 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Abandoned] D3034: Add BUS_UNMASK_INTR method Message-ID: <0d143a9bce26422060b87788f1891266@localhost.localdomain> X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWmQ6Q= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 11:27:32 -0000 wma_semihalf.com abandoned this revision. wma_semihalf.com added a comment. Thanks! That was really helpful. However I'm still confused about the system I have. I didn't powered up the full configuration yet, but I'm afraid it has two root pics then (one per each 48-cpu partition). Nevertheless, I'm abandoning this review for a while and stick to hacking generic_timer. When I test it on actual hw I will get back to this patch. However I'm still thinking the generic mask/unmask pair might be a useful feature. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, andrew, zbb Cc: onwahe-gmail-com, freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 11:41:31 2015 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 021C29A2967 for ; Wed, 15 Jul 2015 11:41:31 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id DDC391D61 for ; Wed, 15 Jul 2015 11:41:30 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id CD36FE79B; Wed, 15 Jul 2015 11:41:30 +0000 (UTC) Date: Wed, 15 Jul 2015 11:41:30 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Commented On] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWmRuo= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 11:41:31 -0000 wma_semihalf.com added a comment. Andrew, I would love to change it in other places as well, but the interaction with so many maintainers will slow down this change and I don't have any mips/powerpc hardware to run tests on. I have a proposal. Today I will prepare another patch with separate review removing KSTACK_PAGES from param.h in other archs and ask on the fbsd list for some help with testing on more exotic hardware, This allow submitting this to arm+arm64 while waiting for approvals from mips/sparc/x86/etc Will that work for you? REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 12:32:26 2015 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 8FE2F9A29C4 for ; Wed, 15 Jul 2015 12:32:26 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (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 2FE4B1B4B for ; Wed, 15 Jul 2015 12:32:26 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: by wgxm20 with SMTP id m20so32390133wgx.3 for ; Wed, 15 Jul 2015 05:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=5tr0lNsG1EGTT35oH487Ec/V1zje2Fz2Lo1hBDUssBo=; b=ZWHMHj9D0USL2KwNFYvZY/v+S3PJl0FS1vE2I0fBVrXwzdx8ZriuYUmgAn52SyVij8 Yk9h3kTfvjSr1L1zOsMRW5YBtlkrfGkWx4X4FDB14nUHJphEbTIUQEXq44NC9+MOtFHf JCMaBGio9w3bi2iVR1mjkxzHWeLlnMZlDcGlhL95Vo/XlkE9saHDTqb/tFQTm8QLKXOC NO4TzQ1g50zrvDoI/mFkYWqct3L3O4iwK40CBoJqWOnnnDxhyFcyi0Gjyah9f5Zc3H7e rywRpLwz540bvuii981T4lgsCYJzkb0FLD92f7KVTTJJ7EwdjBWqo9gNCUDAXfjuj+PO lCpw== X-Received: by 10.180.94.35 with SMTP id cz3mr15598574wib.85.1436963544666; Wed, 15 Jul 2015 05:32:24 -0700 (PDT) Received: from [192.168.0.119] (209.212.173.83.static.wline.lns.sme.cust.swisscom.ch. [83.173.212.209]) by smtp.googlemail.com with ESMTPSA id fm8sm8907342wib.9.2015.07.15.05.32.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jul 2015 05:32:23 -0700 (PDT) Message-ID: <55A652D6.7010401@gmail.com> Date: Wed, 15 Jul 2015 14:32:22 +0200 From: Mattia Rossi User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Ronald Klop , "freebsd-arm@freebsd.org" Subject: Re: executable gone after fsck - Fwd: Cron newsyslog References: <20150709200019.E7710D975C@sheeva.klop.ws> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 12:32:26 -0000 Hi Ronald, I might have missed some information on the list about the topic, and unless the unmapped i/o was the cause, fsck is pretty much broken at least on the Dreamplug.. and I would suspect also on the Sheevaplug. Wih the first few fsck you do you will lose random files, later on you won't be able to boot anymore, as fsck won't be able to fix fs errors anymore... I'm currently using the fix suggested by Ian at the time: set the dump and pass values of your root fs in fstab to 0 0 and live with a dirty fs after a crash. Unless the system is crashing often, you'll be quite fine ;-) Cheers, Mat Am 10.07.2015 um 10:12 schrieb Ronald Klop: > Hi, > > I used fsck after a panic on my sheevaplug. > FreeBSD sheeva.klop.ws 11.0-CURRENT FreeBSD 11.0-CURRENT #8 r284499M: > Wed Jun 17 12:54:02 CEST 2015 > root@sjakie.klop.ws:/usr/obj-arm/arm.arm/usr/src-arm/sys/SHEEVAPLUG arm > > If I did not made a mistake somewhere I'm running with the unmapped > i/o turned off. > http://www.secnetix.de/olli/FreeBSD/svnews/index.py?r=283931 > > NB: In the case below bzip2 does not exist anymore. Which is not > something _just_ written to disk. > > Unfortunately I don't have more information about the crash. > > Ronald. > > > ------- Forwarded message ------- > From: "Cron Daemon" > To: root@klop.ws > Cc: > Subject: Cron newsyslog > Date: Thu, 09 Jul 2015 22:00:10 +0200 > > newsyslog: execl(`/usr/bin/bzip2 -f /var/log/console.log.0'): No such > file > or directory > newsyslog: `bzip2 -f /var/log/console.log.0' terminated with a non-zero > status (1) > _______________________________________________ > 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" From owner-freebsd-arm@freebsd.org Wed Jul 15 12:43:33 2015 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 CE1FC9A2BB9 for ; Wed, 15 Jul 2015 12:43:33 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id B38B01059 for ; Wed, 15 Jul 2015 12:43:33 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id A4FD3E191; Wed, 15 Jul 2015 12:43:33 +0000 (UTC) Date: Wed, 15 Jul 2015 12:43:33 +0000 To: freebsd-arm@freebsd.org From: "kib (Konstantin Belousov)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Changed Subscribers] D3094: Fix ARMv8 KSTACK_PAGES issue Message-ID: <3ca8eac321ef9d2db42497eedc233982@localhost.localdomain> X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWmVXU= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 12:43:33 -0000 kib added a subscriber: kib. INLINE COMMENTS sys/arm64/include/param.h:98 IMO moving KSTACK_PAGES to GENERIC is not right, since you require now that any kernel config has the statement for KSTACK_PAGES. The knob is not considered something that average user should tune. The more proper solution is to use kstack_pages variable instead of the preprocessing symbol. This might even allow to set the default kernel stack size using tunable. The tricky place is the td0 stack allocation in locore. E.g., on i386 it looks easy to use kstack_pages for the stack size, but it is not possible to fetch the value from the kernel environment so early. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: kib, imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 12:46:36 2015 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 9BD689A2C2F for ; Wed, 15 Jul 2015 12:46:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 84C5111E9 for ; Wed, 15 Jul 2015 12:46:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 81D5CE2EB; Wed, 15 Jul 2015 12:46:36 +0000 (UTC) Date: Wed, 15 Jul 2015 12:46:36 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3034+327+45b7a5c19a24c07f@FreeBSD.org Subject: [Differential] [Updated] D3034: Add BUS_UNMASK_INTR method Message-ID: <626c4736eb20cb75e4f0b363bf302053@localhost.localdomain> X-Priority: 3 Thread-Topic: D3034: Add BUS_UNMASK_INTR method X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: Njk5OTUyY2Q2NjQxNGE1MDJhNmZkNGQ3MjI0IFWmViw= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 12:46:36 -0000 andrew added a comment. I would like to see something like how Linux handles this. When they create interrupts they can mark them as per-core, i.e. they will be unmasked on all cores. I think we could do this with a new flag in `bus_setup_intr`. Care would need to be taken to handle devices created both before and after we have enabled the secondary cpus as I would expect the code paths to be slightly different, e.g. before enabling we would need to record the need to unmask when new cpus are brought up, after enabling we will also need to signal to the other cpus to unmask the interrupt. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3034 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, imp, ian, zbb, andrew Cc: onwahe-gmail-com, freebsd-arm-list, meloun-miracle-cz, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Wed Jul 15 13:05:05 2015 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 78DC99A1002 for ; Wed, 15 Jul 2015 13:05:05 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 412DE1C7D for ; Wed, 15 Jul 2015 13:05:04 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZFMMl-00050O-3f for freebsd-arm@freebsd.org; Wed, 15 Jul 2015 15:04:56 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Date: Wed, 15 Jul 2015 15:04:49 +0200 Subject: ubldr vs ubldr.bin? MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_40 autolearn=disabled version=3.3.2 X-Scan-Signature: 7194f67edb0fd0030ea28d62f3968513 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: Wed, 15 Jul 2015 13:05:05 -0000 Hello, What is the difference between ubldr and ubldr.bin? [root@sheeva ~]# ls -l /boot/ubldr* -r--r--r-- 1 root wheel 283086 Jul 11 00:34 /boot/ubldr -r--r--r-- 1 root wheel 235212 Jul 11 00:34 /boot/ubldr.bin -r-xr-xr-x 1 root wheel 214432 Jan 8 2015 /boot/ubldr.old Regards, Ronald. From owner-freebsd-arm@freebsd.org Wed Jul 15 13:58:36 2015 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 BA3489A1B63 for ; Wed, 15 Jul 2015 13:58:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 96EB912E0 for ; Wed, 15 Jul 2015 13:58:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 8A641E19E; Wed, 15 Jul 2015 13:58:36 +0000 (UTC) Date: Wed, 15 Jul 2015 13:58:36 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D2378+327+81b4fa511783cd72@FreeBSD.org Subject: [Differential] [Updated] D2378: Introduce ITS support for ARM64 Message-ID: X-Priority: 3 Thread-Topic: D2378: Introduce ITS support for ARM64 X-Herald-Rules: <28>, <31>, <32>, <34>, <8> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZTc3NjU2YTNlNjQxNDIwYzYxMmJlZjFmYzJmIFWmZww= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 13:58:36 -0000 zbb marked 3 inline comments as done. INLINE COMMENTS sys/arm64/arm64/gic_v3_fdt.c:199-200 FDT bindings. Removed comment in the commit. sys/arm64/arm64/gic_v3_fdt.c:280 There are two sets of probe/attach pairs here. sys/arm64/arm64/gic_v3_fdt.c:299 There are two sets of probe/attach pairs here. I think that this is not an unusual thing when we have attachments for two different drivers in the same file: /* Driver A */ stuff_A; probe_A(); attach_A(); /* Driver B */ stuff_B; probe_B(); attach_B(); They could be in a separate files but this is more convenient. sys/arm64/arm64/gic_v3_its.c:818 CPU writes to its cache while ITS has its own. We need this to stay coherent. sys/arm64/arm64/gic_v3_its.c:821 Everyone knows what barriers are for ... Is the necessity of detailed explanation of barriers usage limited only to ITS driver or other ARM64 code also has it? sys/arm64/arm64/gic_v3_its.c:1077-1080 I will ask him. REVISION DETAIL https://reviews.freebsd.org/D2378 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, imp, ian, emaste, manpages, andrew Cc: eadler, gnn, kib, emaste, andrew, freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 15:50:33 2015 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 862ED9A1355 for ; Wed, 15 Jul 2015 15:50:33 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm27-vm1.bullet.mail.bf1.yahoo.com (nm27-vm1.bullet.mail.bf1.yahoo.com [98.139.213.148]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E13A11FD3 for ; Wed, 15 Jul 2015 15:50:32 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1436975431; bh=ZFtW646D0NLmFV/S8A6MN1qVqCKsbUvY0/RfOMSPC8A=; h=Date:From:To:CC:Subject:From:Subject; b=YcLWsNGA8q4Z6DThGnqv8KGgW56tGKBhnjeagWooc+hGU9zVkOnlcv87yp9Bb2oG0vNHfPxbOZLoYLJiX0NuamW9qj72P+aseG3dwXIyCH4Mtt6LSZ6Q1YwL44zmD8+UJWvk4+HlGXfOFDZEEd29zoAVbmLjdnnBLnsu4qnu0p36tw8Gs5PmBJG4zwQ6Eh4rwxv2JH06kYbk1yWvnWFdFHy2/jZ8Et9oWmPEaRNBMxtyRPLlMxLWjs1dFdVs6lXH6fpSo2qMt4sUAQZwWoLO160IqFCsCni6PfIKdNhpMXa2hsVcIkFfCVnJdQ4GfCWA4ZlcveZTOnj/c01K2l5xqA== Received: from [98.139.170.178] by nm27.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jul 2015 15:50:31 -0000 Received: from [68.142.230.77] by tm21.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jul 2015 15:50:31 -0000 Received: from [127.0.0.1] by smtp234.mail.bf1.yahoo.com with NNFMP; 15 Jul 2015 15:50:31 -0000 X-Yahoo-Newman-Id: 215931.2137.bm@smtp234.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: izIYGP0VM1kuV2V70HO8vX5oEaGY4PVUO6uJsyx3N0dA..V X5HNpM4bAqVf2.2q55DHsofO6ucM_KnkyQrrDjfSF8hywDNtoB1SBr0_rQyv fo1T7NbVOyTa4o5pggijbxNrWFYZgp2hKY6nMYbRZCHUaeFakYJSD67SJdFg cpthDK8tmqPL9V2l67T8fxRzAkSuLBJEUWFHe8kxm9iAAplcMzn1GHuYBHiK xRw9ktxPnBoG7J4JSpy37OJGCqiFQjIjGIYaUtMm9K8Xj_t9Q3HSgqoaFeS. EFiYRdv6bQ7P6sthWZOejIRmalm3NILkb4MjcKh8pqdv9m6IA7ULy_rQi_QX 8DM31oeqPdbuuw1._kl2Kg3Y_zgxqT._rlH7ZvuaNb.x.nPGpvmT0yEsDG6K uwACmX6UUG6kpL0lxW8bnEWOaaKNxjicl4ag_tnI6IPz3arWHTj1OxPTq1kh UYKPy06wIm9ND52iDHwJB1GJBPZpXBr_Y4TtsjZvwwbIDYZB4mz1WmLHv.Iw Y8csSkEeJipl77nifXp4JhJM7bDmm0h4I X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <55A6815A.6030703@FreeBSD.org> Date: Wed, 15 Jul 2015 10:50:50 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-arm@FreeBSD.org CC: Oliver Pinter Subject: aarch64 and gets(3) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 15:50:33 -0000 Hello; In this GSoC to port the FORTIFY_SOURCE libc extension to FreeBSD we are getting this build error only on arm64: ... ===> lib/libcompiler_rt (obj,depend,all,install) ===> lib/libc (obj,depend,all,install) __gets_chk.So: In function `__gets_chk': /scratch/tmp/pfg/head/lib/libc/secure/__gets_chk.c:(.text+0x84): warning: warning: this program uses gets(), which is unsafe. cc: error: linker command failed with exit code 1 (use -v to see invocation) --- libc.so.7 --- *** [libc.so.7] Error code 1 make[6]: stopped in /scratch/tmp/pfg/head/lib/libc 1 error ... _____ Is arm64 somehow special wrt to gets(3) ? Any suggestion on how to work around this? Regards, Pedro. [1] https://reviews.freebsd.org/D3043 From owner-freebsd-arm@freebsd.org Wed Jul 15 15:54:12 2015 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 870819A14CE for ; Wed, 15 Jul 2015 15:54:12 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter03.peakinternet.com (filter03.peakinternet.com [207.55.16.94]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61A3B14FF for ; Wed, 15 Jul 2015 15:54:12 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter03.peakinternet.com ({a3d4bcbc-467e-4baf-8e5e-c89ccb4fcca2}) via TCP (outbound) with ESMTPS id 20150715155405579_0000 for ; Wed, 15 Jul 2015 08:54:05 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id BF440114ADA for ; Wed, 15 Jul 2015 08:54:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id B30CE10E226 for ; Wed, 15 Jul 2015 08:54:04 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ow7BHuCFNGob for ; Wed, 15 Jul 2015 08:54:04 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 7E3C810DCDA for ; Wed, 15 Jul 2015 08:54:04 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZFP0V-0000iw-I4 for freebsd-arm@freebsd.org; Wed, 15 Jul 2015 08:54:03 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: RPi won't boot 10.2-BETA1 -- SOLVED References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 15 Jul 2015 08:54:03 -0700 In-Reply-To: <20150715040109.GV15828@FreeBSD.org> (Glen Barber's message of "Wed, 15 Jul 2015 04:01:09 +0000") Message-ID: <87pp3tzaas.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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: Wed, 15 Jul 2015 15:54:12 -0000 Glen Barber writes: > On Tue, Jul 14, 2015 at 08:54:06PM -0700, Carl Johnson wrote: >> I bought a new microSDHC card and that card works. The new one is a >> 16GB SanDisk Ultra PLUS UHS-1 card in case anybody is keeping track. I >> had tried two different Class 4 cards that didn't work, so maybe the >> faster speed is necessary now, or maybe it is picky about brands. >> > > FWIW, I have a few class-10 cards that will absolutely not work, and > a few class-4 cards that work perfectly fine. > > After getting my test setup working properly (cards that work, etc.), > I looked into it a bit further, and it *seems* that all of my cards > (except one class-10 card) out of about 12 different SD cards work fine > with "normal data." > > Just an additional data point, although I realize it contradicts your > findings. Thanks, that is useful to know. The first class-4 card worked with a January 10.1-STABLE snapshot, but didn't work with June 10.1-STABLE or 11.0-CURRENT snapshots or the 10.2-BETA1 release. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Wed Jul 15 15:56:59 2015 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 307B19A1546 for ; Wed, 15 Jul 2015 15:56:59 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E74C9166D for ; Wed, 15 Jul 2015 15:56:58 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D1D871FE022; Wed, 15 Jul 2015 17:56:50 +0200 (CEST) Message-ID: <55A6830B.2050505@selasky.org> Date: Wed, 15 Jul 2015 17:58:03 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Daisuke Aoyama , Andreas Andersson , freebsd-arm@freebsd.org Subject: Re: Performance issues with raspberry pi 2 References: <3AB5ECCF20894591B4DF5FCBA8CA49BB@ad.peach.ne.jp> <2D17B16DBC5F452D8DAC721E17BBF1B7@ad.peach.ne.jp> In-Reply-To: <2D17B16DBC5F452D8DAC721E17BBF1B7@ad.peach.ne.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 15:56:59 -0000 On 05/18/15 00:02, Daisuke Aoyama wrote: > > Previous subset does not work correctly in ratecheck. > I don't know a reason but same code from ODROID-C1 version works. > I re-create the patch as dwc_otg-rpi2-20150518.patch. > > http://www.peach.ne.jp/archives/rpi/patch/dwc_otg-rpi2-20150518.patch Hi, I've finally had time to look at your patch, and it has some clever new ideas to optimise the DWC OTG performance. I like it and will do some work to integrate your patches like promised this week. It might be too late for the coming 10.x release, but will for sure hit 10-stable when the next 10.x is out. Thank you! One question though: Are the WMB's and RMB's strictly needed? Isn't the I/O memory mapped coherently? Did you consider enabling the TXFIFOEMPTY IRQs instead of spinning? --HPS From owner-freebsd-arm@freebsd.org Wed Jul 15 16:02:33 2015 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 A5C909A16F8 for ; Wed, 15 Jul 2015 16:02:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (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 756EC1C5F for ; Wed, 15 Jul 2015 16:02:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by ieik3 with SMTP id k3so37101855iei.3 for ; Wed, 15 Jul 2015 09:02:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=D9n28QdM0v6R3ypre2MGsyVXdTc9gLTKFmXWZ55ciO4=; b=JoeTguiFZP9DPWIaB9YTyLMG4zAFmfR42UZCCLNVG4XnFN1d3tEZ4yNtPZk4ACYu9P 4m1XtN5eARfW6hvggTui/t3gYzomV8PIRo6xeo+KozVr2xeh+YlEpiAaNfRa9aIr0BZF fH5dAoo4TU0BhrZf+XZciNToeu3Jy0zljxByTmBeDW9vNrGHxllb376UJN2NOr1ratkA HU8geMZBn+/YWKQOKgxUtFUMY1GvHaVVthtnIDD54fQi5cr/ycywZbuiWofRJlTiD2LR hyb4FMBWdQsU5AMy//cmtSLzPUn+Sbh2Sb+IKyaomuKJW+2nV2WY/G1m+MYxA6kXkLV6 Gdpg== X-Gm-Message-State: ALoCoQmc51hqZmBvDXxuJ/BrovbuniQJRjcbj4PHQkCl5QtptIO8PzTgVHchQuptMm19Mi4TMblb X-Received: by 10.50.79.196 with SMTP id l4mr24975275igx.48.1436976151734; Wed, 15 Jul 2015 09:02:31 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id e69sm3034845ioe.31.2015.07.15.09.02.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 09:02:30 -0700 (PDT) Sender: Warner Losh Subject: Re: aarch64 and gets(3) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <55A6815A.6030703@FreeBSD.org> Date: Wed, 15 Jul 2015 10:02:29 -0600 Cc: freebsd-arm@FreeBSD.org, Oliver Pinter Message-Id: References: <55A6815A.6030703@FreeBSD.org> To: Pedro Giffuni X-Mailer: Apple Mail (2.2102) 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: Wed, 15 Jul 2015 16:02:33 -0000 --Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jul 15, 2015, at 9:50 AM, Pedro Giffuni wrote: >=20 > Hello; >=20 > In this GSoC to port the FORTIFY_SOURCE libc extension to FreeBSD we > are getting this build error only on arm64: >=20 > ... > =3D=3D=3D> lib/libcompiler_rt (obj,depend,all,install) > =3D=3D=3D> lib/libc (obj,depend,all,install) > __gets_chk.So: In function `__gets_chk': > /scratch/tmp/pfg/head/lib/libc/secure/__gets_chk.c:(.text+0x84): = warning: warning: this program uses gets(), which is unsafe. > cc: error: linker command failed with exit code 1 (use -v to see = invocation) > --- libc.so.7 --- > *** [libc.so.7] Error code 1 >=20 > make[6]: stopped in /scratch/tmp/pfg/head/lib/libc > 1 error > ... > _____ >=20 > Is arm64 somehow special wrt to gets(3) ? Any suggestion on how to > work around this? It might be special wrt -Werror and linker warnings since it uses a = newer ld than is in the tree. Warner --Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVpoQWAAoJEGwc0Sh9sBEA5bQP/iFToMRv13yuKJDiYuYROzqv 1claPE1N6F9wZ5bUE7ks2rmWkL+J/Fi/a1HYwZUPKDfDiA+bGjQaJSnHT7FAaUnt c1goGxsBeXs+lwUXC4Yea1pqMDDaR0lQEaIaCoPO2pgxZwZS5PsfQ4f2lE8HTjdq EAf4WIV9rqDxR0STbH5JtVoIHOxCwNgxgArumwC7D8i35YbQyJLgym8roByJIVJw Z4r+0xZX/4VR7GOt3bNYw0aUErvwMw2X9Pr8YCnc05ePt+5QgXSlavEhfrACQuKK vjBfUgleU11wCU42AOxUZ23agEHWEKHZ8fFRQ35tuajuKbnIUfovEGLJDa24uIae N9d5R/rcnoW3rJre28oGu4OKZ4BTpnnSj9SUcTEHe4/hdQmi4wZp50FbbiuA7sxz JS/Z/O7wAN7x9zeaDyrV6N4n59XQBMb49FU1aVtuikWdlxn70Gt5Yg5opr4j7x0o 3m3/YnTmEFDIU+iDcJDE3jA5bZINXqKhMaXWajJECjnHVuJCPD2evz0tCDE+E3ku gr3sRIqtRiIMKe2M44dc7t2p8KPaadk/civbKk6wnCahAUdA7S/wLjvJygU4afpC XGbxAc3DN20Xg789J8GD8+7AnnuSLouGZCP3eavjlJE0w93dGavun1tCjh4uqrle EdwhUP+trTtfFcrIakl/ =Veri -----END PGP SIGNATURE----- --Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA-- From owner-freebsd-arm@freebsd.org Wed Jul 15 16:09:36 2015 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 636AF9A1842 for ; Wed, 15 Jul 2015 16:09:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 4B4831FDB for ; Wed, 15 Jul 2015 16:09:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 4A810EFB1; Wed, 15 Jul 2015 16:09:36 +0000 (UTC) Date: Wed, 15 Jul 2015 16:09:36 +0000 To: freebsd-arm@freebsd.org From: "imp (Warner Losh)" Reply-to: D2378+327+81b4fa511783cd72@FreeBSD.org Subject: [Differential] [Commented On] D2378: Introduce ITS support for ARM64 Message-ID: <120ef6b71eda08b3dcaf8d29159fc845@localhost.localdomain> X-Priority: 3 Thread-Topic: D2378: Introduce ITS support for ARM64 X-Herald-Rules: <28>, <31>, <32>, <34>, <8> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZTc3NjU2YTNlNjQxNDIwYzYxMmJlZjFmYzJmIFWmhcA= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 16:09:36 -0000 imp added inline comments. INLINE COMMENTS sys/arm64/arm64/gic_v3_fdt.c:299 There are very few drivers in the tree that have multiple attachments in the same file. It complicates subsetting and modules a bit is the general reason why that's the case. In this case it might be OK, it might not (I haven't looked at the larger context). What makes it more convenient to do it this way? Since I didn't see it in a quick glance, chances are good that a comment or two about why they are co-located would be in order. REVISION DETAIL https://reviews.freebsd.org/D2378 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, imp, ian, emaste, manpages, andrew Cc: eadler, gnn, kib, emaste, andrew, freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 16:16:51 2015 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 CC6989A1A03 for ; Wed, 15 Jul 2015 16:16:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) (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 709D615C2 for ; Wed, 15 Jul 2015 16:16:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by ieik3 with SMTP id k3so37417377iei.3 for ; Wed, 15 Jul 2015 09:16:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=yk38pfAuJy/5ODR4M6R7/1C7WLaIHKSwCPPzsjQ4Cr0=; b=kngwqbAGLs3agKtVHp5GwAGFuINY+pMZqMqQa0ffJyU1RDUdx9Wi7jsYvGacya1v+E IZ4OSQLYDSURzsp6bEZnNZWc6oD0nFODTfdsPFFiRikrCVRmqfmYweAl3dcBRVQLUt22 BSNbUnm65P9Ckqh4n4lHEp4maBDpjSZhv8+JkNfkb2dCCuTrXHZRLrS0lto3HTbKBJ5U jaguAwM+yusYozbc0edk5JRVvqURBEe+GQ1PX8BlOBzZgxFdLd7Qg8KCANgOkHWqkJ23 2mOdwZHW/yQOHOxZ32IIv1JUGK41NlE89Wstd10ejraxvVf/zesjkSRZZN6dz3bz+x8A gSKw== X-Gm-Message-State: ALoCoQluIUfv0QHBq1jxSUUGy3ATT+IiSdXaHq3l2Xw95Sc5G5uDoMsiEd180PdWOVw8TBhVQvux X-Received: by 10.50.44.76 with SMTP id c12mr26641508igm.74.1436977004075; Wed, 15 Jul 2015 09:16:44 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id a6sm3077560ioj.1.2015.07.15.09.16.42 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 09:16:43 -0700 (PDT) Sender: Warner Losh Subject: Re: executable gone after fsck - Fwd: Cron newsyslog Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <55A652D6.7010401@gmail.com> Date: Wed, 15 Jul 2015 10:16:40 -0600 Cc: Ronald Klop , "freebsd-arm@freebsd.org" Message-Id: <4CF1F0A4-9486-46DC-AF73-3E98DAB284DD@bsdimp.com> References: <20150709200019.E7710D975C@sheeva.klop.ws> <55A652D6.7010401@gmail.com> To: Mattia Rossi X-Mailer: Apple Mail (2.2102) 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: Wed, 15 Jul 2015 16:16:52 -0000 --Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 15, 2015, at 6:32 AM, Mattia Rossi = wrote: >=20 > Hi Ronald, >=20 > I might have missed some information on the list about the topic, and = unless the unmapped i/o was the cause, fsck is pretty much broken at = least on the Dreamplug.. and I would suspect also on the Sheevaplug. Wih = the first few fsck you do you will lose random files, later on you won't = be able to boot anymore, as fsck won't be able to fix fs errors = anymore=E2=80=A6 It was broken on atmel until I turned of unmapped I/O. then it was rock = solid on atmel, at least as rock solid as it is on other platforms. Ian = told me his dream plug was also broken in a similar way, but I can=E2=80=99= t recall if he tested it for me there. I crashed my Atmel AT91SAM9G20 = system about 100 times chasing unrelated bugs after this change. Before = I turned off unmapped I/O it was always a disaster (never once did fsck = do something useful on a dirty fs). Afterwards every time i was paying = attention, it just worked (and when I wasn=E2=80=99t paying attention, = it didn=E2=80=99t have the mandatory trip into single user mode). fsck definitely does unaligned direct I/O, which is what I think is = broken with unmapped I/O. I=E2=80=99m confident that I=E2=80=99ve fixed = this. The kernel Ron is using should be plenty new enough since I fixed this = back in march, iirc. Warner > I'm currently using the fix suggested by Ian at the time: set the dump = and pass values of your root fs in fstab to 0 0 and live with a dirty fs = after a crash. Unless the system is crashing often, you'll be quite fine = ;-) >=20 > Cheers, >=20 > Mat >=20 > Am 10.07.2015 um 10:12 schrieb Ronald Klop: >> Hi, >>=20 >> I used fsck after a panic on my sheevaplug. >> FreeBSD sheeva.klop.ws 11.0-CURRENT FreeBSD 11.0-CURRENT #8 r284499M: = Wed Jun 17 12:54:02 CEST 2015 = root@sjakie.klop.ws:/usr/obj-arm/arm.arm/usr/src-arm/sys/SHEEVAPLUG arm >>=20 >> If I did not made a mistake somewhere I'm running with the unmapped = i/o turned off. >> http://www.secnetix.de/olli/FreeBSD/svnews/index.py?r=3D283931 >>=20 >> NB: In the case below bzip2 does not exist anymore. Which is not = something _just_ written to disk. >>=20 >> Unfortunately I don't have more information about the crash. >>=20 >> Ronald. >>=20 >>=20 >> ------- Forwarded message ------- >> From: "Cron Daemon" >> To: root@klop.ws >> Cc: >> Subject: Cron newsyslog >> Date: Thu, 09 Jul 2015 22:00:10 +0200 >>=20 >> newsyslog: execl(`/usr/bin/bzip2 -f /var/log/console.log.0'): No such = file >> or directory >> newsyslog: `bzip2 -f /var/log/console.log.0' terminated with a = non-zero >> status (1) >> _______________________________________________ >> 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" >=20 > _______________________________________________ > 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" --Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVpodpAAoJEGwc0Sh9sBEAogwQAKpvDlDhHAlTZeaIIKMU0CGt rhO4ANHw88qsWoE3xR9M5VlLO7nMRTlaz0xRQXWfm2z9j6hQcSKGO1K9AgQZhcuq mHnNauEo241Fke20GzEanKJwtkPttmIqE94Y1KtNO0OD2SvxAHkQ2vW1o6LJ0lpG a2JX50KT1t1kLrnTJ/w1Skb8bfpx1gxxpbyFtLYrIRCrHDfpLAWxfOniVsC6ajrg gNH3M9qzNfnDgChzdYbWGmDN9uH5QbVZZjvXZjQPjeqXVdgay6hDewIi9IwMjD/q wbXak+RhcJvzy4J0IuYy5jcHyYgXvtVyaZMk0Z0BNCmQ/msdad8uZjuFGQSnBiXC ydYfJ9hX4udlpHtjTd75hjR4eEpt5jn54537ULW9f8rhDFQrMm6iTiUhGy+MkdhA T2+BQSYWfQjQKSPu1GWrnPNCSosojqlWS1gHvR7nhT+TLa/nvnLIN3nQ4ZQyEiCG WPUMUfPuO7QfqBDBjAMiUBa2r9kH0BKhhdneo5JT3BAH1JfU23zivZClvXvkbSI3 QyT3XsoCSDKkotYhjCAKb27JF7sEzSV/LG4sw9+ymA64IW9qiZmSyWU6/xacI1Vx sTsChrxCZwXDg7FKPH/SV84oi5rGDk+1UFjbK2i9ed5+nECkR03ZrvUG05JqM0FU vX5osi0lXqxLJJupMjNM =Z/jR -----END PGP SIGNATURE----- --Apple-Mail=_7DA8361D-0EEA-47D6-B7C7-83E2A840336B-- From owner-freebsd-arm@freebsd.org Wed Jul 15 16:34:08 2015 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 BE34C9A1E0E for ; Wed, 15 Jul 2015 16:34:08 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB2511C8 for ; Wed, 15 Jul 2015 16:34:08 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 97C48EA50; Wed, 15 Jul 2015 16:34:08 +0000 (UTC) Date: Wed, 15 Jul 2015 16:34:08 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D2378+327+81b4fa511783cd72@FreeBSD.org Subject: [Differential] [Updated] D2378: Introduce ITS support for ARM64 Message-ID: X-Priority: 3 Thread-Topic: D2378: Introduce ITS support for ARM64 X-Herald-Rules: <28>, <31>, <32>, <34>, <8> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZTc3NjU2YTNlNjQxNDIwYzYxMmJlZjFmYzJmIFWmi4A= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 16:34:08 -0000 zbb marked an inline comment as done. INLINE COMMENTS sys/arm64/arm64/gic_v3_fdt.c:299 This is because ITS is in fact part of GICv3. It will never be attached to any other "parent device". I can add a comment to clarify that if you think that keeping those together is still reasonable. REVISION DETAIL https://reviews.freebsd.org/D2378 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, imp, ian, emaste, manpages, andrew Cc: eadler, gnn, kib, emaste, andrew, freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 16:38:14 2015 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 E232C9A1EED for ; Wed, 15 Jul 2015 16:38:14 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) by mx1.freebsd.org (Postfix) with SMTP id B81A91468 for ; Wed, 15 Jul 2015 16:38:14 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Wed, 15 Jul 2015 16:38:53 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6FGc5Dd052170; Wed, 15 Jul 2015 10:38:05 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1436978285.1334.335.camel@freebsd.org> Subject: Re: ubldr vs ubldr.bin? From: Ian Lepore To: Ronald Klop Cc: freebsd-arm@freebsd.org Date: Wed, 15 Jul 2015 10:38:05 -0600 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 16:38:15 -0000 On Wed, 2015-07-15 at 15:04 +0200, Ronald Klop wrote: > Hello, > > What is the difference between ubldr and ubldr.bin? > > [root@sheeva ~]# ls -l /boot/ubldr* > -r--r--r-- 1 root wheel 283086 Jul 11 00:34 /boot/ubldr > -r--r--r-- 1 root wheel 235212 Jul 11 00:34 /boot/ubldr.bin > -r-xr-xr-x 1 root wheel 214432 Jan 8 2015 /boot/ubldr.old > > > Regards, > Ronald. ubldr is an elf binary that must be loaded at the address it was built for (the UBLDR_LOADADDR address). ubldr.bin is a raw executable image (no elf headers) which is self-relocating and can be loaded at any address. ubldr is launched with the bootelf command, and thus requires CONFIG_ELF in u-boot. ubldr.bin is launched with "go ${loadaddr}". So all in all, ubldr.bin is the new way of things, and ubldr is still being built only for compatibility with people that have older u-boot installed. (Right now that's pretty much everybody, because I haven't actually updated any of the u-boot ports yet to use ubldr.bin, because I've been too busy with $work.) The big thing ubldr.bin gets us is a common armv6[hf] userland that runs on any board. Previously the single userland difference between various arm boards is that UBLDR_LOADADDR was different for each board. -- Ian From owner-freebsd-arm@freebsd.org Wed Jul 15 16:55:38 2015 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 5FB529A227F for ; Wed, 15 Jul 2015 16:55:38 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id 2357F104F for ; Wed, 15 Jul 2015 16:55:37 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Wed, 15 Jul 2015 16:54:05 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6FGtY5f052206; Wed, 15 Jul 2015 10:55:34 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1436979334.1334.345.camel@freebsd.org> Subject: Re: Performance issues with raspberry pi 2 From: Ian Lepore To: Hans Petter Selasky Cc: Daisuke Aoyama , Andreas Andersson , freebsd-arm@freebsd.org Date: Wed, 15 Jul 2015 10:55:34 -0600 In-Reply-To: <55A6830B.2050505@selasky.org> References: <3AB5ECCF20894591B4DF5FCBA8CA49BB@ad.peach.ne.jp> <2D17B16DBC5F452D8DAC721E17BBF1B7@ad.peach.ne.jp> <55A6830B.2050505@selasky.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 16:55:38 -0000 On Wed, 2015-07-15 at 17:58 +0200, Hans Petter Selasky wrote: > On 05/18/15 00:02, Daisuke Aoyama wrote: > > > > Previous subset does not work correctly in ratecheck. > > I don't know a reason but same code from ODROID-C1 version works. > > I re-create the patch as dwc_otg-rpi2-20150518.patch. > > > > http://www.peach.ne.jp/archives/rpi/patch/dwc_otg-rpi2-20150518.patch > > Hi, > > I've finally had time to look at your patch, and it has some clever new > ideas to optimise the DWC OTG performance. I like it and will do some > work to integrate your patches like promised this week. It might be too > late for the coming 10.x release, but will for sure hit 10-stable when > the next 10.x is out. Thank you! > > One question though: Are the WMB's and RMB's strictly needed? Isn't the > I/O memory mapped coherently? > > Did you consider enabling the TXFIFOEMPTY IRQs instead of spinning? I've been saying for years that you cannot assume that COHERENT means "no sync operations needed", and that's more true than ever with armv6. It is especially true of DEVICE mappings for arm memory-mapped IO: the region is uncached and inelligible for write-combining, but write access is still buffered (and dmb()/dsb() is insufficient to ensure that the write buffers are flushed on all hardware; bus_space_barrier() does the right thing). Using inline barriers like that in bus_space IO code isn't right though; that's what bus_space_barrier() is for. Doing the barriers on every bus_space access is probably overkill; typically when you need barriers it's in a few specific places after a group of reads or writes, and especially at places like the exit border in interrupt handling, or the interlock points if interrupt handlers and non-interrupt code share access to hardware registers. -- Ian From owner-freebsd-arm@freebsd.org Wed Jul 15 17:33:12 2015 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 1712A9A2957 for ; Wed, 15 Jul 2015 17:33:12 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id EF6E91944 for ; Wed, 15 Jul 2015 17:33:11 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id EDF07EC01; Wed, 15 Jul 2015 17:33:11 +0000 (UTC) Date: Wed, 15 Jul 2015 17:33:11 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D2378+327+81b4fa511783cd72@FreeBSD.org Subject: [Differential] [Updated, 2, 078 lines] D2378: Introduce ITS support for ARM64 Message-ID: <4bdeef8ca26e31550e57aedc792dfc9a@localhost.localdomain> X-Priority: 3 Thread-Topic: D2378: Introduce ITS support for ARM64 X-Herald-Rules: <28>, <31>, <32>, <34>, <8> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZTc3NjU2YTNlNjQxNDIwYzYxMmJlZjFmYzJmIFWmmVc= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_4bdeef8ca26e31550e57aedc792dfc9a" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 17:33:12 -0000 --b1_4bdeef8ca26e31550e57aedc792dfc9a Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit zbb updated this revision to Diff 6978. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D2378?vs=5978&id=6978 REVISION DETAIL https://reviews.freebsd.org/D2378 AFFECTED FILES sys/arm64/arm64/gic_v3.c sys/arm64/arm64/gic_v3_fdt.c sys/arm64/arm64/gic_v3_its.c sys/arm64/arm64/gic_v3_reg.h sys/arm64/arm64/gic_v3_var.h sys/arm64/include/param.h sys/conf/files.arm64 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, imp, ian, emaste, manpages, andrew Cc: eadler, gnn, kib, emaste, andrew, freebsd-arm-list, imp --b1_4bdeef8ca26e31550e57aedc792dfc9a Content-Type: text/x-patch; charset=utf-8; name="D2378.6978.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D2378.6978.patch" ZGlmZiAtLWdpdCBhL3N5cy9jb25mL2ZpbGVzLmFybTY0IGIvc3lzL2NvbmYvZmlsZXMuYXJtNjQK LS0tIGEvc3lzL2NvbmYvZmlsZXMuYXJtNjQKKysrIGIvc3lzL2NvbmYvZmlsZXMuYXJtNjQKQEAg LTI3LDYgKzI3LDcgQEAKIGFybTY0L2FybTY0L2dpY19mZHQuYwkJb3B0aW9uYWwJZmR0CiBhcm02 NC9hcm02NC9naWNfdjMuYwkJc3RhbmRhcmQKIGFybTY0L2FybTY0L2dpY192M19mZHQuYwlvcHRp b25hbAlmZHQKK2FybTY0L2FybTY0L2dpY192M19pdHMuYwlzdGFuZGFyZAogYXJtNjQvYXJtNjQv aWRlbnRjcHUuYwkJc3RhbmRhcmQKIGFybTY0L2FybTY0L2ludHJfbWFjaGRlcC5jCXN0YW5kYXJk CiBhcm02NC9hcm02NC9pbl9ja3N1bS5jCQlvcHRpb25hbAlpbmV0IHwgaW5ldDYKZGlmZiAtLWdp dCBhL3N5cy9hcm02NC9pbmNsdWRlL3BhcmFtLmggYi9zeXMvYXJtNjQvaW5jbHVkZS9wYXJhbS5o Ci0tLSBhL3N5cy9hcm02NC9pbmNsdWRlL3BhcmFtLmgKKysrIGIvc3lzL2FybTY0L2luY2x1ZGUv cGFyYW0uaApAQCAtODIsNiArODIsMTAgQEAKICNkZWZpbmUJUEFHRV9TSVpFCSgxIDw8IFBBR0Vf U0hJRlQpCS8qI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lY3Rpb24oc3RydWN0IGdpY192M19pdHNfc29mdGMgKik7CisK K3N0YXRpYyBpbnQgaXRzX2NtZF9zZW5kKHN0cnVjdCBnaWNfdjNfaXRzX3NvZnRjICosIHN0cnVj dCBpdHNfY21kX2Rlc2MgKik7CisKK3N0YXRpYyB2b2lkIGl0c19jbWRfbWFwYyhzdHJ1Y3QgZ2lj X3YzX2l0c19zb2Z0YyAqLCBzdHJ1Y3QgaXRzX2NvbCAqLCB1aW50OF90KTsKK3N0YXRpYyB2b2lk IGl0c19jbWRfbWFwdmkoc3RydWN0IGdpY192M19pdHNfc29mdGMgKiwgc3RydWN0IGl0c19kZXYg KiwgdWludDMyX3QsCisgICAgdWludDMyX3QpOworc3RhdGljIHZvaWQgaXRzX2NtZF9tYXBpKHN0 cnVjdCBnaWNfdjNfaXRzX3NvZnRjICosIHN0cnVjdCBpdHNfZGV2ICosIHVpbnQzMl90KTsKK3N0 YXRpYyB2b2lkIGl0c19jbWRfaW52KHN0cnVjdCBnaWNfdjNfaXRzX3NvZnRjICosIHN0cnVjdCBp dHNfZGV2ICosIHVpbnQzMl90KTsKK3N0YXRpYyB2b2lkIGl0c19jbWRfaW52YWxsKHN0cnVjdCBn aWNfdjNfaXRzX3NvZnRjICosIHN0cnVjdCBpdHNfY29sICopOworCitzdGF0aWMgdm9pZCBscGlf aW5pdF9jb25mdGFibGUoc3RydWN0IGdpY192M19pdHNfc29mdGMgKik7CitzdGF0aWMgdm9pZCBs cGlfYml0bWFwX2luaXQoc3RydWN0IGdpY192M19pdHNfc29mdGMgKik7CitzdGF0aWMgdm9pZCBs cGlfaW5pdF9jcHUoc3RydWN0IGdpY192M19pdHNfc29mdGMgKik7CitzdGF0aWMgaW50IGxwaV9j b25maWdfY3B1KHN0cnVjdCBnaWNfdjNfaXRzX3NvZnRjICopOworCitjb25zdCBjaGFyICppdHNf cHRhYl9jYWNoZVtdID0geworCVtHSVRTX0JBU0VSX0NBQ0hFX05DTkJdID0gIihOQyxOQikiLAor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bnQoc2MtPmRldik7CisJ Z2ljX3NjID0gZGV2aWNlX2dldF9zb2Z0YyhwYXJlbnQpOworCisJbHBpX2lkX251bSA9ICgxIDw8 IGdpY19zYy0+Z2ljX2lkYml0cykgLSAxOworCS8qIFN1YnN0cmFjdCBJRHMgZGVkaWNhdGVkIGZv ciBTR0lzLCBQUElzIGFuZCBTUElzICovCisJbHBpX2lkX251bSAtPSBHSUNfRklSU1RfTFBJOwor CisJc2MtPml0c19scGlfbWF4aWQgPSBscGlfaWRfbnVtOworCisJYml0c19pbl9jaHVuayA9IHNp emVvZigqc2MtPml0c19scGlfYml0bWFwKSAqIE5CQlk7CisKKwkvKgorCSAqIFJvdW5kIHVwIHRv IHRoZSBudW1iZXIgb2YgYml0cyBpbiBjaHVuay4KKwkgKiBXZSB3aWxsIG5lZWQgdG8gdGFrZSBj YXJlIHRvIGF2b2lkIHVzaW5nIGludmFsaWQgTFBJIElEcyBsYXRlci4KKwkgKi8KKwlscGlfaWRf bnVtID0gcm91bmR1cDIobHBpX2lkX251bSwgYml0c19pbl9jaHVuayk7CisJbHBpX2NodW5rc19u dW0gPSBscGlfaWRfbnVtIC8gYml0c19pbl9jaHVuazsKKworCXNjLT5pdHNfbHBpX2JpdG1hcCA9 CisJICAgIGNvbnRpZ21hbGxvYygobHBpX2NodW5rc19udW0gKiBzaXplb2YoKnNjLT5pdHNfbHBp X2JpdG1hcCkpLAorCSAgICBNX0dJQ19WM19JVFMsIChNX1dBSVRPSyB8IE1fWkVSTyksIDAsIH4w VUwsCisJICAgIHNpemVvZigqc2MtPml0c19scGlfYml0bWFwKSwgMCk7Cit9CisKK3N0YXRpYyBp bnQKK2xwaV9hbGxvY19jaHVuayhzdHJ1Y3QgZ2ljX3YzX2l0c19zb2Z0YyAqc2MsIHN0cnVjdCBs cGlfY2h1bmsgKmxwaWMsCisgICAgdV9pbnQgbnZlY3MpCit7CisJaW50IGZjbHI7IC8qIEZpcnN0 IGNsZWFyZWQgYml0ICovCisJdWludDhf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7Cit9CisKK3N0YXRpYyB2b2lkCitscGlfeG1hc2tf aXJxKGRldmljZV90IHBhcmVudCwgdWludDMyX3QgaXJxLCBib29sZWFuX3QgdW5tYXNrKQorewor CXN0cnVjdCBpdHNfZGV2ICppdHNfZGV2OworCisJVEFJTFFfRk9SRUFDSChpdHNfZGV2LCAmaXRz X3NjLT5pdHNfZGV2X2xpc3QsIGVudHJ5KSB7CisJCWlmIChpcnEgPj0gaXRzX2Rldi0+bHBpcy5s cGlfYmFzZSAmJgorCQkgICAgaXJxIDwgKGl0c19kZXYtPmxwaXMubHBpX2Jhc2UgKyBpdHNfZGV2 LT5scGlzLmxwaV9udW0pKSB7CisJCQlscGlfY29uZmlndXJlKGl0c19zYywgaXRzX2RldiwgaXJx LCB1bm1hc2spOworCQkJcmV0dXJuOworCQl9CisJfQorCisJcGFuaWMoIlRyeWluZyB0byAlcyBu b3QgZXhpc3RpbmcgTFBJOiAldVxuIiwKKwkgICAgKHVubWFzayA9PSBUUlVFKSA/ICJ1bm1hc2si IDogIm1hc2siLCBpcnEpOworfQorCit2b2lkCitscGlfdW5tYXNrX2lycShkZXZpY2VfdCBwYXJl bnQsIHVpbnQzMl90IGlycSkKK3sKKworCWxwaV94bWFza19pcnEocGFyZW50LCBpcnEsIDEpOwor fQorCit2b2lkCitscGlfbWFza19pcnEoZGV2aWNlX3QgcGFyZW50LCB1aW50MzJfdCBpcnEpCit7 CisKKwlscGlfeG1hc2tfaXJxKHBhcmVudCwgaXJxLCAwKTsKK30KKworLyoKKyAqIENvbW1hbmRz IGhhbmRsaW5nLgorICovCisKK3N0YXRpYyBfX2lubGluZSB2b2lkCitjbWRfZm9ybWF0X2NvbW1h bmQoc3RydWN0IGl0c19jbWQgKmNtZCwgdWludDhfdCBjbWRfdHlwZSkKK3sKKwkvKiBDb21tYW5k IGZpZWxkOiBEVzAgWzc6MF0gKi8KKwljbWQtPmNtZF9kd29yZFswXSAmPSB+Q01EX0NPTU1BTkRf TUFTSzsKKwljbWQt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0LDggQEAKIAl9IGVsc2UgaWYgKGlycSA+PSBHSUNfRklSU1RfU1BJICYmIGly cSA8PSBHSUNfTEFTVF9TUEkpIHsgLyogU1BJcyBpbiBkaXN0cmlidXRvciAqLwogCQlnaWNfcl93 cml0ZShzYywgNCwgR0lDRF9JQ0VOQUJMRVIoaXJxKSwgR0lDRF9JX01BU0soaXJxKSk7CiAJCWdp Y192M193YWl0X2Zvcl9yd3Aoc2MsIERJU1QpOworCX0gZWxzZSBpZiAoaXJxID49IEdJQ19GSVJT VF9MUEkpIHsgLyogTFBJcyAqLworCQlscGlfbWFza19pcnEoZGV2LCBpcnEpOwogCX0gZWxzZQog CQlwYW5pYygiJXM6IFVuc3VwcG9ydGVkIElSUSBudW1iZXIgJXUiLCBfX2Z1bmNfXywgaXJxKTsK IH0KQEAgLTI5Myw2ICsyOTQsOCBAQAogCX0gZWxzZSBpZiAoaXJxID49IEdJQ19GSVJTVF9TUEkg JiYgaXJxIDw9IEdJQ19MQVNUX1NQSSkgeyAvKiBTUElzIGluIGRpc3RyaWJ1dG9yICovCiAJCWdp Y19kX3dyaXRlKHNjLCA0LCBHSUNEX0lTRU5BQkxFUihpcnEpLCBHSUNEX0lfTUFTSyhpcnEpKTsK IAkJZ2ljX3YzX3dhaXRfZm9yX3J3cChzYywgRElTVCk7CisJfSBlbHNlIGlmIChpcnEgPj0gR0lD X0ZJUlNUX0xQSSkgeyAvKiBMUElzICovCisJCWxwaV91bm1hc2tfaXJxKGRldiwgaXJxKTsKIAl9 IGVsc2UKIAkJcGFuaWMoIiVzOiBVbnN1cHBvcnRlZCBJUlEgbnVtYmVyICV1IiwgX19mdW5jX18s IGlycSk7CiB9Cgo= --b1_4bdeef8ca26e31550e57aedc792dfc9a-- From owner-freebsd-arm@freebsd.org Wed Jul 15 17:34:19 2015 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 B52649A2972 for ; Wed, 15 Jul 2015 17:34:19 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C40019B0 for ; Wed, 15 Jul 2015 17:34:19 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 9B180EC69; Wed, 15 Jul 2015 17:34:19 +0000 (UTC) Date: Wed, 15 Jul 2015 17:34:19 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D2378+327+81b4fa511783cd72@FreeBSD.org Subject: [Differential] [Commented On] D2378: Introduce ITS support for ARM64 Message-ID: <7c96138f439da587dded2bdf803299b8@localhost.localdomain> X-Priority: 3 Thread-Topic: D2378: Introduce ITS support for ARM64 X-Herald-Rules: <28>, <31>, <32>, <34>, <8> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZTc3NjU2YTNlNjQxNDIwYzYxMmJlZjFmYzJmIFWmmZs= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 17:34:19 -0000 zbb added a comment. The diff should show more context now. The patch is up to date with the mainline version. REVISION DETAIL https://reviews.freebsd.org/D2378 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, imp, ian, emaste, manpages, andrew Cc: eadler, gnn, kib, emaste, andrew, freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Wed Jul 15 18:50:20 2015 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 5C6D19A2C01 for ; Wed, 15 Jul 2015 18:50:20 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (jenkins-9.freebsd.org [8.8.178.209]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFF11037; Wed, 15 Jul 2015 18:50:20 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (localhost [127.0.0.1]) by jenkins-9.freebsd.org (Postfix) with ESMTP id 6139EC66; Wed, 15 Jul 2015 18:50:19 +0000 (UTC) Date: Wed, 15 Jul 2015 18:50:12 +0000 (GMT) From: jenkins-admin@FreeBSD.org To: kib@FreeBSD.org, jenkins-admin@FreeBSD.org, freebsd-arm@FreeBSD.org Message-ID: <1066059176.55.1436986217530.JavaMail.jenkins@jenkins-9.freebsd.org> Subject: FreeBSD_HEAD_arm64 - Build #607 - Failure MIME-Version: 1.0 X-Jenkins-Job: FreeBSD_HEAD_arm64 X-Jenkins-Result: FAILURE Precedence: bulk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 18:50:20 -0000 FreeBSD_HEAD_arm64 - Build #607 - Failure: Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/607/ Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/607/changes Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/607/console Change summaries: 285607 by kib: Reset non-zero it_need indicator to zero atomically with fetching its current value. It is believed that the change is the real fix for the issue which was covered over by the r252683. With the current code, if the interrupt handler sets it_need between read and consequent reset, the update could be lost and ithread_execute_handlers() would not be called in response to the lost update. The r252683 could have hide the issue since at the moment of commit, atomic_load_acq_int() did locked cmpxchg on the variable, which puts the cache line into the exclusive owned state and clears store buffers. Then the immediate store of zero has very high chance of reusing the exclusive state of the cache line and make the load and store sequence operate as atomic swap. For now, add the acq+rel fence immediately after the swap, to not disturb current (but excessive) ordering. Acquire is needed for the ih_need reads after the load, while release does not serve a useful purpose [*]. Reviewed by: alc Noted by: alc [*] Discussed with: bde Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks 285606 by kib: Style. Remove excessive brackets. Compare non-boolean with zero. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks The end of the build log: [...truncated 141127 lines...] --- mac_posix_shm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_posix_shm.c --- mac_priv.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_priv.c --- mac_socket.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_socket.c --- ffs_tables.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/ufs/ffs/ffs_tables.c --- default_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/default_pager.c --- device_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/device_pager.c --- phys_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/phys_pager.c --- sg_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/sg_pager.c --- uma_core.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/uma_core.c --- uma_dbg.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/uma_dbg.c --- vm_glue.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_glue.c --- vm_init.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_init.c --- vm_kern.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_kern.c --- vm_meter.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_meter.c --- vm_phys.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_phys.c --- vm_radix.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_radix.c --- vm_reserv.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_reserv.c --- vm_domain.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_domain.c --- vm_unix.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_unix.c --- vm_zeroidle.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_zeroidle.c --- xdr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr.c --- xdr_array.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_array.c --- xdr_mbuf.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_mbuf.c --- xdr_mem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_mem.c --- xdr_reference.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_reference.c --- xdr_sizeof.o --- --- devmap.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm/arm/devmap.c --- xdr_sizeof.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_sizeof.c --- bcopy.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bcopy.c --- bus_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bus_machdep.c --- bus_space_asm.o --- --- clock.o --- --- copystr.o --- --- bus_space_asm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bus_space_asm.S --- clock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/clock.c --- copystr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/copystr.c --- cpufunc_asm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/cpufunc_asm.S --- db_disasm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_disasm.c --- db_interface.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_interface.c --- db_trace.o --- --- debug_monitor.o --- --- db_trace.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_trace.c --- debug_monitor.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/debug_monitor.c --- dump_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/dump_machdep.c --- identcpu.o --- --- in_cksum.o --- --- identcpu.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/identcpu.c --- in_cksum.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/in_cksum.c --- mem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/mem.c --- minidump_machdep.o --- --- stack_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/stack_machdep.c --- minidump_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/minidump_machdep.c --- sys_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/sys_machdep.c --- trap.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/trap.c --- uio_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/uio_machdep.c --- unwind.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/unwind.c --- vfp.o --- --- vm_machdep.o --- --- vfp.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/vfp.c --- vm_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/vm_machdep.c --- bf_enc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/crypto/blowfish/bf_enc.c --- des_enc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/crypto/des/des_enc.c --- psci_arm64.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/psci/psci_arm64.S --- subr_dummy_vdso_tc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/subr_dummy_vdso_tc.c --- bcmp.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/bcmp.c --- ffs.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/ffs.c --- ffsl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/ffsl.c --- fls.o --- --- flsl.o --- --- fls.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/fls.c --- flsl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/flsl.c --- flsll.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/flsll.c --- memmove.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/memmove.c --- memset.o --- --- config.o --- --- memset.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/memset.c --- config.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror config.c --- env.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror env.c --- hints.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror hints.c --- null.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/null/null.c --- randomdev.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/random/randomdev.c --- uart_subr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/uart/uart_subr.c --- if_vtnet.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/network/if_vtnet.c --- virtio_blk.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/block/virtio_blk.c --- watchdog.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/watchdog/watchdog.c --- geom_dev.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/geom/geom_dev.c --- kern_clock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_clock.c --- kern_cpuset.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_cpuset.c --- kern_ffclock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_ffclock.c --- kern_intr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_intr.c --- kern_cpuset.o --- /usr/src/sys/kern/kern_cpuset.c:643:16: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] for (i = 0; i < (_NCPUWORDS - 1); i++) { ~ ^ ~~~~~~~~~~~~~~~~ --- kern_mutex.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_mutex.c --- kern_intr.o --- /usr/src/sys/kern/kern_intr.c:1330:10: error: implicit declaration of function 'atomic_swap_int' is invalid in C99 [-Werror,-Wimplicit-function-declaration] while (atomic_swap_int(&ithd->it_need, 0) != 0) { ^ /usr/src/sys/kern/kern_intr.c:1330:10: note: did you mean 'atomic_swap_64'? ./machine/atomic.h:497:1: note: 'atomic_swap_64' declared here atomic_swap_64(volatile uint64_t *p, uint64_t val) ^ 1 error generated. *** [kern_intr.o] Error code 1 make[2]: stopped in /usr/obj/arm64.aarch64/usr/src/sys/GENERIC --- kern_cpuset.o --- 1 warning generated. 1 error make[2]: stopped in /usr/obj/arm64.aarch64/usr/src/sys/GENERIC *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildkernel] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src Build step 'Execute shell' marked build as failure [PostBuildScript] - Execution post build scripts. [FreeBSD_HEAD_arm64] $ /bin/sh -xe /tmp/hudson936298670270649617.sh + export 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin' + export 'jname=FreeBSD_HEAD_arm64' + echo 'clean up jail FreeBSD_HEAD_arm64' clean up jail FreeBSD_HEAD_arm64 + sudo jail -r FreeBSD_HEAD_arm64 + sudo ifconfig igb0 inet6 2610:1c1:1:607c::104:1 -alias + sudo umount FreeBSD_HEAD_arm64/usr/src + sudo umount FreeBSD_HEAD_arm64/dev + sudo rm -fr FreeBSD_HEAD_arm64 rm: FreeBSD_HEAD_arm64/usr/lib32/librt.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libcrypt.so.5: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libthr.so.3: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libc.so.7: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32: Directory not empty rm: FreeBSD_HEAD_arm64/usr/bin/su: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chpass: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchpass: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/opiepasswd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/crontab: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchsh: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchfn: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/passwd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/yppasswd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/opieinfo: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/login: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chsh: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chfn: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin: Directory not empty rm: FreeBSD_HEAD_arm64/usr/lib/librt.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib: Directory not empty rm: FreeBSD_HEAD_arm64/usr: Directory not empty rm: FreeBSD_HEAD_arm64/lib/libthr.so.3: Operation not permitted rm: FreeBSD_HEAD_arm64/lib/libc.so.7: Operation not permitted rm: FreeBSD_HEAD_arm64/lib/libcrypt.so.5: Operation not permitted rm: FreeBSD_HEAD_arm64/lib: Directory not empty rm: FreeBSD_HEAD_arm64/sbin/init: Operation not permitted rm: FreeBSD_HEAD_arm64/sbin: Directory not empty rm: FreeBSD_HEAD_arm64/libexec/ld-elf.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/libexec/ld-elf32.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/libexec: Directory not empty rm: FreeBSD_HEAD_arm64: Directory not empty + true + sudo chflags -R noschg FreeBSD_HEAD_arm64 + sudo rm -fr FreeBSD_HEAD_arm64 Email was triggered for: Failure - Any Sending email for trigger: Failure - Any From owner-freebsd-arm@freebsd.org Wed Jul 15 20:50:01 2015 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 66EED9A2668 for ; Wed, 15 Jul 2015 20:50:01 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (jenkins-9.freebsd.org [8.8.178.209]) by mx1.freebsd.org (Postfix) with ESMTP id 5167B122A; Wed, 15 Jul 2015 20:50:01 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (localhost [127.0.0.1]) by jenkins-9.freebsd.org (Postfix) with ESMTP id A5906C91; Wed, 15 Jul 2015 20:49:59 +0000 (UTC) Date: Wed, 15 Jul 2015 20:49:57 +0000 (GMT) From: jenkins-admin@FreeBSD.org To: bapt@FreeBSD.org, jenkins-admin@FreeBSD.org, freebsd-arm@FreeBSD.org Message-ID: <1936659331.60.1436993398027.JavaMail.jenkins@jenkins-9.freebsd.org> In-Reply-To: <1066059176.55.1436986217530.JavaMail.jenkins@jenkins-9.freebsd.org> References: <1066059176.55.1436986217530.JavaMail.jenkins@jenkins-9.freebsd.org> Subject: FreeBSD_HEAD_arm64 - Build #608 - Still Failing MIME-Version: 1.0 X-Jenkins-Job: FreeBSD_HEAD_arm64 X-Jenkins-Result: FAILURE Precedence: bulk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 20:50:01 -0000 FreeBSD_HEAD_arm64 - Build #608 - Still Failing: Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/608/ Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/608/changes Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/608/console Change summaries: 285610 by bapt: Fix trimming spaces writing at index -1 if an empty string is passed Submitted by: Gennady Proskurin The end of the build log: [...truncated 141824 lines...] cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_net.c --- mac_posix_sem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_posix_sem.c --- mac_posix_shm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_posix_shm.c --- mac_priv.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_priv.c --- mac_socket.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/security/mac/mac_socket.c --- ffs_tables.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/ufs/ffs/ffs_tables.c --- default_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/default_pager.c --- device_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/device_pager.c --- phys_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/phys_pager.c --- sg_pager.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/sg_pager.c --- uma_core.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/uma_core.c --- uma_dbg.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/uma_dbg.c --- vm_glue.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_glue.c --- vm_init.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_init.c --- vm_kern.o --- --- vm_meter.o --- --- vm_kern.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_kern.c --- vm_meter.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_meter.c --- vm_phys.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_phys.c --- vm_radix.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_radix.c --- vm_reserv.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_reserv.c --- vm_domain.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_domain.c --- vm_unix.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_unix.c --- vm_zeroidle.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/vm/vm_zeroidle.c --- xdr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr.c --- xdr_array.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_array.c --- xdr_mbuf.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_mbuf.c --- xdr_mem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_mem.c --- xdr_reference.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_reference.c --- xdr_sizeof.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/xdr/xdr_sizeof.c --- devmap.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm/arm/devmap.c --- bcopy.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bcopy.c --- bus_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bus_machdep.c --- bus_space_asm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/bus_space_asm.S --- clock.o --- --- copystr.o --- --- clock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/clock.c --- copystr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/copystr.c --- cpufunc_asm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/cpufunc_asm.S --- db_disasm.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_disasm.c --- db_interface.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_interface.c --- db_trace.o --- --- debug_monitor.o --- --- db_trace.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/db_trace.c --- debug_monitor.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/debug_monitor.c --- dump_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/dump_machdep.c --- identcpu.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/identcpu.c --- in_cksum.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/in_cksum.c --- mem.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/mem.c --- minidump_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/minidump_machdep.c --- stack_machdep.o --- --- sys_machdep.o --- --- stack_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/stack_machdep.c --- sys_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/sys_machdep.c --- trap.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/trap.c --- uio_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/uio_machdep.c --- unwind.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/unwind.c --- vfp.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/vfp.c --- vm_machdep.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/arm64/arm64/vm_machdep.c --- bf_enc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/crypto/blowfish/bf_enc.c --- des_enc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/crypto/des/des_enc.c --- psci_arm64.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -x assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/psci/psci_arm64.S --- subr_dummy_vdso_tc.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/subr_dummy_vdso_tc.c --- bcmp.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/bcmp.c --- ffs.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/ffs.c --- ffsl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/ffsl.c --- fls.o --- --- flsl.o --- --- fls.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/fls.c --- flsl.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/flsl.c --- flsll.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/flsll.c --- memmove.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/memmove.c --- memset.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/libkern/memset.c --- config.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror config.c --- env.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror env.c --- hints.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror hints.c --- null.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/null/null.c --- randomdev.o --- --- uart_subr.o --- --- randomdev.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/random/randomdev.c --- uart_subr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/uart/uart_subr.c --- if_vtnet.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/network/if_vtnet.c --- virtio_blk.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/virtio/block/virtio_blk.c --- watchdog.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/dev/watchdog/watchdog.c --- geom_dev.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/geom/geom_dev.c --- kern_clock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_clock.c --- kern_cpuset.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_cpuset.c --- kern_ffclock.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_ffclock.c --- kern_intr.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_intr.c --- kern_cpuset.o --- /usr/src/sys/kern/kern_cpuset.c:643:16: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] for (i = 0; i < (_NCPUWORDS - 1); i++) { ~ ^ ~~~~~~~~~~~~~~~~ --- kern_mutex.o --- cc -B/usr/local/aarch64-freebsd/bin/ -c -O -pipe -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -mgeneral-regs-only -ffixed-x18 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -std=iso9899:1999 -Werror /usr/src/sys/kern/kern_mutex.c --- kern_intr.o --- /usr/src/sys/kern/kern_intr.c:1330:10: error: implicit declaration of function 'atomic_swap_int' is invalid in C99 [-Werror,-Wimplicit-function-declaration] while (atomic_swap_int(&ithd->it_need, 0) != 0) { ^ /usr/src/sys/kern/kern_intr.c:1330:10: note: did you mean 'atomic_swap_64'? ./machine/atomic.h:497:1: note: 'atomic_swap_64' declared here atomic_swap_64(volatile uint64_t *p, uint64_t val) ^ 1 error generated. *** [kern_intr.o] Error code 1 make[2]: stopped in /usr/obj/arm64.aarch64/usr/src/sys/GENERIC --- kern_cpuset.o --- 1 warning generated. 1 error make[2]: stopped in /usr/obj/arm64.aarch64/usr/src/sys/GENERIC *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildkernel] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src Build step 'Execute shell' marked build as failure [PostBuildScript] - Execution post build scripts. [FreeBSD_HEAD_arm64] $ /bin/sh -xe /tmp/hudson7187601980515868787.sh + export 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin' + export 'jname=FreeBSD_HEAD_arm64' + echo 'clean up jail FreeBSD_HEAD_arm64' clean up jail FreeBSD_HEAD_arm64 + sudo jail -r FreeBSD_HEAD_arm64 + sudo ifconfig igb0 inet6 2610:1c1:1:607c::104:1 -alias + sudo umount FreeBSD_HEAD_arm64/usr/src + sudo umount FreeBSD_HEAD_arm64/dev + sudo rm -fr FreeBSD_HEAD_arm64 rm: FreeBSD_HEAD_arm64/libexec/ld-elf32.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/libexec/ld-elf.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/libexec: Directory not empty rm: FreeBSD_HEAD_arm64/lib/libc.so.7: Operation not permitted rm: FreeBSD_HEAD_arm64/lib/libcrypt.so.5: Operation not permitted rm: FreeBSD_HEAD_arm64/lib/libthr.so.3: Operation not permitted rm: FreeBSD_HEAD_arm64/lib: Directory not empty rm: FreeBSD_HEAD_arm64/usr/lib32/librt.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libcrypt.so.5: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libthr.so.3: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32/libc.so.7: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib32: Directory not empty rm: FreeBSD_HEAD_arm64/usr/lib/librt.so.1: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/lib: Directory not empty rm: FreeBSD_HEAD_arm64/usr/bin/chsh: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chfn: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/chpass: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/opieinfo: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/login: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/yppasswd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchpass: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/su: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/crontab: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/passwd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchfn: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/opiepasswd: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin/ypchsh: Operation not permitted rm: FreeBSD_HEAD_arm64/usr/bin: Directory not empty rm: FreeBSD_HEAD_arm64/usr: Directory not empty rm: FreeBSD_HEAD_arm64/sbin/init: Operation not permitted rm: FreeBSD_HEAD_arm64/sbin: Directory not empty rm: FreeBSD_HEAD_arm64: Directory not empty + true + sudo chflags -R noschg FreeBSD_HEAD_arm64 + sudo rm -fr FreeBSD_HEAD_arm64 Email was triggered for: Failure - Any Sending email for trigger: Failure - Any From owner-freebsd-arm@freebsd.org Wed Jul 15 21:30:05 2015 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 85BEF9A3059 for ; Wed, 15 Jul 2015 21:30:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44408186F; Wed, 15 Jul 2015 21:30:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 48C1F1FE022; Wed, 15 Jul 2015 23:30:02 +0200 (CEST) Message-ID: <55A6D121.6000403@selasky.org> Date: Wed, 15 Jul 2015 23:31:13 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Glen Barber , Carl Johnson CC: freebsd-arm@freebsd.org Subject: Re: RPi won't boot 10.2-BETA1 -- SOLVED References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> In-Reply-To: <20150715040109.GV15828@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 15 Jul 2015 21:30:05 -0000 I'm seeing the same problem with RPI-B: U-Boot 2013.01-rc1 (Jul 05 2015 - 05:09:50) DRAM: 224 MiB WARNING: Caches not enabled MMC: bcm2835_sdhci: 0 ** Partition 1 not valid on device 0 ** Failed to register mmc0:1 Using default environment In: serial Out: lcd Err: lcd mbox: Timeout waiting for response bcm2835: Could not set USB power state Net: Net Initialization Skipped No ethernet found. ** Unrecognized filesystem type ** Hit any key to stop autoboot: 0 Booting from: mmc 0 ubldr ** Unrecognized filesystem type ** U-Boot> With multiple SD cards. How can this be solved? --HPS From owner-freebsd-arm@freebsd.org Wed Jul 15 22:53:05 2015 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 98C129A3BF0 for ; Wed, 15 Jul 2015 22:53:05 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (jenkins-9.freebsd.org [8.8.178.209]) by mx1.freebsd.org (Postfix) with ESMTP id 791A21F44; Wed, 15 Jul 2015 22:53:05 +0000 (UTC) (envelope-from jenkins-admin@FreeBSD.org) Received: from jenkins-9.freebsd.org (localhost [127.0.0.1]) by jenkins-9.freebsd.org (Postfix) with ESMTP id 8B9D3CBA; Wed, 15 Jul 2015 22:53:05 +0000 (UTC) Date: Wed, 15 Jul 2015 22:53:04 +0000 (GMT) From: jenkins-admin@FreeBSD.org To: kib@FreeBSD.org, jmg@FreeBSD.org, jenkins-admin@FreeBSD.org, freebsd-arm@FreeBSD.org Message-ID: <1677457271.62.1437000785276.JavaMail.jenkins@jenkins-9.freebsd.org> In-Reply-To: <1936659331.60.1436993398027.JavaMail.jenkins@jenkins-9.freebsd.org> References: <1936659331.60.1436993398027.JavaMail.jenkins@jenkins-9.freebsd.org> Subject: FreeBSD_HEAD_arm64 - Build #609 - Fixed MIME-Version: 1.0 X-Jenkins-Job: FreeBSD_HEAD_arm64 X-Jenkins-Result: SUCCESS Precedence: bulk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 22:53:05 -0000 FreeBSD_HEAD_arm64 - Build #609 - Fixed: Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/609/ Full change log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/609/changes Full build log: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_arm64/609/console Change summaries: 285616 by kib: Do not use atomic_swap_int(9), it is not available on all architectures. Atomic_cmpset_int(9) is a direct replacement, due to loop. The change fixes arm, arm64, mips an sparc64, which lack atomic_swap(). Suggested and reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks 285615 by jmg: fix the docs, the number of frags per inode (NFPI) changed in r228794 to 2 from 4, but the man page didn't get updated... other minor changes to make igor happy... MFC after: 3 days From owner-freebsd-arm@freebsd.org Thu Jul 16 03:15:43 2015 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 9C23699C2E3 for ; Thu, 16 Jul 2015 03:15:43 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) (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 7671711FE for ; Thu, 16 Jul 2015 03:15:43 +0000 (UTC) (envelope-from tim@kientzle.com) Received: by pdbqm3 with SMTP id qm3so36006865pdb.0 for ; Wed, 15 Jul 2015 20:15:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=Q9pnc0nifdVp7ZTvPym40vx+Y6ANMYAK+0C6uvGRPuU=; b=FH/ldy3AkTwgs+mLOLpQHIAOPZ37m/rKNuLQ+G/iVtiTBY4rw1S8oHN72hCsndqQsb UVMt5CLv2oBzwxAdYVPXzITx9A4lFhu5n3tBbMhHGBbGzz206kX6XtSzHclEsQgUvcMs In+/oMN3XQU+jywtJJZyi0sk1OcMdqjTmC8ZyJMgTAF6otuSu2IbtrWPkmC4oAZB2Qxp KJEPtm0t78gQ0hEjnGUBoFdNpTzbAO6LrZrjjtRI5TdpOTv/cskJuDDQoYw7GZBdQURI Q2HdioAOUKz8XYECnPbglMGYjN4VIHXTkLtgX54oDGw6cPeTKQ+GqgC+U/a8elWZMuj5 vgqg== X-Gm-Message-State: ALoCoQliimPM8HW/djynC18vTufLHsQo4CDgQfNsSua1dVl8pXSRGZEL8qo9/cimGGQRtU744cNr X-Received: by 10.68.247.166 with SMTP id yf6mr14112619pbc.3.1437016536699; Wed, 15 Jul 2015 20:15:36 -0700 (PDT) Received: from [192.168.1.102] (c-24-6-220-224.hsd1.ca.comcast.net. [24.6.220.224]) by smtp.gmail.com with ESMTPSA id cq5sm6141629pad.11.2015.07.15.20.15.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 20:15:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: ubldr vs ubldr.bin? From: Tim Kientzle In-Reply-To: <1436978285.1334.335.camel@freebsd.org> Date: Wed, 15 Jul 2015 20:15:30 -0700 Cc: Ronald Klop , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1436978285.1334.335.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.2098) 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: Thu, 16 Jul 2015 03:15:43 -0000 > On Jul 15, 2015, at 9:38 AM, Ian Lepore wrote: >=20 > ubldr.bin is a raw executable image > (no elf headers) which is self-relocating and can be loaded at any > address. =E2=80=A6 a common armv6[hf] userland that runs > on any board. Previously the single userland difference between = various > arm boards is that UBLDR_LOADADDR was different for each board. Wonderful! Nice work. > =E2=80=A6 and ubldr is still > being built only for compatibility with people that have older u-boot > installed. Hmmm=E2=80=A6. I wonder how Crochet should handle this. Plenty of = folks use Crochet to build 10-STABLE and 10.1 images, so we have to be a = little careful about jumping ahead with new features that are only = available in 11-CURRENT. Any plans to MFC this? Tim From owner-freebsd-arm@freebsd.org Thu Jul 16 03:17:24 2015 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 97A5099C310 for ; Thu, 16 Jul 2015 03:17:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) (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 67588125F for ; Thu, 16 Jul 2015 03:17:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by iecuq6 with SMTP id uq6so47486856iec.2 for ; Wed, 15 Jul 2015 20:17:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=NMJLyUwTzv/tbWy6qiU4Jqb3B/ycjaaClKzhQPwOUSc=; b=LTP/bmfO3oEK3415ZVn9yRLHz4Cj3kvJy5co0bn/lHsJOdoy5uyeQjA/eeteePpVtS 4FfnGwA7W+DntPy4b4wAqAJ6qYT2xdZ8jN9HXJGeGIDqxC8g7p/fS1Bj2BCBqVvHs6dl A2Q3wcAr3EPbNs+KHZNdMGnRSqR4Q/Xptn4R7uflLZobaUAgAYLlX7ioIK+00QA+dRpf xy5FdZmUiHXv8c9POSdgyGDHs5GFIcia59gxgfrrYcU+q/tD1GtfYN74izJmHIE/Blal M6+z0787y6jCqsJ/8EuBO1p/5uwCai67JRm3AR0tg24UJQyqAMnfvXOIrxqjQ3PDxjxu U8HQ== X-Gm-Message-State: ALoCoQmDAyc0gkLSSRrAKevgSLk3FmKB4lbptRgoqNE2vyB9UUdtBDiqv0h2ouAdwF/28reWvxEN X-Received: by 10.50.142.69 with SMTP id ru5mr1531206igb.61.1437016642684; Wed, 15 Jul 2015 20:17:22 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id ns7sm740452igb.0.2015.07.15.20.17.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 20:17:21 -0700 (PDT) Sender: Warner Losh Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_F0D725CC-9AED-4070-97FF-B0CD0208F547"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <55A5A3F4.7040105@foxvalley.net> Date: Wed, 15 Jul 2015 21:17:21 -0600 Cc: freebsd-arm@freebsd.org Message-Id: References: <55A5A3F4.7040105@foxvalley.net> To: Dan Raymond X-Mailer: Apple Mail (2.2102) 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: Thu, 16 Jul 2015 03:17:24 -0000 --Apple-Mail=_F0D725CC-9AED-4070-97FF-B0CD0208F547 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 14, 2015, at 6:06 PM, Dan Raymond = wrote: >=20 > Is anyone else getting these errors during every boot? I'm running = r285346. I=E2=80=99ve been running on the RPi2 for some time and have never seen = this. I haven=E2=80=99t rebuild in the past few weeks though. Does this happen on either SD cards? Or other versions of the kernel? Warner --Apple-Mail=_F0D725CC-9AED-4070-97FF-B0CD0208F547 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVpyJBAAoJEGwc0Sh9sBEAMFEP/1dDqWTM9O2JFeRM7bbaEDcS o2hw/KoJJW7k0ndJIEqr5yAi03G4rt3r/4ggbDLXynikQeTLOCAJB6NN+N201HCk 9d+OcEvfETGypMYoPzZEJR9HcZeHx3QvBhZo7LFZU3sJ2u/uneoI8pi8tNAUw68+ FC7zFo/1efM7Gn4QXuwSHgvJAw2FMTe22f3m5Mhc7iwe6atlwQF3GfOKqhZuOP/r qrdfK561qeVqxF3T1LsN2NgIZgIDEMvn2nwQKpdnkenkO0SQTwLzd9ZPLWa2CdzU A/bqP1tt0TI4LK4hdTsnLjhzcbh4D2QB1OSeF5XesXqc7NjfqAfhmPMOb2bcK+Hj gFFoZpyURBTAY7Ks4eOKNF4qMrjrdya09OBF2CV+0Wm2UyCtILXrPJophHSwYy9J F9SQpaLFDYwIBuyDZgUqJjt25OdHYwsDiF+KnXUuEyvUj8P4O/H0K7RKRyxcWKEO eCJuKYC4OVTB35bGklBlapHC7MmUkNcsRUkISITQVWkMDN3tzswQg14J3jFzeytR KlD72Sb6b+7EvAK3k/vYCqmDduxsEH3+wcml8bCq1YTHuNQQfoBt1ghACUmPXXvR OM/Spv7HXkx8oSx656z/24WUZbg6xshdDoaelew9JiWicK1cFPVjtYE5zx4osRiV PUn3VHmoqyW9oDMouseR =SoMu -----END PGP SIGNATURE----- --Apple-Mail=_F0D725CC-9AED-4070-97FF-B0CD0208F547-- From owner-freebsd-arm@freebsd.org Thu Jul 16 04:03:42 2015 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 B72459A30E9 for ; Thu, 16 Jul 2015 04:03:42 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id 98CFF1DBD for ; Thu, 16 Jul 2015 04:03:42 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Thu, 16 Jul 2015 04:02:04 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6G43Y1M053079; Wed, 15 Jul 2015 22:03:34 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1437019414.1334.355.camel@freebsd.org> Subject: Re: ubldr vs ubldr.bin? From: Ian Lepore To: Tim Kientzle Cc: freebsd-arm@freebsd.org Date: Wed, 15 Jul 2015 22:03:34 -0600 In-Reply-To: References: <1436978285.1334.335.camel@freebsd.org> Content-Type: text/plain; charset="windows-1251" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Thu, 16 Jul 2015 04:03:42 -0000 On Wed, 2015-07-15 at 20:15 -0700, Tim Kientzle wrote: > > On Jul 15, 2015, at 9:38 AM, Ian Lepore wrote: > > > > ubldr.bin is a raw executable image > > (no elf headers) which is self-relocating and can be loaded at any > > address. … a common armv6[hf] userland that runs > > on any board. Previously the single userland difference between various > > arm boards is that UBLDR_LOADADDR was different for each board. > > Wonderful! Nice work. > > > > … and ubldr is still > > being built only for compatibility with people that have older u-boot > > installed. > > Hmmm…. I wonder how Crochet should handle this. Plenty of folks use Crochet to build 10-STABLE and 10.1 images, so we have to be a little careful about jumping ahead with new features that are only available in 11-CURRENT. > > Any plans to MFC this? > > Tim It has all been MFC'd to 10-stable around the end of May and will be in 10.2. The only missing piece is changes to the u-boot ports. I got started on that, got like just wandboard done (but not comitted, I'm not actually a ports committer so I have to get someone's approval to commit), then this crazy-deadline project came up at work. -- Ian From owner-freebsd-arm@freebsd.org Thu Jul 16 05:09:59 2015 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 6AA1E9A3A7F for ; Thu, 16 Jul 2015 05:09:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 4A4B511D5 for ; Thu, 16 Jul 2015 05:09:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 44B84EFFC; Thu, 16 Jul 2015 05:09:59 +0000 (UTC) Date: Thu, 16 Jul 2015 05:09:59 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3106+327+b28f69eb027ff4f2@FreeBSD.org Subject: [Differential] [Request, 5 lines] D3106: Fix possible coherency issues between PEs related to I-cache Message-ID: X-Priority: 3 Thread-Topic: D3106: Fix possible coherency issues between PEs related to I-cache X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: MjNjMTI1ZTZiZGVmZmU3NDRjM2FmNmIzZTA3 Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_c4ac98e6957a6929455f88ceeb97fdf6" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 05:09:59 -0000 --b1_c4ac98e6957a6929455f88ceeb97fdf6 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: andrew, emaste, zbb. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY Basing on B.2.3.4: Synchronization and coherency issues between data and instruction accesses. To ensure that modified instructions are visible to all PEs in a shareability domain one need to perform following sequence: 1. Clean D-cache 2. Ensure the visibility of data cleaned from cache 3. Invalidate I-cache 4. Ensure completion 5. In SMP system PE must issue isb to ensure execution of the modified instructions REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3106 AFFECTED FILES sys/arm64/arm64/cpufunc_asm.S CHANGE DETAILS diff --git a/sys/arm64/arm64/cpufunc_asm.S b/sys/arm64/arm64/cpufunc_asm.S --- a/sys/arm64/arm64/cpufunc_asm.S +++ b/sys/arm64/arm64/cpufunc_asm.S @@ -61,17 +61,18 @@ add x1, x1, x2 /* Add these to the size */ bic x0, x0, x4 /* Clear the low bit of the address */ 1: + dc \dcop, x0 + dsb ish .if \ic != 0 ic \icop, x0 + dsb ish .endif - dc \dcop, x0 add x0, x0, x3 /* Move to the next line */ subs x1, x1, x3 /* Reduce the size */ b.hi 1b /* Check if we are done */ .if \ic != 0 isb .endif - dsb ish ret .endm EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, andrew, emaste, zbb Cc: imp, andrew, freebsd-arm-list, emaste --b1_c4ac98e6957a6929455f88ceeb97fdf6 Content-Type: text/x-patch; charset=utf-8; name="D3106.6995.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3106.6995.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9jcHVmdW5jX2FzbS5TIGIvc3lzL2FybTY0L2Fy bTY0L2NwdWZ1bmNfYXNtLlMKLS0tIGEvc3lzL2FybTY0L2FybTY0L2NwdWZ1bmNfYXNtLlMKKysr IGIvc3lzL2FybTY0L2FybTY0L2NwdWZ1bmNfYXNtLlMKQEAgLTYxLDE3ICs2MSwxOCBAQAogCWFk ZAl4MSwgeDEsIHgyCQkvKiBBZGQgdGhlc2UgdG8gdGhlIHNpemUgKi8KIAliaWMJeDAsIHgwLCB4 NAkJLyogQ2xlYXIgdGhlIGxvdyBiaXQgb2YgdGhlIGFkZHJlc3MgKi8KIDE6CisJZGMJXGRjb3As IHgwCisJZHNiCWlzaAogLmlmIFxpYyAhPSAwCiAJaWMJXGljb3AsIHgwCisJZHNiCWlzaAogLmVu ZGlmCi0JZGMJXGRjb3AsIHgwCiAJYWRkCXgwLCB4MCwgeDMJCS8qIE1vdmUgdG8gdGhlIG5leHQg bGluZSAqLwogCXN1YnMJeDEsIHgxLCB4MwkJLyogUmVkdWNlIHRoZSBzaXplICovCiAJYi5oaQkx YgkJCS8qIENoZWNrIGlmIHdlIGFyZSBkb25lICovCiAuaWYgXGljICE9IDAKIAlpc2IKIC5lbmRp ZgotCWRzYglpc2gKIAlyZXQKIC5lbmRtCiAKCg== --b1_c4ac98e6957a6929455f88ceeb97fdf6-- From owner-freebsd-arm@freebsd.org Thu Jul 16 07:33:34 2015 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 009C79A3D29 for ; Thu, 16 Jul 2015 07:33:34 +0000 (UTC) (envelope-from tuexen@fh-muenster.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail-n.franken.de", Issuer "Thawte DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A71A1C9E for ; Thu, 16 Jul 2015 07:33:33 +0000 (UTC) (envelope-from tuexen@fh-muenster.de) Received: from [192.168.1.200] (p4FE31A5B.dip0.t-ipconnect.de [79.227.26.91]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 8D8D81C0B462F; Thu, 16 Jul 2015 09:33:29 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Michael Tuexen In-Reply-To: Date: Thu, 16 Jul 2015 09:33:28 +0200 Cc: Dan Raymond , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1B7FD2F7-60D4-44AD-A2EA-5AA1159BAB4B@fh-muenster.de> References: <55A5A3F4.7040105@foxvalley.net> To: Warner Losh X-Mailer: Apple Mail (2.2102) 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: Thu, 16 Jul 2015 07:33:34 -0000 > On 16 Jul 2015, at 05:17, Warner Losh wrote: >=20 >=20 >> On Jul 14, 2015, at 6:06 PM, Dan Raymond = wrote: >>=20 >> Is anyone else getting these errors during every boot? I'm running = r285346. >=20 > I=E2=80=99ve been running on the RPi2 for some time and have never = seen this. I haven=E2=80=99t > rebuild in the past few weeks though. >=20 > Does this happen on either SD cards? Or other versions of the kernel? I'm observing this for quite a while, reproducible exactly once during every boot on a RPI2. Here is the what I see: > uname -a FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #28 r285595M: Wed Jul 15 = 11:26:48 CEST 2015 = tuexen@rpi2:/usr/home/tuexen/head/sys/arm/compile/RPI2 arm > dmesg KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #28 r285595M: Wed Jul 15 11:26:48 CEST 2015 tuexen@rpi2:/usr/home/tuexen/head/sys/arm/compile/RPI2 arm FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225 VT: init without driver. sema_sysinit CPU: Cortex A7 rev 5 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:3 LoUIS:2=20 Cache level 1:=20 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2:=20 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory =3D 989851648 (943 MB) avail memory =3D 958423040 (914 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: mem 0x3f000000-0x3fffffff = on ofwbus0 bcm28360: generic_timer0: irq 72,73,75,74 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 intc0: mem 0xb200-0xb3ff on simplebus0 bcmwd0: mem 0x10001c-0x100027 on simplebus0 gpio0: mem 0x200000-0x2000af irq = 57,59,58,60 on simplebus0 gpio0: read-only pins: 46,48-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin(s) 35 on gpiobus0 gpioled1: at pin(s) 47 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f irq 61 on = simplebus0 iicbus0: on iichb0 iic0: on iicbus0 iichb1: mem 0x804000-0x80401f irq 61 on = simplebus0 iicbus1: on iichb1 iic1: on iicbus1 spi0: mem 0x204000-0x20401f irq 62 on = simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff = irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 sdhci_bcm0: mem 0x300000-0x3000ff irq = 70 on simplebus0 mmc0: on sdhci_bcm0 uart0: mem 0x201000-0x201fff irq 65 on = simplebus0 uart0: console (115200,n,8,1) vchiq0: mem 0xb800-0xb84f irq 2 on simplebus0 vchiq0: [GIANT-LOCKED] vchiq: local ver 6 (min 3), remote ver 6. pcm0: on vchiq0 bcm283x_dwcotg0: mem = 0x980000-0x99ffff irq 17 on simplebus0 usbus0 on bcm283x_dwcotg0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 fb0: on ofwbus0 fbd0 on fb0 VT: initialize with new VT driver "fb". fb0: 656x416(656x416@0,0) 24bpp fb0: fbswap: 1, pitch 1968, base 0x3daac000, screen_size 818688 cryptosoft0: Timecounters tick every 10.000 msec IPsec: Initialized Security Association Processing. usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active = command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER = DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active = command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER = DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active = command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER = DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active = command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER = DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D uhub0: 1 port with 1 removable, self powered mmc0: CMD7 failed, RESULT: 1 mmcsd0: 32GB at mmc0 = 41.6MHz/4bit/65535-block bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF Release APs Root mount waiting for: usbus0 ugen0.2: at usbus0 uhub1: = on usbus0 uhub1: MTT enabled Root mount waiting for: usbus0 uhub1: 5 ports with 4 removable, self powered Root mount waiting for: usbus0 ugen0.3: at usbus0 smsc0: on usbus0 Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... warning: no time-of-day clock registered, system time will not be set = accurately smsc0: chip 0xec00, rev. 0002 miibus0: on smsc0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on smsc0 ue0: Ethernet address: b8:27:eb:81:ba:40 random: unblocking device. smsc0: chip 0xec00, rev. 0002 ue0: link state changed to DOWN ue0: link state changed to UP >=20 Best regards Michael >=20 > Warner >=20 From owner-freebsd-arm@freebsd.org Thu Jul 16 07:39:22 2015 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 E1EA29A3D80 for ; Thu, 16 Jul 2015 07:39:21 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C0AA71D79 for ; Thu, 16 Jul 2015 07:39:21 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id BD7CE9A3D7F; Thu, 16 Jul 2015 07:39:21 +0000 (UTC) Delivered-To: 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 BCDD49A3D7E for ; Thu, 16 Jul 2015 07:39:21 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (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 830B81D78 for ; Thu, 16 Jul 2015 07:39:21 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by oihq81 with SMTP id q81so45095317oih.2 for ; Thu, 16 Jul 2015 00:39:21 -0700 (PDT) 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 :content-type; bh=zrqxuJ2go2oIRVSu7h8sH/rgkkRl7jRmtPt/9tQOPvI=; b=TDSK6FMapGwM5q6w9a/c4X3JNxTYIu1c5ntAG5co+bqxf7Ya3HyCvIo+enlooDPgbQ oN/fzUe17oTPQmrKZ8ErQ6NFp+bPfS+5ag2uWp+j56o9gauBf6dD3FW8Tn76FcporTbo cbaGBw7o0KzT66Upiqj6I2xj6I9EYmnHPdjl8e8XEYTVlOc86zZeBF4kgORL9JCSQpl9 UWOm3vEJLma8xRGkp4/29PE5YA1ZQuAVddPOzXdC4nTG82qlsH5n78ae7AYmItSB9DOk kylI3CDaw7JfQrB2+wub5K4X55hKdcjGLXcOACTLwYbDoIaGdZVjkOqEEdhcFwfMLAxi p/DQ== MIME-Version: 1.0 X-Received: by 10.202.168.208 with SMTP id r199mr7118915oie.134.1437032360917; Thu, 16 Jul 2015 00:39:20 -0700 (PDT) Received: by 10.182.103.165 with HTTP; Thu, 16 Jul 2015 00:39:20 -0700 (PDT) In-Reply-To: <1B7FD2F7-60D4-44AD-A2EA-5AA1159BAB4B@fh-muenster.de> References: <55A5A3F4.7040105@foxvalley.net> <1B7FD2F7-60D4-44AD-A2EA-5AA1159BAB4B@fh-muenster.de> Date: Thu, 16 Jul 2015 16:39:20 +0900 Message-ID: Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Ganbold Tsagaankhuu To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 16 Jul 2015 07:39:22 -0000 On Thu, Jul 16, 2015 at 4:33 PM, Michael Tuexen wrote: > > On 16 Jul 2015, at 05:17, Warner Losh wrote: > > > > > >> On Jul 14, 2015, at 6:06 PM, Dan Raymond > wrote: > >> > >> Is anyone else getting these errors during every boot? I'm running > r285346. > > > > I=E2=80=99ve been running on the RPi2 for some time and have never seen= this. I > haven=E2=80=99t > > rebuild in the past few weeks though. > > > > Does this happen on either SD cards? Or other versions of the kernel? > I'm observing this for quite a while, reproducible exactly once during > every boot on a RPI2. > Here is the what I see: > > > uname -a > FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #28 r285595M: Wed Jul 15 > 11:26:48 CEST 2015 tuexen@rpi2:/usr/home/tuexen/head/sys/arm/compile/= RPI2 > arm > I see similar messages on: FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r284969: Wed Jul 1 07:15:58 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUMP = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUMP = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUMP = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUMP = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D uhub0: 1 port with 1 removable, self powered mmc0: CMD7 failed, RESULT: 1 mmcsd0: 32GB at mmc0 41.6MHz/4bit/65535-block Ganbold > > dmesg > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2015 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #28 r285595M: Wed Jul 15 11:26:48 CEST 2015 > tuexen@rpi2:/usr/home/tuexen/head/sys/arm/compile/RPI2 arm > FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225 > VT: init without driver. > sema_sysinit > CPU: Cortex A7 rev 5 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB disabled EABT branch prediction enabled > LoUU:2 LoC:3 LoUIS:2 > Cache level 1: > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > 32KB/32B 2-way instruction cache Read-Alloc > Cache level 2: > 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > real memory =3D 989851648 (943 MB) > avail memory =3D 958423040 (914 MB) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: entropy device external interface > kbd0 at kbdmux0 > ofwbus0: > simplebus0: mem 0x3f000000-0x3fffffff > on ofwbus0 > bcm28360: > generic_timer0: irq 72,73,75,74 on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 > intc0: mem 0xb200-0xb3ff on simplebus0 > bcmwd0: mem 0x10001c-0x100027 on simplebus0 > gpio0: mem 0x200000-0x2000af irq > 57,59,58,60 on simplebus0 > gpio0: read-only pins: 46,48-53. > gpio0: reserved pins: 48-53. > gpiobus0: on gpio0 > gpioled0: at pin(s) 35 on gpiobus0 > gpioled1: at pin(s) 47 on gpiobus0 > gpioc0: on gpio0 > iichb0: mem 0x205000-0x20501f irq 61 on > simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f irq 61 on > simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > spi0: mem 0x204000-0x20401f irq 62 on > simplebus0 > spibus0: on spi0 > bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff ir= q > 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 > mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 > sdhci_bcm0: mem 0x300000-0x3000ff irq 70 > on simplebus0 > mmc0: on sdhci_bcm0 > uart0: mem 0x201000-0x201fff irq 65 on simplebus= 0 > uart0: console (115200,n,8,1) > vchiq0: mem 0xb800-0xb84f irq 2 on simplebus0 > vchiq0: [GIANT-LOCKED] > vchiq: local ver 6 (min 3), remote ver 6. > pcm0: on vchiq0 > bcm283x_dwcotg0: mem > 0x980000-0x99ffff irq 17 on simplebus0 > usbus0 on bcm283x_dwcotg0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > fb0: on ofwbus0 > fbd0 on fb0 > VT: initialize with new VT driver "fb". > fb0: 656x416(656x416@0,0) 24bpp > fb0: fbswap: 1, pitch 1968, base 0x3daac000, screen_size 818688 > cryptosoft0: > Timecounters tick every 10.000 msec > IPsec: Initialized Security Association Processing. > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active > command. > sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUM= P =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 > sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 > sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b > sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 > sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 > sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 > sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 > sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb > sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 > sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 > sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active > command. > sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUM= P =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 > sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 > sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b > sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 > sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 > sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 > sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 > sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb > sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 > sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 > sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active > command. > sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUM= P =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 > sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 > sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b > sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 > sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 > sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 > sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 > sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb > sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 > sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 > sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active > command. > sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER DUM= P =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 > sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 > sdhci_bcm0-slot0: Argument: 0xaaaa0000 | Trn mode: 0x0000071b > sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 > sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 > sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 > sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 > sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb > sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 > sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 > sdhci_bcm0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > uhub0: 1 port with 1 removable, self powered > mmc0: CMD7 failed, RESULT: 1 > mmcsd0: 32GB at mmc0 > 41.6MHz/4bit/65535-block > bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF > Release APs > Root mount waiting for: usbus0 > ugen0.2: at usbus0 > uhub1: o= n > usbus0 > uhub1: MTT enabled > Root mount waiting for: usbus0 > uhub1: 5 ports with 4 removable, self powered > Root mount waiting for: usbus0 > ugen0.3: at usbus0 > smsc0: on usbus0 > Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... > warning: no time-of-day clock registered, system time will not be set > accurately > smsc0: chip 0xec00, rev. 0002 > miibus0: on smsc0 > ukphy0: PHY 1 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ue0: on smsc0 > ue0: Ethernet address: b8:27:eb:81:ba:40 > random: unblocking device. > smsc0: chip 0xec00, rev. 0002 > ue0: link state changed to DOWN > ue0: link state changed to UP > > > > Best regards > Michael > > > > Warner > > > > _______________________________________________ > 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" > From owner-freebsd-arm@freebsd.org Thu Jul 16 08:07:55 2015 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 7FD769A3424 for ; Thu, 16 Jul 2015 08:07:55 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 5C3DA1AD0 for ; Thu, 16 Jul 2015 08:07:55 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 4D6F8E620; Thu, 16 Jul 2015 08:07:55 +0000 (UTC) Date: Thu, 16 Jul 2015 08:07:55 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Updated, 36 lines] D3094: Fix KSTACK_PAGES issue Message-ID: <650f3ea76342ed7bb6a1b7b013892b85@localhost.localdomain> X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWnZls= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_650f3ea76342ed7bb6a1b7b013892b85" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 08:07:55 -0000 --b1_650f3ea76342ed7bb6a1b7b013892b85 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com retitled this revision from "Fix ARMv8 KSTACK_PAGES issue" to "Fix KSTACK_PAGES issue". wma_semihalf.com updated this revision to Diff 6999. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3094?vs=6960&id=6999 REVISION DETAIL https://reviews.freebsd.org/D3094 AFFECTED FILES sys/amd64/amd64/stack_machdep.c sys/arm/arm/machdep.c sys/arm/at91/at91_machdep.c sys/arm/cavium/cns11xx/econa_machdep.c sys/arm/samsung/s3c2xx0/s3c24x0_machdep.c sys/arm/xscale/i80321/ep80219_machdep.c sys/arm/xscale/i80321/iq31244_machdep.c sys/arm/xscale/i8134x/crb_machdep.c sys/arm/xscale/ixp425/avila_machdep.c sys/arm/xscale/pxa/pxa_machdep.c sys/arm64/arm64/locore.S sys/arm64/arm64/mp_machdep.c sys/arm64/arm64/swtch.S sys/ddb/db_ps.c sys/ddb/db_sym.c sys/i386/i386/locore.s sys/i386/i386/stack_machdep.c sys/powerpc/booke/pmap.c sys/sparc64/sparc64/exception.S sys/sparc64/sparc64/stack_machdep.c sys/sparc64/sparc64/support.S sys/x86/xen/pv.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: kib, imp, andrew, freebsd-arm-list, emaste --b1_650f3ea76342ed7bb6a1b7b013892b85 Content-Type: text/x-patch; charset=utf-8; name="D3094.6999.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3094.6999.patch" ZGlmZiAtLWdpdCBhL3N5cy94ODYveGVuL3B2LmMgYi9zeXMveDg2L3hlbi9wdi5jCi0tLSBhL3N5 cy94ODYveGVuL3B2LmMKKysrIGIvc3lzL3g4Ni94ZW4vcHYuYwpAQCAtMzEsNiArMzEsNyBAQAog X19GQlNESUQoIiRGcmVlQlNEJCIpOwogCiAjaW5jbHVkZSAib3B0X2RkYi5oIgorI2luY2x1ZGUg Im9wdF9rc3RhY2tfcGFn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5oIgpkaWZmIC0tZ2l0IGEvc3lzL2Ft ZDY0L2FtZDY0L3N0YWNrX21hY2hkZXAuYyBiL3N5cy9hbWQ2NC9hbWQ2NC9zdGFja19tYWNoZGVw LmMKLS0tIGEvc3lzL2FtZDY0L2FtZDY0L3N0YWNrX21hY2hkZXAuYworKysgYi9zeXMvYW1kNjQv YW1kNjQvc3RhY2tfbWFjaGRlcC5jCkBAIC0yNyw2ICsyNyw4IEBACiAjaW5jbHVkZSA8c3lzL2Nk ZWZzLmg+CiBfX0ZCU0RJRCgiJEZyZWVCU0QkIik7CiAKKyNpbmNsdWRlICJvcHRfa3N0YWNrX3Bh Z2VzLmgiCisKICNpbmNsdWRlIDxzeXMvcGFyYW0uaD4KICNpbmNsdWRlIDxzeXMvc3lzdG0uaD4K ICNpbmNsdWRlIDxzeXMvcHJvYy5oPgoK --b1_650f3ea76342ed7bb6a1b7b013892b85-- From owner-freebsd-arm@freebsd.org Thu Jul 16 08:22:49 2015 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 3C7309A3714 for ; Thu, 16 Jul 2015 08:22:49 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0FB1214 for ; Thu, 16 Jul 2015 08:22:49 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id B9820EC5B; Thu, 16 Jul 2015 08:22:48 +0000 (UTC) Date: Thu, 16 Jul 2015 08:22:48 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Updated, 27 lines] D3093: ARM64 TCR register update Message-ID: X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWnadg= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_c27a3d58d9ec98fe7aeab5af4c0d0102" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 08:22:49 -0000 --b1_c27a3d58d9ec98fe7aeab5af4c0d0102 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com retitled this revision from "ARMv8 locore.S cleanup and TCR register update" to "ARM64 TCR register update". wma_semihalf.com updated the summary for this revision. wma_semihalf.com updated this revision to Diff 7000. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3093?vs=6962&id=7000 REVISION DETAIL https://reviews.freebsd.org/D3093 AFFECTED FILES sys/arm64/arm64/locore.S sys/arm64/include/armreg.h CHANGE DETAILS diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -200,6 +200,28 @@ #define TCR_TG1_4K (2 << TCR_TG1_SHIFT) #define TCR_TG1_64K (3 << TCR_TG1_SHIFT) +#define TCR_SH1_SHIFT 28 +#define TCR_SH1_IS (0x3UL << TCR_SH1_SHIFT) +#define TCR_ORGN1_SHIFT 26 +#define TCR_ORGN1_WBWA (0x1UL << TCR_ORGN1_SHIFT) +#define TCR_IRGN1_SHIFT 24 +#define TCR_IRGN1_WBWA (0x1UL << TCR_IRGN1_SHIFT) +#define TCR_SH0_SHIFT 12 +#define TCR_SH0_IS (0x3UL << TCR_SH0_SHIFT) +#define TCR_ORGN0_SHIFT 10 +#define TCR_ORGN0_WBWA (0x1UL << TCR_ORGN0_SHIFT) +#define TCR_IRGN0_SHIFT 8 +#define TCR_IRGN0_WBWA (0x1UL << TCR_IRGN0_SHIFT) + +#define TCR_CACHE_ATTRS ((TCR_IRGN0_WBWA | TCR_IRGN1_WBWA) |\ + (TCR_ORGN0_WBWA | TCR_ORGN1_WBWA)) + +#ifdef SMP +#define TCR_SMP_ATTRS (TCR_SH0_IS | TCR_SH1_IS) +#else +#define TCR_SMP_ATTRS 0 +#endif + #define TCR_T1SZ_SHIFT 16 #define TCR_T0SZ_SHIFT 0 #define TCR_TxSZ(x) (((x) << TCR_T1SZ_SHIFT) | ((x) << TCR_T0SZ_SHIFT)) diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -27,6 +27,8 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" + #include #include #include @@ -535,7 +537,8 @@ /* Device Normal, no cache Normal, write-back */ .quad MAIR_ATTR(0x00, 0) | MAIR_ATTR(0x44, 1) | MAIR_ATTR(0xff, 2) tcr: - .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K) + .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K | \ + TCR_CACHE_ATTRS | TCR_SMP_ATTRS) sctlr_set: /* Bits to set */ .quad (SCTLR_UCI | SCTLR_nTWE | SCTLR_nTWI | SCTLR_UCT | SCTLR_DZE | \ EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_c27a3d58d9ec98fe7aeab5af4c0d0102 Content-Type: text/x-patch; charset=utf-8; name="D3093.7000.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3093.7000.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9pbmNsdWRlL2FybXJlZy5oIGIvc3lzL2FybTY0L2luY2x1 ZGUvYXJtcmVnLmgKLS0tIGEvc3lzL2FybTY0L2luY2x1ZGUvYXJtcmVnLmgKKysrIGIvc3lzL2Fy bTY0L2luY2x1ZGUvYXJtcmVnLmgKQEAgLTIwMCw2ICsyMDAsMjggQEAKICNkZWZpbmUJVENSX1RH MV80SwkoMiA8PCBUQ1JfVEcxX1NISUZUKQogI2RlZmluZQlUQ1JfVEcxXzY0SwkoMyA8PCBUQ1Jf VEcxX1NISUZUKQogCisjZGVmaW5lCVRDUl9TSDFfU0hJRlQJMjgKKyNkZWZpbmUJVENSX1NIMV9J UwkoMHgzVUwgPDwgVENSX1NIMV9TSElGVCkKKyNkZWZpbmUJVENSX09SR04xX1NISUZUCTI2Cisj ZGVmaW5lCVRDUl9PUkdOMV9XQldBCSgweDFVTCA8PCBUQ1JfT1JHTjFfU0hJRlQpCisjZGVmaW5l CVRDUl9JUkdOMV9TSElGVAkyNAorI2RlZmluZQlUQ1JfSVJHTjFfV0JXQQkoMHgxVUwgPDwgVENS X0lSR04xX1NISUZUKQorI2RlZmluZQlUQ1JfU0gwX1NISUZUCTEyCisjZGVmaW5lCVRDUl9TSDBf SVMJKDB4M1VMIDw8IFRDUl9TSDBfU0hJRlQpCisjZGVmaW5lCVRDUl9PUkdOMF9TSElGVAkxMAor I2RlZmluZQlUQ1JfT1JHTjBfV0JXQQkoMHgxVUwgPDwgVENSX09SR04wX1NISUZUKQorI2RlZmlu ZQlUQ1JfSVJHTjBfU0hJRlQJOAorI2RlZmluZQlUQ1JfSVJHTjBfV0JXQQkoMHgxVUwgPDwgVENS X0lSR04wX1NISUZUKQorCisjZGVm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WSVJUX0JJVFMpIHwgVENSX0FTSURfMTYgfCBUQ1JfVEcx XzRLKQorCS5xdWFkIChUQ1JfVHhTWig2NCAtIFZJUlRfQklUUykgfCBUQ1JfQVNJRF8xNiB8IFRD Ul9URzFfNEsgfCBcCisJICAgIFRDUl9DQUNIRV9BVFRSUyB8IFRDUl9TTVBfQVRUUlMpCiBzY3Rs cl9zZXQ6CiAJLyogQml0cyB0byBzZXQgKi8KIAkucXVhZCAoU0NUTFJfVUNJIHwgU0NUTFJfblRX RSB8IFNDVExSX25UV0kgfCBTQ1RMUl9VQ1QgfCBTQ1RMUl9EWkUgfCBcCgo= --b1_c27a3d58d9ec98fe7aeab5af4c0d0102-- From owner-freebsd-arm@freebsd.org Thu Jul 16 08:23:52 2015 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 5C11D9A3732 for ; Thu, 16 Jul 2015 08:23:52 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 2AEBD169A for ; Thu, 16 Jul 2015 08:23:52 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 13BC2ECEE; Thu, 16 Jul 2015 08:23:52 +0000 (UTC) Date: Thu, 16 Jul 2015 08:23:52 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3107+327+a15a6a8a12bdc6fc@FreeBSD.org Subject: [Differential] [Request, 3 lines] D3107: Fix ARM64 stack calculation Message-ID: X-Priority: 3 Thread-Topic: D3107: Fix ARM64 stack calculation X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: MGU3ZWIwMjcwYmFiODRiMmUwODVmN2IzNDdj Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_f378b74b4b5e2033baf1d2c0b0b74c49" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 08:23:52 -0000 --b1_f378b74b4b5e2033baf1d2c0b0b74c49 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: andoriyu_gmail.com, emaste, zbb. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY Fixes in locore.s: - opt_kstack_pages.h include was added to ensure the proper KSTACK_PAGES value is used - secondary stack calculation is modified to provide stack_top = secondary_stacks + (cpu_id)*PAGE_SIZE*KSTACK_PAGES because on ARMv8 the stack grows into lower memory addresses REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3107 AFFECTED FILES sys/arm64/arm64/locore.S CHANGE DETAILS diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -182,8 +182,7 @@ mp_virtdone: ldr x4, =secondary_stacks mov x5, #(PAGE_SIZE * KSTACK_PAGES) - sub x1, x0, #1 - mul x5, x1, x5 + mul x5, x0, x5 add sp, x4, x5 b init_secondary EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, andoriyu_gmail.com, emaste, zbb Cc: imp, andrew, freebsd-arm-list, emaste --b1_f378b74b4b5e2033baf1d2c0b0b74c49 Content-Type: text/x-patch; charset=utf-8; name="D3107.7001.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3107.7001.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9sb2NvcmUuUyBiL3N5cy9hcm02NC9hcm02NC9s b2NvcmUuUwotLS0gYS9zeXMvYXJtNjQvYXJtNjQvbG9jb3JlLlMKKysrIGIvc3lzL2FybTY0L2Fy bTY0L2xvY29yZS5TCkBAIC0xODIsOCArMTgyLDcgQEAKIG1wX3ZpcnRkb25lOgogCWxkcgl4NCwg PXNlY29uZGFyeV9zdGFja3MKIAltb3YJeDUsICMoUEFHRV9TSVpFICogS1NUQUNLX1BBR0VTKQot CXN1Ygl4MSwgeDAsICMxCi0JbXVsCXg1LCB4MSwgeDUKKwltdWwJeDUsIHgwLCB4NQogCWFkZAlz cCwgeDQsIHg1CiAKIAliCWluaXRfc2Vjb25kYXJ5Cgo= --b1_f378b74b4b5e2033baf1d2c0b0b74c49-- From owner-freebsd-arm@freebsd.org Thu Jul 16 08:27:53 2015 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 7AD6A9A379C for ; Thu, 16 Jul 2015 08:27:53 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 574C91904 for ; Thu, 16 Jul 2015 08:27:53 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 474D8EE1E; Thu, 16 Jul 2015 08:27:53 +0000 (UTC) Date: Thu, 16 Jul 2015 08:27:53 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3107+327+a15a6a8a12bdc6fc@FreeBSD.org Subject: [Differential] [Updated, 4 lines] D3107: Fix ARM64 stack calculation Message-ID: <43e868f9bb9f06945472091bef791ab3@localhost.localdomain> X-Priority: 3 Thread-Topic: D3107: Fix ARM64 stack calculation X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MGU3ZWIwMjcwYmFiODRiMmUwODVmN2IzNDdjIFWnawk= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_43e868f9bb9f06945472091bef791ab3" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 08:27:53 -0000 --b1_43e868f9bb9f06945472091bef791ab3 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com updated this revision to Diff 7002. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3107?vs=7001&id=7002 REVISION DETAIL https://reviews.freebsd.org/D3107 AFFECTED FILES sys/arm64/arm64/locore.S CHANGE DETAILS diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -27,6 +27,7 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" #include #include @@ -181,8 +182,7 @@ mp_virtdone: ldr x4, =secondary_stacks mov x5, #(PAGE_SIZE * KSTACK_PAGES) - sub x1, x0, #1 - mul x5, x1, x5 + mul x5, x0, x5 add sp, x4, x5 b init_secondary EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, andoriyu_gmail.com, emaste, zbb Cc: imp, andrew, freebsd-arm-list, emaste --b1_43e868f9bb9f06945472091bef791ab3 Content-Type: text/x-patch; charset=utf-8; name="D3107.7002.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3107.7002.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9sb2NvcmUuUyBiL3N5cy9hcm02NC9hcm02NC9s b2NvcmUuUwotLS0gYS9zeXMvYXJtNjQvYXJtNjQvbG9jb3JlLlMKKysrIGIvc3lzL2FybTY0L2Fy bTY0L2xvY29yZS5TCkBAIC0yNyw2ICsyNyw3IEBACiAgKi8KIAogI2luY2x1ZGUgImFzc3ltLnMi CisjaW5jbHVkZSAib3B0X2tzdGFja19wYWdlcy5oIgogCiAjaW5jbHVkZSA8c3lzL3N5c2NhbGwu aD4KICNpbmNsdWRlIDxtYWNoaW5lL2FzbS5oPgpAQCAtMTgxLDggKzE4Miw3IEBACiBtcF92aXJ0 ZG9uZToKIAlsZHIJeDQsID1zZWNvbmRhcnlfc3RhY2tzCiAJbW92CXg1LCAjKFBBR0VfU0laRSAq IEtTVEFDS19QQUdFUykKLQlzdWIJeDEsIHgwLCAjMQotCW11bAl4NSwgeDEsIHg1CisJbXVsCXg1 LCB4MCwgeDUKIAlhZGQJc3AsIHg0LCB4NQogCiAJYglpbml0X3NlY29uZGFyeQoK --b1_43e868f9bb9f06945472091bef791ab3-- From owner-freebsd-arm@freebsd.org Thu Jul 16 08:32:22 2015 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 A22259A3939 for ; Thu, 16 Jul 2015 08:32:22 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 895C81D63 for ; Thu, 16 Jul 2015 08:32:22 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 884CBE0B4; Thu, 16 Jul 2015 08:32:22 +0000 (UTC) Date: Thu, 16 Jul 2015 08:32:22 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Updated, 25 lines] D3093: ARM64 TCR register update Message-ID: <28bf1adc6714e2c29fb354b65753eac0@localhost.localdomain> X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWnbBY= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_28bf1adc6714e2c29fb354b65753eac0" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 08:32:22 -0000 --b1_28bf1adc6714e2c29fb354b65753eac0 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com updated this revision to Diff 7005. REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3093?vs=7000&id=7005 REVISION DETAIL https://reviews.freebsd.org/D3093 AFFECTED FILES sys/arm64/arm64/locore.S sys/arm64/include/armreg.h CHANGE DETAILS diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h --- a/sys/arm64/include/armreg.h +++ b/sys/arm64/include/armreg.h @@ -200,6 +200,28 @@ #define TCR_TG1_4K (2 << TCR_TG1_SHIFT) #define TCR_TG1_64K (3 << TCR_TG1_SHIFT) +#define TCR_SH1_SHIFT 28 +#define TCR_SH1_IS (0x3UL << TCR_SH1_SHIFT) +#define TCR_ORGN1_SHIFT 26 +#define TCR_ORGN1_WBWA (0x1UL << TCR_ORGN1_SHIFT) +#define TCR_IRGN1_SHIFT 24 +#define TCR_IRGN1_WBWA (0x1UL << TCR_IRGN1_SHIFT) +#define TCR_SH0_SHIFT 12 +#define TCR_SH0_IS (0x3UL << TCR_SH0_SHIFT) +#define TCR_ORGN0_SHIFT 10 +#define TCR_ORGN0_WBWA (0x1UL << TCR_ORGN0_SHIFT) +#define TCR_IRGN0_SHIFT 8 +#define TCR_IRGN0_WBWA (0x1UL << TCR_IRGN0_SHIFT) + +#define TCR_CACHE_ATTRS ((TCR_IRGN0_WBWA | TCR_IRGN1_WBWA) |\ + (TCR_ORGN0_WBWA | TCR_ORGN1_WBWA)) + +#ifdef SMP +#define TCR_SMP_ATTRS (TCR_SH0_IS | TCR_SH1_IS) +#else +#define TCR_SMP_ATTRS 0 +#endif + #define TCR_T1SZ_SHIFT 16 #define TCR_T0SZ_SHIFT 0 #define TCR_TxSZ(x) (((x) << TCR_T1SZ_SHIFT) | ((x) << TCR_T0SZ_SHIFT)) diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -535,7 +535,8 @@ /* Device Normal, no cache Normal, write-back */ .quad MAIR_ATTR(0x00, 0) | MAIR_ATTR(0x44, 1) | MAIR_ATTR(0xff, 2) tcr: - .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K) + .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K | \ + TCR_CACHE_ATTRS | TCR_SMP_ATTRS) sctlr_set: /* Bits to set */ .quad (SCTLR_UCI | SCTLR_nTWE | SCTLR_nTWI | SCTLR_UCT | SCTLR_DZE | \ EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_28bf1adc6714e2c29fb354b65753eac0 Content-Type: text/x-patch; charset=utf-8; name="D3093.7005.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3093.7005.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9pbmNsdWRlL2FybXJlZy5oIGIvc3lzL2FybTY0L2luY2x1 ZGUvYXJtcmVnLmgKLS0tIGEvc3lzL2FybTY0L2luY2x1ZGUvYXJtcmVnLmgKKysrIGIvc3lzL2Fy bTY0L2luY2x1ZGUvYXJtcmVnLmgKQEAgLTIwMCw2ICsyMDAsMjggQEAKICNkZWZpbmUJVENSX1RH MV80SwkoMiA8PCBUQ1JfVEcxX1NISUZUKQogI2RlZmluZQlUQ1JfVEcxXzY0SwkoMyA8PCBUQ1Jf VEcxX1NISUZUKQogCisjZGVmaW5lCVRDUl9TSDFfU0hJRlQJMjgKKyNkZWZpbmUJVENSX1NIMV9J UwkoMHgzVUwgPDwgVENSX1NIMV9TSElGVCkKKyNkZWZpbmUJVENSX09SR04xX1NISUZUCTI2Cisj ZGVmaW5lCVRDUl9PUkdOMV9XQldBCSgweDFVTCA8PCBUQ1JfT1JHTjFfU0hJRlQpCisjZGVmaW5l CVRDUl9JUkdOMV9TSElGVAkyNAorI2RlZmluZQlUQ1JfSVJHTjFfV0JXQQkoMHgxVUwgPDwgVENS X0lSR04xX1NISUZUKQorI2RlZmluZQlUQ1JfU0gwX1NISUZUCTEyCisjZGVmaW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FUVFIoMHhm ZiwgMikKIHRjcjoKLQkucXVhZCAoVENSX1R4U1ooNjQgLSBWSVJUX0JJVFMpIHwgVENSX0FTSURf MTYgfCBUQ1JfVEcxXzRLKQorCS5xdWFkIChUQ1JfVHhTWig2NCAtIFZJUlRfQklUUykgfCBUQ1Jf QVNJRF8xNiB8IFRDUl9URzFfNEsgfCBcCisJICAgIFRDUl9DQUNIRV9BVFRSUyB8IFRDUl9TTVBf QVRUUlMpCiBzY3Rscl9zZXQ6CiAJLyogQml0cyB0byBzZXQgKi8KIAkucXVhZCAoU0NUTFJfVUNJ IHwgU0NUTFJfblRXRSB8IFNDVExSX25UV0kgfCBTQ1RMUl9VQ1QgfCBTQ1RMUl9EWkUgfCBcCgo= --b1_28bf1adc6714e2c29fb354b65753eac0-- From owner-freebsd-arm@freebsd.org Thu Jul 16 09:08:13 2015 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 D930C9A20B2 for ; Thu, 16 Jul 2015 09:08:13 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id BA88E1FCF for ; Thu, 16 Jul 2015 09:08:13 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 87374EFBC; Thu, 16 Jul 2015 09:08:13 +0000 (UTC) Date: Thu, 16 Jul 2015 09:08:13 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Accepted] D3093: ARM64 TCR register update Message-ID: X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWndH0= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 09:08:13 -0000 andrew accepted this revision. This revision has a positive review. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3093 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Thu Jul 16 09:34:00 2015 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 832509A26AF for ; Thu, 16 Jul 2015 09:34:00 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 690C5120C for ; Thu, 16 Jul 2015 09:34:00 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 5C467EC21; Thu, 16 Jul 2015 09:34:00 +0000 (UTC) Date: Thu, 16 Jul 2015 09:34:00 +0000 To: freebsd-arm@freebsd.org From: "kib (Konstantin Belousov)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Accepted] D3094: Fix KSTACK_PAGES issue Message-ID: <974b08ce24f5bf9f8cb1965b19c1907f@localhost.localdomain> X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWneog= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 09:34:00 -0000 kib accepted this revision. kib added a reviewer: kib. kib added a comment. This revision has a positive review. I am fine with the last patch, which adds missing include. Note that it uncovers more serious issues. E.g., the quick look at the amd64/amd64/stack_machdep.c clearly indicates that the use of KSTACK_PAGES there is bogus, probably curthread->td_kstack_pages is the right thing to use, but it is still not quite correct as well. In fact, the if() should check whether the f_frame is inside the [curthread->td_kstack; curthread->td_kstack + PAGE_SIZE * curthread->td_kstack_pages). REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew, kib Cc: kib, imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Thu Jul 16 09:48:07 2015 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 2497E9A285E for ; Thu, 16 Jul 2015 09:48:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 114A716AB for ; Thu, 16 Jul 2015 09:48:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t6G9m65Q025018 for ; Thu, 16 Jul 2015 09:48:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 201614] ubldr panic with Not enough DRAM to load kernel Date: Thu, 16 Jul 2015 09:48:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mikael.urankar@gmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 16 Jul 2015 09:48:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201614 Bug ID: 201614 Summary: ubldr panic with Not enough DRAM to load kernel Product: Base System Version: 11.0-CURRENT Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: mikael.urankar@gmail.com Hi, I have a cubox with 4go of RAM and I hit the following panic in ubldr: panic: Not enough DRAM to load kernel loader> sysinfo U-Boot system info: sys info: start =3D 0x10000000 size =3D 0xf0000000 type =3D DRAM in sys/boot/uboot/lib/copy.c, after this line: eblock =3D rounddown2(si->mr[i].start + si->mr[i].size, KERN_ALIGN); eblock is equal to zero and the panic occurs. Any help on this problem would be greatly appreciated! Thanks, Mika=C3=ABl --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Thu Jul 16 10:02:29 2015 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 9B3719A2BAE for ; Thu, 16 Jul 2015 10:02:29 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 7F34D1DE7 for ; Thu, 16 Jul 2015 10:02:29 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 7BEBDE7D8; Thu, 16 Jul 2015 10:02:29 +0000 (UTC) Date: Thu, 16 Jul 2015 10:02:29 +0000 To: freebsd-arm@freebsd.org From: "kib (Konstantin Belousov)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Commented On] D3094: Fix KSTACK_PAGES issue Message-ID: <8b52536eef050c3cbf22722249062f45@localhost.localdomain> X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWngTU= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 10:02:29 -0000 kib added a comment. In https://reviews.freebsd.org/D3094#61493, @kib wrote: > > Note that it uncovers more serious issues. E.g., the quick look at the amd64/amd64/stack_machdep.c clearly indicates that the use of KSTACK_PAGES there is bogus, probably curthread->td_kstack_pages is the right thing to use, but it is still not quite correct as well. In fact, the if() should check whether the f_frame is inside the [curthread->td_kstack; curthread->td_kstack + PAGE_SIZE * curthread->td_kstack_pages). https://reviews.freebsd.org/D3108 should fix the x86 issue, and allow you to drop these files from your change. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3094 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew, kib Cc: kib, imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Thu Jul 16 10:23:10 2015 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 178F09A30C4 for ; Thu, 16 Jul 2015 10:23:10 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id F364B1C23 for ; Thu, 16 Jul 2015 10:23:09 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id EF45BEF3D; Thu, 16 Jul 2015 10:23:09 +0000 (UTC) Date: Thu, 16 Jul 2015 10:23:09 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3093+327+2a07f7966a36d8e6@FreeBSD.org Subject: [Differential] [Closed] D3093: ARM64 TCR register update Message-ID: <588e155e953d3437c59f372a46db3bb1@localhost.localdomain> X-Priority: 3 Thread-Topic: D3093: ARMv8 locore.S cleanup and TCR register update X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzBhZGMyZWQyNmZmNjgwMWZjYjI4ZThlZTAzIFWnhg0= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_588e155e953d3437c59f372a46db3bb1" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 10:23:10 -0000 --b1_588e155e953d3437c59f372a46db3bb1 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285626: Set-up proper TCR values for memory related to Translation Table Walking (authored by zbb). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D3093?vs=7005&id=7009#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3093?vs=7005&id=7009 REVISION DETAIL https://reviews.freebsd.org/D3093 AFFECTED FILES head/sys/arm64/arm64/locore.S head/sys/arm64/include/armreg.h CHANGE DETAILS diff --git a/head/sys/arm64/arm64/locore.S b/head/sys/arm64/arm64/locore.S --- a/head/sys/arm64/arm64/locore.S +++ b/head/sys/arm64/arm64/locore.S @@ -535,7 +535,8 @@ /* Device Normal, no cache Normal, write-back */ .quad MAIR_ATTR(0x00, 0) | MAIR_ATTR(0x44, 1) | MAIR_ATTR(0xff, 2) tcr: - .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K) + .quad (TCR_TxSZ(64 - VIRT_BITS) | TCR_ASID_16 | TCR_TG1_4K | \ + TCR_CACHE_ATTRS | TCR_SMP_ATTRS) sctlr_set: /* Bits to set */ .quad (SCTLR_UCI | SCTLR_nTWE | SCTLR_nTWI | SCTLR_UCT | SCTLR_DZE | \ diff --git a/head/sys/arm64/include/armreg.h b/head/sys/arm64/include/armreg.h --- a/head/sys/arm64/include/armreg.h +++ b/head/sys/arm64/include/armreg.h @@ -200,6 +200,28 @@ #define TCR_TG1_4K (2 << TCR_TG1_SHIFT) #define TCR_TG1_64K (3 << TCR_TG1_SHIFT) +#define TCR_SH1_SHIFT 28 +#define TCR_SH1_IS (0x3UL << TCR_SH1_SHIFT) +#define TCR_ORGN1_SHIFT 26 +#define TCR_ORGN1_WBWA (0x1UL << TCR_ORGN1_SHIFT) +#define TCR_IRGN1_SHIFT 24 +#define TCR_IRGN1_WBWA (0x1UL << TCR_IRGN1_SHIFT) +#define TCR_SH0_SHIFT 12 +#define TCR_SH0_IS (0x3UL << TCR_SH0_SHIFT) +#define TCR_ORGN0_SHIFT 10 +#define TCR_ORGN0_WBWA (0x1UL << TCR_ORGN0_SHIFT) +#define TCR_IRGN0_SHIFT 8 +#define TCR_IRGN0_WBWA (0x1UL << TCR_IRGN0_SHIFT) + +#define TCR_CACHE_ATTRS ((TCR_IRGN0_WBWA | TCR_IRGN1_WBWA) |\ + (TCR_ORGN0_WBWA | TCR_ORGN1_WBWA)) + +#ifdef SMP +#define TCR_SMP_ATTRS (TCR_SH0_IS | TCR_SH1_IS) +#else +#define TCR_SMP_ATTRS 0 +#endif + #define TCR_T1SZ_SHIFT 16 #define TCR_T0SZ_SHIFT 0 #define TCR_TxSZ(x) (((x) << TCR_T1SZ_SHIFT) | ((x) << TCR_T0SZ_SHIFT)) EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_588e155e953d3437c59f372a46db3bb1 Content-Type: text/x-patch; charset=utf-8; name="D3093.7009.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3093.7009.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2FybTY0L2FybTY0L2xvY29yZS5TIGIvaGVhZC9zeXMvYXJt NjQvYXJtNjQvbG9jb3JlLlMKLS0tIGEvaGVhZC9zeXMvYXJtNjQvYXJtNjQvbG9jb3JlLlMKKysr IGIvaGVhZC9zeXMvYXJtNjQvYXJtNjQvbG9jb3JlLlMKQEAgLTUzNSw3ICs1MzUsOCBAQAogCQkv KiBEZXZpY2UgICAgICAgICAgICBOb3JtYWwsIG5vIGNhY2hlICAgICBOb3JtYWwsIHdyaXRlLWJh Y2sgKi8KIAkucXVhZAlNQUlSX0FUVFIoMHgwMCwgMCkgfCBNQUlSX0FUVFIoMHg0NCwgMSkgfCBN QUlSX0FUVFIoMHhmZiwgMikKIHRjcjoKLQkucXVhZCAoVENSX1R4U1ooNjQgLSBWSVJUX0JJV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JRlQp CisjZGVmaW5lCVRDUl9PUkdOMF9TSElGVAkxMAorI2RlZmluZQlUQ1JfT1JHTjBfV0JXQQkoMHgx VUwgPDwgVENSX09SR04wX1NISUZUKQorI2RlZmluZQlUQ1JfSVJHTjBfU0hJRlQJOAorI2RlZmlu ZQlUQ1JfSVJHTjBfV0JXQQkoMHgxVUwgPDwgVENSX0lSR04wX1NISUZUKQorCisjZGVmaW5lCVRD Ul9DQUNIRV9BVFRSUwkoKFRDUl9JUkdOMF9XQldBIHwgVENSX0lSR04xX1dCV0EpIHxcCisJCQkJ KFRDUl9PUkdOMF9XQldBIHwgVENSX09SR04xX1dCV0EpKQorCisjaWZkZWYgU01QCisjZGVmaW5l CVRDUl9TTVBfQVRUUlMJKFRDUl9TSDBfSVMgfCBUQ1JfU0gxX0lTKQorI2Vsc2UKKyNkZWZpbmUJ VENSX1NNUF9BVFRSUwkwCisjZW5kaWYKKwogI2RlZmluZQlUQ1JfVDFTWl9TSElGVAkxNgogI2Rl ZmluZQlUQ1JfVDBTWl9TSElGVAkwCiAjZGVmaW5lCVRDUl9UeFNaKHgpCSgoKHgpIDw8IFRDUl9U MVNaX1NISUZUKSB8ICgoeCkgPDwgVENSX1QwU1pfU0hJRlQpKQoK --b1_588e155e953d3437c59f372a46db3bb1-- From owner-freebsd-arm@freebsd.org Thu Jul 16 10:47:16 2015 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 E47ED9A34CC for ; Thu, 16 Jul 2015 10:47:15 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id C268C162A for ; Thu, 16 Jul 2015 10:47:15 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id BDFDEE9BD; Thu, 16 Jul 2015 10:47:15 +0000 (UTC) Date: Thu, 16 Jul 2015 10:47:15 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3094+327+b6ce39a707c1ba10@FreeBSD.org Subject: [Differential] [Closed] D3094: Fix KSTACK_PAGES issue Message-ID: <671951eaa555d0f7bcde899d7c2f5ee0@localhost.localdomain> X-Priority: 3 Thread-Topic: D3094: Fix ARMv8 KSTACK_PAGES issue X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTE0MDI0ZWQ5YjVlYzUxYzUyMWU4OWFkZjdhIFWni7M= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_671951eaa555d0f7bcde899d7c2f5ee0" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 10:47:16 -0000 --b1_671951eaa555d0f7bcde899d7c2f5ee0 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285627: Fix KSTACK_PAGES issue when the default value was changed in KERNCONF (authored by zbb). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D3094?vs=6999&id=7013#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3094?vs=6999&id=7013 REVISION DETAIL https://reviews.freebsd.org/D3094 AFFECTED FILES head/sys/arm/arm/machdep.c head/sys/arm/at91/at91_machdep.c head/sys/arm/cavium/cns11xx/econa_machdep.c head/sys/arm/samsung/s3c2xx0/s3c24x0_machdep.c head/sys/arm/xscale/i80321/ep80219_machdep.c head/sys/arm/xscale/i80321/iq31244_machdep.c head/sys/arm/xscale/i8134x/crb_machdep.c head/sys/arm/xscale/ixp425/avila_machdep.c head/sys/arm/xscale/pxa/pxa_machdep.c head/sys/arm64/arm64/locore.S head/sys/arm64/arm64/mp_machdep.c head/sys/arm64/arm64/swtch.S head/sys/ddb/db_ps.c head/sys/ddb/db_sym.c head/sys/i386/i386/locore.s head/sys/powerpc/booke/pmap.c head/sys/sparc64/sparc64/exception.S head/sys/sparc64/sparc64/stack_machdep.c head/sys/sparc64/sparc64/support.S head/sys/x86/xen/pv.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew, kib Cc: kib, imp, andrew, freebsd-arm-list, emaste --b1_671951eaa555d0f7bcde899d7c2f5ee0 Content-Type: text/x-patch; charset=utf-8; name="D3094.7013.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3094.7013.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2RkYi9kYl9zeW0uYyBiL2hlYWQvc3lzL2RkYi9kYl9zeW0u YwotLS0gYS9oZWFkL3N5cy9kZGIvZGJfc3ltLmMKKysrIGIvaGVhZC9zeXMvZGRiL2RiX3N5bS5j CkBAIC0zMSw2ICszMSw4IEBACiAjaW5jbHVkZSA8c3lzL2NkZWZzLmg+CiBfX0ZCU0RJRCgiJEZy ZWVCU0QkIik7CiAKKyNpbmNsdWRlICJvcHRfa3N0YWNrX3BhZ2VzLmgiCisKICNpbmNsdWRlIDxz eXMvcGFyYW0uaD4KICNpbmNsdWRlIDxzeXMvcGNwdS5oPgogI2luY2x1ZGUgPHN5cy9zbXAuaD4K ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2RkYi9kYl9wcy5jIG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c2f5ee0-- From owner-freebsd-arm@freebsd.org Thu Jul 16 12:23:41 2015 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 D122E9A2B85 for ; Thu, 16 Jul 2015 12:23:41 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from olinguito.schwarzes.net (olinguito.schwarzes.net [IPv6:2a01:4f8:7d:1b5::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71D5919DE for ; Thu, 16 Jul 2015 12:23:40 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from asc-t60.schwarzes.net (p5B031D02.dip0.t-ipconnect.de [91.3.29.2]) (authenticated bits=0) by olinguito.schwarzes.net (8.14.9/8.14.9) with ESMTP id t6GCNbtP055802 for ; Thu, 16 Jul 2015 14:23:37 +0200 (CEST) (envelope-from freebsd.asc@strcmp.org) Date: Thu, 16 Jul 2015 14:23:29 +0200 From: Andreas Schwarz To: freebsd-arm@freebsd.org Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) Message-Id: <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> In-Reply-To: References: <55A5A3F4.7040105@foxvalley.net> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (olinguito.schwarzes.net [78.47.41.143]); Thu, 16 Jul 2015 14:23:38 +0200 (CEST) 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: Thu, 16 Jul 2015 12:23:41 -0000 On Wed, 15 Jul 2015 21:17:21 -0600 Warner Losh wrote: > > On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: > > > > Is anyone else getting these errors during every boot? I'm running r285346. > > I’ve been running on the RPi2 for some time and have never seen this. I haven’t > rebuild in the past few weeks though. > > Does this happen on either SD cards? Or other versions of the kernel? I've the same output (using generic RPI2 kernel conf). root@pizelot:~ # uname -a FreeBSD pizelot.schwarzes.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285191M: Thu Jul 9 00:39:13 CEST 2015 root@pizelot.schwarzes.net:/usr/obj/usr/src/sys/RPI2 arm sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== sdhci_bcm0-slot0: Got data interrupt 0x00000002, but there is no active command. sdhci_bcm0-slot0: ============== REGISTER DUMP ============== sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000040 | Blk cnt: 0x00000001 sdhci_bcm0-slot0: Argument: 0x00010000 | Trn mode: 0x0000071b sdhci_bcm0-slot0: Present: 0x01ff0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x0000000e | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Max curr: 0x00000001 sdhci_bcm0-slot0: =========================================== mmc0: CMD7 failed, RESULT: 1 mmcsd0: 32GB at mmc0 41.6MHz/4bit/65535-block -- best regards Andreas From owner-freebsd-arm@freebsd.org Thu Jul 16 15:09:22 2015 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 07FCE9A3059 for ; Thu, 16 Jul 2015 15:09:22 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E9A81120D; Thu, 16 Jul 2015 15:09:21 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 6893111FD; Thu, 16 Jul 2015 15:09:21 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Thu, 16 Jul 2015 15:09:19 +0000 From: Glen Barber To: Carl Johnson Cc: freebsd-arm@freebsd.org Subject: More RPI-B/SD card information [was: Re: RPi won't boot 10.2-BETA1 -- SOLVED] Message-ID: <20150716150919.GK37051@FreeBSD.org> References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wRokNccIwvMzawGl" Content-Disposition: inline In-Reply-To: <87pp3tzaas.fsf@elk.localnet> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.23 (2014-03-12) 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: Thu, 16 Jul 2015 15:09:22 -0000 --wRokNccIwvMzawGl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 15, 2015 at 08:54:03AM -0700, Carl Johnson wrote: > Glen Barber writes: >=20 > > On Tue, Jul 14, 2015 at 08:54:06PM -0700, Carl Johnson wrote: > >> I bought a new microSDHC card and that card works. The new one is a > >> 16GB SanDisk Ultra PLUS UHS-1 card in case anybody is keeping track. I > >> had tried two different Class 4 cards that didn't work, so maybe the > >> faster speed is necessary now, or maybe it is picky about brands. > >>=20 > > > > FWIW, I have a few class-10 cards that will absolutely not work, and > > a few class-4 cards that work perfectly fine. > > > > After getting my test setup working properly (cards that work, etc.), > > I looked into it a bit further, and it *seems* that all of my cards > > (except one class-10 card) out of about 12 different SD cards work fine > > with "normal data." > > > > Just an additional data point, although I realize it contradicts your > > findings. >=20 > Thanks, that is useful to know. The first class-4 card worked with a > January 10.1-STABLE snapshot, but didn't work with June 10.1-STABLE or > 11.0-CURRENT snapshots or the 10.2-BETA1 release. >=20 I did a bit more testing, and it seems the RPI-B is *very* picky about what SD cards will work. Below follows results of the tests, using the 20150716-r285616 RPI-B image (built last night, propagating now). For completeness, I've included 'mmcinfo' output from u-boot, but what is really interesting is cards (7) and (8). To make sure the test was run with a working card, I tested the BeagleBone Black image on card (7) which booted fine. 1) FAILED PNY class 4 SDHC 8GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 2 OEM: 544d Name: SA08G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 7.2 GiB Bus Width: 4-bit =20 2) SUCCESS Sandisk (Ultra) class 10 SDHC (I) 8GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 3 OEM: 5344 Name: SL08G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 7.4 GiB Bus Width: 4-bit =20 3) FAILED Kingston class 4 SDHC 8GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 2 OEM: 544d Name: SD08G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 7.4 GiB Bus Width: 4-bit =20 4) FAILED Kingston class 4 SDHC 8GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 2 OEM: 544d Name: SA08G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 7.2 GiB Bus Width: 4-bit =20 5) SUCCESS Samsung (class unknown) SD 2GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 1b OEM: 534d Name: 00000=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: No Capacity: 1.9 GiB Bus Width: 4-bit =20 6) SUCCESS Sandisk class 4 SDHC (I) 8GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 3 OEM: 5344 Name: SS08G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 7.4 GiB Bus Width: 4-bit =20 7) FAILED Kingston class 4 SDHC 4GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 2 OEM: 544d Name: SA04G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 3.6 GiB Bus Width: 4-bit 8) SUCCESS Kingston class 4 SDHC 4GB U-Boot> mmcinfo Device: bcm2835_sdhci Manufacturer ID: 2 OEM: 544d Name: SA04G=20 Tran Speed: 50000000 Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 3.6 GiB Bus Width: 4-bit Glen --wRokNccIwvMzawGl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVp8kfAAoJEAMUWKVHj+KT8u8P/RkMs+0vTLmRpc9ccofR/ItF CZXnYTogcOjg9X2lkIl5RnS9uM6e9wDuZ1mo+nOEYY7/T6tjR8W6eWVTCFVqabv0 rNXFbCqmGi3zh8RfsBBjV5+EcP93rFww6KrLDKCvJ23/QNgxDiI7cit2Cu3VBj3a dVmxfLKanHBOVyh6/S+H8YOGRFVQBQFKvdZ3kQf54gNvDExnR2orf8zDbafPBGZU D27Hb9Bx2xdPS4wRZ9xdCeKmLb9g34nEkQwKyPNs3uU+IIdmrAwquN3nQkxExlqI iac0ATfS9zm5PqhaPAYWa2bBRA6uauMM+MhJYte/4K+bvzqUn5jxUZ9R1wIiTwqe w+aV4FNmWJK+1Z7STcoAAEIlmnLYOvokJXT9U9+fYohkT1SOVu9JsWCiK1HZdHV+ 1sOR0X+4qgtiQxiUSd/uxwin8z9vVw8DciimhMxk0DoSKsIWvHkMK3jXqML6QyYG Yvx9rphh0s0lNMe5lFtWgTjxPKgsQyJDVelXxlPKjOO7f5PDmw60tNhH298IZtfk aF5du79XEHU4R9E7x7JgHMGzQWKwr2w0TKUVZLtOrxzoymVGZP+ea9123rI2hbXt CidjyjMsfZBy6bJylN9bjbZKKox26/DxxbziqeR/yMDrHEFkDGrujcp6GkEnnvw6 wIEGkLFmD2bwC9dNiABc =AhJr -----END PGP SIGNATURE----- --wRokNccIwvMzawGl-- From owner-freebsd-arm@freebsd.org Thu Jul 16 16:02:33 2015 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 6A7009A3E1C for ; Thu, 16 Jul 2015 16:02:33 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter01.peakinternet.com (filter01.peakinternet.com [207.55.16.92]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 445DA1DA6 for ; Thu, 16 Jul 2015 16:02:32 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter01.peakinternet.com ({e1c81c21-e4c4-4528-aa90-7a27869c545a}) via TCP (outbound) with ESMTPS id 20150716160225927_0000 for ; Thu, 16 Jul 2015 09:02:25 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id CFB7D54748 for ; Thu, 16 Jul 2015 09:02:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id C3B3B5473C for ; Thu, 16 Jul 2015 09:02:24 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cIuR6299uYRo for ; Thu, 16 Jul 2015 09:02:24 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 8D79054734 for ; Thu, 16 Jul 2015 09:02:24 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZFlc7-0005MA-J4 for freebsd-arm@freebsd.org; Thu, 16 Jul 2015 09:02:23 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: More RPI-B/SD card information References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 16 Jul 2015 09:02:23 -0700 In-Reply-To: <20150716150919.GK37051@FreeBSD.org> (Glen Barber's message of "Thu, 16 Jul 2015 15:09:19 +0000") Message-ID: <87h9p4yttc.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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: Thu, 16 Jul 2015 16:02:33 -0000 Glen Barber writes: > On Wed, Jul 15, 2015 at 08:54:03AM -0700, Carl Johnson wrote: >> Glen Barber writes: >> >> > On Tue, Jul 14, 2015 at 08:54:06PM -0700, Carl Johnson wrote: >> >> I bought a new microSDHC card and that card works. The new one is a >> >> 16GB SanDisk Ultra PLUS UHS-1 card in case anybody is keeping track. I >> >> had tried two different Class 4 cards that didn't work, so maybe the >> >> faster speed is necessary now, or maybe it is picky about brands. >> >> >> > FWIW, I have a few class-10 cards that will absolutely not work, and >> > a few class-4 cards that work perfectly fine. >> >> Thanks, that is useful to know. The first class-4 card worked with a >> January 10.1-STABLE snapshot, but didn't work with June 10.1-STABLE or >> 11.0-CURRENT snapshots or the 10.2-BETA1 release. >> > > I did a bit more testing, and it seems the RPI-B is *very* picky about > what SD cards will work. Below follows results of the tests, using the > 20150716-r285616 RPI-B image (built last night, propagating now). As I mentioned above, I have a card that will boot an old snapshot but refuses to boot on newer code. I have verified that the card will still boot the old snapshot, so I know the card is still good. That seems to indicate that something in the code has changed. Unfortunately, I am not enough of a programmer to be able to trace through anything that complex. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Thu Jul 16 16:15:04 2015 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 897F49A3062 for ; Thu, 16 Jul 2015 16:15:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 51A9C129B for ; Thu, 16 Jul 2015 16:15:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 168AE1FE022 for ; Thu, 16 Jul 2015 18:15:03 +0200 (CEST) Message-ID: <55A7D8CE.4020809@selasky.org> Date: Thu, 16 Jul 2015 18:16:14 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: [RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 16 Jul 2015 16:15:04 -0000 Hi, I finally had the time to sit down and test Daisuke Aoyama's DWC OTG patches. I've modified his patch a bit and ensured it works with all transfer types, everything from USB keyboards, memory sticks, USB audio devices to USB network devices. I found some bugs with the initial patch from Daisuke, fixed these and made the following commit: https://svnweb.freebsd.org/changeset/base/285638 If you have more patches and improvements please make a new patch! And if you see some network numbers go up, you can post them here :-) Or if you find regressions. --HPS From owner-freebsd-arm@freebsd.org Thu Jul 16 17:24:17 2015 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 9B2949A3E6C for ; Thu, 16 Jul 2015 17:24:17 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7EBB81D2D; Thu, 16 Jul 2015 17:24:17 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 013E017A2; Thu, 16 Jul 2015 17:24:16 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Thu, 16 Jul 2015 17:24:14 +0000 From: Glen Barber To: Carl Johnson Cc: freebsd-arm@freebsd.org Subject: Re: More RPI-B/SD card information Message-ID: <20150716172414.GD53795@FreeBSD.org> References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> <87h9p4yttc.fsf@elk.localnet> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IDYEmSnFhs3mNXr+" Content-Disposition: inline In-Reply-To: <87h9p4yttc.fsf@elk.localnet> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.23 (2014-03-12) 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: Thu, 16 Jul 2015 17:24:17 -0000 --IDYEmSnFhs3mNXr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 16, 2015 at 09:02:23AM -0700, Carl Johnson wrote: > Glen Barber writes: >=20 > > On Wed, Jul 15, 2015 at 08:54:03AM -0700, Carl Johnson wrote: > >> Glen Barber writes: > >>=20 > >> > On Tue, Jul 14, 2015 at 08:54:06PM -0700, Carl Johnson wrote: > >> >> I bought a new microSDHC card and that card works. The new one is a > >> >> 16GB SanDisk Ultra PLUS UHS-1 card in case anybody is keeping track= =2E I > >> >> had tried two different Class 4 cards that didn't work, so maybe the > >> >> faster speed is necessary now, or maybe it is picky about brands. > >> >>=20 > >> > FWIW, I have a few class-10 cards that will absolutely not work, and > >> > a few class-4 cards that work perfectly fine. > >>=20 > >> Thanks, that is useful to know. The first class-4 card worked with a > >> January 10.1-STABLE snapshot, but didn't work with June 10.1-STABLE or > >> 11.0-CURRENT snapshots or the 10.2-BETA1 release. > >>=20 > > > > I did a bit more testing, and it seems the RPI-B is *very* picky about > > what SD cards will work. Below follows results of the tests, using the > > 20150716-r285616 RPI-B image (built last night, propagating now). >=20 > As I mentioned above, I have a card that will boot an old snapshot but > refuses to boot on newer code. I have verified that the card will still > boot the old snapshot, so I know the card is still good. That seems to > indicate that something in the code has changed. Unfortunately, I am > not enough of a programmer to be able to trace through anything that > complex. >=20 Right, but with my testing (specifically cards (7) and (8), which as far as I can tell are the same card), one works and one does not. This is what I am trying to understand, because unless there is something wrong with the card, it's not being detected as "bad" by the other boards I have. Glen --IDYEmSnFhs3mNXr+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVp+i+AAoJEAMUWKVHj+KTt8wP/iVYNjr2+kZ4Orng5w5v0L6+ WAXAMBMxQYmtjWhERB0yhC9MjCl5KQRerCd4ru/9lvwE8dOh/nvJ+4q9ezKBlzSI jM5UjpZTy7bJ2kHXtc9QpuIUg14xOsOlWohUMbwrXti6lVkjMh+XYuz3/RCvMsGn 7Qt0GMpkWcPt12kH3V+mx0N2xOqdPP8u7C6Z7+5W+TXvhohcXi1mXPBoOgEeVoi0 cWPyoBxTqzvFxjMPI3D/ALszXRkzvpufN4p+Asa13brPFP86/ZnI40vfMjKvaDP/ fZ31JlsSr1D8kkNEW5DK+ar9Dq4PawCUjSL85JQKe9OcrS0Iyc6Ui3D3hdHBOxH5 zQUCjJEqkeIAnqkwFjbwkH8Wi9UsIp/xaYXzPvuRE/NxZI4Iqb7J+3WfXeZxo6IU 5gwnKY+AgoQnmL/6LJFsDRjRNvM3aFyJYIAlwRgHt9Z826DRLlhhEkaw07eMQcSw WxLCrrbUN7e2z/mi72PlaqD909RhrhnpEmQ5TYoQxNEN59pJ4ZC/211NEi9+oYCX KQoayRg7nIfS4cLaAbbDiEY6TZU5yaKIIHwYG7em23zlekUYBQbdCv3AheWM2eNV UuHZem5aleZ1fTY361cyHtvS+U/BSFdRHJ/wOaYe+xalMJy09e0YwqT4ixFsdbAd ttMJ2vNITKLAyonFQIJs =eFwX -----END PGP SIGNATURE----- --IDYEmSnFhs3mNXr+-- From owner-freebsd-arm@freebsd.org Thu Jul 16 18:13:14 2015 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 EB0B49A3A95 for ; Thu, 16 Jul 2015 18:13:14 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.0x20.net", Issuer "mail.0x20.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A95FA1F8E; Thu, 16 Jul 2015 18:13:14 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id B855B6DF802; Thu, 16 Jul 2015 20:13:10 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id t6GIDAqL093932; Thu, 16 Jul 2015 20:13:10 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id t6GID9Ew092902; Thu, 16 Jul 2015 20:13:09 +0200 (CEST) (envelope-from lars) Date: Thu, 16 Jul 2015 20:13:09 +0200 From: Lars Engels To: Glen Barber Cc: Carl Johnson , freebsd-arm@freebsd.org Subject: Re: More RPI-B/SD card information Message-ID: <20150716181309.GF59802@e-new.0x20.net> References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> <87h9p4yttc.fsf@elk.localnet> <20150716172414.GD53795@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eNMatiwYGLtwo1cJ" Content-Disposition: inline In-Reply-To: <20150716172414.GD53795@FreeBSD.org> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) 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: Thu, 16 Jul 2015 18:13:15 -0000 --eNMatiwYGLtwo1cJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 16, 2015 at 05:24:14PM +0000, Glen Barber wrote: >=20 > Right, but with my testing (specifically cards (7) and (8), which as far > as I can tell are the same card), one works and one does not. This is > what I am trying to understand, because unless there is something wrong > with the card, it's not being detected as "bad" by the other boards > I have. Have you tried Raspian or some other Linux distro if a picky card works with it? --eNMatiwYGLtwo1cJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJVp/Q1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1t/k8H/0+a+NRVZQmfxB6OGs0Po34M Ylz2UpO3ya9XrZUjiTZqWMiaK+R5Z64SKauUizMpI7EQ11R0akga6ZQuJLkOS/PD iDZxvCCbAgduJMdyBni1AMmtHaiuoEV7G+CgemNZgj+Tqn0RrROzPDIROYRVaxYS xqRT91y1i6NNIK6neSTrUPVbLTGxoZK9HDinBumRTVUZ/E4BrgJ6JEDnEC8Wjtg5 eUAH7hR0dkWbGgG0SbzFXMiDSp890CBHbTDP6HMggxxJq+ReYChYRmxA/bahrNHs utwVOcmf4VK7QcHvyGybKtS0EQU+ISguXR+c0ZUkHQe4vz4NoemcGLwRpJk3cec= =1Q5H -----END PGP SIGNATURE----- --eNMatiwYGLtwo1cJ-- From owner-freebsd-arm@freebsd.org Thu Jul 16 18:17:20 2015 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 BBA309A3B29 for ; Thu, 16 Jul 2015 18:17:20 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yk0-x22d.google.com (mail-yk0-x22d.google.com [IPv6:2607:f8b0:4002:c07::22d]) (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 7E20610EE; Thu, 16 Jul 2015 18:17:20 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by ykdu72 with SMTP id u72so70954260ykd.2; Thu, 16 Jul 2015 11:17:19 -0700 (PDT) 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:content-transfer-encoding; bh=//OyeMim68pQubGY4YEAtxK7lygBiROGvdLvEowQAvY=; b=qM1tnG1p+mmK8i96ctpyM0vuvHS0dtDniYwVybDHi+20zJWwSbp9BI7/xMTX43dEUZ Oa2TuwnUR2MeTBsbk9qTesBMYtrfaU3NQguds3Y7Gaui7aPEnmgMWHJaoxzzSol9Gtkc D2VwvhOtzdTVmNNVZznGbfGvJfkEANPBHI7CnfBmwu1rUYapcNSkrZ1EObAmSI4RNDM/ GSJe4N3OjpieNln5JyGBmj9ZXfMsYGVgOMfK/wpdybfvFA/fIC5qwnVVqF8EY4rX5vIK F1A3u8954VV5NZTWH4AkajKiBVjECekmd/+Z7OWr2S6YE+bbd4j+oSJvvu1v74VfKdGY KdHQ== MIME-Version: 1.0 X-Received: by 10.129.53.74 with SMTP id c71mr10868906ywa.50.1437070639745; Thu, 16 Jul 2015 11:17:19 -0700 (PDT) Received: by 10.13.198.135 with HTTP; Thu, 16 Jul 2015 11:17:19 -0700 (PDT) In-Reply-To: <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> Date: Thu, 16 Jul 2015 15:17:19 -0300 Message-ID: Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Luiz Otavio O Souza To: "freebsd-arm@freebsd.org" Cc: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 16 Jul 2015 18:17:20 -0000 On 16 July 2015 at 09:23, Andreas Schwarz wrote: > On Wed, 15 Jul 2015 21:17:21 -0600 > Warner Losh wrote: > >> > On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: >> > >> > Is anyone else getting these errors during every boot? I'm running r2= 85346. >> >> I=E2=80=99ve been running on the RPi2 for some time and have never seen = this. I haven=E2=80=99t >> rebuild in the past few weeks though. >> >> Does this happen on either SD cards? Or other versions of the kernel? > > I've the same output (using generic RPI2 kernel conf). This is a side effect of r283128, if you comment that line that re-select the card, CMD7 won't fail. This also affects the MMC controller on Allwinner SoCs. Luiz From owner-freebsd-arm@freebsd.org Thu Jul 16 18:35:43 2015 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 2392C9A3074 for ; Thu, 16 Jul 2015 18:35:43 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE571562; Thu, 16 Jul 2015 18:35:43 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 6B0111267; Thu, 16 Jul 2015 18:35:42 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Thu, 16 Jul 2015 18:35:40 +0000 From: Glen Barber To: Lars Engels Cc: Carl Johnson , freebsd-arm@freebsd.org Subject: Re: More RPI-B/SD card information Message-ID: <20150716183540.GH53795@FreeBSD.org> References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> <87h9p4yttc.fsf@elk.localnet> <20150716172414.GD53795@FreeBSD.org> <20150716181309.GF59802@e-new.0x20.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bO4vSxwwZtUjUWHo" Content-Disposition: inline In-Reply-To: <20150716181309.GF59802@e-new.0x20.net> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.23 (2014-03-12) 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: Thu, 16 Jul 2015 18:35:43 -0000 --bO4vSxwwZtUjUWHo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 16, 2015 at 08:13:09PM +0200, Lars Engels wrote: > On Thu, Jul 16, 2015 at 05:24:14PM +0000, Glen Barber wrote: > >=20 > > Right, but with my testing (specifically cards (7) and (8), which as far > > as I can tell are the same card), one works and one does not. This is > > what I am trying to understand, because unless there is something wrong > > with the card, it's not being detected as "bad" by the other boards > > I have. >=20 > Have you tried Raspian or some other Linux distro if a picky card works > with it? I haven't, but it will be at tomorrow at the earliest I can try with some of the non-working cards. Glen --bO4vSxwwZtUjUWHo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVp/l8AAoJEAMUWKVHj+KTEMIP/RRILBKJ/2EXMyXBfZbtiXLG Web9s9v8kPvjSVxjMUhS+DMjW+4XZWQ2i7PjycN9jFTUPZ/QNtJWphtgiGmy/MJL 2yixvkJr6A5yx5xqUbtLOIVyVCsPxN+D5N5G7JAhP8UgnYDBTwn7pjVh9xCwFXgY 81VysOc5F2FnyGURwccHZSXUNdgtvN5z0RIHEpaBQLnzRFnjukk2x/MiOMwxS4PR 9323+ZriEYhlLVwFHDfq/tSUErmfTGOfTknKyC3L1MRH4I+5Lq4FattteWQyPlMP 1xFkYJ5j/KUP4GSW6f6IMX/jy5HkhvOgpbkTgMJM2Kockkbl+bFidllr+SD6Vqzb wHeTxnIOMlfe9Gnhk2yXtGxOykGfuJ8vfMAI4BJ7CdDo/wGT5LQxmfmOYpVZqI2c zWVvL3TJkSWAFPy/t06OPsy3I4CouhjjG/Y6GayzV/wWpkCIBxNlN/93u+YxBNUk u+xz0P4gWtko9HtwFfbVm2OTHxpYmDwWlrO5pF6+k7MHulp/RMHbFZfekvmK5i7f ychQ7SDe7Wkkr3yTF6RaXzHdsbJPmlhST6cEHf34XNrNT/LvomC2zUqDgx0zFNwm /I24sGdZcZPemb7f1KARx8Iesd+W00dV6QMT4lOunRmpsg3h7yCmWX5PzrZbOLQ4 hinN9GteAPINY3JipVr3 =nmUC -----END PGP SIGNATURE----- --bO4vSxwwZtUjUWHo-- From owner-freebsd-arm@freebsd.org Thu Jul 16 18:55:19 2015 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 71E3D9A34C8 for ; Thu, 16 Jul 2015 18:55:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id 3522C109F for ; Thu, 16 Jul 2015 18:55:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Thu, 16 Jul 2015 18:53:44 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6GItGYm054548; Thu, 16 Jul 2015 12:55:16 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1437072916.1334.364.camel@freebsd.org> Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Ian Lepore To: Luiz Otavio O Souza Cc: "freebsd-arm@freebsd.org" , Warner Losh Date: Thu, 16 Jul 2015 12:55:16 -0600 In-Reply-To: References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> Content-Type: multipart/mixed; boundary="=-qq1U0f2kB6yRSUFT5ALH" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 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: Thu, 16 Jul 2015 18:55:19 -0000 --=-qq1U0f2kB6yRSUFT5ALH Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 8bit On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: > On 16 July 2015 at 09:23, Andreas Schwarz wrote: > > On Wed, 15 Jul 2015 21:17:21 -0600 > > Warner Losh wrote: > > > >> > On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: > >> > > >> > Is anyone else getting these errors during every boot? I'm running r285346. > >> > >> I¢ve been running on the RPi2 for some time and have never seen this. I haven¢t > >> rebuild in the past few weeks though. > >> > >> Does this happen on either SD cards? Or other versions of the kernel? > > > > I've the same output (using generic RPI2 kernel conf). > > This is a side effect of r283128, if you comment that line that > re-select the card, CMD7 won't fail. > > This also affects the MMC controller on Allwinner SoCs. Hmm, so some cards deselect themselves when they shouldn't, and our workaround that reselects them fails if the card didn't deselect itself. Maybe it will work for all cards/controllers if we explicitly deselect then reselect the card at that point. (This only happens once at card-insert/boot time, so it shouldn't impact performance.) The attached patch adds the explicit deselect; it may or may not help. (I haven't tested this at all). -- Ian --=-qq1U0f2kB6yRSUFT5ALH Content-Disposition: inline; filename="mmc_desel_resel.diff" Content-Type: text/x-patch; name="mmc_desel_resel.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: mmc.c =================================================================== --- mmc.c (revision 285419) +++ mmc.c (working copy) @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) * out. Others seem to handle it correctly, so it may * be a combination of card and controller. */ + mmc_select_card(sc, 0); mmc_select_card(sc, ivar->rca); mmc_app_sd_status(sc, ivar->rca, ivar->raw_sd_status); mmc_app_decode_sd_status(ivar->raw_sd_status, --=-qq1U0f2kB6yRSUFT5ALH-- From owner-freebsd-arm@freebsd.org Thu Jul 16 20:02:49 2015 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 A2EEC9A48F2 for ; Thu, 16 Jul 2015 20:02:49 +0000 (UTC) (envelope-from tuexen@fh-muenster.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail-n.franken.de", Issuer "Thawte DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3957D1BFB; Thu, 16 Jul 2015 20:02:49 +0000 (UTC) (envelope-from tuexen@fh-muenster.de) Received: from [192.168.1.200] (p4FE31B43.dip0.t-ipconnect.de [79.227.27.67]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 42B061C0C0BDB; Thu, 16 Jul 2015 22:02:45 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Michael Tuexen In-Reply-To: <1437072916.1334.364.camel@freebsd.org> Date: Thu, 16 Jul 2015 22:02:43 +0200 Cc: Luiz Otavio O Souza , "freebsd-arm@freebsd.org" , Warner Losh Content-Transfer-Encoding: quoted-printable Message-Id: <16AF6CE1-675C-49C2-9D98-DB1FB8656E1C@fh-muenster.de> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.2102) 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: Thu, 16 Jul 2015 20:02:49 -0000 > On 16 Jul 2015, at 20:55, Ian Lepore wrote: >=20 > On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: >> On 16 July 2015 at 09:23, Andreas Schwarz wrote: >>> On Wed, 15 Jul 2015 21:17:21 -0600 >>> Warner Losh wrote: >>>=20 >>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: >>>>>=20 >>>>> Is anyone else getting these errors during every boot? I'm = running r285346. >>>>=20 >>>> I=E2=80=99ve been running on the RPi2 for some time and have never = seen this. I haven=E2=80=99t >>>> rebuild in the past few weeks though. >>>>=20 >>>> Does this happen on either SD cards? Or other versions of the = kernel? >>>=20 >>> I've the same output (using generic RPI2 kernel conf). >>=20 >> This is a side effect of r283128, if you comment that line that >> re-select the card, CMD7 won't fail. >>=20 >> This also affects the MMC controller on Allwinner SoCs. >=20 > Hmm, so some cards deselect themselves when they shouldn't, and our > workaround that reselects them fails if the card didn't deselect = itself. > Maybe it will work for all cards/controllers if we explicitly deselect > then reselect the card at that point. (This only happens once at > card-insert/boot time, so it shouldn't impact performance.) >=20 > The attached patch adds the explicit deselect; it may or may not help. > (I haven't tested this at all). >=20 > -- Ian >=20 > Index: mmc.c > =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=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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- mmc.c (revision 285419) > +++ mmc.c (working copy) > @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) > * out. Others seem to handle it correctly, so = it may > * be a combination of card and controller. > */ > + mmc_select_card(sc, 0); > mmc_select_card(sc, ivar->rca); > mmc_app_sd_status(sc, ivar->rca, = ivar->raw_sd_status); > mmc_app_decode_sd_status(ivar->raw_sd_status, That resolves the issue: > dmesg KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #29 r285595M: Thu Jul 16 21:27:50 CEST 2015 tuexen@rpi2:/usr/home/tuexen/head/sys/arm/compile/RPI2 arm FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225 VT: init without driver. sema_sysinit CPU: Cortex A7 rev 5 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:3 LoUIS:2=20 Cache level 1:=20 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2:=20 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory =3D 989851648 (943 MB) avail memory =3D 958423040 (914 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: mem 0x3f000000-0x3fffffff = on ofwbus0 bcm28360: generic_timer0: irq 72,73,75,74 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 intc0: mem 0xb200-0xb3ff on simplebus0 bcmwd0: mem 0x10001c-0x100027 on simplebus0 gpio0: mem 0x200000-0x2000af irq = 57,59,58,60 on simplebus0 gpio0: read-only pins: 46,48-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin(s) 35 on gpiobus0 gpioled1: at pin(s) 47 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f irq 61 on = simplebus0 iicbus0: on iichb0 iic0: on iicbus0 iichb1: mem 0x804000-0x80401f irq 61 on = simplebus0 iicbus1: on iichb1 iic1: on iicbus1 spi0: mem 0x204000-0x20401f irq 62 on = simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff = irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 sdhci_bcm0: mem 0x300000-0x3000ff irq = 70 on simplebus0 mmc0: on sdhci_bcm0 uart0: mem 0x201000-0x201fff irq 65 on = simplebus0 uart0: console (115200,n,8,1) vchiq0: mem 0xb800-0xb84f irq 2 on simplebus0 vchiq0: [GIANT-LOCKED] vchiq: local ver 6 (min 3), remote ver 6. pcm0: on vchiq0 bcm283x_dwcotg0: mem = 0x980000-0x99ffff irq 17 on simplebus0 usbus0 on bcm283x_dwcotg0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 fb0: on ofwbus0 fbd0 on fb0 VT: initialize with new VT driver "fb". fb0: 656x416(656x416@0,0) 24bpp fb0: fbswap: 1, pitch 1968, base 0x3daac000, screen_size 818688 cryptosoft0: Timecounters tick every 10.000 msec IPsec: Initialized Security Association Processing. usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 mmcsd0: 32GB at mmc0 = 41.6MHz/4bit/65535-block bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF Release APs Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered ugen0.2: at usbus0 uhub1: = on usbus0 uhub1: MTT enabled Root mount waiting for: usbus0 uhub1: 5 ports with 4 removable, self powered Root mount waiting for: usbus0 ugen0.3: at usbus0 smsc0: on usbus0 Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... warning: no time-of-day clock registered, system time will not be set = accurately smsc0: chip 0xec00, rev. 0002 miibus0: on smsc0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on smsc0 ue0: Ethernet address: b8:27:eb:81:ba:40 random: unblocking device. smsc0: chip 0xec00, rev. 0002 ue0: link state changed to DOWN ue0: link state changed to UP >=20 Best regards Michael > _______________________________________________ > 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" From owner-freebsd-arm@freebsd.org Thu Jul 16 23:26:29 2015 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 F1BF99A4D99 for ; Thu, 16 Jul 2015 23:26:29 +0000 (UTC) (envelope-from freebsd-arm@sentry.org) Received: from shadow.sentry.org (shadow.sentry.org [220.233.87.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7AA041512 for ; Thu, 16 Jul 2015 23:26:28 +0000 (UTC) (envelope-from freebsd-arm@sentry.org) Received: from shadow.sentry.org (localhost [127.0.0.1]) by shadow.sentry.org (8.14.9/8.14.9) with ESMTP id t6GNNixD099733 for ; Fri, 17 Jul 2015 09:23:44 +1000 (AEST) (envelope-from freebsd-arm@sentry.org) Message-ID: <55A83D00.90603@sentry.org> Date: Fri, 17 Jul 2015 09:23:44 +1000 From: Trev User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 MIME-Version: 1.0 CC: freebsd-arm@freebsd.org Subject: Re: More RPI-B/SD card information [was: Re: RPi won't boot 10.2-BETA1 -- SOLVED] References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> In-Reply-To: <20150716150919.GK37051@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (shadow.sentry.org [127.0.0.1]); Fri, 17 Jul 2015 09:23:44 +1000 (AEST) 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: Thu, 16 Jul 2015 23:26:30 -0000 Glen Barber wrote: > I did a bit more testing, and it seems the RPI-B is *very* picky about > what SD cards will work. Below follows results of the tests, using the > 20150716-r285616 RPI-B image (built last night, propagating now). > > For completeness, I've included 'mmcinfo' output from u-boot, but what > is really interesting is cards (7) and (8). [...] > 7) FAILED > Kingston class 4 SDHC 4GB > U-Boot> mmcinfo > Device: bcm2835_sdhci > Manufacturer ID: 2 > OEM: 544d > Name: SA04G > Tran Speed: 50000000 > Rd Block Len: 512 > SD version 2.0 > High Capacity: Yes > Capacity: 3.6 GiB > Bus Width: 4-bit > > 8) SUCCESS > Kingston class 4 SDHC 4GB > U-Boot> mmcinfo > Device: bcm2835_sdhci > Manufacturer ID: 2 > OEM: 544d > Name: SA04G > Tran Speed: 50000000 > Rd Block Len: 512 > SD version 2.0 > High Capacity: Yes > Capacity: 3.6 GiB > Bus Width: 4-bit Maybe not so interesting if you read http://www.bunniestudios.com/blog/?p=918#comment-512017 regarding "Kingston" cards. Of more interest would be reading the cards ID data for date, fwrev, hwrev, manfid, name, oemid, scr and serial number. From owner-freebsd-arm@freebsd.org Fri Jul 17 00:43:05 2015 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 A003B9A3DAB for ; Fri, 17 Jul 2015 00:43:05 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter04.peak.org (filter04.peak.org [69.59.194.80]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B4501A03 for ; Fri, 17 Jul 2015 00:43:04 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter04.peak.org ({b5578ef9-c87c-4111-97f7-092309db775d}) via TCP (outbound) with ESMTPS id 20150717003951432_0000 for ; Thu, 16 Jul 2015 17:39:51 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id A6EC018EFDA for ; Thu, 16 Jul 2015 17:39:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 99577114B11 for ; Thu, 16 Jul 2015 17:39:45 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DCB7IOz-WUpQ for ; Thu, 16 Jul 2015 17:39:45 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id 636254DD89 for ; Thu, 16 Jul 2015 17:39:45 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZFtgm-0008Ld-2q for freebsd-arm@freebsd.org; Thu, 16 Jul 2015 17:39:44 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: More RPI-B/SD card information References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> <87h9p4yttc.fsf@elk.localnet> <20150716172414.GD53795@FreeBSD.org> <20150716181309.GF59802@e-new.0x20.net> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 16 Jul 2015 17:39:44 -0700 In-Reply-To: <20150716181309.GF59802@e-new.0x20.net> (Lars Engels's message of "Thu, 16 Jul 2015 20:13:09 +0200") Message-ID: <87bnfbzkfj.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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: Fri, 17 Jul 2015 00:43:05 -0000 Lars Engels writes: > On Thu, Jul 16, 2015 at 05:24:14PM +0000, Glen Barber wrote: >> >> Right, but with my testing (specifically cards (7) and (8), which as far >> as I can tell are the same card), one works and one does not. This is >> what I am trying to understand, because unless there is something wrong >> with the card, it's not being detected as "bad" by the other boards >> I have. > > Have you tried Raspian or some other Linux distro if a picky card works > with it? Since Glen said that he is busy, I tried that on one of my cards. I installed the NOOBS system, and that booted up properly. I used it to setup Raspbian and then booted into that without any problems. I retested that card with the 10.2-BETA1 image for FreeBSD, and that still doesn't boot. My Raspberry Pi is a B+ if that makes any difference. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Fri Jul 17 03:26:37 2015 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 BFBF79A2041 for ; Fri, 17 Jul 2015 03:26:37 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (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 82AA610D1 for ; Fri, 17 Jul 2015 03:26:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by iebmu5 with SMTP id mu5so69010733ieb.1 for ; Thu, 16 Jul 2015 20:26:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=oYYAQBYEUMJctA8bWif1eqZGtRvSI4DMQMBUpfdl9Yw=; b=k1OWd53fKupYGxVV1SrSaTZJT/Kh8T+asDz6Z+hMLhlbe6TQIkq2VNUhUqb+fFO00U ZjhMHDwC02K7IflTUN0KE779oEUjQiE13lpxv7rbdj6x7Yl89A4qQ2EPkuMjYEKrFJYX wLFb/EwN6fXo6s481IMh0C/IE7Qxq1iD+3j3umbRhHJ+VLO1dMQEX4IDGKeSQJ1Zf+8m Ova7wlzfkm1svuX5IsGlny7V33okGA6S/DV3EJQCrdfe8o8MOY6ONeJWB4I9hGIB8BVG z5gjtYJ0HAJyxQ4JwoddkhASFbgW9ighKP1/wJ+RpmOVklBY0Soe/X3Fq/HLypQrUq6Q 1GkQ== X-Gm-Message-State: ALoCoQmswnRdSy0TXCPHcnyeqWVeeb+tP36IPeCUi7rAOm4u+udRP6PE0Fg+X8UZIKOM9HLiuS86 X-Received: by 10.50.49.46 with SMTP id r14mr7748242ign.45.1437103589944; Thu, 16 Jul 2015 20:26:29 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id f126sm6431792ioe.21.2015.07.16.20.26.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jul 2015 20:26:28 -0700 (PDT) Sender: Warner Losh Subject: Re: More RPI-B/SD card information Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_31111A3F-1A21-4690-BC09-A8C19106D3E5"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <87bnfbzkfj.fsf@elk.localnet> Date: Thu, 16 Jul 2015 21:26:26 -0600 Cc: freebsd-arm@freebsd.org Message-Id: References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <87pp3tzaas.fsf@elk.localnet> <20150716150919.GK37051@FreeBSD.org> <87h9p4yttc.fsf@elk.localnet> <20150716172414.GD53795@FreeBSD.org> <20150716181309.GF59802@e-new.0x20.net> <87bnfbzkfj.fsf@elk.localnet> To: Carl Johnson X-Mailer: Apple Mail (2.2102) 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: Fri, 17 Jul 2015 03:26:37 -0000 --Apple-Mail=_31111A3F-1A21-4690-BC09-A8C19106D3E5 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On Jul 16, 2015, at 6:39 PM, Carl Johnson wrote: > > Lars Engels writes: > >> On Thu, Jul 16, 2015 at 05:24:14PM +0000, Glen Barber wrote: >>> >>> Right, but with my testing (specifically cards (7) and (8), which as far >>> as I can tell are the same card), one works and one does not. This is >>> what I am trying to understand, because unless there is something wrong >>> with the card, it's not being detected as "bad" by the other boards >>> I have. >> >> Have you tried Raspian or some other Linux distro if a picky card works >> with it? > > Since Glen said that he is busy, I tried that on one of my cards. I > installed the NOOBS system, and that booted up properly. I used it to > setup Raspbian and then booted into that without any problems. I > retested that card with the 10.2-BETA1 image for FreeBSD, and that still > doesn't boot. My Raspberry Pi is a B+ if that makes any difference. Clearly we have an issue in sdhci or possibly the mmc/sd driver. Warner --Apple-Mail=_31111A3F-1A21-4690-BC09-A8C19106D3E5 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVqHXiAAoJEGwc0Sh9sBEA0EwQAN7iLiUJrm9/9t6FVIrlZyXj VEWiO03tYkxr1kxXTLfu4k2Nqa5bxEFbEudsL354IM+c+eeYJTaZa23/XZ0bSAfQ CZH4lImNF+f00CVHlbMwINv5c2Mr/tD5oU+5m2nt2eTZ0S/KhLJ8jqqk6mZfk0ue wPURc4DhJAYLNV7cFKWgCaw8DidquVAucAPV0t14NSOsPZVMSHCQzaJ2NUjACn9B LxNik3yoKzVXCyMQZ2MAuQw3YobQPBEf7TEl0Q4JkCtd/UtLk2EobZive88qkEUk dmFOjPiytsm9DfZZI+tWm+WtjcQUD5qbwEUHTYRTvFD5FUfXaIEY24jTfDb2iyWv 25o8//XhJw58F0B8lMii11lOdbR/VqLzNfh586yBmhaR1EGPWllxzt/ezMJ0U2Bq utLdpHvyMQa2VWzz7HVk41tOHcBk372WJ/OcTRzYQRTd85Lo5/BplGycvCS2TD42 cQdpPQ7E68cPL/1B9dN47MvQ/we+MH19JKzHjSV3dQ5K0SUdykOq8TxPCEzuDTdg 80ZKmqT1PxqdcJpcKgJIc4MzkRVPIw1+j0rMOYr4yHxVK9bP8ndVDemcw823gfgI q2fjDVcGkCfycjYiOoCWVhAJFCZfrG+Civ7FTO8ZuWVJRuwlJM1LyWvSbXZbZTUb wgy2H1/2ATpDD2lRLSul =FQrB -----END PGP SIGNATURE----- --Apple-Mail=_31111A3F-1A21-4690-BC09-A8C19106D3E5-- From owner-freebsd-arm@freebsd.org Fri Jul 17 03:58:08 2015 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 3B50A9A260F for ; Fri, 17 Jul 2015 03:58:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) (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 072DC1E1A for ; Fri, 17 Jul 2015 03:58:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by ietj16 with SMTP id j16so69619288iet.0 for ; Thu, 16 Jul 2015 20:58:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=Q8jur2NwZe/q2CvxJxx5iETYg6pM10qHMWpF12T8iEw=; b=PfHuhJ0m711pyGApp6MAURIavAHdzUhP78dpoBfXe+mtFStRTFbpRihKqH1VAMtZ00 HPi5EuWDYeWXRkjCGv2IXxpgeUkTUMIbK6kQPuqMwwIL9bjZIFt9u80pcMc7wTVwmjjb 2r2bGhQEx71QarEbDPVixDQ7YPz1ol0wkSz12iTjEL8GpJUjSY7BTu2axr8mETEu4N5J kMfTieMmIIPl2IT1j2cj4e+YtiAgK9igWlRhs0wi5KRjpC4LMboBYJrE9cvti0UVyIkr ZxZ5cSzkssRx+NY1J62fU/4vWWAW3DFsPgwQDWmPS8VTVarRBVwvE8t7CoszFpaCaJsQ aTtw== X-Gm-Message-State: ALoCoQkj0yccgEVKE4uYnpKePU1Z377yX6p6Ol1Eg4dhsh38fZw9onhRrnF92tixcqUfXad8z4U3 X-Received: by 10.50.41.8 with SMTP id b8mr7862092igl.38.1437105481195; Thu, 16 Jul 2015 20:58:01 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id m1sm2807154igv.8.2015.07.16.20.58.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jul 2015 20:58:00 -0700 (PDT) Sender: Warner Losh Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_FE0D1F64-07A2-428F-BB24-8B6B025E32AF"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <1437072916.1334.364.camel@freebsd.org> Date: Thu, 16 Jul 2015 21:57:58 -0600 Cc: Luiz Otavio O Souza , "freebsd-arm@freebsd.org" , Warner Losh Message-Id: <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.2102) 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: Fri, 17 Jul 2015 03:58:08 -0000 --Apple-Mail=_FE0D1F64-07A2-428F-BB24-8B6B025E32AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 16, 2015, at 12:55 PM, Ian Lepore wrote: >=20 > On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: >> On 16 July 2015 at 09:23, Andreas Schwarz wrote: >>> On Wed, 15 Jul 2015 21:17:21 -0600 >>> Warner Losh wrote: >>>=20 >>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: >>>>>=20 >>>>> Is anyone else getting these errors during every boot? I'm = running r285346. >>>>=20 >>>> I=E2=80=99ve been running on the RPi2 for some time and have never = seen this. I haven=E2=80=99t >>>> rebuild in the past few weeks though. >>>>=20 >>>> Does this happen on either SD cards? Or other versions of the = kernel? >>>=20 >>> I've the same output (using generic RPI2 kernel conf). >>=20 >> This is a side effect of r283128, if you comment that line that >> re-select the card, CMD7 won't fail. >>=20 >> This also affects the MMC controller on Allwinner SoCs. >=20 > Hmm, so some cards deselect themselves when they shouldn't, and our > workaround that reselects them fails if the card didn't deselect = itself. > Maybe it will work for all cards/controllers if we explicitly deselect > then reselect the card at that point. (This only happens once at > card-insert/boot time, so it shouldn't impact performance.) >=20 > The attached patch adds the explicit deselect; it may or may not help. > (I haven't tested this at all). >=20 > -- Ian >=20 > Index: mmc.c > =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=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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- mmc.c (revision 285419) > +++ mmc.c (working copy) > @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) > * out. Others seem to handle it correctly, so = it may > * be a combination of card and controller. > */ > + mmc_select_card(sc, 0); > mmc_select_card(sc, ivar->rca); > mmc_app_sd_status(sc, ivar->rca, = ivar->raw_sd_status); > mmc_app_decode_sd_status(ivar->raw_sd_status, Yes. I like this. Update the comment though please. Warner --Apple-Mail=_FE0D1F64-07A2-428F-BB24-8B6B025E32AF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVqH1GAAoJEGwc0Sh9sBEAaLcQAJQbgaulP03QcpPL1+tAkvV1 9F9gAL5eIoHaxSZTe7O2fQ2uxxpEvW6fpwBR10oy664Crdb6X1ty1xH9k/jMi4JV 1o7ueRRi791mzVm76bb7S3OKN0jdsIx84ovH7PJCYUPMS6lT6Q+uUiODyXJW61Pi tWmR3et9OY6Zf20EaP5ozVNkKZYMv5Ce76LOH5DTNrSJboOhdXDkEi8+cIYB+yEL baydKUDLwx5lzSTRp5lrtFSx5adBWf2qE92zxG/R0gRGXjWpBYqSz/f8LO+JyC8U BnucUEIZq9JirWX7oohZvetESgEUX+OYT2ygGGcdrLwHNoh5BVQj924HjDHLewkJ T62x1AFPmi1QerXUYbmxZXIZn8syaqc/lSR5rCXYAh8SHUHT+v90uz6XB+Gkppqf zNOObEaDgO4z++g8FB67XBKwqeHHVOFSHvuOXHDJ3ZOoCssx8A4Nqsi3SMzk1Fal ILwOdiHD6n4gHrI/e+F8tKigUbaNK5jphh9rYg+q8Ytj74eWaWVA8l4to1/5ZmVc b+Y0JX5vdhryYjDUuida9/G8BQLwKOcBfESyNwRmQU+xmeW0kkT2JmzxlrAk+lYu NeOiXhU/ew+0d3YgQ4yzH8PvRKRpBbA8lyBHJg8KBBE5hgO/HSodKCinuz7GSMYN Tbh9N7m/2aJYiawmBG4P =/3bz -----END PGP SIGNATURE----- --Apple-Mail=_FE0D1F64-07A2-428F-BB24-8B6B025E32AF-- From owner-freebsd-arm@freebsd.org Fri Jul 17 06:33:28 2015 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 BF2189A4BED for ; Fri, 17 Jul 2015 06:33:28 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 9BEF21D4D for ; Fri, 17 Jul 2015 06:33:28 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 83DE1EB04; Fri, 17 Jul 2015 06:33:28 +0000 (UTC) Date: Fri, 17 Jul 2015 06:33:28 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3113+327+1cf7cbc9f0675474@FreeBSD.org Subject: [Differential] [Request, 4 lines] D3113: Increase DMAP size on ARM64 Message-ID: X-Priority: 3 Thread-Topic: D3113: Increase DMAP size on ARM64 X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: MzhkMDljNjBiMmIyOTBiOTM4ZDAyYzIwZjZk Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_26ef4ad4a50b2d76ab30392698b6be7e" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 06:33:28 -0000 --b1_26ef4ad4a50b2d76ab30392698b6be7e Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: emaste, zbb, andrew. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY Previous DMAP size was too low for systems with more than 64GB of RAM. Increase it to 128GB to support ThunderX CRB. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3113 AFFECTED FILES sys/arm64/include/vmparam.h CHANGE DETAILS diff --git a/sys/arm64/include/vmparam.h b/sys/arm64/include/vmparam.h --- a/sys/arm64/include/vmparam.h +++ b/sys/arm64/include/vmparam.h @@ -156,9 +156,9 @@ #define VM_MIN_KERNEL_ADDRESS (0xffffff8000000000UL) #define VM_MAX_KERNEL_ADDRESS (0xffffff8800000000UL) -/* Direct Map for 64 GiB of PA: 0x0 - 0xfffffffff */ +/* Direct Map for 128 GiB of PA: 0x0 - 0x1fffffffff */ #define DMAP_MIN_ADDRESS (0xffffffc000000000UL) -#define DMAP_MAX_ADDRESS (0xffffffcfffffffffUL) +#define DMAP_MAX_ADDRESS (0xffffffdfffffffffUL) #define DMAP_MIN_PHYSADDR (0x0000000000000000UL) #define DMAP_MAX_PHYSADDR (DMAP_MAX_ADDRESS - DMAP_MIN_ADDRESS) EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_26ef4ad4a50b2d76ab30392698b6be7e Content-Type: text/x-patch; charset=utf-8; name="D3113.7037.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3113.7037.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9pbmNsdWRlL3ZtcGFyYW0uaCBiL3N5cy9hcm02NC9pbmNs dWRlL3ZtcGFyYW0uaAotLS0gYS9zeXMvYXJtNjQvaW5jbHVkZS92bXBhcmFtLmgKKysrIGIvc3lz L2FybTY0L2luY2x1ZGUvdm1wYXJhbS5oCkBAIC0xNTYsOSArMTU2LDkgQEAKICNkZWZpbmUJVk1f TUlOX0tFUk5FTF9BRERSRVNTCSgweGZmZmZmZjgwMDAwMDAwMDBVTCkKICNkZWZpbmUJVk1fTUFY X0tFUk5FTF9BRERSRVNTCSgweGZmZmZmZjg4MDAwMDAwMDBVTCkKIAotLyogRGlyZWN0IE1hcCBm b3IgNjQgR2lCIG9mIFBBOiAweDAgLSAweGZmZmZmZmZmZiAqLworLyogRGlyZWN0IE1hcCBmb3Ig MTI4IEdpQiBvZiBQQTogMHgwIC0gMHgxZmZmZmZmZmZmICovCiAjZGVmaW5lCURNQVBfTUlOX0FE RFJFU1MJKDB4ZmZmZmZmYzAwMDAwMDAwMFVMKQotI2RlZmluZQlETUFQX01BWF9BRERSRVNTCSgw eGZmZmZmZmNmZmZmZmZmZmZVTCkKKyNkZWZpbmUJRE1BUF9NQVhfQUREUkVTUwkoMHhmZmZmZmZk ZmZmZmZmZmZmVUwpCiAKICNkZWZpbmUJRE1BUF9NSU5fUEhZU0FERFIJKDB4MDAwMDAwMDAwMDAw MDAwMFVMKQogI2RlZmluZQlETUFQX01BWF9QSFlTQUREUgkoRE1BUF9NQVhfQUREUkVTUyAtIERN QVBfTUlOX0FERFJFU1MpCgo= --b1_26ef4ad4a50b2d76ab30392698b6be7e-- From owner-freebsd-arm@freebsd.org Fri Jul 17 09:30:03 2015 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 62CFE996AF2 for ; Fri, 17 Jul 2015 09:30:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 42CE9109E for ; Fri, 17 Jul 2015 09:30:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 39C8EED23; Fri, 17 Jul 2015 09:30:03 +0000 (UTC) Date: Fri, 17 Jul 2015 09:30:03 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3113+327+1cf7cbc9f0675474@FreeBSD.org Subject: [Differential] [Accepted] D3113: Increase DMAP size on ARM64 Message-ID: <7310136794ee3c0723fcf1b8ede91258@localhost.localdomain> X-Priority: 3 Thread-Topic: D3113: Increase DMAP size on ARM64 X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzhkMDljNjBiMmIyOTBiOTM4ZDAyYzIwZjZkIFWoyxs= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 09:30:03 -0000 andrew accepted this revision. This revision has a positive review. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3113 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Fri Jul 17 09:32:37 2015 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 C289D996C1E for ; Fri, 17 Jul 2015 09:32:37 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id AC9521306 for ; Fri, 17 Jul 2015 09:32:37 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id AAAB8EECC; Fri, 17 Jul 2015 09:32:37 +0000 (UTC) Date: Fri, 17 Jul 2015 09:32:37 +0000 To: freebsd-arm@freebsd.org From: "andrew (Andrew Turner)" Reply-to: D3106+327+b28f69eb027ff4f2@FreeBSD.org Subject: [Differential] [Accepted] D3106: Fix possible coherency issues between PEs related to I-cache Message-ID: <00b4a32d488248494717db171d641112@localhost.localdomain> X-Priority: 3 Thread-Topic: D3106: Fix possible coherency issues between PEs related to I-cache X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MjNjMTI1ZTZiZGVmZmU3NDRjM2FmNmIzZTA3IFWoy7U= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 09:32:37 -0000 andrew accepted this revision. This revision has a positive review. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3106 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Fri Jul 17 09:52:01 2015 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 E6125996ED7 for ; Fri, 17 Jul 2015 09:52:01 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id CDAC51BEC for ; Fri, 17 Jul 2015 09:52:01 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id B634FE864; Fri, 17 Jul 2015 09:52:01 +0000 (UTC) Date: Fri, 17 Jul 2015 09:52:01 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3107+327+a15a6a8a12bdc6fc@FreeBSD.org Subject: [Differential] [Accepted] D3107: Fix ARM64 stack calculation Message-ID: <34519234004ab8fe5d97cdb30c8481ed@localhost.localdomain> X-Priority: 3 Thread-Topic: D3107: Fix ARM64 stack calculation X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MGU3ZWIwMjcwYmFiODRiMmUwODVmN2IzNDdjIFWo0EE= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 09:52:02 -0000 zbb accepted this revision. This revision has a positive review. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3107 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, andoriyu_gmail.com, emaste, zbb Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Fri Jul 17 13:01:50 2015 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 967109A2DF7 for ; Fri, 17 Jul 2015 13:01:50 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 7B81A1498 for ; Fri, 17 Jul 2015 13:01:50 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 65ACEE0C1; Fri, 17 Jul 2015 13:01:50 +0000 (UTC) Date: Fri, 17 Jul 2015 13:01:50 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3118+327+5868c124937b902a@FreeBSD.org Subject: [Differential] [Request, 100 lines] D3118: Add support for external function for PCI devid acquisition Message-ID: X-Priority: 3 Thread-Topic: D3118: Add support for external function for PCI devid acquisition X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: M2YxNjYwYTVkYjgxYmNjMGMxYTRlMThmMDIz Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_b034f9194cbd6069833991284d615f15" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 13:01:50 -0000 --b1_b034f9194cbd6069833991284d615f15 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit wma_semihalf.com created this revision. wma_semihalf.com added reviewers: zbb, emaste, andrew. wma_semihalf.com added a subscriber: freebsd-arm-list. wma_semihalf.com set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY It is possible that some HW will use different PCI devids, hence allow to replace the default domain:bus:slot:func schema by implementing and registering custom function. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3118 AFFECTED FILES sys/arm64/arm64/gic_v3_its.c sys/arm64/arm64/gic_v3_var.h EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, zbb, emaste, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_b034f9194cbd6069833991284d615f15 Content-Type: text/x-patch; charset=utf-8; name="D3118.7045.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3118.7045.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9naWNfdjNfdmFyLmggYi9zeXMvYXJtNjQvYXJt NjQvZ2ljX3YzX3Zhci5oCi0tLSBhL3N5cy9hcm02NC9hcm02NC9naWNfdjNfdmFyLmgKKysrIGIv c3lzL2FybTY0L2FybTY0L2dpY192M192YXIuaApAQCAtMjc3LDEzICsyNzcsMTQgQEA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ZXYvcGNpL3BjaXJlZy5oPgogI2luY2x1ZGUgPGRldi9wY2kvcGNpdmFyLmg+CiAKICNpbmNs dWRlIDx2bS92bS5oPgpAQCAtODQsNiArODUsOCBAQAogCiBNQUxMT0NfREVGSU5FKE1fR0lDX1Yz X0lUUywgIkdJQ3YzIElUUyIsIEdJQ19WM19JVFNfREVWU1RSKTsKIAordHlwZWRlZiB1aW50MzJf dCAoKml0c19kZXZpZF9mdW5jX3QpKGRldmljZV90KTsKKwogc3RhdGljIGludCBpdHNfYWxsb2Nf dGFibGVzKHN0cnVjdCBnaWNfdjNfaXRzX3NvZnRjICopOwogc3RhdGljIHZvaWQgaXRzX2ZyZWVf dGFibGVzKHN0cnVjdCBnaWNfdjNfaXRzX3NvZnRjICopOwogc3RhdGljIHZvaWQgaXRzX2luaXRf Y29tbWFuZHEoc3RydWN0IGdpY192M19pdHNfc29mdGMgKik7CkBAIC05OCwxMiArMTAxLDE5IEBA CiBzdGF0aWMgdm9pZCBpdHNfY21kX21hcGkoc3RydWN0IGdpY192M19pdHNfc29mdGMgKiwgc3Ry dWN0IGl0c19kZXYgKiwgdWludDMyX3QpOwogc3RhdGljIHZvaWQgaXRzX2NtZF9pbnYoc3RydWN0 IGdpY192M19pdHNfc29mdGMgKiwgc3RydWN0IGl0c19kZXYgKiwgdWludDMyX3QpOwogc3RhdGlj IHZvaWQgaXRzX2NtZF9pbnZhbGwoc3RydWN0IGdpY192M19pdHNfc29mdGMgKiwgc3RydWN0IGl0 c19jb2wgKik7CitzdGF0aWMgdWludDMyX3QgaXRzX3F1aXJrX2RldmlkX3RodW5kZXIoZGV2aWNl X3QpOwogCiBzdGF0aWMgdm9pZCBscGlfaW5pdF9jb25mdGFibGUoc3RydWN0IGdpY192M19pdHNf c29mdGMgKik7CiBzdGF0aWMgdm9pZCBscGlfYml0bWFwX2luaXQoc3RydWN0IGdpY192M19pdHNf c29mdGMgKik7CiBzdGF0aWMgdm9pZCBscGlfaW5pdF9jcHUoc3RydWN0I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mV0dXJuICgwKTsKK30KKwor c3RhdGljIF9faW5saW5lIHVpbnQzMl90CitpdHNfZ2V0X2RldmlkX2RlZmF1bHQoZGV2aWNlX3Qg cGNpX2RldikKK3sKKworCXJldHVybiAoUENJX0RFVklEX0dFTkVSSUMocGNpX2RldikpOworfQor CitzdGF0aWMgdWludDMyX3QKK2l0c19nZXRfZGV2aWQoZGV2aWNlX3QgcGNpX2RldikKK3sKKwlz dHJ1Y3QgaXRzX3F1aXJrcyAqcXVpcmsgPSAmaXRzX3F1aXJrc1swXTsKKworCXdoaWxlIChxdWly ay0+Y3B1aWQgIT0gMCkgeworCQlpZiAoQ1BVX01BVENIX1JBVyhxdWlyay0+Y3B1aWRfbWFzaywg cXVpcmstPmNwdWlkKSkgeworCQkJaWYgKHF1aXJrLT5kZXZpZF9mdW5jICE9IE5VTEwpCisJCQkJ cmV0dXJuICgoKnF1aXJrLT5kZXZpZF9mdW5jKShwY2lfZGV2KSk7CisJCX0KKwkJcXVpcmsrKzsK Kwl9CisKKwlyZXR1cm4gKGl0c19nZXRfZGV2aWRfZGVmYXVsdChwY2lfZGV2KSk7Cit9CisKIHN0 YXRpYyBpbnQKIGdpY192M19pdHNfYXR0YWNoKGRldmljZV90IGRldikKIHsKQEAgLTEzMDAsNyAr MTM4NSw3IEBACiAJaWYgKG5ld2RldiAhPSBOVUxMKQogCQlyZXR1cm4gKG5ld2Rldik7CiAKLQlk ZXZpZCA9IFBDSV9ERVZJRChwY2lfZGV2KTsKKwlkZXZpZCA9IGl0c19nZXRfZGV2aWQocGNpX2Rl dik7CiAKIAkvKiBUaGVyZSB3YXMgbm8gcHJldmlvdXNseSBjcmVhdGVkIGRldmljZS4gQ3JlYXRl IG9uZSBub3cgKi8KIAluZXdkZXYgPSBtYWxsb2Moc2l6ZW9mKCpuZXdkZXYpLCBNX0dJQ19WM19J VFMsIChNX1dBSVRPSyB8IE1fWkVSTykpOwoK --b1_b034f9194cbd6069833991284d615f15-- From owner-freebsd-arm@freebsd.org Fri Jul 17 13:02:16 2015 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 DF6BF9A2E1F for ; Fri, 17 Jul 2015 13:02:16 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id C9B101528 for ; Fri, 17 Jul 2015 13:02:16 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id C575DE137; Fri, 17 Jul 2015 13:02:16 +0000 (UTC) Date: Fri, 17 Jul 2015 13:02:16 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3117+327+8f109921f0a78d2b@FreeBSD.org Subject: [Differential] [Updated] D3117: Improve ARM64 CPU_MATCH Message-ID: <5c2c5e8577d6081626441a3c0b28fe2d@localhost.localdomain> X-Priority: 3 Thread-Topic: D3117: Improve ARM64 CPU_MATCH X-Herald-Rules: <28>, <31>, <32>, <34>, <53> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTA1MzRhZmFkYTI2YTEyMGUwMjBjYzZjNjBkIFWo/Ng= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 13:02:17 -0000 wma_semihalf.com added reviewers: andrew, emaste, zbb. wma_semihalf.com added a subscriber: freebsd-arm-list. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3117 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, Contributor Reviewers, andrew, emaste, zbb Cc: freebsd-arm-list, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Fri Jul 17 14:08:45 2015 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 CEB109A4932 for ; Fri, 17 Jul 2015 14:08:45 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id B330A16E3 for ; Fri, 17 Jul 2015 14:08:45 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id A22BDEF07; Fri, 17 Jul 2015 14:08:45 +0000 (UTC) Date: Fri, 17 Jul 2015 14:08:45 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3107+327+a15a6a8a12bdc6fc@FreeBSD.org Subject: [Differential] [Closed] D3107: Fix ARM64 stack calculation Message-ID: <497101434bde5b8ff94e80cdb0287f3d@localhost.localdomain> X-Priority: 3 Thread-Topic: D3107: Fix ARM64 stack calculation X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MGU3ZWIwMjcwYmFiODRiMmUwODVmN2IzNDdjIFWpDG0= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_497101434bde5b8ff94e80cdb0287f3d" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 14:08:45 -0000 --b1_497101434bde5b8ff94e80cdb0287f3d Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285654: Fix secondary stacks calculation on ARM64 (authored by zbb). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D3107?vs=7002&id=7046#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3107?vs=7002&id=7046 REVISION DETAIL https://reviews.freebsd.org/D3107 AFFECTED FILES head/sys/arm64/arm64/locore.S CHANGE DETAILS diff --git a/head/sys/arm64/arm64/locore.S b/head/sys/arm64/arm64/locore.S --- a/head/sys/arm64/arm64/locore.S +++ b/head/sys/arm64/arm64/locore.S @@ -179,8 +179,7 @@ mp_virtdone: ldr x4, =secondary_stacks mov x5, #(PAGE_SIZE * KSTACK_PAGES) - sub x1, x0, #1 - mul x5, x1, x5 + mul x5, x0, x5 add sp, x4, x5 b init_secondary EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, andoriyu_gmail.com, emaste, zbb Cc: imp, andrew, freebsd-arm-list, emaste --b1_497101434bde5b8ff94e80cdb0287f3d Content-Type: text/x-patch; charset=utf-8; name="D3107.7046.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3107.7046.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2FybTY0L2FybTY0L2xvY29yZS5TIGIvaGVhZC9zeXMvYXJt NjQvYXJtNjQvbG9jb3JlLlMKLS0tIGEvaGVhZC9zeXMvYXJtNjQvYXJtNjQvbG9jb3JlLlMKKysr IGIvaGVhZC9zeXMvYXJtNjQvYXJtNjQvbG9jb3JlLlMKQEAgLTE3OSw4ICsxNzksNyBAQAogbXBf dmlydGRvbmU6CiAJbGRyCXg0LCA9c2Vjb25kYXJ5X3N0YWNrcwogCW1vdgl4NSwgIyhQQUdFX1NJ WkUgKiBLU1RBQ0tfUEFHRVMpCi0Jc3ViCXgxLCB4MCwgIzEKLQltdWwJeDUsIHgxLCB4NQorCW11 bAl4NSwgeDAsIHg1CiAJYWRkCXNwLCB4NCwgeDUKIAogCWIJaW5pdF9zZWNvbmRhcnkKCg== --b1_497101434bde5b8ff94e80cdb0287f3d-- From owner-freebsd-arm@freebsd.org Fri Jul 17 14:18:29 2015 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 825809A4B16 for ; Fri, 17 Jul 2015 14:18:29 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 5FD1E1E8C for ; Fri, 17 Jul 2015 14:18:29 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 4B937E396; Fri, 17 Jul 2015 14:18:29 +0000 (UTC) Date: Fri, 17 Jul 2015 14:18:29 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3113+327+1cf7cbc9f0675474@FreeBSD.org Subject: [Differential] [Closed] D3113: Increase DMAP size on ARM64 Message-ID: <72613b258ce101ddb04eaa1b982763bb@localhost.localdomain> X-Priority: 3 Thread-Topic: D3113: Increase DMAP size on ARM64 X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzhkMDljNjBiMmIyOTBiOTM4ZDAyYzIwZjZkIFWpDrU= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_72613b258ce101ddb04eaa1b982763bb" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 14:18:29 -0000 --b1_72613b258ce101ddb04eaa1b982763bb Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285653: Increase DMAP (Direct Map) size on ARM64 (authored by zbb). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D3113?vs=7037&id=7047#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3113?vs=7037&id=7047 REVISION DETAIL https://reviews.freebsd.org/D3113 AFFECTED FILES head/sys/arm64/include/vmparam.h CHANGE DETAILS diff --git a/head/sys/arm64/include/vmparam.h b/head/sys/arm64/include/vmparam.h --- a/head/sys/arm64/include/vmparam.h +++ b/head/sys/arm64/include/vmparam.h @@ -156,9 +156,9 @@ #define VM_MIN_KERNEL_ADDRESS (0xffffff8000000000UL) #define VM_MAX_KERNEL_ADDRESS (0xffffff8800000000UL) -/* Direct Map for 64 GiB of PA: 0x0 - 0xfffffffff */ +/* Direct Map for 128 GiB of PA: 0x0 - 0x1fffffffff */ #define DMAP_MIN_ADDRESS (0xffffffc000000000UL) -#define DMAP_MAX_ADDRESS (0xffffffcfffffffffUL) +#define DMAP_MAX_ADDRESS (0xffffffdfffffffffUL) #define DMAP_MIN_PHYSADDR (0x0000000000000000UL) #define DMAP_MAX_PHYSADDR (DMAP_MAX_ADDRESS - DMAP_MIN_ADDRESS) EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_72613b258ce101ddb04eaa1b982763bb Content-Type: text/x-patch; charset=utf-8; name="D3113.7047.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3113.7047.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2FybTY0L2luY2x1ZGUvdm1wYXJhbS5oIGIvaGVhZC9zeXMv YXJtNjQvaW5jbHVkZS92bXBhcmFtLmgKLS0tIGEvaGVhZC9zeXMvYXJtNjQvaW5jbHVkZS92bXBh cmFtLmgKKysrIGIvaGVhZC9zeXMvYXJtNjQvaW5jbHVkZS92bXBhcmFtLmgKQEAgLTE1Niw5ICsx NTYsOSBAQAogI2RlZmluZQlWTV9NSU5fS0VSTkVMX0FERFJFU1MJKDB4ZmZmZmZmODAwMDAwMDAw MFVMKQogI2RlZmluZQlWTV9NQVhfS0VSTkVMX0FERFJFU1MJKDB4ZmZmZmZmODgwMDAwMDAwMFVM KQogCi0vKiBEaXJlY3QgTWFwIGZvciA2NCBHaUIgb2YgUEE6IDB4MCAtIDB4ZmZmZmZmZmZmICov CisvKiBEaXJlY3QgTWFwIGZvciAxMjggR2lCIG9mIFBBOiAweDAgLSAweDFmZmZmZmZmZmYgKi8K ICNkZWZpbmUJRE1BUF9NSU5fQUREUkVTUwkoMHhmZmZmZmZjMDAwMDAwMDAwVUwpCi0jZGVmaW5l CURNQVBfTUFYX0FERFJFU1MJKDB4ZmZmZmZmY2ZmZmZmZmZmZlVMKQorI2RlZmluZQlETUFQX01B WF9BRERSRVNTCSgweGZmZmZmZmRmZmZmZmZmZmZVTCkKIAogI2RlZmluZQlETUFQX01JTl9QSFlT QUREUgkoMHgwMDAwMDAwMDAwMDAwMDAwVUwpCiAjZGVmaW5lCURNQVBfTUFYX1BIWVNBRERSCShE TUFQX01BWF9BRERSRVNTIC0gRE1BUF9NSU5fQUREUkVTUykKCg== --b1_72613b258ce101ddb04eaa1b982763bb-- From owner-freebsd-arm@freebsd.org Fri Jul 17 14:34:04 2015 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 B1ED89A4D98 for ; Fri, 17 Jul 2015 14:34:04 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 9294B17D9 for ; Fri, 17 Jul 2015 14:34:04 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 79DD3EADE; Fri, 17 Jul 2015 14:34:04 +0000 (UTC) Date: Fri, 17 Jul 2015 14:34:04 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3106+327+b28f69eb027ff4f2@FreeBSD.org Subject: [Differential] [Closed] D3106: Fix possible coherency issues between PEs related to I-cache Message-ID: <15d88babd70b5a427fb276d84f9e8e54@localhost.localdomain> X-Priority: 3 Thread-Topic: D3106: Fix possible coherency issues between PEs related to I-cache X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MjNjMTI1ZTZiZGVmZmU3NDRjM2FmNmIzZTA3IFWpElw= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_15d88babd70b5a427fb276d84f9e8e54" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 14:34:04 -0000 --b1_15d88babd70b5a427fb276d84f9e8e54 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS285655: Fix possible coherency issues between PEs related to I-cache (authored by zbb). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D3106?vs=6995&id=7048#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D3106?vs=6995&id=7048 REVISION DETAIL https://reviews.freebsd.org/D3106 AFFECTED FILES head/sys/arm64/arm64/cpufunc_asm.S CHANGE DETAILS diff --git a/head/sys/arm64/arm64/cpufunc_asm.S b/head/sys/arm64/arm64/cpufunc_asm.S --- a/head/sys/arm64/arm64/cpufunc_asm.S +++ b/head/sys/arm64/arm64/cpufunc_asm.S @@ -61,17 +61,18 @@ add x1, x1, x2 /* Add these to the size */ bic x0, x0, x4 /* Clear the low bit of the address */ 1: + dc \dcop, x0 + dsb ish .if \ic != 0 ic \icop, x0 + dsb ish .endif - dc \dcop, x0 add x0, x0, x3 /* Move to the next line */ subs x1, x1, x3 /* Reduce the size */ b.hi 1b /* Check if we are done */ .if \ic != 0 isb .endif - dsb ish ret .endm EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, emaste, zbb, andrew Cc: imp, andrew, freebsd-arm-list, emaste --b1_15d88babd70b5a427fb276d84f9e8e54 Content-Type: text/x-patch; charset=utf-8; name="D3106.7048.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3106.7048.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2FybTY0L2FybTY0L2NwdWZ1bmNfYXNtLlMgYi9oZWFkL3N5 cy9hcm02NC9hcm02NC9jcHVmdW5jX2FzbS5TCi0tLSBhL2hlYWQvc3lzL2FybTY0L2FybTY0L2Nw dWZ1bmNfYXNtLlMKKysrIGIvaGVhZC9zeXMvYXJtNjQvYXJtNjQvY3B1ZnVuY19hc20uUwpAQCAt NjEsMTcgKzYxLDE4IEBACiAJYWRkCXgxLCB4MSwgeDIJCS8qIEFkZCB0aGVzZSB0byB0aGUgc2l6 ZSAqLwogCWJpYwl4MCwgeDAsIHg0CQkvKiBDbGVhciB0aGUgbG93IGJpdCBvZiB0aGUgYWRkcmVz cyAqLwogMToKKwlkYwlcZGNvcCwgeDAKKwlkc2IJaXNoCiAuaWYgXGljICE9IDAKIAlpYwlcaWNv cCwgeDAKKwlkc2IJaXNoCiAuZW5kaWYKLQlkYwlcZGNvcCwgeDAKIAlhZGQJeDAsIHgwLCB4MwkJ LyogTW92ZSB0byB0aGUgbmV4dCBsaW5lICovCiAJc3Vicwl4MSwgeDEsIHgzCQkvKiBSZWR1Y2Ug dGhlIHNpemUgKi8KIAliLmhpCTFiCQkJLyogQ2hlY2sgaWYgd2UgYXJlIGRvbmUgKi8KIC5pZiBc aWMgIT0gMAogCWlzYgogLmVuZGlmCi0JZHNiCWlzaAogCXJldAogLmVuZG0KIAoK --b1_15d88babd70b5a427fb276d84f9e8e54-- From owner-freebsd-arm@freebsd.org Fri Jul 17 14:55:57 2015 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 4C14A9A4118 for ; Fri, 17 Jul 2015 14:55:57 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery4.ore.mailhop.org (pmta2.delivery4.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id 06BB91162 for ; Fri, 17 Jul 2015 14:55:56 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Fri, 17 Jul 2015 14:55:33 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6HEtmZ6056526; Fri, 17 Jul 2015 08:55:49 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1437144948.1334.373.camel@freebsd.org> Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Ian Lepore To: Warner Losh Cc: Warner Losh , "freebsd-arm@freebsd.org" Date: Fri, 17 Jul 2015 08:55:48 -0600 In-Reply-To: <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> Content-Type: text/plain; charset="iso-8859-7" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Fri, 17 Jul 2015 14:55:57 -0000 On Thu, 2015-07-16 at 21:57 -0600, Warner Losh wrote: > > On Jul 16, 2015, at 12:55 PM, Ian Lepore wrote: > > > > On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: > >> On 16 July 2015 at 09:23, Andreas Schwarz wrote: > >>> On Wed, 15 Jul 2015 21:17:21 -0600 > >>> Warner Losh wrote: > >>> > >>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: > >>>>> > >>>>> Is anyone else getting these errors during every boot? I'm running r285346. > >>>> > >>>> I¢ve been running on the RPi2 for some time and have never seen this. I haven¢t > >>>> rebuild in the past few weeks though. > >>>> > >>>> Does this happen on either SD cards? Or other versions of the kernel? > >>> > >>> I've the same output (using generic RPI2 kernel conf). > >> > >> This is a side effect of r283128, if you comment that line that > >> re-select the card, CMD7 won't fail. > >> > >> This also affects the MMC controller on Allwinner SoCs. > > > > Hmm, so some cards deselect themselves when they shouldn't, and our > > workaround that reselects them fails if the card didn't deselect itself. > > Maybe it will work for all cards/controllers if we explicitly deselect > > then reselect the card at that point. (This only happens once at > > card-insert/boot time, so it shouldn't impact performance.) > > > > The attached patch adds the explicit deselect; it may or may not help. > > (I haven't tested this at all). > > > > -- Ian > > > > Index: mmc.c > > =================================================================== > > --- mmc.c (revision 285419) > > +++ mmc.c (working copy) > > @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) > > * out. Others seem to handle it correctly, so it may > > * be a combination of card and controller. > > */ > > + mmc_select_card(sc, 0); > > mmc_select_card(sc, ivar->rca); > > mmc_app_sd_status(sc, ivar->rca, ivar->raw_sd_status); > > mmc_app_decode_sd_status(ivar->raw_sd_status, > > Yes. I like this. Update the comment though please. > > Warner > Yeah, when I commit I'll make the comment match the new reality, just waiting to hear another success report or two first. -- Ian From owner-freebsd-arm@freebsd.org Fri Jul 17 18:20:52 2015 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 ADB1C9A45AE for ; Fri, 17 Jul 2015 18:20:52 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 925491A17 for ; Fri, 17 Jul 2015 18:20:52 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 6B014E943; Fri, 17 Jul 2015 18:20:52 +0000 (UTC) Date: Fri, 17 Jul 2015 18:20:52 +0000 To: freebsd-arm@freebsd.org From: "wma_semihalf.com (Wojciech Macek)" Reply-to: D3117+327+8f109921f0a78d2b@FreeBSD.org Subject: [Differential] [Commented On] D3117: Improve ARM64 CPU_MATCH Message-ID: X-Priority: 3 Thread-Topic: D3117: Improve ARM64 CPU_MATCH X-Herald-Rules: <28>, <31>, <32>, <34>, <53> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MTA1MzRhZmFkYTI2YTEyMGUwMjBjYzZjNjBkIFWpR4Q= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 18:20:52 -0000 wma_semihalf.com added inline comments. INLINE COMMENTS sys/arm64/include/cpu.h:95 I'll fix in the final commit. sys/arm64/include/cpu.h:100 Here as well REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3117 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: wma_semihalf.com, Contributor Reviewers, andrew, emaste, zbb Cc: freebsd-arm-list, imp, andrew, emaste From owner-freebsd-arm@freebsd.org Fri Jul 17 18:38:26 2015 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 78F479A4848 for ; Fri, 17 Jul 2015 18:38:26 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 5FCC11222 for ; Fri, 17 Jul 2015 18:38:26 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 5AAD0E0EE; Fri, 17 Jul 2015 18:38:26 +0000 (UTC) Date: Fri, 17 Jul 2015 18:38:26 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3121+327+663142b8abc1b1a2@FreeBSD.org Subject: [Differential] [Request, 32 lines] D3121: Don't allow malloc() to wait for resource while holding a lock in ITS Message-ID: X-Priority: 3 Thread-Topic: D3121: Don't allow malloc() to wait for resource while holding a lock in ITS X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Thread-Index: MzQzYWEyZTJmMDEzOTI1ZWU3ODgyYTA3ZWJj Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_9a72bb892bcba53faec79e1a568f0eb4" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 18:38:26 -0000 --b1_9a72bb892bcba53faec79e1a568f0eb4 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit zbb created this revision. zbb added reviewers: emaste, andrew, wma_semihalf.com, imp, ian. zbb added a subscriber: freebsd-arm-list. zbb set the repository for this revision to rS FreeBSD src repository. Herald added subscribers: emaste, andrew, imp. REVISION SUMMARY malloc() should not go to sleep in case of lack of resource while the kernel thread is holding a non-sleepable lock. - change malloc() flags to M_NOWAIT in such cases - implement lpi_free_chunk() routine since it will be needed when ITT allocation fails in its_device_alloc_locked() - do not increase verbosity of this code since upper layers will communicate an error if the interrupt setup fails Obtained from: Semihalf Sponsored by: The FreeBSD Foundation REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3121 AFFECTED FILES sys/arm64/arm64/gic_v3_its.c CHANGE DETAILS diff --git a/sys/arm64/arm64/gic_v3_its.c b/sys/arm64/arm64/gic_v3_its.c --- a/sys/arm64/arm64/gic_v3_its.c +++ b/sys/arm64/arm64/gic_v3_its.c @@ -795,6 +795,26 @@ } static void +lpi_free_chunk(struct gic_v3_its_softc *sc, struct lpi_chunk *lpic) +{ + int start, end; + uint8_t *bitmap; + + bitmap = (uint8_t *)sc->its_lpi_bitmap; + + KASSERT((lpic->lpi_free == lpic->lpi_num), + ("Trying to free LPI chunk that is still in use.\n")); + + /* First bit of this chunk in a global bitmap */ + start = lpic->lpi_base - GIC_FIRST_LPI; + /* and last bit of this chunk... */ + end = start + lpic->lpi_num - 1; + + /* Finally free this chunk */ + bit_nclear(bitmap, start, end); +} + +static void lpi_configure(struct gic_v3_its_softc *sc, struct its_dev *its_dev, uint32_t lpinum, boolean_t unmask) { @@ -1303,7 +1323,10 @@ devid = PCI_DEVID(pci_dev); /* There was no previously created device. Create one now */ - newdev = malloc(sizeof(*newdev), M_GIC_V3_ITS, (M_WAITOK | M_ZERO)); + newdev = malloc(sizeof(*newdev), M_GIC_V3_ITS, (M_NOWAIT | M_ZERO)); + if (newdev == NULL) + return (NULL); + newdev->pci_dev = pci_dev; newdev->devid = devid; @@ -1321,7 +1344,12 @@ */ newdev->itt = (vm_offset_t)contigmalloc( roundup2(roundup2(nvecs, 2) * esize, 0x100), M_GIC_V3_ITS, - (M_WAITOK | M_ZERO), 0, ~0UL, 0x100, 0); + (M_NOWAIT | M_ZERO), 0, ~0UL, 0x100, 0); + if (newdev->itt == 0) { + lpi_free_chunk(sc, &newdev->lpis); + free(newdev, M_GIC_V3_ITS); + return (NULL); + } /* * XXX ARM64TODO: Currently all interrupts are going EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, emaste, andrew, wma_semihalf.com, imp, ian Cc: imp, andrew, freebsd-arm-list, emaste --b1_9a72bb892bcba53faec79e1a568f0eb4 Content-Type: text/x-patch; charset=utf-8; name="D3121.7056.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D3121.7056.patch" ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9hcm02NC9naWNfdjNfaXRzLmMgYi9zeXMvYXJtNjQvYXJt NjQvZ2ljX3YzX2l0cy5jCi0tLSBhL3N5cy9hcm02NC9hcm02NC9naWNfdjNfaXRzLmMKKysrIGIv c3lzL2FybTY0L2FybTY0L2dpY192M19pdHMuYwpAQCAtNzk1LDYgKzc5NSwyNiBAQAogfQogCiBz dGF0aWMgdm9pZAorbHBpX2ZyZWVfY2h1bmsoc3RydWN0IGdpY192M19pdHNfc29mdGMgKnNjLCBz dHJ1Y3QgbHBpX2NodW5rICpscGljKQoreworCWludCBzdGFydCwgZW5kOworCXVpbnQ4X3QgKmJp dG1hcDsKKworCWJpdG1hcCA9ICh1aW50OF90ICopc2MtPml0c19scGlfYml0bWFwOworCisJS0FT U0VSVCgobHBpYy0+bHBpX2ZyZWUgPT0gbHBpYy0+bHBpX251bSksCisJICAgICgiVHJ5aW5nIHRv IGZyZWUgTFBJIGNodW5rIHRoYXQgaXMgc3RpbGwgaW4gdXNlLlxuIikpOworCisJLyogRmlyc3Qg Yml0IG9mIHRoaXMgY2h1bmsgaW4gYSBnbG9iYWwgYml0bWFwICovCisJc3RhcnQgPSBscGljLT5s c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CB+MFVMLCAweDEwMCwgMCk7CisJICAgIChNX05PV0FJVCB8 IE1fWkVSTyksIDAsIH4wVUwsIDB4MTAwLCAwKTsKKwlpZiAobmV3ZGV2LT5pdHQgPT0gMCkgewor CQlscGlfZnJlZV9jaHVuayhzYywgJm5ld2Rldi0+bHBpcyk7CisJCWZyZWUobmV3ZGV2LCBNX0dJ Q19WM19JVFMpOworCQlyZXR1cm4gKE5VTEwpOworCX0KIAogCS8qCiAJICogWFhYIEFSTTY0VE9E TzogQ3VycmVudGx5IGFsbCBpbnRlcnJ1cHRzIGFyZSBnb2luZwoK --b1_9a72bb892bcba53faec79e1a568f0eb4-- From owner-freebsd-arm@freebsd.org Fri Jul 17 18:38:58 2015 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 D953E9A4867 for ; Fri, 17 Jul 2015 18:38:58 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id C07061290 for ; Fri, 17 Jul 2015 18:38:58 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id B5970E14E; Fri, 17 Jul 2015 18:38:58 +0000 (UTC) Date: Fri, 17 Jul 2015 18:38:58 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D2378+327+81b4fa511783cd72@FreeBSD.org Subject: [Differential] [Updated] D2378: Introduce ITS support for ARM64 Message-ID: <4c4fb137b1a9d77a0ebf59d92755697b@localhost.localdomain> X-Priority: 3 Thread-Topic: D2378: Introduce ITS support for ARM64 X-Herald-Rules: <28>, <31>, <32>, <34>, <8> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZTc3NjU2YTNlNjQxNDIwYzYxMmJlZjFmYzJmIFWpS8I= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 18:38:58 -0000 zbb added a dependent revision: D3121: Don't allow malloc() to wait for resource while holding a lock in ITS. REVISION DETAIL https://reviews.freebsd.org/D2378 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, imp, ian, emaste, manpages, andrew Cc: eadler, gnn, kib, emaste, andrew, freebsd-arm-list, imp From owner-freebsd-arm@freebsd.org Fri Jul 17 18:38:58 2015 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 B61349A4865 for ; Fri, 17 Jul 2015 18:38:58 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 9E59F127E for ; Fri, 17 Jul 2015 18:38:58 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 95093E131; Fri, 17 Jul 2015 18:38:58 +0000 (UTC) Date: Fri, 17 Jul 2015 18:38:58 +0000 To: freebsd-arm@freebsd.org From: "zbb (Zbigniew Bodek)" Reply-to: D3121+327+663142b8abc1b1a2@FreeBSD.org Subject: [Differential] [Updated] D3121: Don't allow malloc() to wait for resource while holding a lock in ITS Message-ID: <2b488f78c7cd7f840f16f376dbb3408a@localhost.localdomain> X-Priority: 3 Thread-Topic: D3121: Don't allow malloc() to wait for resource while holding a lock in ITS X-Herald-Rules: <28>, <31>, <32>, <34> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MzQzYWEyZTJmMDEzOTI1ZWU3ODgyYTA3ZWJjIFWpS8I= Precedence: bulk X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 18:38:58 -0000 zbb added a dependency: D2378: Introduce ITS support for ARM64. REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D3121 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: zbb, emaste, andrew, wma_semihalf.com, imp, ian Cc: imp, andrew, freebsd-arm-list, emaste From owner-freebsd-arm@freebsd.org Fri Jul 17 21:50:56 2015 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 F31429A3850 for ; Fri, 17 Jul 2015 21:50:55 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ADF161A71 for ; Fri, 17 Jul 2015 21:50:55 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [IPv6:2001:418:3fd::1f] (haymarket.m5p.com [IPv6:2001:418:3fd::1f]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id t6HLomZA017089 for ; Fri, 17 Jul 2015 17:50:53 -0400 (EDT) (envelope-from george+freebsd@m5p.com) Message-ID: <55A978B8.6080008@m5p.com> Date: Fri, 17 Jul 2015 17:50:48 -0400 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: [Differential] [Updated] D3121: Don't allow malloc() to wait for resource while holding a lock in ITS References: <2b488f78c7cd7f840f16f376dbb3408a@localhost.localdomain> In-Reply-To: <2b488f78c7cd7f840f16f376dbb3408a@localhost.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Fri, 17 Jul 2015 17:50:53 -0400 (EDT) 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: Fri, 17 Jul 2015 21:50:56 -0000 I thought phabric was going to stop spamming freebsd-arm ... ? -- George On 07/17/15 14:38, zbb (Zbigniew Bodek) wrote: > zbb added a dependency: D2378: Introduce ITS support for ARM64. > > REPOSITORY > rS FreeBSD src repository > > REVISION DETAIL > https://reviews.freebsd.org/D3121 > > EMAIL PREFERENCES > https://reviews.freebsd.org/settings/panel/emailpreferences/ > > To: zbb, emaste, andrew, wma_semihalf.com, imp, ian > Cc: imp, andrew, freebsd-arm-list, emaste > _______________________________________________ > 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" > From owner-freebsd-arm@freebsd.org Fri Jul 17 23:12:41 2015 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 A78779A4452 for ; Fri, 17 Jul 2015 23:12:41 +0000 (UTC) (envelope-from sanpei.ml@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (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 755A21F73 for ; Fri, 17 Jul 2015 23:12:41 +0000 (UTC) (envelope-from sanpei.ml@gmail.com) Received: by iggf3 with SMTP id f3so47421088igg.1 for ; Fri, 17 Jul 2015 16:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=DRL5nfmZ7kcbphGvWEqGTCRBRcVriHZYer3If/OqlFg=; b=gMPazEFWrMmhgaq/I+NzoN7EAvmoG2jGxaXmx2J7YBd5LDvJMNrS6gRinK715FnzBQ bxO7oo034aGyUAtFVLZ4yPUlmskagGGPRgksMxsf5/+dPR+03yfjZFe1fr7rLRdPlS8P 8y5SH8ET1Ryf25yuLqWX/im1IRTeix4GdwXFjGwDgbguEnSmlovRnlExjSekyTrE1D9x lwTCTG8KEd+Sdc2al2ZV+uht0zqOpmxDL+swcjv4UGjF1ichJQ4mHi/KHT6hpiNm/uWe g6i6UjPbUfkUI31EQt/irlMXcbPPzCjP1d0LUf6+LMRPLDnnCeArEJvxQHqhhAjrL4ay 2N3Q== MIME-Version: 1.0 X-Received: by 10.107.9.142 with SMTP id 14mr24368557ioj.142.1437174760921; Fri, 17 Jul 2015 16:12:40 -0700 (PDT) Received: by 10.36.196.195 with HTTP; Fri, 17 Jul 2015 16:12:40 -0700 (PDT) Date: Sat, 18 Jul 2015 08:12:40 +0900 Message-ID: Subject: can't probe USB device on hummingboard-i2 From: Yoshiro MIHIRA To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Fri, 17 Jul 2015 23:12:41 -0000 Hi I installed FreeBSD-11.0-Current on hummingboard-i2[OK]. However I could not use USB devices(USB Memory, USB sound card). Please let me know how to probe and use USB device on hummingboard. Currently I setenv fdt_file imx6dl-hummingboard.dtb on uboot. (I did not test Mika=C3=ABl Urankar's u-boot patch, sorry) usbphy0: mem 0x20c9000-0x20c9fff irq 76 on simplebus1 usbphy1: mem 0x20ca000-0x20cafff irq 77 on simplebus1 ehci0: mem 0x2184000-0x21841ff irq 75 on simplebus4 ehci0: [GIANT-LOCKED] usbus0: EHCI version 1.0 usbus0 on ehci0 ehci1: mem 0x2184200-0x21843ff irq 72 on simplebus4 ehci1: [GIANT-LOCKED] usbus1: EHCI version 1.0 usbus1 on ehci1 usbus1: 480Mbps High Speed USB v2.0 usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 ugen1.1: at usbus1 uhub0: on usbus= 1 uhub1: on usbus= 0 Regards, Yoshiro MIHIRA From owner-freebsd-arm@freebsd.org Sat Jul 18 01:02:08 2015 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 8922C9A44CA for ; Sat, 18 Jul 2015 01:02:08 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from olinguito.schwarzes.net (olinguito.schwarzes.net [IPv6:2a01:4f8:7d:1b5::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 427EF14A4 for ; Sat, 18 Jul 2015 01:02:04 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from asc-t60.schwarzes.net (p5B031FF4.dip0.t-ipconnect.de [91.3.31.244]) (authenticated bits=0) by olinguito.schwarzes.net (8.14.9/8.14.9) with ESMTP id t6I11wKw061922 for ; Sat, 18 Jul 2015 03:01:59 +0200 (CEST) (envelope-from freebsd.asc@strcmp.org) Date: Sat, 18 Jul 2015 03:01:57 +0200 From: Andreas Schwarz To: freebsd-arm@freebsd.org Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) Message-Id: <20150718030157.2aa9a78a874d3657131a2bed@strcmp.org> In-Reply-To: <1437144948.1334.373.camel@freebsd.org> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> <1437144948.1334.373.camel@freebsd.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (olinguito.schwarzes.net [78.47.41.143]); Sat, 18 Jul 2015 03:01:59 +0200 (CEST) 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: Sat, 18 Jul 2015 01:02:08 -0000 On Fri, 17 Jul 2015 08:55:48 -0600 Ian Lepore wrote: > On Thu, 2015-07-16 at 21:57 -0600, Warner Losh wrote: > > > On Jul 16, 2015, at 12:55 PM, Ian Lepore wrote: > > > > > > On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: > > >> On 16 July 2015 at 09:23, Andreas Schwarz wrote: > > >>> On Wed, 15 Jul 2015 21:17:21 -0600 > > >>> Warner Losh wrote: > > >>> > > >>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: > > >>>>> > > >>>>> Is anyone else getting these errors during every boot? I'm running r285346. > > >>>> > > >>>> I’ve been running on the RPi2 for some time and have never seen this. I haven’t > > >>>> rebuild in the past few weeks though. > > >>>> > > >>>> Does this happen on either SD cards? Or other versions of the kernel? > > >>> > > >>> I've the same output (using generic RPI2 kernel conf). > > >> > > >> This is a side effect of r283128, if you comment that line that > > >> re-select the card, CMD7 won't fail. > > >> > > >> This also affects the MMC controller on Allwinner SoCs. > > > > > > Hmm, so some cards deselect themselves when they shouldn't, and our > > > workaround that reselects them fails if the card didn't deselect itself. > > > Maybe it will work for all cards/controllers if we explicitly deselect > > > then reselect the card at that point. (This only happens once at > > > card-insert/boot time, so it shouldn't impact performance.) > > > > > > The attached patch adds the explicit deselect; it may or may not help. > > > (I haven't tested this at all). > > > > > > -- Ian > > > > > > Index: mmc.c > > > =================================================================== > > > --- mmc.c (revision 285419) > > > +++ mmc.c (working copy) > > > @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) > > > * out. Others seem to handle it correctly, so it may > > > * be a combination of card and controller. > > > */ > > > + mmc_select_card(sc, 0); > > > mmc_select_card(sc, ivar->rca); > > > mmc_app_sd_status(sc, ivar->rca, ivar->raw_sd_status); > > > mmc_app_decode_sd_status(ivar->raw_sd_status, > > > > Yes. I like this. Update the comment though please. > > > > Warner > > > > Yeah, when I commit I'll make the comment match the new reality, just > waiting to hear another success report or two first. I can confirm that the problem is gone (after applying your patch to r285661). root@pizelot:~ # uname -a FreeBSD pizelot.schwarzes.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285661M: Sat Jul 18 02:19:21 CEST 2015 root@pizelot.schwarzes.net:/usr/obj/usr/src/sys/RPI2 arm -- best regards Andreas From owner-freebsd-arm@freebsd.org Sat Jul 18 01:03:54 2015 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 1BB789A44EE for ; Sat, 18 Jul 2015 01:03:54 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 062A1155A; Sat, 18 Jul 2015 01:03:54 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 6646810CF; Sat, 18 Jul 2015 01:03:53 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Sat, 18 Jul 2015 01:03:51 +0000 From: Glen Barber To: Andreas Schwarz Cc: freebsd-arm@freebsd.org, Ian Lepore Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) Message-ID: <20150718010351.GI1438@FreeBSD.org> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> <1437144948.1334.373.camel@freebsd.org> <20150718030157.2aa9a78a874d3657131a2bed@strcmp.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EdRE1UL8d3mMOE6m" Content-Disposition: inline In-Reply-To: <20150718030157.2aa9a78a874d3657131a2bed@strcmp.org> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.23 (2014-03-12) 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: Sat, 18 Jul 2015 01:03:54 -0000 --EdRE1UL8d3mMOE6m Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 18, 2015 at 03:01:57AM +0200, Andreas Schwarz wrote: > On Fri, 17 Jul 2015 08:55:48 -0600 > Ian Lepore wrote: >=20 > > On Thu, 2015-07-16 at 21:57 -0600, Warner Losh wrote: > > > > On Jul 16, 2015, at 12:55 PM, Ian Lepore wrote: > > > >=20 > > > > On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: > > > >> On 16 July 2015 at 09:23, Andreas Schwarz wrote: > > > >>> On Wed, 15 Jul 2015 21:17:21 -0600 > > > >>> Warner Losh wrote: > > > >>>=20 > > > >>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: > > > >>>>>=20 > > > >>>>> Is anyone else getting these errors during every boot? I'm run= ning r285346. > > > >>>>=20 > > > >>>> I=E2=80=99ve been running on the RPi2 for some time and have nev= er seen this. I haven=E2=80=99t > > > >>>> rebuild in the past few weeks though. > > > >>>>=20 > > > >>>> Does this happen on either SD cards? Or other versions of the ke= rnel? > > > >>>=20 > > > >>> I've the same output (using generic RPI2 kernel conf). > > > >>=20 > > > >> This is a side effect of r283128, if you comment that line that > > > >> re-select the card, CMD7 won't fail. > > > >>=20 > > > >> This also affects the MMC controller on Allwinner SoCs. > > > >=20 > > > > Hmm, so some cards deselect themselves when they shouldn't, and our > > > > workaround that reselects them fails if the card didn't deselect it= self. > > > > Maybe it will work for all cards/controllers if we explicitly desel= ect > > > > then reselect the card at that point. (This only happens once at > > > > card-insert/boot time, so it shouldn't impact performance.) > > > >=20 > > > > The attached patch adds the explicit deselect; it may or may not he= lp. > > > > (I haven't tested this at all). > > > >=20 > > > > -- Ian > > > >=20 > > > > Index: mmc.c > > > > =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=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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > --- mmc.c (revision 285419) > > > > +++ mmc.c (working copy) > > > > @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) > > > > * out. Others seem to handle it correctly, so it may > > > > * be a combination of card and controller. > > > > */ > > > > + mmc_select_card(sc, 0); > > > > mmc_select_card(sc, ivar->rca); > > > > mmc_app_sd_status(sc, ivar->rca, ivar->raw_sd_status); > > > > mmc_app_decode_sd_status(ivar->raw_sd_status, > > >=20 > > > Yes. I like this. Update the comment though please. > > >=20 > > > Warner > > >=20 > >=20 > > Yeah, when I commit I'll make the comment match the new reality, just > > waiting to hear another success report or two first. >=20 > I can confirm that the problem is gone (after applying your patch to r285= 661). >=20 > root@pizelot:~ # uname -a > FreeBSD pizelot.schwarzes.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r28566= 1M: Sat Jul 18 02:19:21 CEST 2015 root@pizelot.schwarzes.net:/usr/obj/u= sr/src/sys/RPI2 arm >=20 Ian, will you please commit the fix, with the plan to have this in the next 10.2 build? Glen --EdRE1UL8d3mMOE6m Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVqaX3AAoJEAMUWKVHj+KTcyMP/jXewNwtHKPKoZFIiXnfF0/z 3RQ55PJF+x3ny+pwkLgK5UKiqgtJcjkljpJsXnZ3mJHarx+TtPaPbHWUmxwpEv/a 7fBvF0q+eMMJH8CJKFtymiRcFgz6nSu3M4AdsGVpP4H3+uE8sZlvwBmPlnlHy54S cib68MZEwfJ/4LJZoxuWReKvLc8hP8npDSN5Q2q+Iu2RvoFOzXiHNUx37Qb7r+mC PiE6Y1MdPAmVAk5WhZOQiLV3Xpbxf5I186DFQJaQNqRoP+UhH87ESlNURJFqj846 p2e53XWYACh7zOB/E8EuM2AUKJQo2Bg2Cc4cSZiqIsW1opkJWYZEcrg0TBEXd/v2 LdN6TzWlJmGYBMZq1wTsLX7Uruyeao35YUuTifOduQ0Kj+r/NOtyOGLRBUYGwb9K uAlwFPzJFb2AKzMfrrOME1UUN60ZKxAJkkrR8s07D1N54hQAzfDkLIQJJDgjYKks gX9Kre71UmtyhvJVm280/ix9TPVbUQb/UP8alewZUmtNJiZW0aNo8+6R//wKP3Tx 4U39+2+zrVZbE9KVdT+fMQ8pnOLEZrrQ0cJY2XjwenYiq7wQruW2t8+hDFefVB0t VtoKcoNhnPDh0Z2AvAQ3GxS0uREDX671MvjPp8h1OrgAlu9KalgCZTGiL4re0hOO H9aqerlfj7v7mJSoeAQM =n7eX -----END PGP SIGNATURE----- --EdRE1UL8d3mMOE6m-- From owner-freebsd-arm@freebsd.org Sat Jul 18 01:12:02 2015 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 5EA9C9A467F for ; Sat, 18 Jul 2015 01:12:02 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (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 007A6197E for ; Sat, 18 Jul 2015 01:12:01 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: by widjy10 with SMTP id jy10so52992062wid.1 for ; Fri, 17 Jul 2015 18:11:53 -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:sender:date:message-id:subject:from :to:content-type; bh=IUyoZBQeJxGmErHN4oLVx7agSd3jl6kJ45MKIzqv5vM=; b=XXi+IMKroxHpgLlvwiBTlQ0dEM63IJiR4lmj5d+PRna+JB+vBwWc1Q1g39lJuwwnDj 4MSe0Dk26E35mc3FnVgd848NXYO+eqGl2jCCmEuHUhblK2CIlM4zU/tksb93Q4K/pUpf bMiby4FkKJGMMKg8MQaC1NN50VpnawLETdA5ttuuyGFobchpEPCTXZBCXzLLX9j5Lb2Z k2mfycK3JyfhVjCmjM4Uc4J/306p8S8zke8p/cmGRye5aZYaON7RUFbosAHAOIkkaYe4 9mc7WZmrQZvo98aMRZQc+7dceMnVcvnS3d+FdEItjd+sD20CBgVFy70C0UnFLNvpNk89 OzQg== X-Gm-Message-State: ALoCoQmITO6vjqeIEpZxyU2aR+BmK+llI2c+ed8f1JJNPK1PU7SIvr7/kVD7ecfkcDf2vBAF4KJQ MIME-Version: 1.0 X-Received: by 10.194.189.80 with SMTP id gg16mr34915174wjc.9.1437181913456; Fri, 17 Jul 2015 18:11:53 -0700 (PDT) Sender: sobomax@sippysoft.com Received: by 10.27.205.136 with HTTP; Fri, 17 Jul 2015 18:11:53 -0700 (PDT) Date: Fri, 17 Jul 2015 18:11:53 -0700 X-Google-Sender-Auth: 26nUFRPEv31Xer9eUs6YxkdT07k Message-ID: Subject: armv6hf gdb issue From: Maxim Sobolev To: Warner Losh , 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: Sat, 18 Jul 2015 01:12:02 -0000 Hi, I am running armv6hf build on my BBB and found that gdb is unable to open a core file anymore: *[sobomax@beaglebone ~/projects/rtpproxy/tests]$ gdb ../src/rtpproxy_debug /tmp/rtpproxy_debug.45611.core* *GNU gdb 6.1.1 [FreeBSD]* *Copyright 2004 Free Software Foundation, Inc.* *GDB is free software, covered by the GNU General Public License, and you are* *welcome to change it and/or distribute copies of it under certain conditions.* *Type "show copying" to see the conditions.* *There is absolutely no warranty for GDB. Type "show warranty" for details.* *This GDB was configured as "armv6hf-marcel-freebsd"...* *Core was generated by `rtpproxy_debug'.* *Program terminated with signal 10, Bus error.* *Reading symbols from /lib/libm.so.5...done.* *Loaded symbols for /lib/libm.so.5* *Reading symbols from /lib/libthr.so.3...done.* *Loaded symbols for /lib/libthr.so.3* *Reading symbols from /lib/libc.so.7...done.* *Loaded symbols for /lib/libc.so.7* *Reading symbols from /lib/libgcc_s.so.1...done.* *Loaded symbols for /lib/libgcc_s.so.1* *Reading symbols from /libexec/ld-elf.so.1...done.* *Loaded symbols for /libexec/ld-elf.so.1* *#0 dtime2ts (dtime=* */storage/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/regcache.c:1147: internal-error: int register_offset_hack(struct gdbarch *, int): Assertion `regnum >= 0 && regnum < descr->nr_cooked_registers' failed.* *A problem internal to GDB has been detected,* *further debugging may prove unreliable.* *Quit this debugging session? (y or n) y* Please check. Thanks! -Maxim From owner-freebsd-arm@freebsd.org Sat Jul 18 07:00:14 2015 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 8037A9A408A for ; Sat, 18 Jul 2015 07:00:14 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (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 1662216DC for ; Sat, 18 Jul 2015 07:00:14 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by wgkl9 with SMTP id l9so95855760wgk.1 for ; Sat, 18 Jul 2015 00:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/khYt2AOSyutfA+juljWHDRVa7YEU9v1PtsGYGAdNhw=; b=rMJhcMo1pOMiQ19BxCO9ONP0q/UbQU1WMxnzVhgMi8VGFSy1sh4b1O+7McwIScORCq IM5pJgliwQHFpKGBTvCRa0LWjC8cTOg99pZoG/nC4vEweq7uaKhEIzJzxuVw2wbo+wbL QwSk0m4S3Ya2LducL3mF3LlxHbpckcm91DJag= 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:content-type; bh=/khYt2AOSyutfA+juljWHDRVa7YEU9v1PtsGYGAdNhw=; b=TKg9wUfbqVrwpH2keP4pp9ZcF+mxQajTaZ4w9sPLvtf68c8wUbhQHcirFQepoOyiuH ayygZ+GHrOwpwuT3l+V+XMm7T/9afJU5fBoZoNZl7CTEZGRP7GJDQdP3lgztnwnVS1vs xAzG1sQxP1fGCGCNmK3Vcb5Fp9mo91IHK9+DH7i93OxNLZiq/P5tOoMwVp2XAic6LFMx ZY5C+aRDtipfpwlCwHxO4BhtABiKUs+664gt+2B3YQ/juOCgMDMOq/Jd9tL+gsInqIrM hwbg84Jzp41sW/qtzRyzaGhUNXLS8e+ZUPThGz8KirWbquFho7x7GWxqc8J/cz2vqq9z K/NA== X-Gm-Message-State: ALoCoQnReN4ULWbmrD3GvKnhci5BH2FeLvKTpVt5JoMc82aO4Oolr4nmm5pFg02fHMKDFvpDSRaA X-Received: by 10.180.90.83 with SMTP id bu19mr2366487wib.91.1437202812561; Sat, 18 Jul 2015 00:00:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.30.79 with HTTP; Fri, 17 Jul 2015 23:59:43 -0700 (PDT) In-Reply-To: <55A978B8.6080008@m5p.com> References: <2b488f78c7cd7f840f16f376dbb3408a@localhost.localdomain> <55A978B8.6080008@m5p.com> From: Eitan Adler Date: Fri, 17 Jul 2015 23:59:43 -0700 Message-ID: Subject: Re: [Differential] [Updated] D3121: Don't allow malloc() to wait for resource while holding a lock in ITS To: George Mitchell Cc: "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: Sat, 18 Jul 2015 07:00:14 -0000 freebsd-arm-list was manually added as a subscriber. I just reduced the amount of email that freebsd-arm-list gets, even when subscribed. Let me know if we can reduce the amount of email even more (or if any of it is useful) On 17 July 2015 at 14:50, George Mitchell wrote: > I thought phabric was going to stop spamming freebsd-arm ... ? -- George > > On 07/17/15 14:38, zbb (Zbigniew Bodek) wrote: >> zbb added a dependency: D2378: Introduce ITS support for ARM64. >> >> REPOSITORY >> rS FreeBSD src repository >> >> REVISION DETAIL >> https://reviews.freebsd.org/D3121 >> >> EMAIL PREFERENCES >> https://reviews.freebsd.org/settings/panel/emailpreferences/ >> >> To: zbb, emaste, andrew, wma_semihalf.com, imp, ian >> Cc: imp, andrew, freebsd-arm-list, emaste >> _______________________________________________ >> 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" >> > > _______________________________________________ > 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" -- Eitan Adler From owner-freebsd-arm@freebsd.org Sat Jul 18 11:49:59 2015 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 ACDDD9A4518 for ; Sat, 18 Jul 2015 11:49:59 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48A091B31 for ; Sat, 18 Jul 2015 11:49:58 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [IPv6:2001:418:3fd::1f] (haymarket.m5p.com [IPv6:2001:418:3fd::1f]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id t6IBnnN9021691; Sat, 18 Jul 2015 07:49:54 -0400 (EDT) (envelope-from george+freebsd@m5p.com) Message-ID: <55AA3D5D.5070907@m5p.com> Date: Sat, 18 Jul 2015 07:49:49 -0400 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Eitan Adler CC: "freebsd-arm@freebsd.org" Subject: Re: [Differential] [Updated] D3121: Don't allow malloc() to wait for resource while holding a lock in ITS References: <2b488f78c7cd7f840f16f376dbb3408a@localhost.localdomain> <55A978B8.6080008@m5p.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Sat, 18 Jul 2015 07:49:55 -0400 (EDT) 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: Sat, 18 Jul 2015 11:49:59 -0000 Thank you! -- George On 07/18/15 02:59, Eitan Adler wrote: > freebsd-arm-list was manually added as a subscriber. I just reduced > the amount of email that freebsd-arm-list gets, even when subscribed. > Let me know if we can reduce the amount of email even more (or if any > of it is useful) > > On 17 July 2015 at 14:50, George Mitchell wrote: >> I thought phabric was going to stop spamming freebsd-arm ... ? -- George >> >> On 07/17/15 14:38, zbb (Zbigniew Bodek) wrote: >>> zbb added a dependency: D2378: Introduce ITS support for ARM64. >>> >>> REPOSITORY >>> rS FreeBSD src repository >>> >>> REVISION DETAIL >>> https://reviews.freebsd.org/D3121 >>> >>> EMAIL PREFERENCES >>> https://reviews.freebsd.org/settings/panel/emailpreferences/ >>> >>> To: zbb, emaste, andrew, wma_semihalf.com, imp, ian >>> Cc: imp, andrew, freebsd-arm-list, emaste >>> _______________________________________________ >>> 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" >>> >> >> _______________________________________________ >> 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" > > > From owner-freebsd-arm@freebsd.org Sat Jul 18 16:51:20 2015 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 F0C8B9A4AFC for ; Sat, 18 Jul 2015 16:51:20 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::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 8EC0B16F3 for ; Sat, 18 Jul 2015 16:51:20 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: by wgmn9 with SMTP id n9so102399215wgm.0 for ; Sat, 18 Jul 2015 09:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wUfNHzHPDZu4bSgjloGTZdgF27INmzxg1Ei9gQV99Jg=; b=pHUTB3cDUi4BZKXAFxaRWqG1JvqxdxvxKYPkEYfOUag4uqLBzAr/foqXunO/GQ1zdi CjD+7D4sAg2u2hFshZj3ANGmehNIt5kt/5t4a3WFQ+fHHJioYPTRhJcZiNIdN0KlwuSK lN+AGOcl8If8DAVjEl8gZFzqDTEL1bRtXYZjHIhyBAgVacofRayxB8h5T9PiqtFxRRAI DL9ekgCHFym8X0yVmDD923x8hcgtHAcZgSRv2ODWYza+oBzRgI2LGV9Ci1MwGdyyXOoz uJwvxKPYbrdVwMC5ivGb2GPJfuvMQAavwPX7JLkwwJONtjpTMkc1wWgn3hRaEo0ZUU6M /3Dw== MIME-Version: 1.0 X-Received: by 10.194.174.194 with SMTP id bu2mr43362564wjc.76.1437238277904; Sat, 18 Jul 2015 09:51:17 -0700 (PDT) Received: by 10.28.98.133 with HTTP; Sat, 18 Jul 2015 09:51:17 -0700 (PDT) Date: Sat, 18 Jul 2015 18:51:17 +0200 Message-ID: Subject: avila boot2 problem ? From: Berislav Purgar 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: Sat, 18 Jul 2015 16:51:21 -0000 Hello . i got this when trying to compile boot2 for avila board : # cc -v FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: armeb--freebsd11.0-gnueabi Thread model: posix # pwd /root/avila/sys/boot/arm/ixp425/boot2 # make Warning: Object directory not changed from original /root/avila/sys/boot/arm/ixp425/boot2 cc -O -pipe -march=armv5te -D__XSCALE__ -DBOOT_STACK=0x200000-4 -I/root/avila/sys/boot/arm/ixp425/boot2/../../../common -I/root/avila/sys/boot/arm/ixp425/boot2 -DFIXUP_BOOT_DRV -Os -ffreestanding -I/root/avila/sys/boot/arm/ixp425/boot2/../../../.. -I/root/avila/sys/boot/arm/ixp425/boot2/../../../../arm -DCPU_XSCALE_IXP425 -Wall -Waggregate-return -Werror -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -DBOOT_IXP425 -std=gnu99 -Qunused-arguments -c arm_init.S -o arm_init.o arm_init.S:33:2: warning: use of SP in the list is deprecated ldmia r1, {r1, r2, sp} ^ arm_init.S:52:77: error: .fnstart starts before the end of previous one .text; .align 2; .global cpu_id; .type cpu_id,#function; .code 32; cpu_id:; .fnstart; ^ arm_init.S:29:74: note: .fnstart was specified here .text; .align 2; .global start; .type start,#function; .code 32; start:; .fnstart ^ *** Error code 1 Stop. make[2]: stopped in /root/avila/sys/boot/arm/ixp425/boot2 # boot2 still broken on latest -HEAD ? From owner-freebsd-arm@freebsd.org Sat Jul 18 16:57:03 2015 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 17C889A4BBA for ; Sat, 18 Jul 2015 16:57:03 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E66AC1C5C; Sat, 18 Jul 2015 16:57:02 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id t6IGvGli012345; Sat, 18 Jul 2015 16:57:16 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.100] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id fyrrbgzh8kuqhushaj8bitmr6w; Sat, 18 Jul 2015 16:57:16 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: RPi won't boot 10.2-BETA1 -- SOLVED From: Tim Kientzle In-Reply-To: <55A6D121.6000403@selasky.org> Date: Sat, 18 Jul 2015 09:56:59 -0700 Cc: Glen Barber , Carl Johnson , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <81706BBF-04D6-4F5D-8EA3-C6E737ECE72E@kientzle.com> References: <87wpy41zjt.fsf@elk.localnet> <87y4iiyt29.fsf@elk.localnet> <20150715040109.GV15828@FreeBSD.org> <55A6D121.6000403@selasky.org> To: Hans Petter Selasky X-Mailer: Apple Mail (2.2102) 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: Sat, 18 Jul 2015 16:57:03 -0000 > On Jul 15, 2015, at 2:31 PM, Hans Petter Selasky = wrote: >=20 > I'm seeing the same problem with RPI-B: >=20 > U-Boot 2013.01-rc1 (Jul 05 2015 - 05:09:50) >=20 > DRAM: 224 MiB > WARNING: Caches not enabled > MMC: bcm2835_sdhci: 0 > ** Partition 1 not valid on device 0 ** > Failed to register mmc0:1 > Using default environment >=20 > In: serial > Out: lcd > Err: lcd > mbox: Timeout waiting for response > bcm2835: Could not set USB power state > Net: Net Initialization Skipped > No ethernet found. > ** Unrecognized filesystem type ** > Hit any key to stop autoboot: 0 > Booting from: mmc 0 ubldr > ** Unrecognized filesystem type ** > U-Boot> >=20 > With multiple SD cards. How can this be solved? This is coming from U-Boot: * AFTER the RPi firmware has loaded from the SD card. So the SD card is working in some sense and the format and partitioning is sufficient for the firmware to load. * BEFORE any part of FreeBSD proper is involved. This suggests one of the following: * A partitioning problem that is causing U-Boot to not recognize the = filesystem. Note this would cause the image to fail on all SD cards, = not just some. * A U-Boot bug or other problem with the U-Boot port. This could lead = to erratic behavior depending on the nature of the bug. * A hardware problem of some sort. In particular, RPi is known to be = sensitive to power supply issues, especially during the boot sequence. Debugging U-Boot is rather tedious. Best bet is to put lots of print = statements in the section of U-Boot code leading up to the = =E2=80=9Cunrecognized filesystem type=E2=80=9D to try to dig out more = information. Tim From owner-freebsd-arm@freebsd.org Sat Jul 18 16:57:36 2015 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 9F9329A4C16 for ; Sat, 18 Jul 2015 16:57:36 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) by mx1.freebsd.org (Postfix) with SMTP id 827A71CFA for ; Sat, 18 Jul 2015 16:57:36 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sat, 18 Jul 2015 16:55:51 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6IGvRTI058977; Sat, 18 Jul 2015 10:57:27 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1437238647.1334.376.camel@freebsd.org> Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) From: Ian Lepore To: Glen Barber Cc: Andreas Schwarz , freebsd-arm@freebsd.org Date: Sat, 18 Jul 2015 10:57:27 -0600 In-Reply-To: <20150718010351.GI1438@FreeBSD.org> References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> <1437144948.1334.373.camel@freebsd.org> <20150718030157.2aa9a78a874d3657131a2bed@strcmp.org> <20150718010351.GI1438@FreeBSD.org> Content-Type: text/plain; charset="iso-8859-13" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Sat, 18 Jul 2015 16:57:36 -0000 On Sat, 2015-07-18 at 01:03 +0000, Glen Barber wrote: > On Sat, Jul 18, 2015 at 03:01:57AM +0200, Andreas Schwarz wrote: > > On Fri, 17 Jul 2015 08:55:48 -0600 > > Ian Lepore wrote: > > > > > On Thu, 2015-07-16 at 21:57 -0600, Warner Losh wrote: > > > > > On Jul 16, 2015, at 12:55 PM, Ian Lepore wrote: > > > > > > > > > > On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: > > > > >> On 16 July 2015 at 09:23, Andreas Schwarz wrote: > > > > >>> On Wed, 15 Jul 2015 21:17:21 -0600 > > > > >>> Warner Losh wrote: > > > > >>> > > > > >>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: > > > > >>>>> > > > > >>>>> Is anyone else getting these errors during every boot? I'm running r285346. > > > > >>>> > > > > >>>> Iÿve been running on the RPi2 for some time and have never seen this. I havenÿt > > > > >>>> rebuild in the past few weeks though. > > > > >>>> > > > > >>>> Does this happen on either SD cards? Or other versions of the kernel? > > > > >>> > > > > >>> I've the same output (using generic RPI2 kernel conf). > > > > >> > > > > >> This is a side effect of r283128, if you comment that line that > > > > >> re-select the card, CMD7 won't fail. > > > > >> > > > > >> This also affects the MMC controller on Allwinner SoCs. > > > > > > > > > > Hmm, so some cards deselect themselves when they shouldn't, and our > > > > > workaround that reselects them fails if the card didn't deselect itself. > > > > > Maybe it will work for all cards/controllers if we explicitly deselect > > > > > then reselect the card at that point. (This only happens once at > > > > > card-insert/boot time, so it shouldn't impact performance.) > > > > > > > > > > The attached patch adds the explicit deselect; it may or may not help. > > > > > (I haven't tested this at all). > > > > > > > > > > -- Ian > > > > > > > > > > Index: mmc.c > > > > > =================================================================== > > > > > --- mmc.c (revision 285419) > > > > > +++ mmc.c (working copy) > > > > > @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) > > > > > * out. Others seem to handle it correctly, so it may > > > > > * be a combination of card and controller. > > > > > */ > > > > > + mmc_select_card(sc, 0); > > > > > mmc_select_card(sc, ivar->rca); > > > > > mmc_app_sd_status(sc, ivar->rca, ivar->raw_sd_status); > > > > > mmc_app_decode_sd_status(ivar->raw_sd_status, > > > > > > > > Yes. I like this. Update the comment though please. > > > > > > > > Warner > > > > > > > > > > Yeah, when I commit I'll make the comment match the new reality, just > > > waiting to hear another success report or two first. > > > > I can confirm that the problem is gone (after applying your patch to r285661). > > > > root@pizelot:~ # uname -a > > FreeBSD pizelot.schwarzes.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285661M: Sat Jul 18 02:19:21 CEST 2015 root@pizelot.schwarzes.net:/usr/obj/usr/src/sys/RPI2 arm > > > > Ian, will you please commit the fix, with the plan to have this in the > next 10.2 build? > > Glen > Done, r285678. -- Ian From owner-freebsd-arm@freebsd.org Sat Jul 18 18:32:20 2015 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 0D5169A5C19 for ; Sat, 18 Jul 2015 18:32:20 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DF6DE19E6 for ; Sat, 18 Jul 2015 18:32:19 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t6IIWJ1e061696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 18 Jul 2015 11:32:19 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t6IIWJ2Q061695; Sat, 18 Jul 2015 11:32:19 -0700 (PDT) (envelope-from jmg) Date: Sat, 18 Jul 2015 11:32:19 -0700 From: John-Mark Gurney To: Berislav Purgar Cc: "freebsd-arm@freebsd.org" Subject: Re: avila boot2 problem ? Message-ID: <20150718183218.GI8523@funkthat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Sat, 18 Jul 2015 11:32:19 -0700 (PDT) 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: Sat, 18 Jul 2015 18:32:20 -0000 Berislav Purgar wrote this message on Sat, Jul 18, 2015 at 18:51 +0200: > i got this when trying to compile boot2 for avila board : Hmm.. maybe it's been a while since I built for arm, but this should be easy to fix... Looks like the proper END is missing... Can you try to see if this patch fixes things? If it does, I'll commit it... Thanks for the report... diff --git a/sys/boot/arm/ixp425/boot2/arm_init.S b/sys/boot/arm/ixp425/boot2/arm_init.S index 9ede9fc..15e1e6c 100644 --- a/sys/boot/arm/ixp425/boot2/arm_init.S +++ b/sys/boot/arm/ixp425/boot2/arm_init.S @@ -43,6 +43,7 @@ ASENTRY_NP(start) /* main should not return. If it does, spin forever */ infiniteLoop: b infiniteLoop +END(start) .Lstart: .word _edata @@ -52,5 +53,6 @@ infiniteLoop: ENTRY(cpu_id) mrc p15, 0, r0, c0, c0, 0 RET +END(cpu_id) /* End */ -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@freebsd.org Sat Jul 18 18:38:11 2015 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 5248F9A5C77 for ; Sat, 18 Jul 2015 18:38:11 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450: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 E02BF1A8B for ; Sat, 18 Jul 2015 18:38:10 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: by wibxm9 with SMTP id xm9so61632821wib.0 for ; Sat, 18 Jul 2015 11:38:09 -0700 (PDT) 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=uz7Txwn5FXghBEa1WdyH+xLKTlAjkSbiKCHYYbqUZSc=; b=NFVyQesHLZpeiLSQLYKy9skgyvhu/EO0HMngD7FS4bNT/c4TOLD+mG/SBvlDOaCgkR z2FMCdOK3fOrVP4OJ1YuF/3ewns5ZH4fb06+W/XkvmsUQM0eQiaUKch+1dXeKBHc7hs9 dylKNlWUW/ZI2kp84U53P7+H1dVIarJebXtOx3uSj6e5Vs30YI9heARtz2h+SA48fAD6 jkWhPw2TnmLakCJ0eGlMrtal5Q6Wwcnnt/ijDwxgysQVHiIEqkCsrE6s2nTMR5XPHzYs L3H2ziOXIdDq3ZLzZGOyavTd/Jt0Mqa3V1lXNTMisNRNGplatGvjozbRomIN861qxL5O plAw== MIME-Version: 1.0 X-Received: by 10.194.189.80 with SMTP id gg16mr41447138wjc.9.1437244689313; Sat, 18 Jul 2015 11:38:09 -0700 (PDT) Received: by 10.28.98.133 with HTTP; Sat, 18 Jul 2015 11:38:09 -0700 (PDT) In-Reply-To: <20150718183218.GI8523@funkthat.com> References: <20150718183218.GI8523@funkthat.com> Date: Sat, 18 Jul 2015 20:38:09 +0200 Message-ID: Subject: Re: avila boot2 problem ? From: Berislav Purgar To: John-Mark Gurney Cc: "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: Sat, 18 Jul 2015 18:38:11 -0000 tnx for patch .. it fix this problem but now i got error on boot2.c : cc -O -pipe -march=armv5te -D__XSCALE__ -DBOOT_STACK=0x200000-4 -I/root/avila/sys/boot/arm/ixp425/boot2/../../../common -I/root/avila/sys/boot/arm/ixp425/boot2 -DFIXUP_BOOT_DRV -Os -ffreestanding -I/root/avila/sys/boot/arm/ixp425/boot2/../../../.. -I/root/avila/sys/boot/arm/ixp425/boot2/../../../../arm -DCPU_XSCALE_IXP425 -Wall -Waggregate-return -Werror -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -DBOOT_IXP425 -std=gnu99 -Qunused-arguments -c boot2.c -o boot2.o boot2.c:156:1: error: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] main(void) ^ 1 error generated. *** Error code 1 and just to test rest of source (remove boot2.c from Makefile) it stops on : cc -O -pipe -march=armv5te -D__XSCALE__ -DBOOT_STACK=0x200000-4 -I/root/avila/sys/boot/arm/ixp425/boot2/../../../common -I/root/avila/sys/boot/arm/ixp425/boot2 -DFIXUP_BOOT_DRV -Os -ffreestanding -I/root/avila/sys/boot/arm/ixp425/boot2/../../../.. -I/root/avila/sys/boot/arm/ixp425/boot2/../../../../arm -DCPU_XSCALE_IXP425 -Wall -Waggregate-return -Werror -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -DBOOT_IXP425 -std=gnu99 -Qunused-arguments -c ixp425_board.c -o ixp425_board.o ixp425_board.c:77:12: error: implicit declaration of function 'cpu_ident' is invalid in C99 [-Werror,-Wimplicit-function-declaration] cputype = cpu_ident() & CPU_ID_CPU_MASK; ^ ixp425_board.c:77:12: note: did you mean 'cpu_id'? /root/avila/sys/boot/arm/ixp425/boot2/lib.h:63:7: note: 'cpu_id' declared here u_int cpu_id(void); other files compile OK .. tnx On Sat, Jul 18, 2015 at 8:32 PM, John-Mark Gurney wrote: > Berislav Purgar wrote this message on Sat, Jul 18, 2015 at 18:51 +0200: > > i got this when trying to compile boot2 for avila board : > > Hmm.. maybe it's been a while since I built for arm, but this should > be easy to fix... Looks like the proper END is missing... > > Can you try to see if this patch fixes things? If it does, I'll commit > it... > > Thanks for the report... > > diff --git a/sys/boot/arm/ixp425/boot2/arm_init.S > b/sys/boot/arm/ixp425/boot2/arm_init.S > index 9ede9fc..15e1e6c 100644 > --- a/sys/boot/arm/ixp425/boot2/arm_init.S > +++ b/sys/boot/arm/ixp425/boot2/arm_init.S > @@ -43,6 +43,7 @@ ASENTRY_NP(start) > /* main should not return. If it does, spin forever */ > infiniteLoop: > b infiniteLoop > +END(start) > > .Lstart: > .word _edata > @@ -52,5 +53,6 @@ infiniteLoop: > ENTRY(cpu_id) > mrc p15, 0, r0, c0, c0, 0 > RET > +END(cpu_id) > > /* End */ > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > From owner-freebsd-arm@freebsd.org Sat Jul 18 19:13:24 2015 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 DB08A9A5273 for ; Sat, 18 Jul 2015 19:13:24 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AD1D31D6C for ; Sat, 18 Jul 2015 19:13:24 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t6IJDNDM062095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 18 Jul 2015 12:13:23 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t6IJDNLK062094; Sat, 18 Jul 2015 12:13:23 -0700 (PDT) (envelope-from jmg) Date: Sat, 18 Jul 2015 12:13:23 -0700 From: John-Mark Gurney To: Berislav Purgar Cc: "freebsd-arm@freebsd.org" Subject: Re: avila boot2 problem ? Message-ID: <20150718191323.GJ8523@funkthat.com> References: <20150718183218.GI8523@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Sat, 18 Jul 2015 12:13:23 -0700 (PDT) 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: Sat, 18 Jul 2015 19:13:25 -0000 Berislav Purgar wrote this message on Sat, Jul 18, 2015 at 20:38 +0200: > tnx for patch .. it fix this problem but now i got error on boot2.c : This may be fall out from the switch to clang from gcc and that the the boot2 stuff not being built by default... I've updated my tree and will debug/fix this shortly... Thanks for the report... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@freebsd.org Sat Jul 18 21:14:47 2015 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 30B0D9A553A for ; Sat, 18 Jul 2015 21:14:47 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E6CC41444 for ; Sat, 18 Jul 2015 21:14:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5F6441FE022; Sat, 18 Jul 2015 23:14:38 +0200 (CEST) Message-ID: <55AAC206.8080108@selasky.org> Date: Sat, 18 Jul 2015 23:15:50 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Yoshiro MIHIRA , freebsd-arm@freebsd.org Subject: Re: can't probe USB device on hummingboard-i2 References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Sat, 18 Jul 2015 21:14:47 -0000 On 07/18/15 01:12, Yoshiro MIHIRA wrote: > Hi > > I installed FreeBSD-11.0-Current on hummingboard-i2[OK]. > > However I could not use USB devices(USB Memory, USB sound card). > > Please let me know how to probe and use USB device on hummingboard. > > Currently I setenv fdt_file imx6dl-hummingboard.dtb on uboot. > (I did not test Mikaël Urankar's u-boot patch, sorry) > > usbphy0: mem 0x20c9000-0x20c9fff irq 76 on > simplebus1 > usbphy1: mem 0x20ca000-0x20cafff irq 77 on > simplebus1 > ehci0: mem 0x2184000-0x21841ff > irq 75 on simplebus4 > ehci0: [GIANT-LOCKED] > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci1: mem 0x2184200-0x21843ff > irq 72 on simplebus4 > ehci1: [GIANT-LOCKED] > usbus1: EHCI version 1.0 > usbus1 on ehci1 > > usbus1: 480Mbps High Speed USB v2.0 > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > ugen1.1: at usbus1 > uhub0: on usbus1 > uhub1: on usbus0 > > Regards, > Yoshiro MIHIRA Can you check if the ports have +5V power? --HPS From owner-freebsd-arm@freebsd.org Sat Jul 18 21:15:18 2015 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 714369A558F for ; Sat, 18 Jul 2015 21:15:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F36D314AF; Sat, 18 Jul 2015 21:15:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 97C811FE022; Sat, 18 Jul 2015 23:15:16 +0200 (CEST) Message-ID: <55AAC22D.6020609@selasky.org> Date: Sat, 18 Jul 2015 23:16:29 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Glen Barber , Andreas Schwarz CC: freebsd-arm@freebsd.org, Ian Lepore Subject: Re: SDHC errors during boot on RPi2 (11.0-CURRENT) References: <55A5A3F4.7040105@foxvalley.net> <20150716142329.4387b29de5d7fc9a2a9c27ab@strcmp.org> <1437072916.1334.364.camel@freebsd.org> <08A8C4D5-54A5-432B-B3D7-744287B76EF9@bsdimp.com> <1437144948.1334.373.camel@freebsd.org> <20150718030157.2aa9a78a874d3657131a2bed@strcmp.org> <20150718010351.GI1438@FreeBSD.org> In-Reply-To: <20150718010351.GI1438@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Sat, 18 Jul 2015 21:15:18 -0000 On 07/18/15 03:03, Glen Barber wrote: > On Sat, Jul 18, 2015 at 03:01:57AM +0200, Andreas Schwarz wrote: >> On Fri, 17 Jul 2015 08:55:48 -0600 >> Ian Lepore wrote: >> >>> On Thu, 2015-07-16 at 21:57 -0600, Warner Losh wrote: >>>>> On Jul 16, 2015, at 12:55 PM, Ian Lepore wrote: >>>>> >>>>> On Thu, 2015-07-16 at 15:17 -0300, Luiz Otavio O Souza wrote: >>>>>> On 16 July 2015 at 09:23, Andreas Schwarz wrote: >>>>>>> On Wed, 15 Jul 2015 21:17:21 -0600 >>>>>>> Warner Losh wrote: >>>>>>> >>>>>>>>> On Jul 14, 2015, at 6:06 PM, Dan Raymond wrote: >>>>>>>>> >>>>>>>>> Is anyone else getting these errors during every boot? I'm running r285346. >>>>>>>> >>>>>>>> I’ve been running on the RPi2 for some time and have never seen this. I haven’t >>>>>>>> rebuild in the past few weeks though. >>>>>>>> >>>>>>>> Does this happen on either SD cards? Or other versions of the kernel? >>>>>>> >>>>>>> I've the same output (using generic RPI2 kernel conf). >>>>>> >>>>>> This is a side effect of r283128, if you comment that line that >>>>>> re-select the card, CMD7 won't fail. >>>>>> >>>>>> This also affects the MMC controller on Allwinner SoCs. >>>>> >>>>> Hmm, so some cards deselect themselves when they shouldn't, and our >>>>> workaround that reselects them fails if the card didn't deselect itself. >>>>> Maybe it will work for all cards/controllers if we explicitly deselect >>>>> then reselect the card at that point. (This only happens once at >>>>> card-insert/boot time, so it shouldn't impact performance.) >>>>> >>>>> The attached patch adds the explicit deselect; it may or may not help. >>>>> (I haven't tested this at all). >>>>> >>>>> -- Ian >>>>> >>>>> Index: mmc.c >>>>> =================================================================== >>>>> --- mmc.c (revision 285419) >>>>> +++ mmc.c (working copy) >>>>> @@ -1392,6 +1392,7 @@ mmc_discover_cards(struct mmc_softc *sc) >>>>> * out. Others seem to handle it correctly, so it may >>>>> * be a combination of card and controller. >>>>> */ >>>>> + mmc_select_card(sc, 0); >>>>> mmc_select_card(sc, ivar->rca); >>>>> mmc_app_sd_status(sc, ivar->rca, ivar->raw_sd_status); >>>>> mmc_app_decode_sd_status(ivar->raw_sd_status, >>>> >>>> Yes. I like this. Update the comment though please. >>>> >>>> Warner >>>> >>> >>> Yeah, when I commit I'll make the comment match the new reality, just >>> waiting to hear another success report or two first. >> >> I can confirm that the problem is gone (after applying your patch to r285661). >> >> root@pizelot:~ # uname -a >> FreeBSD pizelot.schwarzes.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285661M: Sat Jul 18 02:19:21 CEST 2015 root@pizelot.schwarzes.net:/usr/obj/usr/src/sys/RPI2 arm >> > > Ian, will you please commit the fix, with the plan to have this in the > next 10.2 build? > Does this fix also update u-boot? --HPS