10 Jan, 2013

1 commit


09 Jan, 2013

3 commits

  • Pull ARM SoC fixes from Olof Johansson:
    "People are back from the holiday breaks, and it shows. Here are a
    bunch of fixes for a number of platforms:
    - A couple of small fixes for Nomadik
    - A larger set of changes for kirkwood/mvebu
    - uart driver selection, dt clocks, gpio-poweroff fixups, a few
    __init annotation fixes and some error handling improvement in
    their xor dma driver.
    - i.MX had a couple of minor fixes (and a critical one for flexcan2
    clock setup)
    - MXS has a small board fix and a framebuffer bugfix
    - A set of fixes for Samsung Exynos, fixing default bootargs and some
    Exynos5440 clock issues
    - A set of OMAP changes including PM fixes and a few sparse warning
    fixups

    All in all a bit more positive code delta than we'd ideally want to
    see here, mostly from the OMAP PM changes, but nothing overly crazy."

    * tag 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (44 commits)
    ARM: clps711x: Fix bad merge of clockevents setup
    ARM: highbank: save and restore L2 cache and GIC on suspend
    ARM: highbank: add a power request clear
    ARM: highbank: fix secondary boot and hotplug
    ARM: highbank: fix typos with hignbank in power request functions
    ARM: dts: fix highbank cpu mpidr values
    ARM: dts: add device_type prop to cpu nodes on Calxeda platforms
    ARM: mx5: Fix MX53 flexcan2 clock
    ARM: OMAP2+: am33xx-hwmod: Fix wrongly terminated am33xx_usbss_mpu_irqs array
    pinctrl: mvebu: make pdma clock on dove mandatory
    ARM: Dove: Add pinctrl clock to DT
    dma: mv_xor: fix error handling for clocks
    dma: mv_xor: fix error handling of mv_xor_channel_add()
    arm: mvebu: Add missing ; for cpu node.
    arm: mvebu: Armada XP MV78230 has only three Ethernet interfaces
    arm: mvebu: Armada XP MV78230 has two cores, not one
    clk: mvebu: Remove inappropriate __init tagging
    ARM: Kirkwood: Use fixed-regulator instead of board gpio call
    ARM: Kirkwood: Fix missing sdio clock
    ARM: Kirkwood: Switch TWSI1 of 88f6282 to DT clock providers
    ...

    Linus Torvalds
     
  • Pull drm update from Dave Airlie:
    "Exynos and Radeon mostly, with a dma-buf and ttm fix thrown in.

    It's a bit big but its mostly exynos license fix ups and I'd rather
    not hold those up since its legally stuff.

    Radeon has a couple of fixes from dma engine work, TTM is just a
    locking fix, and dma-buf fix has been hanging around and I finally got
    a chance to review it."

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: (30 commits)
    drm/ttm: fix fence locking in ttm_buffer_object_transfer
    drm/prime: drop reference on imported dma-buf come from gem
    drm/radeon: add quirk for d3 delay during switcheroo poweron for apple macbooks
    drm/exynos: move finish page flip to a common place
    drm/exynos: fimd: modify condition in fimd resume
    drm/radeon: fix DMA CS parser for r6xx linear copy packet
    drm/radeon: split r6xx and r7xx copy_dma functions
    drm/exynos: Use devm_clk_get in exynos_drm_gsc.c
    drm/exynos: Remove redundant NULL check in exynos_drm_gsc.c
    drm/exynos: Remove explicit freeing using devm_* APIs in exynos_drm_gsc.c
    drm/exynos: Use devm_clk_get in exynos_drm_rotator.c
    drm/exynos: Remove redundant NULL check in exynos_drm_rotator.c
    drm/exynos: Remove unnecessary devm_* freeing APIs in exynos_drm_rotator.c
    drm/exynos: Use devm_clk_get in exynos_drm_fimc.c
    drm/exynos: Remove redundant NULL check
    drm/exynos: Remove explicit freeing using devm_* APIs in exynos_drm_fimc.c
    drm/exynos: Use devm_kzalloc in exynos_drm_ipp.c
    drm/exynos: fix gem buffer allocation type checking
    drm/exynos: remove needless parenthesis.
    drm/exynos: fix incorrect interrupt induced by m2m operation.
    ...

    Linus Torvalds
     
  • From Shawn Guo:
    I have to send one critical mxsfb fix through arm-soc, as FB maintainer
    is unresponsive for quite a while. People start complaining the missing
    of such an important fix.

    * tag 'mxs-fixes-3.8' of git://git.linaro.org/people/shawnguo/linux-2.6:
    video: mxsfb: fix crash when unblanking the display
    ARM: dts: imx23-olinuxino: Fix IOMUX settings

    Olof Johansson
     

