03 May, 2007

4 commits

  • Add "noreplace-paravirt" to disable paravirt_ops patching.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Andi Kleen
    Cc: Rusty Russell
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton

    Jeremy Fitzhardinge
     
  • Add "noreplace-smp" to disable SMP instruction replacement.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Andi Kleen

    Jeremy Fitzhardinge
     
  • It doesn't put the CPU into deeper sleep states, so it's better to use the standard
    idle loop to save power. But allow to reenable it anyways for benchmarking.

    I also removed the obsolete idle=halt on i386

    Cc: andreas.herrmann@amd.com

    Signed-off-by: Andi Kleen

    Andi Kleen
     
  • Now that relocation of the VDSO for COMPAT_VDSO users is done at
    runtime rather than compile time, it is possible to enable/disable
    compat mode at runtime.

    This patch allows you to enable COMPAT_VDSO mode with "vdso=2" on the
    kernel command line, or via sysctl. (Switching on a running system
    shouldn't be done lightly; any process which was relying on the compat
    VDSO will be upset if it goes away.)

    The COMPAT_VDSO config option still exists, but if enabled it just
    makes vdso_enabled default to VDSO_COMPAT.

    +From: Hugh Dickins

    Fix oops from i386-make-compat_vdso-runtime-selectable.patch.

    Even mingetty at system startup finds it easy to trigger an oops
    while reading /proc/PID/maps: though it has a good hold on the mm
    itself, that cannot stop exit_mm() from resetting tsk->mm to NULL.

    (It is usually show_map()'s call to get_gate_vma() which oopses,
    and I expect we could change that to check priv->tail_vma instead;
    but no matter, even m_start()'s call just after get_task_mm() is racy.)

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Andi Kleen
    Cc: Zachary Amsden
    Cc: "Jan Beulich"
    Cc: Eric W. Biederman
    Cc: Andi Kleen
    Cc: Ingo Molnar
    Cc: Roland McGrath

    Jeremy Fitzhardinge
     

30 Apr, 2007

1 commit

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (105 commits)
    sonypi: use mutex instead of semaphore
    sony-laptop: remove user visible camera controls as platform attributes
    meye: make meye use sony-laptop instead of sonypi
    sony-laptop: add a meye-usable include file for camera ops
    sony-laptop: complete the motion eye camera support in sony-laptop
    sonypi: try to detect if sony-laptop has already taken one of the known ioports
    sonypi: suggest sonypi users to try sony-laptop instead
    sony-laptop: add edge modem support (also called WWAN)
    sony-laptop: add locking on accesses to the ioport and global vars
    sony-laptop: add camera enable/disable parameter, better handle possible infinite loop
    thinkpad-acpi: make drivers/misc/thinkpad_acpi:fan_mutex static
    ACPI: thinkpad-acpi: add sysfs support to wan and bluetooth subdrivers
    ACPI: thinkpad-acpi: add sysfs support to hotkey subdriver
    ACPI: thinkpad-acpi: improve dock subdriver initialization
    ACPI: thinkpad-acpi: improve debugging for acpi helpers
    ACPI: thinkpad-acpi: improve fan control documentation
    ACPI: thinkpad-acpi: map ENXIO to EINVAL for fan sysfs
    ACPI: thinkpad-acpi: fix a fan watchdog invocation
    ACPI: thinkpad-acpi: do not arm fan watchdog if it would not work
    ACPI: thinkpad-acpi: add a fan-control feature master toggle
    ...

    Linus Torvalds
     

28 Apr, 2007

1 commit

  • This patch (as867) adds an entry for the new power/autosuspend
    attribute in Documentation/ABI/testing, and it changes the behavior of
    the delay value. Now a delay of 0 means to autosuspend as soon as
    possible, and negative values will prevent autosuspend.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

25 Apr, 2007

1 commit


31 Mar, 2007

1 commit


24 Mar, 2007

2 commits

  • Needed for any architecture that claims ARCH_APICTIMER_STOPS_ON_C3,
    not just i386.

    I'm hoping Thomas will clean this up a bit later..

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • It turned out that it is almost impossible to trust ACPI, BIOS & Co.
    regarding the C states. This was the reason to switch the local apic
    timer off in C2 state already. OTOH there are sane and well behaving
    systems, which get punished by that decision.

    Allow the user to confirm that the local apic timer is trustworthy in C2
    state. This keeps the default behaviour on the safe side.

    Signed-off-by: Thomas Gleixner
    Acked-by: Ingo Molnar
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

23 Mar, 2007

2 commits

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    ACPI: IA64: fix %ll build warnings
    ACPI: IA64: fix allnoconfig build
    ACPI: Only use IPI on known broken machines (AMD, Dothan/BaniasPentium M)
    ACPI: ibm-acpi: allow module to load when acpi notifiers can't be set (v2)
    ACPI: parse 2nd MADT by default
    ACPICA: revert "acpi_serialize" changes
    sony-laptop: MAINTAINERS fix entry, add L: and W:
    ACPI: resolve HP nx6125 S3 immediate wakeup regression
    ACPI: Add support to parse 2nd MADT

    Linus Torvalds
     
  • The local APIC timer stops to work in deeper C-States. This is handled by
    the ACPI code and a broadcast mechanism in the clockevents / tick managment
    code.

    Some systems do not expose the deeper C-States to the kernel, but switch
    into deeper C-States behind the kernels back. This delays the local apic
    timer interrupts for ever and makes the systems unusable.

    Add a command line option to disable the local apic timer and a dmi
    quirk for known broken systems.

    Andi sayeth:

    While not wrong by itself i think it is still better to use some heuristic
    -- like "has battery in ACPI" With the DMI table if the problem is more wide
    spread we will just continue extending it.

    But anyways should be ok now for .21 although I'm not really happy with
    it.

    Signed-off-by: Thomas Gleixner
    Acked-by: Ingo Molnar
    Cc: john stultz
    Grudgingly-acked-by: Andi Kleen
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

15 Mar, 2007

1 commit


11 Mar, 2007

1 commit

  • When a BIOS bug presents multiple APIC/MADTs,
    Linux currently uses the 1st and ignores the 2nd.

    But some machines work better if we use the 2nd.

    http://bugzilla.kernel.org/show_bug.cgi?id=7465

    Add a warning and boot parameter "acpi_apic_instance=2"
    to allow parsing the 2nd.

    No change to default behaviour in this patch.

    Signed-off-by: Len Brown

    Len Brown
     

10 Mar, 2007

1 commit


08 Mar, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Kill off I/O cruft for R7780RP.
    sh: Revert lazy dcache writeback changes.
    sh: Enable SM501 support for RTS7751R2D.
    sh: Use L1_CACHE_BYTES for .data.cacheline_aligned.
    sysctl: Support vdso_enabled sysctl on SH.
    sh: Fix kernel thread stack corruption with preempt.
    doc: Add SH to vdso and earlyprintk in kernel-parameters.txt
    sh: Fix sigmask trampling in signal delivery.
    sh: Clear UBC when not in use.

    Linus Torvalds
     

07 Mar, 2007

2 commits

  • Signed-off-by: Bernhard Walle
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Bernhard Walle
     
  • Provide a module param "pool_mode" for sunrpc.ko which allows a sysadmin to
    choose the mode for mapping NFS thread service pools to CPUs. Values are:

    auto choose a mapping mode heuristically
    global (default, same as the pre-2.6.19 code) a single global pool
    percpu one pool per CPU
    pernode one pool per NUMA node

    Note that since 2.6.19 the hardcoded behaviour has been "auto", this patch
    makes the default "global".

    The pool mode can be changed after boot/modprobe using /sys, if the NFS and
    lockd services have been shut down. A useful side effect of this change is to
    fix a small memory leak when unloading the module.

    Signed-off-by: Greg Banks
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Greg Banks
     

05 Mar, 2007

1 commit


24 Feb, 2007

1 commit

  • This patch (as859) makes the default USB autosuspend delay a module
    parameter of usbcore. By setting the delay value at boot time, users
    will be able to prevent the system from autosuspending devices which
    for some reason can't handle it.

    The patch also stores the autosuspend delay as a per-device value. A
    later patch will allow the user to change the value, tailoring the
    delay for each individual device. A delay value of 0 will prevent
    autosuspend.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

20 Feb, 2007

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (25 commits)
    Documentation/kernel-docs.txt update.
    arch/cris: typo in KERN_INFO
    Storage class should be before const qualifier
    kernel/printk.c: comment fix
    update I/O sched Kconfig help texts - CFQ is now default, not AS.
    Remove duplicate listing of Cris arch from README
    kbuild: more doc. cleanups
    doc: make doc. for maxcpus= more visible
    drivers/net/eexpress.c: remove duplicate comment
    add a help text for BLK_DEV_GENERIC
    correct a dead URL in the IP_MULTICAST help text
    fix the BAYCOM_SER_HDX help text
    fix SCSI_SCAN_ASYNC help text
    trivial documentation patch for platform.txt
    Fix typos concerning hierarchy
    Fix comment typo "spin_lock_irqrestore".
    Fix misspellings of "agressive".
    drivers/scsi/a100u2w.c: trivial typo patch
    Correct trivial typo in log2.h.
    Remove useless FIND_FIRST_BIT() macro from cardbus.c.
    ...

    Linus Torvalds
     
  • * 'acpi' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    [PATCH] libata: wrong sizeof for BUFFER
    [PATCH] libata: change order of _SDD/_GTF execution (resend #3)
    [PATCH] libata: ACPI _SDD support
    [PATCH] libata: ACPI and _GTF support

    Linus Torvalds
     

18 Feb, 2007

1 commit


17 Feb, 2007

4 commits

  • CARDBUS_MEM_SIZE was increased to 64MB on 2.6.20-rc2, but larger size might
    result in allocation failure for the reserving itself on some platforms
    (for example typical 32bit MIPS). Make it (and CARDBUS_IO_SIZE too)
    customizable by "pci=" option for such platforms.

    Signed-off-by: Atsushi Nemoto
    Cc: Daniel Ritz
    Cc: Ralf Baechle
    Cc: Ivan Kokshaysky
    Cc: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Atsushi Nemoto
     
  • _GTF is an acpi method that is used to reinitialize the drive. It returns
    a task file containing ata commands that are sent back to the drive to restore
    it to boot up defaults.

    Signed-off-by: Kristen Carlson Accardi
    Signed-off-by: Jeff Garzik
    (cherry picked from 9c69cab24b51a89664f4c0dfaf8a436d32117624 commit)

    Kristen Carlson Accardi
     
  • Implement high resolution timers on top of the hrtimers infrastructure and the
    clockevents / tick-management framework. This provides accurate timers for
    all hrtimer subsystem users.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Cc: john stultz
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     
  • With Ingo Molnar

    Add functions to provide dynamic ticks and high resolution timers. The code
    which keeps track of jiffies and handles the long idle periods is shared
    between tick based and high resolution timer based dynticks. The dyntick
    functionality can be disabled on the kernel commandline. Provide also the
    infrastructure to support high resolution timers.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Cc: john stultz
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

13 Feb, 2007

2 commits

  • Sometimes developers need to see more object code in an oops report,
    e.g. when kernel may be corrupted at runtime.

    Add the "code_bytes" option for this.

    Signed-off-by: Chuck Ebbert
    Signed-off-by: Andi Kleen
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton

    Chuck Ebbert
     
  • - add SWIOTLB config help text
    - mention Documentation/x86_64/boot-options.txt in
    Documentation/kernel-parameters.txt
    - remove the duplication of the iommu kernel parameter documentation.
    - Better explanation of some of the iommu kernel parameter options.
    - "32MB<
    Signed-off-by: Andi Kleen
    Acked-by: Muli Ben-Yehuda
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton

    Karsten Weiss
     

12 Feb, 2007

1 commit

  • Add retain_initrd option to control freeing of initrd memory after
    extraction. By default, free memory as previously.

    The first boot will need to hold a copy of the in memory fs for the second
    boot. This image can be large (much larger than the kernel), hence we can
    save time when the memory loader is slow. Also, it reduces the memory
    footprint while extracting the first boot since you don't need another copy
    of the fs.

    Signed-off-by: Michael Neuling
    Cc: "Randy.Dunlap"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Neuling
     

21 Dec, 2006

1 commit

  • Certain boards seem to like to issue false overcurrent notifications,
    for example on ports that don't have anything connected to them. This
    looks like a hardware error, at the level of noise to those ports'
    overcurrent input signals (or non-debounced VBUS comparators). This
    surfaces to users as truly massive amounts of syslog spam from khubd
    (which is appropriate for real hardware problems, except for the
    volume from multiple ports).

    Using this new "ignore_oc" flag helps such systems work more sanely,
    by preventing such indications from getting to khubd (and spamming
    syslog). The downside is of course that true overcurrent errors will
    be masked; they'll appear as spontaneous disconnects, without the
    diagnostics that will let users troubleshoot issues like
    short-circuited cables. In addition, controllers with no devices
    attached will be forced to poll for new devices rather than relying on
    interrupts, since each overcurrent event would generate a new
    interrupt.

    This patch (as826) is essentially a copy of David Brownell's ignore_oc
    patch for ehci-hcd, ported to uhci-hcd.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

14 Dec, 2006

1 commit

  • Most distributions enable sysrq support but set it to 0 by default. Add a
    sysrq_always_enabled boot option to always-enable sysrq keys. Useful for
    debugging - without having to modify the disribution's config files (which
    might not be possible if the kernel is on a live CD, etc.).

    Also, while at it, clean up the sysrq interfaces.

    [bunk@stusta.de: make sysrq_always_enabled_setup() static]
    Signed-off-by: Ingo Molnar
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     

09 Dec, 2006

1 commit

  • This patch set provides some fault-injection capabilities.

    - kmalloc() failures

    - alloc_pages() failures

    - disk IO errors

    We can see what really happens if those failures happen.

    In order to enable these fault-injection capabilities:

    1. Enable relevant config options (CONFIG_FAILSLAB, CONFIG_PAGE_ALLOC,
    CONFIG_MAKE_REQUEST) and if you want to configure them via debugfs,
    enable CONFIG_FAULT_INJECTION_DEBUG_FS.

    2. Build and boot with this kernel

    3. Configure fault-injection capabilities behavior by boot option or debugfs

    - Boot option

    failslab=
    fail_page_alloc=
    fail_make_request=

    - Debugfs

    /debug/failslab/*
    /debug/fail_page_alloc/*
    /debug/fail_make_request/*

    Please refer to the Documentation/fault-injection/fault-injection.txt
    for details.

    4. See what really happens.

    Signed-off-by: Akinobu Mita
    Signed-off-by: Don Mullis
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

08 Dec, 2006

6 commits

  • * 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6: (156 commits)
    [PATCH] x86-64: Export smp_call_function_single
    [PATCH] i386: Clean up smp_tune_scheduling()
    [PATCH] unwinder: move .eh_frame to RODATA
    [PATCH] unwinder: fully support linker generated .eh_frame_hdr section
    [PATCH] x86-64: don't use set_irq_regs()
    [PATCH] x86-64: check vector in setup_ioapic_dest to verify if need setup_IO_APIC_irq
    [PATCH] x86-64: Make ix86 default to HIGHMEM4G instead of NOHIGHMEM
    [PATCH] i386: replace kmalloc+memset with kzalloc
    [PATCH] x86-64: remove remaining pc98 code
    [PATCH] x86-64: remove unused variable
    [PATCH] x86-64: Fix constraints in atomic_add_return()
    [PATCH] x86-64: fix asm constraints in i386 atomic_add_return
    [PATCH] x86-64: Correct documentation for bzImage protocol v2.05
    [PATCH] x86-64: replace kmalloc+memset with kzalloc in MTRR code
    [PATCH] x86-64: Fix numaq build error
    [PATCH] x86-64: include/asm-x86_64/cpufeature.h isn't a userspace header
    [PATCH] unwinder: Add debugging output to the Dwarf2 unwinder
    [PATCH] x86-64: Clarify error message in GART code
    [PATCH] x86-64: Fix interrupt race in idle callback (3rd try)
    [PATCH] x86-64: Remove unwind stack pointer alignment forcing again
    ...

    Fixed conflict in include/linux/uaccess.h manually

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Sometimes the kernel prints something interesting while userspace bootup
    keeps messages turned off via loglevel. Enable the printing of /all/
    kernel messages via the "ignore_loglevel" boot option. Off by default.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • Implement prof=sleep profiling. TASK_UNINTERRUPTIBLE sleeps will be taken
    as a profile hit, and every millisecond spent sleeping causes a profile-hit
    for the call site that initiated the sleep.

    Sample readprofile output on i386:

    306 ps2_sendbyte 1.3973
    432 call_usermodehelper_keys 1.9548
    484 ps2_command 0.6453
    790 __driver_attach 4.7879
    1593 msleep 44.2500
    3976 sync_buffer 64.1290
    4076 do_lookup 12.4648
    8587 sync_page 122.6714
    20820 total 0.0067

    (NOTE: architectures need to check whether get_wchan() can be called from
    deep within the wakeup path.)

    akpm: we need to mark more functions __sched. lock_sock(), msleep(), others..

    akpm: the contention in do_lookup() is a surprise. Presumably doing disk
    reads for directory contents while holding i_mutex.

    [akpm@osdl.org: various fixes]
    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • This allows a hyphenated range of positive numbers in the string passed
    to command line helper function, get_options.

    Currently the command line option "isolcpus=" takes as its argument a
    list of cpus.

    Format: ,...,
    Valid values of include all cpus, 0 to "number of CPUs in
    system - 1". This can get extremely long when isolating the majority of
    cpus on a large system. The kernel isolcpus code would not need any
    changing to use this feature. To use it, the change would be in the
    command line format for 'isolcpus='
    Format:
    ,...,
    or
    - (must be a positive range in ascending
    order.)
    or a mixture
    ,...,-

    Signed-off-by: Derek Fults
    Cc: "Randy.Dunlap"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Derek Fults
     
  • Document the "resume_offset=" command line parameter as well as the way in
    which swap files are supported by swsusp.

    Signed-off-by: Rafael J. Wysocki
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • When using numa=fake on non-NUMA hardware there is no benefit to having the
    alien caches, and they consume much memory.

    Add a kernel boot option to disable them.

    Christoph sayeth "This is good to have even on large NUMA. The problem is
    that the alien caches grow by the square of the size of the system in terms of
    nodes."

    Cc: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Manfred Spraul
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Menage
     

07 Dec, 2006

1 commit