Skip to content
  1. Jan 22, 2021
  2. Jan 21, 2021
    • Takashi Iwai's avatar
      ALSA: usb-audio: Fix hw constraints dependencies · 506c203c
      Takashi Iwai authored
      Since the recent refactoring, it's been reported that some USB-audio
      devices (typically webcams) are no longer detected properly by
      PulseAudio.  The debug session revealed that it's failing at probing
      by PA to try the sample rate 44.1kHz while the device has discrete
      sample rates other than 44.1kHz.  But the puzzle was that arecord
      works as is, and some other devices with the discrete rates work,
      either.
      
      After all, this turned out to be the lack of the dependencies in a few
      hw constraint rules: snd_pcm_hw_rule_add() has the (variable)
      arguments specifying the dependent parameters, and some functions
      didn't set the target parameter itself as the dependencies.  This
      resulted in an invalid parameter that could be generated only in a
      certain call pattern.  This bug itself has been present in the code,
      but it didn't trigger errors just because the rules were casually
      avoiding such a corner case.  After the recent refactoring and
      cleanup, however, the hw constraints work "as expected", and the
      problem surfaced now.
      
      For fixing the problem above, this patch adds the missing dependent
      parameters to each snd_pcm_hw_rule() call.
      
      Fixes: bc4e94aa
      
       ("ALSA: usb-audio: Handle discrete rates properly in hw constraints")
      BugLink: http://bugzilla.opensuse.org/show_bug.cgi?id=1181014
      Link: https://lore.kernel.org/r/20210120204554.30177-1-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      506c203c
  3. Jan 19, 2021
    • Kai-Heng Feng's avatar
      ALSA: hda: Balance runtime/system PM if direct-complete is disabled · 2b73649c
      Kai-Heng Feng authored
      After hibernation, HDA controller can't be runtime-suspended after
      commit 215a22ed
      
       ("ALSA: hda: Refactor codjc PM to use
      direct-complete optimization"), which enables direct-complete for HDA
      codec.
      
      The HDA codec driver didn't expect direct-complete will be disabled
      after it returns a positive value from prepare() callback. However,
      there are some places that PM core can disable direct-complete. For
      instance, system hibernation or when codec has subordinates like LEDs.
      
      So if the codec is prepared for direct-complete but PM core still calls
      codec's suspend or freeze callback, partially revert the commit and take
      the original approach, which uses pm_runtime_force_*() helpers to
      ensure PM refcount are balanced. Meanwhile, still keep prepare() and
      complete() callbacks to enable direct-complete and request a resume for
      jack detection, respectively.
      
      Reported-by: default avatarKenneth R. Crudup <kenny@panix.com>
      Fixes: 215a22ed
      
       ("ALSA: hda: Refactor codec PM to use direct-complete optimization")
      Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
      Link: https://lore.kernel.org/r/20210119152145.346558-1-kai.heng.feng@canonical.com
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2b73649c
    • Takashi Iwai's avatar
      Merge tag 'asoc-fix-v5.11-rc4' of... · c23010ff
      Takashi Iwai authored
      Merge tag 'asoc-fix-v5.11-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Fixes for v5.11
      
      A few more fixes for v5.11, mostly around HDA jack detection, plus
      a couple of updates to the MAINTAINERS entries.
      c23010ff
  4. Jan 18, 2021
    • Takashi Iwai's avatar
      ALSA: usb-audio: Avoid implicit feedback on Pioneer devices · 532a208a
      Takashi Iwai authored
      For addressing the regression on Pioneer devices, we recently
      corrected the quirk code to enable the implicit feedback mode on those
      devices properly.  However, the devices still showed problems with the
      full duplex operations with JACK, and after debug sessions, we figured
      out that the older kernels that had worked with JACK also didn't use
      the implicit feedback mode at all although they had the quirk code to
      enable it; instead, the old code worked just to skip the normal sync
      endpoint setup that would have been detected without it.  IOW, what
      broke without the implicit-fb quirk in the past was the application of
      the normal sync endpoint that is actually the capture data endpoint on
      these devices.
      
      This patch covers the overseen piece: it modifies the quirk code again
      not to enable the implicit feedback mode but just to make the driver
      skipping the sync endpoint detection.  This made the driver working
      with JACK full-duplex mode again.
      
      Still it's not quite clear why the implicit feedback doesn't work on
      those devices yet; maybe it's about some issues in the URB setup.  But
      at least, with this patch, the driver should work in the level of the
      older kernels again.
      
      Fixes: 167c9dc8
      
       ("ALSA: usb-audio: Fix implicit feedback sync setup for Pioneer devices")
      Link: https://lore.kernel.org/r/20210118075816.25068-4-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      532a208a
    • Takashi Iwai's avatar
      ALSA: usb-audio: Set sample rate for all sharing EPs on UAC1 · 3784d449
      Takashi Iwai authored
      The UAC2/3 sample rate setup is based on the clock node, which is
      usually shared in the interface, and can't be re-setup without
      deselecting the interface once, and that's how the current code
      behaves.  OTOH, the sample rate setup of UAC1 is per endpoint, hence
      we basically need to call for each endpoint usage even if those share
      the same interface.
      
      This patch fixes the behavior of UAC1 to call always
      snd_usb_init_sample_rate() in snd_usb_endpoint_configure().
      
      Fixes: bf6313a0
      
       ("ALSA: usb-audio: Refactor endpoint management")
      Link: https://lore.kernel.org/r/20210118075816.25068-3-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      3784d449
    • Takashi Iwai's avatar
      ALSA: usb-audio: Fix UAC1 rate setup for secondary endpoints · 87cb9af9
      Takashi Iwai authored
      
      
      The current sample rate setup function for UAC1 assumes only the first
      endpoint retrieved from the interface:altset pair, but the rate set up
      may be needed also for the secondary endpoint.  Also, retrieving the
      endpoint number from the interface descriptor is redundant; we have
      already the target endpoint in the given audioformat object.
      
      This patch simplifies the code and corrects the target endpoint as
      described in the above.  It simply refers to fmt->endpoint directly.
      
      Also, this patch drops the pioneer_djm_set_format_quirk() that is
      caleld from snd_usb_set_format_quirk(); this function does the sample
      rate setup but for the capture endpoint (0x82), and that's exactly
      what the change above fixes.
      
      Link: https://lore.kernel.org/r/20210118075816.25068-2-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      87cb9af9
  5. Jan 16, 2021
  6. Jan 15, 2021
  7. Jan 14, 2021
    • Takashi Iwai's avatar
      ALSA: hda/via: Add minimum mute flag · 67ea698c
      Takashi Iwai authored
      
      
      It turned out that VIA codecs also mute the sound in the lowest mixer
      level.  Turn on the dac_min_mute flag to indicate the mute-as-minimum
      in TLV like already done in Conexant and IDT codecs.
      
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=210559
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210114072453.11379-1-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      67ea698c
    • Chris Chiu's avatar
      ALSA: hda/realtek - Limit int mic boost on Acer Aspire E5-575T · 495dc763
      Chris Chiu authored
      
      
      The Acer Apire E5-575T laptop with codec ALC255 has a terrible
      background noise comes from internal mic capture. And the jack
      sensing dose not work for headset like some other Acer laptops.
      
      This patch limits the internal mic boost on top of the existing
      ALC255_FIXUP_ACER_MIC_NO_PRESENCE quirk for Acer Aspire E5-575T.
      
      Signed-off-by: default avatarChris Chiu <chiu@endlessos.org>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210114082728.74729-1-chiu@endlessos.org
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      495dc763
    • Takashi Iwai's avatar
      ALSA: usb-audio: Always apply the hw constraints for implicit fb sync · e4ea77f8
      Takashi Iwai authored
      Since the commit 5a6c3e11 ("ALSA: usb-audio: Add hw constraint for
      implicit fb sync"), we apply the hw constraints for the implicit
      feedback sync to make the secondary open aligned with the already
      opened stream setup.  This change assumed that the secondary open is
      performed after the first stream has been already set up, and adds the
      hw constraints to sync with the first stream's parameters only when
      the EP setup for the first stream was confirmed at the open time.
      However, most of applications handling the full-duplex operations do
      open both playback and capture streams at first, then set up both
      streams.  This results in skipping the additional hw constraints since
      the counter-part stream hasn't been set up yet at the open of the
      second stream, and it eventually leads to "incompatible EP" error in
      the end.
      
      This patch corrects the behavior by always applying the hw constraints
      for the implicit fb sync.  The hw constraint rules are defined so that
      they check the sync EP dynamically at each invocation, instead.  This
      covers the concurrent stream setups better and lets the hw refine
      calls resolving to the right configuration.
      
      Also this patch corrects a minor error that has existed in the debug
      print that isn't built as default.
      
      Fixes: 5a6c3e11
      
       ("ALSA: usb-audio: Add hw constraint for implicit fb sync")
      Link: https://lore.kernel.org/r/20210111081611.12790-1-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      e4ea77f8
    • Mark Brown's avatar
      Merge v5.11-rc3 · cea06d9b
      Mark Brown authored
      cea06d9b
    • Kai Vehmanen's avatar
      ASoC: SOF: Intel: fix page fault at probe if i915 init fails · 9c25af25
      Kai Vehmanen authored
      
      
      The earlier commit to fix runtime PM in case i915 init fails,
      introduces a possibility to hit a page fault.
      
      snd_hdac_ext_bus_device_exit() is designed to be called from
      dev.release(). Calling it outside device reference counting, is
      not safe and may lead to calling the device_exit() function
      twice. Additionally, as part of ext_bus_device_init(), the device
      is also registered with snd_hdac_device_register(). Thus before
      calling device_exit(), the device must be removed from device
      hierarchy first.
      
      Fix the issue by rolling back init actions by calling
      hdac_device_unregister() and then releasing device with put_device().
      This matches with existing code in hdac-ext module.
      
      To complete the fix, add handling for the case where
      hda_codec_load_module() returns -ENODEV, and clean up the hdac_ext
      resources also in this case.
      
      In future work, hdac-ext interface should be extended to allow clients
      more flexibility to handle the life-cycle of individual devices, beyond
      just the current snd_hdac_ext_bus_device_remove(), which removes all
      devices.
      
      BugLink: https://github.com/thesofproject/linux/issues/2646
      Reported-by: default avatarJaroslav Kysela <perex@perex.cz>
      Fixes: 6c63c954
      
       ("ASoC: SOF: fix a runtime pm issue in SOF when HDMI codec doesn't work")
      Signed-off-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
      Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
      Reviewed-by: default avatarLibin Yang <libin.yang@intel.com>
      Reviewed-by: default avatarBard Liao <bard.liao@intel.com>
      Link: https://lore.kernel.org/r/20210113150715.3992635-1-kai.vehmanen@linux.intel.com
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      9c25af25
    • Kai Vehmanen's avatar
      ALSA: hda: Add AlderLake-P PCI ID and HDMI codec vid · 5e941fc0
      Kai Vehmanen authored
      
      
      Add HD Audio PCI ID and HDMI codec vendor ID for Intel AlderLake-P.
      
      Signed-off-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
      Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
      Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Reviewed-by: default avatarGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
      Link: https://lore.kernel.org/r/20210113155629.4097057-1-kai.vehmanen@linux.intel.com
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      5e941fc0
  8. Jan 13, 2021
    • Kai-Heng Feng's avatar
      ASoC: SOF: Intel: hda: Avoid checking jack on system suspend · ef4d764c
      Kai-Heng Feng authored
      System takes a very long time to suspend after commit 215a22ed
      ("ALSA: hda: Refactor codec PM to use direct-complete optimization"):
      [   90.065964] PM: suspend entry (s2idle)
      [   90.067337] Filesystems sync: 0.001 seconds
      [   90.185758] Freezing user space processes ... (elapsed 0.002 seconds) done.
      [   90.188713] OOM killer disabled.
      [   90.188714] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
      [   90.190024] printk: Suspending console(s) (use no_console_suspend to debug)
      [   90.904912] intel_pch_thermal 0000:00:12.0: CPU-PCH is cool [49C], continue to suspend
      [  321.262505] snd_hda_codec_realtek ehdaudio0D0: Unable to sync register 0x2b8000. -5
      [  328.426919] snd_hda_codec_realtek ehdaudio0D0: Unable to sync register 0x2b8000. -5
      [  329.490933] ACPI: EC: interrupt blocked
      
      That commit keeps the codec suspended during the system suspend. However,
      mute/micmute LED will clear codec's direct-complete flag by
      dpm_clear_superiors_direct_complete().
      
      This doesn't play well with SOF driver. When its runtime resume is
      called for system suspend, hda_codec_jack_check() schedules
      jackpoll_work which uses snd_hdac_is_power_on() to check whether codec
      is suspended. Because the direct-complete path isn't taken,
      pm_runtime_disable() isn't called so snd_hdac_is_power_on() returns
      false and jackpoll continues to run, and snd_hda_power_up_pm() cannot
      power up an already suspended codec in multiple attempts, causes the
      long delay on system suspend:
      
      if (dev->power.direct_complete) {
      	if (pm_runtime_status_suspended(dev)) {
      		pm_runtime_disable(dev);
      		if (pm_runtime_status_suspended(dev)) {
      			pm_dev_dbg(dev, state, "direct-complete ");
      			goto Complete;
      		}
      
      		pm_runtime_enable(dev);
      	}
      	dev->power.direct_complete = false;
      }
      
      When direct-complete path is taken, snd_hdac_is_power_on() returns true
      and hda_jackpoll_work() is skipped by accident. So this is still not
      correct.
      
      If we were to use snd_hdac_is_power_on() in system PM path,
      pm_runtime_status_suspended() should be used instead of
      pm_runtime_suspended(), otherwise pm_runtime_{enable,disable}() may
      change the outcome of snd_hdac_is_power_on().
      
      Because devices suspend in reverse order (i.e. child first), it doesn't
      make much sense to resume an already suspended codec from audio
      controller. So avoid the issue by making sure jackpoll isn't used in
      system PM process.
      
      Fixes: 215a22ed
      
       ("ALSA: hda: Refactor codec PM to use direct-complete optimization")
      Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
      Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
      Link: https://lore.kernel.org/r/20210112181128.1229827-3-kai.heng.feng@canonical.com
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ef4d764c
    • Kai-Heng Feng's avatar
      ASoC: SOF: Intel: hda: Modify existing helper to disable WAKEEN · 31ba0c07
      Kai-Heng Feng authored
      
      
      Modify hda_codec_jack_wake_enable() to also support disable WAKEEN.
      In addition, this patch also moves the WAKEEN disablement call out of
      hda_codec_jack_check() into hda_codec_jack_wake_enable().
      
      This is a preparation for next patch.
      
      No functional change intended.
      
      Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
      Link: https://lore.kernel.org/r/20210112181128.1229827-2-kai.heng.feng@canonical.com
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      31ba0c07
    • Kai-Heng Feng's avatar
      ASoC: SOF: Intel: hda: Resume codec to do jack detection · bcd7059a
      Kai-Heng Feng authored
      Instead of queueing jackpoll_work, runtime resume the codec to let it
      use different jack detection methods based on jackpoll_interval.
      
      This partially matches SOF driver's behavior with commit a6e7d0a4
      
      
      ("ALSA: hda: fix jack detection with Realtek codecs when in D3"), the
      difference is SOF unconditionally resumes the codec.
      
      Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
      Link: https://lore.kernel.org/r/20210112181128.1229827-1-kai.heng.feng@canonical.com
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      bcd7059a
    • Mauro Carvalho Chehab's avatar
      MAINTAINERS: update references to stm32 audio bindings · 0d38fd8d
      Mauro Carvalho Chehab authored
      Changeset 81437cc3
      
       ("Merge series "dt-bindings: stm32: convert audio dfsdm to json-schema" from Olivier Moysan <olivier.moysan@st.com>:")
      removed bindings/sound/st,stm32-adfsdm.txt, as stm32-* audio
      bindings are now under: bindings/iio/adc/st,stm32-*.yaml.
      
      Update cross-references to them accordingly.
      
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
      Link: https://lore.kernel.org/r/03950bbd5cf7bac10eaaff3725e283d3ec2538c5.1610536535.git.mchehab+huawei@kernel.org
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      0d38fd8d
  9. Jan 12, 2021
  10. Jan 11, 2021
    • Linus Torvalds's avatar
      Linux 5.11-rc3 · 7c53f6b6
      Linus Torvalds authored
      7c53f6b6
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.11' of... · 20210a98
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Search for <ncurses.h> in the default header path of HOSTCC
      
       - Tweak the option order to be kind to old BSD awk
      
       - Remove 'kvmconfig' and 'xenconfig' shorthands
      
       - Fix documentation
      
      * tag 'kbuild-fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        Documentation: kbuild: Fix section reference
        kconfig: remove 'kvmconfig' and 'xenconfig' shorthands
        lib/raid6: Let $(UNROLL) rules work with macOS userland
        kconfig: Support building mconf with vendor sysroot ncurses
        kconfig: config script: add a little user help
        MAINTAINERS: adjust GCC PLUGINS after gcc-plugin.sh removal
      20210a98
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 688daed2
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "This is two driver fixes (megaraid_sas and hisi_sas).
      
        The megaraid one is a revert of a previous revert of a cpu hotplug fix
        which exposed a bug in the block layer which has been fixed in this
        merge window.
      
        The hisi_sas performance enhancement comes from switching to interrupt
        managed completion queues, which depended on the addition of
        devm_platform_get_irqs_affinity() which is now upstream via the irq
        tree in the last merge window"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: hisi_sas: Expose HW queues for v2 hw
        Revert "Revert "scsi: megaraid_sas: Added support for shared host tagset for cpuhotplug""
      688daed2
    • Linus Torvalds's avatar
      Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block · ed41fd07
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Missing CRC32 selections (Arnd)
      
       - Fix for a merge window regression with bdev inode init (Christoph)
      
       - bcache fixes
      
       - rnbd fixes
      
       - NVMe pull request from Christoph:
          - fix a race in the nvme-tcp send code (Sagi Grimberg)
          - fix a list corruption in an nvme-rdma error path (Israel Rukshin)
          - avoid a possible double fetch in nvme-pci (Lalithambika Krishnakumar)
          - add the susystem NQN quirk for a Samsung driver (Gopal Tiwari)
          - fix two compiler warnings in nvme-fcloop (James Smart)
          - don't call sleeping functions from irq context in nvme-fc (James Smart)
          - remove an unused argument (Max Gurtovoy)
          - remove unused exports (Minwoo Im)
      
       - Use-after-free fix for partition iteration (Ming)
      
       - Missing blk-mq debugfs flag annotation (John)
      
       - Bdev freeze regression fix (Satya)
      
       - blk-iocost NULL pointer deref fix (Tejun)
      
      * tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block: (26 commits)
        bcache: set bcache device into read-only mode for BCH_FEATURE_INCOMPAT_OBSO_LARGE_BUCKET
        bcache: introduce BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE for large bucket
        bcache: check unsupported feature sets for bcache register
        bcache: fix typo from SUUP to SUPP in features.h
        bcache: set pdev_set_uuid before scond loop iteration
        blk-mq-debugfs: Add decode for BLK_MQ_F_TAG_HCTX_SHARED
        block/rnbd-clt: avoid module unload race with close confirmation
        block/rnbd: Adding name to the Contributors List
        block/rnbd-clt: Fix sg table use after free
        block/rnbd-srv: Fix use after free in rnbd_srv_sess_dev_force_close
        block/rnbd: Select SG_POOL for RNBD_CLIENT
        block: pre-initialize struct block_device in bdev_alloc_inode
        fs: Fix freeze_bdev()/thaw_bdev() accounting of bd_fsfreeze_sb
        nvme: remove the unused status argument from nvme_trace_bio_complete
        nvmet-rdma: Fix list_del corruption on queue establishment failure
        nvme: unexport functions with no external caller
        nvme: avoid possible double fetch in handling CQE
        nvme-tcp: Fix possible race of io_work and direct send
        nvme-pci: mark Samsung PM1725a as IGNORE_DEV_SUBNQN
        nvme-fcloop: Fix sscanf type and list_first_entry_or_null warnings
        ...
      ed41fd07
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.11-2021-01-10' of git://git.kernel.dk/linux-block · d430adfe
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "A bit larger than I had hoped at this point, but it's all changes that
        will be directed towards stable anyway. In detail:
      
         - Fix a merge window regression on error return (Matthew)
      
         - Remove useless variable declaration/assignment (Ye Bin)
      
         - IOPOLL fixes (Pavel)
      
         - Exit and cancelation fixes (Pavel)
      
         - fasync lockdep complaint fix (Pavel)
      
         - Ensure SQPOLL is synchronized with creator life time (Pavel)"
      
      * tag 'io_uring-5.11-2021-01-10' of git://git.kernel.dk/linux-block:
        io_uring: stop SQPOLL submit on creator's death
        io_uring: add warn_once for io_uring_flush()
        io_uring: inline io_uring_attempt_task_drop()
        io_uring: io_rw_reissue lockdep annotations
        io_uring: synchronise ev_posted() with waitqueues
        io_uring: dont kill fasync under completion_lock
        io_uring: trigger eventfd for IOPOLL
        io_uring: Fix return value from alloc_fixed_file_ref_node
        io_uring: Delete useless variable ‘id’ in io_prep_async_work
        io_uring: cancel more aggressively in exit_work
        io_uring: drop file refs after task cancel
        io_uring: patch up IOPOLL overflow_flush sync
        io_uring: synchronise IOPOLL on task_submit fail
      d430adfe
    • Linus Torvalds's avatar
      Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 28318f53
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are a number of small USB driver fixes for 5.11-rc3.
      
        Include in here are:
      
         - USB gadget driver fixes for reported issues
      
         - new usb-serial driver ids
      
         - dma from stack bugfixes
      
         - typec bugfixes
      
         - dwc3 bugfixes
      
         - xhci driver bugfixes
      
         - other small misc usb driver bugfixes
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (35 commits)
        usb: dwc3: gadget: Clear wait flag on dequeue
        usb: typec: Send uevent for num_altmodes update
        usb: typec: Fix copy paste error for NVIDIA alt-mode description
        usb: gadget: enable super speed plus
        kcov, usb: hide in_serving_softirq checks in __usb_hcd_giveback_urb
        usb: uas: Add PNY USB Portable SSD to unusual_uas
        usb: gadget: configfs: Preserve function ordering after bind failure
        usb: gadget: select CONFIG_CRC32
        usb: gadget: core: change the comment for usb_gadget_connect
        usb: gadget: configfs: Fix use-after-free issue with udc_name
        usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup
        usb: usbip: vhci_hcd: protect shift size
        USB: usblp: fix DMA to stack
        USB: serial: iuu_phoenix: fix DMA from stack
        USB: serial: option: add LongSung M5710 module support
        USB: serial: option: add Quectel EM160R-GL
        USB: Gadget: dummy-hcd: Fix shift-out-of-bounds bug
        usb: gadget: f_uac2: reset wMaxPacketSize
        usb: dwc3: ulpi: Fix USB2.0 HS/FS/LS PHY suspend regression
        usb: dwc3: ulpi: Replace CPU-based busyloop with Protocol-based one
        ...
      28318f53
    • Linus Torvalds's avatar
      Merge tag 'staging-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 4ad9a28f
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are some small staging driver fixes for 5.11-rc3. Nothing major,
        just resolving some reported issues:
      
         - cleanup some remaining mentions of the ION drivers that were
           removed in 5.11-rc1
      
         - comedi driver bugfix
      
         - two error path memory leak fixes
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'staging-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: ION: remove some references to CONFIG_ION
        staging: mt7621-dma: Fix a resource leak in an error handling path
        Staging: comedi: Return -EFAULT if copy_to_user() fails
        staging: spmi: hisi-spmi-controller: Fix some error handling paths
      4ad9a28f
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · e07cd2f3
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char and misc driver fixes for 5.11-rc3.
      
        The majority here are fixes for the habanalabs drivers, but also in
        here are:
      
         - crypto driver fix
      
         - pvpanic driver fix
      
         - updated font file
      
         - interconnect driver fixes
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (26 commits)
        Fonts: font_ter16x32: Update font with new upstream Terminus release
        misc: pvpanic: Check devm_ioport_map() for NULL
        speakup: Add github repository URL and bug tracker
        MAINTAINERS: Update Georgi's email address
        crypto: asym_tpm: correct zero out potential secrets
        habanalabs: Fix memleak in hl_device_reset
        interconnect: imx8mq: Use icc_sync_state
        interconnect: imx: Remove a useless test
        interconnect: imx: Add a missing of_node_put after of_device_is_available
        interconnect: qcom: fix rpmh link failures
        habanalabs: fix order of status check
        habanalabs: register to pci shutdown callback
        habanalabs: add validation cs counter, fix misplaced counters
        habanalabs/gaudi: retry loading TPC f/w on -EINTR
        habanalabs: adjust pci controller init to new firmware
        habanalabs: update comment in hl_boot_if.h
        habanalabs/gaudi: enhance reset message
        habanalabs: full FW hard reset support
        habanalabs/gaudi: disable CGM at HW initialization
        habanalabs: Revise comment to align with mirror list name
        ...
      e07cd2f3
    • Viresh Kumar's avatar
      Documentation: kbuild: Fix section reference · 5625dcfb
      Viresh Kumar authored
      
      
      Section 3.11 was incorrectly called 3.9, fix it.
      
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      5625dcfb
    • Linus Torvalds's avatar
      Merge tag 'arc-5.11-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 0653161f
      Linus Torvalds authored
      Pull ARC fixes from Vineet Gupta:
      
       - Address the 2nd boot failure due to snafu in signal handling code
         (first was generic console ttynull issue)
      
       - misc other fixes
      
      * tag 'arc-5.11-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: [hsdk]: Enable FPU_SAVE_RESTORE
        ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling
        include/soc: remove headers for EZChip NPS
        arch/arc: add copy_user_page() to <asm/page.h> to fix build error on ARC
      0653161f
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · b3cd1a16
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - A fix for machine check handling with VMAP stack on 32-bit.
      
       - A clang build fix.
      
      Thanks to Christophe Leroy and Nathan Chancellor.
      
      * tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc: Handle .text.{hot,unlikely}.* in linker script
        powerpc/32s: Fix RTAS machine check with VMAP stack
      b3cd1a16
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.11_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a440e4d7
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
       "As expected, fixes started trickling in after the holidays so here is
        the accumulated pile of x86 fixes for 5.11:
      
         - A fix for fanotify_mark() missing the conversion of x86_32 native
           syscalls which take 64-bit arguments to the compat handlers due to
           former having a general compat handler. (Brian Gerst)
      
         - Add a forgotten pmd page destructor call to pud_free_pmd_page()
           where a pmd page is freed. (Dan Williams)
      
         - Make IN/OUT insns with an u8 immediate port operand handling for
           SEV-ES guests more precise by using only the single port byte and
           not the whole s32 value of the insn decoder. (Peter Gonda)
      
         - Correct a straddling end range check before returning the proper
           MTRR type, when the end address is the same as top of memory.
           (Ying-Tsun Huang)
      
         - Change PQR_ASSOC MSR update scheme when moving a task to a resctrl
           resource group to avoid significant performance overhead with some
           resctrl workloads. (Fenghua Yu)
      
         - Avoid the actual task move overhead when the task is already in the
           resource group. (Fenghua Yu)"
      
      * tag 'x86_urgent_for_v5.11_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/resctrl: Don't move a task to the same resource group
        x86/resctrl: Use an IPI instead of task_work_add() to update PQR_ASSOC MSR
        x86/mtrr: Correct the range check before performing MTRR type lookups
        x86/sev-es: Fix SEV-ES OUT/IN immediate opcode vc handling
        x86/mm: Fix leak of pmd ptlock
        fanotify: Fix sys_fanotify_mark() on native x86-32
      a440e4d7
  11. Jan 10, 2021
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v5.11-rc3' of... · 2ff90100
      Linus Torvalds authored
      Merge tag 'hwmon-for-v5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - Fix possible KASAN issue in amd_energy driver
      
       - Avoid configuration problem in pwm-fan driver
      
       - Fix kernel-doc warning in sbtsi_temp documentation
      
      * tag 'hwmon-for-v5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (amd_energy) fix allocation of hwmon_channel_info config
        hwmon: (pwm-fan) Ensure that calculation doesn't discard big period values
        hwmon: (sbtsi_temp) Fix Documenation kernel-doc warning
      2ff90100