23 Jul, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    remove CONFIG_KMOD from core kernel code
    remove CONFIG_KMOD from lib
    remove CONFIG_KMOD from sparc64
    rework try_then_request_module to do less in non-modular kernels
    remove mention of CONFIG_KMOD from documentation
    make CONFIG_KMOD invisible
    modules: Take a shortcut for checking if an address is in a module
    module: turn longs into ints for module sizes
    Shrink struct module: CONFIG_UNUSED_SYMBOLS ifdefs
    module: reorder struct module to save space on 64 bit builds
    module: generic each_symbol iterator function
    module: don't use stop_machine for waiting rmmod

    Linus Torvalds
     

22 Jul, 2008

4 commits

  • One place is just a comment, the other a conditional, unused
    inclusion of linux/kmod.h.

    Signed-off-by: Johannes Berg
    Cc: David S. Miller
    Signed-off-by: Rusty Russell

    Johannes Berg
     
  • This converts all instances of bus_id in the sparc core kernel to use
    either dev_set_name(), or dev_name() depending on the need.

    This is done in anticipation of removing the bus_id field from struct
    driver.

    Cc: Kay Sievers
    Acked-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This allow to dynamically generate attributes and share show/store
    functions between attributes. Right now most attributes are generated
    by special macros and lots of duplicated code. With the attribute
    passed it's instead possible to attach some data to the attribute
    and then use that in shared low level functions to do different things.

    I need this for the dynamically generated bank attributes in the x86
    machine check code, but it'll allow some further cleanups.

    I converted all users in tree to the new show/store prototype. It's a single
    huge patch to avoid unbisectable sections.

    Runtime tested: x86-32, x86-64
    Compiled only: ia64, powerpc
    Not compile tested/only grep converted: sh, arm, avr32

    Signed-off-by: Andi Kleen
    Signed-off-by: Greg Kroah-Hartman

    Andi Kleen
     
  • Kobjects do not have a limit in name size since a while, so stop
    pretending that they do.

    Signed-off-by: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     

18 Jul, 2008

9 commits

  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Adrian Bunk reported that enabling 4MB page size breaks the build.
    The problem is that MAX_ORDER combined with the page shift exceeds the
    SECTION_SIZE_BITS we use in asm-sparc64/sparsemem.h

    There are several ways I suppose we could work around this. For one
    we could define a CONFIG_FORCE_MAX_ZONEORDER to decrease MAX_ORDER in
    these higher page size cases.

    But I also know that these page size cases are broken wrt. TLB miss
    handling especially on pre-hypervisor systems, and there isn't an easy
    way to fix that.

    These options were meant to be fun experimental hacks anyways, and
    only 8K and 64K make any sense to support.

    So remove 512K and 4M base page size support. Of course, we still
    support these page sizes for huge pages.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • kernel bugzilla #11059:

    sparc64 config menu is missing "Processor type and features",
    so add that and move General Setup before Processor menu.

    Signed-off-by: Randy Dunlap
    Signed-off-by: David S. Miller

    Randy Dunlap
     
  • Renaming the function sparc64_mmap_check() to
    sparc_mmap_check() was enough to make the two
    header files identical.

    :$ diff -u include/asm-sparc/mman.h include/asm-sparc64/mman.h
    :-- include/asm-sparc/mman.h 2008-06-13 06:46:39.000000000 +0200
    :++ include/asm-sparc64/mman.h 2008-06-13 06:46:39.000000000 +0200
    :@@ -1,5 +1,5 @@
    :-#ifndef __SPARC_MMAN_H__
    :-#define __SPARC_MMAN_H__
    :+#ifndef __SPARC64_MMAN_H__
    :+#define __SPARC64_MMAN_H__
    :
    : #include
    :
    :@@ -23,9 +23,9 @@
    :
    : #ifdef __KERNEL__
    : #ifndef __ASSEMBLY__
    :-#define arch_mmap_check(addr,len,flags) sparc_mmap_check(addr,len)
    :-int sparc_mmap_check(unsigned long addr, unsigned long len);
    :+#define arch_mmap_check(addr,len,flags) sparc64_mmap_check(addr,len)
    :+int sparc64_mmap_check(unsigned long addr, unsigned long len);
    : #endif
    : #endif
    :
    :-#endif /* __SPARC_MMAN_H__ */
    :+#endif /* __SPARC64_MMAN_H__ */

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • David Miller noticed that the build of vmlinux.lds
    failed to use the -m64 specifier.
    This caused the build to break with a bi-arch gcc with
    unified headers.

    Add the -m64 option to CPPFLAGS_vmlinux.lds so we
    have the correct defines available when building
    vmliux.lds.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • This patch makes the following needlessly global code static:
    - central.c: struct central_bus
    - central.c: struct fhc_list
    - central.c: apply_fhc_ranges()
    - central.c: apply_central_ranges()
    - ds.c: struct ds_states_template[]
    - pci_msi.c: sparc64_setup_msi_irq()
    - pci_msi.c: sparc64_teardown_msi_irq()
    - pci_sun4v.c: struct sun4v_dma_ops
    - sys_sparc32.c: cp_compat_stat64()

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     

17 Jul, 2008

1 commit

  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (72 commits)
    Revert "x86/PCI: ACPI based PCI gap calculation"
    PCI: remove unnecessary volatile in PCIe hotplug struct controller
    x86/PCI: ACPI based PCI gap calculation
    PCI: include linux/pm_wakeup.h for device_set_wakeup_capable
    PCI PM: Fix pci_prepare_to_sleep
    x86/PCI: Fix PCI config space for domains > 0
    Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLEEP=n
    PCI: Simplify PCI device PM code
    PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleep
    PCI ACPI: Rework PCI handling of wake-up
    ACPI: Introduce new device wakeup flag 'prepared'
    ACPI: Introduce acpi_device_sleep_wake function
    PCI: rework pci_set_power_state function to call platform first
    PCI: Introduce platform_pci_power_manageable function
    ACPI: Introduce acpi_bus_power_manageable function
    PCI: make pci_name use dev_name
    PCI: handle pci_name() being const
    PCI: add stub for pci_set_consistent_dma_mask()
    PCI: remove unused arch pcibios_update_resource() functions
    PCI: fix pci_setup_device()'s sprinting into a const buffer
    ...

    Fixed up conflicts in various files (arch/x86/kernel/setup_64.c,
    arch/x86/pci/irq.c, arch/x86/pci/pci.h, drivers/acpi/sleep/main.c,
    drivers/pci/pci.c, drivers/pci/pci.h, include/acpi/acpi_bus.h) from x86
    and ACPI updates manually.

    Linus Torvalds
     

16 Jul, 2008

2 commits

  • Conflicts:

    arch/powerpc/Kconfig
    arch/s390/kernel/time.c
    arch/x86/kernel/apic_32.c
    arch/x86/kernel/cpu/perfctr-watchdog.c
    arch/x86/kernel/i8259_64.c
    arch/x86/kernel/ldt.c
    arch/x86/kernel/nmi_64.c
    arch/x86/kernel/smpboot.c
    arch/x86/xen/smp.c
    include/asm-x86/hw_irq_32.h
    include/asm-x86/hw_irq_64.h
    include/asm-x86/mach-default/irq_vectors.h
    include/asm-x86/mach-voyager/irq_vectors.h
    include/asm-x86/smp.h
    kernel/Makefile

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • * 'core/stacktrace' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    generic-ipi: powerpc/generic-ipi tree build failure
    stacktrace: fix build failure on sparc64
    stacktrace: export save_stack_trace[_tsk]
    stacktrace: fix modular build, export print_stack_trace and save_stack_trace
    backtrace: replace timer with tasklet + completions
    stacktrace: add saved stack traces to backtrace self-test
    stacktrace: print_stack_trace() cleanup
    debugging: make stacktrace independent from DEBUG_KERNEL
    stacktrace: don't crash on invalid stack trace structs

    Linus Torvalds
     

15 Jul, 2008

2 commits

  • * 'tracing/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (228 commits)
    ftrace: build fix for ftraced_suspend
    ftrace: separate out the function enabled variable
    ftrace: add ftrace_kill_atomic
    ftrace: use current CPU for function startup
    ftrace: start wakeup tracing after setting function tracer
    ftrace: check proper config for preempt type
    ftrace: trace schedule
    ftrace: define function trace nop
    ftrace: move sched_switch enable after markers
    ftrace: prevent ftrace modifications while being kprobe'd, v2
    fix "ftrace: store mcount address in rec->ip"
    mmiotrace broken in linux-next (8-bit writes only)
    ftrace: avoid modifying kprobe'd records
    ftrace: freeze kprobe'd records
    kprobes: enable clean usage of get_kprobe
    ftrace: store mcount address in rec->ip
    ftrace: build fix with gcc 4.3
    namespacecheck: fixes
    ftrace: fix "notrace" filtering priority
    ftrace: fix printout
    ...

    Linus Torvalds
     
  • Jonathan Corbet
     

08 Jul, 2008

2 commits

  • Today's linux-next build (spac64 allmodconfig) failed like this:

    arch/sparc64/kernel/stacktrace.c:50: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL_GPL'
    arch/sparc64/kernel/stacktrace.c:50: warning: parameter names (without types) in function declaration
    arch/sparc64/kernel/stacktrace.c:50: warning: data definition has no type or storage class

    Signed-off-by: Stephen Rothwell
    Cc: "David S. Miller"
    Signed-off-by: Ingo Molnar

    Stephen Rothwell
     
  • Also fixes up the sparc code that was assuming this is not a constant.

    Acked-by: David S. Miller
    Signed-off-by: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Jesse Barnes

    Greg KH
     

