Re: [PATCH 2/2] acpi based pci gap caluculation v2

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Zhao Yakui <yakui.zhao@...>
Cc: Alok kataria <alokkataria1@...>, lenb@kernel.org <lenb@...>, Ingo Molnar <mingo@...>, linux-acpi <linux-acpi@...>, LKML <linux-kernel@...>
Date: Wednesday, June 25, 2008 - 12:57 pm

On Wed, 2008-06-25 at 01:38 -0700, Zhao Yakui wrote:

Yes we will parse e820 several times, but we don't initialize
pci_mem_start in every pass. 
It will be initialized only twice once via the e820_setup_gap code path
and once via pci_setup_gap.
And i think you agree that both of these are required ?

During the gap calculation the previous code or the code now in
e820_setup_gap does this...
	calculates a gap in e820_map from 0 to 2^32.
	Initializes pci_mem_start.

And now with this patch, the code in pci_setup_gap
does this...
	for each _CRS under PCI0
		search gap from start_addr of _CRS to 2^32 *[1].
	Initialize pci_mem_start with the biggest gap that we could
	find.

Essentially, what we are doing is just limiting the gap calculation to a
smaller address space depending on the ACPI information we get.

Now then, what problem do you see with this approach ?

*[1]
While writing this mail i figured out that, instead of searching from
start_addr of _CRS to 2^32 we should just search till *end_addr* of _CRS resource.
I will send a patch to that effect. 

Thanks,
Alok



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] acpi based pci gap caluculation v2, Alok Kataria, (Tue Jun 24, 2:48 pm)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Zhao Yakui, (Tue Jun 24, 10:49 pm)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Alok kataria, (Wed Jun 25, 12:17 am)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Zhao Yakui, (Wed Jun 25, 1:39 am)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Alok kataria, (Wed Jun 25, 2:04 am)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Zhao Yakui, (Wed Jun 25, 4:38 am)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Alok Kataria, (Wed Jun 25, 12:57 pm)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Zhao Yakui, (Wed Jun 25, 9:00 pm)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Alok Kataria, (Wed Jun 25, 9:18 pm)
Re: [PATCH 2/2] acpi based pci gap caluculation v2, Alok Kataria, (Wed Jun 25, 2:22 pm)