Re: [patch 2/4] i386/x86-64: Implement fallback for PCI mmconfig to type1
From: Andi Kleen
Date: Mon Dec 12 2005 - 19:29:56 EST
Sorry Greg, Linus,
I also submitted the two PCI patches on my own with the x86-64
patchkit, hopefully the duplication doesn't cause too much trouble.
Greg KH <gregkh@xxxxxxx> writes:
>
> From what I can tell, it's too late in the callstack for us to change
> the read ops for this device to be the other one. The problem is (and
> Andi can correct me if I'm wrong), some boxes basically have incomplete
> MCFG acpi tables (the tables do not describe all PCI busses that are
> present in the box). But we don't realize this until we are about to do
> the read function.
It can happen with perfectly legal MCFG tables. If a bus is not listed
in MCFG then we must fallback to type1. This happens on AMD K8 systems
because the busses in the builtin northbridge don't support mmconfig,
only busses on external bridges do. In theory it could happen on
other systems too (although external northbridges typically support
mmconfig for everything if they do at all)
In addition we have some boxes with broken MCFG tables who don't get
the tables right, this is what the next patch was trying to fix.
> I remember I looked into trying to set this up at probe/init time, and
> it was almost impossible to do so, due to the structure of the code.
Yes, I also didn't see an easy way to do it, although it would be probably DTRT.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/