From owner-freebsd-embedded@freebsd.org Fri Feb 26 15:48:22 2016 Return-Path: Delivered-To: freebsd-embedded@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 50B08AB583B for ; Fri, 26 Feb 2016 15:48:22 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (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 F2D2F394 for ; Fri, 26 Feb 2016 15:48:21 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-vk0-x233.google.com with SMTP id e185so80674780vkb.1 for ; Fri, 26 Feb 2016 07:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=nsYAgDEpc+OxRS8ZkfGZJIdjlZwqjCKeLuglviTd1S0=; b=wGmAxre4xrHEptWzwJnKnrJ+7p3LmKbsCjmJxdHqPHb2GxwO9QuO/hkmqGzGRpFiiK TT67C279t87u+PoDHgREw/kRZM6GPQGz6gaRzt2caDrexSm2+1X7lCms203qsgD1ofDj nwe/bu75FBJmm/XdSUgt3iVU+yg5woDywtupkgrH0Sctsw0JjJZhnFbSNc/oC9xyICyG 1XldNSXQ+qm90Cz+gQtypvddlJACL/X58snmBAnO0o/uAjUADjZVhXAzgJpqUGPJsqAm Rr4rjAJn6Ekcpvrh1WBq72YF/doZheuOyd+q0iszBUMe/dI8z8cm1sA2poZ6HpYDXIVf IZEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nsYAgDEpc+OxRS8ZkfGZJIdjlZwqjCKeLuglviTd1S0=; b=nHmPMA/oUhd2Nov75FivXQLG8udPQ1h+pCAe7qgZ9eRTTDaoYyOhzTmENLSCG/1PAT p2A3/j8Aoj+Zd68AxQN9P0M0ycwTThXwzJl6a5a/PysGV8NnomgoxSMNwCReR+I2ee2+ 629FdRO5JpoZoyFrtdE0Bp4S9xaHViV5c7OGvuHBEYJNwj1+6ksY66rQ4Vb6AiNwespT irfcvjUQcdYLSsEknYiYPKalkMu6Du+aHaiYZNDbu9XNoil7an4H/5OAKXi8G2TDur0t AQks4PuhmjZlGN7jxlHu41Yh/3IWDMaxrB0TEX8PkUvIvEuBQ8i7CVtj7dxmjzY0pqAw r3sw== X-Gm-Message-State: AD7BkJIKElIHuNtDsEs50aK7Ea4VKLPq9wDaCQ47ADWuOPFrkUdtj9LBDm59GRS9LRB0PGZXCHYbyvwOeMyK7Hz7fOAYpuae3oNep4IoKocADjdRErNJUCfSeHdL1DCmO2DJ/lk0zilQwnudRX32vn/ZFOGh X-Received: by 10.31.160.150 with SMTP id j144mr1816249vke.59.1456501700641; Fri, 26 Feb 2016 07:48:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.36.137 with HTTP; Fri, 26 Feb 2016 07:48:06 -0800 (PST) From: "Lundberg, Johannes" Date: Fri, 26 Feb 2016 09:48:06 -0600 Message-ID: Subject: hint.uart.1 in device.hints causes freeze at boot To: freebsd-embedded@freebsd.org, "freebsd-mobile@freebsd.org" , FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2016 15:48:22 -0000 SGkNCg0KTm90IHN1cmUgaWYgaXQncyBvayB0byBjcm9zcyBwb3N0IGJ1dCBJIHdhc24ndCBzdXJl IHdoaWNoIGxpc3QgdG8gc2VuZCB0by4NCg0KT24gSW50ZWwgQXRvbSBYNS1aODMwMCBTb0MgKENo ZXJyeVRyYWlsKSB0aGUgaW5zdGFsbCBtZW1zdGljayBpbWFnZSAoYW1kNjQpDQpoYWx0cyBkdXJp bmcgYm9vdCBiZWNhdXNlIG9mIHVhcnQuMSBzZXR0aW5ncyBpbiBkZXZpY2UgaGludHMuDQoNCkkn bSBzdXJlIGl0IGlzIHRoZXJlIGZvciBhIHJlYXNvbiBzbyB3aGF0IGlzIHRoZSBhbHRlcm5hdGl2 ZSBhY3Rpb25zPyBJcw0KdGhlIHNvbHV0aW9uIHRvIGdldCBhIGJvb3RhYmxlIEF0b20gU29DIGlt YWdlIHRvIGNyZWF0ZSB5ZXQgYW5vdGhlcg0KZGlzdHJpYnV0aW9uIG9yIGNhbiB0aGUgaW5zdGFs bGVyIGNob29zZSB0aGUgcHJvcGVyIGRldmljZS5oaW50cw0KZHluYW1pY2FsbHkgZHVyaW5nIGJv b3Q/DQoNCkJlc3QgcmVnYXJkcw0KCi0tIAo9LT0tPS09LT0tPS09LT0tPS09LT0tPS09LT0tPS09 LT0tPS09LT0tPS09LT0tPS09LT0tPS0K56eY5a+G5L+d5oyB44Gr44Gk44GE44Gm77ya44GT44Gu 6Zu75a2Q44Oh44O844Or44Gv44CB5ZCN5a6b5Lq644Gr6YCB5L+h44GX44Gf44KC44Gu44Gn44GC 44KK44CB56eY5Yy/54m55qip44Gu5a++6LGh44Go44Gq44KL5oOF5aCx44KS5ZCr44KT44Gn44GE 44G+44GZ44CCCuOCguOBl+OAgeWQjeWum+S6uuS7peWkluOBruaWueOBjOWPl+S/oeOBleOCjOOB n+WgtOWQiOOAgeOBk+OBruODoeODvOODq+OBruegtOajhOOAgeOBiuOCiOOBs+OBk+OBruODoeOD vOODq+OBq+mWouOBmeOCi+S4gOWIh+OBrumWi+ekuuOAgQropIflhpnjgIHphY3luIPjgIHjgZ3j ga7ku5bjga7liKnnlKjjgIHjgb7jgZ/jga/oqJjovInlhoXlrrnjgavln7rjgaXjgY/jgYTjgYvj garjgovooYzli5XjgoLjgZXjgozjgarjgYTjgojjgYbjgYrpoZjjgYTnlLPjgZfkuIrjgZLjgb7j gZnjgIIKLS0tCkNPTkZJREVOVElBTElUWSBOT1RFOiBUaGUgaW5mb3JtYXRpb24gaW4gdGhpcyBl bWFpbCBpcyBjb25maWRlbnRpYWwKYW5kIGludGVuZGVkIHNvbGVseSBmb3IgdGhlIGFkZHJlc3Nl ZS4KRGlzY2xvc3VyZSwgY29weWluZywgZGlzdHJpYnV0aW9uIG9yIGFueSBvdGhlciBhY3Rpb24g b2YgdXNlIG9mIHRoaXMKZW1haWwgYnkgcGVyc29uIG90aGVyIHRoYW4gaW50ZW5kZWQgcmVjaXBp ZW50LCBpcyBwcm9oaWJpdGVkLgpJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50 IGFuZCBoYXZlIHJlY2VpdmVkIHRoaXMgZW1haWwgaW4KZXJyb3IsIHBsZWFzZSBkZXN0cm95IHRo ZSBvcmlnaW5hbCBtZXNzYWdlLgo= From owner-freebsd-embedded@freebsd.org Fri Feb 26 18:59:42 2016 Return-Path: Delivered-To: freebsd-embedded@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 B8BE7AB4F4F for ; Fri, 26 Feb 2016 18:59:42 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::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 8BD36B9A for ; Fri, 26 Feb 2016 18:59:42 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: by mail-oi0-x22a.google.com with SMTP id k67so11429533oia.3 for ; Fri, 26 Feb 2016 10:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ara-ler-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8zlCs4vE9XuChQ1Bg9rhRvwYQxQ2FQYTSgHNqpr3BN8=; b=ejcxTTPalx3stpdpGJZIPPUaNrMwJ0Ov0tnO4evx/9FUaJVUL/DDKL7b4F0AEzfSNQ fGMmeQ5/7OjB4P/IHB37Dlm3C9O3w++zY1N68KT/YtuxdheyaydQseGM2hhZN4LfBqDO q9F1JXeF7fCGVo4cnXilAihPgW27PITF/DL0EQmNl9PKmdZmKaR8vCEVDSE1nQgWLRLL bniyvGdCbVhfD5KwlrtN1AwRSAlcMtz6Ut0uCtDbCEF0DkDALA/xmaecQdtkFKFWk3J/ V7uyst81UGZhJVH+fjta+JPxAKBruwv+/Dc0B0Th7JkIJssmTcIMj8a9aEjcx/xMSGTG vq0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8zlCs4vE9XuChQ1Bg9rhRvwYQxQ2FQYTSgHNqpr3BN8=; b=jizBsGzBqWlnEqdCpz/Zou8PMVYoLifnUJntfdgeBjVHMU0NBIok3hlilGAaS3VZeb ubWJGP+hVyDkd7IAesZglzzOPDNolrxTR+7hFrrIHz5Li6DO1R/hWISY7d0gN1ZUJDsB 2BICQGOlktGIZGaKRoXAur/hgCqJmXeyh9kBADXvI61cJDkp4KQ3FAz4DwDwLYBNdd5r iuaNmevBZm53akD7pf5N75YS4knhkZa5+Hocc+nA2VnJRL/r/JSgTD8EC1qdpggIdinN Wm24O4s77BUjXJaX0wkDvSHu95hagWXeNWPOm7EiZwCoz+cFTpY7MCrbxty+vWYkLVUy WLDg== X-Gm-Message-State: AD7BkJI0bduHvAXFSqObPQr4cSZWePzJasQ+SxGjkn0z0Tdez/BRB4CKzkoVkUZoB3sbRQ== X-Received: by 10.202.67.5 with SMTP id q5mr1565519oia.14.1456513181749; Fri, 26 Feb 2016 10:59:41 -0800 (PST) Received: from debian.ara-ler.com ([50.243.135.133]) by smtp.gmail.com with ESMTPSA id w127sm9466265oiw.17.2016.02.26.10.59.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Feb 2016 10:59:41 -0800 (PST) Date: Fri, 26 Feb 2016 11:59:39 -0700 From: Sergey Manucharian To: Luiz Otavio O Souza Cc: freebsd-embedded@freebsd.org Subject: Re: [RFC] GPIO interrupt support Message-ID: <20160226185939.GS12209@debian.ara-ler.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2016 18:59:42 -0000 Excerpts from Luiz Otavio O Souza's message from Wed 14-May-14 20:09: > On Wed, May 14, 2014 at 6:42 PM, Adrian Chadd wrote: > > Hi! > > > > Cool! Which ATheros chips did you test this on? > > For now only on ar7161 (RSPRO), i would like to test it on the newer > SoCs (ar93xx) but i don't have any hardware to do it. > > I would appreciate any help with the tests. > Hi Luiz, Are those patches in the mainline kernel now? I couldn't find much info on GPIO interrupts handling. I'd like test/use them on AM335x (Beaglebone), but don't know what to start with. How a useraland program can handle GPIO interrupts? I've done that a lot in Linux, but need some directions/starting points for FreeBSD. Thanks, Sergey From owner-freebsd-embedded@freebsd.org Sat Feb 27 01:49:33 2016 Return-Path: Delivered-To: freebsd-embedded@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 14175AB5059; Sat, 27 Feb 2016 01:49:33 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.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 CE88D89C; Sat, 27 Feb 2016 01:49:32 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from [10.1.254.16] (cerberus.brkt.com [208.185.168.138]) (authenticated bits=0) by mail.xcllnt.net (8.15.2/8.15.2) with ESMTPSA id u1R1nUvl091099 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Feb 2016 17:49:31 -0800 (PST) (envelope-from marcel@xcllnt.net) Subject: Re: hint.uart.1 in device.hints causes freeze at boot Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_EB6901CD-836B-4C93-B2BA-E5898924FD92"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Marcel Moolenaar In-Reply-To: Date: Fri, 26 Feb 2016 17:49:24 -0800 Cc: freebsd-embedded@freebsd.org, "freebsd-mobile@freebsd.org" , FreeBSD Current Message-Id: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> References: To: "Lundberg, Johannes" X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 01:49:33 -0000 --Apple-Mail=_EB6901CD-836B-4C93-B2BA-E5898924FD92 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 26, 2016, at 7:48 AM, Lundberg, Johannes = wrote: >=20 > Hi >=20 > Not sure if it's ok to cross post but I wasn't sure which list to send = to. >=20 > On Intel Atom X5-Z8300 SoC (CherryTrail) the install memstick image = (amd64) > halts during boot because of uart.1 settings in device hints. I have found that FreeBSD=E2=80=99s default device.hints file has fallen behind on reality and is indeed causing problems on more modern H/W, like the H/W you mention. >=20 > I'm sure it is there for a reason so what is the alternative actions? = Is > the solution to get a bootable Atom SoC image to create yet another > distribution or can the installer choose the proper device.hints > dynamically during boot? FreeBSD should really get rid of any default hints by now; or at least limit the hints to what is absolutely certain to be needed or to be correct. -- Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_EB6901CD-836B-4C93-B2BA-E5898924FD92 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 iQIcBAEBCgAGBQJW0QCkAAoJEIda8t8f0tjjeR0P/3QlP/N+8buDP4Uh/fGpsBXR 50UY+0OB+zhtIWorK1AYPRVKBGF+H4myv+wnSslvRkfXA2E/YyJp9bQIxtoUoFh+ Kv4DAs97dWSQiaEgs4TylIEmWQrkf2pcb7+qmlBE2b0oIWZY34+s9v/hA8U/KCpW mAkMY5j2NrFSv7oQ53Hba8MmI5Q9aP/U7wdoKMsZ9r9Y7qM+aaXkFqFK0Y0XI1Nl XjeI/r7eWaweDRx6RhxYUkuIizujkd8etpaw9NekhQErWuC00eBllFtvNSxKev2Z /xL9ldhr98BBMXHW8hWccDsZQzdWsL6aSYqS7nRg/PUDpXqBqFHWx/Wc7tyRKg7H 9ORodLQHM1nijRRa5UjY3neMCgcZX6ask7PRlp5UhWxC5MGWlZhH3kkZrmlfo0vT 9t4J2i7Uy+lCnkKeWWQS9EiVtE/aa1607Naw6djKSpn+V+GfaSXIFYcX43lv0XGd 6reXhhWrmkldXjzHGJM8Sc/9Loc8MckC3OaJh0354iDP2uXlg2vArKtx5+j6gVBb p0/raJF+V5iZLvISJKOtl2Bedo1jZt89n6eltjQ+S2MZZu84HT2kI9bcnxr8pKn9 iZ7HpXDw6N7NRp+kMNgUIGXmGl1wES/SuxdJg7iuakSe3UIW93Q2dzFvvKFBIhh9 2aRmx/S+ij4qOtJKtE78 =2Q6s -----END PGP SIGNATURE----- --Apple-Mail=_EB6901CD-836B-4C93-B2BA-E5898924FD92-- From owner-freebsd-embedded@freebsd.org Sat Feb 27 06:08:38 2016 Return-Path: Delivered-To: freebsd-embedded@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 7FE33AB600F for ; Sat, 27 Feb 2016 06:08:38 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (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 391B81AEA for ; Sat, 27 Feb 2016 06:08:38 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk0-x236.google.com with SMTP id x1so39829471qkc.1 for ; Fri, 26 Feb 2016 22:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=UeragdHtdDhvf3T1cgSIabZWhbRE4xXf6SBb0wOiEUY=; b=f1gjHum1M6e8ivZGjdmE82MXvjSfPRDIFbrfVzhvqhnZfP1JfdK/pf5eGDIy5Bd401 3sP/9o8MtCtKwTvZOJ1itdNfu2hDSYk4UGOHIwPTjG0QXx5X3z4hUGk8bHcF9uCp8oqd gupIKpLX3PnNhNzRWSdbj0CZI4Rxfp/z9CzRsKThm49H0jGgOG2EuIhTLYJ+KI119ckj eHGPIRJfVx81zzymQHfT5Kjm4BYTu8QtCv05ibKxupl8hTiMeEU4RomCRNk3YwV5ubIf hM9XPORuFVXcTr/pzBrFuIzV47jj+MSPCJbi79VKA5UMADqtvEyTEcK+hla43bh6gfix XjWQ== 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:in-reply-to:references:date :message-id:subject:from:to:cc; bh=UeragdHtdDhvf3T1cgSIabZWhbRE4xXf6SBb0wOiEUY=; b=LVqtxyMDNOknn3BR7LNPFrZWgmdqnrtiZvTlkMJE+N/oZBz48nbKTNCxSYts4f4q9r tsD9AfAKKUOC6AA5v6VgXDqjAkdJa1tYAvY84tUcwvZKVlnCwR/Fhyt83zTkKv1KZUmt tKIRf6QnjEo2ss3xccpS+5g1khed4EOowtNbLKkWnGuoXU9WXlCaGSv6SWOAhIp2L94d agc/NRBJ93bHH2VCCJIWDXQaVazPsz5NVY5sfH1m/2tm23f7qfCSbfj6m5CZ0uoeLN62 Q3rYWYw0Z5Shcv7rn4JOIXrskCF++rwVkxIf9glKwm+xTVxMgVwgeWb3I93M15um/Ij3 rB2Q== X-Gm-Message-State: AD7BkJLK3cvleVAOskeylPY6fmRvdb2A+WDFEd2vmZv/gdwcz/oaS2kp4k9e3R/WPLdJ9X7ICmgboc/7YGN/7Q== MIME-Version: 1.0 X-Received: by 10.55.73.199 with SMTP id w190mr6583729qka.77.1456553317313; Fri, 26 Feb 2016 22:08:37 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.30.166 with HTTP; Fri, 26 Feb 2016 22:08:37 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> References: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> Date: Fri, 26 Feb 2016 23:08:37 -0700 X-Google-Sender-Auth: 3QgJfsvZ99-yT4jpFLzAV103JgY Message-ID: Subject: Re: hint.uart.1 in device.hints causes freeze at boot From: Warner Losh To: Marcel Moolenaar Cc: "Lundberg, Johannes" , FreeBSD Current , "freebsd-embedded@freebsd.org" , "freebsd-mobile@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-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 06:08:38 -0000 On Fri, Feb 26, 2016 at 6:49 PM, Marcel Moolenaar wrote= : > > > On Feb 26, 2016, at 7:48 AM, Lundberg, Johannes < > johannes@brilliantservice.co.jp> wrote: > > > > Hi > > > > Not sure if it's ok to cross post but I wasn't sure which list to send > to. > > > > On Intel Atom X5-Z8300 SoC (CherryTrail) the install memstick image > (amd64) > > halts during boot because of uart.1 settings in device hints. > > I have found that FreeBSD=E2=80=99s default device.hints file has fallen > behind on reality and is indeed causing problems on more modern > H/W, like the H/W you mention. > > > > > I'm sure it is there for a reason so what is the alternative actions? I= s > > the solution to get a bootable Atom SoC image to create yet another > > distribution or can the installer choose the proper device.hints > > dynamically during boot? > > FreeBSD should really get rid of any default hints by now; or at least > limit the hints to what is absolutely certain to be needed or to be > correct. > Any reason not to add .disabled=3D1 to all the entries that are there, with the possible exception of uart.0? At least for i386 and amd64? Bonus points for writing code that filters those out when there's no ACPI. While PNPBIOS could also supply this info, I doubt that you could find hardware that has pnpbios data and not ACPI data except maybe some of the soekris boxes to test against. Better still would be to split the current GENERIC.hints into two bits. One that was strictly for legacy (!ACPI and !PNPBIOS) situations, and one that we always load. There look to be at least a couple of hints that are universally relevant still. I might have a 200MHz pentium I can test this with... As near as I can tell, only the following are relevant: hint.fd.0.at=3D"fdc0" hint.fd.0.drive=3D"0" hint.fd.1.at=3D"fdc0" hint.fd.1.drive=3D"1" hint.acpi_throttle.0.disabled=3D"1" hint.p4tcc.0.disabled=3D"1" and maybe hint.apm.0.disabled=3D"1" The floppy is for systems that have it, but won't add a floppy controller. APM hasn't been relevant since ~100MHz Pentium. The last two I'm unsure of. Warner Warner From owner-freebsd-embedded@freebsd.org Sat Feb 27 07:22:21 2016 Return-Path: Delivered-To: freebsd-embedded@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 7744FAB5735; Sat, 27 Feb 2016 07:22:21 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (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 DE7DC1842; Sat, 27 Feb 2016 07:22:20 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u1R7LxLH030104; Sat, 27 Feb 2016 18:21:59 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 27 Feb 2016 18:21:58 +1100 (EST) From: Ian Smith To: Warner Losh cc: Marcel Moolenaar , "Lundberg, Johannes" , "freebsd-mobile@freebsd.org" , "freebsd-embedded@freebsd.org" Subject: Re: hint.uart.1 in device.hints causes freeze at boot In-Reply-To: Message-ID: <20160227172039.F26318@sola.nimnet.asn.au> References: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 07:22:21 -0000 On Fri, 26 Feb 2016 23:08:37 -0700, Warner Losh wrote: (freebsd-current dropped; it'd only bounce) > Better still would be to split the current GENERIC.hints into two > bits. One that was strictly for legacy (!ACPI and !PNPBIOS) > situations, and one that we always load. There look to be at least a > couple of hints that are universally relevant still. I might have a > 200MHz pentium I can test this with... Still need a few old dogs in the kennel to taste test new dogfood .. > As near as I can tell, only the following are relevant: > hint.fd.0.at="fdc0" > hint.fd.0.drive="0" > hint.fd.1.at="fdc0" > hint.fd.1.drive="1" > hint.acpi_throttle.0.disabled="1" > hint.p4tcc.0.disabled="1" > > and maybe > > hint.apm.0.disabled="1" > > The floppy is for systems that have it, but won't add a floppy > controller. APM hasn't been relevant since ~100MHz Pentium. I still admin a 300MHz Celeron laptop (Compaq Armada 1500c, '98) happily using APM - ACPI powered off on removing AC power - but still running on 5.5-STABLE, with a recent uptime >1200 days .. don't tell anyone :) > The last two I'm unsure of. Don't mess with those; it took Kevin Oberman years to get them there .. acpi_throttle and p4tcc are generally evil; they don't save ANY power on top of est ono and hugely increase the number of steps (so, time) powerd has to churn through to adjust CPU speed to load, with minimum speeds as low as a sluggish 75-100MHz on some, so now best defaulting to disabled. Certainly hard to find anything with a uart.1 in the last ~10 years, though I've no clue why or how that should cause a boot failure? cheers, Ian From owner-freebsd-embedded@freebsd.org Sat Feb 27 13:54:22 2016 Return-Path: Delivered-To: freebsd-embedded@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 27260AB6F23 for ; Sat, 27 Feb 2016 13:54:22 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (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 D2BD0187F for ; Sat, 27 Feb 2016 13:54:21 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-vk0-x230.google.com with SMTP id e185so99864409vkb.1 for ; Sat, 27 Feb 2016 05:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=LRyVWum2cdhqHlqPjajT0veoSctemdv7RLmN3il8w7U=; b=yL+f2aScoulwTNjxpWiK60dkdivnW6lyHg59P/JK7VG931uzvbzQ0VVcsKFU2kGS+s h6N6VcCNW3DF9R/NxwP2DCxggHtObtvceBYMfY6jSETa2/aKeBRAhbtRZGaToiDlJSme zmu5K1y/Gvkj3bHW2JO2J9/UUyXe5IvmWeD00ITq5/jRzuGgqNulvf4TivKxAPouZslh qOJRtLV3hBUIFANfU01H8yyI4IaNNPNyo0r0UShoKinEt7m7zkf34x/nePr2y0bKMV70 J3OsIZ+waxzuOglxsMSbfxUkZwf//ObqMEBpdMaAIPe0tmGcd4EhctB6aWj6sIB7+AgA 90YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=LRyVWum2cdhqHlqPjajT0veoSctemdv7RLmN3il8w7U=; b=mY4r4biSkLYKMbWjJHdKkxjiEE8f+/5lzric8W/cuN3vaX1HweeIegkVz48HpB2Bwo HdaW5Rs61ifnCYHEXcxG1fbA9yfIp0JNtKZYiT0BcqTxJQMF7y5ECQUQ49UbxyAuKH9E RSJ5fnkbRS3DUmuxZ6U27Jqgt2gKFzKzGdeboe5qnea9KlJaq1i4gWMacbaXs4+zKoRq lvbs/AUibFQfWqGMGKGNXVDnwLJCHw43dDf/I6/kvB9TVPahiuJcab3tbRYcLLGZSBUQ iyW79OsNbN4zsjZk/XNAaJ9YzFnHdKQCmMPnFgjblozOPTUVwgqjDENHpYLQvhiU4xqK foZQ== X-Gm-Message-State: AD7BkJKbeL0ypixDk3d0s4yvM3euZLc5lfiKTKYKH4ciNxkGaxXch5wVi/5zfmZEPCommNR4uA41h+SEKhH7Gq5a5fzuAuHJ+oOkFsh4wsYqsPyy93GuCTXr8Rp3ZMdqeMRJfy3cMXY5eLHMDYNcBe6hCBF5 MIME-Version: 1.0 X-Received: by 10.31.58.83 with SMTP id h80mr4967284vka.149.1456581260885; Sat, 27 Feb 2016 05:54:20 -0800 (PST) Received: by 10.159.36.197 with HTTP; Sat, 27 Feb 2016 05:54:20 -0800 (PST) In-Reply-To: <20160227172039.F26318@sola.nimnet.asn.au> References: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> <20160227172039.F26318@sola.nimnet.asn.au> Date: Sat, 27 Feb 2016 05:54:20 -0800 Message-ID: Subject: Re: hint.uart.1 in device.hints causes freeze at boot From: "Lundberg, Johannes" To: Ian Smith Cc: Warner Losh , Marcel Moolenaar , "freebsd-mobile@freebsd.org" , "freebsd-embedded@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-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 13:54:22 -0000 >though I've no clue why or how that should cause a boot failure? Verbose logging don't give any clues either.. It just stops. On Friday, February 26, 2016, Ian Smith wrote: > On Fri, 26 Feb 2016 23:08:37 -0700, Warner Losh wrote: > > (freebsd-current dropped; it'd only bounce) > > > Better still would be to split the current GENERIC.hints into two > > bits. One that was strictly for legacy (!ACPI and !PNPBIOS) > > situations, and one that we always load. There look to be at least a > > couple of hints that are universally relevant still. I might have a > > 200MHz pentium I can test this with... > > Still need a few old dogs in the kennel to taste test new dogfood .. > > > As near as I can tell, only the following are relevant: > > hint.fd.0.at=3D"fdc0" > > hint.fd.0.drive=3D"0" > > hint.fd.1.at=3D"fdc0" > > hint.fd.1.drive=3D"1" > > hint.acpi_throttle.0.disabled=3D"1" > > hint.p4tcc.0.disabled=3D"1" > > > > and maybe > > > > hint.apm.0.disabled=3D"1" > > > > The floppy is for systems that have it, but won't add a floppy > > controller. APM hasn't been relevant since ~100MHz Pentium. > > I still admin a 300MHz Celeron laptop (Compaq Armada 1500c, '98) happily > using APM - ACPI powered off on removing AC power - but still running on > 5.5-STABLE, with a recent uptime >1200 days .. don't tell anyone :) > > > The last two I'm unsure of. > > Don't mess with those; it took Kevin Oberman years to get them there .. > > acpi_throttle and p4tcc are generally evil; they don't save ANY power on > top of est ono and hugely increase the number of steps (so, time) powerd > has to churn through to adjust CPU speed to load, with minimum speeds as > low as a sluggish 75-100MHz on some, so now best defaulting to disabled. > > Certainly hard to find anything with a uart.1 in the last ~10 years, > though I've no clue why or how that should cause a boot failure? > > cheers, Ian > --=20 -- Name: Johannes Lundberg Position: Mirama project leader Phone: +1-408-636-2161 Skype: brilliantjohannes Online: LinkedIn Facebook Reddit Twitter GitHub GitLab Company: Mirama Brilliantservice US Brilliantservice JP --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. From owner-freebsd-embedded@freebsd.org Sat Feb 27 17:22:25 2016 Return-Path: Delivered-To: freebsd-embedded@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 58169AB74C9; Sat, 27 Feb 2016 17:22:25 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.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 2EDB7C21; Sat, 27 Feb 2016 17:22:24 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from [10.1.254.16] (cerberus.brkt.com [208.185.168.138]) (authenticated bits=0) by mail.xcllnt.net (8.15.2/8.15.2) with ESMTPSA id u1RHMDdb096060 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Feb 2016 09:22:14 -0800 (PST) (envelope-from marcel@xcllnt.net) Subject: Re: hint.uart.1 in device.hints causes freeze at boot Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9E6F39E8-57EA-477A-B2C2-5CCD43F3F53C"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Marcel Moolenaar In-Reply-To: Date: Sat, 27 Feb 2016 09:22:07 -0800 Cc: Ian Smith , Warner Losh , "freebsd-mobile@freebsd.org" , "freebsd-embedded@freebsd.org" Message-Id: <00A3C4F0-AEEE-4341-9D5C-3810A9A08EA3@xcllnt.net> References: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> <20160227172039.F26318@sola.nimnet.asn.au> To: "Lundberg, Johannes" X-Mailer: Apple Mail (2.3112) X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 17:22:25 -0000 --Apple-Mail=_9E6F39E8-57EA-477A-B2C2-5CCD43F3F53C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 27, 2016, at 5:54 AM, Lundberg, Johannes = wrote: >=20 > >though I've no clue why or how that should cause a boot failure? >=20 > Verbose logging don't give any clues either.. It just stops. On the Atom SoC I have, you can configure the UARTs as PCI or ACPI = devices. They work as PCI devices but required better support for memory mapped = low- level consoles in x86. If configured as ACPI (supposedly compatible), = they just don=E2=80=99t work. I belief FreeBSD would just hang when configured as = ACPI, but I=E2=80=99m foggy on that detail. Key is that they we=E2=80=99re trimmed-down UARTs (3-wire functionality) = and thus weird beasts... Johannes: If your BIOS has the same capability, try switching. PCI mode = is well supported in FreeBSD, though requires something like the following in = your loader.conf: hw.uart.console=3D"mm:0xd0810000,br:115200,rs:2,xo:44236800 This tells the uart(4) driver that the device is memory mapped (at I/O address 0xd0810000, uses 32-bit register access and has a non-standard clock input of 44236800 (=3D44Mhz). -- Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_9E6F39E8-57EA-477A-B2C2-5CCD43F3F53C 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 iQIcBAEBCgAGBQJW0ds/AAoJEIda8t8f0tjjSmgP/A9jiCDkcwM6YZWkmV6FE7T3 VJ/Hs9G73ixjJWzRdDv+YsYeT+NtYmP5dJVD28cgWsLww78RrTgoAFLBTyF8dM7k UsZbB56IJYXdbGZ1lBYYgRkMg31nWSTNrCdYGx12amV3TfrHGJlQ7pOdXaYW1tW1 WAqUjOXgJ7xkQVOBt+FpPxLF9gTMVkzSWlTysNywqErYIpBuQKa3Dqu7MU16pk3l DWMChuFuiiwzSsTyH4mcjZuTfWBTdbRUA52OmA7j3RkSQ8YmIfqAD1KzLJTzprW2 SYY7MQXKNWfxjRg+ot3LguOqsgpBgiN/ZkeNoYDjdj8pVzS7YWd2rVc8p+LsGNHk UyuYkkG7gLR5qVgRpndf86BJr6bng6C61qxqexEAcD3PT/TScuBxn2CXg34mm5FX H6DeAYnTcN3iM2Mpoln8df5SzqNQZB02IOoQ7UKsHJNyl/4IkRlm7AsqqMeeO0Pe xuoJ4xOY/zGlFM4hvdsRAs/TkTmieMvwD9aOwrHVd8KAwtfnJH+pzcxkn3T+cp2G XYQusBrLcyqQk50rM3NXomJxxfbbfxY5hTe9xhg/SrzRqDJ4NTaQtU54Mg55+TIf uv7rSdpcrxbWP4ltYGJFOE+aczLK0hcR5Gi47R4lg1kkgNkzUJriUkkEIFI24KVO zYllFu0PlwlNRup9DzJ2 =tRNR -----END PGP SIGNATURE----- --Apple-Mail=_9E6F39E8-57EA-477A-B2C2-5CCD43F3F53C--