22 Aug, 2012

2 commits

  • …git/linusw/linux-pinctrl

    Pull pin control fixes from Linus Walleij:
    - Fixed Nomadik errorpath
    - Fixed documentation spelling errors
    - Forward-declare struct device in a header file
    - Remove some extraneous code lines when getting pinctrl states
    - Correct the i.MX51 configure register number
    - Fix the Nomadik keypad function group list

    * tag 'pinctrl-fixes-v3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
    pinctrl/nomadik: add kp_b_2 keyboard function group list
    pinctrl: imx51: fix .conf_reg of MX51_PAD_SD2_CMD__CSPI_MOSI
    trivial: pinctrl core: remove extraneous code lines
    pinctrl: header: trivial: declare struct device
    Documentation/pinctrl.txt: Fix some misspelled macros
    pinctrl/nomadik: fix null in irqdomain errorpath

    Linus Torvalds
     
  • Pull sound fixes from Takashi Iwai:
    "This update became slightly bigger than usual for rc3, but most of the
    commits are small and trivial. A large chunk is found for HD-audio
    ca0132 codec, which is mostly a clean up of the specific code, to make
    SPDIF working properly, and also in the new ASoC Arizona driver.

    One important fix is for usb-audio Oops fix since 3.5. We still see
    some EHCI related bandwidth problem, but usb-audio should be more
    stabilized now.

    Other than that, a Kconfig fix is spread over files, and various
    HD-audio and ASoC fixes as usual, in addition to Julia's error path
    fixes."

    * tag 'sound-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (42 commits)
    ALSA: snd-als100: fix suspend/resume
    ALSA: hda - Fix leftover codec->power_transition
    ALSA: hda - don't create dysfunctional mixer controls for ca0132
    ALSA: sound/ppc/snd_ps3.c: fix error return code
    ALSA: sound/pci/rme9652/hdspm.c: fix error return code
    ALSA: sound/pci/sis7019.c: fix error return code
    ALSA: sound/pci/ctxfi/ctatc.c: fix error return code
    ALSA: sound/atmel/ac97c.c: fix error return code
    ALSA: sound/atmel/abdac.c: fix error return code
    ALSA: fix pcm.h kernel-doc warning and notation
    sound: oss/sb_audio: prevent divide by zero bug
    ASoC: wm9712: Fix inverted capture volume
    ASoC: wm9712: Fix microphone source selection
    ASoC: wm5102: Remove DRC2
    ALSA: hda - Don't send invalid volume knob command on IDT 92hd75bxx
    ALSA: usb-audio: Fix scheduling-while-atomic bug in PCM capture stream
    ALSA: lx6464es: Add a missing error check
    ALSA: hda - Fix 'Beep Playback Switch' with no underlying mute switch
    ASoC: jack: Always notify full jack status
    ASoC: wm5110: Add missing input PGA routes
    ...

    Linus Torvalds
     

21 Aug, 2012

3 commits


20 Aug, 2012

1 commit


18 Aug, 2012

1 commit

  • Pull staging fixes from Greg Kroah-Hartman:
    "Here are some staging driver fixes (and iio driver fixes, they get
    lumped in with the staging stuff due to dependancies) for your 3.6-rc3
    tree.

    Nothing major, just a bunch of fixes that people have reported.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'staging-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (26 commits)
    iio: lm3533-als: Fix build warnings
    staging:iio:ad7780: Mark channels as unsigned
    staging:iio:ad7192: Report offset and scale for temperature channel
    staging:iio:ad7192: Report channel offset
    staging:iio:ad7192: Mark channels as unsigned
    staging:iio:ad7192: Fix setting ACX
    staging:iio:ad7192: Add missing break in switch statement
    staging:iio:ad7793: Fix internal reference value
    staging:iio:ad7793: Follow new IIO naming spec
    staging:iio:ad7793: Fix temperature scale and offset
    staging:iio:ad7793: Report channel offset
    staging:iio:ad7793: Mark channels as unsigned
    staging:iio:ad7793: Add missing break in switch statement
    iio/adjd_s311: Fix potential memory leak in adjd_s311_update_scan_mode()
    iio: frequency: ADF4350: Fix potential reference div factor overflow.
    iio: staging: ad7298_ring: Fix maybe-uninitialized warning
    staging: comedi: usbduxfast: Declare MODULE_FIRMWARE usage
    staging: comedi: usbdux: Declare MODULE_FIRMWARE usage
    staging: comedi: usbduxsigma: Declare MODULE_FIRMWARE usage
    staging: csr: add INET dependancy
    ...

    Linus Torvalds
     

