Skip to contentSkip to conversation

LSK merge linux-stable review

DISCUSSION Catalin Marinas 2 participants 10 messages Jan 10, 2014 – Jan 14, 2014 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20140110013011.GA6447@alex-shi

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 22 lines · Alex Shi

commit 450cdfa9c5713551ab1438ab210679868b52a994
Merge: bf78886 8b4ed85
Author: Alex Shi <[email protected]>
Date: Fri Jan 10 10:50:57 2014 +0800

Merge remote-tracking branch 'stable/linux-3.10.y' into linux-linaro-lsk

Conflicts:
arch/arm64/kernel/smp.c

arch/arm64/kernel/smp.c +0 -0
diff --cc arch/arm64/kernel/smp.c
index 5e9d274,9c93e12..87340fd
@@@ -150,17 -187,17 +150,10 @@@ asmlinkage void __cpuinit secondary_sta
        preempt_disable();
        trace_hardirqs_off();
 
 -      /*
 -       * Let the primary processor know we're out of the

arch/arm64/kernel/smp.c

Quoted 10 lines
arch/arm64/kernel/smp.c +0 -4
 -       * pen, then head off into the C entry point
 -       */
 -      write_pen_release(INVALID_HWID);
 +      if (cpu_ops[cpu]->cpu_postboot)
 +              cpu_ops[cpu]->cpu_postboot();
 
--      /*
-        * Enable local interrupts.
-        */
-       notify_cpu_starting(cpu);

This kind of diff always confuses me but notify_cpu_starting() should be present in the resulting file. Is it further down?

Signature · 1 line
Catalin
#3 lore raw
Quoted 29 lines · Catalin Marinas
Quoted 28 lines · Alex Shi

commit 450cdfa9c5713551ab1438ab210679868b52a994
Merge: bf78886 8b4ed85
Author: Alex Shi <[email protected]>
Date: Fri Jan 10 10:50:57 2014 +0800

Merge remote-tracking branch 'stable/linux-3.10.y' into linux-linaro-lsk

Conflicts:
arch/arm64/kernel/smp.c

arch/arm64/kernel/smp.c +0 -0
diff --cc arch/arm64/kernel/smp.c
index 5e9d274,9c93e12..87340fd
@@@ -150,17 -187,17 +150,10 @@@ asmlinkage void __cpuinit secondary_sta
        preempt_disable();
        trace_hardirqs_off();
 
 -      /*
 -       * Let the primary processor know we're out of the
 -       * pen, then head off into the C entry point
 -       */
 -      write_pen_release(INVALID_HWID);
 +      if (cpu_ops[cpu]->cpu_postboot)
 +              cpu_ops[cpu]->cpu_postboot();
Quoted 8 lines

arch/arm64/kernel/smp.c

Quoted 4 lines

-- /*

arch/arm64/kernel/smp.c +0 -3
-        * Enable local interrupts.
-        */
-       notify_cpu_starting(cpu);

This kind of diff always confuses me but notify_cpu_starting() should be present in the resulting file. Is it further down?

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Yes, The notify_cpu_starting kept in final file later.

Signature · 2 lines
Thanks
    Alex
#4 lore raw
Quoted 39 lines · Alex Shi
Quoted 29 lines · Catalin Marinas
Quoted 28 lines · Alex Shi

commit 450cdfa9c5713551ab1438ab210679868b52a994
Merge: bf78886 8b4ed85
Author: Alex Shi <[email protected]>
Date: Fri Jan 10 10:50:57 2014 +0800

Merge remote-tracking branch 'stable/linux-3.10.y' into linux-linaro-lsk

Conflicts:
arch/arm64/kernel/smp.c

