27 Jan, 2011

3 commits


22 Jan, 2011

4 commits

  • * 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (101 commits)
    [media] staging/lirc: fix mem leaks and ptr err usage
    [media] hdpvr: reduce latency of i2c read/write w/recycled buffer
    [media] hdpvr: enable IR part
    [media] rc/mceusb: timeout should be in ns, not us
    [media] v4l2-device: fix 'use-after-freed' oops
    [media] v4l2-dev: don't memset video_device.dev
    [media] zoran: use video_device_alloc instead of kmalloc
    [media] w9966: zero device state after a detach
    [media] v4l: Fix a use-before-set in the control framework
    [media] v4l: Include linux/videodev2.h in media/v4l2-ctrls.h
    [media] DocBook/v4l: update V4L2 revision and update copyright years
    [media] DocBook/v4l: fix validation error in dev-rds.xml
    [media] v4l2-ctrls: queryctrl shouldn't attempt to replace V4L2_CID_PRIVATE_BASE IDs
    [media] v4l2-ctrls: fix missing 'read-only' check
    [media] pvrusb2: Provide more information about IR units to lirc_zilog and ir-kbd-i2c
    [media] ir-kbd-i2c: Add back defaults setting for Zilog Z8's at addr 0x71
    [media] lirc_zilog: Update TODO.lirc_zilog
    [media] lirc_zilog: Add Andy Walls to copyright notice and authors list
    [media] lirc_zilog: Remove useless struct i2c_driver.command function
    [media] lirc_zilog: Remove unneeded tests for existence of the IR Tx function
    ...

    Linus Torvalds
     
  • * 'fixes-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
    workqueue: note the nested NOT_RUNNING test in worker_clr_flags() isn't a noop
    workqueue: relax lockdep annotation on flush_work()

    Linus Torvalds
     
  • …l/git/tip/linux-2.6-tip

    * 'irq-cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (37 commits)
    um: Use generic irq Kconfig
    tile: Use generic irq Kconfig
    sparc: Use generic irq Kconfig
    score: Use generic irq Kconfig
    powerpc: Use generic irq Kconfig
    parisc: Use generic irq Kconfig
    mn10300: Use generic irq Kconfig
    microblaze: Use generic irq Kconfig
    m68knommu: Use generic irq Kconfig
    ia64: Use generic irq Kconfig
    frv: Use generic irq Kconfig
    blackfin: Use generic irq Kconfig
    alpha: Use generic irq Kconfig
    genirq: Remove __do_IRQ
    m32r: Convert to generic irq Kconfig
    m32r: Convert usrv platform irq handling
    m32r: Convert opsput_lcdpld irq chip
    m32r: Convert opsput lanpld irq chip
    m32r: Convert opsput pld irq chip
    m32r: Convert opsput irq chip
    ...

    Linus Torvalds
     
  • The patch "thp: export maybe_mkwrite" (commit 14fd403f2146) breaks
    systems without MMU.

    Error log:

    CC arch/microblaze/mm/init.o
    In file included from include/linux/mman.h:14,
    from arch/microblaze/mm/consistent.c:24:
    include/linux/mm.h: In function 'maybe_mkwrite':
    include/linux/mm.h:482: error: implicit declaration of function 'pte_mkwrite'
    include/linux/mm.h:482: error: incompatible types in assignment

    Signed-off-by: Michal Simek
    CC: Andrea Arcangeli
    Reviewed-by: Rik van Riel
    CC: Andrew Morton
    CC: Ingo Molnar
    Signed-off-by: Linus Torvalds

    Michal Simek
     

21 Jan, 2011

