Skip to contentSkip to conversation

Linux 6.6.8

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Dec 20, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.6.8 kernel.

All users of the 6.6 kernel series must upgrade.

The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Makefile                                                               |    2 
 arch/arm64/Makefile                                                    |    2 
 arch/arm64/include/asm/pgtable.h                                       |    6 
 arch/loongarch/Makefile                                                |    2 
 arch/loongarch/include/asm/asmmacro.h                                  |    3 
 arch/loongarch/include/asm/setup.h                                     |    2 
 arch/loongarch/kernel/relocate.c                                       |   10 
 arch/loongarch/kernel/time.c                                           |   23 
 arch/loongarch/mm/pgtable.c                                            |    4 
 arch/powerpc/configs/skiroot_defconfig                                 |    1 
 arch/riscv/Kconfig                                                     |    4 
 arch/riscv/kernel/crash_core.c                                         |    4 
 arch/s390/configs/debug_defconfig                                      |    1 
 arch/x86/hyperv/hv_init.c                                              |   25 -
 arch/x86/include/asm/alternative.h                                     |    4 
 arch/x86/include/asm/nospec-branch.h                                   |    4 
 block/blk-cgroup.c                                                     |   13 
 block/blk-throttle.c                                                   |    2 
 drivers/accel/ivpu/ivpu_drv.h                                          |    5 
 drivers/accel/ivpu/ivpu_hw_37xx.c                                      |   17 
 drivers/accel/ivpu/ivpu_hw_40xx.c                                      |    4 
 drivers/atm/solos-pci.c                                                |    8 
 drivers/block/nbd.c                                                    |  117 +++-
 drivers/cxl/core/hdm.c                                                 |    3 
 drivers/cxl/core/port.c                                                |    4 
 drivers/dma/fsl-edma-common.c                                          |    1 
 drivers/dma/stm32-dma.c                                                |    8 
 drivers/firmware/efi/libstub/x86-stub.c                                |   31 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c                              |    3 
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c                                 |   28 +
 drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c |    4 
 drivers/gpu/drm/amd/display/modules/power/power_helpers.c              |    2 
 drivers/gpu/drm/drm_edid.c                                             |    3 
 drivers/gpu/drm/i915/display/intel_fb.c                                |   19 
 drivers/gpu/drm/i915/display/skl_scaler.c                              |    2 
 drivers/gpu/drm/i915/gt/intel_reset.c                                  |    2 
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c                      |    5 
 drivers/gpu/drm/i915/i915_gpu_error.h                                  |   12 
 drivers/gpu/drm/i915/selftests/igt_live_test.c                         |    9 
 drivers/gpu/drm/i915/selftests/igt_live_test.h                         |    3 
 drivers/gpu/drm/mediatek/mtk_drm_crtc.c                                |   14 
 drivers/gpu/drm/mediatek/mtk_drm_drv.c                                 |    5 
 drivers/hid/hid-apple.c                                                |    2 
 drivers/hid/hid-asus.c                                                 |   27 -
 drivers/hid/hid-glorious.c                                             |   16 
 drivers/hid/hid-ids.h                                                  |   12 
 drivers/hid/hid-lenovo.c                                               |    3 
 drivers/hid/hid-mcp2221.c                                              |    4 
 drivers/hid/hid-multitouch.c                                           |    5 
 drivers/hid/hid-quirks.c                                               |    2 
 drivers/hid/i2c-hid/i2c-hid-acpi.c                                     |    5 
 drivers/infiniband/hw/mlx5/main.c                                      |   17 
 drivers/md/bcache/bcache.h                                             |    1 
 drivers/md/bcache/btree.c                                              |    7 
 drivers/md/bcache/super.c                                              |    4 
 drivers/md/bcache/writeback.c                                          |    2 
 drivers/net/ethernet/amazon/ena/ena_eth_com.c                          |    3 
 drivers/net/ethernet/amazon/ena/ena_netdev.c                           |   53 +-
 drivers/net/ethernet/aquantia/atlantic/aq_ring.c                       |    5 
 drivers/net/ethernet/broadcom/bnxt/bnxt.c                              |   38 +
 drivers/net/ethernet/broadcom/bnxt/bnxt.h                              |   10 
 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c                      |   11 
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c                      |   19 
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c                          |    5 
 drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-flower.c             |    7 
 drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c                    |   11 
 drivers/net/ethernet/freescale/fec_main.c                              |   27 -
 drivers/net/ethernet/intel/iavf/iavf.h                                 |    1 
 drivers/net/ethernet/intel/iavf/iavf_ethtool.c                         |   27 -
 drivers/net/ethernet/intel/iavf/iavf_fdir.h                            |   15 
 drivers/net/ethernet/intel/iavf/iavf_main.c                            |  179 ++++---
 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c                        |   71 ++
 drivers/net/ethernet/marvell/octeon_ep/octep_main.c                    |    3 
 drivers/net/ethernet/marvell/octeontx2/af/rpm.c                        |   11 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c                |    5 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c                    |   55 +-
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c                   |   25 -
 drivers/net/ethernet/mellanox/mlx5/core/en.h                           |    1 
 drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c               |    6 
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c               |   56 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c            |  218 ++++++--
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c       |   10 
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c                      |   27 -
 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c                       |    2 
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c                        |   25 -
 drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c                 |  154 ------
 drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.h                 |   15 
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c                      |   35 -
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h                      |    2 
 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c             |   54 +-
 drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c                     |   29 +
 drivers/net/ethernet/mellanox/mlx5/core/main.c                         |    6 
 drivers/net/ethernet/qlogic/qed/qed_cxt.c                              |    1 
 drivers/net/ethernet/qualcomm/qca_debug.c                              |   17 
 drivers/net/ethernet/qualcomm/qca_spi.c                                |   20 
 drivers/net/ethernet/stmicro/stmmac/Kconfig                            |    2 
 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c                   |   14 
 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c                |   10 
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c                      |    6 
 drivers/net/team/team.c                                                |    4 
 drivers/net/usb/aqc111.c                                               |    8 
 drivers/net/usb/qmi_wwan.c                                             |    1 
 drivers/net/usb/r8152.c                                                |    1 
 drivers/nfc/virtual_ncidev.c                                           |    7 
 drivers/nvme/host/auth.c                                               |    2 
 drivers/nvme/host/core.c                                               |   19 
 drivers/pci/controller/pci-loongson.c                                  |   46 +
 drivers/pci/controller/vmd.c                                           |    2 
 drivers/pci/hotplug/acpiphp_glue.c                                     |    9 
 drivers/pci/pcie/aspm.c                                                |   53 +-
 drivers/platform/x86/intel/telemetry/core.c                            |    4 
 drivers/soundwire/stream.c                                             |    7 
 fs/afs/rxrpc.c                                                         |    2 
 fs/btrfs/delalloc-space.c                                              |    2 
 fs/btrfs/extent_io.c                                                   |    3 
 fs/btrfs/file.c                                                        |    2 
 fs/btrfs/inode.c                                                       |   16 
 fs/btrfs/ioctl.c                                                       |    9 
 fs/btrfs/ordered-data.c                                                |   11 
 fs/btrfs/qgroup.c                                                      |   25 -
 fs/btrfs/qgroup.h                                                      |    4 
 fs/ext4/file.c                                                         |   14 
 fs/ext4/mballoc.c                                                      |    4 
 fs/fuse/dax.c                                                          |    1 
 fs/fuse/file.c                                                         |    8 
 fs/fuse/fuse_i.h                                                       |   19 
 fs/fuse/inode.c                                                        |   81 +++
 fs/nfsd/auth.c                                                         |    4 
 fs/nfsd/nfssvc.c                                                       |    1 
 fs/nfsd/vfs.c                                                          |    9 
 fs/open.c                                                              |    3 
 fs/smb/client/cached_dir.c                                             |   17 
 fs/smb/client/cifsglob.h                                               |   14 
 fs/smb/client/cifspdu.h                                                |    4 
 fs/smb/client/cifsproto.h                                              |   11 
 fs/smb/client/cifssmb.c                                                |  193 +++----
 fs/smb/client/inode.c                                                  |   74 ++
 fs/smb/client/readdir.c                                                |    6 
 fs/smb/client/smb1ops.c                                                |   73 --
 fs/smb/client/smb2inode.c                                              |    2 
 fs/smb/client/smb2misc.c                                               |   26 -
 fs/smb/client/smb2ops.c                                                |  178 +++----
 fs/smb/client/smb2pdu.c                                                |   93 ++-
 fs/smb/client/smb2proto.h                                              |   12 
 fs/smb/common/smb2pdu.h                                                |    2 
 fs/smb/server/smb2pdu.c                                                |    1 
 fs/tracefs/inode.c                                                     |   13 
 include/asm-generic/qspinlock.h                                        |    2 
 include/linux/cred.h                                                   |   58 --
 include/linux/mlx5/device.h                                            |    2 
 include/linux/mlx5/driver.h                                            |    2 
 include/linux/mlx5/mlx5_ifc.h                                          |    9 
 include/linux/mm_inline.h                                              |   23 
 include/linux/mmzone.h                                                 |   34 -
 include/linux/objtool.h                                                |   10 
 include/linux/pci.h                                                    |    3 
 include/linux/usb/r8152.h                                              |    1 
 include/net/addrconf.h                                                 |   12 
 include/net/if_inet6.h                                                 |    4 
 include/net/netfilter/nf_flow_table.h                                  |   10 
 include/uapi/linux/fuse.h                                              |   10 
 io_uring/uring_cmd.c                                                   |    2 
 kernel/Kconfig.kexec                                                   |    1 
 kernel/cred.c                                                          |  250 +---------
 kernel/events/core.c                                                   |   10 
 kernel/exit.c                                                          |    3 
 kernel/trace/ring_buffer.c                                             |   58 --
 kernel/trace/trace.c                                                   |    4 
 lib/Kconfig.debug                                                      |   15 
 mm/shmem.c                                                             |   19 
 mm/vmscan.c                                                            |   92 ++-
 mm/workingset.c                                                        |    6 
 net/appletalk/ddp.c                                                    |    9 
 net/atm/ioctl.c                                                        |    7 
 net/ipv4/tcp_output.c                                                  |    6 
 net/ipv6/addrconf.c                                                    |    6 
 net/rose/af_rose.c                                                     |    4 
 net/rxrpc/conn_client.c                                                |    7 
 net/sched/act_ct.c                                                     |   34 +
 net/sunrpc/auth.c                                                      |    3 
 net/vmw_vsock/virtio_transport_common.c                                |    2 
 scripts/checkstack.pl                                                  |    3 
 scripts/sign-file.c                                                    |   12 
 security/selinux/hooks.c                                               |    6 
 sound/pci/hda/patch_hdmi.c                                             |    3 
 sound/pci/hda/patch_realtek.c                                          |    1 
 sound/pci/hda/tas2781_hda_i2c.c                                        |   21 
 tools/objtool/noreturns.h                                              |    1 
 tools/testing/selftests/Makefile                                       |   21 
 tools/testing/selftests/bpf/config.x86_64                              |    1 
 tools/testing/selftests/bpf/progs/bpf_loop_bench.c                     |   13 
 tools/testing/selftests/hid/config.common                              |    1 
 tools/testing/selftests/lib.mk                                         |   40 -
 tools/testing/selftests/mm/cow.c                                       |    3 
 194 files changed, 2160 insertions(+), 1603 deletions(-)

Al Viro (1):
io_uring/cmd: fix breakage in SOCKET_URING_OP_SIOC* implementation

Alex Deucher (1):
drm/amdgpu/sdma5.2: add begin/end_use ring callbacks

Amelie Delaunay (1):
dmaengine: stm32-dma: avoid bitfield overflow assertion

Amir Goldstein (1):
fuse: disable FOPEN_PARALLEL_DIRECT_WRITES with FUSE_DIRECT_IO_ALLOW_MMAP

Andrew Halaney (1):
net: stmmac: Handle disabled MDIO busses from devicetree

Andrzej Kacprowski (1):
accel/ivpu/37xx: Fix interrupt_clear_with_0 WA initialization

Andy Shevchenko (1):
platform/x86: intel_telemetry: Fix kernel doc descriptions

Aoba K (1):
HID: multitouch: Add quirk for HONOR GLO-GXXX touchpad

Ard Biesheuvel (1):
efi/x86: Avoid physical KASLR on older Dell systems

Baokun Li (1):
ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS

Bibo Mao (1):
LoongArch: Implement constant timer shutdown interface

Bjorn Helgaas (1):
Revert "PCI: acpiphp: Reassign resources on bridge if necessary"

Boris Burkov (3):
btrfs: free qgroup reserve when ORDERED_IOERR is set
btrfs: fix qgroup_free_reserved_data int overflow
btrfs: don't clear qgroup reserved bit in release_folio

Brett Raye (1):
HID: glorious: fix Glorious Model I HID report

Chengfeng Ye (2):
atm: solos-pci: Fix potential deadlock on &cli_queue_lock
atm: solos-pci: Fix potential deadlock on &tx_queue_lock

Chris Mi (2):
net/mlx5e: Disable IPsec offload support if not FW steering net/mlx5e: TC, Don't offload post action rule if not supported

Christian König (1):
drm/amdgpu: fix tear down order in amdgpu_vm_pt_free

Colin Ian King (1):
bcache: remove redundant assignment to variable cur_idx

Coly Li (3):
bcache: avoid oversize memory allocation by small stripe_size
bcache: add code comments for bch_btree_node_get() and __bch_btree_node_alloc()
bcache: avoid NULL checking to c->root in run_cache_set()

Dan Carpenter (1):
net/mlx5: Fix a NULL vs IS_ERR() check

Dan Williams (1):
cxl/hdm: Fix dpa translation locking

David Arinzon (4):
net: ena: Destroy correct number of xdp queues upon failure
net: ena: Fix xdp drops handling due to multibuf packets
net: ena: Fix DMA syncing in XDP path when SWIOTLB is on
net: ena: Fix XDP redirection error

David Hildenbrand (1):
selftests/mm: cow: print ksft header before printing anything else

David Howells (2):
afs: Fix refcount underflow from error handling race
rxrpc: Fix some minor issues with bundle tracing

David Stevens (1):
mm/shmem: fix race in shmem_undo_range w/THP

Denis Benato (2):
HID: hid-asus: reset the backlight brightness level on resume
HID: hid-asus: add const to read-only outgoing usb buffer

Dinghao Liu (1):
qed: Fix a potential use-after-free in qed_cxt_tables_alloc

Dong Chenchen (1):
net: Remove acked SYN flag from packet in the transmit queue correctly

Eduard Zingerman (1):
selftests/bpf: fix bpf_loop_bench for new callback verification scheme

Fangrui Song (1):
x86/speculation, objtool: Use absolute relocations for annotations

Florent Revest (1):
team: Fix use-after-free when an option instance allocation fails

Frank Li (1):
dmaengine: fsl-edma: fix DMA channel leak in eDMAv4

Gavin Li (1):
net/mlx5e: Check netdev pointer before checking its net ns

Gergo Koteles (4):
ALSA: hda/tas2781: leave hda_component in usable state
ALSA: hda/tas2781: handle missing EFI calibration data
ALSA: hda/tas2781: call cleanup functions only once
ALSA: hda/tas2781: reset the amp before component_add

Greg Kroah-Hartman (1):

      Linux 6.6.8

Hamish Martin (2):
HID: mcp2221: Set driver data before I2C adapter add
HID: mcp2221: Allow IO to start during probe

Hangyu Hua (1):

      fuse: dax: set fc->dax to NULL in fuse_dax_conn_free()

Hannes Reinecke (1):
nvme: catch errors from nvme_configure_metadata()

Hariprasad Kelam (3):
octeontx2-pf: Fix promisc mcam entry action
octeontx2-af: Update RSS algorithm index
octeontx2-af: Fix pause frame configuration

Hartmut Knaack (1):
ALSA: hda/realtek: Apply mute LED quirk for HP15-db

Heiko Carstens (1):
scripts/checkstack.pl: match all stack sizes for s390

Huacai Chen (2):
LoongArch: Silence the boot warning about 'nokaslr'
LoongArch: Mark {dmw,tlb}_virt_to_page() exports as non-GPL

Hyunwoo Kim (3):
atm: Fix Use-After-Free in do_vcc_ioctl net/rose: Fix Use-After-Free in rose_ioctl
appletalk: Fix Use-After-Free in atalk_ioctl

Ignat Korchagin (1):
kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP

