Like I said, you should print out what the range is that the fatal call
is being triggered by. You don't have to do anything fancy, just put
some DPRINTFs or warns right before the fatal is called that print out
the properties of the ranges.

I think the reason setting pci_fun=1 works is because it prevents the
kernel from seeing the device. It's been a while since I last read up on
PCI, but what I remember is that function 0 always has to be
implemented, and there's a bit somewhere that specifies whether there
are also other functions. If function 0 isn't found, the kernel likely
assumes no other functions exist either.

I'm also going to guess that the problem is in how the BARs are being
configured by the driver or the kernel's PCI subsystem. In M5 we may not
be disabling BARs at the appropriate times, and part of the process of
determining how big an area a BAR refers to is setting it to all 1s, I
believe. That tends to make BARs look like they're on top of each other
and upsets M5's memory system. I'm hopeful Linux disables decoding on
them before using them this way. Printing out what regions are
conflicting would help determine if this is happening. If it -is-
happening, I'd like to correct that problem at its source by making M5's
PCI emulation more correct which would hopefully help everyone.

Gabe

On 12/06/10 06:58, Ong Wen Jian wrote:
> Hi Gabe,
>
> I try and error in manipulating the function and device number of the
> Graphic Device that I plugin into M5 simulator..
> It only works when my configuration in the M5 simulator shows below
>
>     ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0)
>     GraphicDevice = TDFXGPU(pci_bus=0,pci_dev=2,pci_func=1)
>
> But , the M5 still couldnt detect the device, and it means that , I
> need a linux kernel for alpha architecture that comes together with
> its graphic driver? Is that to run M5 simulator with full system mode,
> only Alpha Architecture can work ? Or there is another architecture ??
> and Just replace the existing linux kernel image which is 'vmlinux' ??
>
> regards
> wj
>
> -- 
> ONG WEN JIAN
> Student
> Department of Computer and Communication Systems Engineering,
> Faculty of Engineering, Universiti Putra Malaysia
> 43400 UPM Serdang, Selangor Darul Ehsan
> Tel : 014 - 930 2150 / 017 - 613 6231
>
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to