10 Jun, 2010

7 commits


09 Jun, 2010

22 commits

  • * 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: Fix sg_dma_len() regression
    microblaze: Define ARCH_SLAB_MINALIGN to fix slab crash

    Linus Torvalds
     
  • MSM7x30 isn't supported in this driver yet. If ones tried to compile it in
    with MSM7x30 configure you get,

    linux-2.6/drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_fifo_addr':
    linux-2.6/drivers/mmc/host/msm_sdcc.c:165: error: 'MSM_SDC1_PHYS' undeclared (first use in this function)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:165: error: (Each undeclared identifier is reported only once
    linux-2.6/drivers/mmc/host/msm_sdcc.c:165: error: for each function it appears in.)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:167: error: 'MSM_SDC2_PHYS' undeclared (first use in this function)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:169: error: 'MSM_SDC3_PHYS' undeclared (first use in this function)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:171: error: 'MSM_SDC4_PHYS' undeclared (first use in this function)

    So we add a Kconfig check to prevent this.

    Signed-off-by: Daniel Walker

    Daniel Walker
     
  • 10, 233 is allocated officially to /dev/kmview which is shipping in
    Ubuntu and Debian distributions. vhost_net seem to have borrowed it
    without making a proper request and this causes regressions in the other
    distributions.

    vhost_net can use a dynamic minor so use that instead. Also update the
    file with a comment to try and avoid future misunderstandings.

    cc: stable@kernel.org
    Signed-off-by: Alan Cox
    [ We should have caught this before 2.6.34 got released. - Linus ]
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • The commit "asm-generic: add NEED_SG_DMA_LENGTH to define sg_dma_len()"
    18e98307de0d746cb0845ebf66535ce2184c25a2 broke microblaze compilation.

    dma_direct_map_sg() sets sg->dma_length, however microblaze doesn't
    set NEED_SG_DMA_LENGTH so scatterlist strcutres doesn't include
    dma_length.

    sg->dma_length is always equal to sg->length on microblaze. So we
    don't need to set set dma_length, that is, microblaze can simply use
    sg->length.

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: Michal Simek

    FUJITA Tomonori
     
  • The commit "mm: Move ARCH_SLAB_MINALIGN and
    ARCH_KMALLOC_MINALIGN to "
    1f0ce8b3dd667dca7 which moved the ARCH_SLAB_MINALIGN
    default into the global header broke FLAT for Microblaze.

    Error message:
    slab error in verify_redzone_free(): cache `idr_layer_cache':
    memory outside object was overwritten

    Signed-off-by: Michal Simek

    Michal Simek
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: core: check for 1394a compliant IRM, fix inaccessibility of Sony camcorder

    Linus Torvalds
     
  • This reverts commit cfecde435dda78248d6fcdc424bed68d5db6be0b, since it
    seems to cause some systems to not come up with any video output at all
    (or video that only comes on when X starts up).

    Fixes bugzilla:

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

    Reported-and-tested-by: David John
    Tested-by: Nick Bowler
    Acked-by: Carl Worth
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (23 commits)
    drm/radeon: don't poll tv dac if crtc2 is in use.
    drm/radeon: reset i2c valid to avoid incorrect tv-out polling.
    drm/nv50: fix iommu errors caused by device reading from address 0
    drm/nouveau: off by one in init_i2c_device_find()
    nouveau: off by one in nv50_gpio_location()
    drm/nouveau: completely fail init if we fail to map the PRAMIN BAR
    drm/nouveau: match U/DP script against SOR link
    drm/radeon/kms/pm: resurrect printing power states
    drm/radeon/kms: add trivial debugging for voltage
    drm/radeon/kms/r600+: use voltage from requested clock mode (v3)
    drm/radeon/kms/pm: track current voltage (v2)
    drm/radeon/kms/pm: Disable voltage adjust on RS780/RS880
    drm/radeon/kms: fix typo in printing the HPD info
    drm/radeon/kms/pm: add mid profile
    drm/radeon/kms/pm: Misc fixes
    drm/radeon/kms/combios: fix typo in voltage fix
    drm/radeon/kms/evergreen: set accel_enabled
    drm/vmwgfx: return -EFAULT for copy_to_user errors
    drm/drm_crtc: return -EFAULT on copy_to_user errors
    drm/fb: use printk to print out the switching to text mode error.
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] Update default configuration.
    [S390] arch/s390/kvm: Use GFP_ATOMIC when a lock is held
    [S390] kprobes: add parameter check to module_free()
    [S390] appldata/extmem/kvm: add missing GFP_KERNEL flag

    Linus Torvalds
     
  • sync can currently take a really long time if a concurrent writer is
    extending a file. The problem is that the dirty pages on the address
    space grow in the same direction as write_cache_pages scans, so if
    the writer keeps ahead of writeback, the writeback will not
    terminate until the writer stops adding dirty pages.

    For a data integrity sync, we only need to write the pages dirty at
    the time we start the writeback, so we can stop scanning once we get
    to the page that was at the end of the file at the time the scan
    started.

    This will prevent operations like copying a large file preventing
    sync from completing as it will not write back pages that were
    dirtied after the sync was started. This does not impact the
    existing integrity guarantees, as any dirty page (old or new)
    within the EOF range at the start of the scan will still be
    captured.

    This patch will not prevent sync from blocking on large writes into
    holes. That requires more complex intervention while this patch only
    addresses the common append-case of this sync holdoff.

    Signed-off-by: Dave Chinner
    Reviewed-by: Christoph Hellwig
    Signed-off-by: Linus Torvalds

    Dave Chinner
     
  • Now that the background flush code has been fixed, we shouldn't need to
    silently multiply the wbc->nr_to_write to get good writeback. Remove
    that code.

    Signed-off-by: Dave Chinner
    Reviewed-by: Christoph Hellwig
    Signed-off-by: Linus Torvalds

    Dave Chinner
     
  • If a filesystem writes more than one page in ->writepage, write_cache_pages
    fails to notice this and continues to attempt writeback when wbc->nr_to_write
    has gone negative - this trace was captured from XFS:

    wbc_writeback_start: towrt=1024
    wbc_writepage: towrt=1024
    wbc_writepage: towrt=0
    wbc_writepage: towrt=-1
    wbc_writepage: towrt=-5
    wbc_writepage: towrt=-21
    wbc_writepage: towrt=-85

    This has adverse effects on filesystem writeback behaviour. write_cache_pages()
    needs to terminate after a certain number of pages are written, not after a
    certain number of calls to ->writepage are made. This is a regression
    introduced by 17bc6c30cf6bfffd816bdc53682dd46fc34a2cf4 ("vfs: Add
    no_nrwrite_index_update writeback control flag"), but cannot be reverted
    directly due to subsequent bug fixes that have gone in on top of it.

    Signed-off-by: Dave Chinner
    Reviewed-by: Christoph Hellwig
    Signed-off-by: Linus Torvalds

    Dave Chinner
     
  • * 'bkl/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing:
    hp_sdc_rtc: fix broken ioctl conversion

    Linus Torvalds
     
  • J. Bruce Fields
     
  • This reportedly causes a lockdep warning on nfsd shutdown. That looks
    like a false positive to me, but there's no reason why this needs the
    state lock anyway.

    Reported-by: Jeff Layton
    Signed-off-by: J. Bruce Fields

    J. Bruce Fields
     
  • Commit 55929332c92 "drivers: Push down BKL into various drivers"
    introduced a regression in hp_sdc_rtc, caused by a missing
    change of the .unlocked_ioctl pointer to the newly introduced
    function.

    Fixes:

    drivers/input/misc/hp_sdc_rtc.c:681: warning: initialization from
    incompatible pointer type
    drivers/input/misc/hp_sdc_rtc.c:665: warning:
    ‘hp_sdc_rtc_unlocked_ioctl’ defined but not used

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Arnd Bergmann
    Acked-by: Geert Uytterhoeven
    Signed-off-by: Frederic Weisbecker

    Arnd Bergmann
     
  • When we receive a deauthentication frame before
    having successfully associated, we neither print
    a message nor abort assocation. The former makes
    it hard to debug, while the latter later causes
    a warning in cfg80211 when, as will typically be
    the case, association timed out.

    This warning was reported by many, e.g. in
    https://bugzilla.kernel.org/show_bug.cgi?id=15981,
    but I couldn't initially pinpoint it. I verified
    the fix by hacking hostapd to send a deauth frame
    instead of an association response.

    Cc: stable@kernel.org
    Signed-off-by: Johannes Berg
    Tested-by: Miles Lane
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Using ieee80211_find_sta() needs to be under
    RCU read lock, which iwlwifi currently misses,
    so fix it.

    Cc: stable@kernel.org
    Reported-by: Miles Lane
    Signed-off-by: Johannes Berg
    Acked-by: Reinette Chatre
    Tested-by: Miles Lane
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Signed-off-by: Martin Schwidefsky

    Martin Schwidefsky
     
  • The containing function is called from several places. At one of them, in
    the function __sigp_stop, the spin lock &fi->lock is held.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @gfp exists@
    identifier fn;
    position p;
    @@

    fn(...) {
    ... when != spin_unlock
    when any
    GFP_KERNEL@p
    ... when any
    }

    @locked@
    identifier gfp.fn;
    @@

    spin_lock(...)
    ... when != spin_unlock
    fn(...)

    @depends on locked@
    position gfp.p;
    @@

    - GFP_KERNEL@p
    + GFP_ATOMIC
    //

    Signed-off-by: Julia Lawall
    Acked-by: Christian Borntraeger
    Signed-off-by: Martin Schwidefsky

    Julia Lawall
     
  • When unregistering kprobes, kprobes calls module_free() and
    always passes NULL for the mod parameter. Add a check to
    prevent NULL pointer dereferences.

    See commit 740a8de0796dd12890b3c8ddcfabfcb528b78d40 for more details.

    Signed-off-by: Hendrik Brueckner
    Signed-off-by: Martin Schwidefsky

    Hendrik Brueckner
     
  • Add missing GFP flag to memory allocations. The part in cio only
    changes a comment.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     

08 Jun, 2010

11 commits