10 Mar, 2011

14 commits


09 Mar, 2011

5 commits

  • We leave it at whatever it had been pointing to after the
    first link_path_walk() had failed with -ESTALE. Things
    do not work well after that...

    Signed-off-by: Al Viro

    Al Viro
     
  • Index i was already used in the outer loop

    Cc: stable@kernel.org
    Signed-off-by: Roel Kluin
    Signed-off-by: J. Bruce Fields

    roel
     
  • Fixes (with v2.6.38-rc3/parisc/parisc-allmodconfig):
    src/drivers/i2c/busses/i2c-eg20t.c:720: error: implicit declaration of function 'kzalloc'
    src/drivers/i2c/busses/i2c-eg20t.c:790: error: implicit declaration of function 'kfree'

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Wolfram Sang
    Cc: Tomoya MORINAGA
    Cc: Ben Dooks
    Signed-off-by: Ben Dooks

    Wolfram Sang
     
  • ocores_i2c_of_probe needs to use a const __be32 type for handing
    device tree property values. This patch fixed the following build
    warning:

    CC drivers/i2c/busses/i2c-ocores.o
    drivers/i2c/busses/i2c-ocores.c: In function 'ocores_i2c_of_probe':
    drivers/i2c/busses/i2c-ocores.c:254: warning: assignment discards qualifiers from pointer target type
    drivers/i2c/busses/i2c-ocores.c:261: warning: assignment discards qualifiers from pointer target type

    Signed-off-by: Grant Likely
    Cc: Peter Korsgaard
    Cc: Ben Dooks
    Cc: linux-i2c@vger.kernel.org
    Signed-off-by: Ben Dooks

    Grant Likely
     
  • 30201e7f3 ("mmc: skip detection of nonremovable cards on rescan")
    allowed skipping detection of nonremovable cards on mmc_rescan().
    The intention was to only skip detection of hardwired cards that
    cannot be removed, so make sure this is indeed the case by directly
    checking for (lack of) MMC_CAP_NONREMOVABLE, instead of using
    mmc_card_is_removable(), which is overloaded with
    CONFIG_MMC_UNSAFE_RESUME semantics.

    The user-visible symptom of the bug this patch fixes is that no
    "mmc: card XXXX removed" message appears in dmesg when a card is
    removed and CONFIG_MMC_UNSAFE_RESUME=y.

    Reported-and-tested-by: Dmitry Shmidt
    Reported-and-tested-by: Maxim Levitsky
    Signed-off-by: Ohad Ben-Cohen
    Signed-off-by: Chris Ball

    Ohad Ben-Cohen
     

08 Mar, 2011

