02 Mar, 2017

2 commits

  • …hed.h> into <linux/sched/signal.h>

    Fix up affected files that include this signal functionality via sched.h.

    Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

    Ingo Molnar
     
  • Pull sound fixes from Takashi Iwai:
    "A few last-minute fixes for rc1:

    - ALSA core timer and sequencer fixes for bugs spotted by syzkaller

    - a couple of trivial HD-audio fixups

    - additional PCI / codec IDs for Intel Geminilake

    - fixes for CT-XFi DMA mask bugs"

    * tag 'sound-fix-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: seq: Fix link corruption by event error handling
    ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
    ALSA: ctxfi: Fallback DMA mask to 32bit
    ALSA: timer: Reject user params with too small ticks
    ALSA: hda: Add Geminilake HDMI codec ID
    ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
    ALSA: hda - Add Geminilake PCI ID

    Linus Torvalds
     

01 Mar, 2017

3 commits

  • The sequencer FIFO management has a bug that may lead to a corruption
    (shortage) of the cell linked list. When a sequencer client faces an
    error at the event delivery, it tries to put back the dequeued cell.
    When the first queue was put back, this forgot the tail pointer
    tracking, and the link will be screwed up.

    Although there is no memory corruption, the sequencer client may stall
    forever at exit while flushing the pending FIFO cells in
    snd_seq_pool_done(), as spotted by syzkaller.

    This patch addresses the missing tail pointer tracking at
    snd_seq_fifo_cell_putback(). Also the patch makes sure to clear the
    cell->enxt pointer at snd_seq_fifo_event_in() for avoiding a similar
    mess-up of the FIFO linked list.

    Reported-by: Dmitry Vyukov
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Dell Inspiron 17 7000 Gaming laptop needs a similar quirk like
    Inspiron 7599 to support its subwoofer speaker.

    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=194191
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Currently ctxfi driver tries to set only the 64bit DMA mask on 64bit
    architectures, and bails out if it fails. This causes a problem on
    some platforms since the 64bit DMA isn't always guaranteed. We should
    fall back to the default 32bit DMA when 64bit DMA fails.

    Fixes: 6d74b86d3c0f ("ALSA: ctxfi - Allow 64bit DMA")
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

28 Feb, 2017

10 commits

  • When a user sets a too small ticks with a fine-grained timer like
    hrtimer, the kernel tries to fire up the timer irq too frequently.
    This may lead to the condensed locks, eventually the kernel spinlock
    lockup with warnings.

    For avoiding such a situation, we define a lower limit of the
    resolution, namely 1ms. When the user passes a too small tick value
    that results in less than that, the kernel returns -EINVAL now.

    Reported-by: Dmitry Vyukov
    Cc:
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Now that %z is standartised in C99 there is no reason to support %Z.
    Unlike %L it doesn't even make format strings smaller.

    Use BUILD_BUG_ON in a couple ATM drivers.

    In case anyone didn't notice lib/vsprintf.o is about half of SLUB which
    is in my opinion is quite an achievement. Hopefully this patch inspires
    someone else to trim vsprintf.c more.

    Link: http://lkml.kernel.org/r/20170103230126.GA30170@avx2
    Signed-off-by: Alexey Dobriyan
    Cc: Andy Shevchenko
    Cc: Rasmus Villemoes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Fix typos and add the following to the scripts/spelling.txt:

    followings||following

    While we are here, add a missing colon in the boilerplate in DT binding
    documents. The "you SoC" in allwinner,sunxi-pinctrl.txt was fixed as
    well.

    I reworded "as the followings:" to "as follows:" for
    drivers/usb/gadget/udc/renesas_usb3.c.

    Link: http://lkml.kernel.org/r/1481573103-11329-32-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    overwrien||overwritten

    Link: http://lkml.kernel.org/r/1481573103-11329-30-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    deintializing||deinitializing
    deintialize||deinitialize
    deintialized||deinitialized

    Link: http://lkml.kernel.org/r/1481573103-11329-28-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    intialization||initialization

    The "inintialization" in drivers/acpi/spcr.c is a different pattern but
    I fixed it as well in this commit.

    Link: http://lkml.kernel.org/r/1481573103-11329-16-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    unneded||unneeded

    Link: http://lkml.kernel.org/r/1481573103-11329-15-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    an union||a union

    Link: http://lkml.kernel.org/r/1481573103-11329-5-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Fix typos and add the following to the scripts/spelling.txt:

    swith||switch
    swithable||switchable
    swithed||switched
    swithing||switching

    While we are here, fix the "update" to "updates" in the touched hunk in
    drivers/net/wireless/marvell/mwifiex/wmm.c.

    Link: http://lkml.kernel.org/r/1481573103-11329-2-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • Geminilake HDMI codec 0x280d is similar to previous platforms, so add it with
    similar ops as previous.

    Signed-off-by: Senthilnathan Veppur
    Signed-off-by: Vinod Koul
    Signed-off-by: Takashi Iwai

    Vinod Koul
     