7 commits

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
    quota: Fix deadlock during path resolution

    Linus Torvalds
     
  • All architectures are finally converted. Remove the cruft.

    Signed-off-by: Thomas Gleixner
    Cc: Richard Henderson
    Cc: Mike Frysinger
    Cc: David Howells
    Cc: Tony Luck
    Cc: Greg Ungerer
    Cc: Michal Simek
    Acked-by: David Howells
    Cc: Kyle McMartin
    Acked-by: Benjamin Herrenschmidt
    Cc: Chen Liqin
    Cc: "David S. Miller"
    Cc: Chris Metcalf
    Cc: Jeff Dike

    Thomas Gleixner
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    smp: Allow on_each_cpu() to be called while early_boot_irqs_disabled status to init/main.c
    lockdep: Move early boot local IRQ enable/disable status to init/main.c

    Linus Torvalds
     
  • Commit ca9b600be38c ("ACPI / PM: Make suspend_nvs_save() use
    acpi_os_map_memory()") attempted to prevent the code in osl.c and nvs.c
    from using different ioremap() variants by making the latter use
    acpi_os_map_memory() for mapping the NVS pages. However, that also
    requires acpi_os_unmap_memory() to be used for unmapping them, which
    causes synchronize_rcu() to be executed many times in a row
    unnecessarily and introduces substantial delays during resume on some
    systems.

    Instead of using acpi_os_map_memory() for mapping the NVS pages in nvs.c
    introduce acpi_os_ioremap() calling ioremap_cache() and make the code in
    both osl.c and nvs.c use it.

    Reported-by: Jeff Chua
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • * akpm:
    kernel/smp.c: consolidate writes in smp_call_function_interrupt()
    kernel/smp.c: fix smp_call_function_many() SMP race
    memcg: correctly order reading PCG_USED and pc->mem_cgroup
    backlight: fix 88pm860x_bl macro collision
    drivers/leds/ledtrig-gpio.c: make output match input, tighten input checking
    MAINTAINERS: update Atmel AT91 entry
    mm: fix truncate_setsize() comment
    memcg: fix rmdir, force_empty with THP
    memcg: fix LRU accounting with THP
    memcg: fix USED bit handling at uncharge in THP
    memcg: modify accounting function for supporting THP better
    fs/direct-io.c: don't try to allocate more than BIO_MAX_PAGES in a bio
    mm: compaction: prevent division-by-zero during user-requested compaction
    mm/vmscan.c: remove duplicate include of compaction.h
    memblock: fix memblock_is_region_memory()
    thp: keep highpte mapped until it is no longer needed
    kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT

    Linus Torvalds
     
  • Now, under THP:

    at charge:
    - PageCgroupUsed bit is set to all page_cgroup on a hugepage.
    ....set to 512 pages.
    at uncharge
    - PageCgroupUsed bit is unset on the head page.

    So, some pages will remain with "Used" bit.

    This patch fixes that Used bit is set only to the head page.
    Used bits for tail pages will be set at splitting if necessary.

    This patch adds this lock order:
    compound_lock() -> page_cgroup_move_lock().

    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: KAMEZAWA Hiroyuki
    Cc: Daisuke Nishimura
    Cc: Balbir Singh
    Cc: Johannes Weiner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • * 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    ACPICA: Update version to 20110112
    ACPICA: Update all ACPICA copyrights and signons to 2011
    ACPICA: Fix issues/fault with automatic "serialized" method support
    ACPICA: Debugger: Lock namespace for duration of a namespace dump
    ACPICA: Fix namespace race condition
    ACPICA: Fix memory leak in acpi_ev_asynch_execute_gpe_method().

    Linus Torvalds
     

20 Jan, 2011

3 commits

  • During early boot, local IRQ is disabled until IRQ subsystem is
    properly initialized. During this time, no one should enable
    local IRQ and some operations which usually are not allowed with
    IRQ disabled, e.g. operations which might sleep or require
    communications with other processors, are allowed.

    lockdep tracked this with early_boot_irqs_off/on() callbacks.
    As other subsystems need this information too, move it to
    init/main.c and make it generally available. While at it,
    toggle the boolean to early_boot_irqs_disabled instead of
    enabled so that it can be initialized with %false and %true
    indicates the exceptional condition.

    Signed-off-by: Tejun Heo
    Acked-by: Peter Zijlstra
    Acked-by: Pekka Enberg
    Cc: Linus Torvalds
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Tejun Heo
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (41 commits)
    sctp: user perfect name for Delayed SACK Timer option
    net: fix can_checksum_protocol() arguments swap
    Revert "netlink: test for all flags of the NLM_F_DUMP composite"
    gianfar: Fix misleading indentation in startup_gfar()
    net/irda/sh_irda: return to RX mode when TX error
    net offloading: Do not mask out NETIF_F_HW_VLAN_TX for vlan.
    USB CDC NCM: tx_fixup() race condition fix
    ns83820: Avoid bad pointer deref in ns83820_init_one().
    ipv6: Silence privacy extensions initialization
    bnx2x: Update bnx2x version to 1.62.00-4
    bnx2x: Fix AER setting for BCM57712
    bnx2x: Fix BCM84823 LED behavior
    bnx2x: Mark full duplex on some external PHYs
    bnx2x: Fix BCM8073/BCM8727 microcode loading
    bnx2x: LED fix for BCM8727 over BCM57712
    bnx2x: Common init will be executed only once after POR
    bnx2x: Swap BCM8073 PHY polarity if required
    iwlwifi: fix valid chain reading from EEPROM
    ath5k: fix locking in tx_complete_poll_work
    ath9k_hw: do PA offset calibration only on longcal interval
    ...

    Linus Torvalds
     
  • The option name of Delayed SACK Timer should be SCTP_DELAYED_SACK,
    not SCTP_DELAYED_ACK.

    Left SCTP_DELAYED_ACK be concomitant with SCTP_DELAYED_SACK,
    for making compatibility with existing applications.

    Reference:
    8.1.19. Get or Set Delayed SACK Timer (SCTP_DELAYED_SACK)
    (http://tools.ietf.org/html/draft-ietf-tsvwg-sctpsocket-25)

    Signed-off-by: Shan Wei
    Acked-by: Wei Yongjun
    Acked-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Shan Wei
     

19 Jan, 2011

10 commits

  • The later makes extensive use of structures defined in the former.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • The ene_ir driver was using a private define of MS_TO_NS, which is meant
    to be microseconds to nanoseconds. The mceusb driver copied it,
    intending to use is a milliseconds to microseconds. Lets move the
    defines to a common location, expand and standardize them a touch, so
    that we now have:

    MS_TO_NS - milliseconds to nanoseconds
    MS_TO_US - milliseconds to microseconds
    US_TO_NS - microseconds to nanoseconds

    Reported-by: David Härdeman
    CC: Maxim Levitsky
    Signed-off-by: Jarod Wilson
    Signed-off-by: Mauro Carvalho Chehab

    Jarod Wilson
     
  • Renamed has_new to is_new.

    Drivers can use the is_new field to determine if a new value was specified
    for a control. The v4l2_ctrl_handler_setup() must always set this to 1 since
    the setup has to force a full update of all controls.

    Signed-off-by: Hans Verkuil
    Acked-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Some subdevs need to call into the board code after they are registered
    and have a valid struct v4l2_device pointer. The s_config op was abused
    for this, but now that it is removed we need a cleaner way of solving this.

    So this patch adds a struct with internal ops that the v4l2 core can call.

    Currently only two ops exist: register and unregister. Subdevs can implement
    these to call the board code and pass it the v4l2_device pointer, which the
    board code can then use to get access to the struct that embeds the
    v4l2_device.

    It is expected that in the future open and close ops will also be added.

    Signed-off-by: Hans Verkuil
    Acked-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The core.s_config op was meant for legacy drivers that needed to work with old
    pre-2.6.26 kernels. This is no longer relevant. Unfortunately, this op was
    incorrectly called from several drivers.

    Replace those occurences with proper i2c_board_info structs and call
    v4l2_i2c_new_subdev_board.

    After these changes v4l2_i2c_new_subdev_cfg() was no longer used, so remove
    that function as well.

    Signed-off-by: Hans Verkuil
    Acked-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Convert saa7146 to use core-assisted locking.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Version 20110112.

    Signed-off-by: Bob Moore
    Signed-off-by: Lin Ming
    Signed-off-by: Len Brown

    Bob Moore
     
  • Signed-off-by: Bob Moore
    Signed-off-by: Lin Ming
    Signed-off-by: Len Brown

    Bob Moore
     
  • David S. Miller
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Fix initialization for HP 2011 notebooks
    ALSA: hda - Add support for VMware controller
    ALSA: hda - consitify string arrays
    ALSA: hda - Add add multi-streaming playback for AD1988
    ASoC: EP93xx: fixed LRCLK rate and DMA oper. in I2S code
    ASoC: WM8990: msleep() takes milliseconds not jiffies
    ALSA : au88x0 - Limit number of channels to fix Oops via OSS emu
    ALSA: constify functions in ac97
    ASoC: WL1273 FM radio: Fix breakage with MFD API changes
    ALSA: hda - More coverage for odd-number channels elimination for HDMI
    ALSA: hda - Store PCM parameters properly in HDMI open callback
    ALSA: hda - Rearrange fixup struct in patch_realtek.c
    ALSA: oxygen: Xonar DG: fix CS4245 register writes
    ALSA: hda - Suppress the odd number of channels for HDMI
    ALSA: hda - Add fixup-call in init callback
    ALSA: hda - Reorganize fixup structure for Realtek
    ALSA: hda - Apply Sony VAIO hweq fixup only once
    ALSA: hda - Apply mario fixup only once
    ALSA: hda - Remove unused fixup entry for ALC262

    Linus Torvalds
     

18 Jan, 2011

7 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    RDMA: Update workqueue usage
    RDMA/nes: Fix incorrect SFP+ link status detection on driver init
    RDMA/nes: Fix SFP+ link down detection issue with switch port disable
    RDMA/nes: Generate IB_EVENT_PORT_ERR/PORT_ACTIVE events
    RDMA/nes: Fix bonding on iw_nes
    IB/srp: Test only once whether iu allocation succeeded
    IB/mlx4: Handle protocol field in multicast table
    RDMA: Use vzalloc() to replace vmalloc()+memset(0)
    mlx4_{core, ib, en}: Fix driver when sizeof (phys_addr_t) > sizeof (long)
    IB/mthca: Fix driver when sizeof (phys_addr_t) > sizeof (long)

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6:
    ecryptfs: remove unnecessary decrypt when extending a file
    ecryptfs: Fix ecryptfs_printk() size_t warnings
    fs/ecryptfs: Add printf format/argument verification and fix fallout
    ecryptfs: fixed testing of file descriptor flags
    ecryptfs: test lower_file pointer when lower_file_mutex is locked
    ecryptfs: missing initialization of the superblock 'magic' field
    ecryptfs: moved ECRYPTFS_SUPER_MAGIC definition to linux/magic.h
    ecryptfs: fix truncation error in ecryptfs_read_update_atime

    Linus Torvalds
     
  • * 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6:
    spi/spi_sh_msiof: fix a wrong free_irq() parameter
    dt/flattree: Return virtual address from early_init_dt_alloc_memory_arch()

    Linus Torvalds
     
  • * git://git.infradead.org/mtd-2.6: (59 commits)
    mtd: mtdpart: disallow reading OOB past the end of the partition
    mtd: pxa3xx_nand: NULL dereference in pxa3xx_nand_probe
    UBI: use mtd->writebufsize to set minimal I/O unit size
    mtd: initialize writebufsize in the MTD object of a partition
    mtd: onenand: add mtd->writebufsize initialization
    mtd: nand: add mtd->writebufsize initialization
    mtd: cfi: add writebufsize initialization
    mtd: add writebufsize field to mtd_info struct
    mtd: OneNAND: OMAP2/3: prevent regulator sleeping while OneNAND is in use
    mtd: OneNAND: add enable / disable methods to onenand_chip
    mtd: m25p80: Fix JEDEC ID for AT26DF321
    mtd: txx9ndfmc: limit transfer bytes to 512 (ECC provides 6 bytes max)
    mtd: cfi_cmdset_0002: add support for Samsung K8D3x16UxC NOR chips
    mtd: cfi_cmdset_0002: add support for Samsung K8D6x16UxM NOR chips
    mtd: nand: ams-delta: drop omap_read/write, use ioremap
    mtd: m25p80: add debugging trace in sst_write
    mtd: nand: ams-delta: select for built-in by default
    mtd: OneNAND: lighten scary initial bad block messages
    mtd: OneNAND: OMAP2/3: add support for command line partitioning
    mtd: nand: rearrange ONFI revision checking, add ONFI 2.3
    ...

    Fix up trivial conflict in drivers/mtd/Kconfig as per DavidW.

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    fs: fix address space warnings in ioctl_fiemap()
    aio: check return value of create_workqueue()
    hpfs_setattr error case avoids unlock_kernel
    compat: copy missing fields in compat_statfs64 to user
    compat: update comment of compat statfs syscalls
    compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
    fs: FS_POSIX_ACL does not depend on BLOCK
    fs: Remove unlikely() from fget_light()
    fs: Remove unlikely() from fput_light()
    fallocate should be a file operation
    make the feature checks in ->fallocate future proof
    staging: smbfs building fix
    tidy up around finish_automount()
    don't drop newmnt on error in do_add_mount()
    Take the completion of automount into new helper

    Linus Torvalds
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: (63 commits)
    ARM: PL08x: cleanup comments
    Update CONFIG_MD_RAID6_PQ to CONFIG_RAID6_PQ in drivers/dma/iop-adma.c
    ARM: PL08x: fix a warning
    Fix dmaengine_submit() return type
    dmaengine: at_hdmac: fix race while monitoring channel status
    dmaengine: at_hdmac: flags located in first descriptor
    dmaengine: at_hdmac: use subsys_initcall instead of module_init
    dmaengine: at_hdmac: no need set ACK in new descriptor
    dmaengine: at_hdmac: trivial add precision to unmapping comment
    dmaengine: at_hdmac: use dma_address to program DMA hardware
    pch_dma: support new device ML7213 IOH
    ARM: PL08x: prevent dma_set_runtime_config() reconfiguring memcpy channels
    ARM: PL08x: allow dma_set_runtime_config() to return errors
    ARM: PL08x: fix locking between prepare function and submit function
    ARM: PL08x: introduce 'phychan_hold' to hold on to physical channels
    ARM: PL08x: put txd's on the pending list in pl08x_tx_submit()
    ARM: PL08x: rename 'desc_list' as 'pend_list'
    ARM: PL08x: implement unmapping of memcpy buffers
    ARM: PL08x: store prep_* flags in async_tx structure
    ARM: PL08x: shrink srcbus/dstbus in txd structure
    ...

    Linus Torvalds
     
  • The definition of ECRYPTFS_SUPER_MAGIC has been moved to the include
    file 'linux/magic.h' to become available to other kernel subsystems.

    Signed-off-by: Roberto Sassu
    Signed-off-by: Tyler Hicks

    Roberto Sassu
     

17 Jan, 2011

6 commits

  • The fi_extents_start field of struct fiemap_extent_info is a
    user pointer but was not marked as __user. This makes sparse
    emit following warnings:

    CHECK fs/ioctl.c
    fs/ioctl.c:114:26: warning: incorrect type in argument 1 (different address spaces)
    fs/ioctl.c:114:26: expected void [noderef] *dst
    fs/ioctl.c:114:26: got struct fiemap_extent *[assigned] dest
    fs/ioctl.c:202:14: warning: incorrect type in argument 1 (different address spaces)
    fs/ioctl.c:202:14: expected void const volatile [noderef] *
    fs/ioctl.c:202:14: got struct fiemap_extent *[assigned] fi_extents_start
    fs/ioctl.c:212:27: warning: incorrect type in argument 1 (different address spaces)
    fs/ioctl.c:212:27: expected void [noderef] *dst
    fs/ioctl.c:212:27: got char *

    Also add 'ufiemap' variable to eliminate unnecessary casts.

    Signed-off-by: Namhyung Kim
    Signed-off-by: Al Viro

    Namhyung Kim
     
  • In fput_light(), there's an unlikely(fput_needed), which running on
    my normal desktop doing firefox, xchat, evolution and part of my distcc farm,
    and running the annotate branch profiler shows that the unlikely is not
    very unlikely.

    correct incorrect % Function File Line
    ------- --------- - -------- ---- ----
    0 48 100 fput_light file.h 26
    115828710 897415279 88 fput_light file.h 26
    865271179 5286128445 85 fput_light file.h 26
    19568539 8923664 31 fput_light file.h 26
    12353677 3562279 22 fput_light file.h 26
    267691 67062 20 fput_light file.h 26
    15014853 348172 2 fput_light file.h 26
    209258 205 0 fput_light file.h 26
    1364164 0 0 fput_light file.h 26

    Which gives 1032903812 times it was correct and 6203351846 times it was
    incorrect, or 85% incorrect.

    Cc: Andrew Morton
    Signed-off-by: Steven Rostedt
    Signed-off-by: Al Viro

    Steven Rostedt
     
  • Currently all filesystems except XFS implement fallocate asynchronously,
    while XFS forced a commit. Both of these are suboptimal - in case of O_SYNC
    I/O we really want our allocation on disk, especially for the !KEEP_SIZE
    case where we actually grow the file with user-visible zeroes. On the
    other hand always commiting the transaction is a bad idea for fast-path
    uses of fallocate like for example in recent Samba versions. Given
    that block allocation is a data plane operation anyway change it from
    an inode operation to a file operation so that we have the file structure
    available that lets us check for O_SYNC.

    This also includes moving the code around for a few of the filesystems,
    and remove the already unnedded S_ISDIR checks given that we only wire
    up fallocate for regular files.

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

    Christoph Hellwig
     
  • Roland Dreier
     
  • * ib_wq is added, which is used as the common workqueue for infiniband
    instead of the system workqueue. All system workqueue usages
    including flush_scheduled_work() callers are converted to use and
    flush ib_wq.

    * cancel_delayed_work() + flush_scheduled_work() converted to
    cancel_delayed_work_sync().

    * qib_wq is removed and ib_wq is used instead.

    This is to prepare for deprecation of flush_scheduled_work().

    Signed-off-by: Tejun Heo
    Signed-off-by: Roland Dreier

    Tejun Heo
     
  • Cleanup the formatting of comments, remove some which don't make sense
    anymore.

    Signed-off-by: Russell King
    [fix conflict with 96a608a4]
    Signed-off-by: Dan Williams

    Russell King - ARM Linux