03 Jul, 2008

2 commits


01 Jul, 2008

1 commit

  • Alexander Beregalov reported this build failure:

    $ make CROSS_COMPILE=sparc64-unknown-linux-gnu- image modules && sudo
    make modules_install
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    CALL scripts/checksyscalls.sh
    CHK include/linux/compile.h
    dnsdomainname: Unknown host
    CC arch/sparc64/kernel/sparc64_ksyms.o
    arch/sparc64/kernel/sparc64_ksyms.c:116: error: '_mcount' undeclared
    here (not in a function)
    cc1: warnings being treated as errors
    arch/sparc64/kernel/sparc64_ksyms.c:116: error: type defaults to 'int'
    in declaration of '_mcount'

    And bisected it back to:

    | commit 395a59d0f8e86bb39cd700c3d185d30c670bb958
    | Author: Abhishek Sagar
    | Date: Sat Jun 21 23:47:27 2008 +0530
    |
    | ftrace: store mcount address in rec->ip

    the mcount prototype is only available under CONFIG_FTRACE,
    extend it to CONFIG_MCOUNT as well.

    Reported-and-bisected-by: Alexander Beregalov
    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

26 Jun, 2008

3 commits

  • It's not even passed on to smp_call_function() anymore, since that
    was removed. So kill it.

    Acked-by: Jeremy Fitzhardinge
    Reviewed-by: Paul E. McKenney
    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • It's never used and the comments refer to nonatomic and retry
    interchangably. So get rid of it.

    Acked-by: Jeremy Fitzhardinge
    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • This adds kernel/smp.c which contains helpers for IPI function calls. In
    addition to supporting the existing smp_call_function() in a more efficient
    manner, it also adds a more scalable variant called smp_call_function_single()
    for calling a given function on a single CPU only.

    The core of this is based on the x86-64 patch from Nick Piggin, lots of
    changes since then. "Alan D. Brunelle" has
    contributed lots of fixes and suggestions as well. Also thanks to
    Paul E. McKenney for reviewing RCU usage
    and getting rid of the data allocation fallback deadlock.

    Acked-by: Ingo Molnar
    Reviewed-by: Paul E. McKenney
    Signed-off-by: Jens Axboe

    Jens Axboe
     

24 Jun, 2008

1 commit

  • Record the address of the mcount call-site. Currently all archs except sparc64
    record the address of the instruction following the mcount call-site. Some
    general cleanups are entailed. Storing mcount addresses in rec->ip enables
    looking them up in the kprobe hash table later on to check if they're kprobe'd.

    Signed-off-by: Abhishek Sagar
    Cc: davem@davemloft.net
    Cc: Steven Rostedt
    Signed-off-by: Ingo Molnar

    Abhishek Sagar
     

10 Jun, 2008

1 commit


24 May, 2008

2 commits

  • Now that ftrace is being ported to other architectures, it has become
    apparent that DYNAMIC_FTRACE is dependent on whether or not that
    architecture implements dynamic ftrace. FTRACE itself may be ported to
    an architecture without porting dynamic ftrace.

    This patch adds HAVE_DYNAMIC_FTRACE to allow architectures to port ftrace
    without having to also port the dynamic aspect as well.

    Signed-off-by: Steven Rostedt
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Steven Rostedt
     
  • Signed-off-by: David S. Miller
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    David Miller
     

22 May, 2008

3 commits


20 May, 2008

3 commits

  • When a cpu really is stuck in the kernel, it can be often
    impossible to figure out which cpu is stuck where. The
    worst case is when the stuck cpu has interrupts disabled.

    Therefore, implement a global cpu state capture that uses
    SMP message interrupts which are not disabled by the
    normal IRQ enable/disable APIs of the kernel.

    As long as we can get a sysrq 'y' to the kernel, we can
    get a dump. Even if the console interrupt cpu is wedged,
    we can trigger it from userspace using /proc/sysrq-trigger

    The output is made compact so that this facility is more
    useful on high cpu count systems, which is where this
    facility will likely find itself the most useful :)

    Signed-off-by: David S. Miller

    David S. Miller
     
  • This patch removes the CVS keywords that weren't updated for a long time
    from comments.

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    [PATCH] return to old errno choice in mkdir() et.al.
    [Patch] fs/binfmt_elf.c: fix wrong return values
    [PATCH] get rid of leak in compat_execve()
    [Patch] fs/binfmt_elf.c: fix a wrong free
    [PATCH] avoid multiplication overflows and signedness issues for max_fds
    [PATCH] dup_fd() part 4 - race fix
    [PATCH] dup_fd() - part 3
    [PATCH] dup_fd() part 2
    [PATCH] dup_fd() fixes, part 1
    [PATCH] take init_files to fs/file.c

    Linus Torvalds
     

17 May, 2008

3 commits