27 Feb, 2017

1 commit


25 Feb, 2017

2 commits

  • Geminilake is another Intel part, so need to add PCI ID for it.

    Signed-off-by: Vinod Koul
    Signed-off-by: Takashi Iwai

    Vinod Koul
     
  • ->fault(), ->page_mkwrite(), and ->pfn_mkwrite() calls do not need to
    take a vma and vmf parameter when the vma already resides in vmf.

    Remove the vma parameter to simplify things.

    [arnd@arndb.de: fix ARM build]
    Link: http://lkml.kernel.org/r/20170125223558.1451224-1-arnd@arndb.de
    Link: http://lkml.kernel.org/r/148521301778.19116.10840599906674778980.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Dave Jiang
    Signed-off-by: Arnd Bergmann
    Reviewed-by: Ross Zwisler
    Cc: Theodore Ts'o
    Cc: Darrick J. Wong
    Cc: Matthew Wilcox
    Cc: Dave Hansen
    Cc: Christoph Hellwig
    Cc: Jan Kara
    Cc: Dan Williams
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jiang
     

24 Feb, 2017

1 commit

  • Pull drm updates from Dave Airlie:
    "This is the main drm pull request for v4.11.

    Nothing too major, the tinydrm and mmu-less support should make
    writing smaller drivers easier for some of the simpler platforms, and
    there are a bunch of documentation updates.

    Intel grew displayport MST audio support which is hopefully useful to
    people, and FBC is on by default for GEN9+ (so people know where to
    look for regressions). AMDGPU has a lot of fixes that would like new
    firmware files installed for some GPUs.

    Other than that it's pretty scattered all over.

    I may have a follow up pull request as I know BenH has a bunch of AST
    rework and fixes and I'd like to get those in once they've been tested
    by AST, and I've got at least one pull request I'm just trying to get
    the author to fix up.

    Core:
    - drm_mm reworked
    - Connector list locking and iterators
    - Documentation updates
    - Format handling rework
    - MMU-less support for fbdev helpers
    - drm_crtc_from_index helper
    - Core CRC API
    - Remove drm_framebuffer_unregister_private
    - Debugfs cleanup
    - EDID/Infoframe fixes
    - Release callback
    - Tinydrm support (smaller drivers for simple hw)

    panel:
    - Add support for some new simple panels

    i915:
    - FBC by default for gen9+
    - Shared dpll cleanups and docs
    - GEN8 powerdomain cleanup
    - DMC support on GLK
    - DP MST audio support
    - HuC loading support
    - GVT init ordering fixes
    - GVT IOMMU workaround fix

    amdgpu/radeon:
    - Power/clockgating improvements
    - Preliminary SR-IOV support
    - TTM buffer priority and eviction fixes
    - SI DPM quirks removed due to firmware fixes
    - Powerplay improvements
    - VCE/UVD powergating fixes
    - Cleanup SI GFX code to match CI/VI
    - Support for > 2 displays on 3/5 crtc asics
    - SI headless fixes

    nouveau:
    - Rework securre boot code in prep for GP10x secure boot
    - Channel recovery improvements
    - Initial power budget code
    - MMU rework preperation

    vmwgfx:
    - Bunch of fixes and cleanups

    exynos:
    - Runtime PM support for MIC driver
    - Cleanups to use atomic helpers
    - UHD Support for TM2/TM2E boards
    - Trigger mode fix for Rinato board

    etnaviv:
    - Shader performance fix
    - Command stream validator fixes
    - Command buffer suballocator

    rockchip:
    - CDN DisplayPort support
    - IOMMU support for arm64 platform

    imx-drm:
    - Fix i.MX5 TV encoder probing
    - Remove lower fb size limits

    msm:
    - Support for HW cursor on MDP5 devices
    - DSI encoder cleanup
    - GPU DT bindings cleanup

    sti:
    - stih410 cleanups
    - Create fbdev at binding
    - HQVDP fixes
    - Remove stih416 chip functionality
    - DVI/HDMI mode selection fixes
    - FPS statistic reporting

    omapdrm:
    - IRQ code cleanup

    dwi-hdmi bridge:
    - Cleanups and fixes

    adv-bridge:
    - Updates for nexus

    sii8520 bridge:
    - Add interlace mode support
    - Rework HDMI and lots of fixes

    qxl:
    - probing/teardown cleanups

    ZTE drm:
    - HDMI audio via SPDIF interface
    - Video Layer overlay plane support
    - Add TV encoder output device

    atmel-hlcdc:
    - Rework fbdev creation logic

    tegra:
    - OF node fix

    fsl-dcu:
    - Minor fixes

    mali-dp:
    - Assorted fixes

    sunxi:
    - Minor fix"

    [ This was the "fixed" pull, that still had build warnings due to people
    not even having build tested the result. I'm not a happy camper

    I've fixed the things I noticed up in this merge. - Linus ]

    * tag 'drm-for-v4.11-less-shouty' of git://people.freedesktop.org/~airlied/linux: (1177 commits)
    lib/Kconfig: make PRIME_NUMBERS not user selectable
    drm/tinydrm: helpers: Properly fix backlight dependency
    drm/tinydrm: mipi-dbi: Fix field width specifier warning
    drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized
    drm/sti: fix build warnings in sti_drv.c and sti_vtg.c files
    drm/amd/powerplay: fix PSI feature on Polars12
    drm/amdgpu: refuse to reserve io mem for split VRAM buffers
    drm/ttm: fix use-after-free races in vm fault handling
    drm/tinydrm: Add support for Multi-Inno MI0283QT display
    dt-bindings: Add Multi-Inno MI0283QT binding
    dt-bindings: display/panel: Add common rotation property
    of: Add vendor prefix for Multi-Inno
    drm/tinydrm: Add MIPI DBI support
    drm/tinydrm: Add helper functions
    drm: Add DRM support for tiny LCD displays
    drm/amd/amdgpu: post card if there is real hw resetting performed
    drm/nouveau/tmr: provide backtrace when a timeout is hit
    drm/nouveau/pci/g92: Fix rearm
    drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios
    drm/nouveau/hwmon: expose power_max and power_crit
    ..

    Linus Torvalds
     

23 Feb, 2017

1 commit


22 Feb, 2017

6 commits

  • A few more cleanups and improvements that have been overlooked:

    - Use ARRAY_SIZE() macro appropriately
    - Code shuffling for minor optimization
    - Omit superfluous variable initializations
    - Get rid of superfluous NULL checks
    - Add const to snd_us16x08_control_params definitions

    No functional changes.

    Reviewed-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • There are a few places leaking memory and doing double-free in
    mixer_us16x08.c.

    The driver allocates a usb_mixer_elem_info object at each
    add_new_ctl() call. This has to be freed via kctl->private_free, but
    currently this is done properly only for some controls.

    Also, the driver allocates three external objects (comp_store,
    eq_store, meter_store), and these are referred in elem->private_data
    (it's not kctl->private_data). And these have to be released, but
    there are none doing it. Moreover, these extra objects have to be
    released only once. Thus the release should be done only by the first
    kctl element that refers to it.

    For fixing these, we call either snd_usb_mixer_elem_free() (only for
    kctl->private_data) or elem_private_free() (for both
    kctl->private_data and elem->private_data) via kctl->private_free
    appropriately.

    Last but not least, snd_us16x08_controls_create() may return in the
    middle without releasing the allocated *_store objects due to an
    error. For fixing this, we shuffle the allocation code so that it's
    called just before its reference.

    Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
    Reported-by: Takashi Sakamoto
    Reviewed-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Variable length array is used in 'snd_us16x08_meter_get()', while there
    is no need. It's better to purge it because variable length array has
    overhead for stack handling.

    This commit replaces the array with static length. Sparse generated below
    warning.

    sound/usb/mixer_us16x08.c:714:18: warning: Variable length array is used.

    Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     
  • The newly added driver uses the PCM helpers and fails to link if they are disabled:

    sound/built-in.o: In function `hdmi_lpe_audio_runtime_suspend':
    intel_hdmi_audio.c:(.text+0x15906): undefined reference to `snd_pcm_suspend'
    sound/built-in.o: In function `had_pcm_hw_params':
    intel_hdmi_audio.c:(.text+0x15ac7): undefined reference to `snd_pcm_lib_malloc_pages'
    sound/built-in.o: In function `had_pcm_open':
    intel_hdmi_audio.c:(.text+0x15d49): undefined reference to `snd_pcm_hw_constraint_integer'

    This uses a Kconfig 'select' statement to make sure they are enabled.

    Fixes: 5dab11d89777 ("ALSA: x86: hdmi: Add audio support for BYT and CHT")
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Takashi Iwai

    Arnd Bergmann
     
  • Unlike HSW and newer, BYT/CHT devices have no fine control of audio
    power domain in i915 side. Since there is little gain by runtime PM
    on BYT/CHT, so far, this commit removes the pm_runtime_enable() call
    as default.

    User who still wants the runtime PM may adjust the corresponding
    sysfs files (power/control and power/autosuspend_delay_ms)
    appropriately, of course.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • This patch adds a few lines to the driver to use autosuspend for the
    runtime PM. It'll become useful with the combination of the keep-link
    feature.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

21 Feb, 2017

3 commits

  • When accessed inner a file, functions should have static qualifier for
    local-linkage.

    This commit fixes the bug. Sparse generated below warning.

    sound/usb/mixer_us16x08.c:1043:32: warning: symbol 'snd_us16x08_create_meter_store' was not declared. Should it be static?

    Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     
  • When accessed by one referrer inner a file, variables should have static
    qualifier to declare local-linkage.

    This commit fixes the bug. Sparse generated below warnings.
    sound/usb/mixer_us16x08.c:156:13: warning: duplicate const
    sound/usb/mixer_us16x08.c:156:18: warning: symbol 'route_names' was not declared. Should it be static?

    Fixes: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Takashi Iwai

    Takashi Sakamoto
     
  • ASoC: Updates for v4.11

    Another release that's mainly focused on drivers rather than core
    changes, highlights include:

    - A huge batch of updates to the Intel drivers, mainly around
    DisplayPort and HDMI with some additional board support too.
    - Channel mapping support for HDMI.
    - Support for AllWinner A31 and A33, Everest Semiconductor ES8328,
    Nuvoton NAU8540.

    Takashi Iwai
     

20 Feb, 2017

11 commits