29 Jun, 2009

1 commit

  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
    leds: Futher document blink_set
    leds: Add options to have GPIO LEDs start on or keep their state
    leds: LED driver for National Semiconductor LP3944 Funlight Chip
    leds: pca9532 - Indent using tabs, not spaces.
    leds: Remove an orphan Kconfig entry
    leds: Further document parameters for blink_set()
    leds: alix-leds2 fixed for Award BIOS
    leds: leds-gpio - fix a section mismatch
    leds: add the sysfs interface into the leds-bd2802 driver for changing wave pattern and led current.
    leds: change the license information
    leds: fix led-bd2802 errors while resuming

    Linus Torvalds
     

26 Jun, 2009

3 commits

  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (28 commits)
    drm: remove unused #include 's
    drm/radeon: fix driver initialization order so radeon kms can be builtin
    drm: Fix shifts which were miscalculated when converting from bitfields.
    drm/radeon: Clear surface registers at initialization time.
    drm/radeon: Don't initialize acceleration related fields of struct fb_info.
    drm/radeon: fix radeon kms framebuffer device
    drm/i915: initialize fence registers to zero when loading GEM
    drm/i915: Fix HDMI regression introduced in new chipset support
    drm/i915: fix LFP data fetch
    drm/i915: set TV detection mode when tv is already connected
    drm/i915: Catch up to obj_priv->page_list rename in disabled debug code.
    drm/i915: Fix size_t handling in off-by-default debug printfs
    drm/i915: Don't change the blank/sync width when calculating scaled modes
    drm/i915: Add support for changing LVDS panel fitting using an output property.
    drm/i915: correct suspend/resume ordering
    drm/i915: Add missing dependency on Intel AGP support.
    drm/i915: Generate 2MHz clock for display port aux channel I/O. Retry I/O.
    drm/i915: Clarify error returns from display port aux channel I/O
    drm/i915: Add CLKCFG register definition
    drm/i915: Split array of DAC limits into separate structures.
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6:
    ide cs5520: Initialize second port's interrupt number.
    ide: improve handling of Power Management requests
    ide: add QUANTUM FIREBALLct20 30 with firmware APL.090 to ivb_list[]
    ide: relax DMA info validity checking
    ide-cd: Improve "weird block size" error message
    ide-cd: Don't warn on bogus block size unless it actually matters.
    ide: fix handling of unexpected IRQs vs request_irq()

    Linus Torvalds
     
  • Currently the 4th parameter of get_user_pages() is called len, but its
    in pages, not bytes. Rename the thing to nr_pages to avoid future
    confusion.

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     

25 Jun, 2009