17 Aug, 2012

5 commits


15 Aug, 2012

1 commit

  • This reverts commit bacef661acdb634170a8faddbc1cf28e8f8b9eee.

    This commit has been found to cause serious regressions on a number of
    ASUS machines at the least. We probably need to provide a 1:1 map in
    addition to the EFI virtual memory map in order for this to work.

    Signed-off-by: H. Peter Anvin
    Reported-and-bisected-by: Jérôme Carretero
    Cc: Jan Beulich
    Cc: Matt Fleming
    Cc: Matthew Garrett
    Cc: Linus Torvalds
    Cc: Andrew Morton
    Cc: Peter Zijlstra
    Link: http://lkml.kernel.org/r/20120805172903.5f8bb24c@zougloub.eu

    H. Peter Anvin
     

14 Aug, 2012

2 commits

  • Pull drm fixes from Dave Airlie:
    "Radeon and intel fixes mostly, one fix to the mgag200 driver to not
    hang on certain server variants."

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: (32 commits)
    drm/radeon: fix typo in function header comment
    drm/radeon/kms: implement timestamp userspace query (v2)
    drm/radeon/kms: add MSAA texture support for r600-evergreen
    drm/radeon/kms: reorder code in r600_check_texture_resource
    drm/radeon: fence virtual address and free it once idle v4
    drm/radeon: fix some missing parens in asic macros
    drm/radeon: add some new SI pci ids
    drm/radeon: fix ordering in pll picking on dce4+
    drm/radeon: do not reenable crtc after moving vram start address
    drm/radeon: fix bank tiling parameters on cayman
    drm/radeon: fix bank tiling parameters on evergreen
    drm/radeon: fix bank tiling parameters on SI
    drm/radeon: properly handle crtc powergating
    drm/radeon: properly handle SS overrides on TN (v2)
    drm/radeon/dce4+: set a more reasonable cursor watermark
    drm/radeon: fix handling for ddc type 5 on combios
    drm/mgag200: fix G200ER pll picking algorithm
    drm/edid: Fix potential memory leak in edid_load()
    drm/udl: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(.. [1]
    drm/radeon/kms: allow "invalid" DB formats as a means to disable DB
    ...

    Linus Torvalds
     
  • ARM recently moved to asm-generic/mutex-xchg.h for its mutex
    implementation after the previous implementation was found to be missing
    some crucial memory barriers. However, this has revealed some problems
    running hackbench on SMP platforms due to the way in which the
    MUTEX_SPIN_ON_OWNER code operates.

    The symptoms are that a bunch of hackbench tasks are left waiting on an
    unlocked mutex and therefore never get woken up to claim it. This boils
    down to the following sequence of events:

    Task A Task B Task C Lock value
    0 1
    1 lock() 0
    2 lock() 0
    3 spin(A) 0
    4 unlock() 1
    5 lock() 0
    6 cmpxchg(1,0) 0
    7 contended() -1
    8 lock() 0
    9 spin(C) 0
    10 unlock() 1
    11 cmpxchg(1,0) 0
    12 unlock() 1

    At this point, the lock is unlocked, but Task B is in an uninterruptible
    sleep with nobody to wake it up.

    This patch fixes the problem by ensuring we put the lock into the
    contended state if we fail to acquire it on the fastpath, ensuring that
    any blocked waiters are woken up when the mutex is released.

    Signed-off-by: Will Deacon
    Cc: Arnd Bergmann
    Cc: Chris Mason
    Cc: Ingo Molnar
    Cc:
    Reviewed-by: Nicolas Pitre
    Signed-off-by: Peter Zijlstra
    Link: http://lkml.kernel.org/n/tip-6e9lrw2avczr0617fzl5vqb8@git.kernel.org
    Signed-off-by: Thomas Gleixner

    Will Deacon
     

13 Aug, 2012

6 commits

  • Returns a snapshot of the GPU clock counter. Needed
    for certain OpenGL extensions.

    v2: agd5f
    - address Jerome's comments
    - add function documentation

    Signed-off-by: Marek Olšák
    Reviewed-by: Jerome Glisse
    Signed-off-by: Alex Deucher

    Marek Olšák
     
  • Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • Pull networking changes from David Miller:
    "Most importantly this should cure the ipv4-mapped ipv6 socket TCP
    crashes some people were seeing, otherwise:

    1) Fix e1000e autonegotiation handling regression, from Tushar Dave.

    2) Fix TX data corruption race on e1000e down, also from Tushar Dave.

    3) Fix bfin_sir IRDA driver build, from Sonic Zhang.

    4) AF_PACKET mmap() tests a flag in the TX ring shared between
    userspace and the kernel for an internal consistency check. It
    really shouldn't do this to validate the kernel's own behavior
    because the user can corrupt it to be any value at all. From
    Daniel Borkmann.

    5) Fix TCP metrics leak on netns dismantle, from Eric Dumazet.

    6) Orphan the anonymous TCP socket from the SKB in
    ip_send_unicast_reply() so that the rest of the stack needn't see
    it. Otherwise we get selinux problems of all sorts, from Eric
    Dumazet.

    This is the best way to fix this since the socket is just a place
    holder for sending packets in a context where we have no real
    socket at all.

    7) Fix TUN detach crashes, from Stanislav Kinsbursky.

    8) dev_set_alias() leaks memory on krealloc() failure, from Alexey
    Khoroshilov.

    9) FIB trie must use call_rcu() not call_rcu_bh(), because this code
    is not universally invoked from software interrupts. From Eric
    Dumazet.

    10) PPTP looks up ipv4 routes with the wrong network namespace, fix
    from Gao Feng."

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (33 commits)
    bnx2x: Fix compiler warnings
    af_packet: remove BUG statement in tpacket_destruct_skb
    macvtap: rcu_dereference outside read-lock section
    codel: refine one condition to avoid a nul rec_inv_sqrt
    ixgbe: add missing braces
    ipv4: fix ip_send_skb()
    net: tcp: ipv6_mapped needs sk_rx_dst_set method
    ipv4: tcp: unicast_sock should not land outside of TCP stack
    bnx2x: Fix recovery flow cleanup during probe
    bnx2x: fix unload previous driver flow when flr-capable
    tun: don't zeroize sock->file on detach
    igb: Fix register defines for all non-82575 hardware
    e1000e: fix panic while dumping packets on Tx hang with IOMMU
    igb: fix panic while dumping packets on Tx hang with IOMMU
    tcp: must free metrics at net dismantle
    net/stmmac: mark probe function as __devinit
    lpc_eth: remove obsolete ifdefs
    net/core: Fix potential memory leak in dev_set_alias()
    cdc-phonet: Don't leak in usbpn_open
    batman-adv: Fix mem leak in the batadv_tt_local_event() function
    ...

    Linus Torvalds
     
  • Pull a security subsystem fix from James Morris
    "This fixes an issue in the Yama LSM"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
    Yama: higher restrictions should block PTRACE_TRACEME

    Linus Torvalds
     
  • Pull power management fixes from Rafael J. Wysocki:

    - Fix for two recent regressions in the generic PM domains framework.

    - Revert of a commit that introduced a resume regression and is
    conceptually incorrect in my opinion.

    - Fix for a return value in pcc-cpufreq.c from Julia Lawall.

    - RTC wakeup signaling fix from Neil Brown.

    - Suppression of compiler warnings for CONFIG_PM_SLEEP unset in ACPI,
    platform/x86 and TPM drivers.

    * tag 'pm-for-3.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    tpm_tis / PM: Fix unused function warning for CONFIG_PM_SLEEP
    platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP
    ACPI / PM: Fix unused function warnings for CONFIG_PM_SLEEP
    Revert "NMI watchdog: fix for lockup detector breakage on resume"
    PM: Make dev_pm_get_subsys_data() always return 0 on success
    drivers/cpufreq/pcc-cpufreq.c: fix error return code
    RTC: Avoid races between RTC alarm wakeup and suspend.

    Linus Torvalds
     
  • Pull arm-soc bug fixes from Arnd Bergmann:
    "These are a bunch of bug fixes that came in after the merge window and
    one update for the MAINTAINERS file.

    The largest part of the fixes are patches that address bugs found by
    building all the ARM defconfig files. There are a lot more warnings
    that we have patches for, but the others are either still under
    discussion or are harmless and do not cause actual problems besides
    making the build slightly noisy."

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (30 commits)
    ARM: davinci: remove broken ntosd2_init_i2c
    ARM: s3c24xx: enable CONFIG_BUG for tct_hammer
    omap-rng: fix use of SIMPLE_DEV_PM_OPS
    spi/s3c64xx: improve error handling
    mtd/omap2: fix dmaengine_slave_config error handling
    gpio: em: do not discard em_gio_irq_domain_cleanup
    ARM: exynos: exynos_pm_add_dev_to_genpd may be unused
    ARM: imx: gpmi-nand depends on mxs-dma
    ARM: integrator: include
    ARM: s3c24xx: use new PWM driver
    ARM: sa1100: include linux/io.h in hackkit leds code
    Input: eeti_ts: pass gpio value instead of IRQ
    ARM: pxa: remove irq_to_gpio from ezx-pcap driver
    ARM: tegra: more regulator fixes for Harmony
    usb/ohci-omap: remove unused variable
    mfd/asic3: fix asic3_mfd_probe return value
    ARM: kirkwood: fix typo in Makefile.boot
    i.MX27: Fix emma-prp and csi clocks.
    ARM: integrator: use clk_prepare_enable() for timer
    MAINTAINERS: update entry for Linus Walleij
    ...

    Linus Torvalds
     

