From nobody@FreeBSD.org  Sun Oct  9 07:06:25 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E386316A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Oct 2005 07:06:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B547743D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Oct 2005 07:06:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9976PEU014448
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 9 Oct 2005 07:06:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9976P07014447;
	Sun, 9 Oct 2005 07:06:25 GMT
	(envelope-from nobody)
Message-Id: <200510090706.j9976P07014447@www.freebsd.org>
Date: Sun, 9 Oct 2005 07:06:25 GMT
From: Josh Rose <techguy@coolsoft1.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel Panic: Can't Alloc Virtual Memory in FreeBSD 6.0 beta 5
X-Send-Pr-Version: www-2.3

>Number:         87155
>Category:       kern
>Synopsis:       [boot] [panic] [agp] Can't Alloc Virtual Memory in FreeBSD 6.0 beta 5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 09 07:10:16 GMT 2005
>Closed-Date:    Mon Sep 29 15:51:38 UTC 2008
>Last-Modified:  Mon Sep 29 15:51:38 UTC 2008
>Originator:     Josh Rose
>Release:        6.0 Beta 5
>Organization:
>Environment:
>Description:
I am trying to do a clean install of i386 FreeBSD. When I boot FreeBSD 6
Beta 5 from the install CD I get the message "kernel panic: cannot alloc
virtual memory" before I even get to the main menu in the installation program.

System Configuration:

Asus SK8N Motherboard
AMD Opteron Model 240 Processor
NVIDIA Nforce 3 Pro 150 chipset
1024MB PC2100 DDR SDRAM
NVIDIA GeForce 6800GT AGP graphics w/256MB GDDR3 memory
>How-To-Repeat:
Just boot from the install CD normally without using any extra options       
>Fix:
              
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Tue Feb 19 17:06:30 UTC 2008 
State-Changed-Why:  
To submitter:  Firstly, I'm sorry that this PR has sat for so long without 
anyone looking at it.  Can you tell me, is this still a problem with newer 
versions of FreeBSD? 


Responsible-Changed-From-To: freebsd-i386->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Feb 19 17:06:30 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87155 

From: "Josh Rose" <techguy@coolsoft1.com>
To: <bug-followup@FreeBSD.org>,
	<techguy@coolsoft1.com>
Cc:  
Subject: Re: i386/87155: [boot] [panic] Can't Alloc Virtual Memory in FreeBSD 6.0 beta 5
Date: Wed, 20 Feb 2008 01:30:28 -0800

 Thank you for your response. I did find out what the bug was. The bug =
 seems to happen when the AGP Aparture BIOS setting is set to 512MB of =
 memory. If I set this setting to 256MB of memory FreeBSD works fine. I =
 have long since upgraded my motherboard to an Intel DP35DP Socket 775 =
 motherboard (Intel P35 NB/Intel ICH9R SB) with PCI Express graphics so =
 this is no longer a problem for me.
 
State-Changed-From-To: feedback->suspended 
State-Changed-By: gavin 
State-Changed-When: Thu Feb 21 11:43:15 UTC 2008 
State-Changed-Why:  
Mark suspended as submitter no longer has hardware.  I believe this is 
fixed in 7.x by sys/dev/agp/agp.c 1.49 and would be fixed in 6.x by an MFC. 


Responsible-Changed-From-To: gavin->freebsd-bugs 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Thu Feb 21 11:43:15 UTC 2008 
Responsible-Changed-Why:  
Back into the pool 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87155 
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Feb 21 12:15:18 UTC 2008 
Responsible-Changed-Why:  
Hi John, can you look at MFC'ing this? 

I have a patch ready for it, but since you mention that it might 
break the nvidia driver, I am a bit held-back in doing this myself :-) 

Thanks, 
Remko 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87155 

From: linimon@lonesome.com (Mark Linimon)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/87155: [boot] [panic] [agp] Can't Alloc Virtual Memory in FreeBSD 6.0 beta 5
Date: Thu, 28 Feb 2008 16:58:56 -0600

 ----- Forwarded message from John Baldwin <jhb@freebsd.org> -----
 
 > I have a patch ready for it, but since you mention that it might
 > break the nvidia driver, I am a bit held-back in doing this myself :-)
 
 Yes, the nvidia driver assumes that the relevant pointer in the AGP info is 
 mapped which this patch breaks.  I think newer versions of the Nvidia driver 
 don't depend on this, but it would break the ABI for older versions compiled 
 against 6.1, etc. so it can't be MFC'd.
 
 -- 
 John Baldwin
 
 ----- End forwarded message -----
State-Changed-From-To: suspended->closed 
State-Changed-By: jhb 
State-Changed-When: Mon Sep 29 15:50:50 UTC 2008 
State-Changed-Why:  
This is fixed in 7.0 and later.  The fix can't be MFC'd to 6.x directly 
because of ABI breakage, and I'm not going to have time to figure out a 
way to MFC it to 6.x. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87155 
>Unformatted:
