24 Jul, 2007

3 commits


23 Jul, 2007

37 commits

  • Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • This avoids a conflict with sparse builds.

    Reported by Alexey Dobriyan, fix suggested by Al Viro

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • The recent 9p commit: bd238fb431f31989898423c8b6496bc8c4204a86 that
    supposedly only moved files also introduced a new 9p sysctl interface
    that did not properly register it's sysctl binary numbers.

    And since it was only for debugging clearly did not need a binary fast
    path in any case. So this patch just remove the binary numbers.

    See Documentation/sysctl/ctl_unnumbered.txt for more details.

    While I was at it I cleaned up the sysctl initializers a little as
    well so there is less to read.

    Cc: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Signed-off-by: Eric W. Biederman
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • Fix a typo in SubmittingPatches where "probably" was spelt "probabally".

    Signed-off-by: Linus Nilsson
    Signed-off-by: Linus Torvalds

    Linus Nilsson
     
  • Change a headline to reflect that there are three main types of kernel
    locking, not two.

    Signed-off-by: Linus Nilsson
    Signed-off-by: Linus Torvalds

    Linus Nilsson
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    IB/ehca: Support small QP queues
    IB/ehca: Make internal_create/destroy_qp() static
    IB/ehca: Move ehca2ib_return_code() out of line
    IB/ehca: Generate async event when SRQ limit reached
    IB/ehca: Support large page MRs
    IB/mlx4: Fix error path in create_qp_common()
    mlx4_core: Change command token on timeout
    IB/mthca: Change command token on timeout
    IB/ipath: Remove ipath_layer dead code
    IB/mlx4: Fix leaks in __mlx4_ib_modify_qp

    Linus Torvalds
     
  • Now that the last inlined instances are gone, all that is left to do
    is turning disable_irq_nosync on arm26 and m68k from defines to aliases
    and we are all set - we can make these externs in linux/interrupt.h
    uncoditional and kill remaining instances in asm/irq.h

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (60 commits)
    [SCSI] libsas: make ATA functions selectable by a config option
    [SCSI] bsg: unexport sg v3 helper functions
    [SCSI] bsg: fix bsg_unregister_queue
    [SCSI] bsg: make class backlinks
    [SCSI] 3w-9xxx: add support for 9690SA
    [SCSI] bsg: fix bsg_register_queue error path
    [SCSI] ESP: Increase ESP_BUS_TIMEOUT to 275.
    [SCSI] libsas: fix scr_read/write users and update the libata documentation
    [SCSI] mpt fusion: update Kconfig help
    [SCSI] scsi_transport_sas: add destructor for bsg
    [SCSI] iscsi_tcp: buggered kmalloc()
    [SCSI] qla2xxx: Update version number to 8.02.00-k2.
    [SCSI] qla2xxx: Add ISP25XX support.
    [SCSI] qla2xxx: Use pci_try_set_mwi().
    [SCSI] qla2xxx: Use PCI-X/PCI-Express read control interfaces.
    [SCSI] qla2xxx: Re-factor isp_operations to static structures.
    [SCSI] qla2xxx: Validate mid-layer 'underflow' during check-condition handling.
    [SCSI] qla2xxx: Correct setting of 'current' and 'supported' speeds during FDMI registration.
    [SCSI] qla2xxx: Generalize iIDMA support.
    [SCSI] qla2xxx: Generalize FW-Interface-2 support.
    ...

    Linus Torvalds
     
  • Not everyone wants libsas automatically to pull in libata. This patch
    makes the behaviour configurable, so you can build libsas with or
    without ATA support.

    Signed-off-by: James Bottomley

    James Bottomley
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (60 commits)
    [ARM] 4524/1: S3C: Move register out of include/asm-arm/arch-s3c2410
    [ARM] 4523/1: S3C: Remove FIFO_MAX from uncompression headers
    [ARM] 4522/1: S3C: split include/asm-arm/arch/memory.h
    [ARM] 4521/2: S3C: Reorganise VA mapping headers
    [ARM] 4520/1: S3C: Remove old VA values from static map
    [ARM] 4519/1: S3C: split S3C2400 values out of S3C24XX map.h
    [ARM] 4518/1: S3C: Rename watchdog configuration options
    [ARM] 4517/1: S3C: Fix debug macros for ARM926 output
    [ARM] 4516/1: S3C: Fix uncompressor serial output for ARM926
    [ARM] 4515/1: S3C: Move uncompress code to plat-s3c
    [ARM] 4514/1: S3C: Rename DEBUG_S3C2410_PORT and DEBUG_S3C_UART
    [ARM] 4513/1: S3C: Rename CONFIG_S3C2410_LOWLEVEL_UART_PORT
    [ARM] 4512/1: S3C: rename the debug macros for per-cpu updates
    [ARM] 4511/1: S3C: updated LLSERIAL Kconfig defines for CPU support
    [ARM] 4510/1: S3C: split debug-macro support into plat-s3c
    [ARM] 4509/1: S3C: Create initial arch/arm/plat-s3c
    [ARM] 4508/1: S3C: Move items to include/asm-arm/plat-s3c
    [ARM] 4461/1: MXC platform and i.MX31ADS core support
    [ARM] 4507/1: pxa2xx clock_event_device
    [ARM] 4497/1: Only allow safe cache configurations on ARMv6 and later
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
    leds: Convert from struct class_device to struct device
    leds: leds-gpio for ngw100
    leds: Add warning printks in error paths
    leds: Fix trigger unregister_simple if register_simple fails
    leds: Use menuconfig objects II - LED
    leds: Teach leds-gpio to handle timer-unsafe GPIOs
    leds: Add generic GPIO LED driver

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
    leds: cr_bllcd.c: build fix
    backlight: Convert from struct class_device to struct device
    backlight: Fix order of Kconfig entries

    Linus Torvalds
     
  • * 'audit.b39' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
    [PATCH] get rid of AVC_PATH postponed treatment
    [PATCH] allow audit filtering on bit & operations
    [PATCH] audit: fix broken class-based syscall audit
    [PATCH] Make IPC mode consistent

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    [POWERPC] Clean up duplicate includes in drivers/macintosh/
    [POWERPC] Quiet section mismatch warning on pcibios_setup
    [POWERPC] init and exit markings for hvc_iseries
    [POWERPC] Quiet section mismatch in hvc_rtas.c
    [POWERPC] Constify of_platform_driver match_table
    [POWERPC] hvcs: Make some things static and const
    [POWERPC] Constify of_platform_driver name
    [POWERPC] MPIC protected sources
    [POWERPC] of_detach_node()'s device node argument cannot be const
    [POWERPC] Fix ARCH=ppc builds
    [POWERPC] mv64x60: Use mutex instead of semaphore
    [POWERPC] Allow smp_call_function_single() to current cpu
    [POWERPC] Allow exec faults on readable areas on classic 32-bit PowerPC
    [POWERPC] Fix future firmware feature fixups function failure
    [POWERPC] fix showing xmon help
    [POWERPC] Make xmon_write accept a const buffer
    [POWERPC] Fix misspelled "CONFIG_CHECK_CACHE_COHERENCY" Kconfig option.
    [POWERPC] cell: CONFIG_SPE_BASE is a typo

    Linus Torvalds
     
  • Fix

    WARNING: vmlinux.o(.data+0x99): Section mismatch: reference to .init.text:xen_start_kernel (between 'startup_xen' and 'boot_gdt_descr')

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Obviously broken on little-endian; fortunately, the option is not
    frequently used...

    Signed-off-by: Al Viro
    [ Hey, sparse is wonderful, but even better than sparse is having people
    like Al that actually _run_ it and fix bugs using it. - Linus ]
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Found by Sebastian Siewior and randconfig.

    Signed-off-by: Avi Kivity
    Signed-off-by: Linus Torvalds

    Avi Kivity
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (77 commits)
    ACPI: Populate /sys/firmware/acpi/tables/
    ACPI: create CONFIG_ACPI_DEBUG_FUNC_TRACE
    ACPI: update ACPI proc I/F removal schedule
    ACPI: update feature-removal-schedule.txt, /sys/firmware/acpi/namespace is gone
    ACPI: export ACPI events via acpi_mc_group multicast group
    ACPI: fix empty macros found by -Wextra
    ACPI: drivers/acpi/pci_link.c: lower printk severity
    sony-laptop: Fix event reading in sony-laptop
    sony-laptop: Add Vaio FE to the special init sequence
    sony-laptop: Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.
    sony-laptop: Invoke _INI for SNC devices that provide it
    sony-laptop: Add support for recent Vaios Fn keys (C series for now)
    sony-laptop: map wireless switch events to KEY_WLAN
    sony-laptop: add new SNC handlers
    ACPI: thinkpad-acpi: add locking to brightness subdriver
    ACPI: thinkpad-acpi: bump up version to 0.15
    ACPI: thinkpad-acpi: make EC-based thermal readings non-experimental
    ACPI: thinkpad-acpi: make sure DSDT TMPx readings don't return +128
    ACPI: thinkpad-acpi: react to Lenovo ThinkPad differences in hot key
    ACPI: thinkpad-acpi: allow use of CMOS NVRAM for brightness control
    ...

    Linus Torvalds
     
  • They are identical

    Indirectly pointed out by Thomas Gleixner

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • 64bit code in there now since some time.

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Get rid of warnings like

    WARNING: vmlinux.o(.bootstrap.text+0x1a8): Section mismatch: reference to .init.text:x86_64_start_kernel (between 'initial_code' and 'init_rsp')

    - Move initialization code into .text.head like i386 because modpost knows about this already
    - Mark initial_code .initdata

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Fix following warning:
    WARNING: vmlinux.o(.text+0x188ea): Section mismatch: reference to .init.text:__alloc_bootmem_core (between 'alloc_bootmem_high_node' and 'get_gate_vma')

    alloc_bootmem_high_node() is only used from __init scope so declare it __init.
    And in addition declare the weak variant __init too.

    Signed-off-by: Sam Ravnborg
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • Fix following warnings:
    WARNING: vmlinux.o(.text+0x945e): Section mismatch: reference to .init.text:__set_fixmap (between 'hpet_arch_init' and 'hpet_mask_rtc_irq_bit')
    WARNING: vmlinux.o(.text+0x9474): Section mismatch: reference to .init.text:__set_fixmap (between 'hpet_arch_init' and 'hpet_mask_rtc_irq_bit')

    hpet_arch_init is only used from __init context so mark it __init.

    Signed-off-by: Sam Ravnborg
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • The performance counters on K7 are only 48 bits wide, so using bit 63 to
    check if the counter overflowed is wrong. Let's use bit 47 instead.

    Signed-off-by: Björn Steinbrink
    Cc: Don Zickus
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Björn Steinbrink
     
  • Previously lock was unconditionally used, but shouldn't be needed on
    UP systems.

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • I got an oops while booting a 32bit kernel on KVM because it doesn't
    implement performance counters used by the NMI watchdog. Handle this
    case.

    Cc: Avi Kivity
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Due to index register access ordering problems, when using macros a line
    like this fails (and does nothing):

    setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88);

    With inlined functions this line will work as expected.

    Note about a side effect: Seems on Geode GX1 based systems the
    "suspend on halt power saving feature" was never enabled due to this
    wrong macro expansion. With inlined functions it will be enabled, but
    this will stop the TSC when the CPU runs into a HLT instruction.
    Kernel output something like this:
    Clocksource tsc unstable (delta = -472746897 ns)

    This is the 3rd version of this patch.

    - Adding missed arch/i386/kernel/cpu/mtrr/state.c
    Thanks to Andres Salomon
    - Adding some big fat comments into the new header file
    Suggested by Andi Kleen

    AK: fixed x86-64 compilation

    Signed-off-by: Juergen Beisert
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Juergen Beisert
     
  • local_cmpxchg() should not use any LOCK prefix. This change probably
    got lost in the move to cmpxchg.h.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Christoph Lameter
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • kstat_irqs(0) includes the count of interrupt 0 from all cpus, not just
    the current cpu. The updated interrupt 0 on other cpus can stop the
    nmi_watchdog from tripping, so only include the current cpu's int 0.

    Signed-off-by: Keith Owens
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Keith Owens
     
  • This mainly changes the nops for alternative, so not very revolutionary.

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Previously this flag was only used on 32bit, but some shared code can use
    it now.

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Fix

    WARNING: arch/i386/kernel/built-in.o(.text+0xdd0d): Section mismatch: reference to .init.data:cpu_llc_id (between 'set_cpu_sibling_map' and 'initialize_secondary')
    WARNING: arch/i386/kernel/built-in.o(.text+0xdd1b): Section mismatch: reference to .init.data:cpu_llc_id (between 'set_cpu_sibling_map' and 'initialize_secondary')

    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • When a machine check or NMI occurs while multiple byte code is patched
    the CPU could theoretically see an inconsistent instruction and crash.
    Prevent this by temporarily disabling MCEs and returning early in the
    NMI handler.

    Based on discussion with Mathieu Desnoyers.

    Cc: Mathieu Desnoyers
    Cc: Jeremy Fitzhardinge
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Reenable kprobes and alternative patching when the kernel text is write
    protected by DEBUG_RODATA

    Add a general utility function to change write protected text. The new
    function remaps the code using vmap to write it and takes care of CPU
    synchronization. It also does CLFLUSH to make icache recovery faster.

    There are some limitations on when the function can be used, see the
    comment.

    This is a newer version that also changes the paravirt_ops code.
    text_poke also supports multi byte patching now.

    Contains bug fixes from Zach Amsden and suggestions from Mathieu
    Desnoyers.

    Cc: Jan Beulich
    Cc: Jeremy Fitzhardinge
    Cc: Mathieu Desnoyers
    Cc: Zach Amsden
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • This patch uses the read and write functions provided at system.h
    for control registers instead of writting raw assembly over and
    over again in .c files. Functions to manipulate cr2 and cr8 were
    provided, as they were lacking.

    Also, removed some extra space after closing brackets

    Signed-off-by: Glauber de Oliveira Costa
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Glauber de Oliveira Costa
     
  • This patch makes the i386 behave the same way that x86_64 does when a
    segfault happens. A line gets printed to the kernel log so that tools
    that need to check for failures can behave more uniformly between
    debug.show_unhandled_signals sysctl variable to 0 (or by doing echo 0 >
    /proc/sys/debug/exception-trace)

    Also, all of the lines being printed are now using printk_ratelimit() to
    deny the ability of DoS from a local user with a program like the
    following:

    main()
    {
    while (1)
    if (!fork()) *(int *)0 = 0;
    }

    This new revision also includes the fix that Andrew did which got rid of
    new sysctl that was added to the system in earlier versions of this.
    Also, 'show-unhandled-signals' sysctl has been renamed back to the old
    'exception-trace' to avoid breakage of people's scripts.

    AK: Enabling by default for i386 will be likely controversal, but let's see what happens
    AK: Really folks, before complaining just fix your segfaults
    AK: I bet this will find a lot of silent issues

    Signed-off-by: Masoud Sharbiani
    Signed-off-by: Andi Kleen
    [ Personally, I've found the complaints useful on x86-64, so I'm all for
    this. That said, I wonder if we could do it more prettily.. -Linus ]
    Signed-off-by: Linus Torvalds

    Masoud Asgharifard Sharbiani