[#5750] SMP build fails with 2.6.32 due to missing dynamic percpu support

Document created by Aaronwu Employee on Sep 5, 2013
Version 1Show Document
  • View in full screen mode

[#5750] SMP build fails with 2.6.32 due to missing dynamic percpu support

Submitted By: Yi Li

Open Date

2009-12-07 05:03:31     Close Date

2010-06-11 04:55:39

Priority:

Medium     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

4.3 svn trunk

App binary format:

N/A     

Summary: SMP build fails with 2.6.32 due to missing dynamic percpu support

Details:

 

After kernel update to linux-2.6.32, SMP cannot be built:

 

linux-kernel svn: #7937

 

mm/percpu.c: In function ‘pcpu_post_unmap_tlb_flush’:

mm/percpu.c:811: error: implicit declaration of function ‘flush_tlb_kernel_range’

mm/percpu.c: In function ‘pcpu_embed_first_chunk’:

mm/percpu.c:1925: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘unsigned int’

make[1]: *** [mm/percpu.o] Error 1

make: *** [mm] Error 2

 

 

Looking at mm/Makefile:

 

ifndef CONFIG_HAVE_LEGACY_PER_CPU_AREA

obj-$(CONFIG_SMP) += percpu.o

else

obj-$(CONFIG_SMP) += allocpercpu.o

endif

 

We need to define CONFIG_HAVE_LEGACY_PER_CPU_AREA=y, but I don't know where to define?

 

 

Follow-ups

 

--- Mike Frysinger                                           2009-12-07 05:12:36

why dont we implement the new functions so we dont have to rely on the legacy

stuff ?

 

--- Graf Yang                                                2010-01-08 06:15:48

The current dynamic percpu implementation depends on vmalloc.c which is not

compiled on blackfin.

 

I committed a patch to enable the legacy percpu allocation. It works fine for

current kernel.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes