Skip to content
Permalink
Jiang-Wang/soc…
Switch branches/tags

Commits on Aug 14, 2021

  1. selftest/bpf: add new tests in sockmap for unix stream to tcp.

    Add two new test cases in sockmap tests, where unix stream is
    redirected to tcp and vice versa.
    
    Signed-off-by: Jiang Wang <jiang.wang@bytedance.com>
    Reviewed-by: Cong Wang <cong.wang@bytedance.com>
    Acked-by: John Fastabend <john.fastabend@gmail.com>
    Jiang Wang authored and intel-lab-lkp committed Aug 14, 2021
  2. selftest/bpf: change udp to inet in some function names

    This is to prepare for adding new unix stream tests.
    Mostly renames, also pass the socket types as an argument.
    
    Signed-off-by: Jiang Wang <jiang.wang@bytedance.com>
    Reviewed-by: Cong Wang <cong.wang@bytedance.com>
    Acked-by: John Fastabend <john.fastabend@gmail.com>
    Jiang Wang authored and intel-lab-lkp committed Aug 14, 2021
  3. selftest/bpf: add tests for sockmap with unix stream type.

    Add two tests for unix stream to unix stream redirection
    in sockmap tests.
    
    Signed-off-by: Jiang Wang <jiang.wang@bytedance.com>
    Reviewed-by: Cong Wang <cong.wang@bytedance.com>
    Acked-by: John Fastabend <john.fastabend@gmail.com>
    Jiang Wang authored and intel-lab-lkp committed Aug 14, 2021
  4. af_unix: add unix_stream_proto for sockmap

    Previously, sockmap for AF_UNIX protocol only supports
    dgram type. This patch add unix stream type support, which
    is similar to unix_dgram_proto. To support sockmap, dgram
    and stream cannot share the same unix_proto anymore, because
    they have different implementations, such as unhash for stream
    type (which will remove closed or disconnected sockets from the map),
    so rename unix_proto to unix_dgram_proto and add a new
    unix_stream_proto.
    
    Also implement stream related sockmap functions.
    And add dgram key words to those dgram specific functions.
    
    Signed-off-by: Jiang Wang <jiang.wang@bytedance.com>
    Reviewed-by: Cong Wang <cong.wang@bytedance.com>
    Jiang Wang authored and intel-lab-lkp committed Aug 14, 2021
  5. af_unix: add read_sock for stream socket types

    To support sockmap for af_unix stream type, implement
    read_sock, which is similar to the read_sock for unix
    dgram sockets.
    
    Signed-off-by: Jiang Wang <jiang.wang@bytedance.com>
    Reviewed-by: Cong Wang <cong.wang@bytedance.com>
    Jiang Wang authored and intel-lab-lkp committed Aug 14, 2021
  6. Merge branch 'bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_CGROUP…

    …_SOCKOPT'
    
    Stanislav Fomichev says:
    
    ====================
    
    We'd like to be able to identify netns from setsockopt hooks
    to be able to do the enforcement of some options only in the
    "initial" netns (to give users the ability to create clear/isolated
    sandboxes if needed without any enforcement by doing unshare(net)).
    
    v3:
    - remove extra 'ctx->skb == NULL' check (Martin KaFai Lau)
    - rework test to make sure the helper is really called, not just
      verified
    
    v2:
    - add missing CONFIG_NET
    ====================
    
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    anakryiko committed Aug 14, 2021
  7. selftests/bpf: Verify bpf_get_netns_cookie in BPF_PROG_TYPE_CGROUP_SO…

    …CKOPT
    
    Add extra calls to sockopt_sk.c.
    
    Signed-off-by: Stanislav Fomichev <sdf@google.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Martin KaFai Lau <kafai@fb.com>
    Link: https://lore.kernel.org/bpf/20210813230530.333779-3-sdf@google.com
    fomichev authored and anakryiko committed Aug 14, 2021
  8. bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_CGROUP_SOCKOPT

    This is similar to existing BPF_PROG_TYPE_CGROUP_SOCK
    and BPF_PROG_TYPE_CGROUP_SOCK_ADDR.
    
    Signed-off-by: Stanislav Fomichev <sdf@google.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Martin KaFai Lau <kafai@fb.com>
    Link: https://lore.kernel.org/bpf/20210813230530.333779-2-sdf@google.com
    fomichev authored and anakryiko committed Aug 14, 2021

