From owner-freebsd-mobile@freebsd.org Sat Feb 27 06:08:38 2016 Return-Path: Delivered-To: freebsd-mobile@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 7F3CEAB600E for ; Sat, 27 Feb 2016 06:08:38 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::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 31C0A1AE9 for ; Sat, 27 Feb 2016 06:08:38 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk0-x22a.google.com with SMTP id o6so39984009qkc.2 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=Pdlzbqs5ice00XsOEHYDMw3QdlRGSdZ5PypOX06gy2kOG6DtrfH8dDJYRAxhCXrUVO KJkmH93uj3tvNnnvAC3WGJUOFCouJv/cCzvOcLvOF/eZIm3DzMR395HMfDz/h00HNkfT zooAIjr8yS+XErjpG8Ka9i2vNhHJUqYvjLzl25012CdMxcsZjotMwYMGT/NE2IUtur6t CEp2EtBaiX1bmrO1xKX1myuvQ1rCOEAFcojxdRWV8TAxO1R9j6V2qkixY6Y6id56bYWH xqXE5RZPL8/l6fMluT3WjFPX+H+eTwoUtcx73HGpMf2L5/O4pUIh+5pRZ1zfiITAjo8Q 1MDQ== X-Gm-Message-State: AD7BkJJTJrBRVDKcp/RxAjtpFgD0JGwjC2i4P9PIKPulTH68p3pCVmn8tXxmlM0a1ejh04MeSwZXq4T8jPPl7Q== 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-mobile@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mobile computing with FreeBSD 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