08 Jan, 2013

10 commits

  • Pull networking fixes from David Miller:

    1) New sysctl ndisc_notify needs some documentation, from Hanns
    Frederic Sowa.

    2) Netfilter REJECT target doesn't set transport header of SKB
    correctly, from Mukund Jampala.

    3) Forcedeth driver needs to check for DMA mapping failures, from Larry
    Finger.

    4) brcmsmac driver can't use usleep_range while holding locks, use
    udelay instead. From Niels Ole Salscheider.

    5) Fix unregister of netlink bridge multicast database handlers, from
    Vlad Yasevich and Rami Rosen.

    6) Fix checksum calculations in netfilter's ipv6 network prefix
    translation module.

    7) Fix high order page allocation failures in netfilter xt_recent, from
    Eric Dumazet.

    8) mac802154 needs to use netif_rx_ni() instead of netif_rx() because
    mac802154_process_data() can execute in process rather than
    interrupt context. From Alexander Aring.

    9) Fix splice handling of MSG_SENDPAGE_NOTLAST, otherwise we elide one
    tcp_push() too many. From Eric Dumazet and Willy Tarreau.

    10) Fix skb->truesize tracking in XEN netfront driver, from Ian
    Campbell.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (46 commits)
    xen/netfront: improve truesize tracking
    ipv4: fix NULL checking in devinet_ioctl()
    tcp: fix MSG_SENDPAGE_NOTLAST logic
    net/ipv4/ipconfig: really display the BOOTP/DHCP server's address.
    ip-sysctl: fix spelling errors
    mac802154: fix NOHZ local_softirq_pending 08 warning
    ipv6: document ndisc_notify in networking/ip-sysctl.txt
    ath9k: Fix Kconfig for ATH9K_HTC
    netfilter: xt_recent: avoid high order page allocations
    netfilter: fix missing dependencies for the NOTRACK target
    netfilter: ip6t_NPT: fix IPv6 NTP checksum calculation
    bridge: add empty br_mdb_init() and br_mdb_uninit() definitions.
    vxlan: allow live mac address change
    bridge: Correctly unregister MDB rtnetlink handlers
    brcmfmac: fix parsing rsn ie for ap mode.
    brcmsmac: add copyright information for Canonical
    rtlwifi: rtl8723ae: Fix warning for unchecked pci_map_single() call
    rtlwifi: rtl8192se: Fix warning for unchecked pci_map_single() call
    rtlwifi: rtl8192de: Fix warning for unchecked pci_map_single() call
    rtlwifi: rtl8192ce: Fix warning for unchecked pci_map_single() call
    ...

    Linus Torvalds
     
  • Noticed while reviewing the fence locking in the radeon pageflip
    handler.

    v2: Instead of grabbing the bdev->fence_lock in object_transfer just
    move the single callsite of that function a few lines, so that it is
    protected by the fence_lock. Suggested by Jerome Glisse.

    v3: Fix typo in commit message.

    Reviewed-by: Jerome Glisse
    Signed-off-by: Daniel Vetter
    Signed-off-by: Dave Airlie

    Daniel Vetter
     
  • Alex writes:
    A few more fixes for DMA and a mac quirk.

    * 'drm-fixes-3.8' of git://people.freedesktop.org/~agd5f/linux:
    drm/radeon: add quirk for d3 delay during switcheroo poweron for apple macbooks
    drm/radeon: fix DMA CS parser for r6xx linear copy packet
    drm/radeon: split r6xx and r7xx copy_dma functions

    Dave Airlie
     
  • Increasing ref counts of both dma-buf and gem for imported dma-buf come from gem
    makes memory leak. release function of dma-buf cannot be called because f_count
    of dma-buf increased by importing gem and gem ref count cannot be decrease
    because of exported dma-buf.

    So I add dma_buf_put() for imported gem come from its own gem into each drivers
    having prime_import and prime_export capabilities. With this, only gem ref
    count is increased if importing gem exported from gem of same driver.

    Signed-off-by: Seung-Woo Kim
    Signed-off-by: Kyungmin.park
    Cc: Inki Dae
    Cc: Daniel Vetter
    Cc: Rob Clark
    Cc: Alex Deucher
    Cc: stable
    Signed-off-by: Dave Airlie

    Seung-Woo Kim
     
  • Using RX_COPY_THRESHOLD is incorrect if the SKB is actually smaller
    than that. We have already accounted for this in
    NETFRONT_SKB_CB(skb)->pull_to so use that instead.

    Fixes WARN_ON from skb_try_coalesce.

    Signed-off-by: Ian Campbell
    Cc: Sander Eikelenboom
    Cc: Konrad Rzeszutek Wilk
    Cc: annie li
    Cc: xen-devel@lists.xen.org
    Cc: netdev@vger.kernel.org
    Cc: stable@kernel.org # 3.7.x only
    Acked-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Ian Campbell
     
  • Pull ACPI and power management fixes from Rafael Wysocki:

    - Removal of some ACPICA code that the kernel will never use from Lv
    Zheng.

    - APEI fix from Adrian Huang.

    - Removal of unnecessary ACPI memory hotplug driver code from Liu
    Jinsong.

    - Minor ACPI power management fixes.

    - ACPI debug code fix from Joe Perches.

    - ACPI fix to make system bus device nodes get the right names.

    - PNP resources handling fixes from Witold Szczeponik.

    - cpuidle fix for a recent regression stalling boot on systems with
    great numbers of CPUs from Daniel Lezcano.

    - cpuidle fixes from Sivaram Nair.

    - intel_idle debug message fix from Youquan Song.

    - cpufreq build regression fix from Larry Finger.

    - cpufreq fix for an obscure initialization race related to statistics
    from Konstantin Khlebnikov.

    - cpufreq change disabling the Longhaul driver by default from Rafał
    Bilski.

    - PM core fix preventing device suspend errors from happening during
    system suspend due to obscure race conditions.

    - PM QoS local variable name cleanup.

    * tag 'pm+acpi-for-3.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    PM: Move disabling/enabling runtime PM to late suspend/early resume
    PM / QoS: Rename local variable in dev_pm_qos_add_ancestor_request()
    ACPI / scan: Do not use dummy HID for system bus ACPI nodes
    cpufreq / governor: Fix problem with cpufreq_ondemand or cpufreq_conservative
    cpufreq / Longhaul: Disable driver by default
    cpufreq / stats: fix race between stats allocation and first usage
    cpuidle: fix lock contention in the idle path
    intel_idle: pr_debug information need separated
    cpuidle / coupled: fix ready counter decrement
    cpuidle: Fix finding state with min power_usage
    PNP: Handle IORESOURCE_BITS in resource allocation
    PNP: Simplify setting of resources
    ACPI / power: Remove useless message from device registering routine
    ACPI / glue: Update DBG macro to include KERN_DEBUG
    ACPI / PM: Do not apply ACPI_SUCCESS() to acpi_bus_get_device() result
    ACPI / memhotplug: remove redundant logic of acpi memory hotadd
    ACPI / APEI: Fix the returned value in erst_dbg_read
    ACPICA: Remove useless mini-C library.

    Linus Torvalds
     
  • Use device_unregister to replace put_device + device_del for
    cleanup, and fix the potential use after free.

    Signed-off-by: Lans Zhang
    Signed-off-by: Borislav Petkov

    Lans Zhang
     
  • After f65aad41772f("MIPS: Cavium: Add EDAC support."), when entering
    the "Device Drivers" toplevel menu in menuconfig, the suboptions behind
    EDAC appeared merged with the rest of the device drivers types. This was
    because the menuconfig option EDAC is querying an EDAC_SUPPORT Kconfig
    bool which was defined after the menu definition.

    When pushing EDAC_SUPPORT up, before the menu definition, the variable
    is defined earlier and the above menuconfig artifact doesn't happen.

    Drop a useless menuconfig comment while at it.

    Cc: Ralf Baechle
    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • This patch fixes use-after-free and double-free bugs in
    edac_mc_sysfs_exit(). mci_pdev has single reference and put_device()
    calls mc_attr_release() which calls kfree(). The following
    device_del() works with already released memory. An another kfree() in
    edac_mc_sysfs_exit() releses the same memory again. Great.

    Signed-off-by: Konstantin Khlebnikov
    Cc: stable@vger.kernel.org # 3.[67]
    Cc: Denis Kirjanov
    Cc: Mauro Carvalho Chehab
    Link: http://lkml.kernel.org/r/20121214110310.11019.21098.stgit@zurg
    Signed-off-by: Borislav Petkov

    Konstantin Khlebnikov
     
  • With the ability to pass clocks through DT, now make the pdma
    clock of dove pinctrl mandatory. Otherwise, pinctrl will hang
    the system when accessing some registers.

    Signed-off-by: Sebastian Hesselbarth
    Signed-off-by: Jason Cooper

    Sebastian Hesselbarth
     

