1. 15 Jan, 2021 4 commits
    • Takashi Iwai's avatar
      ALSA: pci: Simplify with dma_set_mask_and_coherent() · 669f65ea
      Takashi Iwai authored
      Many PCI drivers still have two explicit calls of dma_set_mask() and
      dma_set_coherent_mask().
      
      Let's simplify with dma_set_mask_and_coherent().
      
      Link: https://lore.kernel.org/r/20210114125412.993-2-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      669f65ea
    • Takashi Sakamoto's avatar
      ALSA: dice: add support for Lexicon I-ONIX FW810s · 9a08676f
      Takashi Sakamoto authored
      I-ONIX FW810s was shipped in Lexicon brand of HARMAN International
      industries, Inc 2009. The model uses TCD2220 ASIC as its communication
      engine. TCAT general protocol is supported, its extension isn't.
      
      This patch adds support for the model with hard-coded stream formats.
      
      $ python3 ~/git/linux-firewire-utils/src/crpp < /sys/bus/firewire/devices/fw1/config_rom
                     ROM header and bus information block
                     -----------------------------------------------------------------
      400  04042b91  bus_info_length 4, crc_length 4, crc 11153
      404  31333934  bus_name "1394"
      408  e0008102  irmc 1, cmc 1, isc 1, bmc 0, cyc_clk_acc 0, max_rec 8 (512)
      40c  000fd720  company_id 000fd7     |
      410  007d7ecf  device_id 20007d7ecf  | EUI-64 000fd720007d7ecf
      
                     root directory
                     -----------------------------------------------------------------
      414  00064c2d  directory_length 6, crc 19501
      418  03000fd7  vendor
      41c  8100000a  --> descriptor leaf at 444
      420  17000001  model
      424  8100000d  --> descriptor leaf at 458
      428  0c0087c0  node capabilities per IEEE 1394
      42c  d1000001  --> unit directory at 430
      
                     unit directory at 430
                     -----------------------------------------------------------------
      430  000438f2  directory_length 4, crc 14578
      434  12000fd7  specifier id
      438  13000001  version
      43c  17000001  model
      440  8100000d  --> descriptor leaf at 474
      
                     descriptor leaf at 444
                     -----------------------------------------------------------------
      444  000489d5  leaf_length 4, crc 35285
      448  00000000  textual descriptor
      44c  00000000  minimal ASCII
      450  4c657869  "Lexi"
      454  636f6e00  "con"
      
                     descriptor leaf at 458
                     -----------------------------------------------------------------
      458  0006594b  leaf_length 6, crc 22859
      45c  00000000  textual descriptor
      460  00000000  minimal ASCII
      464  492d4f4e  "I-ON"
      468  49585f46  "IX_F"
      46c  57383130  "W810"
      470  53000000  "S"
      
                     descriptor leaf at 474
                     -----------------------------------------------------------------
      474  0006594b  leaf_length 6, crc 22859
      478  00000000  textual descriptor
      47c  00000000  minimal ASCII
      480  492d4f4e  "I-ON"
      484  49585f46  "IX_F"
      488  57383130  "W810"
      48c  53000000  "S"
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Link: https://lore.kernel.org/r/20210115035623.148580-1-o-takashi@sakamocchi.jpSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      9a08676f
    • Takashi Iwai's avatar
      ALSA: usb-audio: Convert the last strlcpy() usage · 42ef170d
      Takashi Iwai authored
      The last remaining usage of strlcpy() in USB-audio driver is the setup
      of the card longname string.  Basically we need to know whether any
      non-empty string is set or not, and no real length is needed.
      Refactor the code and use strscpy() instead.  After this change,
      strlcpy() is gone from all sound/* code.
      
      Link: https://lore.kernel.org/r/20210115100437.20906-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      42ef170d
    • Takashi Iwai's avatar
      ALSA: usb-audio: Convert remaining strlcpy() to strscpy() · e8afdfdc
      Takashi Iwai authored
      USB-audio driver still contains two calls of strlcpy() because the
      return size is evaluated.  Basically it just checks whether the string
      is copied or not, but since strcpy() may return a negative error code,
      we should check the negative value and treat as filled.
      
      Link: https://lore.kernel.org/r/20210115095758.19707-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      e8afdfdc
  2. 08 Jan, 2021 1 commit
  3. 07 Jan, 2021 3 commits
  4. 04 Jan, 2021 1 commit
    • Takashi Iwai's avatar
      ALSA: hda/via: Fix runtime PM for Clevo W35xSS · 4bfd6247
      Takashi Iwai authored
      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: default avatarChristian Labisch <clnetbox@gmail.com>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210104153046.19993-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      4bfd6247
  5. 03 Jan, 2021 1 commit
  6. 01 Jan, 2021 1 commit
  7. 31 Dec, 2020 4 commits
  8. 29 Dec, 2020 1 commit
  9. 28 Dec, 2020 4 commits
  10. 27 Dec, 2020 8 commits
  11. 26 Dec, 2020 5 commits
  12. 25 Dec, 2020 7 commits
    • Linus Torvalds's avatar
      drm/amd/display: avoid uninitialized variable warning · 61d79136
      Linus Torvalds authored
      clang (quite rightly) complains fairly loudly about the newly added
      mpc1_get_mpc_out_mux() function returning an uninitialized value if the
      'opp_id' checks don't pass.
      
      This may not happen in practice, but the code really shouldn't return
      garbage if the sanity checks don't pass.
      
      So just initialize 'val' to zero to avoid the issue.
      
      Fixes: 110b055b ("drm/amd/display: add getter routine to retrieve mpcc mux")
      Cc: Josip Pavic <Josip.Pavic@amd.com>
      Cc: Bindu Ramamurthy <bindu.r@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      61d79136
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-2020-12-24' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux · 5814bc2d
      Linus Torvalds authored
      Pull more perf tools updates from Arnaldo Carvalho de Melo:
      
       - Refactor 'perf stat' per CPU/socket/die/thread aggregation fixing use
         cases in ARM machines.
      
       - Fix memory leak when synthesizing SDT probes in 'perf probe'.
      
       - Update kernel header copies related to KVM, epol_pwait. msr-index and
         powerpc and s390 syscall tables.
      
      * tag 'perf-tools-2020-12-24' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (24 commits)
        perf probe: Fix memory leak when synthesizing SDT probes
        perf stat aggregation: Add separate thread member
        perf stat aggregation: Add separate core member
        perf stat aggregation: Add separate die member
        perf stat aggregation: Add separate socket member
        perf stat aggregation: Add separate node member
        perf stat aggregation: Start using cpu_aggr_id in map
        perf cpumap: Drop in cpu_aggr_map struct
        perf cpumap: Add new map type for aggregation
        perf stat: Replace aggregation ID with a struct
        perf cpumap: Add new struct for cpu aggregation
        perf cpumap: Use existing allocator to avoid using malloc
        perf tests: Improve topology test to check all aggregation types
        perf tools: Update s390's syscall.tbl copy from the kernel sources
        perf tools: Update powerpc's syscall.tbl copy from the kernel sources
        perf s390: Move syscall.tbl check into check-headers.sh
        perf powerpc: Move syscall.tbl check to check-headers.sh
        tools headers UAPI: Synch KVM's svm.h header with the kernel
        tools kvm headers: Update KVM headers from the kernel sources
        tools headers UAPI: Sync KVM's vmx.h header with the kernel sources
        ...
      5814bc2d
    • Linus Torvalds's avatar
      Merge branch 'for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux · 42dc45e8
      Linus Torvalds authored
      Pull coccinelle updates from Julia Lawall.
      
      * 'for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
        scripts: coccicheck: Correct usage of make coccicheck
        coccinelle: update expiring email addresses
        coccinnelle: Remove ptr_ret script
        kbuild: do not use scripts/ld-version.sh for checking spatch version
        remove boolinit.cocci
      42dc45e8
    • Michael Ellerman's avatar
      genirq: Fix export of irq_to_desc() for powerpc KVM · 11cc92eb
      Michael Ellerman authored
      Commit 64a1b95b ("genirq: Restrict export of irq_to_desc()") removed
      the export of irq_to_desc() unless powerpc KVM is being built, because
      there is still a use of irq_to_desc() in modular code there.
      
      However it used:
      
        #ifdef CONFIG_KVM_BOOK3S_64_HV
      
      Which doesn't work when that symbol is =m, leading to a build failure:
      
        ERROR: modpost: "irq_to_desc" [arch/powerpc/kvm/kvm-hv.ko] undefined!
      
      Fix it by checking for the definedness of the correct symbol which is
      CONFIG_KVM_BOOK3S_64_HV_MODULE.
      
      Fixes: 64a1b95b ("genirq: Restrict export of irq_to_desc()")
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      11cc92eb
    • Linus Torvalds's avatar
      Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 7bb5226c
      Linus Torvalds authored
      Pull misc vfs updates from Al Viro:
       "Assorted patches from previous cycle(s)..."
      
      * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fix hostfs_open() use of ->f_path.dentry
        Make sure that make_create_in_sticky() never sees uninitialized value of dir_mode
        fs: Kill DCACHE_DONTCACHE dentry even if DCACHE_REFERENCED is set
        fs: Handle I_DONTCACHE in iput_final() instead of generic_drop_inode()
        fs/namespace.c: WARN if mnt_count has become negative
      7bb5226c
    • Lars-Peter Clausen's avatar
      ALSA: maestro: Use DIV_ROUND_CLOSEST() instead of open-coding it · 64062869
      Lars-Peter Clausen authored
      Use DIV_ROUND_CLOSEST() instead of open-coding it. This documents intent
      and makes it more clear what is going on for the casual reviewer.
      
      Generated using the following the Coccinelle semantic patch.
      
      // <smpl>
      @r1@
      expression x;
      constant C1;
      constant C2;
      @@
       ((x) + C1) / C2
      
      @script:python@
      C1 << r1.C1;
      C2 << r1.C2;
      @@
      try:
      	if int(C1) * 2 != int(C2):
      		cocci.include_match(False)
      except:
      	cocci.include_match(False)
      
      @@
      expression r1.x;
      constant r1.C1;
      constant r1.C2;
      @@
      -(((x) + C1) / C2)
      +DIV_ROUND_CLOSEST(x, C2)
      // </smpl>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Link: https://lore.kernel.org/r/20201223172229.781-18-lars@metafoo.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      64062869
    • Lars-Peter Clausen's avatar
      ALSA: sis7019: Use DIV_ROUND_CLOSEST() instead of open-coding it · e08eaf40
      Lars-Peter Clausen authored
      Use DIV_ROUND_CLOSEST() instead of open-coding it. This documents intent
      and makes it more clear what is going on for the casual reviewer.
      
      Generated using the following the Coccinelle semantic patch.
      
      // <smpl>
      @r1@
      expression x;
      constant C1;
      constant C2;
      @@
       ((x) + C1) / C2
      
      @script:python@
      C1 << r1.C1;
      C2 << r1.C2;
      @@
      try:
      	if int(C1) * 2 != int(C2):
      		cocci.include_match(False)
      except:
      	cocci.include_match(False)
      
      @@
      expression r1.x;
      constant r1.C1;
      constant r1.C2;
      @@
      -(((x) + C1) / C2)
      +DIV_ROUND_CLOSEST(x, C2)
      // </smpl>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Link: https://lore.kernel.org/r/20201223172229.781-17-lars@metafoo.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      e08eaf40