11 Aug, 2012

2 commits

  • One condition before codel_Newton_step() was not good if
    we never left the dropping state for a flow. As a result
    rec_inv_sqrt was 0, instead of the ~0 initial value.

    codel control law was then set to a very aggressive mode, dropping
    many packets before reaching 'target' and recovering from this problem.

    To keep codel_vars_init() as efficient as possible, refine
    the condition to make sure rec_inv_sqrt initial value is correct

    Many thanks to Anton Mich for discovering the issue and suggesting
    a fix.

    Reported-by: Anton Mich
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • ip_send_skb() can send orphaned skb, so we must pass the net pointer to
    avoid possible NULL dereference in error path.

    Bug added by commit 3a7c384ffd57 (ipv4: tcp: unicast_sock should not
    land outside of TCP stack)

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

10 Aug, 2012

2 commits

  • The higher ptrace restriction levels should be blocking even
    PTRACE_TRACEME requests. The comments in the LSM documentation are
    misleading about when the checks happen (the parent does not go through
    security_ptrace_access_check() on a PTRACE_TRACEME call).

    Signed-off-by: Kees Cook
    Cc: stable@vger.kernel.org # 3.5.x and later
    Signed-off-by: James Morris

    Kees Cook
     
  • commit 5d299f3d3c8a2fb (net: ipv6: fix TCP early demux) added a
    regression for ipv6_mapped case.

    [ 67.422369] SELinux: initialized (dev autofs, type autofs), uses
    genfs_contexts
    [ 67.449678] SELinux: initialized (dev autofs, type autofs), uses
    genfs_contexts
    [ 92.631060] BUG: unable to handle kernel NULL pointer dereference at
    (null)
    [ 92.631435] IP: [< (null)>] (null)
    [ 92.631645] PGD 0
    [ 92.631846] Oops: 0010 [#1] SMP
    [ 92.632095] Modules linked in: autofs4 sunrpc ipv6 dm_mirror
    dm_region_hash dm_log dm_multipath dm_mod video sbs sbshc battery ac lp
    parport sg snd_hda_intel snd_hda_codec snd_seq_oss snd_seq_midi_event
    snd_seq snd_seq_device pcspkr snd_pcm_oss snd_mixer_oss snd_pcm
    snd_timer serio_raw button floppy snd i2c_i801 i2c_core soundcore
    snd_page_alloc shpchp ide_cd_mod cdrom microcode ehci_hcd ohci_hcd
    uhci_hcd
    [ 92.634294] CPU 0
    [ 92.634294] Pid: 4469, comm: sendmail Not tainted 3.6.0-rc1 #3
    [ 92.634294] RIP: 0010:[] [< (null)>]
    (null)
    [ 92.634294] RSP: 0018:ffff880245fc7cb0 EFLAGS: 00010282
    [ 92.634294] RAX: ffffffffa01985f0 RBX: ffff88024827ad00 RCX:
    0000000000000000
    [ 92.634294] RDX: 0000000000000218 RSI: ffff880254735380 RDI:
    ffff88024827ad00
    [ 92.634294] RBP: ffff880245fc7cc8 R08: 0000000000000001 R09:
    0000000000000000
    [ 92.634294] R10: 0000000000000000 R11: ffff880245fc7bf8 R12:
    ffff880254735380
    [ 92.634294] R13: ffff880254735380 R14: 0000000000000000 R15:
    7fffffffffff0218
    [ 92.634294] FS: 00007f4516ccd6f0(0000) GS:ffff880256600000(0000)
    knlGS:0000000000000000
    [ 92.634294] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    [ 92.634294] CR2: 0000000000000000 CR3: 0000000245ed1000 CR4:
    00000000000007f0
    [ 92.634294] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
    0000000000000000
    [ 92.634294] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
    0000000000000400
    [ 92.634294] Process sendmail (pid: 4469, threadinfo ffff880245fc6000,
    task ffff880254b8cac0)
    [ 92.634294] Stack:
    [ 92.634294] ffffffff813837a7 ffff88024827ad00 ffff880254b6b0e8
    ffff880245fc7d68
    [ 92.634294] ffffffff81385083 00000000001d2680 ffff8802547353a8
    ffff880245fc7d18
    [ 92.634294] ffffffff8105903a ffff88024827ad60 0000000000000002
    00000000000000ff
    [ 92.634294] Call Trace:
    [ 92.634294] [] ? tcp_finish_connect+0x2c/0xfa
    [ 92.634294] [] tcp_rcv_state_process+0x2b6/0x9c6
    [ 92.634294] [] ? sched_clock_cpu+0xc3/0xd1
    [ 92.634294] [] ? local_clock+0x2b/0x3c
    [ 92.634294] [] tcp_v4_do_rcv+0x63a/0x670
    [ 92.634294] [] release_sock+0x128/0x1bd
    [ 92.634294] [] __inet_stream_connect+0x1b1/0x352
    [ 92.634294] [] ? lock_sock_nested+0x74/0x7f
    [ 92.634294] [] ? wake_up_bit+0x25/0x25
    [ 92.634294] [] ? lock_sock_nested+0x74/0x7f
    [ 92.634294] [] ? inet_stream_connect+0x22/0x4b
    [ 92.634294] [] inet_stream_connect+0x33/0x4b
    [ 92.634294] [] sys_connect+0x78/0x9e
    [ 92.634294] [] ? sysret_check+0x1b/0x56
    [ 92.634294] [] ? __audit_syscall_entry+0x195/0x1c8
    [ 92.634294] [] ? trace_hardirqs_on_thunk+0x3a/0x3f
    [ 92.634294] [] system_call_fastpath+0x16/0x1b
    [ 92.634294] Code: Bad RIP value.
    [ 92.634294] RIP [< (null)>] (null)
    [ 92.634294] RSP
    [ 92.634294] CR2: 0000000000000000
    [ 92.648982] ---[ end trace 24e2bed94314c8d9 ]---
    [ 92.649146] Kernel panic - not syncing: Fatal exception in interrupt

    Fix this using inet_sk_rx_dst_set(), and export this function in case
    IPv6 is modular.

    Reported-by: Andrew Morton
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

09 Aug, 2012

7 commits

  • The EETI touchscreen asserts its IRQ line as soon as it has data in its
    internal buffers. The line is automatically deasserted once all data has
    been read via I2C. Hence, the driver has to monitor the GPIO line and
    cannot simply rely on the interrupt handler reception.

    In the current implementation of the driver, irq_to_gpio() is used to
    determine the GPIO number from the i2c_client's IRQ value.

    As irq_to_gpio() is not available on all platforms, this patch changes
    this and makes the driver ignore the passed in IRQ. Instead, a GPIO is
    added to the platform_data struct and gpio_to_irq is used to derive the
    IRQ from that GPIO. If this fails, bail out. The driver is only able to
    work in environments where the touchscreen GPIO can be mapped to an
    IRQ.

    Without this patch, building raumfeld_defconfig results in:

    drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active':
    drivers/input/touchscreen/eeti_ts.c:65:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]

    Signed-off-by: Daniel Mack
    Signed-off-by: Arnd Bergmann
    Cc: stable@vger.kernel.org (v3.2+)
    Cc: Dmitry Torokhov
    Cc: Sven Neumann
    Cc: linux-input@vger.kernel.org
    Cc: Haojian Zhuang

    Arnd Bergmann
     
  • The irq_to_gpio function was removed from the pxa platform
    in linux-3.2, and this driver has been broken since.

    There is actually no in-tree user of this driver that adds
    this platform device, but the driver can and does get enabled
    on some platforms.

    Without this patch, building ezx_defconfig results in:

    drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work':
    drivers/mfd/ezx-pcap.c:205:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]

    Signed-off-by: Arnd Bergmann
    Acked-by: Haojian Zhuang
    Cc: stable@vger.kernel.org (v3.2+)
    Cc: Samuel Ortiz
    Cc: Daniel Ribeiro

    Arnd Bergmann
     
  • While investigating on network performance problems, I found this little
    gem :

    $ nm -v vmlinux | grep -1 dst_default_metrics
    ffffffff82736540 b busy.46605
    ffffffff82736560 B dst_default_metrics
    ffffffff82736598 b dst_busy_list

    Apparently, declaring a const array without initializer put it in
    (writeable) bss section, in middle of possibly often dirtied cache
    lines.

    Since we really want dst_default_metrics be const to avoid any possible
    false sharing and catch any buggy writes, I force a null initializer.

    ffffffff818a4c20 R dst_default_metrics

    Signed-off-by: Eric Dumazet
    Cc: Ben Hutchings
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Marc Kleine-Budde says:

    ====================
    here's a fix intended for the v3.6 release cycle. Oliver noticed and
    fixed that the flags definition for the new canfd_frame contains
    redundant and confusing information.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Revert commit 45226e9 (NMI watchdog: fix for lockup detector breakage
    on resume) which breaks resume from system suspend on my SH7372
    Mackerel board (by causing a NULL pointer dereference to happen) and
    is generally wrong, because it abuses the CPU hotplug functionality
    in a shamelessly blatant way.

    The original issue should be addressed through appropriate syscore
    resume callback instead.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     
  • Pull networking fixes from David Miller:

    1) Missed rcu_assign_pointer() in mac80211 scanning, from Johannes
    Berg.

    2) Allow devices to limit the number of segments that an individual
    TCP TSO packet can use at a time, to deal with device and/or driver
    specific limitations. From Ben Hutchings.

    3) Fix unexpected hard IPSEC expiration after setting the date. From
    Fan Du.

    4) Memory leak fix in bxn2x driver, from Jesper Juhl.

    5) Fix two memory leaks in libertas driver, from Daniel Drake.

    6) Fix deref of out-of-range array index in packet scheduler generic
    actions layer. From Hiroaki SHIMODA.

    7) Fix TX flow control errors in mlx4 driver, from Yevgeny Petrilin.

    8) Fix CRIS eth_v10.c driver build, from Randy Dunlap.

    9) Fix wrong SKB freeing in LLC protocol layer, from Sorin Dumitru.

    10) The IP output path checks neigh lookup errors incorrectly, it needs
    to use IS_ERR(). From Vasiliy Kulikov.

    11) An estimator leak leads to deref of freed memory in timer handler,
    fix from Hiroaki SHIMODA.

    12) TCP early demux in ipv6 needs to use DST cookies in order to
    validate the RX route properly. Fix from Eric Dumazet.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (43 commits)
    net: ipv6: fix TCP early demux
    net: Use PTR_RET rather than if(IS_ERR(.. [1]
    net_sched: act: Delete estimator in error path.
    ip: fix error handling in ip_finish_output2()
    llc: free the right skb
    ixp4xx_eth: fix ptp_ixp46x build failure
    drivers/atm/iphase.c: fix error return code
    tcp_output: fix sparse warning for tcp_wfree
    drivers/net/phy/mdio-mux-gpio.c: drop devm_kfree of devm_kzalloc'd data
    batman-adv: select an internet gateway if none was chosen
    mISDN: Bugfix for layer2 fixed TEI mode
    igb: don't break user visible strings over multiple lines in igb_ethtool.c
    igb: correct hardware type (i210/i211) check in igb_loopback_test()
    igb: Fix for failure to init on some 82576 devices.
    cris: fix eth_v10.c build error
    cdc-ncm: tag Ericsson WWAN devices (eg F5521gw) with FLAG_WWAN
    isdnloop: fix and simplify isdnloop_init()
    hyperv: Move wait completion msg code into rndis_filter_halt_device()
    net/mlx4_core: Remove port type restrictions
    net/mlx4_en: Fixing TX queue stop/wake flow
    ...

    Linus Torvalds
     
  • Pull IOMMU fixes from Joerg Roedel:
    "These patches fix a couple of issues. First of all a few problems
    with ACS on x86 introduced in the last merge window, where ACS did not
    work on AMD and a NULL pointer dereference when there ran against
    SR-IOV devices.

    The patches fallen out of coccinelle checks fix a possible invalid
    memory reference and a possible memory leak. The other patches mostly
    fix build errors and warnings and a wrong return value."

    * tag 'iommu-fixes-v3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
    iommu/amd: Fix ACS path checking
    iommu/intel: Fix ACS path checking
    iommu/amd: Fix pci_request_acs() call-place
    iommu/exynos: Fix build error
    iommu/tegra: smmu: Fix error initial value at domain_init
    iommu/tegra: smmu: Cleanup with lesser nest
    iommu: Add missing forward declaration in include file
    iommu: Include linux/types.h
    iommu/intel: add missing free_domain_mem
    iommu/tegra: remove invalid reference to list iterator variable

    Linus Torvalds
     

08 Aug, 2012

1 commit


07 Aug, 2012

2 commits

  • The first idea of the CAN FD implementation started with a new struct
    canfd_frame to be used for both CAN FD frames and legacy CAN frames.
    The now mainlined implementation supports both CAN frame types simultaneously
    and distinguishes them only by their required sizes: CAN_MTU and CANFD_MTU.

    Only the struct canfd_frame contains a flags element which is needed for the
    additional CAN FD information. As CAN FD implicitly means that the 'Extened
    Data Length' mode is enabled the formerly defined CANFD_EDL bit became
    redundant and also confusing as an unset bit would be an error and would
    always need to be tested.

    This patch removes the obsolete CANFD_EDL bit and clarifies the documentation
    for the use of struct canfd_frame and the CAN FD relevant flags.

    Signed-off-by: Oliver Hartkopp
    Signed-off-by: Marc Kleine-Budde

    Oliver Hartkopp
     
  • IPv6 needs a cookie in dst_check() call.

    We need to add rx_dst_cookie and provide a family independent
    sk_rx_dst_set(sk, skb) method to properly support IPv6 TCP early demux.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

06 Aug, 2012

1 commit

  • After we transfer set the EXT4_ERROR_FS bit in the file system
    superblock, it's not enough to call jbd2_journal_clear_err() to clear
    the error indication from journal superblock --- we need to call
    jbd2_journal_update_sb_errno() as well. Otherwise, when the root file
    system is mounted read-only, the journal is replayed, and the error
    indicator is transferred to the superblock --- but the s_errno field
    in the jbd2 superblock is left set (since although we cleared it in
    memory, we never flushed it out to disk).

    This can end up confusing e2fsck. We should make e2fsck more robust
    in this case, but the kernel shouldn't be leaving things in this
    confused state, either.

    Signed-off-by: "Theodore Ts'o"
    Cc: stable@kernel.org

    Theodore Ts'o
     

04 Aug, 2012

4 commits

  • Pull VFS fixes and cleanups from Al Viro.

    Most of this is the series to remove sync_supers() and the
    ->write_supers VFS callback from Artem Bityutskiy. One commit to do the
    actual removal work, a whole series of commits to fix up stale comments
    etc all over the tree.

    There's also a regression fix for an incorrect use of mnt_drop_write()
    in do_dentry_open().

    * 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    missed mnt_drop_write() in do_dentry_open()
    UBIFS: nuke pdflush from comments
    gfs2: nuke pdflush from comments
    drbd: nuke pdflush from comments
    nilfs2: nuke write_super from comments
    hfs: nuke write_super from comments
    vfs: nuke pdflush from comments
    jbd/jbd2: nuke write_super from comments
    btrfs: nuke pdflush from comments
    btrfs: nuke write_super from comments
    ext4: nuke pdflush from comments
    ext4: nuke write_super from comments
    ext3: nuke write_super from comments
    Documentation: fix the VM knobs descritpion WRT pdflush
    Documentation: get rid of write_super
    vfs: kill write_super and sync_supers

    Linus Torvalds
     
  • The pdflush thread is long gone, so this patch removes references to pdflush
    from vfs comments.

    Signed-off-by: Artem Bityutskiy
    Signed-off-by: Al Viro

    Artem Bityutskiy
     
  • Finally we can kill the 'sync_supers' kernel thread along with the
    '->write_super()' superblock operation because all the users are gone.
    Now every file-system is supposed to self-manage own superblock and
    its dirty state.

    The nice thing about killing this thread is that it improves power management.
    Indeed, 'sync_supers' is a source of monotonic system wake-ups - it woke up
    every 5 seconds no matter what - even if there were no dirty superblocks and
    even if there were no file-systems using this service (e.g., btrfs and
    journalled ext4 do not need it). So it was wasting power most of the time. And
    because the thread was in the core of the kernel, all systems had to have it.
    So I am quite happy to make it go away.

    Interestingly, this thread is a left-over from the pdflush kernel thread which
    was a self-forking kernel thread responsible for all the write-back in old
    Linux kernels. It was turned into per-block device BDI threads, and
    'sync_supers' was a left-over. Thus, R.I.P, pdflush as well.

    Signed-off-by: Artem Bityutskiy
    Signed-off-by: Al Viro

    Artem Bityutskiy
     
  • Pull ACPI and power management fixes from Len Brown:
    "A 3.3 sleep regression fixed, numa bugfix, plus some minor cleanups"

    * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
    ACPI processor: Fix tick_broadcast_mask online/offline regression
    ACPI: Only count valid srat memory structures
    ACPI: Untangle a return statement for better readability
    ACPI / PCI: Do not try to acquire _OSC control if that is hopeless
    ACPI: delete _GTS/_BFS support
    ACPI/x86: revert 'x86, acpi: Call acpi_enter_sleep_state via an asmlinkage C function from assembler'
    ACPI: replace strlen("string") with sizeof("string") -1
    ACPI / PM: Fix build warning in sleep.c for CONFIG_ACPI_SLEEP unset

    Linus Torvalds