Igor Russkikh (1):
net: atlantic: fix double free in ring reinit logic

Ioana Ciornei (2):
dpaa2-switch: fix size of the dma_unmap
dpaa2-switch: do not ask for MDB, VLAN and FDB replay

James Houghton (1):
arm64: mm: Always make sw-dirty PTEs hw-dirty in pte_modify

Jan Kara (1):
ext4: fix warning in ext4_dio_write_end_io()

Jani Nikula (1):
drm/edid: also call add modes in EDID connector update fallback

Jason-JH.Lin (1):
drm/mediatek: Add spinlock for setting vblank event in atomic_begin

Jean Delvare (1):
stmmac: dwmac-loongson: Add architecture dependency

Jens Axboe (2):
cred: switch to using atomic_long_t
cred: get rid of CONFIG_DEBUG_CREDENTIALS

Jianbo Liu (2):
net/mlx5e: Reduce eswitch mode_lock protection context net/mlx5e: Check the number of elements before walk TC rhashtable

Jiaxun Yang (1):
PCI: loongson: Limit MRRS to 256

Johan Hovold (2):
PCI/ASPM: Add pci_enable_link_state_locked()
PCI: vmd: Fix potential deadlock when enabling ASPM

John Hubbard (1):
Revert "selftests: error out if kernel header files are not yet built"

Josef Bacik (1):
btrfs: do not allow non subvolume root targets for snapshot

Kai Vehmanen (2):
ALSA: hda/hdmi: add force-connect quirk for NUC5CPYB
ALSA: hda/hdmi: add force-connect quirks for ASUSTeK Z170 variants

Kalesh AP (1):
bnxt_en: Fix wrong return value check in bnxt_close_nic()

Kelly Kane (1):
r8152: add vendor/device ID pair for ASUS USB-C2500

Krister Johansen (1):
fuse: share lookup state between submount and its parent

Krzysztof Kozlowski (1):
soundwire: stream: fix NULL pointer dereference for multi_link

Lech Perczak (1):
net: usb: qmi_wwan: claim interface 4 for ZTE MF290

Leon Romanovsky (3):
net/mlx5e: Honor user choice of IPsec replay window size net/mlx5e: Ensure that IPsec sequence packet number starts from 1 net/mlx5e: Tidy up IPsec NAT-T SA discovery

Li Nan (4):
nbd: fold nbd config initialization into nbd_alloc_config()
nbd: factor out a helper to get nbd_config without holding 'config_lock'
nbd: fix null-ptr-dereference while accessing 'nbd->config'
nbd: pass nbd_sock to nbd_read_reply() instead of index

Linus Torvalds (1):
asm-generic: qspinlock: fix queued_spin_value_unlocked() implementation

Maciej Żenczykowski (1):
net: ipv6: support reporting otherwise unknown prefix flags in RTM_NEWPREFIX

Mario Limonciello (3):
HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[] drm/amd/display: Restore guard against default backlight value < 1 nit drm/amd/display: Disable PSR-SU on Parade 0803 TCON again

Mark O'Donovan (1):
nvme-auth: set explanation code for failure2 msgs

Mark Rutland (1):
perf: Fix perf_event_validate_size() lockdep splat

Masahiro Yamada (2):
LoongArch: Add dependency between vmlinuz.efi and vmlinux.efi
arm64: add dependency between vmlinuz.efi and Image

Michael Chan (1):
bnxt_en: Fix HWTSTAMP_FILTER_ALL packet timestamp logic

Michael Walle (1):
drm/mediatek: fix kernel oops if no crtc is found

Mikhail Khvainitski (1):
HID: lenovo: Restrict detection of patched firmware only to USB cptkbd

Ming Lei (2):
blk-throttle: fix lockdep warning of "cgroup_mutex or RCU read lock required!"
blk-cgroup: bypass blkcg_deactivate_policy after destroying

Moshe Shemesh (2):
net/mlx5e: Fix possible deadlock on mlx5e_tx_timeout_work net/mlx5: Nack sync reset request when HotPlug is enabled

Namjae Jeon (1):
ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE

Nguyen Dinh Phi (1):
nfc: virtual_ncidev: Add variable to check if ndev is running

Nikolay Kuratov (1):
vsock/virtio: Fix unsigned integer wrap around in virtio_transport_has_space()

Oliver Neukum (2):
usb: aqc111: check packet for fixup for true limit
HID: add ALWAYS_POLL quirk for Apple kb

Patrisious Haddad (3):
net/mlx5e: Unify esw and normal IPsec status table creation/destruction RDMA/mlx5: Send events from IB driver about device affiliation state RDMA/mlx5: Change the key being sent for MPV device affiliation

Paulo Alcantara (7):
smb: client: implement ->query_reparse_point() for SMB1
smb: client: introduce ->parse_reparse_point()
smb: client: set correct file type from NFS reparse points
smb: client: fix OOB in receive_encrypted_standard()
smb: client: fix potential OOBs in smb2_parse_contexts()
smb: client: fix NULL deref in asn1_ber_decoder()
smb: client: fix OOB in smb2_query_reparse_point()

Piotr Gardocki (2):
iavf: Introduce new state machines for flow director
iavf: Handle ntuple on/off based on new state machines for flow director

Radu Bulie (1):
net: fec: correct queue selection

Saurabh Sengar (1):
x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM

Sebastian Parschauer (1):
HID: Add quirk for Labtec/ODDOR/aikeec handbrake

Shinas Rasheed (1):
octeon_ep: explicitly test for firmware ready value

Slawomir Laba (1):
iavf: Fix iavf_shutdown to call iavf_remove instead iavf_close

Sneh Shah (1):
net: stmmac: dwmac-qcom-ethqos: Fix drops in 10M SGMII RX

Somnath Kotur (1):
bnxt_en: Clear resource reservation during resume

Sreekanth Reddy (1):
bnxt_en: Fix skb recycling logic in bnxt_deliver_skb()

Stanislaw Gruszka (1):
accel/ivpu: Print information about used workarounds

Stefan Wahren (3):
qca_debug: Prevent crash on TX ring changes
qca_debug: Fix ethtool -G iface tx behavior
qca_spi: Fix reset behavior

Steven Rostedt (Google) (9):
eventfs: Do not allow NULL parent to eventfs_start_creating()
ring-buffer: Fix memory leak of free page
tracing: Update snapshot buffer on resize if it is allocated
ring-buffer: Do not update before stamp when switching sub-buffers
ring-buffer: Have saved event hold the entire event
ring-buffer: Fix writing to the buffer with max_data_size
ring-buffer: Fix a race in rb_time_cmpxchg() for 32 bit archs
ring-buffer: Do not try to put back write_stamp
ring-buffer: Have rb_time_cmpxchg() set the msb counter too

Stuart Lee (1):
drm/mediatek: Fix access violation in mtk_drm_crtc_dma_dev_get

Tvrtko Ursulin (2):
drm/i915/selftests: Fix engine reset count storage for multi-tile drm/i915: Use internal class when counting engine resets

Tyler Fanelli (1):
fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP

Ville Syrjälä (3):
drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than the original drm/i915: Fix intel_atomic_setup_scalers() plane_state handling drm/i915: Fix remapped stride with CCS on ADL+

Vlad Buslov (1):
net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table

WANG Rui (1):
LoongArch: Record pc instead of offset in la_abs relocation

Yanteng Si (1):
stmmac: dwmac-loongson: Make sure MDIO is initialized before use

Yihong Cao (1):
HID: apple: add Jamesdonkey and A3R to non-apple keyboards list

Yu Zhao (4):
mm/mglru: fix underprotected page cache
mm/mglru: try to stop at high watermarks
mm/mglru: respect min_ttl_ms with memcgs
mm/mglru: reclaim offlined memcgs harder

Yusong Gao (1):
sign-file: Fix incorrect return values check

Zhipeng Lu (1):
octeontx2-af: fix a use-after-free in rvu_nix_register_reporters

Zizhi Wo (1):
ksmbd: fix memory leak in smb2_lock()

author maintainer
#1 lore raw
Makefile +1 -1
index 707952172ece..891ef640396c 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 6
-SUBLEVEL = 7
+SUBLEVEL = 8
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/arm64/Makefile +1 -1
index 2d49aea0ff67..26b8c7630a21 100644
@@ -158,7 +158,7 @@ endif
 
 all:	$(notdir $(KBUILD_IMAGE))
 
-
+vmlinuz.efi: Image
 Image vmlinuz.efi: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
arch/arm64/include/asm/pgtable.h +6 -0
index 7f7d9b1df4e5..07bdf5dd8ebe 100644
@@ -826,6 +826,12 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
 		pte = set_pte_bit(pte, __pgprot(PTE_DIRTY));
 
 	pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask);
+	/*
+	 * If we end up clearing hw dirtiness for a sw-dirty PTE, set hardware
+	 * dirtiness again.
+	 */
+	if (pte_sw_dirty(pte))
+		pte = pte_mkdirty(pte);
 	return pte;
 }
 
arch/loongarch/Makefile +2 -0
index fb0fada43197..96747bfec1a1 100644
@@ -142,6 +142,8 @@ vdso_install:
 
 all:	$(notdir $(KBUILD_IMAGE))
 
+vmlinuz.efi: vmlinux.efi
+
 vmlinux.elf vmlinux.efi vmlinuz.efi: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(bootvars-y) $(boot)/$@
 
arch/loongarch/include/asm/asmmacro.h +1 -2
index c9544f358c33..655db7d7a427 100644
@@ -609,8 +609,7 @@
 	lu32i.d	\reg, 0
 	lu52i.d	\reg, \reg, 0
 	.pushsection ".la_abs", "aw", %progbits
-	768:
-	.dword	768b-766b
+	.dword	766b
 	.dword	\sym
 	.popsection
 #endif
arch/loongarch/include/asm/setup.h +1 -1
index a0bc159ce8bd..ee52fb1e9963 100644
@@ -25,7 +25,7 @@ extern void set_merr_handler(unsigned long offset, void *addr, unsigned long len
 #ifdef CONFIG_RELOCATABLE
 
 struct rela_la_abs {
-	long offset;
+	long pc;
 	long symvalue;
 };
 
arch/loongarch/kernel/relocate.c +9 -1
index 6c3eff9af9fb..1acfa704c8d0 100644
@@ -52,7 +52,7 @@ static inline void __init relocate_absolute(long random_offset)
 	for (p = begin; (void *)p < end; p++) {
 		long v = p->symvalue;
 		uint32_t lu12iw, ori, lu32id, lu52id;
-		union loongarch_instruction *insn = (void *)p - p->offset;
+		union loongarch_instruction *insn = (void *)p->pc;
 
 		lu12iw = (v >> 12) & 0xfffff;
 		ori    = v & 0xfff;
@@ -102,6 +102,14 @@ static inline __init unsigned long get_random_boot(void)
 	return hash;
 }
 
+static int __init nokaslr(char *p)
+{
+	pr_info("KASLR is disabled.\n");
+
+	return 0; /* Print a notice and silence the boot warning */
+}
+early_param("nokaslr", nokaslr);
+
 static inline __init bool kaslr_disabled(void)
 {
 	char *str;
arch/loongarch/kernel/time.c +9 -14
index 3064af94db9c..e7015f7b70e3 100644
@@ -58,14 +58,16 @@ static int constant_set_state_oneshot(struct clock_event_device *evt)
 	return 0;
 }
 
-static int constant_set_state_oneshot_stopped(struct clock_event_device *evt)
+static int constant_set_state_periodic(struct clock_event_device *evt)
 {
+	unsigned long period;
 	unsigned long timer_config;
 
 	raw_spin_lock(&state_lock);
 
-	timer_config = csr_read64(LOONGARCH_CSR_TCFG);
-	timer_config &= ~CSR_TCFG_EN;
+	period = const_clock_freq / HZ;
+	timer_config = period & CSR_TCFG_VAL;
+	timer_config |= (CSR_TCFG_PERIOD | CSR_TCFG_EN);
 	csr_write64(timer_config, LOONGARCH_CSR_TCFG);
 
 	raw_spin_unlock(&state_lock);
@@ -73,16 +75,14 @@ static int constant_set_state_oneshot_stopped(struct clock_event_device *evt)
 	return 0;
 }
 
-static int constant_set_state_periodic(struct clock_event_device *evt)
+static int constant_set_state_shutdown(struct clock_event_device *evt)
 {
-	unsigned long period;
 	unsigned long timer_config;
 
 	raw_spin_lock(&state_lock);
 
-	period = const_clock_freq / HZ;
-	timer_config = period & CSR_TCFG_VAL;
-	timer_config |= (CSR_TCFG_PERIOD | CSR_TCFG_EN);
+	timer_config = csr_read64(LOONGARCH_CSR_TCFG);
+	timer_config &= ~CSR_TCFG_EN;
 	csr_write64(timer_config, LOONGARCH_CSR_TCFG);
 
 	raw_spin_unlock(&state_lock);
@@ -90,11 +90,6 @@ static int constant_set_state_periodic(struct clock_event_device *evt)
 	return 0;
 }
 
-static int constant_set_state_shutdown(struct clock_event_device *evt)
-{
-	return 0;
-}
-
 static int constant_timer_next_event(unsigned long delta, struct clock_event_device *evt)
 {
 	unsigned long timer_config;
@@ -161,7 +156,7 @@ int constant_clockevent_init(void)
 	cd->rating = 320;
 	cd->cpumask = cpumask_of(cpu);
 	cd->set_state_oneshot = constant_set_state_oneshot;
-	cd->set_state_oneshot_stopped = constant_set_state_oneshot_stopped;
+	cd->set_state_oneshot_stopped = constant_set_state_shutdown;
 	cd->set_state_periodic = constant_set_state_periodic;
 	cd->set_state_shutdown = constant_set_state_shutdown;
 	cd->set_next_event = constant_timer_next_event;
arch/loongarch/mm/pgtable.c +2 -2
index 71d0539e2d0b..2aae72e63871 100644
@@ -13,13 +13,13 @@ struct page *dmw_virt_to_page(unsigned long kaddr)
 {
 	return pfn_to_page(virt_to_pfn(kaddr));
 }
-EXPORT_SYMBOL_GPL(dmw_virt_to_page);
+EXPORT_SYMBOL(dmw_virt_to_page);
 
 struct page *tlb_virt_to_page(unsigned long kaddr)
 {
 	return pfn_to_page(pte_pfn(*virt_to_kpte(kaddr)));
 }
-EXPORT_SYMBOL_GPL(tlb_virt_to_page);
+EXPORT_SYMBOL(tlb_virt_to_page);
 
 pgd_t *pgd_alloc(struct mm_struct *mm)
 {
arch/powerpc/configs/skiroot_defconfig +0 -1
index 8d3eacb50d56..9d44e6630908 100644
@@ -301,7 +301,6 @@ CONFIG_WQ_WATCHDOG=y
 CONFIG_DEBUG_SG=y
 CONFIG_DEBUG_NOTIFIERS=y
 CONFIG_BUG_ON_DATA_CORRUPTION=y
-CONFIG_DEBUG_CREDENTIALS=y
 # CONFIG_FTRACE is not set
 CONFIG_XMON=y
 # CONFIG_RUNTIME_TESTING_MENU is not set
arch/riscv/Kconfig +2 -2
index 9c48fecc6719..6688cbbed0b4 100644
@@ -669,7 +669,7 @@ config RISCV_BOOT_SPINWAIT
 	  If unsure what to do here, say N.
 
 config ARCH_SUPPORTS_KEXEC
-	def_bool MMU
+	def_bool y
 
 config ARCH_SELECTS_KEXEC
 	def_bool y
@@ -677,7 +677,7 @@ config ARCH_SELECTS_KEXEC
 	select HOTPLUG_CPU if SMP
 
 config ARCH_SUPPORTS_KEXEC_FILE
-	def_bool 64BIT && MMU
+	def_bool 64BIT
 
 config ARCH_SELECTS_KEXEC_FILE
 	def_bool y
arch/riscv/kernel/crash_core.c +3 -1
index 55f1d7856b54..8706736fd4e2 100644
@@ -5,17 +5,19 @@
 
 void arch_crash_save_vmcoreinfo(void)
 {
-	VMCOREINFO_NUMBER(VA_BITS);
 	VMCOREINFO_NUMBER(phys_ram_base);
 
 	vmcoreinfo_append_str("NUMBER(PAGE_OFFSET)=0x%lx\n", PAGE_OFFSET);
 	vmcoreinfo_append_str("NUMBER(VMALLOC_START)=0x%lx\n", VMALLOC_START);
 	vmcoreinfo_append_str("NUMBER(VMALLOC_END)=0x%lx\n", VMALLOC_END);
+#ifdef CONFIG_MMU
+	VMCOREINFO_NUMBER(VA_BITS);
 	vmcoreinfo_append_str("NUMBER(VMEMMAP_START)=0x%lx\n", VMEMMAP_START);
 	vmcoreinfo_append_str("NUMBER(VMEMMAP_END)=0x%lx\n", VMEMMAP_END);
 #ifdef CONFIG_64BIT
 	vmcoreinfo_append_str("NUMBER(MODULES_VADDR)=0x%lx\n", MODULES_VADDR);
 	vmcoreinfo_append_str("NUMBER(MODULES_END)=0x%lx\n", MODULES_END);
+#endif
 #endif
 	vmcoreinfo_append_str("NUMBER(KERNEL_LINK_ADDR)=0x%lx\n", KERNEL_LINK_ADDR);
 	vmcoreinfo_append_str("NUMBER(va_kernel_pa_offset)=0x%lx\n",
arch/s390/configs/debug_defconfig +0 -1
index 438cd92e6080..dd0608629310 100644
@@ -834,7 +834,6 @@ CONFIG_DEBUG_IRQFLAGS=y
 CONFIG_DEBUG_LIST=y
 CONFIG_DEBUG_SG=y
 CONFIG_DEBUG_NOTIFIERS=y
-CONFIG_DEBUG_CREDENTIALS=y
 CONFIG_RCU_TORTURE_TEST=m
 CONFIG_RCU_REF_SCALE_TEST=m
 CONFIG_RCU_CPU_STALL_TIMEOUT=300
arch/x86/hyperv/hv_init.c +21 -4
index 21556ad87f4b..8f3a4d16bb79 100644
@@ -15,6 +15,7 @@
 #include <linux/io.h>
 #include <asm/apic.h>
 #include <asm/desc.h>
+#include <asm/e820/api.h>
 #include <asm/sev.h>
 #include <asm/ibt.h>
 #include <asm/hypervisor.h>
@@ -286,15 +287,31 @@ static int hv_cpu_die(unsigned int cpu)
 
 static int __init hv_pci_init(void)
 {
-	int gen2vm = efi_enabled(EFI_BOOT);
+	bool gen2vm = efi_enabled(EFI_BOOT);
 
 	/*
-	 * For Generation-2 VM, we exit from pci_arch_init() by returning 0.
-	 * The purpose is to suppress the harmless warning:
+	 * A Generation-2 VM doesn't support legacy PCI/PCIe, so both
+	 * raw_pci_ops and raw_pci_ext_ops are NULL, and pci_subsys_init() ->
+	 * pcibios_init() doesn't call pcibios_resource_survey() ->
+	 * e820__reserve_resources_late(); as a result, any emulated persistent
+	 * memory of E820_TYPE_PRAM (12) via the kernel parameter
+	 * memmap=nn[KMG]!ss is not added into iomem_resource and hence can't be
+	 * detected by register_e820_pmem(). Fix this by directly calling
+	 * e820__reserve_resources_late() here: e820__reserve_resources_late()
+	 * depends on e820__reserve_resources(), which has been called earlier
+	 * from setup_arch(). Note: e820__reserve_resources_late() also adds
+	 * any memory of E820_TYPE_PMEM (7) into iomem_resource, and
+	 * acpi_nfit_register_region() -> acpi_nfit_insert_resource() ->
+	 * region_intersects() returns REGION_INTERSECTS, so the memory of
+	 * E820_TYPE_PMEM won't get added twice.
+	 *
+	 * We return 0 here so that pci_arch_init() won't print the warning:
 	 * "PCI: Fatal: No config space access function found"
 	 */
-	if (gen2vm)
+	if (gen2vm) {
+		e820__reserve_resources_late();
 		return 0;
+	}
 
 	/* For Generation-1 VM, we'll proceed in pci_arch_init().  */
 	return 1;
arch/x86/include/asm/alternative.h +2 -2
index 9c4da699e11a..65f79092c9d9 100644
@@ -58,7 +58,7 @@
 #define ANNOTATE_IGNORE_ALTERNATIVE				\
 	"999:\n\t"						\
 	".pushsection .discard.ignore_alts\n\t"			\
-	".long 999b - .\n\t"					\
+	".long 999b\n\t"					\
 	".popsection\n\t"
 
 /*
@@ -352,7 +352,7 @@ static inline int alternatives_text_reserved(void *start, void *end)
 .macro ANNOTATE_IGNORE_ALTERNATIVE
 	.Lannotate_\@:
 	.pushsection .discard.ignore_alts
-	.long .Lannotate_\@ - .
+	.long .Lannotate_\@
 	.popsection
 .endm
 
arch/x86/include/asm/nospec-branch.h +2 -2
index 197ff4f4d1ce..0396458c201f 100644
@@ -196,7 +196,7 @@
 .macro ANNOTATE_RETPOLINE_SAFE
 .Lhere_\@:
 	.pushsection .discard.retpoline_safe
-	.long .Lhere_\@ - .
+	.long .Lhere_\@
 	.popsection
 .endm
 
@@ -334,7 +334,7 @@
 #define ANNOTATE_RETPOLINE_SAFE					\
 	"999:\n\t"						\
 	".pushsection .discard.retpoline_safe\n\t"		\
-	".long 999b - .\n\t"					\
+	".long 999b\n\t"					\
 	".popsection\n\t"
 
 typedef u8 retpoline_thunk_t[RETPOLINE_THUNK_SIZE];
block/blk-cgroup.c +13 -0
index 4a42ea2972ad..4b48c2c44098 100644
@@ -577,6 +577,7 @@ static void blkg_destroy_all(struct gendisk *disk)
 	struct request_queue *q = disk->queue;
 	struct blkcg_gq *blkg, *n;
 	int count = BLKG_DESTROY_BATCH_SIZE;
+	int i;
 
 restart:
 	spin_lock_irq(&q->queue_lock);
@@ -602,6 +603,18 @@ static void blkg_destroy_all(struct gendisk *disk)
 		}
 	}
 
+	/*
+	 * Mark policy deactivated since policy offline has been done, and
+	 * the free is scheduled, so future blkcg_deactivate_policy() can
+	 * be bypassed
+	 */
+	for (i = 0; i < BLKCG_MAX_POLS; i++) {
+		struct blkcg_policy *pol = blkcg_policy[i];
+
+		if (pol)
+			__clear_bit(pol->plid, q->blkcg_pols);
+	}
+
 	q->root_blkg = NULL;
 	spin_unlock_irq(&q->queue_lock);
 }
block/blk-throttle.c +2 -0
index 13e4377a8b28..16f5766620a4 100644
@@ -1320,6 +1320,7 @@ static void tg_conf_updated(struct throtl_grp *tg, bool global)
 		   tg_bps_limit(tg, READ), tg_bps_limit(tg, WRITE),
 		   tg_iops_limit(tg, READ), tg_iops_limit(tg, WRITE));
 
+	rcu_read_lock();
 	/*
 	 * Update has_rules[] flags for the updated tg's subtree.  A tg is
 	 * considered to have rules if either the tg itself or any of its
@@ -1347,6 +1348,7 @@ static void tg_conf_updated(struct throtl_grp *tg, bool global)
 		this_tg->latency_target = max(this_tg->latency_target,
 				parent_tg->latency_target);
 	}
+	rcu_read_unlock();
 
 	/*
 	 * We're already holding queue_lock and know @tg is valid.  Let's
drivers/accel/ivpu/ivpu_drv.h +5 -0
index 2adc349126bb..6853dfe1c7e5 100644
@@ -76,6 +76,11 @@
 
 #define IVPU_WA(wa_name) (vdev->wa.wa_name)
 
+#define IVPU_PRINT_WA(wa_name) do {					\
+	if (IVPU_WA(wa_name))						\
+		ivpu_dbg(vdev, MISC, "Using WA: " #wa_name "\n");	\
+} while (0)
+
 struct ivpu_wa_table {
 	bool punit_disabled;
 	bool clear_runtime_mem;
drivers/accel/ivpu/ivpu_hw_37xx.c +14 -3
index b8010c07eec1..ddf03498fd4c 100644
@@ -53,10 +53,12 @@
 
 #define ICB_0_1_IRQ_MASK ((((u64)ICB_1_IRQ_MASK) << 32) | ICB_0_IRQ_MASK)
 
-#define BUTTRESS_IRQ_MASK ((REG_FLD(VPU_37XX_BUTTRESS_INTERRUPT_STAT, FREQ_CHANGE)) | \
-			   (REG_FLD(VPU_37XX_BUTTRESS_INTERRUPT_STAT, ATS_ERR)) | \
+#define BUTTRESS_IRQ_MASK ((REG_FLD(VPU_37XX_BUTTRESS_INTERRUPT_STAT, ATS_ERR)) | \
 			   (REG_FLD(VPU_37XX_BUTTRESS_INTERRUPT_STAT, UFI_ERR)))
 
+#define BUTTRESS_ALL_IRQ_MASK (BUTTRESS_IRQ_MASK | \
+			       (REG_FLD(VPU_37XX_BUTTRESS_INTERRUPT_STAT, FREQ_CHANGE)))
+
 #define BUTTRESS_IRQ_ENABLE_MASK ((u32)~BUTTRESS_IRQ_MASK)
 #define BUTTRESS_IRQ_DISABLE_MASK ((u32)-1)
 
@@ -102,8 +104,17 @@ static void ivpu_hw_wa_init(struct ivpu_device *vdev)
 	vdev->wa.clear_runtime_mem = false;
 	vdev->wa.d3hot_after_power_off = true;
 
-	if (ivpu_device_id(vdev) == PCI_DEVICE_ID_MTL && ivpu_revision(vdev) < 4)
+	REGB_WR32(VPU_37XX_BUTTRESS_INTERRUPT_STAT, BUTTRESS_ALL_IRQ_MASK);
+	if (REGB_RD32(VPU_37XX_BUTTRESS_INTERRUPT_STAT) == BUTTRESS_ALL_IRQ_MASK) {
+		/* Writing 1s does not clear the interrupt status register */
 		vdev->wa.interrupt_clear_with_0 = true;
+		REGB_WR32(VPU_37XX_BUTTRESS_INTERRUPT_STAT, 0x0);
+	}
+
+	IVPU_PRINT_WA(punit_disabled);
+	IVPU_PRINT_WA(clear_runtime_mem);
+	IVPU_PRINT_WA(d3hot_after_power_off);
+	IVPU_PRINT_WA(interrupt_clear_with_0);
 }
 
 static void ivpu_hw_timeouts_init(struct ivpu_device *vdev)
drivers/accel/ivpu/ivpu_hw_40xx.c +4 -0
index 7c3ff25232a2..03600a7a5aca 100644
@@ -125,6 +125,10 @@ static void ivpu_hw_wa_init(struct ivpu_device *vdev)
 
 	if (ivpu_hw_gen(vdev) == IVPU_HW_40XX)
 		vdev->wa.disable_clock_relinquish = true;
+
+	IVPU_PRINT_WA(punit_disabled);
+	IVPU_PRINT_WA(clear_runtime_mem);
+	IVPU_PRINT_WA(disable_clock_relinquish);
 }
 
 static void ivpu_hw_timeouts_init(struct ivpu_device *vdev)
drivers/atm/solos-pci.c +4 -4
index 94fbc3abe60e..d3c30a28c410 100644
@@ -449,9 +449,9 @@ static ssize_t console_show(struct device *dev, struct device_attribute *attr,
 	struct sk_buff *skb;
 	unsigned int len;
 
-	spin_lock(&card->cli_queue_lock);
+	spin_lock_bh(&card->cli_queue_lock);
 	skb = skb_dequeue(&card->cli_queue[SOLOS_CHAN(atmdev)]);
-	spin_unlock(&card->cli_queue_lock);
+	spin_unlock_bh(&card->cli_queue_lock);
 	if(skb == NULL)
 		return sprintf(buf, "No data.\n");
 
@@ -956,14 +956,14 @@ static void pclose(struct atm_vcc *vcc)
 	struct pkt_hdr *header;
 
 	/* Remove any yet-to-be-transmitted packets from the pending queue */
-	spin_lock(&card->tx_queue_lock);
+	spin_lock_bh(&card->tx_queue_lock);
 	skb_queue_walk_safe(&card->tx_queue[port], skb, tmpskb) {
 		if (SKB_CB(skb)->vcc == vcc) {
 			skb_unlink(skb, &card->tx_queue[port]);
 			solos_pop(vcc, skb);
 		}
 	}
-	spin_unlock(&card->tx_queue_lock);
+	spin_unlock_bh(&card->tx_queue_lock);
 
 	skb = alloc_skb(sizeof(*header), GFP_KERNEL);
 	if (!skb) {
drivers/block/nbd.c +75 -42

272 lines not on this page · raw message

drivers/cxl/core/hdm.c +1 -2
index 64e86b786db5..22829267ccd8 100644
@@ -373,10 +373,9 @@ resource_size_t cxl_dpa_resource_start(struct cxl_endpoint_decoder *cxled)
 {
 	resource_size_t base = -1;
 
-	down_read(&cxl_dpa_rwsem);
+	lockdep_assert_held(&cxl_dpa_rwsem);
 	if (cxled->dpa_res)
 		base = cxled->dpa_res->start;
-	up_read(&cxl_dpa_rwsem);
 
 	return base;
 }
drivers/cxl/core/port.c +2 -2
index 6a75a3cb601e..1e0558d18b96 100644
@@ -219,9 +219,9 @@ static ssize_t dpa_resource_show(struct device *dev, struct device_attribute *at
 			    char *buf)
 {
 	struct cxl_endpoint_decoder *cxled = to_cxl_endpoint_decoder(dev);
-	u64 base = cxl_dpa_resource_start(cxled);
 
-	return sysfs_emit(buf, "%#llx\n", base);
+	guard(rwsem_read)(&cxl_dpa_rwsem);
+	return sysfs_emit(buf, "%#llx\n", (u64)cxl_dpa_resource_start(cxled));
 }
 static DEVICE_ATTR_RO(dpa_resource);
 
drivers/dma/fsl-edma-common.c +1 -0
index 6a3abe5b1790..b53f46245c37 100644
@@ -828,6 +828,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan)
 	dma_pool_destroy(fsl_chan->tcd_pool);
 	fsl_chan->tcd_pool = NULL;
 	fsl_chan->is_sw = false;
+	fsl_chan->srcid = 0;
 }
 
 void fsl_edma_cleanup_vchan(struct dma_device *dmadev)
drivers/dma/stm32-dma.c +6 -2
index 0b30151fb45c..9840594a6aaa 100644
@@ -1249,8 +1249,8 @@ static struct dma_async_tx_descriptor *stm32_dma_prep_dma_memcpy(
 	enum dma_slave_buswidth max_width;
 	struct stm32_dma_desc *desc;
 	size_t xfer_count, offset;
-	u32 num_sgs, best_burst, dma_burst, threshold;
-	int i;
+	u32 num_sgs, best_burst, threshold;
+	int dma_burst, i;
 
 	num_sgs = DIV_ROUND_UP(len, STM32_DMA_ALIGNED_MAX_DATA_ITEMS);
 	desc = kzalloc(struct_size(desc, sg_req, num_sgs), GFP_NOWAIT);
@@ -1268,6 +1268,10 @@ static struct dma_async_tx_descriptor *stm32_dma_prep_dma_memcpy(
 		best_burst = stm32_dma_get_best_burst(len, STM32_DMA_MAX_BURST,
 						      threshold, max_width);
 		dma_burst = stm32_dma_get_burst(chan, best_burst);
+		if (dma_burst < 0) {
+			kfree(desc);
+			return NULL;
+		}
 
 		stm32_dma_clear_reg(&desc->sg_req[i].chan_reg);
 		desc->sg_req[i].chan_reg.dma_scr =
drivers/firmware/efi/libstub/x86-stub.c +24 -7
index 9d5df683f882..70b325a2f1f3 100644
@@ -307,17 +307,20 @@ static void setup_unaccepted_memory(void)
 		efi_err("Memory acceptance protocol failed\n");
 }
 
+static efi_char16_t *efistub_fw_vendor(void)
+{
+	unsigned long vendor = efi_table_attr(efi_system_table, fw_vendor);
+
+	return (efi_char16_t *)vendor;
+}
+
 static const efi_char16_t apple[] = L"Apple";
 
 static void setup_quirks(struct boot_params *boot_params)
 {
-	efi_char16_t *fw_vendor = (efi_char16_t *)(unsigned long)
-		efi_table_attr(efi_system_table, fw_vendor);
-
-	if (!memcmp(fw_vendor, apple, sizeof(apple))) {
-		if (IS_ENABLED(CONFIG_APPLE_PROPERTIES))
-			retrieve_apple_device_properties(boot_params);
-	}
+	if (IS_ENABLED(CONFIG_APPLE_PROPERTIES) &&
+	    !memcmp(efistub_fw_vendor(), apple, sizeof(apple)))
+		retrieve_apple_device_properties(boot_params);
 }
 
 /*
@@ -799,11 +802,25 @@ static efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
 
 	if (IS_ENABLED(CONFIG_RANDOMIZE_BASE) && !efi_nokaslr) {
 		u64 range = KERNEL_IMAGE_SIZE - LOAD_PHYSICAL_ADDR - kernel_total_size;
+		static const efi_char16_t ami[] = L"American Megatrends";
 
 		efi_get_seed(seed, sizeof(seed));
 
 		virt_addr += (range * seed[1]) >> 32;
 		virt_addr &= ~(CONFIG_PHYSICAL_ALIGN - 1);
+
+		/*
+		 * Older Dell systems with AMI UEFI firmware v2.0 may hang
+		 * while decompressing the kernel if physical address
+		 * randomization is enabled.
+		 *
+		 * https://bugzilla.kernel.org/show_bug.cgi?id=218173
+		 */
+		if (efi_system_table->hdr.revision <= EFI_2_00_SYSTEM_TABLE_REVISION &&
+		    !memcmp(efistub_fw_vendor(), ami, sizeof(ami))) {
+			efi_debug("AMI firmware v2.0 or older detected - disabling physical KASLR\n");
+			seed[0] = 0;
+		}
 	}
 
 	status = efi_random_alloc(alloc_size, CONFIG_PHYSICAL_ALIGN, &addr,
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +2 -1
index 96d601e209b8..0d51222f6f8e 100644
@@ -642,13 +642,14 @@ static void amdgpu_vm_pt_free(struct amdgpu_vm_bo_base *entry)
 
 	if (!entry->bo)
 		return;
+
+	entry->bo->vm_bo = NULL;
 	shadow = amdgpu_bo_shadowed(entry->bo);
 	if (shadow) {
 		ttm_bo_set_bulk_move(&shadow->tbo, NULL);
 		amdgpu_bo_unref(&shadow);
 	}
 	ttm_bo_set_bulk_move(&entry->bo->tbo, NULL);
-	entry->bo->vm_bo = NULL;
 
 	spin_lock(&entry->vm->status_lock);
 	list_del(&entry->vm_status);
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +28 -0
index 2b3ebebc4299..0f930fd8a383 100644
@@ -1651,6 +1651,32 @@ static void sdma_v5_2_get_clockgating_state(void *handle, u64 *flags)
 		*flags |= AMD_CG_SUPPORT_SDMA_LS;
 }
 
+static void sdma_v5_2_ring_begin_use(struct amdgpu_ring *ring)
+{
+	struct amdgpu_device *adev = ring->adev;
+
+	/* SDMA 5.2.3 (RMB) FW doesn't seem to properly
+	 * disallow GFXOFF in some cases leading to
+	 * hangs in SDMA.  Disallow GFXOFF while SDMA is active.
+	 * We can probably just limit this to 5.2.3,
+	 * but it shouldn't hurt for other parts since
+	 * this GFXOFF will be disallowed anyway when SDMA is
+	 * active, this just makes it explicit.
+	 */
+	amdgpu_gfx_off_ctrl(adev, false);
+}
+
+static void sdma_v5_2_ring_end_use(struct amdgpu_ring *ring)
+{
+	struct amdgpu_device *adev = ring->adev;
+
+	/* SDMA 5.2.3 (RMB) FW doesn't seem to properly
+	 * disallow GFXOFF in some cases leading to
+	 * hangs in SDMA.  Allow GFXOFF when SDMA is complete.
+	 */
+	amdgpu_gfx_off_ctrl(adev, true);
+}
+
 const struct amd_ip_funcs sdma_v5_2_ip_funcs = {
 	.name = "sdma_v5_2",
 	.early_init = sdma_v5_2_early_init,
@@ -1698,6 +1724,8 @@ static const struct amdgpu_ring_funcs sdma_v5_2_ring_funcs = {
 	.test_ib = sdma_v5_2_ring_test_ib,
 	.insert_nop = sdma_v5_2_ring_insert_nop,
 	.pad_ib = sdma_v5_2_ring_pad_ib,
+	.begin_use = sdma_v5_2_ring_begin_use,
+	.end_use = sdma_v5_2_ring_end_use,
 	.emit_wreg = sdma_v5_2_ring_emit_wreg,
 	.emit_reg_wait = sdma_v5_2_ring_emit_reg_wait,
 	.emit_reg_write_reg_wait = sdma_v5_2_ring_emit_reg_write_reg_wait,
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c +2 -2
index fe74d4252a51..13c3d7ff6139 100644
@@ -280,8 +280,8 @@ bool set_default_brightness_aux(struct dc_link *link)
 	if (link && link->dpcd_sink_ext_caps.bits.oled == 1) {
 		if (!read_default_bl_aux(link, &default_backlight))
 			default_backlight = 150000;
-		// if > 5000, it might be wrong readback
-		if (default_backlight > 5000000)
+		// if < 1 nits or > 5000, it might be wrong readback
+		if (default_backlight < 1000 || default_backlight > 5000000)
 			default_backlight = 150000;
 
 		return edp_set_backlight_level_nits(link, true,
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +2 -0
index 73a2b37fbbd7..2b3d5183818a 100644
@@ -839,6 +839,8 @@ bool is_psr_su_specific_panel(struct dc_link *link)
 				((dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x08) ||
 				(dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x07)))
 				isPSRSUSupported = false;
+			else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x03)
+				isPSRSUSupported = false;
 			else if (dpcd_caps->psr_info.force_psrsu_cap == 0x1)
 				isPSRSUSupported = true;
 		}
drivers/gpu/drm/drm_edid.c +2 -1
index b3e1b288fc0c..a491280ca48c 100644
@@ -2308,7 +2308,8 @@ int drm_edid_override_connector_update(struct drm_connector *connector)
 
 	override = drm_edid_override_get(connector);
 	if (override) {
-		num_modes = drm_edid_connector_update(connector, override);
+		if (drm_edid_connector_update(connector, override) == 0)
+			num_modes = drm_edid_connector_add_modes(connector);
 
 		drm_edid_free(override);
 
drivers/gpu/drm/i915/display/intel_fb.c +16 -3
index 446bbf7986b6..689b7c16d300 100644
@@ -1370,7 +1370,8 @@ plane_view_scanout_stride(const struct intel_framebuffer *fb, int color_plane,
 	struct drm_i915_private *i915 = to_i915(fb->base.dev);
 	unsigned int stride_tiles;
 
-	if (IS_ALDERLAKE_P(i915) || DISPLAY_VER(i915) >= 14)
+	if ((IS_ALDERLAKE_P(i915) || DISPLAY_VER(i915) >= 14) &&
+	    src_stride_tiles < dst_stride_tiles)
 		stride_tiles = src_stride_tiles;
 	else
 		stride_tiles = dst_stride_tiles;
@@ -1497,8 +1498,20 @@ static u32 calc_plane_remap_info(const struct intel_framebuffer *fb, int color_p
 
 			size += remap_info->size;
 		} else {
-			unsigned int dst_stride = plane_view_dst_stride_tiles(fb, color_plane,
-									      remap_info->width);
+			unsigned int dst_stride;
+
+			/*
+			 * The hardware automagically calculates the CCS AUX surface
+			 * stride from the main surface stride so can't really remap a
+			 * smaller subset (unless we'd remap in whole AUX page units).
+			 */
+			if (intel_fb_needs_pot_stride_remap(fb) &&
+			    intel_fb_is_ccs_modifier(fb->base.modifier))
+				dst_stride = remap_info->src_stride;
+			else
+				dst_stride = remap_info->width;
+
+			dst_stride = plane_view_dst_stride_tiles(fb, color_plane, dst_stride);
 
 			assign_chk_ovf(i915, remap_info->dst_stride, dst_stride);
 			color_plane_info->mapping_stride = dst_stride *
drivers/gpu/drm/i915/display/skl_scaler.c +1 -1
index 1e7c97243fcf..8a934bada624 100644
@@ -504,7 +504,6 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,
 {
 	struct drm_plane *plane = NULL;
 	struct intel_plane *intel_plane;
-	struct intel_plane_state *plane_state = NULL;
 	struct intel_crtc_scaler_state *scaler_state =
 		&crtc_state->scaler_state;
 	struct drm_atomic_state *drm_state = crtc_state->uapi.state;
@@ -536,6 +535,7 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,
 
 	/* walkthrough scaler_users bits and start assigning scalers */
 	for (i = 0; i < sizeof(scaler_state->scaler_users) * 8; i++) {
+		struct intel_plane_state *plane_state = NULL;
 		int *scaler_id;
 		const char *name;
 		int idx, ret;
drivers/gpu/drm/i915/gt/intel_reset.c +1 -1
index cc6bd21a3e51..5fa57a34cf4b 100644
@@ -1297,7 +1297,7 @@ int __intel_engine_reset_bh(struct intel_engine_cs *engine, const char *msg)
 	if (msg)
 		drm_notice(&engine->i915->drm,
 			   "Resetting %s for %s\n", engine->name, msg);
-	atomic_inc(&engine->i915->gpu_error.reset_engine_count[engine->uabi_class]);
+	i915_increase_reset_engine_count(&engine->i915->gpu_error, engine);
 
 	ret = intel_gt_reset_engine(engine);
 	if (ret) {
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +3 -2
index dc7b40e06e38..836e4d9d65ef 100644
@@ -4774,7 +4774,8 @@ static void capture_error_state(struct intel_guc *guc,
 			if (match) {
 				intel_engine_set_hung_context(e, ce);
 				engine_mask |= e->mask;
-				atomic_inc(&i915->gpu_error.reset_engine_count[e->uabi_class]);
+				i915_increase_reset_engine_count(&i915->gpu_error,
+								 e);
 			}
 		}
 
@@ -4786,7 +4787,7 @@ static void capture_error_state(struct intel_guc *guc,
 	} else {
 		intel_engine_set_hung_context(ce->engine, ce);
 		engine_mask = ce->engine->mask;
-		atomic_inc(&i915->gpu_error.reset_engine_count[ce->engine->uabi_class]);
+		i915_increase_reset_engine_count(&i915->gpu_error, ce->engine);
 	}
 
 	with_intel_runtime_pm(&i915->runtime_pm, wakeref)
drivers/gpu/drm/i915/i915_gpu_error.h +10 -2
index 9f5971f5e980..48f6c00402c4 100644
@@ -16,6 +16,7 @@
 
 #include "display/intel_display_device.h"
 #include "gt/intel_engine.h"
+#include "gt/intel_engine_types.h"
 #include "gt/intel_gt_types.h"
 #include "gt/uc/intel_uc_fw.h"
 
@@ -232,7 +233,7 @@ struct i915_gpu_error {
 	atomic_t reset_count;
 
 	/** Number of times an engine has been reset */
-	atomic_t reset_engine_count[I915_NUM_ENGINES];
+	atomic_t reset_engine_count[MAX_ENGINE_CLASS];
 };
 
 struct drm_i915_error_state_buf {
@@ -255,7 +256,14 @@ static inline u32 i915_reset_count(struct i915_gpu_error *error)
 static inline u32 i915_reset_engine_count(struct i915_gpu_error *error,
 					  const struct intel_engine_cs *engine)
 {
-	return atomic_read(&error->reset_engine_count[engine->uabi_class]);
+	return atomic_read(&error->reset_engine_count[engine->class]);
+}
+
+static inline void
+i915_increase_reset_engine_count(struct i915_gpu_error *error,
+				 const struct intel_engine_cs *engine)
+{
+	atomic_inc(&error->reset_engine_count[engine->class]);
 }
 
 #define CORE_DUMP_FLAG_NONE           0x0
drivers/gpu/drm/i915/selftests/igt_live_test.c +5 -4
index 4ddc6d902752..7d41874a49c5 100644
@@ -37,8 +37,9 @@ int igt_live_test_begin(struct igt_live_test *t,
 		}
 
 		for_each_engine(engine, gt, id)
-			t->reset_engine[id] =
-			i915_reset_engine_count(&i915->gpu_error, engine);
+			t->reset_engine[i][id] =
+				i915_reset_engine_count(&i915->gpu_error,
+							engine);
 	}
 
 	t->reset_global = i915_reset_count(&i915->gpu_error);
@@ -66,14 +67,14 @@ int igt_live_test_end(struct igt_live_test *t)
 
 	for_each_gt(gt, i915, i) {
 		for_each_engine(engine, gt, id) {
-			if (t->reset_engine[id] ==
+			if (t->reset_engine[i][id] ==
 			    i915_reset_engine_count(&i915->gpu_error, engine))
 				continue;
 
 			gt_err(gt, "%s(%s): engine '%s' was reset %d times!\n",
 			       t->func, t->name, engine->name,
 			       i915_reset_engine_count(&i915->gpu_error, engine) -
-			       t->reset_engine[id]);
+			       t->reset_engine[i][id]);
 			return -EIO;
 		}
 	}
drivers/gpu/drm/i915/selftests/igt_live_test.h +2 -1
index 36ed42736c52..83e3ad430922 100644
@@ -7,6 +7,7 @@
 #ifndef IGT_LIVE_TEST_H
 #define IGT_LIVE_TEST_H
 
+#include "gt/intel_gt_defines.h" /* for I915_MAX_GT */
 #include "gt/intel_engine.h" /* for I915_NUM_ENGINES */
 
 struct drm_i915_private;
@@ -17,7 +18,7 @@ struct igt_live_test {
 	const char *name;
 
 	unsigned int reset_global;
-	unsigned int reset_engine[I915_NUM_ENGINES];
+	unsigned int reset_engine[I915_MAX_GT][I915_NUM_ENGINES];
 };
 
 /*
drivers/gpu/drm/mediatek/mtk_drm_crtc.c +13 -1
index 0a511d7688a3..80e34b39a6b1 100644
@@ -747,6 +747,7 @@ static void mtk_drm_crtc_atomic_begin(struct drm_crtc *crtc,
 									  crtc);
 	struct mtk_crtc_state *mtk_crtc_state = to_mtk_crtc_state(crtc_state);
 	struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc);
+	unsigned long flags;
 
 	if (mtk_crtc->event && mtk_crtc_state->base.event)
 		DRM_ERROR("new event while there is still a pending event\n");
@@ -754,7 +755,11 @@ static void mtk_drm_crtc_atomic_begin(struct drm_crtc *crtc,
 	if (mtk_crtc_state->base.event) {
 		mtk_crtc_state->base.event->pipe = drm_crtc_index(crtc);
 		WARN_ON(drm_crtc_vblank_get(crtc) != 0);
+
+		spin_lock_irqsave(&crtc->dev->event_lock, flags);
 		mtk_crtc->event = mtk_crtc_state->base.event;
+		spin_unlock_irqrestore(&crtc->dev->event_lock, flags);
+
 		mtk_crtc_state->base.event = NULL;
 	}
 }
@@ -880,7 +885,14 @@ static int mtk_drm_crtc_init_comp_planes(struct drm_device *drm_dev,
 
 struct device *mtk_drm_crtc_dma_dev_get(struct drm_crtc *crtc)
 {
-	struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc);
+	struct mtk_drm_crtc *mtk_crtc = NULL;
+
+	if (!crtc)
+		return NULL;
+
+	mtk_crtc = to_mtk_crtc(crtc);
+	if (!mtk_crtc)
+		return NULL;
 
 	return mtk_crtc->dma_dev;
 }
drivers/gpu/drm/mediatek/mtk_drm_drv.c +4 -1
index 2d6a979afe8f..cdd506c80373 100644
@@ -421,6 +421,7 @@ static int mtk_drm_kms_init(struct drm_device *drm)
 	struct mtk_drm_private *private = drm->dev_private;
 	struct mtk_drm_private *priv_n;
 	struct device *dma_dev = NULL;
+	struct drm_crtc *crtc;
 	int ret, i, j;
 
 	if (drm_firmware_drivers_only())
@@ -495,7 +496,9 @@ static int mtk_drm_kms_init(struct drm_device *drm)
 	}
 
 	/* Use OVL device for all DMA memory allocations */
-	dma_dev = mtk_drm_crtc_dma_dev_get(drm_crtc_from_index(drm, 0));
+	crtc = drm_crtc_from_index(drm, 0);
+	if (crtc)
+		dma_dev = mtk_drm_crtc_dma_dev_get(crtc);
 	if (!dma_dev) {
 		ret = -ENODEV;
 		dev_err(drm->dev, "Need at least one OVL device\n");
drivers/hid/hid-apple.c +2 -0
index 3ca45975c686..d9e9829b2200 100644
@@ -345,6 +345,8 @@ static const struct apple_non_apple_keyboard non_apple_keyboards[] = {
 	{ "AONE" },
 	{ "GANSS" },
 	{ "Hailuck" },
+	{ "Jamesdonkey" },
+	{ "A3R" },
 };
 
 static bool apple_is_non_apple_keyboard(struct hid_device *hdev)
drivers/hid/hid-asus.c +23 -4
index fd61dba88233..78cdfb8b9a7a 100644
@@ -381,7 +381,7 @@ static int asus_raw_event(struct hid_device *hdev,
 	return 0;
 }
 
-static int asus_kbd_set_report(struct hid_device *hdev, u8 *buf, size_t buf_size)
+static int asus_kbd_set_report(struct hid_device *hdev, const u8 *buf, size_t buf_size)
 {
 	unsigned char *dmabuf;
 	int ret;
@@ -404,7 +404,7 @@ static int asus_kbd_set_report(struct hid_device *hdev, u8 *buf, size_t buf_size
 
 static int asus_kbd_init(struct hid_device *hdev)
 {
-	u8 buf[] = { FEATURE_KBD_REPORT_ID, 0x41, 0x53, 0x55, 0x53, 0x20, 0x54,
+	const u8 buf[] = { FEATURE_KBD_REPORT_ID, 0x41, 0x53, 0x55, 0x53, 0x20, 0x54,
 		     0x65, 0x63, 0x68, 0x2e, 0x49, 0x6e, 0x63, 0x2e, 0x00 };
 	int ret;
 
@@ -418,7 +418,7 @@ static int asus_kbd_init(struct hid_device *hdev)
 static int asus_kbd_get_functions(struct hid_device *hdev,
 				  unsigned char *kbd_func)
 {
-	u8 buf[] = { FEATURE_KBD_REPORT_ID, 0x05, 0x20, 0x31, 0x00, 0x08 };
+	const u8 buf[] = { FEATURE_KBD_REPORT_ID, 0x05, 0x20, 0x31, 0x00, 0x08 };
 	u8 *readbuf;
 	int ret;
 
@@ -449,7 +449,7 @@ static int asus_kbd_get_functions(struct hid_device *hdev,
 
 static int rog_nkey_led_init(struct hid_device *hdev)
 {
-	u8 buf_init_start[] = { FEATURE_KBD_LED_REPORT_ID1, 0xB9 };
+	const u8 buf_init_start[] = { FEATURE_KBD_LED_REPORT_ID1, 0xB9 };
 	u8 buf_init2[] = { FEATURE_KBD_LED_REPORT_ID1, 0x41, 0x53, 0x55, 0x53, 0x20,
 				0x54, 0x65, 0x63, 0x68, 0x2e, 0x49, 0x6e, 0x63, 0x2e, 0x00 };
 	u8 buf_init3[] = { FEATURE_KBD_LED_REPORT_ID1,
@@ -1000,6 +1000,24 @@ static int asus_start_multitouch(struct hid_device *hdev)
 	return 0;
 }
 
+static int __maybe_unused asus_resume(struct hid_device *hdev) {
+	struct asus_drvdata *drvdata = hid_get_drvdata(hdev);
+	int ret = 0;
+
+	if (drvdata->kbd_backlight) {
+		const u8 buf[] = { FEATURE_KBD_REPORT_ID, 0xba, 0xc5, 0xc4,
+				drvdata->kbd_backlight->cdev.brightness };
+		ret = asus_kbd_set_report(hdev, buf, sizeof(buf));
+		if (ret < 0) {
+			hid_err(hdev, "Asus failed to set keyboard backlight: %d\n", ret);
+			goto asus_resume_err;
+		}
+	}
+
+asus_resume_err:
+	return ret;
+}
+
 static int __maybe_unused asus_reset_resume(struct hid_device *hdev)
 {
 	struct asus_drvdata *drvdata = hid_get_drvdata(hdev);
@@ -1294,6 +1312,7 @@ static struct hid_driver asus_driver = {
 	.input_configured       = asus_input_configured,
 #ifdef CONFIG_PM
 	.reset_resume           = asus_reset_resume,
+	.resume					= asus_resume,
 #endif
 	.event			= asus_event,
 	.raw_event		= asus_raw_event
drivers/hid/hid-glorious.c +14 -2
index 558eb08c19ef..281b3a7187ce 100644
@@ -21,6 +21,10 @@ MODULE_DESCRIPTION("HID driver for Glorious PC Gaming Race mice");
  * Glorious Model O and O- specify the const flag in the consumer input
  * report descriptor, which leads to inputs being ignored. Fix this
  * by patching the descriptor.
+ *
+ * Glorious Model I incorrectly specifes the Usage Minimum for its
+ * keyboard HID report, causing keycodes to be misinterpreted.
+ * Fix this by setting Usage Minimum to 0 in that report.
  */
 static __u8 *glorious_report_fixup(struct hid_device *hdev, __u8 *rdesc,
 		unsigned int *rsize)
@@ -32,6 +36,10 @@ static __u8 *glorious_report_fixup(struct hid_device *hdev, __u8 *rdesc,
 		rdesc[85] = rdesc[113] = rdesc[141] = \
 			HID_MAIN_ITEM_VARIABLE | HID_MAIN_ITEM_RELATIVE;
 	}
+	if (*rsize == 156 && rdesc[41] == 1) {
+		hid_info(hdev, "patching Glorious Model I keyboard report descriptor\n");
+		rdesc[41] = 0;
+	}
 	return rdesc;
 }
 
@@ -44,6 +52,8 @@ static void glorious_update_name(struct hid_device *hdev)
 		model = "Model O"; break;
 	case USB_DEVICE_ID_GLORIOUS_MODEL_D:
 		model = "Model D"; break;
+	case USB_DEVICE_ID_GLORIOUS_MODEL_I:
+		model = "Model I"; break;
 	}
 
 	snprintf(hdev->name, sizeof(hdev->name), "%s %s", "Glorious", model);
@@ -66,10 +76,12 @@ static int glorious_probe(struct hid_device *hdev,
 }
 
 static const struct hid_device_id glorious_devices[] = {
-	{ HID_USB_DEVICE(USB_VENDOR_ID_GLORIOUS,
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SINOWEALTH,
 		USB_DEVICE_ID_GLORIOUS_MODEL_O) },
-	{ HID_USB_DEVICE(USB_VENDOR_ID_GLORIOUS,
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SINOWEALTH,
 		USB_DEVICE_ID_GLORIOUS_MODEL_D) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_LAVIEW,
+		USB_DEVICE_ID_GLORIOUS_MODEL_I) },
 	{ }
 };
 MODULE_DEVICE_TABLE(hid, glorious_devices);
drivers/hid/hid-ids.h +8 -4
index d10ccfa17e16..72046039d1be 100644
@@ -511,10 +511,6 @@
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A 0x010a
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100
 
-#define USB_VENDOR_ID_GLORIOUS  0x258a
-#define USB_DEVICE_ID_GLORIOUS_MODEL_D 0x0033
-#define USB_DEVICE_ID_GLORIOUS_MODEL_O 0x0036
-
 #define I2C_VENDOR_ID_GOODIX		0x27c6
 #define I2C_DEVICE_ID_GOODIX_01F0	0x01f0
 
@@ -744,6 +740,10 @@
 
 #define USB_VENDOR_ID_LABTEC		0x1020
 #define USB_DEVICE_ID_LABTEC_WIRELESS_KEYBOARD	0x0006
+#define USB_DEVICE_ID_LABTEC_ODDOR_HANDBRAKE	0x8888
+
+#define USB_VENDOR_ID_LAVIEW		0x22D4
+#define USB_DEVICE_ID_GLORIOUS_MODEL_I	0x1503
 
 #define USB_VENDOR_ID_LCPOWER		0x1241
 #define USB_DEVICE_ID_LCPOWER_LC1000	0xf767
@@ -1159,6 +1159,10 @@
 #define USB_VENDOR_ID_SIGMATEL		0x066F
 #define USB_DEVICE_ID_SIGMATEL_STMP3780	0x3780
 
+#define USB_VENDOR_ID_SINOWEALTH  0x258a
+#define USB_DEVICE_ID_GLORIOUS_MODEL_D 0x0033
+#define USB_DEVICE_ID_GLORIOUS_MODEL_O 0x0036
+
 #define USB_VENDOR_ID_SIS_TOUCH		0x0457
 #define USB_DEVICE_ID_SIS9200_TOUCH	0x9200
 #define USB_DEVICE_ID_SIS817_TOUCH	0x0817
drivers/hid/hid-lenovo.c +2 -1
index 7c1b33be9d13..149a3c74346b 100644
@@ -692,7 +692,8 @@ static int lenovo_event_cptkbd(struct hid_device *hdev,
 		 * so set middlebutton_state to 3
 		 * to never apply workaround anymore
 		 */
-		if (cptkbd_data->middlebutton_state == 1 &&
+		if (hdev->product == USB_DEVICE_ID_LENOVO_CUSBKBD &&
+				cptkbd_data->middlebutton_state == 1 &&
 				usage->type == EV_REL &&
 				(usage->code == REL_X || usage->code == REL_Y)) {
 			cptkbd_data->middlebutton_state = 3;
drivers/hid/hid-mcp2221.c +3 -1
index 72883e0ce757..aef0785c91cc 100644
@@ -1142,6 +1142,8 @@ static int mcp2221_probe(struct hid_device *hdev,
 	if (ret)
 		return ret;
 
+	hid_device_io_start(hdev);
+
 	/* Set I2C bus clock diviser */
 	if (i2c_clk_freq > 400)
 		i2c_clk_freq = 400;
@@ -1157,12 +1159,12 @@ static int mcp2221_probe(struct hid_device *hdev,
 	snprintf(mcp->adapter.name, sizeof(mcp->adapter.name),
 			"MCP2221 usb-i2c bridge");
 
+	i2c_set_adapdata(&mcp->adapter, mcp);
 	ret = devm_i2c_add_adapter(&hdev->dev, &mcp->adapter);
 	if (ret) {
 		hid_err(hdev, "can't add usb-i2c adapter: %d\n", ret);
 		return ret;
 	}
-	i2c_set_adapdata(&mcp->adapter, mcp);
 
 #if IS_REACHABLE(CONFIG_GPIOLIB)
 	/* Setup GPIO chip */
drivers/hid/hid-multitouch.c +5 -0
index 8db4ae05febc..5ec1f174127a 100644
@@ -2048,6 +2048,11 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_HANVON_ALT,
 			USB_DEVICE_ID_HANVON_ALT_MULTITOUCH) },
 
+	/* HONOR GLO-GXXX panel */
+	{ .driver_data = MT_CLS_VTL,
+		HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
+			0x347d, 0x7853) },
+
 	/* Ilitek dual touch panel */
 	{  .driver_data = MT_CLS_NSMU,
 		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
drivers/hid/hid-quirks.c +2 -0
index 5a48fcaa32f0..e0bbf0c6345d 100644
@@ -33,6 +33,7 @@ static const struct hid_device_id hid_quirks[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_AKAI, USB_DEVICE_ID_AKAI_MPKMINI2), HID_QUIRK_NO_INIT_REPORTS },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ALPS, USB_DEVICE_ID_IBM_GAMEPAD), HID_QUIRK_BADPAD },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_AMI, USB_DEVICE_ID_AMI_VIRT_KEYBOARD_AND_MOUSE), HID_QUIRK_ALWAYS_POLL },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_2PORTKVM), HID_QUIRK_NOGET },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_4PORTKVMC), HID_QUIRK_NOGET },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_4PORTKVM), HID_QUIRK_NOGET },
@@ -120,6 +121,7 @@ static const struct hid_device_id hid_quirks[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M406XE), HID_QUIRK_MULTI_INPUT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_MOUSEPEN_I608X_V2), HID_QUIRK_MULTI_INPUT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_PENSKETCH_T609A), HID_QUIRK_MULTI_INPUT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_LABTEC, USB_DEVICE_ID_LABTEC_ODDOR_HANDBRAKE), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_OPTICAL_USB_MOUSE_600E), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_608D), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_6019), HID_QUIRK_ALWAYS_POLL },
drivers/hid/i2c-hid/i2c-hid-acpi.c +5 -0
index ac918a9ea8d3..1b49243adb16 100644
@@ -40,6 +40,11 @@ static const struct acpi_device_id i2c_hid_acpi_blacklist[] = {
 	 * ICN8505 controller, has a _CID of PNP0C50 but is not HID compatible.
 	 */
 	{ "CHPN0001" },
+	/*
+	 * The IDEA5002 ACPI device causes high interrupt usage and spurious
+	 * wakeups from suspend.
+	 */
+	{ "IDEA5002" },
 	{ }
 };
 
