1. 23 6月, 2021 1 次提交
  2. 30 5月, 2021 1 次提交
  3. 30 3月, 2021 2 次提交
  4. 18 3月, 2021 1 次提交
  5. 10 3月, 2021 1 次提交
  6. 12 2月, 2021 1 次提交
  7. 03 2月, 2021 1 次提交
  8. 28 1月, 2021 1 次提交
  9. 25 1月, 2021 1 次提交
  10. 15 1月, 2021 2 次提交
  11. 14 1月, 2021 1 次提交
  12. 12 1月, 2021 1 次提交
  13. 08 1月, 2021 1 次提交
  14. 04 1月, 2021 1 次提交
    • T
      ALSA: hda/via: Fix runtime PM for Clevo W35xSS · 4bfd6247
      Takashi Iwai 提交于
      Clevo W35xSS_370SS with VIA codec has had the runtime PM problem that
      looses the power state of some nodes after the runtime resume.  This
      was worked around by disabling the default runtime PM via a denylist
      entry.  Since 5.10.x made the runtime PM applied (casually) even
      though it's disabled in the denylist, this problem was revisited.  The
      result was that disabling power_save_node feature suffices for the
      runtime PM problem.
      
      This patch implements the disablement of power_save_node feature in
      VIA codec for the device.  It also drops the former denylist entry,
      too, as the runtime PM should work in the codec side properly now.
      
      Fixes: b529ef24 ("ALSA: hda: Add Clevo W35xSS_370SS to the power_save blacklist")
      Reported-by: NChristian Labisch <clnetbox@gmail.com>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210104153046.19993-1-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      4bfd6247
  15. 16 11月, 2020 1 次提交
  16. 28 10月, 2020 2 次提交
  17. 12 10月, 2020 1 次提交
  18. 21 9月, 2020 2 次提交
  19. 03 9月, 2020 1 次提交
  20. 25 8月, 2020 1 次提交
    • T
      Revert "ALSA: hda: Add support for Loongson 7A1000 controller" · eed8f88b
      Tiezhu Yang 提交于
      This reverts commit 61eee4a7 ("ALSA: hda: Add support for Loongson
      7A1000 controller") to fix the following error on the Loongson LS7A
      platform:
      
      rcu: INFO: rcu_preempt self-detected stall on CPU
      <SNIP>
      NMI backtrace for cpu 0
      CPU: 0 PID: 68 Comm: kworker/0:2 Not tainted 5.8.0+ #3
      Hardware name:  , BIOS
      Workqueue: events azx_probe_work [snd_hda_intel]
      <SNIP>
      Call Trace:
      [<ffffffff80211a64>] show_stack+0x9c/0x130
      [<ffffffff8065a740>] dump_stack+0xb0/0xf0
      [<ffffffff80665774>] nmi_cpu_backtrace+0x134/0x140
      [<ffffffff80665910>] nmi_trigger_cpumask_backtrace+0x190/0x200
      [<ffffffff802b1abc>] rcu_dump_cpu_stacks+0x12c/0x190
      [<ffffffff802b08cc>] rcu_sched_clock_irq+0xa2c/0xfc8
      [<ffffffff802b91d4>] update_process_times+0x2c/0xb8
      [<ffffffff802cad80>] tick_sched_timer+0x40/0xb8
      [<ffffffff802ba5f0>] __hrtimer_run_queues+0x118/0x1d0
      [<ffffffff802bab74>] hrtimer_interrupt+0x12c/0x2d8
      [<ffffffff8021547c>] c0_compare_interrupt+0x74/0xa0
      [<ffffffff80296bd0>] __handle_irq_event_percpu+0xa8/0x198
      [<ffffffff80296cf0>] handle_irq_event_percpu+0x30/0x90
      [<ffffffff8029d958>] handle_percpu_irq+0x88/0xb8
      [<ffffffff80296124>] generic_handle_irq+0x44/0x60
      [<ffffffff80b3cfd0>] do_IRQ+0x18/0x28
      [<ffffffff8067ace4>] plat_irq_dispatch+0x64/0x100
      [<ffffffff80209a20>] handle_int+0x140/0x14c
      [<ffffffff802402e8>] irq_exit+0xf8/0x100
      
      Because AZX_DRIVER_GENERIC can not work well for Loongson LS7A HDA
      controller, it needs some workarounds which are not merged into the
      upstream kernel at this time, so it should revert this patch now.
      
      Fixes: 61eee4a7 ("ALSA: hda: Add support for Loongson 7A1000 controller")
      Cc: <stable@vger.kernel.org> # 5.9-rc1+
      Signed-off-by: NTiezhu Yang <yangtiezhu@loongson.cn>
      Link: https://lore.kernel.org/r/1598348388-2518-1-git-send-email-yangtiezhu@loongson.cnSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      eed8f88b
  21. 03 8月, 2020 1 次提交
  22. 28 7月, 2020 1 次提交
    • T
      ALSA: hda: Workaround for spurious wakeups on some Intel platforms · a6630529
      Takashi Iwai 提交于
      We've received a regression report on Intel HD-audio controller that
      wakes up immediately after S3 suspend.  The bisection leads to the
      commit c4c8dd6e ("ALSA: hda: Skip controller resume if not
      needed").  This commit replaces the system-suspend to use
      pm_runtime_force_suspend() instead of the direct call of
      __azx_runtime_suspend().  However, by some really mysterious reason,
      pm_runtime_force_suspend() causes a spurious wakeup (although it calls
      the same __azx_runtime_suspend() internally).
      
      As an ugly workaround for now, revert the behavior to call
      __azx_runtime_suspend() and __azx_runtime_resume() for those old Intel
      platforms that may exhibit such a problem, while keeping the new
      standard pm_runtime_force_suspend() and pm_runtime_force_resume()
      pair for the remaining chips.
      
      Fixes: c4c8dd6e ("ALSA: hda: Skip controller resume if not needed")
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208649
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20200727164443.4233-1-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      a6630529
  23. 17 7月, 2020 1 次提交
  24. 15 7月, 2020 1 次提交
  25. 19 6月, 2020 1 次提交
  26. 18 6月, 2020 1 次提交
  27. 10 6月, 2020 2 次提交
    • M
      mm: reorder includes after introduction of linux/pgtable.h · 65fddcfc
      Mike Rapoport 提交于
      The replacement of <asm/pgrable.h> with <linux/pgtable.h> made the include
      of the latter in the middle of asm includes.  Fix this up with the aid of
      the below script and manual adjustments here and there.
      
      	import sys
      	import re
      
      	if len(sys.argv) is not 3:
      	    print "USAGE: %s <file> <header>" % (sys.argv[0])
      	    sys.exit(1)
      
      	hdr_to_move="#include <linux/%s>" % sys.argv[2]
      	moved = False
      	in_hdrs = False
      
      	with open(sys.argv[1], "r") as f:
      	    lines = f.readlines()
      	    for _line in lines:
      		line = _line.rstrip('
      ')
      		if line == hdr_to_move:
      		    continue
      		if line.startswith("#include <linux/"):
      		    in_hdrs = True
      		elif not moved and in_hdrs:
      		    moved = True
      		    print hdr_to_move
      		print line
      Signed-off-by: NMike Rapoport <rppt@linux.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Cain <bcain@codeaurora.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Greentime Hu <green.hu@gmail.com>
      Cc: Greg Ungerer <gerg@linux-m68k.org>
      Cc: Guan Xuetao <gxt@pku.edu.cn>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Nick Hu <nickhu@andestech.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Stafford Horne <shorne@gmail.com>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Vincent Chen <deanbo422@gmail.com>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Link: http://lkml.kernel.org/r/20200514170327.31389-4-rppt@kernel.orgSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      65fddcfc
    • M
      mm: introduce include/linux/pgtable.h · ca5999fd
      Mike Rapoport 提交于
      The include/linux/pgtable.h is going to be the home of generic page table
      manipulation functions.
      
      Start with moving asm-generic/pgtable.h to include/linux/pgtable.h and
      make the latter include asm/pgtable.h.
      Signed-off-by: NMike Rapoport <rppt@linux.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Cain <bcain@codeaurora.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Greentime Hu <green.hu@gmail.com>
      Cc: Greg Ungerer <gerg@linux-m68k.org>
      Cc: Guan Xuetao <gxt@pku.edu.cn>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Nick Hu <nickhu@andestech.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Stafford Horne <shorne@gmail.com>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Vincent Chen <deanbo422@gmail.com>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Link: http://lkml.kernel.org/r/20200514170327.31389-3-rppt@kernel.orgSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ca5999fd
  28. 03 6月, 2020 1 次提交
  29. 24 4月, 2020 1 次提交
    • T
      ALSA: hda: Match both PCI ID and SSID for driver blacklist · 977dfef4
      Takashi Iwai 提交于
      The commit 3c6fd1f0 ("ALSA: hda: Add driver blacklist") added a
      new blacklist for the devices that are known to have empty codecs, and
      one of the entries was ASUS ROG Zenith II (PCI SSID 1043:874f).
      However, it turned out that the very same PCI SSID is used for the
      previous model that does have the valid HD-audio codecs and the change
      broke the sound on it.
      
      Since the empty codec problem appear on the certain AMD platform (PCI
      ID 1022:1487), this patch changes the blacklist matching to both PCI
      ID and SSID using pci_match_id().  Also, the entry that was removed by
      the previous fix for ASUS ROG Zenigh II is re-added.
      
      Link: https://lore.kernel.org/r/20200424061222.19792-1-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      977dfef4
  30. 23 4月, 2020 1 次提交
    • T
      ALSA: hda: Always use jackpoll helper for jack update after resume · 8d6762af
      Takashi Iwai 提交于
      HD-audio codec driver applies a tricky procedure to forcibly perform
      the runtime resume by mimicking the usage count even if the device has
      been runtime-suspended beforehand.  This was needed to assure to
      trigger the jack detection update after the system resume.
      
      And recently we also applied the similar logic to the HD-audio
      controller side.  However this seems leading to some inconsistency,
      and eventually PCI controller gets screwed up.
      
      This patch is an attempt to fix and clean up those behavior: instead
      of the tricky runtime resume procedure, the existing jackpoll work is
      scheduled when such a forced codec resume is required.  The jackpoll
      work will power up the codec, and this alone should suffice for the
      jack status update in usual cases.  If the extra polling is requested
      (by checking codec->jackpoll_interval), the manual update is invoked
      after that, and the codec is powered down again.
      
      Also, we filter the spurious wake up of the codec from the controller
      runtime resume by checking codec->relaxed_resume flag.  If this flag
      is set, basically we don't need to wake up explicitly, but it's
      supposed to be done via the audio component notifier.
      
      Fixes: c4c8dd6e ("ALSA: hda: Skip controller resume if not needed")
      Link: https://lore.kernel.org/r/20200422203744.26299-1-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      8d6762af
  31. 20 4月, 2020 1 次提交
  32. 14 4月, 2020 4 次提交
    • H
      ALSA: hda: call runtime_allow() for all hda controllers · 9a641848
      Hui Wang 提交于
      Before the pci_driver->probe() is called, the pci subsystem calls
      runtime_forbid() and runtime_get_sync() on this pci dev, so only call
      runtime_put_autosuspend() is not enough to enable the runtime_pm on
      this device.
      
      For controllers with vgaswitcheroo feature, the pci/quirks.c will call
      runtime_allow() for this dev, then the controllers could enter
      rt_idle/suspend/resume, but for non-vgaswitcheroo controllers like
      Intel hda controllers, the runtime_pm is not enabled because the
      runtime_allow() is not called.
      
      Since it is no harm calling runtime_allow() twice, here let hda
      driver call runtime_allow() for all controllers. Then the runtime_pm
      is enabled on all controllers after the put_autosuspend() is called.
      Signed-off-by: NHui Wang <hui.wang@canonical.com>
      Link: https://lore.kernel.org/r/20200414142725.6020-1-hui.wang@canonical.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      9a641848
    • R
      ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported · 3ba21113
      Roy Spliet 提交于
      This fixes runtime PM not working after a suspend-to-RAM cycle at least for
      the codec-less HDA device found on NVIDIA GPUs.
      
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043Signed-off-by: NRoy Spliet <nouveau@spliet.org>
      Link: https://lore.kernel.org/r/20200413082034.25166-7-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      3ba21113
    • T
      ALSA: hda: Skip controller resume if not needed · c4c8dd6e
      Takashi Iwai 提交于
      The HD-audio controller does system-suspend and resume operations by
      directly calling its helpers __azx_runtime_suspend() and
      __azx_runtime_resume().  However, in general, we don't have to resume
      always the device fully at the system resume; typically, if a device
      has been runtime-suspended, we can leave it to runtime resume.
      
      Usually for achieving this, the driver would call
      pm_runtime_force_suspend() and pm_runtime_force_resume() pairs in the
      system suspend and resume ops.  Unfortunately, this doesn't work for
      the resume path in our case.  For handling the jack detection at the
      system resume, a child codec device may need the (literally) forcibly
      resume even if it's been runtime-suspended, and for that, the
      controller device must be also resumed even if it's been suspended.
      
      This patch is an attempt to improve the situation.  It replaces the
      direct __azx_runtime_suspend()/_resume() calls with with
      pm_runtime_force_suspend() and pm_runtime_force_resume() with a slight
      trick as we've done for the codec side.  More exactly:
      
      - azx_has_pm_runtime() check is dropped from azx_runtime_suspend() and
        azx_runtime_resume(), so that it can be properly executed from the
        system-suspend/resume path
      
      - The WAKEEN handling depends on the card's power state now; it's set
        and cleared only for the runtime-suspend
      
      - azx_resume() checks whether any codec may need the forcible resume
        beforehand.  If the forcible resume is required, it does temporary
        PM refcount up/down for actually triggering the runtime resume.
      
      - A new helper function, hda_codec_need_resume(), is introduced for
        checking whether the codec needs a forcible runtime-resume, and the
        existing code is rewritten with that.
      
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043
      Link: https://lore.kernel.org/r/20200413082034.25166-6-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      c4c8dd6e
    • T
      ALSA: hda: Keep the controller initialization even if no codecs found · 9479e75f
      Takashi Iwai 提交于
      Currently, when the HD-audio controller driver doesn't detect any
      codecs, it tries to abort the probe.  But this abort happens at the
      delayed probe, i.e. the primary probe call already returned success,
      hence the driver is never unbound until user does so explicitly.
      As a result, it may leave the HD-audio device in the running state
      without the runtime PM.  More badly, if the device is a HD-audio bus
      that is tied with a GPU, GPU cannot reach to the full power down and
      consumes unnecessarily much power.
      
      This patch changes the logic after no-codec situation; it continues
      probing without the further codec initialization but keep the
      controller driver running normally.
      
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043Tested-by: NRoy Spliet <nouveau@spliet.org>
      Link: https://lore.kernel.org/r/20200413082034.25166-5-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      9479e75f