Fix boot on efi 32 bit Machines [try #4]
In-Reply-To: <[email protected]>
Quoted 20 lines · Linus Torvalds
Quoted 7 lines
From kernel 2.6.16 to kernel 2.6.17 a new check is made.
Filearch/i386/pci/mmconfig.c-> funktionpci_mmcfg_init-> checke820_all_mappedThe courios thing is that this check will always fail on the
Intel Macs booted through efi. Parsing of theACPI_MCFGtable returnse0000000for the start. But this location is
not in the memory map which the efi firmware have :
BIOS-EFI:00000000e00f8000-00000000e00f9000(reserved)It _sounds_ like you may not have converted all the EFI types (
EFI_UNUSABLE_MEMORY?), but regardless, I think it would be fine to have perhaps a "PCI_FORCE_MMCONF" flag that avoided that sanity check, and then you could have some code (either the EFI code _or_ some DMI code) that sets it for the Intel Macs.Note that the check in
pci_mmcfg_init()shouldn't be some EFI hack itself, it would be a real flag for the PCI subsystem, independently of EFI (I can see it being useful for a kernel command line option, even), and the only EFI connection would be that perhaps the EFI code ends up setting that flag (especially if there is some EFI command for doing this).
Quoted 6 lines
Btw, if you do do this, I think we should make sure that the MMCONFIG base address is reserved in the PCI MMIO resource structures (which we don't do now, I think - part of the whole point of verifying that it's marked as
E820_RESERVEDis exactly the fact that otherwise we migth have problems with PCI MMIO resource allocations allocating a regular PCI resource over the MMCONFIG space..)
I just reposted Rajesh's patch for this (fixed the one previous complaint from the list.)
Subj: [patch, take 3] PCI: use ACPI to verify extended config space on x86
Edgar, can you get it and test?
Discussion should probably continue in that thread...
Signature · 2 lines
Chuck "You can't read a newspaper if you can't read." --George W. Bush
Quoted 30 lines · Chuck Ebbert
In-Reply-To: <[email protected]>
Quoted 19 lines · Linus Torvalds
Quoted 7 lines
From kernel 2.6.16 to kernel 2.6.17 a new check is made.
Filearch/i386/pci/mmconfig.c-> funktionpci_mmcfg_init-> checke820_all_mappedThe courios thing is that this check will always fail on the
Intel Macs booted through efi. Parsing of theACPI_MCFGtable returnse0000000for the start. But this location is
not in the memory map which the efi firmware have :
BIOS-EFI:00000000e00f8000-00000000e00f9000(reserved)It _sounds_ like you may not have converted all the EFI types (
EFI_UNUSABLE_MEMORY?), but regardless, I think it would be fine to have perhaps a "PCI_FORCE_MMCONF" flag that avoided that sanity check, and then you could have some code (either the EFI code _or_ some DMI code) that sets it for the Intel Macs.Note that the check in
pci_mmcfg_init()shouldn't be some EFI hack itself, it would be a real flag for the PCI subsystem, independently of EFI (I can see it being useful for a kernel command line option, even), and the only EFI connection would be that perhaps the EFI code ends up setting that flag (especially if there is some EFI command for doing this).Quoted 6 lines
Btw, if you do do this, I think we should make sure that the MMCONFIG base address is reserved in the PCI MMIO resource structures (which we don't do now, I think - part of the whole point of verifying that it's marked as
E820_RESERVEDis exactly the fact that otherwise we migth have problems with PCI MMIO resource allocations allocating a regular PCI resource over the MMCONFIG space..)
Quoted 9 lines
I just reposted Rajesh's patch for this (fixed the one previous complaint from the list.)
Subj: [patch, take 3] PCI: use ACPI to verify extended config space on x86
Edgar, can you get it and test?
Discussion should probably continue in that thread...
I can't find the patch, can you send it ?
cu
Edgar
Rajesh's patch does not solve my problem. Actually i work on a force patch.
cu
Edgar
Quoted 39 lines · Chuck Ebbert
In-Reply-To: <[email protected]>
Quoted 19 lines · Linus Torvalds
Quoted 7 lines
From kernel 2.6.16 to kernel 2.6.17 a new check is made.
Filearch/i386/pci/mmconfig.c-> funktionpci_mmcfg_init-> checke820_all_mappedThe courios thing is that this check will always fail on the
Intel Macs booted through efi. Parsing of theACPI_MCFGtable returnse0000000for the start. But this location is
not in the memory map which the efi firmware have :
BIOS-EFI:00000000e00f8000-00000000e00f9000(reserved)It _sounds_ like you may not have converted all the EFI types (
EFI_UNUSABLE_MEMORY?), but regardless, I think it would be fine to have perhaps a "PCI_FORCE_MMCONF" flag that avoided that sanity check, and then you could have some code (either the EFI code _or_ some DMI code) that sets it for the Intel Macs.Note that the check in
pci_mmcfg_init()shouldn't be some EFI hack itself, it would be a real flag for the PCI subsystem, independently of EFI (I can see it being useful for a kernel command line option, even), and the only EFI connection would be that perhaps the EFI code ends up setting that flag (especially if there is some EFI command for doing this).Quoted 6 lines
Btw, if you do do this, I think we should make sure that the MMCONFIG base address is reserved in the PCI MMIO resource structures (which we don't do now, I think - part of the whole point of verifying that it's marked as
E820_RESERVEDis exactly the fact that otherwise we migth have problems with PCI MMIO resource allocations allocating a regular PCI resource over the MMCONFIG space..)I just reposted Rajesh's patch for this (fixed the one previous complaint from the list.)
Subj: [patch, take 3] PCI: use ACPI to verify extended config space on x86
Edgar, can you get it and test?
Discussion should probably continue in that thread...