Skip to contentSkip to conversation

x86_64-mm-always-use-physical-delivery-mode-on-8-cpus vs git-acpi

DISCUSSION Andrew Morton 2 participants 6 messages Jan 27, 2007 – Jan 29, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

The new stuff which just landed in Len's tree caused a huge mess in arch/x86_64/kernel/genapic.c:clustered_apic_check() when applying ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/always-use-physical-delivery-mode-on-8-cpus on top of it.

In fact the ACPI change has trashed a fair slice of Andi's pending tree.

I think I'll revert to yesterday's git-acpi, let you guys sort it all out.

reviewer
#1 lore raw
Quoted 5 lines · Andrew Morton

The new stuff which just landed in Len's tree caused a huge mess in arch/x86_64/kernel/genapic.c:clustered_apic_check() when applying ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/always-use-physical-delivery-mode-on-8-cpus on top of it.

The ACPI change this cleanup patch is conflicting with is quite small:

------------------------- arch/x86_64/kernel/genapic.c ------------------------- index b007433..0b3603a 100644
@@ -58,8 +58,8 @@ void __init clustered_apic_check(void)
* Some x86_64 machines use physical APIC mode regardless of how many
* procs/clusters are present (x86_64 ES7000 is an example). */
- if (acpi_fadt.revision > FADT2_REVISION_ID)
- if (acpi_fadt.force_apic_physical_destination_mode) {
+ if (acpi_gbl_FADT.header.revision > FADT2_REVISION_ID)
+ if (acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL) {
genapic = &apic_cluster;
goto print;
}

Quoted 3 lines

In fact the ACPI change has trashed a fair slice of Andi's pending tree.

I think I'll revert to yesterday's git-acpi, let you guys sort it all out.

Send me a version of the always-use-physical-delivery-mode-on-8-cpus patch that applies to Linus' tree (the one above doesn't), and I'll be happy to apply the 2-line diff above to it.

-Len

#2 lore raw
Quoted 8 lines · On Sat, 27 Jan 2007 04:29:57 -0500 Len Brown <[email protected]> wrote:
Quoted 5 lines · Andrew Morton

The new stuff which just landed in Len's tree caused a huge mess in arch/x86_64/kernel/genapic.c:clustered_apic_check() when applying ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/always-use-physical-delivery-mode-on-8-cpus on top of it.

The ACPI change this cleanup patch is conflicting with is quite small:

Oh, OK. I'll take another lok at it if/when I manage to get next -mm out the door (over 40 compilation fixes needed so far).

#3 lore raw
In reply to Len Brown
Quoted 24 lines · On Sat, 27 Jan 2007 04:29:57 -0500 Len Brown <[email protected]> wrote:
Quoted 5 lines · Andrew Morton

The new stuff which just landed in Len's tree caused a huge mess in arch/x86_64/kernel/genapic.c:clustered_apic_check() when applying ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/always-use-physical-delivery-mode-on-8-cpus on top of it.

The ACPI change this cleanup patch is conflicting with is quite small:

------------------------- arch/x86_64/kernel/genapic.c ------------------------- index b007433..0b3603a 100644

(quoted diff) +2 -2
@@ -58,8 +58,8 @@ void __init clustered_apic_check(void)
 	 * Some x86_64 machines use physical APIC mode regardless of how many
 	 * procs/clusters are present (x86_64 ES7000 is an example).
 	 */
-	if (acpi_fadt.revision > FADT2_REVISION_ID)
-		if (acpi_fadt.force_apic_physical_destination_mode) {
+	if (acpi_gbl_FADT.header.revision > FADT2_REVISION_ID)
+		if (acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL) {
 			genapic = &apic_cluster;
 			goto print;
 		}
Quoted 2 lines

In fact the ACPI change has trashed a fair slice of Andi's pending tree.

Quoted 6 lines
Quoted 1 line

I think I'll revert to yesterday's git-acpi, let you guys sort it all out.

Send me a version of the always-use-physical-delivery-mode-on-8-cpus patch that applies to Linus' tree (the one above doesn't), and I'll be happy to apply the 2-line diff above to it.

OK, so I took another look. This ACPI update does extensive damage to Andi's pending queue. I fixed four patches, dropped four or five more, hit more problems then gave up again. I'll go back to Thursday's git-acpi again.

Longer-term, I expect Andi will merge before acpi does, and you're looking at a fairly large amount of fixing after that happens.

reviewer
#4 lore raw
Quoted 34 lines · Andrew Morton
Quoted 24 lines · On Sat, 27 Jan 2007 04:29:57 -0500 Len Brown <[email protected]> wrote:
Quoted 5 lines · Andrew Morton

The new stuff which just landed in Len's tree caused a huge mess in arch/x86_64/kernel/genapic.c:clustered_apic_check() when applying ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/always-use-physical-delivery-mode-on-8-cpus on top of it.

The ACPI change this cleanup patch is conflicting with is quite small:

------------------------- arch/x86_64/kernel/genapic.c ------------------------- index b007433..0b3603a 100644

(quoted diff) +2 -2
@@ -58,8 +58,8 @@ void __init clustered_apic_check(void)
 	 * Some x86_64 machines use physical APIC mode regardless of how many
 	 * procs/clusters are present (x86_64 ES7000 is an example).
 	 */
-	if (acpi_fadt.revision > FADT2_REVISION_ID)
-		if (acpi_fadt.force_apic_physical_destination_mode) {
+	if (acpi_gbl_FADT.header.revision > FADT2_REVISION_ID)
+		if (acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL) {
 			genapic = &apic_cluster;
 			goto print;
 		}
Quoted 2 lines

In fact the ACPI change has trashed a fair slice of Andi's pending tree.

Quoted 6 lines
Quoted 1 line

I think I'll revert to yesterday's git-acpi, let you guys sort it all out.

Send me a version of the always-use-physical-delivery-mode-on-8-cpus patch that applies to Linus' tree (the one above doesn't), and I'll be happy to apply the 2-line diff above to it.

Quoted 7 lines

OK, so I took another look. This ACPI update does extensive damage to Andi's pending queue. I fixed four patches, dropped four or five more, hit more problems then gave up again. I'll go back to Thursday's git-acpi again.

Longer-term, I expect Andi will merge before acpi does, and you're looking at a fairly large amount of fixing after that happens.

Exactly what patches from Andi do I need to merge on top of to get the ACPI tree into -mm?

thanks,
-Len

#5 lore raw
Quoted 9 lines · On Sun, 28 Jan 2007 21:58:12 -0500 Len Brown <[email protected]> wrote:
Quoted 7 lines

OK, so I took another look. This ACPI update does extensive damage to Andi's pending queue. I fixed four patches, dropped four or five more, hit more problems then gave up again. I'll go back to Thursday's git-acpi again.

Longer-term, I expect Andi will merge before acpi does, and you're looking at a fairly large amount of fixing after that happens.

Exactly what patches from Andi do I need to merge on top of to get the ACPI tree into -mm?

ftp://ftp.firstfloor.org/pub/ak/x86_64/quilt/patches/ is everything.

In rc6-mm1 that's everything between #X86_64-START and #X86_64-END in the series file. I have another 35-odd x86 patches on top of that lot.

Note that I normally stage the x86_64 tree _after_ the ACPI tree, but I can change that.

I don't think that making the acpi tree dependent upon the x86_64 tree would be a smart idea, frankly. It'll cause you heaps of pain.

Perhaps Andi could stick his tree into git for you to base off, dunno. But he doesn't seem to be around at present.