07 Jan, 2013

7 commits

  • vga-switcheroo with apple-gmux does not switch correctly on my system. The PCI
    configuration space is not restored correctly, resulting in MSI not working after switch.

    Only useful item in dmesg is:

    [ 33.922807] radeon 0000:01:00.0: Refused to change power state, currently in D3

    I did some testing, dumping the difference in ms between first succesful switch
    from D3 to D0, and it seems that there is slightly more than 20 ms difference when
    the device is re-enabled through vga-switcheroo.

    So bump the re-enable d3 delay to 20 ms to handle this, which fixes msi not working
    on my system after switcheroo-ing. Default d3_delay value is PCI_PM_D3_WAIT, 10 ms.

    Signed-off-by: Maarten Lankhorst
    Signed-off-by: Alex Deucher

    Maarten Lankhorst
     
  • This patch implements the exynos_drm_crtc_finish_pageflip in
    exynos_drm_crtc.c. This avoids the duplication of same code
    in mixer, fimd and vidi.

    Signed-off-by: Rahul Sharma
    Signed-off-by: Stephane Marchesin
    Signed-off-by: Inki Dae

    Rahul Sharma
     
  • If fimd is runtime suspended (by DPMS OFF), fimd_suspend does not
    call fimd_activate(false) and just returns. Similarily the check in
    fimd_resume should not resume if previously runtime_suspended.
    Instead the existing check does the opposite. So if fimd was not
    runtime suspended, suspend will turn off fimd but resume will not turn
    it on. This patch fixes this issue by reversing the condition.

    Signed-off-by: Prathyush K
    Signed-off-by: Inki Dae

    Prathyush K
     
  • When a channel fails to initialize, we release all ressources,
    including clocks. However, a XOR unit is not necessarily associated to
    a clock (some variants of Marvell SoCs have a clock for XOR units,
    some don't), so we shouldn't unconditionally be releasing the clock.

    Instead, just like we do in the mv_xor_remove() function, we should
    check if one clock was found before releasing it.

    Signed-off-by: Thomas Petazzoni
    Signed-off-by: Jason Cooper

    Thomas Petazzoni
     
  • When mv_xor_channel_add() fails for one XOR channel, we jump to the
    err_channel_add label to clean up all previous channels that had been
    initialized correctly. Unfortunately, while handling this error
    condition, we were disposing the IRQ mapping before calling
    mv_xor_channel_remove() (which does the free_irq()), which is
    incorrect.

    Instead, do things properly in the reverse order of the
    initialization: first remove the XOR channel (so that free_irq() is
    done), and then dispose the IRQ mapping.

    This avoids ugly warnings when for some reason one of the XOR channel
    fails to initialize.

    Signed-off-by: Thomas Petazzoni
    Signed-off-by: Jason Cooper

    Thomas Petazzoni
     
  • If the Orion WDT driver is built as a module, an opps occurs during
    clk lookup when calling mvebu_clk_gating_get_src(). Remove the
    inappropriate __init tag so the function is available for modules
    after kernel init.

    Signed-off-by: Joshua Coombs
    Signed-off-by: Andrew Lunn
    Signed-off-by: Jason Cooper

    Joshua Coombs
     
  • Improve the documentation to clarify level vs edge triggered power off.
    Improve the comments for level vs edge triggered power off.
    Make use of gpio_is_valid().

    Reported-by: Stephen Warren
    Signed-off-by: Andrew Lunn
    Signed-off-by: Jason Cooper

    Andrew Lunn
     

06 Jan, 2013

4 commits

  • * pm-sleep:
    PM: Move disabling/enabling runtime PM to late suspend/early resume

    Rafael J. Wysocki
     
  • Currently, the PM core disables runtime PM for all devices right
    after executing subsystem/driver .suspend() callbacks for them
    and re-enables it right before executing subsystem/driver .resume()
    callbacks for them. This may lead to problems when there are
    two devices such that the .suspend() callback executed for one of
    them depends on runtime PM working for the other. In that case,
    if runtime PM has already been disabled for the second device,
    the first one's .suspend() won't work correctly (and analogously
    for resume).

    To make those issues go away, make the PM core disable runtime PM
    for devices right before executing subsystem/driver .suspend_late()
    callbacks for them and enable runtime PM for them right after
    executing subsystem/driver .resume_early() callbacks for them. This
    way the potential conflitcs between .suspend_late()/.resume_early()
    and their runtime PM counterparts are still prevented from happening,
    but the subtle ordering issues related to disabling/enabling runtime
    PM for devices during system suspend/resume are much easier to avoid.

    Reported-and-tested-by: Jan-Matthias Braun
    Signed-off-by: Rafael J. Wysocki
    Reviewed-by: Ulf Hansson
    Reviewed-by: Kevin Hilman
    Cc: 3.4+

    Rafael J. Wysocki
     
  • * pm-qos:
    PM / QoS: Rename local variable in dev_pm_qos_add_ancestor_request()

    Rafael J. Wysocki
     
  • Local variable 'error' in dev_pm_qos_add_ancestor_request() need
    not contain error codes only, so rename it to 'ret'.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     

05 Jan, 2013

14 commits

  • tm_mon is 0..11, whereas vt8500 expects 1..12 for the month field,
    causing invalid date errors for January, and causing the day field to
    roll over incorrectly.

    The century flag is only handled in vt8500_rtc_read_time, but not set in
    vt8500_rtc_set_time. This patch corrects the behaviour of the century
    flag.

    Signed-off-by: Edgar Toernig
    Signed-off-by: Tony Prisk
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tony Prisk
     
  • Control register bitfield for 12H/24H mode is handled incorrectly.
    Setting CR_24H actually enables 12H mode. This patch renames the define
    and changes the initialization code to correctly set 24H mode.

    Signed-off-by: Tony Prisk
    Cc: Edgar Toernig
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tony Prisk
     
  • Add an RTC driver for TPS6586X chips by TI. This driver supports:

    - Setting and getting time and date.
    - Setting and reading alarm time.
    - Alarm and interrupt functionlity.

    [akpm@linux-foundation.org: remove stray semicolons]
    [akpm@linux-foundation.org: start epoch in 2009]
    Signed-off-by: Laxman Dewangan
    Tested-by: Marc Dietrich
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laxman Dewangan
     
  • After Kernel 3.7, the Tegra device will only support booting with DT.
    The legacy Tegra RTC platform driver will not work anymore. This patch
    converts the driver to support DT.

    Signed-off-by: Joseph Lo
    Cc: Stephen Warren
    Cc: Joseph Lo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joseph Lo
     
  • * pm-cpufreq:
    cpufreq / governor: Fix problem with cpufreq_ondemand or cpufreq_conservative
    cpufreq / Longhaul: Disable driver by default
    cpufreq / stats: fix race between stats allocation and first usage

    Rafael J. Wysocki
     
  • By Sivaram Nair (2) and others
    * pm-cpuidle:
    cpuidle: fix lock contention in the idle path
    intel_idle: pr_debug information need separated
    cpuidle / coupled: fix ready counter decrement
    cpuidle: Fix finding state with min power_usage

    Rafael J. Wysocki
     
  • * acpi-assorted:
    ACPI / scan: Do not use dummy HID for system bus ACPI nodes
    ACPI / power: Remove useless message from device registering routine
    ACPI / glue: Update DBG macro to include KERN_DEBUG
    ACPI / PM: Do not apply ACPI_SUCCESS() to acpi_bus_get_device() result
    ACPI / memhotplug: remove redundant logic of acpi memory hotadd
    ACPI / APEI: Fix the returned value in erst_dbg_read

    Rafael J. Wysocki
     
  • * acpica:
    ACPICA: Remove useless mini-C library.

    Rafael J. Wysocki
     
  • At one point acpi_device_set_id() checks if acpi_device_hid(device)
    returns NULL, but that never happens, so system bus devices with an
    empty list of PNP IDs are given the dummy HID ("device") instead of
    the "system bus HID" ("LNXSYBUS"). Fix the code to use the right
    check.

    Signed-off-by: Rafael J. Wysocki
    Cc:

    Rafael J. Wysocki
     
  • …wireless into for-davem

    John W. Linville
     
  • Ath9k consists of 2 different sub-modules: ATH9K and ATH9K_HTC.
    Both uses common Atheros code from ath.ko and need ATH_COMMON.

    However, while ATH9K selects ATH_COMMON, ATH9K_HTC does not.
    As result, if ATH9K_HTC is the only Atheros card selected, compilation fails with
    unresolved symbols.

    This patch moves ATH_COMMON selection to the common part for both
    ATH9K and ATH9K_HTC

    Signed-off-by: Vladimir Kondratiev
    Signed-off-by: John W. Linville

    Vladimir Kondratiev
     
  • Pull input update from Dmitry Torokhov:
    "Updates for the input subsystem. Just a couple of driver fixes this
    time."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: gpio_keys - defer probing if GPIO probing is deferred
    Input: gpio_keys_polled - defer probing if GPIO probing is deferred
    Input: sentelic - only report position of first finger as ST coordinates

    Linus Torvalds
     
  • Pull radeon and minor nouveau fixes from Dave Airlie:
    "Just a radeon pull from Alex, fixes a few regressions since 3.7 and
    reworks some of the reset handling, and two minor nouveau fixes I
    found on the list, Ben will be back next week to take care of the
    couple of larger nouveau patches that I see outstanding."

    * 'drm-next' of git://people.freedesktop.org/~airlied/linux:
    drm/nouveau: fix init with agpgart-uninorth
    drm: nouveau: Fix build warning seen if HWMON is undefined
    drm/radeon: switch to a finer grained reset for SI (v2)
    drm/radeon: switch to a finer grained reset for cayman/TN
    drm/radeon: switch to a finer grained reset for evergreen
    drm/radeon: switch to a finer grained reset for r6xx/7xx
    drm/radeon: add GPU reset flags
    drm/radeon: fix typo in evergreen dma fence
    drm/radeon: Properly handle DDC probe for DP bridges
    drm/radeon: reset dma engine on gpu reset (v2)
    drm/radeon: print dma status reg on lockup (v2)
    drm/radeon: improve ring debugfs printing
    drm/radeon: add debugfs file for dma rings
    drm/radeon/r6xx: fix DMA engine for ttm bo transfers
    drm/radeon: add connector table for Mac G4 Silver

    Linus Torvalds
     
  • Was using the r7xx format.

    Signed-off-by: Alex Deucher

    Alex Deucher
     

04 Jan, 2013

1 commit