04 Dec, 2009

1 commit


01 Dec, 2009

2 commits


30 Nov, 2009

3 commits


28 Nov, 2009

1 commit


27 Nov, 2009

3 commits

  • The call of dma_mmap_coherent() is done in the PCM core now.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The non-cohernet PPC arch doesn't give the correct address by a simple
    virt_to_page() for pages allocated via dma_alloc_coherent().
    This patch adds a hack to fix the conversion similarly like MIPS.

    Note that this doesn't fix perfectly: the pages should be marked with
    proper pgprot value. This will be done in a future implementation like
    the conversion to dma_mmap_coherent().

    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • The non-coherent MIPS arch doesn't give the correct address by a simple
    virt_to_page() for pages allocated via dma_alloc_coherent().

    Original patch by Wu Zhangjin .
    [Ralf mentioned: "The origins of this patch go back far further.
    The oldest patch I could find which is a superset of this was written
    by Atsushi Nemoto and various incarnations of it have been sumitted
    to and reject by me a number of times through the years."]
    A proper check of the buffer allocation type was added to avoid the
    wrong conversion.

    Note that this doesn't fix perfectly: the pages should be marked with
    proper pgprot value. This will be done in a future implementation like
    the conversion to dma_mmap_coherent().

    Acked-by: Ralf Baechle
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

26 Nov, 2009

2 commits


23 Nov, 2009

1 commit

  • When we get a stream suspend event force the power down since otherwise
    the stream would remain marked as active. In future we'll probably want
    to make this stream-specific and add an interface to make the power down
    of other widgets optional in order to support leaving bypass paths
    active while suspending the processor.

    Cc: stable@kernel.org
    Reported-by: Joonyoung Shim
    Tested-by: Joonyoung Shim
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Mark Brown
     

20 Nov, 2009

4 commits

  • Linus Torvalds
     
  • * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    SUNRPC: Address buffer overrun in rpc_uaddr2sockaddr()
    NFSv4: Fix a cache validation bug which causes getcwd() to return ENOENT

    Linus Torvalds
     
  • As this struct is exposed to user space and the API was added for this
    release it's a bit of a pain for the C++ world and we still have time to
    fix it. Rename the fields before we end up with that pain in an actual
    release.

    Signed-off-by: Alan Cox
    Reported-by: Olivier Goffart
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Commit 86cf898e1d0fca245173980e3897580db38569a8 ("intel-iommu: Check for
    'DMAR at zero' BIOS error earlier.") was supposed to work by pretending
    not to detect an IOMMU if it was actually being reported by the BIOS at
    physical address zero.

    However, the intel_iommu_init() function is called unconditionally, as
    are the corresponding functions for other IOMMU hardware.

    So the patch only worked if you have RAM above the 4GiB boundary. It
    caused swiotlb to be initialised when no IOMMU was detected during early
    boot, and thus the later IOMMU init would refuse to run.

    But if you have less RAM than that, swiotlb wouldn't get set up and the
    IOMMU _would_ still end up being initialised, even though we never
    claimed to detect it.

    This patch also sets the dmar_disabled flag when the error is detected
    during the initial detection phase -- so that the later call to
    intel_iommu_init() will return without doing anything, regardless of
    whether swiotlb is used or not.

    Signed-off-by: David Woodhouse
    Signed-off-by: Linus Torvalds

    David Woodhouse
     

19 Nov, 2009

11 commits

  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] Fix stale cpufreq_cpu_governor pointer
    [CPUFREQ] Resolve time unit thinko in ondemand/conservative govs
    [CPUFREQ] speedstep-ich: fix error caused by 394122ab144dae4b276d74644a2f11c44a60ac5c
    [CPUFREQ] Fix use after free on governor restore
    [CPUFREQ] acpi-cpufreq: blacklist Intel 0f68: Fix HT detection and put in notification message
    [CPUFREQ] powernow-k8: Fix test in get_transition_latency()
    [CPUFREQ] longhaul: select Longhaul version 2 for capable CPUs

    Linus Torvalds
     
  • Doing the strcmp return value as

    signed char __res = *cs - *ct;

    is wrong for two reasons. The subtraction can overflow because __res
    doesn't use a type big enough. Moreover the compared bytes should be
    interpreted as unsigned char as specified by POSIX.

    The same problem is fixed in strncmp.

    Signed-off-by: Uwe Kleine-König
    Cc: Michael Buesch
    Cc: Andreas Schwab
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'agp-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/agp-2.6:
    agp/intel-agp: Set dma_mask for capable chipsets before agp_add_bridge()

    Linus Torvalds
     
  • …s/security-testing-2.6

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
    ima: replace GFP_KERNEL with GFP_NOFS

    Linus Torvalds
     
  • We should set this before calling agp_add_bridge() so that it's done
    before we map the scratch page too.

    This should probably fix the regression reported as k.o. bug #14627.

    Signed-off-by: David Woodhouse
    Signed-off-by: Dave Airlie

    David Woodhouse
     
  • …/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: cs should be positive in gpmc_cs_free()
    omap: fix unlikely(x) < y
    omap3: clock: Fixed dpll3_m2x2 rate calculation
    omap3: clock: Fix the DPLL freqsel computations
    omap: Fix keymap for zoom2 according to matrix keypad framwork

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ASoC: tlv320aic23 fix rate selection
    ASoC: OMAP3 Pandora: update for TWL4030 codec changes
    ASoC: Modifying the license string GPLv2 for OMAP3 EVM
    ALSA: hda - Fix quirk for VAIO type G
    ALSA: usb - Quirk to disable master volume control in PCM2702

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits)
    cxgb3: fix premature page unmap
    ibm_newemac: Fix EMACx_TRTR[TRT] bit shifts
    vlan: Fix register_vlan_dev() error path
    gro: Fix illegal merging of trailer trash
    sungem: Fix Serdes detection.
    net: fix mdio section mismatch warning
    ppp: fix BUG on non-linear SKB (multilink receive)
    ixgbe: Fixing EEH handler to handle more than one error
    net: Fix the rollback test in dev_change_name()
    Revert "isdn: isdn_ppp: Use SKB list facilities instead of home-grown implementation."
    TI Davinci EMAC : Fix Console Hang when bringing the interface down
    smsc911x: Fix Console Hang when bringing the interface down.
    mISDN: fix error return in HFCmulti_init()
    forcedeth: mac address fix
    r6040: fix version printing
    Bluetooth: Fix regression with L2CAP configuration in Basic Mode
    Bluetooth: Select Basic Mode as default for SOCK_SEQPACKET
    Bluetooth: Set general bonding security for ACL by default
    r8169: Fix receive buffer length when MTU is between 1515 and 1536
    can: add the missing netlink get_xstats_size callback
    ...

    Linus Torvalds
     
  • While running fsstress tests on the NFSv4 mounted ext3 and ext4
    filesystem, the following call trace was generated on the nfs
    server machine.

    Replace GFP_KERNEL with GFP_NOFS in ima_iint_insert() to avoid a
    potential deadlock.

    =================================
    [ INFO: inconsistent lock state ]
    2.6.31-31.el6.x86_64 #1
    ---------------------------------
    inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage.
    kswapd2/75 [HC0[0]:SC0[0]:HE1:SE1] takes:
    (jbd2_handle){+.+.?.}, at: [] jbd2_journal_start+0xfe/0x13f
    {RECLAIM_FS-ON-W} state was registered at:
    [] mark_held_locks+0x65/0x99
    [] lockdep_trace_alloc+0xbd/0xf5
    [] kmem_cache_alloc+0x40/0x185
    [] ima_iint_insert+0x3d/0xf1
    [] ima_inode_alloc+0x25/0x44
    [] inode_init_always+0xec/0x271
    [] alloc_inode+0x51/0xa1
    [] new_inode+0x2e/0x94
    [] ext4_new_inode+0xb8/0xdc9
    [] ext4_create+0xcf/0x175
    [] vfs_create+0x82/0xb8
    [] do_filp_open+0x32c/0x9ee
    [] do_sys_open+0x6c/0x12c
    [] sys_open+0x2e/0x44
    [] system_call_fastpath+0x16/0x1b
    [] 0xffffffffffffffff
    irq event stamp: 90371
    hardirqs last enabled at (90371): []
    kmem_cache_alloc+0xf0/0x185
    hardirqs last disabled at (90370): []
    kmem_cache_alloc+0x89/0x185
    softirqs last enabled at (89492): []
    __do_softirq+0x1bf/0x1eb
    softirqs last disabled at (89477): [] call_softirq+0x1c/0x30

    other info that might help us debug this:
    2 locks held by kswapd2/75:
    #0: (shrinker_rwsem){++++..}, at: [] shrink_slab+0x44/0x177
    #1: (&type->s_umount_key#25){++++..}, at: []

    Reported-by: Muni P. Beerakam
    Reported-by: Amit K. Arora
    Cc: stable@kernel.org
    Signed-off-by: Mimi Zohar
    Signed-off-by: James Morris

    Mimi Zohar
     
  • The index `cs' is signed, test whether it is negative before we release
    gpmc_cs_mem[cs].

    Signed-off-by: Roel Kluin
    Cc: Russell King
    Signed-off-by: Tony Lindgren
    Signed-off-by: Andrew Morton

    Roel Kluin
     
  • The closing parenthesis was not in the right location.

    Signed-off-by: Roel Kluin
    Cc: Russell King
    Signed-off-by: Tony Lindgren
    Signed-off-by: Andrew Morton

    Roel Kluin
     

18 Nov, 2009

12 commits