drivers/infiniband/hw/mlx5/main.c +17 -0
index 5d963abb7e60..102ead497196 100644
@@ -24,6 +24,7 @@
 #include <linux/mlx5/vport.h>
 #include <linux/mlx5/fs.h>
 #include <linux/mlx5/eswitch.h>
+#include <linux/mlx5/driver.h>
 #include <linux/list.h>
 #include <rdma/ib_smi.h>
 #include <rdma/ib_umem_odp.h>
@@ -3175,6 +3176,13 @@ static void mlx5_ib_unbind_slave_port(struct mlx5_ib_dev *ibdev,
 
 	lockdep_assert_held(&mlx5_ib_multiport_mutex);
 
+	mlx5_core_mp_event_replay(ibdev->mdev,
+				  MLX5_DRIVER_EVENT_AFFILIATION_REMOVED,
+				  NULL);
+	mlx5_core_mp_event_replay(mpi->mdev,
+				  MLX5_DRIVER_EVENT_AFFILIATION_REMOVED,
+				  NULL);
+
 	mlx5_ib_cleanup_cong_debugfs(ibdev, port_num);
 
 	spin_lock(&port->mp.mpi_lock);
@@ -3226,6 +3234,7 @@ static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev,
 				    struct mlx5_ib_multiport_info *mpi)
 {
 	u32 port_num = mlx5_core_native_port_num(mpi->mdev) - 1;
+	u64 key;
 	int err;
 
 	lockdep_assert_held(&mlx5_ib_multiport_mutex);
@@ -3254,6 +3263,14 @@ static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev,
 
 	mlx5_ib_init_cong_debugfs(ibdev, port_num);
 
+	key = mpi->mdev->priv.adev_idx;
+	mlx5_core_mp_event_replay(mpi->mdev,
+				  MLX5_DRIVER_EVENT_AFFILIATION_DONE,
+				  &key);
+	mlx5_core_mp_event_replay(ibdev->mdev,
+				  MLX5_DRIVER_EVENT_AFFILIATION_DONE,
+				  &key);
+
 	return true;
 
 unbind:
drivers/md/bcache/bcache.h +1 -0
index 5a79bb3c272f..83eb7f27db3d 100644
@@ -265,6 +265,7 @@ struct bcache_device {
 #define BCACHE_DEV_WB_RUNNING		3
 #define BCACHE_DEV_RATE_DW_RUNNING	4
 	int			nr_stripes;
+#define BCH_MIN_STRIPE_SZ		((4 << 20) >> SECTOR_SHIFT)
 	unsigned int		stripe_size;
 	atomic_t		*stripe_sectors_dirty;
 	unsigned long		*full_dirty_stripes;
drivers/md/bcache/btree.c +7 -0
index 3084c57248f6..b709c2fde782 100644
@@ -995,6 +995,9 @@ static struct btree *mca_alloc(struct cache_set *c, struct btree_op *op,
  *
  * The btree node will have either a read or a write lock held, depending on
  * level and op->lock.
+ *
+ * Note: Only error code or btree pointer will be returned, it is unncessary
+ *       for callers to check NULL pointer.
  */
 struct btree *bch_btree_node_get(struct cache_set *c, struct btree_op *op,
 				 struct bkey *k, int level, bool write,
@@ -1106,6 +1109,10 @@ static void btree_node_free(struct btree *b)
 	mutex_unlock(&b->c->bucket_lock);
 }
 
+/*
+ * Only error code or btree pointer will be returned, it is unncessary for
+ * callers to check NULL pointer.
+ */
 struct btree *__bch_btree_node_alloc(struct cache_set *c, struct btree_op *op,
 				     int level, bool wait,
 				     struct btree *parent)
drivers/md/bcache/super.c +3 -1
index 0ae2b3676293..1e677af38521 100644
@@ -905,6 +905,8 @@ static int bcache_device_init(struct bcache_device *d, unsigned int block_size,
 
 	if (!d->stripe_size)
 		d->stripe_size = 1 << 31;
+	else if (d->stripe_size < BCH_MIN_STRIPE_SZ)
+		d->stripe_size = roundup(BCH_MIN_STRIPE_SZ, d->stripe_size);
 
 	n = DIV_ROUND_UP_ULL(sectors, d->stripe_size);
 	if (!n || n > max_stripes) {
@@ -2015,7 +2017,7 @@ static int run_cache_set(struct cache_set *c)
 		c->root = bch_btree_node_get(c, NULL, k,
 					     j->btree_level,
 					     true, NULL);
-		if (IS_ERR_OR_NULL(c->root))
+		if (IS_ERR(c->root))
 			goto err;
 
 		list_del_init(&c->root->list);
drivers/md/bcache/writeback.c +1 -1
index d4432b3a6f96..3accfdaee6b1 100644
@@ -913,7 +913,7 @@ static int bch_dirty_init_thread(void *arg)
 	int cur_idx, prev_idx, skip_nr;
 
 	k = p = NULL;
-	cur_idx = prev_idx = 0;
+	prev_idx = 0;
 
 	bch_btree_iter_init(&c->root->keys, &iter, NULL);
 	k = bch_btree_iter_next_filter(&iter, &c->root->keys, bch_ptr_bad);
drivers/net/ethernet/amazon/ena/ena_eth_com.c +0 -3
index 3d6f0a466a9e..f9f886289b97 100644
@@ -328,9 +328,6 @@ static int ena_com_create_and_store_tx_meta_desc(struct ena_com_io_sq *io_sq,
 	 * compare it to the stored version, just create the meta
 	 */
 	if (io_sq->disable_meta_caching) {
-		if (unlikely(!ena_tx_ctx->meta_valid))
-			return -EINVAL;
-
 		*have_meta = true;
 		return ena_com_create_meta(io_sq, ena_meta);
 	}
drivers/net/ethernet/amazon/ena/ena_netdev.c +26 -27

131 lines not on this page · raw message

drivers/net/ethernet/aquantia/atlantic/aq_ring.c +4 -1
index 694daeaf3e61..e1885c1eb100 100644
@@ -938,11 +938,14 @@ void aq_ring_free(struct aq_ring_s *self)
 		return;
 
 	kfree(self->buff_ring);
+	self->buff_ring = NULL;
 
-	if (self->dx_ring)
+	if (self->dx_ring) {
 		dma_free_coherent(aq_nic_get_dev(self->aq_nic),
 				  self->size * self->dx_size, self->dx_ring,
 				  self->dx_ring_pa);
+		self->dx_ring = NULL;
+	}
 }
 
 unsigned int aq_ring_fill_stats_data(struct aq_ring_s *self, u64 *data)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +28 -10
index 7551aa8068f8..f811d59fd71f 100644
@@ -1749,16 +1749,32 @@ static void bnxt_tpa_agg(struct bnxt *bp, struct bnxt_rx_ring_info *rxr,
 static void bnxt_deliver_skb(struct bnxt *bp, struct bnxt_napi *bnapi,
 			     struct sk_buff *skb)
 {
+	skb_mark_for_recycle(skb);
+
 	if (skb->dev != bp->dev) {
 		/* this packet belongs to a vf-rep */
 		bnxt_vf_rep_rx(bp, skb);
 		return;
 	}
 	skb_record_rx_queue(skb, bnapi->index);
-	skb_mark_for_recycle(skb);
 	napi_gro_receive(&bnapi->napi, skb);
 }
 
+static bool bnxt_rx_ts_valid(struct bnxt *bp, u32 flags,
+			     struct rx_cmp_ext *rxcmp1, u32 *cmpl_ts)
+{
+	u32 ts = le32_to_cpu(rxcmp1->rx_cmp_timestamp);
+
+	if (BNXT_PTP_RX_TS_VALID(flags))
+		goto ts_valid;
+	if (!bp->ptp_all_rx_tstamp || !ts || !BNXT_ALL_RX_TS_VALID(flags))
+		return false;
+
+ts_valid:
+	*cmpl_ts = ts;
+	return true;
+}
+
 /* returns the following:
  * 1       - 1 packet successfully received
  * 0       - successful TPA_START, packet not completed yet
@@ -1784,6 +1800,7 @@ static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
 	struct sk_buff *skb;
 	struct xdp_buff xdp;
 	u32 flags, misc;
+	u32 cmpl_ts;
 	void *data;
 	int rc = 0;
 
@@ -2006,10 +2023,8 @@ static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
 		}
 	}
 
-	if (unlikely((flags & RX_CMP_FLAGS_ITYPES_MASK) ==
-		     RX_CMP_FLAGS_ITYPE_PTP_W_TS) || bp->ptp_all_rx_tstamp) {
+	if (bnxt_rx_ts_valid(bp, flags, rxcmp1, &cmpl_ts)) {
 		if (bp->flags & BNXT_FLAG_CHIP_P5) {
-			u32 cmpl_ts = le32_to_cpu(rxcmp1->rx_cmp_timestamp);
 			u64 ns, ts;
 
 			if (!bnxt_get_rx_ts_p5(bp, &ts, cmpl_ts)) {
@@ -10703,10 +10718,8 @@ static void __bnxt_close_nic(struct bnxt *bp, bool irq_re_init,
 	bnxt_free_mem(bp, irq_re_init);
 }
 
-int bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
+void bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
 {
-	int rc = 0;
-
 	if (test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) {
 		/* If we get here, it means firmware reset is in progress
 		 * while we are trying to close.  We can safely proceed with
@@ -10721,15 +10734,18 @@ int bnxt_close_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
 
 #ifdef CONFIG_BNXT_SRIOV
 	if (bp->sriov_cfg) {
+		int rc;
+
 		rc = wait_event_interruptible_timeout(bp->sriov_cfg_wait,
 						      !bp->sriov_cfg,
 						      BNXT_SRIOV_CFG_WAIT_TMO);
-		if (rc)
-			netdev_warn(bp->dev, "timeout waiting for SRIOV config operation to complete!\n");
+		if (!rc)
+			netdev_warn(bp->dev, "timeout waiting for SRIOV config operation to complete, proceeding to close!\n");
+		else if (rc < 0)
+			netdev_warn(bp->dev, "SRIOV config operation interrupted, proceeding to close!\n");
 	}
 #endif
 	__bnxt_close_nic(bp, irq_re_init, link_re_init);
-	return rc;
 }
 
 static int bnxt_close(struct net_device *dev)
@@ -13897,6 +13913,8 @@ static int bnxt_resume(struct device *device)
 	if (rc)
 		goto resume_exit;
 
+	bnxt_clear_reservations(bp, true);
+
 	if (bnxt_hwrm_func_drv_rgtr(bp, NULL, 0, false)) {
 		rc = -ENODEV;
 		goto resume_exit;
drivers/net/ethernet/broadcom/bnxt/bnxt.h +8 -2
index 84cbcfa61bc1..0116f67593e3 100644
@@ -161,7 +161,7 @@ struct rx_cmp {
 	#define RX_CMP_FLAGS_ERROR				(1 << 6)
 	#define RX_CMP_FLAGS_PLACEMENT				(7 << 7)
 	#define RX_CMP_FLAGS_RSS_VALID				(1 << 10)
-	#define RX_CMP_FLAGS_UNUSED				(1 << 11)
+	#define RX_CMP_FLAGS_PKT_METADATA_PRESENT		(1 << 11)
 	 #define RX_CMP_FLAGS_ITYPES_SHIFT			 12
 	 #define RX_CMP_FLAGS_ITYPES_MASK			 0xf000
 	 #define RX_CMP_FLAGS_ITYPE_UNKNOWN			 (0 << 12)
@@ -188,6 +188,12 @@ struct rx_cmp {
 	__le32 rx_cmp_rss_hash;
 };
 
+#define BNXT_PTP_RX_TS_VALID(flags)				\
+	(((flags) & RX_CMP_FLAGS_ITYPES_MASK) == RX_CMP_FLAGS_ITYPE_PTP_W_TS)
+
+#define BNXT_ALL_RX_TS_VALID(flags)				\
+	!((flags) & RX_CMP_FLAGS_PKT_METADATA_PRESENT)
+
 #define RX_CMP_HASH_VALID(rxcmp)				\
 	((rxcmp)->rx_cmp_len_flags_type & cpu_to_le32(RX_CMP_FLAGS_RSS_VALID))
 
@@ -2362,7 +2368,7 @@ int bnxt_open_nic(struct bnxt *, bool, bool);
 int bnxt_half_open_nic(struct bnxt *bp);
 void bnxt_half_close_nic(struct bnxt *bp);
 void bnxt_reenable_sriov(struct bnxt *bp);
-int bnxt_close_nic(struct bnxt *, bool, bool);
+void bnxt_close_nic(struct bnxt *, bool, bool);
 void bnxt_get_ring_err_stats(struct bnxt *bp,
 			     struct bnxt_total_ring_err_stats *stats);
 int bnxt_dbg_hwrm_rd_reg(struct bnxt *bp, u32 reg_off, u16 num_words,
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +2 -9
index 8b3e7697390f..9d39f194b260 100644
@@ -478,15 +478,8 @@ static int bnxt_dl_reload_down(struct devlink *dl, bool netns_change,
 			return -ENODEV;
 		}
 		bnxt_ulp_stop(bp);
-		if (netif_running(bp->dev)) {
-			rc = bnxt_close_nic(bp, true, true);
-			if (rc) {
-				NL_SET_ERR_MSG_MOD(extack, "Failed to close");
-				dev_close(bp->dev);
-				rtnl_unlock();
-				break;
-			}
-		}
+		if (netif_running(bp->dev))
+			bnxt_close_nic(bp, true, true);
 		bnxt_vf_reps_free(bp);
 		rc = bnxt_hwrm_func_drv_unrgtr(bp);
 		if (rc) {
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +4 -15
index 547247d98eba..3c36dd805148 100644
@@ -164,9 +164,8 @@ static int bnxt_set_coalesce(struct net_device *dev,
 reset_coalesce:
 	if (test_bit(BNXT_STATE_OPEN, &bp->state)) {
 		if (update_stats) {
-			rc = bnxt_close_nic(bp, true, false);
-			if (!rc)
-				rc = bnxt_open_nic(bp, true, false);
+			bnxt_close_nic(bp, true, false);
+			rc = bnxt_open_nic(bp, true, false);
 		} else {
 			rc = bnxt_hwrm_set_coal(bp);
 		}
@@ -955,12 +954,7 @@ static int bnxt_set_channels(struct net_device *dev,
 			 * before PF unload
 			 */
 		}
-		rc = bnxt_close_nic(bp, true, false);
-		if (rc) {
-			netdev_err(bp->dev, "Set channel failure rc :%x\n",
-				   rc);
-			return rc;
-		}
+		bnxt_close_nic(bp, true, false);
 	}
 
 	if (sh) {
@@ -3737,12 +3731,7 @@ static void bnxt_self_test(struct net_device *dev, struct ethtool_test *etest,
 		bnxt_run_fw_tests(bp, test_mask, &test_results);
 	} else {
 		bnxt_ulp_stop(bp);
-		rc = bnxt_close_nic(bp, true, false);
-		if (rc) {
-			etest->flags |= ETH_TEST_FL_FAILED;
-			bnxt_ulp_start(bp, rc);
-			return;
-		}
+		bnxt_close_nic(bp, true, false);
 		bnxt_run_fw_tests(bp, test_mask, &test_results);
 
 		buf[BNXT_MACLPBK_TEST_IDX] = 1;
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +2 -3
index f3886710e778..6e3da3362bd6 100644
@@ -521,9 +521,8 @@ static int bnxt_hwrm_ptp_cfg(struct bnxt *bp)
 
 	if (netif_running(bp->dev)) {
 		if (ptp->rx_filter == HWTSTAMP_FILTER_ALL) {
-			rc = bnxt_close_nic(bp, false, false);
-			if (!rc)
-				rc = bnxt_open_nic(bp, false, false);
+			bnxt_close_nic(bp, false, false);
+			rc = bnxt_open_nic(bp, false, false);
 		} else {
 			bnxt_ptp_cfg_tstamp_filters(bp);
 		}
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-flower.c +4 -3
index 4798fb7fe35d..b6a534a3e0b1 100644
@@ -139,7 +139,8 @@ int dpaa2_switch_acl_entry_add(struct dpaa2_switch_filter_block *filter_block,
 	err = dpsw_acl_add_entry(ethsw->mc_io, 0, ethsw->dpsw_handle,
 				 filter_block->acl_id, acl_entry_cfg);
 
-	dma_unmap_single(dev, acl_entry_cfg->key_iova, sizeof(cmd_buff),
+	dma_unmap_single(dev, acl_entry_cfg->key_iova,
+			 DPAA2_ETHSW_PORT_ACL_CMD_BUF_SIZE,
 			 DMA_TO_DEVICE);
 	if (err) {
 		dev_err(dev, "dpsw_acl_add_entry() failed %d\n", err);
@@ -181,8 +182,8 @@ dpaa2_switch_acl_entry_remove(struct dpaa2_switch_filter_block *block,
 	err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw->dpsw_handle,
 				    block->acl_id, acl_entry_cfg);
 
-	dma_unmap_single(dev, acl_entry_cfg->key_iova, sizeof(cmd_buff),
-			 DMA_TO_DEVICE);
+	dma_unmap_single(dev, acl_entry_cfg->key_iova,
+			 DPAA2_ETHSW_PORT_ACL_CMD_BUF_SIZE, DMA_TO_DEVICE);
 	if (err) {
 		dev_err(dev, "dpsw_acl_remove_entry() failed %d\n", err);
 		kfree(cmd_buff);
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +2 -9
index 97d3151076d5..e01a246124ac 100644
@@ -1998,9 +1998,6 @@ static int dpaa2_switch_port_attr_set_event(struct net_device *netdev,
 	return notifier_from_errno(err);
 }
 
-static struct notifier_block dpaa2_switch_port_switchdev_nb;
-static struct notifier_block dpaa2_switch_port_switchdev_blocking_nb;
-
 static int dpaa2_switch_port_bridge_join(struct net_device *netdev,
 					 struct net_device *upper_dev,
 					 struct netlink_ext_ack *extack)
@@ -2043,9 +2040,7 @@ static int dpaa2_switch_port_bridge_join(struct net_device *netdev,
 		goto err_egress_flood;
 
 	err = switchdev_bridge_port_offload(netdev, netdev, NULL,
-					    &dpaa2_switch_port_switchdev_nb,
-					    &dpaa2_switch_port_switchdev_blocking_nb,
-					    false, extack);
+					    NULL, NULL, false, extack);
 	if (err)
 		goto err_switchdev_offload;
 
@@ -2079,9 +2074,7 @@ static int dpaa2_switch_port_restore_rxvlan(struct net_device *vdev, int vid, vo
 
 static void dpaa2_switch_port_pre_bridge_leave(struct net_device *netdev)
 {
-	switchdev_bridge_port_unoffload(netdev, NULL,
-					&dpaa2_switch_port_switchdev_nb,
-					&dpaa2_switch_port_switchdev_blocking_nb);
+	switchdev_bridge_port_unoffload(netdev, NULL, NULL, NULL);
 }
 
 static int dpaa2_switch_port_bridge_leave(struct net_device *netdev)
drivers/net/ethernet/freescale/fec_main.c +11 -16
index 77c8e9cfb445..35c95f07fd6d 100644
@@ -3710,31 +3710,26 @@ static int fec_set_features(struct net_device *netdev,
 	return 0;
 }
 
-static u16 fec_enet_get_raw_vlan_tci(struct sk_buff *skb)
-{
-	struct vlan_ethhdr *vhdr;
-	unsigned short vlan_TCI = 0;
-
-	if (skb->protocol == htons(ETH_P_ALL)) {
-		vhdr = (struct vlan_ethhdr *)(skb->data);
-		vlan_TCI = ntohs(vhdr->h_vlan_TCI);
-	}
-
-	return vlan_TCI;
-}
-
 static u16 fec_enet_select_queue(struct net_device *ndev, struct sk_buff *skb,
 				 struct net_device *sb_dev)
 {
 	struct fec_enet_private *fep = netdev_priv(ndev);
-	u16 vlan_tag;
+	u16 vlan_tag = 0;
 
 	if (!(fep->quirks & FEC_QUIRK_HAS_AVB))
 		return netdev_pick_tx(ndev, skb, NULL);
 
-	vlan_tag = fec_enet_get_raw_vlan_tci(skb);
-	if (!vlan_tag)
+	/* VLAN is present in the payload.*/
+	if (eth_type_vlan(skb->protocol)) {
+		struct vlan_ethhdr *vhdr = skb_vlan_eth_hdr(skb);
+
+		vlan_tag = ntohs(vhdr->h_vlan_TCI);
+	/*  VLAN is present in the skb but not yet pushed in the payload.*/
+	} else if (skb_vlan_tag_present(skb)) {
+		vlan_tag = skb->vlan_tci;
+	} else {
 		return vlan_tag;
+	}
 
 	return fec_enet_vlan_pri_to_queue[vlan_tag >> 13];
 }
drivers/net/ethernet/intel/iavf/iavf.h +1 -0
index d8d7b62ceb24..431d9d62c8c6 100644
@@ -303,6 +303,7 @@ struct iavf_adapter {
 #define IAVF_FLAG_QUEUES_DISABLED		BIT(17)
 #define IAVF_FLAG_SETUP_NETDEV_FEATURES		BIT(18)
 #define IAVF_FLAG_REINIT_MSIX_NEEDED		BIT(20)
+#define IAVF_FLAG_FDIR_ENABLED			BIT(21)
 /* duplicates for common code */
 #define IAVF_FLAG_DCB_ENABLED			0
 	/* flags for admin queue service task */
drivers/net/ethernet/intel/iavf/iavf_ethtool.c +18 -9
index 1b412754aa42..892c6a4f03bb 100644
@@ -1063,7 +1063,7 @@ iavf_get_ethtool_fdir_entry(struct iavf_adapter *adapter,
 	struct iavf_fdir_fltr *rule = NULL;
 	int ret = 0;
 
-	if (!FDIR_FLTR_SUPPORT(adapter))
+	if (!(adapter->flags & IAVF_FLAG_FDIR_ENABLED))
 		return -EOPNOTSUPP;
 
 	spin_lock_bh(&adapter->fdir_fltr_lock);
@@ -1205,7 +1205,7 @@ iavf_get_fdir_fltr_ids(struct iavf_adapter *adapter, struct ethtool_rxnfc *cmd,
 	unsigned int cnt = 0;
 	int val = 0;
 
-	if (!FDIR_FLTR_SUPPORT(adapter))
+	if (!(adapter->flags & IAVF_FLAG_FDIR_ENABLED))
 		return -EOPNOTSUPP;
 
 	cmd->data = IAVF_MAX_FDIR_FILTERS;
@@ -1397,7 +1397,7 @@ static int iavf_add_fdir_ethtool(struct iavf_adapter *adapter, struct ethtool_rx
 	int count = 50;
 	int err;
 
-	if (!FDIR_FLTR_SUPPORT(adapter))
+	if (!(adapter->flags & IAVF_FLAG_FDIR_ENABLED))
 		return -EOPNOTSUPP;
 
 	if (fsp->flow_type & FLOW_MAC_EXT)
@@ -1438,12 +1438,16 @@ static int iavf_add_fdir_ethtool(struct iavf_adapter *adapter, struct ethtool_rx
 	spin_lock_bh(&adapter->fdir_fltr_lock);
 	iavf_fdir_list_add_fltr(adapter, fltr);
 	adapter->fdir_active_fltr++;
-	fltr->state = IAVF_FDIR_FLTR_ADD_REQUEST;
-	adapter->aq_required |= IAVF_FLAG_AQ_ADD_FDIR_FILTER;
+	if (adapter->link_up) {
+		fltr->state = IAVF_FDIR_FLTR_ADD_REQUEST;
+		adapter->aq_required |= IAVF_FLAG_AQ_ADD_FDIR_FILTER;
+	} else {
+		fltr->state = IAVF_FDIR_FLTR_INACTIVE;
+	}
 	spin_unlock_bh(&adapter->fdir_fltr_lock);
 
-	mod_delayed_work(adapter->wq, &adapter->watchdog_task, 0);
-
+	if (adapter->link_up)
+		mod_delayed_work(adapter->wq, &adapter->watchdog_task, 0);
 ret:
 	if (err && fltr)
 		kfree(fltr);
@@ -1465,7 +1469,7 @@ static int iavf_del_fdir_ethtool(struct iavf_adapter *adapter, struct ethtool_rx
 	struct iavf_fdir_fltr *fltr = NULL;
 	int err = 0;
 
-	if (!FDIR_FLTR_SUPPORT(adapter))
+	if (!(adapter->flags & IAVF_FLAG_FDIR_ENABLED))
 		return -EOPNOTSUPP;
 
 	spin_lock_bh(&adapter->fdir_fltr_lock);
@@ -1474,6 +1478,11 @@ static int iavf_del_fdir_ethtool(struct iavf_adapter *adapter, struct ethtool_rx
 		if (fltr->state == IAVF_FDIR_FLTR_ACTIVE) {
 			fltr->state = IAVF_FDIR_FLTR_DEL_REQUEST;
 			adapter->aq_required |= IAVF_FLAG_AQ_DEL_FDIR_FILTER;
+		} else if (fltr->state == IAVF_FDIR_FLTR_INACTIVE) {
+			list_del(&fltr->list);
+			kfree(fltr);
+			adapter->fdir_active_fltr--;
+			fltr = NULL;
 		} else {
 			err = -EBUSY;
 		}
@@ -1782,7 +1791,7 @@ static int iavf_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd,
 		ret = 0;
 		break;
 	case ETHTOOL_GRXCLSRLCNT:
-		if (!FDIR_FLTR_SUPPORT(adapter))
+		if (!(adapter->flags & IAVF_FLAG_FDIR_ENABLED))
 			break;
 		spin_lock_bh(&adapter->fdir_fltr_lock);
 		cmd->rule_cnt = adapter->fdir_active_fltr;
drivers/net/ethernet/intel/iavf/iavf_fdir.h +14 -1
index 9eb9f73f6adf..d31bd923ba8c 100644
@@ -6,12 +6,25 @@
 
 struct iavf_adapter;
 
-/* State of Flow Director filter */
+/* State of Flow Director filter
+ *
+ * *_REQUEST states are used to mark filter to be sent to PF driver to perform
+ * an action (either add or delete filter). *_PENDING states are an indication
+ * that request was sent to PF and the driver is waiting for response.
+ *
+ * Both DELETE and DISABLE states are being used to delete a filter in PF.
+ * The difference is that after a successful response filter in DEL_PENDING
+ * state is being deleted from VF driver as well and filter in DIS_PENDING state
+ * is being changed to INACTIVE state.
+ */
 enum iavf_fdir_fltr_state_t {
 	IAVF_FDIR_FLTR_ADD_REQUEST,	/* User requests to add filter */
 	IAVF_FDIR_FLTR_ADD_PENDING,	/* Filter pending add by the PF */
 	IAVF_FDIR_FLTR_DEL_REQUEST,	/* User requests to delete filter */
 	IAVF_FDIR_FLTR_DEL_PENDING,	/* Filter pending delete by the PF */
+	IAVF_FDIR_FLTR_DIS_REQUEST,	/* Filter scheduled to be disabled */
+	IAVF_FDIR_FLTR_DIS_PENDING,	/* Filter pending disable by the PF */
+	IAVF_FDIR_FLTR_INACTIVE,	/* Filter inactive on link down */
 	IAVF_FDIR_FLTR_ACTIVE,		/* Filter is active */
 };
 
drivers/net/ethernet/intel/iavf/iavf_main.c +119 -60

264 lines not on this page · raw message

drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +67 -4

118 lines not on this page · raw message

drivers/net/ethernet/marvell/octeon_ep/octep_main.c +2 -1
index 5b46ca47c8e5..2ee1374db4c0 100644
@@ -1076,7 +1076,8 @@ static bool get_fw_ready_status(struct pci_dev *pdev)
 
 		pci_read_config_byte(pdev, (pos + 8), &status);
 		dev_info(&pdev->dev, "Firmware ready status = %u\n", status);
-		return status;
+#define FW_STATUS_READY 1ULL
+		return status == FW_STATUS_READY;
 	}
 	return false;
 }
drivers/net/ethernet/marvell/octeontx2/af/rpm.c +7 -4
index af21e2030cff..4728ba34b0e3 100644
@@ -373,6 +373,11 @@ void rpm_lmac_pause_frm_config(void *rpmd, int lmac_id, bool enable)
 	cfg |= RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE;
 	rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg);
 
+	/* Disable forward pause to driver */
+	cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG);
+	cfg &= ~RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_FWD;
+	rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg);
+
 	/* Enable channel mask for all LMACS */
 	if (is_dev_rpm2(rpm))
 		rpm_write(rpm, lmac_id, RPM2_CMR_CHAN_MSK_OR, 0xffff);
@@ -616,12 +621,10 @@ int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, u16 p
 
 	if (rx_pause) {
 		cfg &= ~(RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE |
-				RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE |
-				RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_FWD);
+			 RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE);
 	} else {
 		cfg |= (RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE |
-				RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE |
-				RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_FWD);
+			RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE);
 	}
 
 	if (tx_pause) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c +1 -4
index 058f75dc4c8a..bffe04e6d025 100644
@@ -642,7 +642,7 @@ static int rvu_nix_register_reporters(struct rvu_devlink *rvu_dl)
 
 	rvu_dl->devlink_wq = create_workqueue("rvu_devlink_wq");
 	if (!rvu_dl->devlink_wq)
-		goto err;
+		return -ENOMEM;
 
 	INIT_WORK(&rvu_reporters->intr_work, rvu_nix_intr_work);
 	INIT_WORK(&rvu_reporters->gen_work, rvu_nix_gen_work);
@@ -650,9 +650,6 @@ static int rvu_nix_register_reporters(struct rvu_devlink *rvu_dl)
 	INIT_WORK(&rvu_reporters->ras_work, rvu_nix_ras_work);
 
 	return 0;
-err:
-	rvu_nix_health_reporters_destroy(rvu_dl);
-	return -ENOMEM;
 }
 
 static int rvu_nix_health_reporters_create(struct rvu_devlink *rvu_dl)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +44 -11

108 lines not on this page · raw message

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +22 -3
index 0c17ebdda148..a57455aebff6 100644
@@ -1650,6 +1650,21 @@ static void otx2_free_hw_resources(struct otx2_nic *pf)
 	mutex_unlock(&mbox->lock);
 }
 
+static bool otx2_promisc_use_mce_list(struct otx2_nic *pfvf)
+{
+	int vf;
+
+	/* The AF driver will determine whether to allow the VF netdev or not */
+	if (is_otx2_vf(pfvf->pcifunc))
+		return true;
+
+	/* check if there are any trusted VFs associated with the PF netdev */
+	for (vf = 0; vf < pci_num_vf(pfvf->pdev); vf++)
+		if (pfvf->vf_configs[vf].trusted)
+			return true;
+	return false;
+}
+
 static void otx2_do_set_rx_mode(struct otx2_nic *pf)
 {
 	struct net_device *netdev = pf->netdev;
@@ -1682,7 +1697,8 @@ static void otx2_do_set_rx_mode(struct otx2_nic *pf)
 	if (netdev->flags & (IFF_ALLMULTI | IFF_MULTICAST))
 		req->mode |= NIX_RX_MODE_ALLMULTI;
 
-	req->mode |= NIX_RX_MODE_USE_MCE;
+	if (otx2_promisc_use_mce_list(pf))
+		req->mode |= NIX_RX_MODE_USE_MCE;
 
 	otx2_sync_mbox_msg(&pf->mbox);
 	mutex_unlock(&pf->mbox.lock);
@@ -2691,11 +2707,14 @@ static int otx2_ndo_set_vf_trust(struct net_device *netdev, int vf,
 	pf->vf_configs[vf].trusted = enable;
 	rc = otx2_set_vf_permissions(pf, vf, OTX2_TRUSTED_VF);
 
-	if (rc)
+	if (rc) {
 		pf->vf_configs[vf].trusted = !enable;
-	else
+	} else {
 		netdev_info(pf->netdev, "VF %d is %strusted\n",
 			    vf, enable ? "" : "not ");
+		otx2_set_rx_mode(netdev);
+	}
+
 	return rc;
 }
 
drivers/net/ethernet/mellanox/mlx5/core/en.h +1 -0
index 86f2690c5e01..20a6bc1a234f 100644
@@ -818,6 +818,7 @@ enum {
 	MLX5E_STATE_DESTROYING,
 	MLX5E_STATE_XDP_TX_ENABLED,
 	MLX5E_STATE_XDP_ACTIVE,
+	MLX5E_STATE_CHANNELS_ACTIVE,
 };
 
 struct mlx5e_modify_sq_param {
drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c +6 -0
index 4e923a2874ae..86bf007fd05b 100644
@@ -83,6 +83,9 @@ mlx5e_tc_post_act_offload(struct mlx5e_post_act *post_act,
 	struct mlx5_flow_spec *spec;
 	int err;
 
+	if (IS_ERR(post_act))
+		return PTR_ERR(post_act);
+
 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
 	if (!spec)
 		return -ENOMEM;
@@ -111,6 +114,9 @@ mlx5e_tc_post_act_add(struct mlx5e_post_act *post_act, struct mlx5_flow_attr *po
 	struct mlx5e_post_act_handle *handle;
 	int err;
 
+	if (IS_ERR(post_act))
+		return ERR_CAST(post_act);
+
 	handle = kzalloc(sizeof(*handle), GFP_KERNEL);
 	if (!handle)
 		return ERR_PTR(-ENOMEM);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c +40 -16

93 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c +163 -55

291 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c +8 -2
index 3245d1c9d539..ce29e3172120 100644
@@ -5,6 +5,8 @@
 #include "en.h"
 #include "ipsec.h"
 #include "lib/crypto.h"
+#include "fs_core.h"
+#include "eswitch.h"
 
 enum {
 	MLX5_IPSEC_ASO_REMOVE_FLOW_PKT_CNT_OFFSET,
@@ -37,7 +39,10 @@ u32 mlx5_ipsec_device_caps(struct mlx5_core_dev *mdev)
 	    MLX5_CAP_ETH(mdev, insert_trailer) && MLX5_CAP_ETH(mdev, swp))
 		caps |= MLX5_IPSEC_CAP_CRYPTO;
 
-	if (MLX5_CAP_IPSEC(mdev, ipsec_full_offload)) {
+	if (MLX5_CAP_IPSEC(mdev, ipsec_full_offload) &&
+	    (mdev->priv.steering->mode == MLX5_FLOW_STEERING_MODE_DMFS ||
+	     (mdev->priv.steering->mode == MLX5_FLOW_STEERING_MODE_SMFS &&
+	     is_mdev_legacy_mode(mdev)))) {
 		if (MLX5_CAP_FLOWTABLE_NIC_TX(mdev,
 					      reformat_add_esp_trasport) &&
 		    MLX5_CAP_FLOWTABLE_NIC_RX(mdev,
@@ -94,7 +99,7 @@ static void mlx5e_ipsec_packet_setup(void *obj, u32 pdn,
 
 		if (attrs->dir == XFRM_DEV_OFFLOAD_IN) {
 			MLX5_SET(ipsec_aso, aso_ctx, window_sz,
-				 attrs->replay_esn.replay_window / 64);
+				 attrs->replay_esn.replay_window);
 			MLX5_SET(ipsec_aso, aso_ctx, mode,
 				 MLX5_IPSEC_ASO_REPLAY_PROTECTION);
 		}
@@ -558,6 +563,7 @@ void mlx5e_ipsec_aso_cleanup(struct mlx5e_ipsec *ipsec)
 	dma_unmap_single(pdev, aso->dma_addr, sizeof(aso->ctx),
 			 DMA_BIDIRECTIONAL);
 	kfree(aso);
+	ipsec->aso = NULL;
 }
 
 static void mlx5e_ipsec_aso_copy(struct mlx5_wqe_aso_ctrl_seg *ctrl,
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +24 -3
index acb40770cf0c..c3961c2bbc57 100644
@@ -2668,6 +2668,7 @@ void mlx5e_close_channels(struct mlx5e_channels *chs)
 {
 	int i;
 
+	ASSERT_RTNL();
 	if (chs->ptp) {
 		mlx5e_ptp_close(chs->ptp);
 		chs->ptp = NULL;
@@ -2945,17 +2946,29 @@ void mlx5e_activate_priv_channels(struct mlx5e_priv *priv)
 	if (mlx5e_is_vport_rep(priv))
 		mlx5e_rep_activate_channels(priv);
 
+	set_bit(MLX5E_STATE_CHANNELS_ACTIVE, &priv->state);
+
 	mlx5e_wait_channels_min_rx_wqes(&priv->channels);
 
 	if (priv->rx_res)
 		mlx5e_rx_res_channels_activate(priv->rx_res, &priv->channels);
 }
 
+static void mlx5e_cancel_tx_timeout_work(struct mlx5e_priv *priv)
+{
+	WARN_ON_ONCE(test_bit(MLX5E_STATE_CHANNELS_ACTIVE, &priv->state));
+	if (current_work() != &priv->tx_timeout_work)
+		cancel_work_sync(&priv->tx_timeout_work);
+}
+
 void mlx5e_deactivate_priv_channels(struct mlx5e_priv *priv)
 {
 	if (priv->rx_res)
 		mlx5e_rx_res_channels_deactivate(priv->rx_res);
 
+	clear_bit(MLX5E_STATE_CHANNELS_ACTIVE, &priv->state);
+	mlx5e_cancel_tx_timeout_work(priv);
+
 	if (mlx5e_is_vport_rep(priv))
 		mlx5e_rep_deactivate_channels(priv);
 
@@ -4734,8 +4747,17 @@ static void mlx5e_tx_timeout_work(struct work_struct *work)
 	struct net_device *netdev = priv->netdev;
 	int i;
 
-	rtnl_lock();
-	mutex_lock(&priv->state_lock);
+	/* Take rtnl_lock to ensure no change in netdev->real_num_tx_queues
+	 * through this flow. However, channel closing flows have to wait for
+	 * this work to finish while holding rtnl lock too. So either get the
+	 * lock or find that channels are being closed for other reason and
+	 * this work is not relevant anymore.
+	 */
+	while (!rtnl_trylock()) {
+		if (!test_bit(MLX5E_STATE_CHANNELS_ACTIVE, &priv->state))
+			return;
+		msleep(20);
+	}
 
 	if (!test_bit(MLX5E_STATE_OPENED, &priv->state))
 		goto unlock;
@@ -4754,7 +4776,6 @@ static void mlx5e_tx_timeout_work(struct work_struct *work)
 	}
 
 unlock:
-	mutex_unlock(&priv->state_lock);
 	rtnl_unlock();
 }
 
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +1 -1
index 825f9c687633..007cb167cabc 100644
@@ -1503,7 +1503,7 @@ mlx5e_vport_vf_rep_load(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep)
 
 	dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch,
 						 rpriv->rep->vport);
-	if (dl_port) {
+	if (!IS_ERR(dl_port)) {
 		SET_NETDEV_DEVLINK_PORT(netdev, dl_port);
 		mlx5e_rep_vnic_reporter_create(priv, dl_port);
 	}
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +21 -4
index b62fd3749341..1bead98f73bf 100644
@@ -444,6 +444,9 @@ mlx5e_tc_add_flow_meter(struct mlx5e_priv *priv,
 	struct mlx5e_flow_meter_handle *meter;
 	enum mlx5e_post_meter_type type;
 
+	if (IS_ERR(post_act))
+		return PTR_ERR(post_act);
+
 	meter = mlx5e_tc_meter_replace(priv->mdev, &attr->meter_attr.params);
 	if (IS_ERR(meter)) {
 		mlx5_core_err(priv->mdev, "Failed to get flow meter\n");
@@ -3736,6 +3739,20 @@ alloc_flow_post_acts(struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack)
 	return err;
 }
 
+static int
+set_branch_dest_ft(struct mlx5e_priv *priv, struct mlx5_flow_attr *attr)
+{
+	struct mlx5e_post_act *post_act = get_post_action(priv);
+
+	if (IS_ERR(post_act))
+		return PTR_ERR(post_act);
+
+	attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
+	attr->dest_ft = mlx5e_tc_post_act_get_ft(post_act);
+
+	return 0;
+}
+
 static int
 alloc_branch_attr(struct mlx5e_tc_flow *flow,
 		  struct mlx5e_tc_act_branch_ctrl *cond,
@@ -3759,8 +3776,8 @@ alloc_branch_attr(struct mlx5e_tc_flow *flow,
 		break;
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c +1 -153

154 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.h +0 -15
index 0c90f7a8b0d3..ac9c65b89166 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +22 -13
index 8d0b915a3121..3047d7015c52 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +2 -0
index 37ab66e7b403..b674b57d05aa 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +32 -22

54 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c +29 -0
index b568988e92e3..c4e19d627da2 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlx5/core/main.c +6 -0
index 15561965d2af..6ca91c0e8a6a 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/qlogic/qed/qed_cxt.c +1 -0
index 65e20693c549..33f4f58ee51c 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/qualcomm/qca_debug.c +9 -8
index 6f2fa2a42770..1822f2ad8f0d 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/qualcomm/qca_spi.c +19 -1
index bec723028e96..5f3c11fb3fa2 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/Kconfig +1 -1
index 06c6871f8788..25f2d42de406 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +6 -8
index 2cd6fce5c993..e7701326adc6 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +10 -0
index d3bf42d0fceb..31631e3f89d0 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +5 -1
index fa9e7e7040b9..0542cfd1817e 100644

Lines of this file are not shown. View the raw message.

drivers/net/team/team.c +3 -1
index 508d9a392ab1..f575f225d417 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/aqc111.c +4 -4
index a017e9de2119..7b8afa589a53 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/qmi_wwan.c +1 -0
index 344af3c5c836..e2e181378f41 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/r8152.c +1 -0
index 7611c406fdb9..127b34dcc5b3 100644

Lines of this file are not shown. View the raw message.

drivers/nfc/virtual_ncidev.c +6 -1
index b027be0b0b6f..590b038e449e 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/auth.c +2 -0
index 064592a5d546..811541ce206b 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/core.c +13 -6
index c09048984a27..d5c8b0a08d49 100644

Lines of this file are not shown. View the raw message.

drivers/pci/controller/pci-loongson.c +41 -5

46 lines not on this page · raw message

drivers/pci/controller/vmd.c +1 -1
index 1c1c1aa940a5..6ac0afae0ca1 100644

Lines of this file are not shown. View the raw message.

drivers/pci/hotplug/acpiphp_glue.c +3 -6
index 601129772b2d..5b1f271c6034 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/aspm.c +40 -13

53 lines not on this page · raw message

drivers/platform/x86/intel/telemetry/core.c +2 -2
index fdf55b5d6948..e4be40f73eeb 100644

Lines of this file are not shown. View the raw message.

drivers/soundwire/stream.c +4 -3
index d77a8a0d42c8..68d54887992d 100644

Lines of this file are not shown. View the raw message.

fs/afs/rxrpc.c +1 -1
index ed1644e7683f..d642d06a453b 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/delalloc-space.c +1 -1
index 0d105ed1b8de..eef341bbcc60 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/extent_io.c +2 -1
index 1530df88370c..03c10e0ba0e2 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/file.c +1 -1
index 23a145ca9457..c997b790568f 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/inode.c +8 -8
index c92c589b454d..7bf5c2c1a54d 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/ioctl.c +9 -0
index 0b120716aeb9..e611b3a3ad38 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/ordered-data.c +7 -4
index 345c449d588c..2b8ff8b53af0 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/qgroup.c +15 -10
index bdaebb9fc689..7c9249438154 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/qgroup.h +2 -2
index 7bffa10589d6..104c9bd3c337 100644

Lines of this file are not shown. View the raw message.

fs/ext4/file.c +8 -6
index 0166bb9ca160..6aa15dafc677 100644

Lines of this file are not shown. View the raw message.

fs/ext4/mballoc.c +4 -0
index a7b8558c0d09..d70f7a06bab4 100644

Lines of this file are not shown. View the raw message.

fs/fuse/dax.c +1 -0
index 23904a6a9a96..12ef91d170bb 100644

Lines of this file are not shown. View the raw message.

fs/fuse/file.c +5 -3
index 1cdb6327511e..a660f1f21540 100644

Lines of this file are not shown. View the raw message.

fs/fuse/fuse_i.h +17 -2
index bf0b85d0b95c..9377c46f14c4 100644

Lines of this file are not shown. View the raw message.

fs/fuse/inode.c +75 -6

81 lines not on this page · raw message

fs/nfsd/auth.c +0 -4
index fdf2aad73470..e6beaaf4f170 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfssvc.c +0 -1
index a87e9ef61386..211458203d14 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/vfs.c +1 -8
index b24462efa178..d0fdf70ab20d 100644

Lines of this file are not shown. View the raw message.

fs/open.c +0 -3
index 98f6601fbac6..54723fceb776 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cached_dir.c +12 -5
index 59f6b8e32cc9..d64a306a414b 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifsglob.h +11 -3
index b8d1c19f6771..bd7fc20c49de 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifspdu.h +2 -2
index a75220db5c1e..83ccc51a54d0 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifsproto.h +10 -1
index 8e53abcfc5ec..c858feaf4f92 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifssmb.c +77 -116

193 lines not on this page · raw message

fs/smb/client/inode.c +60 -14

74 lines not on this page · raw message

fs/smb/client/readdir.c +5 -1
index 47fc22de8d20..d30ea2005eb3 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb1ops.c +24 -49

73 lines not on this page · raw message

fs/smb/client/smb2inode.c +1 -1
index 0b89f7008ac0..c94940af5d4b 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb2misc.c +10 -16
index 32dfa0f7a78c..e20b4354e703 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb2ops.c +95 -83

178 lines not on this page · raw message

fs/smb/client/smb2pdu.c +56 -37

93 lines not on this page · raw message

fs/smb/client/smb2proto.h +7 -5
index 46eff9ec302a..0e371f7e2854 100644

Lines of this file are not shown. View the raw message.

fs/smb/common/smb2pdu.h +1 -1
index 319fb9ffc6a0..ec20c83cc836 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/smb2pdu.c +1 -0
index 269fbfb3cd67..2b248d45d40a 100644

Lines of this file are not shown. View the raw message.

fs/tracefs/inode.c +4 -9
index 891653ba9cf3..0292c6a2bed9 100644

Lines of this file are not shown. View the raw message.

include/asm-generic/qspinlock.h +1 -1
index 995513fa2690..0655aa5b57b2 100644

Lines of this file are not shown. View the raw message.

include/linux/cred.h +4 -54

58 lines not on this page · raw message

include/linux/mlx5/device.h +2 -0
index 4d5be378fa8c..26333d602a50 100644

Lines of this file are not shown. View the raw message.

include/linux/mlx5/driver.h +2 -0
index 3033bbaeac81..5ca4e085d813 100644

Lines of this file are not shown. View the raw message.

include/linux/mlx5/mlx5_ifc.h +8 -1
index fc3db401f8a2..8ac6ae79e083 100644

Lines of this file are not shown. View the raw message.

include/linux/mm_inline.h +14 -9
index 8148b30a9df1..96b1c157554c 100644

Lines of this file are not shown. View the raw message.

include/linux/mmzone.h +19 -15
index 4106fbc5b4b3..b6b688b229ea 100644

Lines of this file are not shown. View the raw message.

include/linux/objtool.h +5 -5
index b5440e7da55b..33212e93f4a6 100644

Lines of this file are not shown. View the raw message.

include/linux/pci.h +3 -0
index b56417276042..1596b1205b8d 100644

Lines of this file are not shown. View the raw message.

include/linux/usb/r8152.h +1 -0
index 287e9d83fb8b..33a4c146dc19 100644

Lines of this file are not shown. View the raw message.

include/net/addrconf.h +10 -2
index 82da55101b5a..61ebe723ee4d 100644

Lines of this file are not shown. View the raw message.

include/net/if_inet6.h +0 -4
index c8490729b4ae..31bf475eca76 100644

Lines of this file are not shown. View the raw message.

include/net/netfilter/nf_flow_table.h +10 -0
index fe1507c1db82..692d5955911c 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/fuse.h +6 -4
index db92a7202b34..e7418d15fe39 100644

Lines of this file are not shown. View the raw message.

io_uring/uring_cmd.c +1 -1
index 537795fddc87..5fa19861cda5 100644

Lines of this file are not shown. View the raw message.

kernel/Kconfig.kexec +0 -1
index 143f4d8eab7c..f9619ac6b71d 100644

Lines of this file are not shown. View the raw message.

kernel/cred.c +26 -224

250 lines not on this page · raw message

kernel/events/core.c +10 -0
index 252387b6ac8d..58ecb1c24387 100644

Lines of this file are not shown. View the raw message.

kernel/exit.c +0 -3
index edb50b4c9972..21a59a6e1f2e 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ring_buffer.c +23 -35

58 lines not on this page · raw message

kernel/trace/trace.c +2 -2
index b656cab67f67..d3664b803623 100644

Lines of this file are not shown. View the raw message.

lib/Kconfig.debug +0 -15
index fa307f93fa2e..1331f3186f2a 100644

Lines of this file are not shown. View the raw message.

mm/shmem.c +18 -1
index 69595d341882..e826be732b9b 100644

Lines of this file are not shown. View the raw message.

mm/vmscan.c +61 -31

92 lines not on this page · raw message

mm/workingset.c +3 -3
index da58a26d0d4d..2559a1f2fc1c 100644

Lines of this file are not shown. View the raw message.

net/appletalk/ddp.c +4 -5
index 8978fb6212ff..b070a8991200 100644

Lines of this file are not shown. View the raw message.

net/atm/ioctl.c +5 -2
index 838ebf0cabbf..f81f8d56f5c0 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_output.c +6 -0
index 9ccfdc825004..cab3c1162c3a 100644

Lines of this file are not shown. View the raw message.

net/ipv6/addrconf.c +1 -5
index 0b6ee962c84e..b007d098ffe2 100644

Lines of this file are not shown. View the raw message.

net/rose/af_rose.c +3 -1
index 49dafe9ac72f..4a5c2dc8dd7a 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/conn_client.c +4 -3
index 981ca5b98bcb..1d95f8bc769f 100644

Lines of this file are not shown. View the raw message.

net/sched/act_ct.c +28 -6
index 6dcc4585576e..dd710fb9f490 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/auth.c +0 -3
index 814b0169f972..ec41b26af76e 100644

Lines of this file are not shown. View the raw message.

net/vmw_vsock/virtio_transport_common.c +1 -1
index 8bc272b6003b..4084578b0b91 100644

Lines of this file are not shown. View the raw message.

scripts/checkstack.pl +1 -2
index ac74f8629cea..f27d552aec43 100755

Lines of this file are not shown. View the raw message.

scripts/sign-file.c +6 -6
index 598ef5465f82..3edb156ae52c 100644

Lines of this file are not shown. View the raw message.

security/selinux/hooks.c +0 -6
index 2aa0e219d721..208503340721 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_hdmi.c +3 -0
index 1cde2a69bdb4..78cee53fee02 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +1 -0
index 5c609c1150c4..2590879f0a84 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/tas2781_hda_i2c.c +10 -11
index fb802802939e..63a90c7e8976 100644

Lines of this file are not shown. View the raw message.

tools/objtool/noreturns.h +0 -1
index e45c7cb1d5bc..80a3e6acf31e 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/Makefile +1 -20
index 1a21d6beebc6..697f13bbbc32 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/config.x86_64 +0 -1
index 2e70a6048278..49a29dbc1910 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/progs/bpf_loop_bench.c +8 -5
index 4ce76eb064c4..d461746fd3c1 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/hid/config.common +0 -1
index 0617275d93cc..0f456dbab62f 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/lib.mk +3 -37
index 118e0964bda9..aa646e0661f3 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/mm/cow.c +2 -1
index 7324ce5363c0..6f2f83990441 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.