<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [LinuxBIOS] Disabled device help</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Please check the patch.<BR>
<BR>
YH<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: linuxbios-bounces@linuxbios.org on behalf of Lu, Yinghai<BR>
Sent: Fri 11/3/2006 5:01 PM<BR>
To: myles@mouselemur.cs.byu.edu; LinuxBIOS<BR>
Subject: Re: [LinuxBIOS] Disabled device help<BR>
<BR>
The Kernel pci_read_bases in drivers/pci/probe.c. has problem when size<BR>
if bigger than 4G.<BR>
<BR>
It will first check the 32 bit SPACE_ADDRESS, and pci_size will return<BR>
0, So it will skip that resource. And the pre-set values is ignored.<BR>
<BR>
And later, it will try to allocate the value. It will fail.<BR>
<BR>
I will produce one patch for you.<BR>
<BR>
YH<BR>
<BR>
-----Original Message-----<BR>
From: linuxbios-bounces@linuxbios.org<BR>
[<A HREF="mailto:linuxbios-bounces@linuxbios.org">mailto:linuxbios-bounces@linuxbios.org</A>] On Behalf Of Lu, Yinghai<BR>
Sent: Friday, November 03, 2006 11:46 AM<BR>
To: myles@mouselemur.cs.byu.edu; LinuxBIOS<BR>
Subject: Re: [LinuxBIOS] Disabled device help<BR>
<BR>
Boot log?<BR>
<BR>
In LinuxBIOS, there is CONFIG_PCI_64BIT_PREF_MEM, did you try to enable<BR>
it in you MB Options.lb<BR>
<BR>
In the kernel, there is pci_assign_unassigned_resources that try to<BR>
allocate resource for some devices, and it could cause problem because<BR>
Opteron could bave multi ht chain, Aka peer root bus, and every root bus<BR>
need to have its own ioport_resource, and iomem_resource. But that only<BR>
happen when BIOS is not allocating resource correctly. And LinuxBIOS<BR>
does a good job, and every device have be  handled properly.<BR>
<BR>
In case, you have werid pci devices, you still can use pci_quirks in<BR>
kernel to do some fix up.<BR>
<BR>
YH<BR>
<BR>
-----Original Message-----<BR>
From: linuxbios-bounces@linuxbios.org<BR>
[<A HREF="mailto:linuxbios-bounces@linuxbios.org">mailto:linuxbios-bounces@linuxbios.org</A>] On Behalf Of Myles Watson<BR>
Sent: Friday, November 03, 2006 11:02 AM<BR>
To: 'LinuxBIOS'<BR>
Subject: [LinuxBIOS] Disabled device help<BR>
<BR>
My large device gets disabled somewhere in LinuxBIOS or the kernel. This<BR>
is<BR>
the encouraging line from LinuxBIOS telling me that the registers are<BR>
indeed<BR>
set correctly.<BR>
<BR>
PCI: 05:01.0 18 <- [8000000000 - bfffffffff] prefmem64<BR>
<BR>
Unfortunately, Linux sees something different and fails to allocate this<BR>
region because it sees it at 00000080-000000bf and that conflicts with<BR>
other<BR>
things.<BR>
<BR>
Does anyone have a pointer to where I should look for this problem? Has<BR>
anyone else had problems with devices larger than 4GB?<BR>
<BR>
Thanks,<BR>
Myles<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
linuxbios mailing list<BR>
linuxbios@linuxbios.org<BR>
<A HREF="http://www.openbios.org/mailman/listinfo/linuxbios">http://www.openbios.org/mailman/listinfo/linuxbios</A><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
linuxbios mailing list<BR>
linuxbios@linuxbios.org<BR>
<A HREF="http://www.openbios.org/mailman/listinfo/linuxbios">http://www.openbios.org/mailman/listinfo/linuxbios</A><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
linuxbios mailing list<BR>
linuxbios@linuxbios.org<BR>
<A HREF="http://www.openbios.org/mailman/listinfo/linuxbios">http://www.openbios.org/mailman/listinfo/linuxbios</A><BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>