Commits on Aug 13, 2021

  1. selftests/bpf: Fix test_core_autosize on big-endian machines

    The "probed" part of test_core_autosize copies an integer using
    bpf_core_read() into an integer of a potentially different size.
    On big-endian machines a destination offset is required for this to
    produce a sensible result.
    
    Fixes: 888d83b ("selftests/bpf: Validate libbpf's auto-sizing of LD/ST/STX instructions")
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20210812224814.187460-1-iii@linux.ibm.com
    iii-i authored and anakryiko committed Aug 13, 2021
  2. libbpf: Support weak typed ksyms.

    Currently weak typeless ksyms have default value zero, when they don't
    exist in the kernel. However, weak typed ksyms are rejected by libbpf
    if they can not be resolved. This means that if a bpf object contains
    the declaration of a nonexistent weak typed ksym, it will be rejected
    even if there is no program that references the symbol.
    
    Nonexistent weak typed ksyms can also default to zero just like
    typeless ones. This allows programs that access weak typed ksyms to be
    accepted by verifier, if the accesses are guarded. For example,
    
    extern const int bpf_link_fops3 __ksym __weak;
    
    /* then in BPF program */
    
    if (&bpf_link_fops3) {
       /* use bpf_link_fops3 */
    }
    
    If actual use of nonexistent typed ksym is not guarded properly,
    verifier would see that register is not PTR_TO_BTF_ID and wouldn't
    allow to use it for direct memory reads or passing it to BPF helpers.
    
    Signed-off-by: Hao Luo <haoluo@google.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20210812003819.2439037-1-haoluo@google.com
    haoluo1022 authored and anakryiko committed Aug 13, 2021
  3. selftests/bpf: Fix running of XDP bonding tests

    An "innocent" cleanup in the last version of the XDP bonding patchset moved
    the "test__start_subtest" calls to the test main function, but I forgot to
    reverse the condition, which lead to all tests being skipped. Fix it.
    
    Fixes: 6aab1c8 ("selftests/bpf: Add tests for XDP bonding")
    Signed-off-by: Jussi Maki <joamaki@gmail.com>
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    Link: https://lore.kernel.org/bpf/20210811123627.20223-1-joamaki@gmail.com
    joamaki authored and borkmann committed Aug 13, 2021
  4. net: in_irq() cleanup

    Replace the obsolete and ambiguos macro in_irq() with new
    macro in_hardirq().
    
    Signed-off-by: Changbin Du <changbin.du@gmail.com>
    Link: https://lore.kernel.org/r/20210813145749.86512-1-changbin.du@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    changbindu authored and Jakub Kicinski committed Aug 13, 2021
  5. net, bonding: Disallow vlan+srcmac with XDP

    The new vlan+srcmac xmit policy is not implementable with XDP since
    in many cases the 802.1Q payload is not present in the packet. This
    can be for example due to hardware offload or in the case of veth
    due to use of skbuffs internally.
    
    This also fixes the NULL deref with the vlan+srcmac xmit policy
    reported by Jonathan Toppins by additionally checking the skb
    pointer.
    
    Fixes: a815bde ("net, bonding: Refactor bond_xmit_hash for use with xdp_buff")
    Reported-by: Jonathan Toppins <jtoppins@redhat.com>
    Signed-off-by: Jussi Maki <joamaki@gmail.com>
    Reviewed-by: Jonathan Toppins <jtoppins@redhat.com>
    Link: https://lore.kernel.org/r/20210812145241.12449-1-joamaki@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    joamaki authored and Jakub Kicinski committed Aug 13, 2021
  6. af_unix: fix holding spinlock in oob handling

    syzkaller found that OOB code was holding spinlock
    while calling a function in which it could sleep.
    
    Reported-by: syzbot+8760ca6c1ee783ac4abd@syzkaller.appspotmail.com
    Fixes: 314001f ("af_unix: Add OOB support")
    Signed-off-by: Rao Shoaib <rao.shoaib@oracle.com>
    Link: https://lore.kernel.org/r/20210811220652.567434-1-Rao.Shoaib@oracle.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Rao Shoaib authored and Jakub Kicinski committed Aug 13, 2021
  7. Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

    Conflicts:
    
    drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h
      9e26680 ("bnxt_en: Update firmware call to retrieve TX PTP timestamp")
      9e518f2 ("bnxt_en: 1PPS functions to configure TSIO pins")
      099fded ("bnxt_en: Event handler for PPS events")
    
    kernel/bpf/helpers.c
    include/linux/bpf-cgroup.h
      a2baf4e ("bpf: Fix potentially incorrect results with bpf_get_local_storage()")
      c7603cf ("bpf: Add ambient BPF runtime context stored in current")
    
    drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
      5957cc5 ("net/mlx5: Set all field of mlx5_irq before inserting it to the xarray")
      2d0b41a ("net/mlx5: Refcount mlx5_irq with integer")
    
    MAINTAINERS
      7b637cd ("MAINTAINERS: fix Microchip CAN BUS Analyzer Tool entry typo")
      7d901a1 ("net: phy: add Maxlinear GPY115/21x/24x driver")
    
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski committed Aug 13, 2021
  8. Merge tag 'net-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/netdev/net
    
    Pull networking fixes from Jakub Kicinski:
     "Networking fixes, including fixes from netfilter, bpf, can and
      ieee802154.
    
      The size of this is pretty normal, but we got more fixes for 5.14
      changes this week than last week. Nothing major but the trend is the
      opposite of what we like. We'll see how the next week goes..
    
      Current release - regressions:
    
       - r8169: fix ASPM-related link-up regressions
    
       - bridge: fix flags interpretation for extern learn fdb entries
    
       - phy: micrel: fix link detection on ksz87xx switch
    
       - Revert "tipc: Return the correct errno code"
    
       - ptp: fix possible memory leak caused by invalid cast
    
      Current release - new code bugs:
    
       - bpf: add missing bpf_read_[un]lock_trace() for syscall program
    
       - bpf: fix potentially incorrect results with bpf_get_local_storage()
    
       - page_pool: mask the page->signature before the checking, avoid dma
         mapping leaks
    
       - netfilter: nfnetlink_hook: 5 fixes to information in netlink dumps
    
       - bnxt_en: fix firmware interface issues with PTP
    
       - mlx5: Bridge, fix ageing time
    
      Previous releases - regressions:
    
       - linkwatch: fix failure to restore device state across
         suspend/resume
    
       - bareudp: fix invalid read beyond skb's linear data
    
      Previous releases - always broken:
    
       - bpf: fix integer overflow involving bucket_size
    
       - ppp: fix issues when desired interface name is specified via
         netlink
    
       - wwan: mhi_wwan_ctrl: fix possible deadlock
    
       - dsa: microchip: ksz8795: fix number of VLAN related bugs
    
       - dsa: drivers: fix broken backpressure in .port_fdb_dump
    
       - dsa: qca: ar9331: make proper initial port defaults
    
      Misc:
    
       - bpf: add lockdown check for probe_write_user helper
    
       - netfilter: conntrack: remove offload_pickup sysctl before 5.14 is
         out
    
       - netfilter: conntrack: collect all entries in one cycle,
         heuristically slow down garbage collection scans on idle systems to
         prevent frequent wake ups"
    
    * tag 'net-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (87 commits)
      vsock/virtio: avoid potential deadlock when vsock device remove
      wwan: core: Avoid returning NULL from wwan_create_dev()
      net: dsa: sja1105: unregister the MDIO buses during teardown
      Revert "tipc: Return the correct errno code"
      net: mscc: Fix non-GPL export of regmap APIs
      net: igmp: increase size of mr_ifc_count
      MAINTAINERS: switch to my OMP email for Renesas Ethernet drivers
      tcp_bbr: fix u32 wrap bug in round logic if bbr_init() called after 2B packets
      net: pcs: xpcs: fix error handling on failed to allocate memory
      net: linkwatch: fix failure to restore device state across suspend/resume
      net: bridge: fix memleak in br_add_if()
      net: switchdev: zero-initialize struct switchdev_notifier_fdb_info emitted by drivers towards the bridge
      net: bridge: fix flags interpretation for extern learn fdb entries
      net: dsa: sja1105: fix broken backpressure in .port_fdb_dump
      net: dsa: lantiq: fix broken backpressure in .port_fdb_dump
      net: dsa: lan9303: fix broken backpressure in .port_fdb_dump
      net: dsa: hellcreek: fix broken backpressure in .port_fdb_dump
      bpf, core: Fix kernel-doc notation
      net: igmp: fix data-race in igmp_ifc_timer_expire()
      net: Fix memory leak in ieee802154_raw_deliver
      ...
    torvalds committed Aug 13, 2021
  9. Merge tag 'ceph-for-5.14-rc6' of git://github.com/ceph/ceph-client

    Pull ceph fixes from Ilya Dryomov:
     "A patch to avoid a soft lockup in ceph_check_delayed_caps() from Luis
      and a reference handling fix from Jeff that should address some memory
      corruption reports in the snaprealm area.
    
      Both marked for stable"
    
    * tag 'ceph-for-5.14-rc6' of git://github.com/ceph/ceph-client:
      ceph: take snap_empty_lock atomically with snaprealm refcount change
      ceph: reduce contention in ceph_check_delayed_caps()
    torvalds committed Aug 13, 2021
  10. Merge tag 'drm-fixes-2021-08-13' of git://anongit.freedesktop.org/drm…

    …/drm
    
    Pull drm fixes from Dave Airlie:
     "Another week, another set of pretty regular fixes, nothing really
      stands out too much.
    
      amdgpu:
       - Yellow carp update
       - RAS EEPROM fixes
       - BACO/BOCO fixes
       - Fix a memory leak in an error path
       - Freesync fix
       - VCN harvesting fix
       - Display fixes
    
      i915:
       - GVT fix for Windows VM hang.
       - Display fix of 12 BPC bits for display 12 and newer.
       - Don't try to access some media register for fused off domains.
       - Fix kerneldoc build warnings.
    
      mediatek:
       - Fix dpi bridge bug.
       - Fix cursor plane no update.
    
      meson:
       - Fix colors when booting with HDR"
    
    * tag 'drm-fixes-2021-08-13' of git://anongit.freedesktop.org/drm/drm:
      drm/doc/rfc: drop lmem uapi section
      drm/i915: Only access SFC_DONE when media domain is not fused off
      drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
      drm/amd/display: use GFP_ATOMIC in amdgpu_dm_irq_schedule_work
      drm/amd/display: Remove invalid assert for ODM + MPC case
      drm/amd/pm: bug fix for the runtime pm BACO
      drm/amdgpu: handle VCN instances when harvesting (v2)
      drm/meson: fix colour distortion from HDR set during vendor u-boot
      drm/i915/gvt: Fix cached atomics setting for Windows VM
      drm/amdgpu: Add preferred mode in modeset when freesync video mode's enabled.
      drm/amd/pm: Fix a memory leak in an error handling path in 'vangogh_tables_init()'
      drm/amdgpu: don't enable baco on boco platforms in runpm
      drm/amdgpu: set RAS EEPROM address from VBIOS
      drm/amd/pm: update smu v13.0.1 firmware header
      drm/mediatek: Fix cursor plane no update
      drm/mediatek: mtk-dpi: Set out_fmt from config if not the last bridge
      drm/mediatek: dpi: Fix NULL dereference in mtk_dpi_bridge_atomic_check
    torvalds committed Aug 13, 2021