8 commits

  • * git://git.infradead.org/battery-2.6:
    da9030_battery: Fix race between event handler and monitor
    Add MAX17040 Fuel Gauge driver
    w1: ds2760_battery: add support for sleep mode feature
    w1: ds2760: add support for EEPROM read and write
    ds2760_battery: cleanups in ds2760_battery_probe()

    Linus Torvalds
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Markus Trippelsdorf
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm: (48 commits)
    dm mpath: change to be request based
    dm: disable interrupt when taking map_lock
    dm: do not set QUEUE_ORDERED_DRAIN if request based
    dm: enable request based option
    dm: prepare for request based option
    dm raid1: add userspace log
    dm: calculate queue limits during resume not load
    dm log: fix create_log_context to use logical_block_size of log device
    dm target:s introduce iterate devices fn
    dm table: establish queue limits by copying table limits
    dm table: replace struct io_restrictions with struct queue_limits
    dm table: validate device logical_block_size
    dm table: ensure targets are aligned to logical_block_size
    dm ioctl: support cookies for udev
    dm: sysfs add suspended attribute
    dm table: improve warning message when devices not freed before destruction
    dm mpath: add service time load balancer
    dm mpath: add queue length load balancer
    dm mpath: add start_io and nr_bytes to path selectors
    dm snapshot: use barrier when writing exception store
    ...

    Linus Torvalds
     
  • * 'audit.b63' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
    Fix rule eviction order for AUDIT_DIR
    Audit: clean up all op= output to include string quoting
    Audit: move audit_get_nd completely into audit_watch
    audit: seperate audit inode watches into a subfile
    Audit: clean up audit_receive_skb
    Audit: cleanup netlink mesg handling
    Audit: unify the printk of an skb when auditd not around
    Audit: dereferencing krule as if it were an audit_watch
    Audit: better estimation of execve record length
    Audit: fix audit watch use after free

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (72 commits)
    asus-laptop: remove EXPERIMENTAL dependency
    asus-laptop: use pr_fmt and pr_
    eeepc-laptop: cpufv updates
    eeepc-laptop: sync eeepc-laptop with asus_acpi
    asus_acpi: Deprecate in favor of asus-laptop
    acpi4asus: update MAINTAINER and KConfig links
    asus-laptop: platform dev as parent for led and backlight
    eeepc-laptop: enable camera by default
    ACPI: Rename ACPI processor device bus ID
    acerhdf: Acer Aspire One fan control
    ACPI: video: DMI workaround broken Acer 7720 BIOS enabling display brightness
    ACPI: run ACPI device hot removal in kacpi_hotplug_wq
    ACPI: Add the reference count to avoid unloading ACPI video bus twice
    ACPI: DMI to disable Vista compatibility on some Sony laptops
    ACPI: fix a deadlock in hotplug case
    Show the physical device node of backlight class device.
    ACPI: pdc init related memory leak with physical CPU hotplug
    ACPI: pci_root: remove unused dev/fn information
    ACPI: pci_root: simplify list traversals
    ACPI: pci_root: use driver data rather than list lookup
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (23 commits)
    switch xfs to generic acl caching helpers
    helpers for acl caching + switch to those
    switch shmem to inode->i_acl
    switch reiserfs to inode->i_acl
    switch reiserfs to usual conventions for caching ACLs
    reiserfs: minimal fix for ACL caching
    switch nilfs2 to inode->i_acl
    switch btrfs to inode->i_acl
    switch jffs2 to inode->i_acl
    switch jfs to inode->i_acl
    switch ext4 to inode->i_acl
    switch ext3 to inode->i_acl
    switch ext2 to inode->i_acl
    add caching of ACLs in struct inode
    fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
    cleanup __writeback_single_inode
    ... and the same for vfsmount id/mount group id
    Make allocation of anon devices cheaper
    update Documentation/filesystems/Locking
    devpts: remove module-related code
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6:
    bnx2: Fix the behavior of ethtool when ONBOOT=no
    qla3xxx: Don't sleep while holding lock.
    qla3xxx: Give the PHY time to come out of reset.
    ipv4 routing: Ensure that route cache entries are usable and reclaimable with caching is off
    net: Move rx skb_orphan call to where needed
    ipv6: Use correct data types for ICMPv6 type and code
    net: let KS8842 driver depend on HAS_IOMEM
    can: let SJA1000 driver depend on HAS_IOMEM
    netxen: fix firmware init handshake
    netxen: fix build with without CONFIG_PM
    netfilter: xt_rateest: fix comparison with self
    netfilter: xt_quota: fix incomplete initialization
    netfilter: nf_log: fix direct userspace memory access in proc handler
    netfilter: fix some sparse endianess warnings
    netfilter: nf_conntrack: fix conntrack lookup race
    netfilter: nf_conntrack: fix confirmation race condition
    netfilter: nf_conntrack: death_by_timeout() fix

    Linus Torvalds
     

24 Jun, 2009

