07 May, 2009

2 commits

  • Change last "i386" to X86-32 as is used throughout the rest of the file.
    Change combination of X86-32,X86-64 to just X86, as is done throughout the
    rest of the file.

    Add a note that hyphens and underscores are equivalent in parameter names,
    with examples.

    Signed-off-by: Randy Dunlap
    Cc: Jan Engelhardt
    Cc: Christopher Sylvain
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • kernel boot parameter `hashdist' now defaults on for all 64bit NUMA.

    Signed-off-by: Hugh Dickins
    Acked-by: Mel Gorman
    Acked-by: David S. Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     

06 May, 2009

1 commit


03 May, 2009

5 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: document the multi-touch (MT) protocol
    Input: add detailed multi-touch finger data report protocol
    Input: allow certain EV_ABS events to bypass all filtering
    Input: bcm5974 - add documentation for the driver
    Input: bcm5974 - augment debug information
    Input: bcm5974 - Add support for the Macbook 5 (Unibody)
    Input: bcm5974 - add quad-finger tapping
    Input: bcm5974 - prepare for a new trackpad header type
    Input: appletouch - fix DMA to/from stack buffer
    Input: wacom - fix TabletPC touch bug
    Input: lifebook - add DMI entry for Fujitsu B-2130
    Input: ALPS - add signature for Toshiba Satellite Pro M10
    Input: elantech - make sure touchpad is really in absolute mode
    Input: elantech - provide a workaround for jumpy cursor on firmware 2.34
    Input: ucb1400 - use disable_irq_nosync() in irq handler
    Input: tsc2007 - use disable_irq_nosync() in irq handler
    Input: sa1111ps2 - use disable_irq_nosync() in irq handlers
    Input: omap-keypad - use disable_irq_nosync() in irq handler

    Linus Torvalds
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
    kbuild, modpost: Check the section flags, to catch missing "ax"/"aw"
    kbuild: fix comment in modpost.c
    kbuild: fix scripts/setlocalversion with git
    kbuild: fix Module.markers permission error under cygwin
    docs: also clean index.html
    kbuild: remove a tag file before it is regenerated
    kbuild: "make prepare" should be "make modules_prepare"
    kbuild: clean Module.markers and modules.order for out-of-tree modules
    avr32: drop unused CLEAN_FILES

    Linus Torvalds
     
  • Avoid setting less than two pages for vm_dirty_bytes: this is necessary to
    avoid potential division by 0 (like the following) in get_dirty_limits().

    [ 49.951610] divide error: 0000 [#1] PREEMPT SMP
    [ 49.952195] last sysfs file: /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/uevent
    [ 49.952195] CPU 1
    [ 49.952195] Modules linked in: pcspkr
    [ 49.952195] Pid: 3064, comm: dd Not tainted 2.6.30-rc3 #1
    [ 49.952195] RIP: 0010:[] [] get_dirty_limits+0xe9/0x2c0
    [ 49.952195] RSP: 0018:ffff88001de03a98 EFLAGS: 00010202
    [ 49.952195] RAX: 00000000000000c0 RBX: ffff88001de03b80 RCX: 28f5c28f5c28f5c3
    [ 49.952195] RDX: 0000000000000000 RSI: 00000000000000c0 RDI: 0000000000000000
    [ 49.952195] RBP: ffff88001de03ae8 R08: 0000000000000000 R09: 0000000000000000
    [ 49.952195] R10: ffff88001ddda9a0 R11: 0000000000000001 R12: 0000000000000001
    [ 49.952195] R13: ffff88001fbc8218 R14: ffff88001de03b70 R15: ffff88001de03b78
    [ 49.952195] FS: 00007fe9a435b6f0(0000) GS:ffff8800025d9000(0000) knlGS:0000000000000000
    [ 49.952195] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [ 49.952195] CR2: 00007fe9a39ab000 CR3: 000000001de38000 CR4: 00000000000006e0
    [ 49.952195] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    [ 49.952195] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    [ 49.952195] Process dd (pid: 3064, threadinfo ffff88001de02000, task ffff88001ddda250)
    [ 49.952195] Stack:
    [ 49.952195] ffff88001fa0de00 ffff88001f2dbd70 ffff88001f9fe800 000080b900000000
    [ 49.952195] 00000000000000c0 ffff8800027a6100 0000000000000400 ffff88001fbc8218
    [ 49.952195] 0000000000000000 0000000000000600 ffff88001de03bb8 ffffffff802d3ed7
    [ 49.952195] Call Trace:
    [ 49.952195] [] balance_dirty_pages_ratelimited_nr+0x1d7/0x3f0
    [ 49.952195] [] ? ext3_writeback_write_end+0x9e/0x120
    [ 49.952195] [] generic_file_buffered_write+0x12f/0x330
    [ 49.952195] [] __generic_file_aio_write_nolock+0x26d/0x460
    [ 49.952195] [] ? generic_file_aio_write+0x52/0xd0
    [ 49.952195] [] generic_file_aio_write+0x69/0xd0
    [ 49.952195] [] ext3_file_write+0x26/0xc0
    [ 49.952195] [] do_sync_write+0xf1/0x140
    [ 49.952195] [] ? get_lock_stats+0x2a/0x60
    [ 49.952195] [] ? autoremove_wake_function+0x0/0x40
    [ 49.952195] [] vfs_write+0xcb/0x190
    [ 49.952195] [] sys_write+0x50/0x90
    [ 49.952195] [] system_call_fastpath+0x16/0x1b
    [ 49.952195] Code: 00 00 00 2b 05 09 1c 17 01 48 89 c6 49 0f af f4 48 c1 ee 02 48 89 f0 48 f7 e1 48 89 d6 31 d2 48 c1 ee 02 48 0f af 75 d0 48 89 f0 f7 f7 41 8b 95 ac 01 00 00 48 89 c7 49 0f af d4 48 c1 ea 02
    [ 49.952195] RIP [] get_dirty_limits+0xe9/0x2c0
    [ 49.952195] RSP
    [ 50.096523] ---[ end trace 008d7aa02f244d7b ]---

    Signed-off-by: Andrea Righi
    Cc: Peter Zijlstra
    Cc: David Rientjes
    Cc: Dave Chinner
    Cc: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Righi
     
  • scripts/kernel-doc can (incorrectly) delete struct members that are
    surrounded by /* ... */ /* ... */ if there is a /*
    private: */ comment in there somewhere also.

    Fix that by making the "/* private:" only allow whitespace between /* and
    "private:", not anything/everything in the world.

    This fixes some erroneous kernel-doc warnings that popped up while
    processing include/linux/usb/composite.h.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Change page_mkwrite to allow implementations to return with the page
    locked, and also change it's callers (in page fault paths) to hold the
    lock until the page is marked dirty. This allows the filesystem to have
    full control of page dirtying events coming from the VM.

    Rather than simply hold the page locked over the page_mkwrite call, we
    call page_mkwrite with the page unlocked and allow callers to return with
    it locked, so filesystems can avoid LOR conditions with page lock.

    The problem with the current scheme is this: a filesystem that wants to
    associate some metadata with a page as long as the page is dirty, will
    perform this manipulation in its ->page_mkwrite. It currently then must
    return with the page unlocked and may not hold any other locks (according
    to existing page_mkwrite convention).

    In this window, the VM could write out the page, clearing page-dirty. The
    filesystem has no good way to detect that a dirty pte is about to be
    attached, so it will happily write out the page, at which point, the
    filesystem may manipulate the metadata to reflect that the page is no
    longer dirty.

    It is not always possible to perform the required metadata manipulation in
    ->set_page_dirty, because that function cannot block or fail. The
    filesystem may need to allocate some data structure, for example.

    And the VM cannot mark the pte dirty before page_mkwrite, because
    page_mkwrite is allowed to fail, so we must not allow any window where the
    page could be written to if page_mkwrite does fail.

    This solution of holding the page locked over the 3 critical operations
    (page_mkwrite, setting the pte dirty, and finally setting the page dirty)
    closes out races nicely, preventing page cleaning for writeout being
    initiated in that window. This provides the filesystem with a strong
    synchronisation against the VM here.

    - Sage needs this race closed for ceph filesystem.
    - Trond for NFS (http://bugzilla.kernel.org/show_bug.cgi?id=12913).
    - I need it for fsblock.
    - I suspect other filesystems may need it too (eg. btrfs).
    - I have converted buffer.c to the new locking. Even simple block allocation
    under dirty pages might be susceptible to i_size changing under partial page
    at the end of file (we also have a buffer.c-side problem here, but it cannot
    be fixed properly without this patch).
    - Other filesystems (eg. NFS, maybe btrfs) will need to change their
    page_mkwrite functions themselves.

    [ This also moves page_mkwrite another step closer to fault, which should
    eventually allow page_mkwrite to be moved into ->fault, and thus avoiding a
    filesystem calldown and page lock/unlock cycle in __do_fault. ]

    [akpm@linux-foundation.org: fix derefs of NULL ->mapping]
    Cc: Sage Weil
    Cc: Trond Myklebust
    Signed-off-by: Nick Piggin
    Cc: Valdis Kletnieks
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nick Piggin
     

01 May, 2009

2 commits


29 Apr, 2009

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
    e100: do not go D3 in shutdown unless system is powering off
    netfilter: revised locking for x_tables
    Bluetooth: Fix connection establishment with low security requirement
    Bluetooth: Add different pairing timeout for Legacy Pairing
    Bluetooth: Ensure that HCI sysfs add/del is preempt safe
    net: Avoid extra wakeups of threads blocked in wait_for_packet()
    net: Fix typo in net_device_ops description.
    ipv4: Limit size of route cache hash table
    Add reference to CAPI 2.0 standard
    Documentation/isdn/INTERFACE.CAPI
    update Documentation/isdn/00-INDEX
    ixgbe: Fix WoL functionality for 82599 KX4 devices
    veth: prevent oops caused by netdev destructor
    xfrm: wrong hash value for temporary SA
    forcedeth: tx timeout fix
    net: Fix LL_MAX_HEADER for CONFIG_TR_MODULE
    mlx4_en: Handle page allocation failure during receive
    mlx4_en: Fix cleanup flow on cq activation
    vlan: update vlan carrier state for admin up/down
    netfilter: xt_recent: fix stack overread in compat code
    ...

    Linus Torvalds
     
  • This patch adds documentation for the bcm5974 to Documentation/input/.

    Signed-off-by: Henrik Rydberg
    Signed-off-by: Dmitry Torokhov

    Henrik Rydberg
     

28 Apr, 2009

2 commits

  • This reverts commit 8032b526d1a3bd91ad633dd3a3b5fdbc47ad54f1.

    Hey, it was only meant to be a single release. Now they can all die as
    far as I'm concerned.

    [ Just kidding. They're cute and cuddly.

    Except when they have horrible nasty facial diseases. Oh, and I guess
    they're not actually that cuddly even when disease-free. ]

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: only save/restore existent registers in the PCIe capability
    x86/PCI: don't bother with root quirks if _CRS is used
    docbooks: add/fix PCI kernel-doc
    PCI: cleanup debug output resources
    x86/PCI: set_pci_bus_resources_arch_default cleanups
    x86/PCI: Move set_pci_bus_resources_arch_default into arch/x86
    x86/PCI: don't call e820_all_mapped with -1 in the mmconfig case
    PCI quirk: disable MSI on VIA VT3364 chipsets

    Linus Torvalds
     

27 Apr, 2009

5 commits

  • Move the entry about CAPI 2.0 to the beginning and add a URL.
    Incorporate changes suggested by Randy Dunlap, thanks for proofreading.

    Signed-off-by: Karsten Keil
    Signed-off-by: David S. Miller

    Karsten Keil
     
  • isdn: document Kernel CAPI driver interface

    Create a file Documentation/isdn/INTERFACE.CAPI describing the
    interface between the kernel CAPI subsystem and ISDN device drivers,
    analogous to the existing Documentation/isdn/INTERFACE for the old
    isdn4linux subsystem. Also add kerneldoc comments to the exported
    functions in drivers/isdn/capi/kcapi.c.

    Impact: Documentation
    Signed-off-by: Tilman Schmidt
    Signed-off-by: Karsten Keil
    Signed-off-by: David S. Miller

    Tilman Schmidt
     
  • After the merging of mISDN, state which files refer only to the
    old isdn4linux subsystem. Also add a few missing files.

    Signed-off-by: Tilman Schmidt
    Signed-off-by: Karsten Keil
    Signed-off-by: David S. Miller

    Tilman Schmidt
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, hpet: Stop soliciting hpet=force users on ICH4M
    x86: check boundary in setup_node_bootmem()
    uv_time: add parameter to uv_read_rtc()
    x86: hpet: fix periodic mode programming on AMD 81xx
    x86: more than 8 32-bit CPUs requires X86_BIGSMP
    x86: avoid theoretical spurious NMI backtraces with CONFIG_CPUMASK_OFFSTACK=y
    x86: fix boot crash in NMI watchdog with CONFIG_CPUMASK_OFFSTACK=y and flat APIC
    x86-64: fix FPU corruption with signals and preemption
    x86/uv: fix for no memory at paddr 0
    docs, x86: add nox2apic back to kernel-parameters.txt
    x86: mm/numa_32.c calculate_numa_remap_pages should use __init
    x86, kbuild: make "make install" not depend on vmlinux
    x86/uv: fix init of cpu-less nodes
    x86/uv: fix init of memory-less nodes

    Linus Torvalds
     
  • From source code of get_usage_char(), the previous note is not correct,
    so fix it.

    static char get_usage_char(struct lock_class *class, enum lock_usage_bit bit)
    {
    char c = '.';

    if (class->usage_mask & lock_flag(bit + 2))/*LOCK_ENABLED_##STATE*/
    c = '+';
    if (class->usage_mask & lock_flag(bit)) {/*LOCK_USED_IN_##STATE*/
    c = '-';
    if (class->usage_mask & lock_flag(bit + 2))
    c = '?';
    }

    return c;
    }

    note:

    1) The 'bit' parameter always is passed as LOCK_USED_IN_##STATE
    or LOCK_USED_IN_##STATE_READ , from get_usage_chars().

    Signed-off-by: Ming Lei
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Ming Lei
     

25 Apr, 2009

1 commit


24 Apr, 2009

4 commits

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (34 commits)
    ACPI, i915: Register ACPI video even when not modesetting
    Revert "ACPICA: delete check for AML access to port 0x81-83"
    I/O port protection: update for windows compatibility.
    sony-laptop: always try to unblock rfkill on load
    sony-laptop: fix bogus error message display on resume
    ACPI: EC: Fix ACPI EC resume non-query interrupt message
    sony-laptop: SNC input event 38 fix
    sony-laptop: SNC 127 Initialization Fix
    sony-laptop: Duplicate SNC 127 Event Fix
    ACPI: prevent processor.max_cstate=0 boot crash
    ACPI/hpet: prevent boot hang when hpet=force used on ICH-4M
    ACPI: delete obsolete "bus master activity" proc field
    ACPI: idle: mark_tsc_unstable() at init-time, not run-time
    ACPI: add /sys/firmware/acpi/interrupts/sci_not counter
    ACPI video: fix an error when the brightness levels on AC and on Battery are same
    acpi-cpufreq: Do not let get_measured perf depend on internal variable
    acpi-cpufreq: style-only: add parens to math expression
    acpi-cpufreq: Cleanup: Use printk_once
    x86, acpi_cpufreq: Fix the NULL pointer dereference in get_measured_perf
    thinkpad-acpi: bump up version to 0.23
    ...

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    powerpc: Fix modular build of ide-pmac when mediabay is built in
    powerpc/pasemi: Fix build error on UP
    powerpc: Make macintosh/mediabay driver depend on CONFIG_BLOCK
    maintainers: Fix PS3 patterns
    powerpc/ps3: Fix CONFIG_PS3_FLASH=n build warning
    powerpc/32: Don't clobber personality flags on exec
    powerpc: Fix crash on CPU hotplug
    powerpc/85xx: Remove defconfigs that mpc85xx_{smp_}defconfig cover
    powerpc/85xx: Added SMP defconfig
    powerpc/85xx: Enabled a bunch of FSL specific drivers/options
    powerpc/85xx: Updated generic mpc85xx_defconfig
    powerpc: don't disable SATA interrupts on Freescale MPC8610 HPCD
    fsl_rio: Pass the proper device to dma mapping routines
    powerpc: Fix of_node_put() exit path in of_irq_map_one()
    powerpc/5200: defconfig updates
    powerpc/5200: Add FLASH nodes to lite5200 device tree
    powerpc/device-tree: Document MTD nodes with multiple "reg" tuples
    powerpc/of-device-tree: Factor MTD physmap bindings out of booting-without-of
    powerpc/5200: Bring the legacy fsl_spi_platform_data hooks back

    Linus Torvalds
     
  • Len Brown
     
  • Len Brown
     

23 Apr, 2009

1 commit


22 Apr, 2009

3 commits


21 Apr, 2009

3 commits


20 Apr, 2009

1 commit


19 Apr, 2009

4 commits

  • Robert noted that we don't actually document that lguest is 32-bit only,
    nor that PAE must be off (CONFIG_PAE is now prompted for if HIGHMEM is
    set to "off).

    Signed-off-by: Rusty Russell
    Cc: lguest@ozlabs.org
    Cc: "Robert P. J. Day"

    Rusty Russell
     
  • This is the example lguest launcher binary.

    Signed-off-by: Matt Kraai
    Signed-off-by: Rusty Russell

    Matt Kraai
     
  • Following patch introduce support for setting options
    to gcc that has effect for current directory and all
    subdirectories.

    The typical use case are an architecture or a subsystem that
    decide to cover all files with -Werror.
    Today alpha, mips and sparc uses -Werror in almost all their
    Makefile- with subdir-ccflag-y it is now simpler to do so
    as only the top-level directories needs to be covered.

    Likewise if we decide to cover a full subsystem such
    as net/ with -Werror this is done by adding a single
    line to net/Makefile.

    Signed-off-by: Sam Ravnborg
    Cc: Ingo Molnar
    Cc: "H. Peter Anvin"
    Cc: Thomas Gleixner

    Sam Ravnborg
     
  • Re-add missing kernel-parameters documentation that was accidentally
    deleted in commit 0cb55ad2.

    Thanks to Ingo and Weidong Han for the heads-up on this.

    Signed-off-by: Randy Dunlap
    cc: Ingo Molnar
    cc: Len Brown
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

18 Apr, 2009

4 commits

  • "nox2apic" was removed from kernel-parameters.txt by mistake, when
    entries were sorted in alpha order (commit 0cb55ad2). But this early
    parameter is still there, add it back to kernel-parameters.txt.

    [ Impact: add boot parameter description ]

    Signed-off-by: Suresh Siddha
    Signed-off-by: Weidong Han
    Cc: Randy Dunlap
    Cc: iommu@lists.linux-foundation.org
    Cc: dwmw2@infradead.org
    Cc: allen.m.kay@intel.com
    Cc: fenghua.yu@intel.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Weidong Han
     
  • Plenty of high-profile changes, so it deserves a new version number.

    Features added since 0.22:
    * Restrict unsafe LEDs
    * New race-less brightness control strategy for IBM ThinkPads
    * Disclose TGID of driver access from userspace (debug)
    * Warn when deprecated functions are used

    Other changes:
    * Better debug messages in some subdrivers
    * Removed "hotkey disable" support, since it breaks the driver
    * Dropped "ibm-acpi" alias

    Signed-off-by: Henrique de Moraes Holschuh
    Signed-off-by: Len Brown

    Henrique de Moraes Holschuh
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (43 commits)
    staging: slicoss: update README
    otus/zdusb.c: additional USB idnetifier
    Staging: go7007: fix build issues
    Staging: sxg: Fix leaks and checksum errors in transmit code path
    Staging: sxg: Fix sleep in atomic context warning while loading driver
    Staging: sxg: Use correct queue_id for transmitting non-TCP packets
    Staging: sxg: Fire watchdog timer at end of open routine to change the link
    Staging: Pohmelfs: Add load balancing between network states with the same priority.
    Staging: Pohmelfs: Added IO permissions and priorities.
    Staging: Pohmelfs: Added ->show_stats() callback.
    Staging: Pohmelfs: Drop ftrans debugging code.
    Staging: Pohmelfs: Use wait_on_page_timeout when waiting for remote directory sync instead of hardcoded 25 seconds.
    Staging: Pohmelfs: Reduce debugging noise about non-existing objects.
    Staging: Pohmelfs: Sync fs before killing it, since dentry cache is shrunk before writeback is invoked via generic_shutdown_super()
    Staging: Pohmelfs: Extend remount option.
    Staging: Pohmelfs: Set NETFS_INODE_REMOTE_SYNCED and clear NETFS_INODE_OWNED bits in the root inode.
    Staging: Pohmelfs: Added 'need_lock' variable into debug print.
    Staging: Pohmelfs: Disable read lock in pohmelfs_getattr().
    Staging: Pohmelfs: Move parent lock to the place where we really have to send a lookup request to the server.
    Staging: pohmelfs: Populate dentry cache when receiving the new readdir entry.
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    UIO: fix specific device driver missing statement for depmod
    Driver core: remove pr_fmt() from dynamic_dev_dbg() printk
    driver core: prevent device_for_each_child from oopsing
    dynamic debug: resurrect old pr_debug() semantics as pr_devel()
    Driver Core: early platform driver
    proc: mounts_poll() make consistent to mdstat_poll
    sysfs: sysfs poll keep the poll rule of regular file.
    driver core: allow non-root users to listen to uevents
    driver core: fix driver_match_device
    sysfs: don't use global workqueue in sysfs_schedule_callback()

    Linus Torvalds