From owner-freebsd-current@FreeBSD.ORG Tue Feb 23 15:47:49 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C6A7106566B for ; Tue, 23 Feb 2010 15:47:49 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id DE55D8FC1A for ; Tue, 23 Feb 2010 15:47:48 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so890564eyd.9 for ; Tue, 23 Feb 2010 07:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=S7OggueWrC1H6FCEvcih4Agw5ErQxJhClLIDkaTvG50=; b=EM+aN7PEIXyt0Lg1g2uPVNqXNxoHmn/Qe4FXTG7DGnZgMpp/7czECRpVLx+bW3m4a6 EsK9diSiQ9moiMQNhOCNW5YcBWh6YfBP6Wq6Vi7QsKKS+iNdSn7X4pVeT8/EhR1EauCj 3EPPQzDlk5KRDVE046THA6uDayIl6yIeQznPA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=sCeyQCC2Xkq14XyJTmtntg2CoWgH9XgTKNrdtnN5DOGn7swucupQ+QKoW158rGUIVY nEcCN9ROSvYvd+yv8sd9VFl9AbwSqCUPVXEZL9k7h0FuSkLTxL1GtAWELneDDwc85224 LfjujliTgNy7q/zEk1J1GneP+/ul6e3pOKrD4= MIME-Version: 1.0 Received: by 10.216.156.203 with SMTP id m53mr1417121wek.209.1266940062768; Tue, 23 Feb 2010 07:47:42 -0800 (PST) In-Reply-To: <179b97fb1002230728l4294916cs6b4b9a18b18f044a@mail.gmail.com> References: <747dc8f31002220835g481b0baeqb1d6df32a79b7da2@mail.gmail.com> <747dc8f31002230318v384e0259mcfddbf137c0d5057@mail.gmail.com> <4B83D821.6000207@icyb.net.ua> <179b97fb1002230728l4294916cs6b4b9a18b18f044a@mail.gmail.com> From: Renato Botelho Date: Tue, 23 Feb 2010 12:47:22 -0300 Message-ID: <747dc8f31002230747u7fbe5030y2d0c869d5db94a0a@mail.gmail.com> To: Brandon Gooch Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Chris Hedley , FreeBSD Current , Andriy Gapon Subject: Re: Can't use USB keyboard during boot menu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 15:47:49 -0000 On Tue, Feb 23, 2010 at 12:28 PM, Brandon Gooch wrote: > On Tue, Feb 23, 2010 at 7:29 AM, Andriy Gapon wrote: >> on 23/02/2010 13:18 Renato Botelho said the following: >>> On Mon, Feb 22, 2010 at 7:35 PM, Chris Hedley >>> wrote: >> [snip] >>>> Do you have USB legacy support enabled in your BIOS? =A0I'm not sure i= f >>>> there's an option for the loader to use USB devices natively, but the = BIOS's >>>> legacy option where it provides AT/PS2 emulation is probably the easie= st way >>>> to get the keyboard working. >>> >>> Yes, I do, but it seems to be a regression on FreeBSD itself, I had thi= s problem >>> in the past and I checked the same things i need to check in the past a= gain and >>> everything is fine. >> >> A more precise way to state that would be "a regression in FreeBSD boot/= loader". >> I think that you are referring to the issue that was fixed by r189017. >> It might be worthwhile investigating what was done in that revision and = what >> happened in sys/boot code since then. >> >> One possibility is that your BIOS uses memory above 1MB for USB emulatio= n, but >> doesn't mark that memory as used in system memory map. =A0In that case t= hat memory >> could be overwritten by the loader. =A0If that's true then the blame is = on the BIOS. >> =A0Alternatively, our code might be parsing the system memory map incorr= ectly. >> But I am just making wild guesses here. >> > > I don't know if it is at all related, but this commit has caused > problems for me booting at least one of my machines: > > http://svn.freebsd.org/viewvc/base/head/sys/boot/i386/zfsboot/zfsboot.c?r= 1=3D199714&r2=3D200309 > > Commit message: > > Revision 200309 - (view) (annotate) - [select for diffs] > Modified Wed Dec 9 20:36:56 2009 UTC (2 months, 2 weeks ago) by jhb > File length: 24893 byte(s) > Diff to previous 199714 > - Port bios_getmem() from libi386 to {gpt,}zfsboot() and use it to > =A0safely allocate a heap region above 1MB. =A0This enables {gpt,}zfsboot= () > =A0to allocate much larger buffers than before. > - Use a larger buffer (1MB instead of 128K) for temporary ZFS buffers. = =A0This > =A0allows more reliable reading of compressed files in a raidz/raidz2 poo= l. > > Submitted by: =A0 Matt Reimer =A0mattjreimer of gmail > MFC after: =A0 =A0 =A01 week > > Renato, are you booting ZFS? Nope, UFS. I'll try to find another USB keyboard to test --=20 Renato Botelho