26 commits

  • helpers: get_cached_acl(inode, type), set_cached_acl(inode, type, acl),
    forget_cached_acl(inode, type).

    ubifs/xattr.c needed includes reordered, the rest is a plain switchover.

    Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • No helpers, no conversions yet.

    Signed-off-by: Al Viro

    Al Viro
     
  • This patch adds ioctls to vfs for compatibility with legacy XFS
    pre-allocation ioctls (XFS_IOC_*RESVP*). The implementation
    effectively invokes sys_fallocate for the new ioctls.
    Also handles the compat_ioctl case.
    Note: These legacy ioctls are also implemented by OCFS2.

    [AV: folded fixes from hch]

    Signed-off-by: Ankit Jain
    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Ankit Jain
     
  • There are some broken devices that report multiple DMA xfer modes
    enabled at once (ATA spec doesn't allow it) but otherwise work fine
    with DMA so just delete ide_id_dma_bug().

    [ As discovered by detective work by Frans and Bart, due to how
    handling of the ID block was handled before commit c419993
    ("ide-iops: only clear DMA words on setting DMA mode") this
    check was always seeing zeros in the fields or other similar
    garbage. Therefore this check wasn't actually checking anything.
    Now that the tests actually check the real bits, all we see are
    devices that trigger the check yet work perfectly fine, therefore
    killing this useless check is the best thing to do. -DaveM ]

    Reported-by: Frans Pop
    Signed-off-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: David S. Miller

    Bartlomiej Zolnierkiewicz
     
  • Looks like I managed to mess up most shifts when converting from bitfields. :(

    The patch below works on my Thinkpad T500 (as well as on my PowerBook,
    where the previous change worked as well, maybe out of luck...). I'd
    appreciate more testing and eyes looking over it though.

    Signed-off-by: Michel Dänzer
    Tested-by: Michael Pyne
    Signed-off-by: Dave Airlie

    Michel Dänzer
     
  • Conflicts:
    drivers/platform/x86/eeepc-laptop.c

    Signed-off-by: Len Brown

    Len Brown
     
  • …bugzilla-13121', 'bugzilla-13396', 'bugzilla-13533', 'bugzilla-13612', 'c3_lock', 'hid-cleanups', 'misc-2.6.31', 'pdc-leak-fix', 'pnpacpi', 'power_nocheck', 'thinkpad_acpi', 'video' and 'wmi' into release

    Len Brown
     
  • A number of places in the audit system we send an op= followed by a string
    that includes spaces. Somehow this works but it's just wrong. This patch
    moves all of those that I could find to be quoted.

    Example:

    Change From: type=CONFIG_CHANGE msg=audit(1244666690.117:31): auid=0 ses=1
    subj=unconfined_u:unconfined_r:auditctl_t:s0-s0:c0.c1023 op=remove rule
    key="number2" list=4 res=0

    Change To: type=CONFIG_CHANGE msg=audit(1244666690.117:31): auid=0 ses=1
    subj=unconfined_u:unconfined_r:auditctl_t:s0-s0:c0.c1023 op="remove rule"
    key="number2" list=4 res=0

    Signed-off-by: Eric Paris

    Eric Paris
     
  • Sometimes both acpi video and i915 driver are compiled as modules.
    And there exists the strict dependency between the two drivers.
    The acpi video bus will be unloaded in course of unloading the i915 driver.
    If we unload the acpi video driver, then the kernel oops will be triggered.

    Add the reference count to avoid unloading the ACPI video bus twice.
    The reference count should be checked before unregistering the acpi video bus.
    If the reference count is already zero, it won't unregister it again.
    And after the acpi video bus is already unregistered, the reference count
    will be set to zero.

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

    Signed-off-by: Zhao Yakui
    Acked-by: Zhang Rui
    Signed-off-by: Len Brown

    Zhao Yakui
     
  • * git://git.infradead.org/iommu-2.6:
    Intel-IOMMU, intr-remap: source-id checking
    Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it
    IOMMU Identity Mapping Support (drivers/pci/intel_iommu.c)

    Linus Torvalds
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2:
    ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define.
    ocfs2: Add lockdep annotations
    vfs: Set special lockdep map for dirs only if not set by fs
    ocfs2: Disable orphan scanning for local and hard-ro mounts
    ocfs2: Do not initialize lvb in ocfs2_orphan_scan_lock_res_init()
    ocfs2: Stop orphan scan as early as possible during umount
    ocfs2: Fix ocfs2_osb_dump()
    ocfs2: Pin journal head before accessing jh->b_committed_data
    ocfs2: Update atime in splice read if necessary.
    ocfs2: Provide the ocfs2_dlm_lvb_valid() stack API.

    Linus Torvalds
     
  • In order to get the tun driver to account packets, we need to be
    able to receive packets with destructors set. To be on the safe
    side, I added an skb_orphan call for all protocols by default since
    some of them (IP in particular) cannot handle receiving packets
    destructors properly.

    Now it seems that at least one protocol (CAN) expects to be able
    to pass skb->sk through the rx path without getting clobbered.

    So this patch attempts to fix this properly by moving the skb_orphan
    call to where it's actually needed. In particular, I've added it
    to skb_set_owner_[rw] which is what most users of skb->destructor
    call.

    This is actually an improvement for tun too since it means that
    we only give back the amount charged to the socket when the skb
    is passed to another socket that will also be charged accordingly.

    Signed-off-by: Herbert Xu
    Tested-by: Oliver Hartkopp
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • To support domain-isolation usages, the platform hardware must be
    capable of uniquely identifying the requestor (source-id) for each
    interrupt message. Without source-id checking for interrupt remapping
    , a rouge guest/VM with assigned devices can launch interrupt attacks
    to bring down anothe guest/VM or the VMM itself.

    This patch adds source-id checking for interrupt remapping, and then
    really isolates interrupts for guests/VMs with assigned devices.

    Because PCI subsystem is not initialized yet when set up IOAPIC
    entries, use read_pci_config_byte to access PCI config space directly.

    Signed-off-by: Weidong Han
    Signed-off-by: David Woodhouse

    Weidong Han
     
  • After the recent changes that went into mm/vmscan.c to overhaul stuff, we
    ended up with these warnings on no-mmu systems:

    mm/vmscan.c: In function `shrink_page_list':
    mm/vmscan.c:580: warning: unused variable `vm_flags'
    mm/vmscan.c: In function `shrink_active_list':
    mm/vmscan.c:1294: warning: `vm_flags' may be used uninitialized in this function
    mm/vmscan.c:1242: note: `vm_flags' was declared here

    This is because the no-mmu function defines page_referenced() to work on
    the first argument only (the page). It does not clear the vm_flags given
    to it because for no-mmu systems, they never actually get utilized. Since
    that is no longer strictly true, we need to set vm_flags to 0 like
    everyone else so gcc can do proper dead code elimination without annoying
    us with unused warnings.

    Signed-off-by: Mike Frysinger
    Cc: David Howells
    Acked-by: David McCullough
    Cc: Greg Ungerer
    Cc: Paul Mundt
    Cc: Wu Fengguang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • If a kthread happens to use get_user_pages() on an mm (as KSM does),
    there's a chance that it will end up trying to read in a swap page, then
    oops in grab_swap_token() because the kthread has no mm: GUP passes down
    the right mm, so grab_swap_token() ought to be using it.

    We have not identified a stronger case than KSM's daemon (not yet in
    mainline), but the issue must have come up before, since RHEL has included
    a fix for this for years (though a different fix, they just back out of
    grab_swap_token if current->mm is unset: which is what we first proposed,
    but using the right mm here seems more correct).

    Reported-by: Izik Eidus
    Signed-off-by: Johannes Weiner
    Signed-off-by: Hugh Dickins
    Acked-by: Rik van Riel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • Futher document blink_set function pointer

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • There already is a "default-on" trigger but there are problems with it.

    For one, it's a inefficient way to do it and requires led trigger support
    to be compiled in.

    But the real reason is that is produces a glitch on the LED. The GPIO is
    allocate with the LED *off*, then *later* when the trigger runs it is
    turned back on. If the LED was already on via the GPIO's reset default or
    action of the firmware, this produces a glitch where the LED goes from on
    to off to on. While normally this is fast enough that it wouldn't be
    noticeable to a human observer, there are still serious problems.

    One is that there may be something else on the GPIO line, like a hardware
    alarm or watchdog, that is fast enough to notice the glitch.

    Another is that the kernel may panic before the LED is turned back on, thus
    hanging with the LED in the wrong state. This is not just speculation, but
    actually happened to me with an embedded system that has an LED which
    should turn off when the kernel finishes booting, which was left in the
    incorrect state due to a bug in the OF LED binding code.

    We also let GPIO LEDs get their initial value from whatever the current
    state of the GPIO line is. On some systems the LEDs are put into some
    state by the firmware or hardware before Linux boots, and it is desired to
    have them keep this state which is otherwise unknown to Linux.

    This requires that the underlying GPIO driver support reading the value of
    output GPIOs. Some drivers support this and some do not.

    The platform device binding gains a field in the platform data
    "default_state" that controls this. There are three constants defined to
    select from on, off, or keeping the current state. The OpenFirmware
    binding uses a property named "default-state" that can be set to "on",
    "off", or "keep". The default if the property isn't present is off.

    Signed-off-by: Trent Piepho
    Acked-by: Grant Likely
    Acked-by: Wolfram Sang
    Acked-by: Sean MacLennan
    Signed-off-by: Richard Purdie

    Trent Piepho
     
  • LEDs driver for National Semiconductor LP3944 Funlight Chip
    http://www.national.com/pf/LP/LP3944.html

    This helper chip can drive up to 8 leds, with two programmable DIM
    modes; it could even be used as a gpio expander but this driver assumes
    it is used as a led controller.

    The DIM modes are used to set _blink_ patterns for leds, the pattern is
    specified supplying two parameters:
    - period: from 0s to 1.6s
    - duty cycle: percentage of the period the led is on, from 0 to 100

    LP3944 can be found on Motorola A910 smartphone, where it drives the rgb
    leds, the camera flash light and the displays backlights.

    Signed-off-by: Antonio Ospite
    Signed-off-by: Richard Purdie

    Antonio Ospite
     
  • The documentation for the parameters of blink_set() was a bit hard
    to find so put some where I'd expected to find it.

    Signed-off-by: Mark Brown
    Signed-off-by: Richard Purdie

    Mark Brown
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (38 commits)
    fusion: mptsas, fix lock imbalance
    [SCSI] scsi_transport_fc: replace BUS_ID_SIZE by fixed count
    sd, sr: fix Driver 'sd' needs updating message
    scsi_transport_iscsi: return -EOVERFLOW for Too many iscsi targets
    fc_transport: Selective return value from BSG timeout function
    fc_transport: The softirq_done function registration for BSG request
    sym53c8xx: ratelimit parity errors
    explain the hidden scsi_wait_scan Kconfig variable
    ibmvfc: Fix endless PRLI loop in discovery
    ibmvfc: Process async events before command responses
    libfc: Add runtime debugging with debug_logging module parameter
    libfcoe: Add runtime debugging with module param debug_logging
    fcoe: Add runtime debug logging with module parameter debug_logging
    scsi_debug: Add support for physical block exponent and alignment
    cnic: add NETDEV_1000 and NETDEVICES to Kconfig select
    cnic: Fix __symbol_get() build error.
    Revert "[SCSI] cnic: fix error: implicit declaration of function ‘__symbol_get’"
    ipr: differentiate pci-x and pci-e based adapters
    ipr: add test for MSI interrupt support
    scsi_transport_spi: Blacklist Ultrium-3 tape for IU transfers
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
    asm-generic: add dummy pgprot_noncached()
    lib/checksum.c: fix endianess bug
    asm-generic: hook up new system calls
    asm-generic: list Arnd as asm-generic maintainer
    asm-generic: drop HARDIRQ_BITS definition from hardirq.h
    asm-generic: uaccess: fix up local access_ok() usage
    asm-generic: uaccess: add missing access_ok() check to strnlen_user()

    Linus Torvalds
     
  • handle_mm_fault() is now passing fault flags rather than write_access
    down to hugetlb_fault(), so better recognize that in hugetlb_fault(),
    and in hugetlb_no_page().

    Signed-off-by: Hugh Dickins
    Acked-by: Wu Fengguang
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     

23 Jun, 2009

2 commits