Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Travis
Date: Friday, July 25, 2008 - 1:06 pm

Jeremy Fitzhardinge wrote:
...

Hi Jeremy,

There are two question marks for my patchset.  The first is in

arch/x86/xen/smp.c:xen_cpu_up()

287 #ifdef CONFIG_X86_64
288         /* Allocate node local memory for AP pdas */
289         WARN_ON(cpu == 0);
290         if (cpu > 0) {
291                 rc = get_local_pda(cpu);
292                 if (rc)
293                         return rc;
294         }
295 #endif

and the second is at:

arch/x86/xen/enlighten.c:xen_start_kernel()

1748 #ifdef CONFIG_X86_64
1749         /* Disable until direct per-cpu data access. */
1750         have_vcpu_info_placement = 0;
1751         x86_64_init_pda();
1752 #endif

I believe with the pda folded into the percpu area, get_local_pda()
and x86_64_init_pda() have been removed, so these are no longer
required, yes?

Also, arch/x86/kernel/acpi/sleep.c:acpi_save_state_mem() sets up
the startup code address with:

102         initial_code = (unsigned long)wakeup_long64;
103         saved_magic = 0x123456789abcdef0;

Should the pda and gdt_page address also be setup as is done in
smpboot.c:do_boot_cpu():

(CONFIG_X86_64)
 801         initial_pda = (unsigned long)get_cpu_pda(cpu);
 802 #endif
 803         early_gdt_descr.address = (unsigned long)get_cpu_gdt_table(cpu);
 804         initial_code = (unsigned long)start_secondary;


Thanks!
Mike
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Fri Jun 20, 10:25 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Christoph Lameter, (Fri Jun 20, 10:48 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Fri Jun 20, 11:37 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Fri Jun 20, 11:40 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Christoph Lameter, (Fri Jun 20, 11:51 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Fri Jun 20, 12:04 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Eric W. Biederman, (Fri Jun 20, 12:43 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Eric W. Biederman, (Fri Jun 20, 1:25 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Christoph Lameter, (Fri Jun 20, 1:37 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Christoph Lameter, (Fri Jun 20, 1:55 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Mon Jun 23, 10:33 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Mon Jun 23, 12:41 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Mon Jun 30, 10:43 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Eric W. Biederman, (Mon Jun 30, 1:50 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Mon Jun 30, 2:08 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Tue Jul 1, 9:27 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Tue Jul 1, 10:26 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Eric W. Biederman, (Tue Jul 1, 11:41 am)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Tue Jul 1, 2:10 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Tue Jul 1, 2:52 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Eric W. Biederman, (Mon Jul 7, 12:46 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Tue Jul 8, 4:49 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Mike Travis, (Fri Jul 25, 1:06 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Fri Jul 25, 1:12 pm)
Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda int ..., Jeremy Fitzhardinge, (Fri Jul 25, 1:43 pm)