14 commits

  • a) struct inode is not going to be freed under ->d_compare();
    however, the thing PROC_I(inode)->sysctl points to just might.
    Fortunately, it's enough to make freeing that sucker delayed,
    provided that we don't step on its ->unregistering, clear
    the pointer to it in PROC_I(inode) before dropping the reference
    and check if it's NULL in ->d_compare().

    b) I'm not sure that we *can* walk into NULL inode here (we recheck
    dentry->seq between verifying that it's still hashed / fetching
    dentry->d_inode and passing it to ->d_compare() and there's no
    negative hashed dentries in /proc/sys/*), but if we can walk into
    that, we really should not have ->d_compare() return 0 on it!
    Said that, I really suspect that this check can be simply killed.
    Nick?

    Signed-off-by: Al Viro

    Al Viro
     
  • Linus Torvalds
     
  • …git/kgene/linux-samsung

    * 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: S3C64XX: Update regulator names for debugfs compatiblity on SMDK6410
    ARM: S3C64XX: Fix build with WM1190 disabled and WM1192 enabled on SMDK6410
    ARM: S3C64XX: Reduce output of s3c64xx_dma_init1()
    ARM: S3C64XX: Tone down SDHCI debugging
    ARM: S3C64XX: Add clock for i2c1
    ARM: S3C64XX: Staticise non-exported GPIO to interrupt functions
    ARM: SAMSUNG: Include devs.h in dev-uart.c to prototype devices
    ARM: S3C64XX: Fix keypad setup to configure correct number of rows
    ARM: S3C2440: Fix usage gpio bank j pin definitions on GTA02
    ARM: S5P64X0: Fix number of GPIO lines in Bank F
    ARM: S3C2440: Select missing S3C_DEV_USB_HOST on GTA02

    Linus Torvalds
     
  • * 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm:
    davinci: cpufreq: fix section mismatch warning
    DaVinci: fix compilation warnings in
    davinci: tnetv107x: fix register indexing for GPIOs numbers > 31
    davinci: da8xx/omap-l1x: add platform device for davinci-pcm-audio
    ARM: pxa/tosa: register wm9712 codec device
    ARM: pxa: enable pxa-pcm-audio on pxa210/pxa25x platform
    ARM: pxa/colibri: don't register pxa2xx-pcmcia nodes on non-colibri platforms
    ARM: pxa/tosa: drop setting LED trigger name, as it's unsupported now
    ARM: 6762/1: Update number of VIC for S5P6442 and S5PC100
    ARM: 6761/1: Update number of VIC for S5PV210
    ARM: 6768/1: hw_breakpoint: ensure debug logic is powered up on v7 cores
    ARM: 6767/1: ptrace: fix register indexing in GETHBPREGS request
    ARM: 6765/1: remove obsolete comment from asm/mach/arch.h
    ARM: 6757/1: fix tlb.h induced linux/swap.h build failure

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc:
    mmc: sdio: Allow sdio operations in other threads during sdio_add_func()

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm: index i shadowed in 2nd loop
    drm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously
    drm/nouveau: fix regression causing ttm to not be able to evict vram
    drm/i915: Rebind the buffer if its alignment constraints changes with tiling
    drm/i915: Disable GPU semaphores by default
    drm/i915: Do not overflow the MMADDR write FIFO
    Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

    Linus Torvalds
     
  • Index i was already used in thhe first loop

    Signed-off-by: Roel Kluin
    Signed-off-by: Dave Airlie

    roel
     
  • This fixes a bug introduced by 807e8e40673d ("mmc: Fix sd/sdio/mmc
    initialization frequency retries") that prevented SDIO drivers from
    performing SDIO commands in their probe routines -- the above patch
    called mmc_claim_host() before sdio_add_func(), which causes a deadlock
    if an external SDIO driver calls sdio_claim_host().

    Fix tested on an OLPC XO-1.75 with libertas on SDIO.

    Signed-off-by: Dmitry Shmidt
    Reviewed-and-Tested-by: Chris Ball
    Signed-off-by: Chris Ball

    Dmitry Shmidt
     
  • * ickle/drm-intel-fixes:
    drm/i915: Rebind the buffer if its alignment constraints changes with tiling
    drm/i915: Disable GPU semaphores by default
    drm/i915: Do not overflow the MMADDR write FIFO
    Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

    Dave Airlie
     
  • …/git/tmlind/linux-omap-2.6

    * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
    omap: mailbox: resolve hang issue
    OMAP2+: PM: SmartReflex: fix memory leaks in Smartreflex driver
    arm: mach-omap2: smartreflex: fix another memory leak

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] tape: deadlock on system work queue
    [S390] keyboard: integer underflow bug
    [S390] xpram: remove __initdata attribute from module parameters

    Linus Torvalds
     
  • The per-vm mutex doesn't prevent this completely, a flush coming from the
    BAR VM could potentially happen at the same time as one for the channel
    VM. Not to mention that if/when we get per-client/channel VM, this will
    happen far more frequently.

    Signed-off-by: Ben Skeggs
    Signed-off-by: Dave Airlie

    Ben Skeggs
     
  • TTM assumes an error condition from man->func->get_node() means that
    something went horribly wrong, and causes it to bail.

    The driver is supposed to return 0, and leave mm_node == NULL to
    signal that it couldn't allocate any memory.

    Signed-off-by: Ben Skeggs
    Signed-off-by: Dave Airlie

    Ben Skeggs
     
  • In case of a nonempty list, the return on error here is obviously bogus;
    it ends up being a pointer to the list head instead of to any valid
    delegation on the list.

    In particular, if nfsd4_delegreturn() hits this case, and you're quite unlucky,
    then renew_client may oops, and it may take an embarassingly long time to
    figure out why. Facepalm.

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000090
    IP: [] nfsd4_delegreturn+0x125/0x200
    ...

    Cc: stable@kernel.org
    Signed-off-by: J. Bruce Fields

    J. Bruce Fields
     

07 Mar, 2011

5 commits

  • Early gen3 and gen2 chipset do not have the relaxed per-surface tiling
    constraints of the later chipsets, so we need to check that the GTT
    alignment is correct for the new tiling. If it is not, we need to
    rebind.

    Reported-by: Daniel Vetter
    Reviewed-by: Daniel Vetter
    Signed-off-by: Chris Wilson

    Chris Wilson
     
  • Andi Kleen narrowed his GPU hangs on his Sugar Bay (SNB desktop) rev 09
    down to the use of GPU semaphores, and we already know that they appear
    broken up to Huron River (mobile) rev 08. (I'm optimistic that disabling
    GPU semaphores is simply hiding another bug by the latency and
    side-effects of the additional device interaction it introduces...)

    However, use of semaphores is a massive performance improvement... Only
    as long as the system remains stable. Enable at your peril.

    Reported-by: Andi Kleen
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33921
    Signed-off-by: Chris Wilson

    Chris Wilson
     
  • For the I2C module to be wakeup capable, programming I2C_WE register (which
    was skipped for OMAP4430) is needed even on OMAP4.

    This fixes i2c controller timeouts which were seen recently with the static
    dependency being cleared between MPU and L4PER clockdomains.

    Signed-off-by: Rajendra Nayak
    [ben-linux@fluff.org: re-flowed description]
    Signed-off-by: Ben Dooks

    Rajendra Nayak
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Don't set to D3 in Cirrus errata init verbs
    ALSA: hda - add new Fermi 5xx codec IDs to snd-hda
    ASoC: WM8994: Ensure late enable events are processed for the ADCs
    ASoC: WM8994: Don't disable the AIF[1|2]CLK_ENA unconditionaly
    ASoC: Fix WM9081 platform data initialisation
    ALSA: hda - Fix unable to record issue on ASUS N82JV
    ALSA: HDA: Realtek: Fixup jack detection to input subsystem

    Linus Torvalds
     
  • If a virtio-console device gets unplugged while a port is open, a
    subsequent close() call on the port accesses vqs to free up buffers.
    This can lead to a crash.

    The buffers are already freed up as a result of the call to
    unplug_ports() from virtcons_remove(). The fix is to simply not access
    vq information if port->portdev is NULL.

    Reported-by: juzhang
    CC: stable@kernel.org
    Signed-off-by: Amit Shah
    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Amit Shah
     

06 Mar, 2011

2 commits

  • Takashi Iwai
     
  • Whilst the GT is powered down (rc6), writes to MMADDR are placed in a
    FIFO by the System Agent. This is a limited resource, only 64 entries, of
    which 20 are reserved for Display and PCH writes, and so we must take
    care not to queue up too many writes. To avoid this, there is counter
    which we can poll to ensure there are sufficient free entries in the
    fifo.

    "Issuing a write to a full FIFO is not supported; at worst it could
    result in corruption or a system hang."

    Reported-and-Tested-by: Matt Turner
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34056
    Signed-off-by: Chris Wilson

    Chris Wilson