From owner-freebsd-current@freebsd.org Sat Jan 9 19:48:57 2016 Return-Path: Delivered-To: freebsd-current@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 7A2CDA6A4D1 for ; Sat, 9 Jan 2016 19:48:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::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 4B5E91945; Sat, 9 Jan 2016 19:48:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x231.google.com with SMTP id 77so285164736ioc.2; Sat, 09 Jan 2016 11:48:57 -0800 (PST) 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=LmcpAX6ToZTHgZOzmue9dtPxXPZekr2HMCCrNgu5UzA=; b=ZyJG0CGkCckT14hpmauXVfaFIujtuOSZMIeQxCdPwfLqL9dOx/YlQ3L6io4+UHB5Yn aW5U1IEpsoJYMcGu2huOJqvl1T73s+1FfF6zaIN6akiA/9CtUtoSnQz6ktCubQZ+CAlq 7eixOa8tuSFmjmdQtFcZjcDU4Q/5WjBV6OTDciSXiZWDFxg12WkJSZoLWbhMOJvBPWkn eE+yVZFntfH0a5o2HiLqIBwPp03CykFHePBG4qJJJZdRASRDTDUDNdvTPazG06wkwjGf iqX4o6cwPok7ygnsPOgDMe8gypDepJfEHrkIQpA5cErxd9YVIgs1O/LprnoHID+pBbhP 4nAw== MIME-Version: 1.0 X-Received: by 10.107.10.217 with SMTP id 86mr95379627iok.75.1452368936636; Sat, 09 Jan 2016 11:48:56 -0800 (PST) Received: by 10.36.121.202 with HTTP; Sat, 9 Jan 2016 11:48:56 -0800 (PST) In-Reply-To: <6763716.RJFa7H2OmF@ralph.baldwin.cx> References: <201601070947.u079lWFk066644@slippy.cwsent.com> <6763716.RJFa7H2OmF@ralph.baldwin.cx> Date: Sat, 9 Jan 2016 11:48:56 -0800 Message-ID: Subject: Re: Panic from vesa_configure() From: Adrian Chadd To: John Baldwin Cc: freebsd-current , Cy Schubert , Jeremie Le Hen , Ryan Stone , =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= , "?Alan L. Cox" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sat, 09 Jan 2016 19:48:57 -0000 On 9 January 2016 at 11:30, John Baldwin wrote: > On Thursday, January 07, 2016 01:47:32 AM Cy Schubert wrote: >> In message > om> >> , Jeremie Le Hen writes: >> > On Mon, Dec 21, 2015 at 12:57 AM, Adrian Chadd wrote >> > : >> > > can you copy/paste the file:line that each of those stackframes represents? >> > > >> > > I may have an idea or two.. >> > >> > Sure here we go: >> > >> > (kgdb) list *vesa_configure+0x270 >> > 0xffffffff80b25cd0 is in vesa_configure (/usr/src-svn/sys/dev/fb/vesa.c:827). >> > >> > (kgdb) list *vga_init+0x65 >> > 0xffffffff80b286e5 is in vga_init (/usr/src-svn/sys/dev/fb/vga.c:1402). >> > >> > (kgdb) list *isavga_attach+0x92 >> > 0xffffffff80b9afd2 is in isavga_attach (/usr/src-svn/sys/isa/vga_isa.c:224). >> >> Here is what I see. Only happens on real hardware (not VirtualBox VMs). >> >> uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 >> uart0: console (9600,n,8,1) >> acpi_alloc_wakeup_handler: can't alloc wake memory > > This is probably related to the same cause. Both this and the x86 BIOS stuff > need "low" memory (memory below 1MB). > > x86bios_alloc() uses contigmalloc() as does acpi_alloc_wakeup_handler(). > Perhaps the recent changes to contigmalloc() affect this? In particular, > try reverting r292469 to see if that fixes the issue. Can't we just keep a pool of those pages around and not give them out unless someone specifically asks for low memory? (The physmem code has explicit clue to do this if we wanted it to; it has lowmem bits for allocation. I thought it was all working fine.) -a