Commits on Aug 12, 2021

  1. dt-bindings: net: qcom,ipa: make imem interconnect optional

    On some newer SoCs, the interconnect between IPA and SoC internal
    memory (imem) is not used.  Update the binding to indicate that
    having just the memory and config interconnects is another allowed
    configuration.
    
    Signed-off-by: Alex Elder <elder@linaro.org>
    Link: https://lore.kernel.org/r/20210811141802.2635424-1-elder@linaro.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    alexelder authored and Jakub Kicinski committed Aug 12, 2021
  2. net: ipa: always inline ipa_aggr_granularity_val()

    It isn't required, but all callers of ipa_aggr_granularity_val()
    pass a constant value (IPA_AGGR_GRANULARITY) as the usec argument.
    Two of those callers are in ipa_validate_build(), with the result
    being passed to BUILD_BUG_ON().
    
    Evidently the "sparc64-linux-gcc" compiler (at least) doesn't always
    inline ipa_aggr_granularity_val(), so the result of the function is
    not constant at compile time, and that leads to build errors.
    
    Define the function with the __always_inline attribute to avoid the
    errors.  We can see by inspection that the value passed is never
    zero, so we can just remove its WARN_ON() call.
    
    Fixes: 5bc5588 ("net: ipa: use WARN_ON() rather than assertions")
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Alex Elder <elder@linaro.org>
    Link: https://lore.kernel.org/r/20210811135948.2634264-1-elder@linaro.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    alexelder authored and Jakub Kicinski committed Aug 12, 2021
  3. Merge tag 'drm-misc-fixes-2021-08-12' of git://anongit.freedesktop.or…

    …g/drm/drm-misc into drm-fixes
    
    Short summary of fixes pull:
    
     * meson: Fix colors when booting with HDR
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    
    From: Thomas Zimmermann <tzimmermann@suse.de>
    Link: https://patchwork.freedesktop.org/patch/msgid/YRTb+qUuBYWjJDVg@linux-uq9g.fritz.box
    airlied committed Aug 12, 2021
  4. Merge tag 'drm-intel-fixes-2021-08-12' of git://anongit.freedesktop.o…

    …rg/drm/drm-intel into drm-fixes
    
    - GVT fix for Windows VM hang.
    - Display fix of 12 BPC bits for display 12 and newer.
    - Don't try to access some media register for fused off domains.
    - Fix kerneldoc build warnings.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    
    From: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/YRU/hnQ1sNr+j37x@intel.com
    airlied committed Aug 12, 2021
  5. Merge tag 'ieee802154-for-davem-2021-08-12' of git://git.kernel.org/p…

    …ub/scm/linux/kernel/git/sschmidt/wpan
    
    Stefan Schmidt says:
    
    ====================
    ieee802154 for net 2021-08-12
    
    Mostly fixes coming from bot reports. Dongliang Mu tackled some syzkaller
    reports in hwsim again and Takeshi Misawa a memory leak  in  ieee802154 raw.
    
    * tag 'ieee802154-for-davem-2021-08-12' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan:
      net: Fix memory leak in ieee802154_raw_deliver
      ieee802154: hwsim: fix GPF in hwsim_new_edge_nl
      ieee802154: hwsim: fix GPF in hwsim_set_edge_lqi
    ====================
    
    Link: https://lore.kernel.org/r/20210812183912.1663996-1-stefan@datenfreihafen.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski committed Aug 12, 2021
  6. vsock/virtio: avoid potential deadlock when vsock device remove

    There's a potential deadlock case when remove the vsock device or
    process the RESET event:
    
      vsock_for_each_connected_socket:
          spin_lock_bh(&vsock_table_lock) ----------- (1)
          ...
              virtio_vsock_reset_sock:
                  lock_sock(sk) --------------------- (2)
          ...
          spin_unlock_bh(&vsock_table_lock)
    
    lock_sock() may do initiative schedule when the 'sk' is owned by
    other thread at the same time, we would receivce a warning message
    that "scheduling while atomic".
    
    Even worse, if the next task (selected by the scheduler) try to
    release a 'sk', it need to request vsock_table_lock and the deadlock
    occur, cause the system into softlockup state.
      Call trace:
       queued_spin_lock_slowpath
       vsock_remove_bound
       vsock_remove_sock
       virtio_transport_release
       __vsock_release
       vsock_release
       __sock_release
       sock_close
       __fput
       ____fput
    
    So we should not require sk_lock in this case, just like the behavior
    in vhost_vsock or vmci.
    
    Fixes: 0ea9e1d ("VSOCK: Introduce virtio_transport.ko")
    Cc: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    Link: https://lore.kernel.org/r/20210812053056.1699-1-longpeng2@huawei.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Longpeng(Mike) authored and Jakub Kicinski committed Aug 12, 2021
  7. Merge branch 'for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/ebiederm/user-namespace
    
    Pull ucounts fix from Eric Biederman:
     "This fixes the ucount sysctls on big endian architectures.
    
      The counts were expanded to be longs instead of ints, and the sysctl
      code was overlooked, so only the low 32bit were being processed. On
      litte endian just processing the low 32bits is fine, but on 64bit big
      endian processing just the low 32bits results in the high order bits
      instead of the low order bits being processed and nothing works
      proper.
    
      This change took a little bit to mature as we have the SYSCTL_ZERO,
      and SYSCTL_INT_MAX macros that are only usable for sysctls operating
      on ints, but unfortunately are not obviously broken. Which resulted in
      the versions of this change working on big endian and not on little
      endian, because the int SYSCTL_ZERO when extended 64bit wound up being
      0x100000000. So we only allowed values greater than 0x100000000 and
      less than 0faff. Which unfortunately broken everything that tried to
      set the sysctls. (First reported with the windows subsystem for
      linux).
    
      I have tested this on x86_64 64bit after first reproducing the
      problems with the earlier version of this change, and then verifying
      the problems do not exist when we use appropriate long min and max
      values for extra1 and extra2"
    
    * 'for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
      ucounts: add missing data type changes
    torvalds committed Aug 12, 2021
  8. Merge tag 'sound-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "This seems to be a usual bump in the middle, containing lots of
      pending ASoC fixes:
    
       - Yet another PCM mmap regression fix
    
       - Fix for ASoC DAPM prefix handling
    
       - Various cs42l42 codec fixes
    
       - PCM buffer reference fixes in a few ASoC drivers
    
       - Fixes for ASoC SOF, AMD, tlv320, WM
    
       - HD-audio quirks"
    
    * tag 'sound-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (32 commits)
      ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 650 G8 Notebook PC
      ALSA: pcm: Fix mmap breakage without explicit buffer setup
      ALSA: hda: Add quirk for ASUS Flow x13
      ASoC: cs42l42: Fix mono playback
      ASoC: cs42l42: Constrain sample rate to prevent illegal SCLK
      ASoC: cs42l42: Fix LRCLK frame start edge
      ASoC: cs42l42: PLL must be running when changing MCLK_SRC_SEL
      ASoC: cs42l42: Remove duplicate control for WNF filter frequency
      ASoC: cs42l42: Fix inversion of ADC Notch Switch control
      ASoC: SOF: Intel: hda-ipc: fix reply size checking
      ASoC: SOF: Intel: Kconfig: fix SoundWire dependencies
      ASoC: amd: Fix reference to PCM buffer address
      ASoC: nau8824: Fix open coded prefix handling
      ASoC: kirkwood: Fix reference to PCM buffer address
      ASoC: uniphier: Fix reference to PCM buffer address
      ASoC: xilinx: Fix reference to PCM buffer address
      ASoC: intel: atom: Fix reference to PCM buffer address
      ASoC: cs42l42: Fix bclk calculation for mono
      ASoC: cs42l42: Don't allow SND_SOC_DAIFMT_LEFT_J
      ASoC: cs42l42: Correct definition of ADC Volume control
      ...
    torvalds committed Aug 12, 2021
  9. wwan: core: Avoid returning NULL from wwan_create_dev()

    Make wwan_create_dev() to return either valid or error pointer,
    In some cases it may return NULL. Prevent this by converting
    it to the respective error pointer.
    
    Fixes: 9a44c1c ("net: Add a WWAN subsystem")
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
    Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
    Link: https://lore.kernel.org/r/20210811124845.10955-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    andy-shev authored and Jakub Kicinski committed Aug 12, 2021
  10. Merge tag 'mlx5-updates-2021-08-11' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/saeed/linux
    
    Saeed Mahameed says:
    
    ====================
    mlx5 updates 2021-08-11
    
    This series provides misc updates to mlx5.
    For more information please see tag log below.
    
    Please pull and let me know if there is any problem.
    
    mlx5-updates-2021-08-11
    
    Misc. cleanup for mlx5.
    
    1) Typos and use of netdev_warn()
    2) smatch cleanup
    3) Minor fix to inner TTC table creation
    4) Dynamic capability cache allocation
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 12, 2021
  11. Merge branch 'dsa-cross-chip-notifiers'

    Vladimir Oltean says:
    
    ====================
    Improvements to the DSA tag_8021q cross-chip notifiers
    
    This series improves cross-chip notifier error messages and addresses a
    benign error message seen during reboot on a system with disjoint DSA
    trees.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Aug 12, 2021
  12. net: dsa: tag_8021q: don't broadcast during setup/teardown

    Currently, on my board with multiple sja1105 switches in disjoint trees
    described in commit f66a6a6 ("net: dsa: permit cross-chip bridging
    between all trees in the system"), rebooting the board triggers the
    following benign warnings:
    
    [   12.345566] sja1105 spi2.0: port 0 failed to notify tag_8021q VLAN 1088 deletion: -ENOENT
    [   12.353804] sja1105 spi2.0: port 0 failed to notify tag_8021q VLAN 2112 deletion: -ENOENT
    [   12.362019] sja1105 spi2.0: port 1 failed to notify tag_8021q VLAN 1089 deletion: -ENOENT
    [   12.370246] sja1105 spi2.0: port 1 failed to notify tag_8021q VLAN 2113 deletion: -ENOENT
    [   12.378466] sja1105 spi2.0: port 2 failed to notify tag_8021q VLAN 1090 deletion: -ENOENT
    [   12.386683] sja1105 spi2.0: port 2 failed to notify tag_8021q VLAN 2114 deletion: -ENOENT
    
    Basically switch 1 calls dsa_tag_8021q_unregister, and switch 1's TX and
    RX VLANs cannot be found on switch 2's CPU port.
    
    But why would switch 2 even attempt to delete switch 1's TX and RX
    tag_8021q VLANs from its CPU port? Well, because we use dsa_broadcast,
    and it is supposed that it had added those VLANs in the first place
    (because in dsa_port_tag_8021q_vlan_match, all CPU ports match
    regardless of their tree index or switch index).
    
    The two trees probe asynchronously, and when switch 1 probed, it called
    dsa_broadcast which did not notify the tree of switch 2, because that
    didn't probe yet. But during unbind, switch 2's tree _is_ probed, so it
    _is_ notified of the deletion.
    
    Before jumping to introduce a synchronization mechanism between the
    probing across disjoint switch trees, let's take a step back and see
    whether we _need_ to do that in the first place.
    
    The RX and TX VLANs of switch 1 would be needed on switch 2's CPU port
    only if switch 1 and 2 were part of a cross-chip bridge. And
    dsa_tag_8021q_bridge_join takes care precisely of that (but if probing
    was synchronous, the bridge_join would just end up bumping the VLANs'
    refcount, because they are already installed by the setup path).
    
    Since by the time the ports are bridged, all DSA trees are already set
    up, and we don't need the tag_8021q VLANs of one switch installed on the
    other switches during probe time, the answer is that we don't need to
    fix the synchronization issue.
    
    So make the setup and teardown code paths call dsa_port_notify, which
    notifies only the local tree, and the bridge code paths call
    dsa_broadcast, which let the other trees know as well.
    
    Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    vladimiroltean authored and davem330 committed Aug 12, 2021
  13. net: dsa: print more information when a cross-chip notifier fails

    Currently this error message does not say a lot:
    
    [   32.693498] DSA: failed to notify tag_8021q VLAN deletion: -ENOENT
    [   32.699725] DSA: failed to notify tag_8021q VLAN deletion: -ENOENT
    [   32.705931] DSA: failed to notify tag_8021q VLAN deletion: -ENOENT
    [   32.712139] DSA: failed to notify tag_8021q VLAN deletion: -ENOENT
    [   32.718347] DSA: failed to notify tag_8021q VLAN deletion: -ENOENT
    [   32.724554] DSA: failed to notify tag_8021q VLAN deletion: -ENOENT
    
    but in this form, it is immediately obvious (at least to me) what the
    problem is, even without further looking at the code:
    
    [   12.345566] sja1105 spi2.0: port 0 failed to notify tag_8021q VLAN 1088 deletion: -ENOENT
    [   12.353804] sja1105 spi2.0: port 0 failed to notify tag_8021q VLAN 2112 deletion: -ENOENT
    [   12.362019] sja1105 spi2.0: port 1 failed to notify tag_8021q VLAN 1089 deletion: -ENOENT
    [   12.370246] sja1105 spi2.0: port 1 failed to notify tag_8021q VLAN 2113 deletion: -ENOENT
    [   12.378466] sja1105 spi2.0: port 2 failed to notify tag_8021q VLAN 1090 deletion: -ENOENT
    [   12.386683] sja1105 spi2.0: port 2 failed to notify tag_8021q VLAN 2114 deletion: -ENOENT
    
    Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    vladimiroltean authored and davem330 committed Aug 12, 2021
  14. drm/doc/rfc: drop lmem uapi section

    We still have quite a bit more work to do with overall reworking of
    the ttm-based dg1 code, but the uapi stuff is now finalized with the
    latest pull. So remove that.
    
    This also fixes kerneldoc build warnings because we've included the
    same headers in two places, resulting in sphinx complaining about
    duplicated symbols. This regression has been created when we moved the
    uapi definitions to the real include/uapi/ folder in 727ecd9
    ("drm/doc/rfc: drop the i915_gem_lmem.h header")
    
    v2: Fix a few references that I missed, the htmldocs build took
    forever.
    
    Acked-by: Jason Ekstrand <jason@jlekstrand.net>
    Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Tested-by Stephen Rothwell <sfr@canb.auug.org.au> (v1)
    References: https://lore.kernel.org/dri-devel/20210603193242.1ce99344@canb.auug.org.au/
    Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Fixes: 727ecd9 ("drm/doc/rfc: drop the i915_gem_lmem.h header")
    Cc: Matthew Auld <matthew.auld@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210810142748.1983271-1-daniel.vetter@ffwll.ch
    (cherry picked from commit dae2d28)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    danvet authored and rodrigovivi committed Aug 12, 2021
  15. drm/i915: Only access SFC_DONE when media domain is not fused off

    The SFC_DONE register lives within the corresponding VD0/VD2/VD4/VD6
    forcewake domain and is not accessible if the vdbox in that domain is
    fused off and the forcewake is not initialized.
    
    This mistake went unnoticed because until recently we were using the
    wrong register offset for the SFC_DONE register; once the register
    offset was corrected, we started hitting errors like
    
      <4> [544.989065] i915 0000:cc:00.0: Uninitialized forcewake domain(s) 0x80 accessed at 0x1ce000
    
    on parts with fused-off vdbox engines.
    
    Fixes: e50dbdb ("drm/i915/tgl: Add SFC instdone to error state")
    Fixes: 9c9c6d0 ("drm/i915: Correct SFC_DONE register offset")
    Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
    Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
    Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210806174130.1058960-1-matthew.d.roper@intel.com
    Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
    (cherry picked from commit c5589bb)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    [Changed Fixes tag to match the cherry-picked 82929a2]
    mattrope authored and rodrigovivi committed Aug 12, 2021
  16. wwan: core: Unshadow error code returned by ida_alloc_range()

    ida_alloc_range() may return other than -ENOMEM error code.
    Unshadow it in the wwan_create_port().
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
    Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    andy-shev authored and davem330 committed Aug 12, 2021
  17. drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg

    Till DISPLAY12 the PIPE_MISC bits 5-7 are used to set the
    Dithering BPC, with valid values of 6, 8, 10 BPC.
    For ADLP+ these bits are used to set the PORT OUTPUT BPC, with valid
    values of: 6, 8, 10, 12 BPC, and need to be programmed whether
    dithering is enabled or not.
    
    This patch:
    -corrects the bits 5-7 for PIPE MISC register for 12 BPC.
    -renames the bits and mask to have generic names for these bits for
    dithering bpc and port output bpc.
    
    v3: Added a note for MIPI DSI which uses the PIPE_MISC for readout
    for pipe_bpp. (Uma Shankar)
    
    v2: Added 'display' to the subject and fixes tag. (Uma Shankar)
    
    Fixes: 756f85c ("drm/i915/bdw: Broadwell has PIPEMISC")
    Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> (v1)
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Jani Nikula <jani.nikula@linux.intel.com>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: intel-gfx@lists.freedesktop.org
    Cc: <stable@vger.kernel.org> # v3.13+
    
    Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
    Reviewed-by: Uma Shankar <uma.shankar@intel.com>
    Signed-off-by: Uma Shankar <uma.shankar@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210811051857.109723-1-ankit.k.nautiyal@intel.com
    (cherry picked from commit 70418a6)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    aknautiyal authored and rodrigovivi committed Aug 12, 2021
Older