01 Nov, 2011

1 commit


13 Oct, 2011

1 commit


25 May, 2011

1 commit

  • Fold all the mmu_gather rework patches into one for submission

    Signed-off-by: Peter Zijlstra
    Reported-by: Hugh Dickins
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     

09 Mar, 2011

2 commits

  • Warning log:
    CHECK arch/microblaze/mm/fault.c
    arch/microblaze/mm/fault.c:51:6: warning: incorrect type in initializer (different address spaces)
    arch/microblaze/mm/fault.c:51:6: expected unknown type 2const [noderef] *__gu_addr
    arch/microblaze/mm/fault.c:51:6: got unsigned int *
    arch/microblaze/mm/fault.c:68:6: warning: symbol 'bad_page_fault' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning in dma.c was caused by incorrect type in consistent_alloc function.

    Warning log:
    CHECK arch/microblaze/kernel/dma.c
    arch/microblaze/kernel/dma.c:53:26: warning: incorrect type in argument 1 (different base types)
    arch/microblaze/kernel/dma.c:53:26: expected int [signed] gfp
    arch/microblaze/kernel/dma.c:53:26: got restricted unsigned int [usertype] flag

    Signed-off-by: Michal Simek

    Michal Simek
     

11 Sep, 2010

1 commit

  • Adopt Microblaze to the memblock API changes, to fix this
    build failure:

    CC arch/microblaze/mm/init.o
    arch/microblaze/mm/init.c: In function 'mm_cmdline_setup':
    arch/microblaze/mm/init.c:236: error: 'struct memblock_type' has no member named 'region'
    ...

    Signed-off-by: Yinghai Lu
    Cc: linux-mm@kvack.org
    Cc: Stephen Rothwell
    Cc: Benjamin Herrenschmidt
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Michal Simek
     

31 Aug, 2010

1 commit


04 Aug, 2010

5 commits


14 Jul, 2010

1 commit

  • via following scripts

    FILES=$(find * -type f | grep -vE 'oprofile|[^K]config')

    sed -i \
    -e 's/lmb/memblock/g' \
    -e 's/LMB/MEMBLOCK/g' \
    $FILES

    for N in $(find . -name lmb.[ch]); do
    M=$(echo $N | sed 's/lmb/memblock/g')
    mv $N $M
    done

    and remove some wrong change like lmbench and dlmb etc.

    also move memblock.c from lib/ to mm/

    Suggested-by: Ingo Molnar
    Acked-by: "H. Peter Anvin"
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Linus Torvalds
    Signed-off-by: Yinghai Lu
    Signed-off-by: Benjamin Herrenschmidt

    Yinghai Lu
     

13 May, 2010

1 commit


06 May, 2010

5 commits


05 Apr, 2010

1 commit


01 Apr, 2010

3 commits


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

11 Mar, 2010

5 commits


14 Dec, 2009

2 commits


25 Sep, 2009

1 commit

  • * 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze: (24 commits)
    microblaze: Disable heartbeat/enable emaclite in defconfigs
    microblaze: Support simpleImage.dts make target
    microblaze: Fix _start symbol to physical address
    microblaze: Use LOAD_OFFSET macro to get correct LMA for all sections
    microblaze: Create the LOAD_OFFSET macro used to compute VMA vs LMA offsets
    microblaze: Copy ppc asm-compat.h for clean handling of constants in asm and C
    microblaze: Actually show KiB rather than pages in "Freeing initrd memory:"
    microblaze: Support ptrace syscall tracing.
    microblaze: Updated CPU version and FPGA family codes in PVR
    microblaze: Generate correct signal and siginfo for integer div-by-zero
    microblaze: Don't be noisy when userspace causes hardware exceptions
    microblaze: Remove ipc.h file which points to non-existing asm-generic file
    microblaze: Clear sticky FSR register after generating exception signals
    microblaze: Ensure CPU usermode is set on new userspace processes
    microblaze: Use correct kbuild variable KBUILD_CFLAGS
    microblaze: Save and restore msr in hw exception
    microblaze: Add architectural support for USB EHCI host controllers
    microblaze: Implement include/asm/syscall.h.
    microblaze: Improve checking mechanism for MSR instruction
    microblaze: Add checking mechanism for MSR instruction
    ...

    Linus Torvalds
     

22 Sep, 2009

2 commits

  • Commit 96177299416dbccb73b54e6b344260154a445375 ("Drop free_pages()")
    modified nr_free_pages() to return 'unsigned long' instead of 'unsigned
    int'. This made the casts to 'unsigned long' in most callers superfluous,
    so remove them.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Geert Uytterhoeven
    Reviewed-by: Christoph Lameter
    Acked-by: Ingo Molnar
    Acked-by: Russell King
    Acked-by: David S. Miller
    Acked-by: Kyle McMartin
    Acked-by: WANG Cong
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Haavard Skinnemoen
    Cc: Mikael Starvik
    Cc: "Luck, Tony"
    Cc: Hirokazu Takata
    Cc: Ralf Baechle
    Cc: David Howells
    Acked-by: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: Chris Zankel
    Cc: Michal Simek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • Fix "Freeing initrd memory:" message on microblaze to show kilobytes as
    claimed rather than number of pages.

    Signed-off-by: Lennart Sorensen
    Signed-off-by: Michal Simek

    Lennart Sorensen
     

18 Aug, 2009

1 commit

  • For noMMU system when you use larger rootfs image
    there is problem with using _end label because
    we increase klimit but in memory initialization
    we use still _end which is wrong. Larger mtd rootfs
    was rewritten by init_bootmem_node.

    MMU kernel use static initialization where klimit
    is setup to _end. There is no any other hanling
    with klimit.

    Signed-off-by: Michal Simek

    Michal Simek
     

27 Jul, 2009

2 commits

  • This patch add support for cases where load/store instruction
    in put/get_user macro gets unaligned pointer to data and this
    address is not valid. I prevent all cases which can failed.
    I had to disable first stage of unaligned handler which is used
    only for noMMU kernel and the whole work is done when interrupt
    is enabled.
    You have enable HW support for detect unaligned access in Microblaze.

    This patch fixed three LTP tests:
    getpeername01, getsockname01, socketpair01

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Calling fixup when we are in kernel mode. This
    prevent fault for copy_to/from_user. This fault
    was find thanks to writev01/03/04 LTP tests.

    Signed-off-by: Michal Simek

    Michal Simek
     

06 Jul, 2009

1 commit


22 Jun, 2009

1 commit

  • This allows the callers to now pass down the full set of FAULT_FLAG_xyz
    flags to handle_mm_fault(). All callers have been (mechanically)
    converted to the new calling convention, there's almost certainly room
    for architectures to clean up their code and then add FAULT_FLAG_RETRY
    when that support is added.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

26 May, 2009

1 commit