arch/arm64/kernel/smp.c +0 -0
diff --cc arch/arm64/kernel/smp.c
index 5e9d274,9c93e12..87340fd
@@@ -150,17 -187,17 +150,10 @@@ asmlinkage void __cpuinit secondary_sta
        preempt_disable();
        trace_hardirqs_off();
 
 -      /*
 -       * Let the primary processor know we're out of the
 -       * pen, then head off into the C entry point
 -       */
 -      write_pen_release(INVALID_HWID);
 +      if (cpu_ops[cpu]->cpu_postboot)
 +              cpu_ops[cpu]->cpu_postboot();
Quoted 8 lines

arch/arm64/kernel/smp.c

Quoted 4 lines

-- /*

arch/arm64/kernel/smp.c +0 -3
-        * Enable local interrupts.
-        */
-       notify_cpu_starting(cpu);

This kind of diff always confuses me but notify_cpu_starting() should be present in the resulting file. Is it further down?

Quoted 5 lines

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Yes, The notify_cpu_starting kept in final file later.

Just make sure it is in line with commit 7ade67b5984d0a (arm64: move enabling of GIC before CPUs are set online)

Signature · 1 line
Catalin
#5 lore raw
Quoted 11 lines
Quoted 7 lines

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Yes, The notify_cpu_starting kept in final file later.

Just make sure it is in line with commit 7ade67b5984d0a (arm64: move enabling of GIC before CPUs are set online)

Give you the part of modified smp.c file here :)
====

        printk("CPU%u: Booted secondary processor\n", cpu);

        /*
         * All kernel threads share the same mm context; grab a
         * reference and switch to it.
         */
        atomic_inc(&mm->mm_count);
        current->active_mm = mm;
        cpumask_set_cpu(cpu, mm_cpumask(mm));

        /*
         * TTBR0 is only used for the identity mapping at this stage. Make it
         * point to zero page to avoid speculatively fetching new entries.
         */
        cpu_set_reserved_ttbr0();
        flush_tlb_all();

        preempt_disable();
        trace_hardirqs_off();

        if (cpu_ops[cpu]->cpu_postboot)
                cpu_ops[cpu]->cpu_postboot();

        smp_store_cpu_info(cpu);

        /*
         * OK, now it's safe to let the boot CPU continue.  Wait for
         * the CPU migration code to notice that the CPU is online
         * before we continue.
         */
        set_cpu_online(cpu, true);
        complete(&cpu_running);

        /*
         * Enable GIC and timers.
         */
        notify_cpu_starting(cpu);

        local_irq_enable();
        local_fiq_enable();

        /*
         * OK, it's off to the idle thread for us
         */
        cpu_startup_entry(CPUHP_ONLINE);
}
Signature · 2 lines
Thanks
    Alex
#6 lore raw
Quoted 6 lines · Alex Shi
Quoted 6 lines
Quoted 6 lines

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Yes, The notify_cpu_starting kept in final file later.

Just make sure it is in line with commit 7ade67b5984d0a (arm64: move enabling of GIC before CPUs are set online)

Give you the part of modified smp.c file here :)

As I said, you may want to cherry pick 7ade67b5984d0a. It comes in handy with GICv3 support (if you later plan to back-port it to this version of LSK).

Signature · 1 line
Catalin
#7 lore raw
Quoted 9 lines · Catalin Marinas
Quoted 8 lines · Alex Shi
Quoted 8 lines
Quoted 7 lines

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Yes, The notify_cpu_starting kept in final file later.

Quoted 9 lines
Quoted 4 lines
Quoted 2 lines

Just make sure it is in line with commit 7ade67b5984d0a (arm64: move enabling of GIC before CPUs are set online)

Give you the part of modified smp.c file here :)

As I said, you may want to cherry pick 7ade67b5984d0a. It comes in handy with GICv3 support (if you later plan to back-port it to this version of LSK).

Sorry for not make it clear.
We had picked up 7ade67b5984d0a as I showed the contents of function secondary_start_kernel().

Signature · 2 lines
Thanks
    Alex
#8 lore raw
Quoted 13 lines · Alex Shi
Quoted 12 lines · Catalin Marinas
Quoted 10 lines · Alex Shi
Quoted 8 lines
Quoted 5 lines

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Yes, The notify_cpu_starting kept in final file later.

Just make sure it is in line with commit 7ade67b5984d0a (arm64: move enabling of GIC before CPUs are set online)

Give you the part of modified smp.c file here :)

Quoted 7 lines
Quoted 3 lines

As I said, you may want to cherry pick 7ade67b5984d0a. It comes in handy with GICv3 support (if you later plan to back-port it to this version of LSK).

Sorry for not make it clear.
We had picked up 7ade67b5984d0a as I showed the contents of function secondary_start_kernel().

I don't think you picked it since this commit moves notify_cpu_starting() before set_cpu_online() which is not the case for the code you pasted.

Signature · 1 line
Catalin
#9 lore raw
Quoted 18 lines · Catalin Marinas
Quoted 17 lines · Alex Shi
Quoted 15 lines · Catalin Marinas
Quoted 10 lines · Alex Shi
Quoted 8 lines
Quoted 5 lines

the first column '-/+' means contents was removed/added from file 5e9d274. the 2nd column '-/+' means contents was removed/added from file 9c93e12.

Yes, The notify_cpu_starting kept in final file later.

Just make sure it is in line with commit 7ade67b5984d0a (arm64: move enabling of GIC before CPUs are set online)

Give you the part of modified smp.c file here :)

As I said, you may want to cherry pick 7ade67b5984d0a. It comes in handy with GICv3 support (if you later plan to back-port it to this version of LSK).

Quoted 8 lines
Quoted 3 lines

Sorry for not make it clear.
We had picked up 7ade67b5984d0a as I showed the contents of function secondary_start_kernel().

I don't think you picked it since this commit moves notify_cpu_starting() before set_cpu_online() which is not the case for the code you pasted.

Ops, my stupid mistaken. Just cherry-picked this patch into lsk.

Thanks again!

Signature · 2 lines
Thanks
    Alex

A message that is not in the archive (sent off-list or not yet received): CADRr18M=sNsSD1PtoPeQw+DuQtn=p2uwFOLjEE-ztea3SnFHEQ@mail.gmail.com

#11 lore raw
Quoted 5 lines · Mark Brown

On 10 January 2014 02:58, Alex Shi <[email protected] <mailto:[email protected]>> wrote:

Mark & Catalin,

Quoted 8 lines

Could you like to review the merge conflict patch, which at:
git://git.linaro.org/kernel/linux-linaro-stable.git
<http://git.linaro.org/kernel/linux-linaro-stable.git>
linux-linaro-lsk-test

This looks good (if nothing else it ends up with the same thing we have in mainline) providing it tests out OK.

Thanks for review. The build for -test branch is fine. guess that means compile and reboot is fine.
But test result link still can not show test cases results. :(

https://ci.linaro.org/jenkins/job/linux-linaro-stable-lsk-pre-merge/

Signature · 2 lines
Thanks
    Alex
#12 lore raw
Quoted 12 lines · Alex Shi
Quoted 11 lines · Mark Brown

On 10 January 2014 02:58, Alex Shi <[email protected] <mailto:[email protected]>> wrote:

Mark & Catalin,

Could you like to review the merge conflict patch, which at:
git://git.linaro.org/kernel/linux-linaro-stable.git
<http://git.linaro.org/kernel/linux-linaro-stable.git>
linux-linaro-lsk-test

Quoted 5 lines
Quoted 2 lines

This looks good (if nothing else it ends up with the same thing we have in mainline) providing it tests out OK.

Thanks for review. The build for -test branch is fine. guess that means compile and reboot is fine.

Anyway, I updated this merge into lsk.

Quoted 4 lines

But test result link still can not show test cases results. :(

https://ci.linaro.org/jenkins/job/linux-linaro-stable-lsk-pre-merge/

Signature · 2 lines
Thanks
    Alex