Skip to contentSkip to conversation

Linux 5.15.159

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages May 17, 2024 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 5.15.159 kernel.

All users of the 5.15 kernel series must upgrade.

The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.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

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

 Documentation/devicetree/bindings/iio/health/maxim,max30102.yaml |    2 
 Makefile                                                         |    2 
 arch/arm/kernel/sleep.S                                          |    4 
 arch/arm64/boot/dts/qcom/msm8998.dtsi                            |    8 
 arch/arm64/boot/dts/qcom/sdm845.dtsi                             |   16 
 arch/arm64/kvm/vgic/vgic-kvm-device.c                            |   12 
 arch/mips/include/asm/ptrace.h                                   |    2 
 arch/mips/kernel/asm-offsets.c                                   |    1 
 arch/mips/kernel/ptrace.c                                        |   15 
 arch/mips/kernel/scall32-o32.S                                   |   23 
 arch/mips/kernel/scall64-n32.S                                   |    3 
 arch/mips/kernel/scall64-n64.S                                   |    3 
 arch/mips/kernel/scall64-o32.S                                   |   33 
 arch/s390/include/asm/dwarf.h                                    |    1 
 arch/s390/kernel/vdso64/vdso_user_wrapper.S                      |    2 
 arch/s390/mm/gmap.c                                              |    2 
 arch/s390/mm/hugetlbpage.c                                       |    2 
 block/blk-iocost.c                                               |    7 
 drivers/acpi/cppc_acpi.c                                         |   67 +
 drivers/ata/sata_gemini.c                                        |    5 
 drivers/bluetooth/btqca.c                                        |   62 +
 drivers/clk/clk.c                                                |   12 
 drivers/clk/sunxi-ng/ccu-sun50i-h6.c                             |   19 
 drivers/firewire/nosy.c                                          |    6 
 drivers/firewire/ohci.c                                          |    6 
 drivers/gpio/gpio-crystalcove.c                                  |    2 
 drivers/gpio/gpio-wcove.c                                        |    2 
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c               |    1 
 drivers/gpu/drm/drm_connector.c                                  |    2 
 drivers/gpu/drm/meson/meson_dw_hdmi.c                            |   70 -
 drivers/gpu/drm/nouveau/nouveau_dp.c                             |   13 
 drivers/gpu/drm/panel/panel-ilitek-ili9341.c                     |    8 
 drivers/gpu/drm/qxl/qxl_release.c                                |   50 -
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c                            |    2 
 drivers/gpu/host1x/bus.c                                         |    8 
 drivers/hwmon/corsair-cpro.c                                     |   45 
 drivers/hwmon/pmbus/ucd9000.c                                    |    6 
 drivers/iio/accel/mxc4005.c                                      |   24 
 drivers/iio/imu/adis16475.c                                      |    4 
 drivers/infiniband/hw/qib/qib_fs.c                               |    1 
 drivers/iommu/mtk_iommu.c                                        |    1 
 drivers/iommu/mtk_iommu_v1.c                                     |    1 
 drivers/md/md.c                                                  |    1 
 drivers/misc/eeprom/at24.c                                       |   46 
 drivers/misc/mei/hw-me-regs.h                                    |    2 
 drivers/misc/mei/pci-me.c                                        |    2 
 drivers/net/dsa/mv88e6xxx/chip.c                                 |    4 
 drivers/net/ethernet/broadcom/genet/bcmgenet.c                   |   20 
 drivers/net/ethernet/brocade/bna/bnad_debugfs.c                  |    4 
 drivers/net/ethernet/chelsio/cxgb4/sge.c                         |    6 
 drivers/net/ethernet/hisilicon/hns3/Makefile                     |   18 
 drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h                  |   15 
 drivers/net/ethernet/hisilicon/hns3/hnae3.h                      |    3 
 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c |  259 +++++
 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h |  121 ++
 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c               |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile              |   12 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c           |  311 ------
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h           |   85 -
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c          |  215 ++--
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h          |   17 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c           |  486 +++++++---
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c          |    4 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c           |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile              |   10 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c        |   10 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h        |    2 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c          |    4 
 drivers/net/ethernet/qlogic/qede/qede_filter.c                   |   14 
 drivers/net/usb/qmi_wwan.c                                       |    1 
 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c                       |   34 
 drivers/pinctrl/core.c                                           |    8 
 drivers/pinctrl/devicetree.c                                     |   10 
 drivers/pinctrl/mediatek/pinctrl-paris.c                         |  180 +--
 drivers/pinctrl/meson/pinctrl-meson-a1.c                         |    6 
 drivers/power/supply/mt6360_charger.c                            |    2 
 drivers/power/supply/rt9455_charger.c                            |    2 
 drivers/regulator/core.c                                         |   27 
 drivers/regulator/mt6360-regulator.c                             |   32 
 drivers/s390/cio/cio_inject.c                                    |    2 
 drivers/s390/net/qeth_core.h                                     |    1 
 drivers/s390/net/qeth_core_main.c                                |   78 -
 drivers/scsi/bnx2fc/bnx2fc_tgt.c                                 |    2 
 drivers/scsi/lpfc/lpfc.h                                         |    1 
 drivers/scsi/lpfc/lpfc_nvme.c                                    |    4 
 drivers/scsi/lpfc/lpfc_scsi.c                                    |   13 
 drivers/scsi/lpfc/lpfc_vport.c                                   |    8 
 drivers/slimbus/qcom-ngd-ctrl.c                                  |    6 
 drivers/spi/spi-hisi-kunpeng.c                                   |    2 
 drivers/target/target_core_configfs.c                            |   12 
 drivers/usb/core/hub.c                                           |    5 
 drivers/usb/dwc3/core.c                                          |   90 -
 drivers/usb/dwc3/core.h                                          |    1 
 drivers/usb/dwc3/gadget.c                                        |    2 
 drivers/usb/dwc3/host.c                                          |   27 
 drivers/usb/gadget/composite.c                                   |    6 
 drivers/usb/gadget/function/f_fs.c                               |    2 
 drivers/usb/host/ohci-hcd.c                                      |    8 
 drivers/usb/host/xhci-plat.h                                     |    4 
 drivers/usb/typec/ucsi/ucsi.c                                    |   12 
 fs/9p/vfs_file.c                                                 |    2 
 fs/9p/vfs_inode.c                                                |    5 
 fs/9p/vfs_super.c                                                |    1 
 fs/btrfs/inode.c                                                 |    2 
 fs/btrfs/send.c                                                  |    4 
 fs/btrfs/transaction.c                                           |    2 
 fs/btrfs/volumes.c                                               |   18 
 fs/gfs2/bmap.c                                                   |    5 
 fs/ksmbd/server.c                                                |   13 
 fs/ksmbd/smb2pdu.c                                               |    4 
 fs/ksmbd/vfs.c                                                   |    5 
 fs/nfs/client.c                                                  |    5 
 fs/nfs/inode.c                                                   |   13 
 fs/nfs/internal.h                                                |    2 
 fs/nfs/netns.h                                                   |    2 
 include/linux/bpf.h                                              |   20 
 include/linux/dma-fence.h                                        |    7 
 include/linux/filter.h                                           |    4 
 include/linux/skbuff.h                                           |   15 
 include/linux/skmsg.h                                            |    5 
 include/linux/sunrpc/clnt.h                                      |    1 
 include/net/xfrm.h                                               |    3 
 kernel/bpf/cpumap.c                                              |    8 
 kernel/bpf/devmap.c                                              |   32 
 kernel/bpf/verifier.c                                            |    3 
 lib/Kconfig.debug                                                |    5 
 lib/dynamic_debug.c                                              |    6 
 net/bluetooth/l2cap_core.c                                       |    3 
 net/bluetooth/sco.c                                              |    4 
 net/bridge/br_forward.c                                          |    9 
 net/core/filter.c                                                |  115 +-
 net/core/net_namespace.c                                         |   13 
 net/core/rtnetlink.c                                             |    2 
 net/core/skbuff.c                                                |   27 
 net/core/skmsg.c                                                 |   53 -
 net/core/sock.c                                                  |    4 
 net/core/sock_map.c                                              |    3 
 net/ipv4/tcp.c                                                   |    4 
 net/ipv4/tcp_bpf.c                                               |   51 +
 net/ipv4/tcp_input.c                                             |    2 
 net/ipv4/tcp_ipv4.c                                              |    8 
 net/ipv4/tcp_output.c                                            |    4 
 net/ipv4/udp_offload.c                                           |   12 
 net/ipv4/xfrm4_input.c                                           |    6 
 net/ipv6/fib6_rules.c                                            |    6 
 net/ipv6/xfrm6_input.c                                           |    6 
 net/l2tp/l2tp_eth.c                                              |    3 
 net/mac80211/ieee80211_i.h                                       |    4 
 net/mptcp/protocol.c                                             |    3 
 net/nsh/nsh.c                                                    |   14 
 net/phonet/pn_netlink.c                                          |    2 
 net/sunrpc/clnt.c                                                |    5 
 net/tipc/msg.c                                                   |    8 
 net/wireless/nl80211.c                                           |    2 
 net/wireless/trace.h                                             |    2 
 net/xfrm/xfrm_input.c                                            |    8 
 scripts/Makefile.modfinal                                        |    2 
 security/keys/key.c                                              |    3 
 sound/hda/intel-sdw-acpi.c                                       |    2 
 sound/pci/hda/patch_realtek.c                                    |    1 
 sound/soc/meson/Kconfig                                          |    1 
 sound/soc/meson/axg-card.c                                       |    1 
 sound/soc/meson/axg-fifo.c                                       |   52 -
 sound/soc/meson/axg-fifo.h                                       |   12 
 sound/soc/meson/axg-frddr.c                                      |    5 
 sound/soc/meson/axg-tdm-interface.c                              |   26 
 sound/soc/meson/axg-toddr.c                                      |   22 
 sound/soc/tegra/tegra186_dspk.c                                  |    7 
 sound/soc/ti/davinci-mcasp.c                                     |   12 
 sound/usb/line6/driver.c                                         |    6 
 tools/power/x86/turbostat/turbostat.8                            |    2 
 tools/power/x86/turbostat/turbostat.c                            |    7 
 tools/testing/selftests/timers/valid-adjtimex.c                  |   73 -
 173 files changed, 2214 insertions(+), 1413 deletions(-)

Adam Goldman (1):
firewire: ohci: mask bus reset interrupts between ISR and bottom half

Al Viro (1):
qibfs: fix dentry leak

Alan Stern (1):
usb: Fix regression caused by invalid ep0 maxpacket in virtual SuperSpeed device

Aleksa Savic (3):
hwmon: (corsair-cpro) Use a separate buffer for sending commands
hwmon: (corsair-cpro) Use complete_all() instead of complete() in ccp_raw_event()
hwmon: (corsair-cpro) Protect ccp->wait_input_report with a spinlock

Alexander Stein (1):
eeprom: at24: Use dev_err_probe for nvmem register failure

Alexander Usyskin (1):
mei: me: add lunar lake point M DID

Alexandra Winter (1):
s390/qeth: Fix kernel panic after setting hsuid

Aman Dhoot (1):
ALSA: hda/realtek: Fix mute led of HP Laptop 15-da3001TU

Anand Jain (1):
btrfs: return accurate error code on open failure in open_fs_devices()

Andrew Price (1):
gfs2: Fix invalid metadata access in punch_hole

Andrii Nakryiko (1):
bpf, kconfig: Fix DEBUG_INFO_BTF_MODULES Kconfig definition

Andy Shevchenko (4):
drm/panel: ili9341: Respect deferred probe drm/panel: ili9341: Use predefined error codes
gpio: wcove: Use -ENOTSUPP consistently
gpio: crystalcove: Use -ENOTSUPP consistently

AngeloGioacchino Del Regno (2):
power: supply: mt6360_charger: Fix of_match for usb-otg-vbus regulator
regulator: mt6360: De-capitalize devicetree regulator subnodes

Anton Protopopov (1):
bpf: Fix a verifier verbose message

Arnd Bergmann (1):
power: rt9455: hide unused rt9455_boost_voltage_values

Asbjørn Sloth Tønnesen (4):
net: qede: sanitize 'rc' in qede_add_tc_flower_fltr()
net: qede: use return from qede_parse_flow_attr() for flower
net: qede: use return from qede_parse_flow_attr() for flow_spec
net: qede: use return from qede_parse_actions()

Billy Tsai (1):
pinctrl: pinctrl-aspeed-g6: Fix register offset for pinconf of GPIOR-T

Boris Burkov (2):
btrfs: make btrfs_clear_delalloc_extent() free delalloc reserve
btrfs: always clear PERTRANS metadata during commit

Borislav Petkov (AMD) (1):
kbuild: Disable KCSAN for autogenerated *.mod.c intermediaries

Boy.Wu (1):
ARM: 9381/1: kasan: clear stale stack poison

Bui Quang Minh (3):
bna: ensure the copied buf is NUL terminated
octeontx2-af: avoid off-by-one read from userspace s390/cio: Ensure the copied buf is NUL terminated

Bumyong Lee (1):
dmaengine: pl330: issue_pending waits until WFP state

Chen Ni (1):
ata: sata_gemini: Check clk_enable() result

Chen-Yu Tsai (3):
pinctrl: mediatek: paris: Rework mtk_pinconf_{get,set} switch/case logic
pinctrl: mediatek: paris: Fix PIN_CONFIG_INPUT_SCHMITT_ENABLE readback
pinctrl: mediatek: paris: Rework support for PIN_CONFIG_{INPUT,OUTPUT}_ENABLE

Chris Wulff (1):
usb: gadget: f_fs: Fix a race condition when processing setup packets.

Christian A. Ehrhardt (2):
usb: typec: ucsi: Check for notifications after init
usb: typec: ucsi: Fix connector check on init

Claudio Imbrenda (2):
s390/mm: Fix storage key clearing for guest huge pages s390/mm: Fix clearing storage keys for huge pages

Dan Carpenter (1):
pinctrl: core: delete incorrect free in pinctrl_enable()

Daniel Okazaki (1):
eeprom: at24: fix memory corruption race condition

David Bauer (1):
net l2tp: drop flow hash on forward

Devyn Liu (1):
spi: hisi-kunpeng: Delete the dump interface of data registers in debugfs

Dmitry Antipov (1):
btrfs: fix kvcalloc() arguments order in btrfs_ioctl_send()

Dominique Martinet (1):
btrfs: add missing mutex_unlock in btrfs_relocate_sys_chunks()

Doug Berger (1):
net: bcmgenet: synchronize use of bcmgenet_set_rx_mode()

Doug Smythies (1):
tools/power turbostat: Fix added raw MSR output

Douglas Anderson (1):
drm/connector: Add \n to message about demoting connector force-probes

Duoming Zhou (2):
Bluetooth: Fix use-after-free bugs caused by sco_sock_timeout
Bluetooth: l2cap: fix null-ptr-deref in l2cap_chan_timeout

Easwar Hariharan (1):
Revert "Revert "ACPI: CPPC: Use access_width over bit_width for system memory accesses""

Eric Dumazet (3):
tcp: defer shutdown(SEND_SHUTDOWN) for TCP_SYN_RECV sockets
phonet: fix rtm_phonet_notify() skb allocation
ipv6: fib6_rules: avoid possible NULL dereference in fib6_rule_action()

Felix Fietkau (3):
net: bridge: fix multicast-to-unicast with fraglist GSO
net: core: reject skb_copy(_expand) for fraglist GSO skbs
net: bridge: fix corrupted ethernet header on multicast-to-unicast

Gabe Teeger (1):
drm/amd/display: Atom Integrated System Info v2_2 for DCN35

Greg Kroah-Hartman (1):

      Linux 5.15.159

Guangbin Huang (2):
net: hns3: PF support get unicast MAC address space assigned by firmware
net: hns3: add query vf ring and vector map relation

Guenter Roeck (1):
usb: ohci: Prevent missed ohci interrupts

Hans de Goede (1):
iio: accel: mxc4005: Interrupt handling fixes

Hao Lan (1):
net: hns3: refactor function hclge_mbx_handler()

Heiner Kallweit (1):
eeprom: at24: Probe for DDR3 thermal sensor in the SPD case

Igor Artemiev (1):
wifi: cfg80211: fix rdev_dump_mpp() arguments order

Jan Dakinevich (1):
pinctrl/meson: fix typo in PDM's pin name

Jarred White (1):
ACPI: CPPC: Fix bit_offset shift in MASK_VAL() macro

Jason Xing (1):
bpf, skmsg: Fix NULL pointer dereference in sk_psock_skb_ingress_enqueue

Javier Carrasco (1):
dt-bindings: iio: health: maxim,max30102: fix compatible check

Jeff Johnson (1):

      wifi: mac80211: fix ieee80211_bss_*_flags kernel-doc

Jeff Layton (1):
9p: explicitly deny setlease attempts

Jens Remus (1):
s390/vdso: Add CFI for RA register to asm macro vdso_func

Jernej Skrabec (1):
clk: sunxi-ng: h6: Reparent CPUX during PLL CPUX rate change

Jerome Brunet (7):
ASoC: meson: axg-fifo: use FIELD helpers
ASoC: meson: axg-fifo: use threaded irq to check periods
ASoC: meson: axg-card: make links nonatomic
ASoC: meson: axg-tdm-interface: manage formatters in trigger
ASoC: meson: cards: select SND_DYNAMIC_MINORS drm/meson: dw-hdmi: power up phy on device init drm/meson: dw-hdmi: add bandgap setting for g12

Jian Shen (2):
net: hns3: direct return when receive a unknown mailbox message
net: hns3: split function hclge_init_vlan_config()

Jiaxun Yang (1):
MIPS: scall: Save thread_info.syscall unconditionally on entry

Jie Wang (4):
net: hns3: refactor hns3 makefile to support hns3_common module
net: hns3: create new cmdq hardware description structure hclge_comm_hw
net: hns3: create new set of unified hclge_comm_cmd_send APIs
net: hns3: refactor hclge_cmd_send with new hclge_comm_cmd_send API

Jim Cromie (1):
dyndbg: fix old BUG_ON in >control parser

Joakim Sindholt (3):
fs/9p: only translate RWX permissions for plain 9P2000 fs/9p: translate O_TRUNC into OTRUNC
fs/9p: drop inodes immediately on non-.L too

Joao Paulo Goncalves (1):
ASoC: ti: davinci-mcasp: Fix race condition during probe

Johan Hovold (4):
regulator: core: fix debugfs creation regression
Bluetooth: qca: add missing firmware sanity checks
Bluetooth: qca: fix NVM configuration parsing
Bluetooth: qca: fix firmware check error path

Johannes Berg (1):
wifi: nl80211: don't free NULL coalescing rule

John Fastabend (5):
bpf, sockmap: TCP data stall on recv before accept bpf, sockmap: Handle fin correctly
bpf, sockmap: Convert schedule_work into delayed_work bpf, sockmap: Reschedule is now done through backlog bpf, sockmap: Improved check for empty queue

John Stultz (1):
selftests: timers: Fix valid-adjtimex signed left-shift undefined behavior

Josef Bacik (3):
sunrpc: add a struct rpc_stats arg to rpc_create_args
nfs: expose /proc/net/sunrpc/nfs in net namespaces
nfs: make the rpc_stat per net namespace

Julian Wiedmann (1):
s390/qeth: don't keep track of Input Queue count

Justin Tee (3):
scsi: lpfc: Move NPIV's transport unregistration to after resource clean up
scsi: lpfc: Update lpfc_ramp_down_queue_handler() logic
scsi: lpfc: Replace hbalock with ndlp lock in lpfc_nvme_unregister_port()

Krzysztof Kozlowski (1):
iommu: mtk: fix module autoloading

Kuniyuki Iwashima (3):
nfs: Handle error of rpc_proc_register() in nfs_net_init().
nsh: Restore skb->{protocol,data,mac_header} for outer header in nsh_gso_segment().
tcp: Use refcount_inc_not_zero() in tcp_twsk_unique().

Lakshmi Yadlapati (1):

      hwmon: (pmbus/ucd9000) Increase delay from 250 to 500us

Li Nan (1):

      md: fix kmemleak of rdev->serial

Linus Torvalds (1):
Reapply "drm/qxl: simplify qxl_fence_wait"

Lyude Paul (1):
drm/nouveau/dp: Don't probe eDP ports twice harder

Marc Zyngier (1):
KVM: arm64: vgic-v2: Use cpuid from userspace as vcpu_id

Marek Behún (1):

      net: dsa: mv88e6xxx: Fix number of databases for 88E6141 / 88E6341

Marios Makassikis (1):
ksmbd: clear RENAME_NOREPLACE before calling vfs_rename

Maurizio Lombardi (1):
scsi: target: Fix SELinux error when systemd-modules loads the target module

Namjae Jeon (2):
ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

Oliver Upton (1):
KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()

Paolo Abeni (2):
mptcp: ensure snd_nxt is properly initialized on connect
tipc: fix UAF in error path

Paul Davey (1):
xfrm: Preserve vlan tags for transport mode software GRO

Peiyang Wang (3):
net: hns3: using user configure after hardware reset
net: hns3: change type of numa_node_mask as nodemask_t
net: hns3: use appropriate barrier function after setting a bit value

Peng Liu (1):
tools/power turbostat: Fix Bzy_MHz documentation typo

Peter Korsgaard (1):
usb: gadget: composite: fix OS descriptors w_value logic

Phil Elwell (1):
net: bcmgenet: Reset RBUF on first open

Pierre-Louis Bossart (1):
ALSA: hda: intel-sdw-acpi: fix usage of device_get_named_child_node()

Ramona Gradinariu (1):
iio:imu: adis16475: Fix sync mode setting

Richard Gobert (1):
net: gro: add flush check in udp_gro_receive_segment

Rik van Riel (1):
blk-iocost: avoid out of bounds shift

Rob Herring (1):
arm64: dts: qcom: Fix 'interrupt-map' parent address cells

Roded Zats (1):
rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation

Sameer Pujar (1):
ASoC: tegra: Fix DSPK 16-bit playback

Saurav Kashyap (1):
scsi: bnx2fc: Remove spin_lock_bh while releasing resources after upload

Sebastian Andrzej Siewior (1):
cxgb4: Properly lock TX queue for the selftest.

Silvio Gissi (1):
keys: Fix overwrite of key expiration on instantiation

Stephen Boyd (1):
clk: Don't hold prepare_lock when calling kref_put()

Takashi Iwai (1):
ALSA: line6: Zero-initialize message buffers

Thadeu Lima de Souza Cascardo (1):
net: fix out-of-bounds access in ops_init

Thanassis Avgerinos (1):
firewire: nosy: ensure user_length is taken into account when fetching packet contents

Thierry Reding (1):
gpu: host1x: Do not setup DMA for virtual devices

Thinh Nguyen (2):
usb: xhci-plat: Don't include xhci.h
usb: dwc3: core: Prevent phy suspend during init

Toke Høiland-Jørgensen (3):
xdp: Move conversion to xdp_frame out of map functions
xdp: Add xdp_do_redirect_frame() for pre-computed xdp_frames
xdp: use flags field to disambiguate broadcast redirect

Vanillan Wang (1):
net:usb:qmi_wwan: support Rolling modules

Vanshidhar Konda (1):
ACPI: CPPC: Fix access width used for PCC registers

Viken Dadhaniya (1):
slimbus: qcom-ngd-ctrl: Add timeout for wait operation

Vinod Koul (1):
dmaengine: Revert "dmaengine: pl330: issue_pending waits until WFP state"

Xin Long (1):
tipc: fix a possible memleak in tipc_buf_append

Yonglong Liu (1):
net: hns3: fix port vlan filter not disabled issue

Yufeng Mo (1):
net: hns3: add log for workqueue scheduled late

Zack Rusin (1):
drm/vmwgfx: Fix invalid reads in fence signaled events

Zeng Heng (1):
pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map()

linke li (1):

      net: mark racy access on sk->sk_rcvbuf
author maintainer
#1 lore raw
Documentation/devicetree/bindings/iio/health/maxim,max30102.yaml +1 -1
index c13c10c8d65d..eed0df9d3a23 100644
@@ -42,7 +42,7 @@ allOf:
       properties:
         compatible:
           contains:
-            const: maxim,max30100
+            const: maxim,max30102
     then:
       properties:
         maxim,green-led-current-microamp: false
Makefile +1 -1
index 04e9de5b174d..5cbfe2be72dd 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 15
-SUBLEVEL = 158
+SUBLEVEL = 159
 EXTRAVERSION =
 NAME = Trick or Treat
 
arch/arm/kernel/sleep.S +4 -0
index 43077e11dafd..2acf880fcc34 100644
@@ -114,6 +114,10 @@ ENDPROC(cpu_resume_mmu)
 	.popsection
 cpu_resume_after_mmu:
 	bl	cpu_init		@ restore the und/abt/irq banked regs
+#if defined(CONFIG_KASAN) && defined(CONFIG_KASAN_STACK)
+	mov	r0, sp
+	bl	kasan_unpoison_task_stack_below
+#endif
 	mov	r0, #0			@ return zero on success
 	ldmfd	sp!, {r4 - r11, pc}
 ENDPROC(cpu_resume_after_mmu)
arch/arm64/boot/dts/qcom/msm8998.dtsi +4 -4
index 7eadecba0175..d636718adbde 100644
@@ -958,10 +958,10 @@ pcie0: pci@1c00000 {
 			interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-names = "msi";
 			interrupt-map-mask = <0 0 0 0x7>;
-			interrupt-map =	<0 0 0 1 &intc 0 135 IRQ_TYPE_LEVEL_HIGH>,
-					<0 0 0 2 &intc 0 136 IRQ_TYPE_LEVEL_HIGH>,
-					<0 0 0 3 &intc 0 138 IRQ_TYPE_LEVEL_HIGH>,
-					<0 0 0 4 &intc 0 139 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-map =	<0 0 0 1 &intc 0 0 135 IRQ_TYPE_LEVEL_HIGH>,
+					<0 0 0 2 &intc 0 0 136 IRQ_TYPE_LEVEL_HIGH>,
+					<0 0 0 3 &intc 0 0 138 IRQ_TYPE_LEVEL_HIGH>,
+					<0 0 0 4 &intc 0 0 139 IRQ_TYPE_LEVEL_HIGH>;
 
 			clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
 				 <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
arch/arm64/boot/dts/qcom/sdm845.dtsi +8 -8
index 15af6c7ad06c..6f7061c878e4 100644
@@ -1996,10 +1996,10 @@ pcie0: pci@1c00000 {
 			interrupt-names = "msi";
 			#interrupt-cells = <1>;
 			interrupt-map-mask = <0 0 0 0x7>;
-			interrupt-map = <0 0 0 1 &intc 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
-					<0 0 0 2 &intc 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
-					<0 0 0 3 &intc 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
-					<0 0 0 4 &intc 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
+			interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
+					<0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
+					<0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
+					<0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
 
 			clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
 				 <&gcc GCC_PCIE_0_AUX_CLK>,
@@ -2101,10 +2101,10 @@ pcie1: pci@1c08000 {
 			interrupt-names = "msi";
 			#interrupt-cells = <1>;
 			interrupt-map-mask = <0 0 0 0x7>;
-			interrupt-map = <0 0 0 1 &intc 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
-					<0 0 0 2 &intc 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
-					<0 0 0 3 &intc 0 438 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
-					<0 0 0 4 &intc 0 439 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
+			interrupt-map = <0 0 0 1 &intc 0 0 0 434 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
+					<0 0 0 2 &intc 0 0 0 435 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
+					<0 0 0 3 &intc 0 0 0 438 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
+					<0 0 0 4 &intc 0 0 0 439 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
 
 			clocks = <&gcc GCC_PCIE_1_PIPE_CLK>,
 				 <&gcc GCC_PCIE_1_AUX_CLK>,
arch/arm64/kvm/vgic/vgic-kvm-device.c +4 -8
index 7740995de982..e80b638b7827 100644
@@ -284,16 +284,12 @@ int kvm_register_vgic_device(unsigned long type)
 int vgic_v2_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr,
 		       struct vgic_reg_attr *reg_attr)
 {
-	int cpuid;
+	int cpuid = FIELD_GET(KVM_DEV_ARM_VGIC_CPUID_MASK, attr->attr);
 
-	cpuid = (attr->attr & KVM_DEV_ARM_VGIC_CPUID_MASK) >>
-		 KVM_DEV_ARM_VGIC_CPUID_SHIFT;
-
-	if (cpuid >= atomic_read(&dev->kvm->online_vcpus))
-		return -EINVAL;
-
-	reg_attr->vcpu = kvm_get_vcpu(dev->kvm, cpuid);
 	reg_attr->addr = attr->attr & KVM_DEV_ARM_VGIC_OFFSET_MASK;
+	reg_attr->vcpu = kvm_get_vcpu_by_id(dev->kvm, cpuid);
+	if (!reg_attr->vcpu)
+		return -EINVAL;
 
 	return 0;
 }
arch/mips/include/asm/ptrace.h +1 -1
index b3e4dd6be7e2..428b9f1cf1de 100644
@@ -157,7 +157,7 @@ static inline long regs_return_value(struct pt_regs *regs)
 #define instruction_pointer(regs) ((regs)->cp0_epc)
 #define profile_pc(regs) instruction_pointer(regs)
 
-extern asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall);
+extern asmlinkage long syscall_trace_enter(struct pt_regs *regs);
 extern asmlinkage void syscall_trace_leave(struct pt_regs *regs);
 
 extern void die(const char *, struct pt_regs *) __noreturn;
arch/mips/kernel/asm-offsets.c +1 -0
index 04ca75278f02..6cd0246aa2c6 100644
@@ -98,6 +98,7 @@ void output_thread_info_defines(void)
 	OFFSET(TI_CPU, thread_info, cpu);
 	OFFSET(TI_PRE_COUNT, thread_info, preempt_count);
 	OFFSET(TI_REGS, thread_info, regs);
+	OFFSET(TI_SYSCALL, thread_info, syscall);
 	DEFINE(_THREAD_SIZE, THREAD_SIZE);
 	DEFINE(_THREAD_MASK, THREAD_MASK);
 	DEFINE(_IRQ_STACK_SIZE, IRQ_STACK_SIZE);
arch/mips/kernel/ptrace.c +6 -9
index db7c5be1d4a3..dd454b429ff7 100644
@@ -1310,16 +1310,13 @@ long arch_ptrace(struct task_struct *child, long request,
  * Notification of system call entry/exit
  * - triggered by current->work.syscall_trace
  */
-asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
+asmlinkage long syscall_trace_enter(struct pt_regs *regs)
 {
 	user_exit();
 
-	current_thread_info()->syscall = syscall;
-
 	if (test_thread_flag(TIF_SYSCALL_TRACE)) {
 		if (tracehook_report_syscall_entry(regs))
 			return -1;
-		syscall = current_thread_info()->syscall;
 	}
 
 #ifdef CONFIG_SECCOMP
@@ -1328,7 +1325,7 @@ asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
 		struct seccomp_data sd;
 		unsigned long args[6];
 
-		sd.nr = syscall;
+		sd.nr = current_thread_info()->syscall;
 		sd.arch = syscall_get_arch(current);
 		syscall_get_arguments(current, regs, args);
 		for (i = 0; i < 6; i++)
@@ -1338,23 +1335,23 @@ asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
 		ret = __secure_computing(&sd);
 		if (ret == -1)
 			return ret;
-		syscall = current_thread_info()->syscall;
 	}
 #endif
 
 	if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
 		trace_sys_enter(regs, regs->regs[2]);
 
-	audit_syscall_entry(syscall, regs->regs[4], regs->regs[5],
+	audit_syscall_entry(current_thread_info()->syscall,
+			    regs->regs[4], regs->regs[5],
 			    regs->regs[6], regs->regs[7]);
 
 	/*
 	 * Negative syscall numbers are mistaken for rejected syscalls, but
 	 * won't have had the return value set appropriately, so we do so now.
 	 */
-	if (syscall < 0)
+	if (current_thread_info()->syscall < 0)
 		syscall_set_return_value(current, regs, -ENOSYS, 0);
-	return syscall;
+	return current_thread_info()->syscall;
 }
 
 /*
arch/mips/kernel/scall32-o32.S +13 -10
index 9bfce5f75f60..6c14160cd8ba 100644
@@ -78,6 +78,18 @@ loads_done:
 	PTR_WD	load_a7, bad_stack_a7
 	.previous
 
+	/*
+	 * syscall number is in v0 unless we called syscall(__NR_###)
+	 * where the real syscall number is in a0
+	 */
+	subu	t2, v0,  __NR_O32_Linux
+	bnez	t2, 1f /* __NR_syscall at offset 0 */
+	LONG_S	a0, TI_SYSCALL($28)	# Save a0 as syscall number
+	b	2f
+1:
+	LONG_S	v0, TI_SYSCALL($28)	# Save v0 as syscall number
+2:
+
 	lw	t0, TI_FLAGS($28)	# syscall tracing enabled?
 	li	t1, _TIF_WORK_SYSCALL_ENTRY
 	and	t0, t1
@@ -115,16 +127,7 @@ syscall_trace_entry:
 	SAVE_STATIC
 	move	a0, sp
 
-	/*
-	 * syscall number is in v0 unless we called syscall(__NR_###)
-	 * where the real syscall number is in a0
-	 */
-	move	a1, v0
-	subu	t2, v0,  __NR_O32_Linux
-	bnez	t2, 1f /* __NR_syscall at offset 0 */
-	lw	a1, PT_R4(sp)
-
-1:	jal	syscall_trace_enter
+	jal	syscall_trace_enter
 
 	bltz	v0, 1f			# seccomp failed? Skip syscall
 
arch/mips/kernel/scall64-n32.S +2 -1
index 97456b2ca7dc..97788859238c 100644
@@ -44,6 +44,8 @@ NESTED(handle_sysn32, PT_SIZE, sp)
 
 	sd	a3, PT_R26(sp)		# save a3 for syscall restarting
 
+	LONG_S	v0, TI_SYSCALL($28)     # Store syscall number
+
 	li	t1, _TIF_WORK_SYSCALL_ENTRY
 	LONG_L	t0, TI_FLAGS($28)	# syscall tracing enabled?
 	and	t0, t1, t0
@@ -72,7 +74,6 @@ syscall_common:
 n32_syscall_trace_entry:
 	SAVE_STATIC
 	move	a0, sp
-	move	a1, v0
 	jal	syscall_trace_enter
 
 	bltz	v0, 1f			# seccomp failed? Skip syscall
arch/mips/kernel/scall64-n64.S +2 -1
index 5f6ed4b4c399..db5811538563 100644
@@ -47,6 +47,8 @@ NESTED(handle_sys64, PT_SIZE, sp)
 
 	sd	a3, PT_R26(sp)		# save a3 for syscall restarting
 
+	LONG_S	v0, TI_SYSCALL($28)     # Store syscall number
+
 	li	t1, _TIF_WORK_SYSCALL_ENTRY
 	LONG_L	t0, TI_FLAGS($28)	# syscall tracing enabled?
 	and	t0, t1, t0
@@ -83,7 +85,6 @@ n64_syscall_exit:
 syscall_trace_entry:
 	SAVE_STATIC
 	move	a0, sp
-	move	a1, v0
 	jal	syscall_trace_enter
 
 	bltz	v0, 1f			# seccomp failed? Skip syscall
arch/mips/kernel/scall64-o32.S +17 -16
index d3c2616cba22..7a5abb73e531 100644
@@ -79,6 +79,22 @@ loads_done:
 	PTR_WD	load_a7, bad_stack_a7
 	.previous
 
+	/*
+	 * absolute syscall number is in v0 unless we called syscall(__NR_###)
+	 * where the real syscall number is in a0
+	 * note: NR_syscall is the first O32 syscall but the macro is
+	 * only defined when compiling with -mabi=32 (CONFIG_32BIT)
+	 * therefore __NR_O32_Linux is used (4000)
+	 */
+
+	subu	t2, v0,  __NR_O32_Linux
+	bnez	t2, 1f /* __NR_syscall at offset 0 */
+	LONG_S	a0, TI_SYSCALL($28)	# Save a0 as syscall number
+	b	2f
+1:
+	LONG_S	v0, TI_SYSCALL($28)	# Save v0 as syscall number
+2:
+
 	li	t1, _TIF_WORK_SYSCALL_ENTRY
 	LONG_L	t0, TI_FLAGS($28)	# syscall tracing enabled?
 	and	t0, t1, t0
@@ -113,22 +129,7 @@ trace_a_syscall:
 	sd	a7, PT_R11(sp)		# For indirect syscalls
 
 	move	a0, sp
-	/*
-	 * absolute syscall number is in v0 unless we called syscall(__NR_###)
-	 * where the real syscall number is in a0
-	 * note: NR_syscall is the first O32 syscall but the macro is
-	 * only defined when compiling with -mabi=32 (CONFIG_32BIT)
-	 * therefore __NR_O32_Linux is used (4000)
-	 */
-	.set	push
-	.set	reorder
-	subu	t1, v0,  __NR_O32_Linux
-	move	a1, v0
-	bnez	t1, 1f /* __NR_syscall at offset 0 */
-	ld	a1, PT_R4(sp) /* Arg1 for __NR_syscall case */
-	.set	pop
-
-1:	jal	syscall_trace_enter
+	jal	syscall_trace_enter
 
 	bltz	v0, 1f			# seccomp failed? Skip syscall
 
arch/s390/include/asm/dwarf.h +1 -0
index 4f21ae561e4d..390906b8e386 100644
@@ -9,6 +9,7 @@
 #define CFI_DEF_CFA_OFFSET	.cfi_def_cfa_offset
 #define CFI_ADJUST_CFA_OFFSET	.cfi_adjust_cfa_offset
 #define CFI_RESTORE		.cfi_restore
+#define CFI_REL_OFFSET		.cfi_rel_offset
 
 #ifdef CONFIG_AS_CFI_VAL_OFFSET
 #define CFI_VAL_OFFSET		.cfi_val_offset
arch/s390/kernel/vdso64/vdso_user_wrapper.S +2 -0
index 97f0c0a669a5..0625381359df 100644
@@ -23,8 +23,10 @@ __kernel_\func:
 	CFI_DEF_CFA_OFFSET (STACK_FRAME_OVERHEAD + WRAPPER_FRAME_SIZE)
 	CFI_VAL_OFFSET 15, -STACK_FRAME_OVERHEAD
 	stg	%r14,STACK_FRAME_OVERHEAD(%r15)
+	CFI_REL_OFFSET 14, STACK_FRAME_OVERHEAD
 	brasl	%r14,__s390_vdso_\func
 	lg	%r14,STACK_FRAME_OVERHEAD(%r15)
+	CFI_RESTORE 14
 	aghi	%r15,WRAPPER_FRAME_SIZE
 	CFI_DEF_CFA_OFFSET STACK_FRAME_OVERHEAD
 	CFI_RESTORE 15
arch/s390/mm/gmap.c +1 -1
index a2c872de29a6..32d9db5e6f53 100644
@@ -2632,7 +2632,7 @@ static int __s390_enable_skey_hugetlb(pte_t *pte, unsigned long addr,
 		return 0;
 
 	start = pmd_val(*pmd) & HPAGE_MASK;
-	end = start + HPAGE_SIZE - 1;
+	end = start + HPAGE_SIZE;
 	__storage_key_init_range(start, end);
 	set_bit(PG_arch_1, &page->flags);
 	cond_resched();
arch/s390/mm/hugetlbpage.c +1 -1
index da36d13ffc16..8631307d3def 100644
@@ -146,7 +146,7 @@ static void clear_huge_pte_skeys(struct mm_struct *mm, unsigned long rste)
 	}
 
 	if (!test_and_set_bit(PG_arch_1, &page->flags))
-		__storage_key_init_range(paddr, paddr + size - 1);
+		__storage_key_init_range(paddr, paddr + size);
 }
 
 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr,
block/blk-iocost.c +4 -3
index 645a589edda8..bfdb7b0cf49d 100644
@@ -1336,7 +1336,7 @@ static bool iocg_kick_delay(struct ioc_gq *iocg, struct ioc_now *now)
 {
 	struct ioc *ioc = iocg->ioc;
 	struct blkcg_gq *blkg = iocg_to_blkg(iocg);
-	u64 tdelta, delay, new_delay;
+	u64 tdelta, delay, new_delay, shift;
 	s64 vover, vover_pct;
 	u32 hwa;
 
@@ -1351,8 +1351,9 @@ static bool iocg_kick_delay(struct ioc_gq *iocg, struct ioc_now *now)
 
 	/* calculate the current delay in effect - 1/2 every second */
 	tdelta = now->now - iocg->delay_at;
-	if (iocg->delay)
-		delay = iocg->delay >> div64_u64(tdelta, USEC_PER_SEC);
+	shift = div64_u64(tdelta, USEC_PER_SEC);
+	if (iocg->delay && shift < BITS_PER_LONG)
+		delay = iocg->delay >> shift;
 	else
 		delay = 0;
 
drivers/acpi/cppc_acpi.c +56 -11

133 lines not on this page · raw message

drivers/ata/sata_gemini.c +4 -1
index 6fd54e968d10..1564472fd5d5 100644
@@ -201,7 +201,10 @@ int gemini_sata_start_bridge(struct sata_gemini *sg, unsigned int bridge)
 		pclk = sg->sata0_pclk;
 	else
 		pclk = sg->sata1_pclk;
-	clk_enable(pclk);
+	ret = clk_enable(pclk);
+	if (ret)
+		return ret;
+
 	msleep(10);
 
 	/* Do not keep clocking a bridge that is not online */
drivers/bluetooth/btqca.c +54 -8

133 lines not on this page · raw message

drivers/clk/clk.c +5 -7
index a05b5bca6425..dc2bcf58fc10 100644
@@ -4227,7 +4227,8 @@ void clk_unregister(struct clk *clk)
 	if (ops == &clk_nodrv_ops) {
 		pr_err("%s: unregistered clock: %s\n", __func__,
 		       clk->core->name);
-		goto unlock;
+		clk_prepare_unlock();
+		return;
 	}
 	/*
 	 * Assign empty clock ops for consumers that might still hold
@@ -4261,11 +4262,10 @@ void clk_unregister(struct clk *clk)
 	if (clk->core->protect_count)
 		pr_warn("%s: unregistering protected clock: %s\n",
 					__func__, clk->core->name);
+	clk_prepare_unlock();
 
 	kref_put(&clk->core->ref, __clk_release);
 	free_clk(clk);
-unlock:
-	clk_prepare_unlock();
 }
 EXPORT_SYMBOL_GPL(clk_unregister);
 
@@ -4471,13 +4471,11 @@ void __clk_put(struct clk *clk)
 	    clk->max_rate < clk->core->req_rate)
 		clk_core_set_rate_nolock(clk->core, clk->core->req_rate);
 
-	owner = clk->core->owner;
-	kref_put(&clk->core->ref, __clk_release);
-
 	clk_prepare_unlock();
 
+	owner = clk->core->owner;
+	kref_put(&clk->core->ref, __clk_release);
 	module_put(owner);
-
 	free_clk(clk);
 }
 
drivers/clk/sunxi-ng/ccu-sun50i-h6.c +17 -2
index c0800da2fa3d..736a781e4007 100644
@@ -1181,12 +1181,19 @@ static const u32 usb2_clk_regs[] = {
 	SUN50I_H6_USB3_CLK_REG,
 };
 
+static struct ccu_mux_nb sun50i_h6_cpu_nb = {
+	.common		= &cpux_clk.common,
+	.cm		= &cpux_clk.mux,
+	.delay_us       = 1,
+	.bypass_index   = 0, /* index of 24 MHz oscillator */
+};
+
 static int sun50i_h6_ccu_probe(struct platform_device *pdev)
 {
 	struct resource *res;
 	void __iomem *reg;
+	int i, ret;
 	u32 val;
-	int i;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	reg = devm_ioremap_resource(&pdev->dev, res);
@@ -1240,7 +1247,15 @@ static int sun50i_h6_ccu_probe(struct platform_device *pdev)
 	val |= BIT(24);
 	writel(val, reg + SUN50I_H6_HDMI_CEC_CLK_REG);
 
-	return devm_sunxi_ccu_probe(&pdev->dev, reg, &sun50i_h6_ccu_desc);
+	ret = devm_sunxi_ccu_probe(&pdev->dev, reg, &sun50i_h6_ccu_desc);
+	if (ret)
+		return ret;
+
+	/* Reparent CPU during PLL CPUX rate changes */
+	ccu_mux_notifier_register(pll_cpux_clk.common.hw.clk,
+				  &sun50i_h6_cpu_nb);
+
+	return 0;
 }
 
 static const struct of_device_id sun50i_h6_ccu_ids[] = {
drivers/firewire/nosy.c +4 -2
index b0d671db178a..ea31ac7ac1ca 100644
@@ -148,10 +148,12 @@ packet_buffer_get(struct client *client, char __user *data, size_t user_length)
 	if (atomic_read(&buffer->size) == 0)
 		return -ENODEV;
 
-	/* FIXME: Check length <= user_length. */
+	length = buffer->head->length;
+
+	if (length > user_length)
+		return 0;
 
 	end = buffer->data + buffer->capacity;
-	length = buffer->head->length;
 
 	if (&buffer->head->data[length] < end) {
 		if (copy_to_user(data, buffer->head->data, length))
drivers/firewire/ohci.c +5 -1
index 667ff40f3935..7d94e1cbc0ed 100644
@@ -2049,6 +2049,8 @@ static void bus_reset_work(struct work_struct *work)
 
 	ohci->generation = generation;
 	reg_write(ohci, OHCI1394_IntEventClear, OHCI1394_busReset);
+	if (param_debug & OHCI_PARAM_DEBUG_BUSRESETS)
+		reg_write(ohci, OHCI1394_IntMaskSet, OHCI1394_busReset);
 
 	if (ohci->quirks & QUIRK_RESET_PACKET)
 		ohci->request_generation = generation;
@@ -2115,12 +2117,14 @@ static irqreturn_t irq_handler(int irq, void *data)
 		return IRQ_NONE;
 
 	/*
-	 * busReset and postedWriteErr must not be cleared yet
+	 * busReset and postedWriteErr events must not be cleared yet
 	 * (OHCI 1.1 clauses 7.2.3.2 and 13.2.8.1)
 	 */
 	reg_write(ohci, OHCI1394_IntEventClear,
 		  event & ~(OHCI1394_busReset | OHCI1394_postedWriteErr));
 	log_irqs(ohci, event);
+	if (event & OHCI1394_busReset)
+		reg_write(ohci, OHCI1394_IntMaskClear, OHCI1394_busReset);
 
 	if (event & OHCI1394_selfIDComplete)
 		queue_work(selfid_workqueue, &ohci->bus_reset_work);
drivers/gpio/gpio-crystalcove.c +1 -1
index 5a909f3c79e8..c48a82c24087 100644
@@ -91,7 +91,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
 		case 0x5e:
 			return GPIOPANELCTL;
 		default:
-			return -EOPNOTSUPP;
+			return -ENOTSUPP;
 		}
 	}
 
drivers/gpio/gpio-wcove.c +1 -1
index 16a0fae1e32e..2df948e16eb7 100644
@@ -104,7 +104,7 @@ static inline int to_reg(int gpio, enum ctrl_register type)
 	unsigned int reg = type == CTRL_IN ? GPIO_IN_CTRL_BASE : GPIO_OUT_CTRL_BASE;
 
 	if (gpio >= WCOVE_GPIO_NUM)
-		return -EOPNOTSUPP;
+		return -ENOTSUPP;
 
 	return reg + gpio;
 }
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +1 -0
index 228f098e5d88..6bc8c6bee411 100644
@@ -2303,6 +2303,7 @@ static enum bp_result construct_integrated_info(
 				result = get_integrated_info_v2_1(bp, info);
 				break;
 			case 2:
+			case 3:
 				result = get_integrated_info_v2_2(bp, info);
 				break;
 			default:
drivers/gpu/drm/drm_connector.c +1 -1
index cfe163103cfd..1140292820bb 100644
@@ -2460,7 +2460,7 @@ int drm_mode_getconnector(struct drm_device *dev, void *data,
 						     dev->mode_config.max_width,
 						     dev->mode_config.max_height);
 		else
-			drm_dbg_kms(dev, "User-space requested a forced probe on [CONNECTOR:%d:%s] but is not the DRM master, demoting to read-only probe",
+			drm_dbg_kms(dev, "User-space requested a forced probe on [CONNECTOR:%d:%s] but is not the DRM master, demoting to read-only probe\n",
 				    connector->base.id, connector->name);
 	}
 
drivers/gpu/drm/meson/meson_dw_hdmi.c +31 -39

130 lines not on this page · raw message

drivers/gpu/drm/nouveau/nouveau_dp.c +8 -5
index 447b7594b35a..0107a21dc9f9 100644
@@ -109,12 +109,15 @@ nouveau_dp_detect(struct nouveau_connector *nv_connector,
 	u8 *dpcd = nv_encoder->dp.dpcd;
 	int ret = NOUVEAU_DP_NONE;
 
-	/* If we've already read the DPCD on an eDP device, we don't need to
-	 * reread it as it won't change
+	/* eDP ports don't support hotplugging - so there's no point in probing eDP ports unless we
+	 * haven't probed them once before.
 	 */
-	if (connector->connector_type == DRM_MODE_CONNECTOR_eDP &&
-	    dpcd[DP_DPCD_REV] != 0)
-		return NOUVEAU_DP_SST;
+	if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
+		if (connector->status == connector_status_connected)
+			return NOUVEAU_DP_SST;
+		else if (connector->status == connector_status_disconnected)
+			return NOUVEAU_DP_NONE;
+	}
 
 	mutex_lock(&nv_encoder->dp.hpd_irq_lock);
 	if (mstm) {
drivers/gpu/drm/panel/panel-ilitek-ili9341.c +4 -4
index e1542451ef9d..0d89779de22b 100644
@@ -420,7 +420,7 @@ static int ili9341_dpi_prepare(struct drm_panel *panel)
 
 	ili9341_dpi_init(ili);
 
-	return ret;
+	return 0;
 }
 
 static int ili9341_dpi_enable(struct drm_panel *panel)
@@ -716,18 +716,18 @@ static int ili9341_probe(struct spi_device *spi)
 
 	reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
 	if (IS_ERR(reset))
-		dev_err(dev, "Failed to get gpio 'reset'\n");
+		return dev_err_probe(dev, PTR_ERR(reset), "Failed to get gpio 'reset'\n");
 
 	dc = devm_gpiod_get_optional(dev, "dc", GPIOD_OUT_LOW);
 	if (IS_ERR(dc))
-		dev_err(dev, "Failed to get gpio 'dc'\n");
+		return dev_err_probe(dev, PTR_ERR(dc), "Failed to get gpio 'dc'\n");
 
 	if (!strcmp(id->name, "sf-tc240t-9370-t"))
 		return ili9341_dpi_probe(spi, dc, reset);
 	else if (!strcmp(id->name, "yx240qv29"))
 		return ili9341_dbi_probe(spi, dc, reset);
 
-	return -1;
+	return -ENODEV;
 }
 
 static int ili9341_remove(struct spi_device *spi)
drivers/gpu/drm/qxl/qxl_release.c +5 -45

61 lines not on this page · raw message

drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +1 -1
index b32ddbb992de..50eba25456bb 100644
@@ -1068,7 +1068,7 @@ static int vmw_event_fence_action_create(struct drm_file *file_priv,
 	}
 
 	event->event.base.type = DRM_VMW_EVENT_FENCE_SIGNALED;
-	event->event.base.length = sizeof(*event);
+	event->event.base.length = sizeof(event->event);
 	event->event.user_data = user_data;
 
 	ret = drm_event_reserve_init(dev, file_priv, &event->base, &event->event.base);
drivers/gpu/host1x/bus.c +0 -8
index 218e3718fd68..96737ddc8120 100644
@@ -367,11 +367,6 @@ static int host1x_device_uevent(struct device *dev,
 	return 0;
 }
 
-static int host1x_dma_configure(struct device *dev)
-{
-	return of_dma_configure(dev, dev->of_node, true);
-}
-
 static const struct dev_pm_ops host1x_device_pm_ops = {
 	.suspend = pm_generic_suspend,
 	.resume = pm_generic_resume,
@@ -385,7 +380,6 @@ struct bus_type host1x_bus_type = {
 	.name = "host1x",
 	.match = host1x_device_match,
 	.uevent = host1x_device_uevent,
-	.dma_configure = host1x_dma_configure,
 	.pm = &host1x_device_pm_ops,
 };
 
@@ -474,8 +468,6 @@ static int host1x_device_add(struct host1x *host1x,
 	device->dev.bus = &host1x_bus_type;
 	device->dev.parent = host1x->dev;
 
-	of_dma_configure(&device->dev, host1x->dev->of_node, true);
-
 	device->dev.dma_parms = &device->dma_parms;
 	dma_set_max_seg_size(&device->dev, UINT_MAX);
 
drivers/hwmon/corsair-cpro.c +32 -13

86 lines not on this page · raw message

drivers/hwmon/pmbus/ucd9000.c +3 -3
index 3daaf2237832..d6dfa268f31b 100644
@@ -80,11 +80,11 @@ struct ucd9000_debugfs_entry {
  * It has been observed that the UCD90320 randomly fails register access when
  * doing another access right on the back of a register write. To mitigate this
  * make sure that there is a minimum delay between a write access and the
- * following access. The 250us is based on experimental data. At a delay of
- * 200us the issue seems to go away. Add a bit of extra margin to allow for
+ * following access. The 500 is based on experimental data. At a delay of
+ * 350us the issue seems to go away. Add a bit of extra margin to allow for
  * system to system differences.
  */
-#define UCD90320_WAIT_DELAY_US 250
+#define UCD90320_WAIT_DELAY_US 500
 
 static inline void ucd90320_wait(const struct ucd9000_data *data)
 {
drivers/iio/accel/mxc4005.c +17 -7
index df600d2917c0..ffae30e5eb5b 100644
@@ -27,9 +27,13 @@
 #define MXC4005_REG_ZOUT_UPPER		0x07
 #define MXC4005_REG_ZOUT_LOWER		0x08
 
+#define MXC4005_REG_INT_MASK0		0x0A
+
 #define MXC4005_REG_INT_MASK1		0x0B
 #define MXC4005_REG_INT_MASK1_BIT_DRDYE	0x01
 
+#define MXC4005_REG_INT_CLR0		0x00
+
 #define MXC4005_REG_INT_CLR1		0x01
 #define MXC4005_REG_INT_CLR1_BIT_DRDYC	0x01
 
@@ -113,7 +117,9 @@ static bool mxc4005_is_readable_reg(struct device *dev, unsigned int reg)
 static bool mxc4005_is_writeable_reg(struct device *dev, unsigned int reg)
 {
 	switch (reg) {
+	case MXC4005_REG_INT_CLR0:
 	case MXC4005_REG_INT_CLR1:
+	case MXC4005_REG_INT_MASK0:
 	case MXC4005_REG_INT_MASK1:
 	case MXC4005_REG_CONTROL:
 		return true;
@@ -330,17 +336,13 @@ static int mxc4005_set_trigger_state(struct iio_trigger *trig,
 {
 	struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig);
 	struct mxc4005_data *data = iio_priv(indio_dev);
+	unsigned int val;
 	int ret;
 
 	mutex_lock(&data->mutex);
-	if (state) {
-		ret = regmap_write(data->regmap, MXC4005_REG_INT_MASK1,
-				   MXC4005_REG_INT_MASK1_BIT_DRDYE);
-	} else {
-		ret = regmap_write(data->regmap, MXC4005_REG_INT_MASK1,
-				   ~MXC4005_REG_INT_MASK1_BIT_DRDYE);
-	}
 
+	val = state ? MXC4005_REG_INT_MASK1_BIT_DRDYE : 0;
+	ret = regmap_write(data->regmap, MXC4005_REG_INT_MASK1, val);
 	if (ret < 0) {
 		mutex_unlock(&data->mutex);
 		dev_err(data->dev, "failed to update reg_int_mask1");
@@ -382,6 +384,14 @@ static int mxc4005_chip_init(struct mxc4005_data *data)
 
 	dev_dbg(data->dev, "MXC4005 chip id %02x\n", reg);
 
+	ret = regmap_write(data->regmap, MXC4005_REG_INT_MASK0, 0);
+	if (ret < 0)
+		return dev_err_probe(data->dev, ret, "writing INT_MASK0\n");
+
+	ret = regmap_write(data->regmap, MXC4005_REG_INT_MASK1, 0);
+	if (ret < 0)
+		return dev_err_probe(data->dev, ret, "writing INT_MASK1\n");
+
 	return 0;
 }
 
drivers/iio/imu/adis16475.c +3 -1
index a3b9745dd176..e8238459bdad 100644
@@ -1145,6 +1145,7 @@ static int adis16475_config_sync_mode(struct adis16475 *st)
 	struct device *dev = &st->adis.spi->dev;
 	const struct adis16475_sync *sync;
 	u32 sync_mode;
+	u16 val;
 
 	/* default to internal clk */
 	st->clk_freq = st->info->int_clk * 1000;
@@ -1214,8 +1215,9 @@ static int adis16475_config_sync_mode(struct adis16475 *st)
 	 * I'm keeping this for simplicity and avoiding extra variables
 	 * in chip_info.
 	 */
+	val = ADIS16475_SYNC_MODE(sync->sync_mode);
 	ret = __adis_update_bits(&st->adis, ADIS16475_REG_MSG_CTRL,
-				 ADIS16475_SYNC_MODE_MASK, sync->sync_mode);
+				 ADIS16475_SYNC_MODE_MASK, val);
 	if (ret)
 		return ret;
 
drivers/infiniband/hw/qib/qib_fs.c +1 -0
index a0c5f3bdc324..8665e506404f 100644
@@ -441,6 +441,7 @@ static int remove_device_files(struct super_block *sb,
 		return PTR_ERR(dir);
 	}
 	simple_recursive_removal(dir, NULL);
+	dput(dir);
 	return 0;
 }
 
drivers/iommu/mtk_iommu.c +1 -0
index 2ae46fa6b3de..04ac40d11fdf 100644
@@ -1101,6 +1101,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
 	{ .compatible = "mediatek,mt8192-m4u", .data = &mt8192_data},
 	{}
 };
+MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids);
 
 static struct platform_driver mtk_iommu_driver = {
 	.probe	= mtk_iommu_probe,
drivers/iommu/mtk_iommu_v1.c +1 -0
index fe1c3123a7e7..02668fd3404f 100644
@@ -576,6 +576,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
 	{ .compatible = "mediatek,mt2701-m4u", },
 	{}
 };
+MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids);
 
 static const struct component_master_ops mtk_iommu_com_ops = {
 	.bind		= mtk_iommu_bind,
drivers/md/md.c +1 -0
index c937ad7f6b73..45ef1ddd2bd0 100644
@@ -2526,6 +2526,7 @@ static int bind_rdev_to_array(struct md_rdev *rdev, struct mddev *mddev)
  fail:
 	pr_warn("md: failed to register dev-%s for %s\n",
 		b, mdname(mddev));
+	mddev_destroy_serial_pool(mddev, rdev, false);
 	return err;
 }
 
drivers/misc/eeprom/at24.c +38 -8

64 lines not on this page · raw message

drivers/misc/mei/hw-me-regs.h +2 -0
index 00867bcc2ef7..bbabfe49f956 100644
@@ -115,6 +115,8 @@
 #define MEI_DEV_ID_ARL_S      0x7F68  /* Arrow Lake Point S */
 #define MEI_DEV_ID_ARL_H      0x7770  /* Arrow Lake Point H */
 
+#define MEI_DEV_ID_LNL_M      0xA870  /* Lunar Lake Point M */
+
 /*
  * MEI HW Section
  */
drivers/misc/mei/pci-me.c +2 -0
index 2809338a5c3a..188d847662ff 100644
@@ -121,6 +121,8 @@ static const struct pci_device_id mei_me_pci_tbl[] = {
 	{MEI_PCI_DEVICE(MEI_DEV_ID_ARL_S, MEI_ME_PCH15_CFG)},
 	{MEI_PCI_DEVICE(MEI_DEV_ID_ARL_H, MEI_ME_PCH15_CFG)},
 
+	{MEI_PCI_DEVICE(MEI_DEV_ID_LNL_M, MEI_ME_PCH15_CFG)},
+
 	/* required last entry */
 	{0, }
 };
drivers/net/dsa/mv88e6xxx/chip.c +2 -2
index 30fba1ea933e..3fc120802883 100644
@@ -5116,7 +5116,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = {
 		.prod_num = MV88E6XXX_PORT_SWITCH_ID_PROD_6141,
 		.family = MV88E6XXX_FAMILY_6341,
 		.name = "Marvell 88E6141",
-		.num_databases = 4096,
+		.num_databases = 256,
 		.num_macs = 2048,
 		.num_ports = 6,
 		.num_internal_phys = 5,
@@ -5559,7 +5559,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = {
 		.prod_num = MV88E6XXX_PORT_SWITCH_ID_PROD_6341,
 		.family = MV88E6XXX_FAMILY_6341,
 		.name = "Marvell 88E6341",
-		.num_databases = 4096,
+		.num_databases = 256,
 		.num_macs = 2048,
 		.num_internal_phys = 5,
 		.num_ports = 6,
drivers/net/ethernet/broadcom/genet/bcmgenet.c +15 -5
index a2b736a9d20c..ef8646e91f5d 100644
@@ -2,7 +2,7 @@
 /*
  * Broadcom GENET (Gigabit Ethernet) controller driver
  *
- * Copyright (c) 2014-2020 Broadcom
+ * Copyright (c) 2014-2024 Broadcom
  */
 
 #define pr_fmt(fmt)				"bcmgenet: " fmt
@@ -3256,7 +3256,7 @@ static void bcmgenet_get_hw_addr(struct bcmgenet_priv *priv,
 }
 
 /* Returns a reusable dma control register value */
-static u32 bcmgenet_dma_disable(struct bcmgenet_priv *priv)
+static u32 bcmgenet_dma_disable(struct bcmgenet_priv *priv, bool flush_rx)
 {
 	unsigned int i;
 	u32 reg;
@@ -3281,6 +3281,14 @@ static u32 bcmgenet_dma_disable(struct bcmgenet_priv *priv)
 	udelay(10);
 	bcmgenet_umac_writel(priv, 0, UMAC_TX_FLUSH);
 
+	if (flush_rx) {
+		reg = bcmgenet_rbuf_ctrl_get(priv);
+		bcmgenet_rbuf_ctrl_set(priv, reg | BIT(0));
+		udelay(10);
+		bcmgenet_rbuf_ctrl_set(priv, reg);
+		udelay(10);
+	}
+
 	return dma_ctrl;
 }
 
@@ -3302,7 +3310,9 @@ static void bcmgenet_netif_start(struct net_device *dev)
 	struct bcmgenet_priv *priv = netdev_priv(dev);
 
 	/* Start the network engine */
+	netif_addr_lock_bh(dev);
 	bcmgenet_set_rx_mode(dev);
+	netif_addr_unlock_bh(dev);
 	bcmgenet_enable_rx_napi(priv);
 
 	umac_enable_set(priv, CMD_TX_EN | CMD_RX_EN, true);
@@ -3344,8 +3354,8 @@ static int bcmgenet_open(struct net_device *dev)
 
 	bcmgenet_set_hw_addr(priv, dev->dev_addr);
 
-	/* Disable RX/TX DMA and flush TX queues */
-	dma_ctrl = bcmgenet_dma_disable(priv);
+	/* Disable RX/TX DMA and flush TX and RX queues */
+	dma_ctrl = bcmgenet_dma_disable(priv, true);
 
 	/* Reinitialize TDMA and RDMA and SW housekeeping */
 	ret = bcmgenet_init_dma(priv);
@@ -4201,7 +4211,7 @@ static int bcmgenet_resume(struct device *d)
 			bcmgenet_hfb_create_rxnfc_filter(priv, rule);
 
 	/* Disable RX/TX DMA and flush TX queues */
-	dma_ctrl = bcmgenet_dma_disable(priv);
+	dma_ctrl = bcmgenet_dma_disable(priv, false);
 
 	/* Reinitialize TDMA and RDMA and SW housekeeping */
 	ret = bcmgenet_init_dma(priv);
drivers/net/ethernet/brocade/bna/bnad_debugfs.c +2 -2
index 04ad0f2b9677..777f0d7e4819 100644
@@ -312,7 +312,7 @@ bnad_debugfs_write_regrd(struct file *file, const char __user *buf,
 	void *kern_buf;
 
 	/* Copy the user space buf */
-	kern_buf = memdup_user(buf, nbytes);
+	kern_buf = memdup_user_nul(buf, nbytes);
 	if (IS_ERR(kern_buf))
 		return PTR_ERR(kern_buf);
 
@@ -372,7 +372,7 @@ bnad_debugfs_write_regwr(struct file *file, const char __user *buf,
 	void *kern_buf;
 
 	/* Copy the user space buf */
-	kern_buf = memdup_user(buf, nbytes);
+	kern_buf = memdup_user_nul(buf, nbytes);
 	if (IS_ERR(kern_buf))
 		return PTR_ERR(kern_buf);
 
drivers/net/ethernet/chelsio/cxgb4/sge.c +3 -3
index fa5b596ff23a..a074e9d44277 100644
@@ -2682,12 +2682,12 @@ int cxgb4_selftest_lb_pkt(struct net_device *netdev)
 	lb->loopback = 1;
 
 	q = &adap->sge.ethtxq[pi->first_qset];
-	__netif_tx_lock(q->txq, smp_processor_id());
+	__netif_tx_lock_bh(q->txq);
 
 	reclaim_completed_tx(adap, &q->q, -1, true);
 	credits = txq_avail(&q->q) - ndesc;
 	if (unlikely(credits < 0)) {
-		__netif_tx_unlock(q->txq);
+		__netif_tx_unlock_bh(q->txq);
 		return -ENOMEM;
 	}
 
@@ -2722,7 +2722,7 @@ int cxgb4_selftest_lb_pkt(struct net_device *netdev)
 	init_completion(&lb->completion);
 	txq_advance(&q->q, ndesc);
 	cxgb4_ring_tx_db(adap, &q->q, ndesc);
-	__netif_tx_unlock(q->txq);
+	__netif_tx_unlock_bh(q->txq);
 
 	/* wait for the pkt to return */
 	ret = wait_for_completion_timeout(&lb->completion, 10 * HZ);
drivers/net/ethernet/hisilicon/hns3/Makefile +15 -3
index 7aa2fac76c5e..cb3aaf5252d0 100644
@@ -4,9 +4,9 @@
 #
 
 ccflags-y += -I$(srctree)/$(src)
-
-obj-$(CONFIG_HNS3) += hns3pf/
-obj-$(CONFIG_HNS3) += hns3vf/
+ccflags-y += -I$(srctree)/drivers/net/ethernet/hisilicon/hns3/hns3pf
+ccflags-y += -I$(srctree)/drivers/net/ethernet/hisilicon/hns3/hns3vf
+ccflags-y += -I$(srctree)/drivers/net/ethernet/hisilicon/hns3/hns3_common
 
 obj-$(CONFIG_HNS3) += hnae3.o
 
@@ -14,3 +14,15 @@ obj-$(CONFIG_HNS3_ENET) += hns3.o
 hns3-objs = hns3_enet.o hns3_ethtool.o hns3_debugfs.o
 
 hns3-$(CONFIG_HNS3_DCB) += hns3_dcbnl.o
+
+obj-$(CONFIG_HNS3_HCLGEVF) += hclgevf.o
+
+hclgevf-objs = hns3vf/hclgevf_main.o hns3vf/hclgevf_cmd.o hns3vf/hclgevf_mbx.o  hns3vf/hclgevf_devlink.o \
+		hns3_common/hclge_comm_cmd.o
+
+obj-$(CONFIG_HNS3_HCLGE) += hclge.o
+hclge-objs = hns3pf/hclge_main.o hns3pf/hclge_cmd.o hns3pf/hclge_mdio.o hns3pf/hclge_tm.o \
+		hns3pf/hclge_mbx.o hns3pf/hclge_err.o  hns3pf/hclge_debugfs.o hns3pf/hclge_ptp.o hns3pf/hclge_devlink.o \
+		hns3_common/hclge_comm_cmd.o
+
+hclge-$(CONFIG_HNS3_DCB) += hns3pf/hclge_dcb.o
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h +15 -0
index 277d6d657c42..debbaa1822aa 100644
@@ -46,6 +46,7 @@ enum HCLGE_MBX_OPCODE {
 	HCLGE_MBX_PUSH_PROMISC_INFO,	/* (PF -> VF) push vf promisc info */
 	HCLGE_MBX_VF_UNINIT,            /* (VF -> PF) vf is unintializing */
 	HCLGE_MBX_HANDLE_VF_TBL,	/* (VF -> PF) store/clear hw table */
+	HCLGE_MBX_GET_RING_VECTOR_MAP,	/* (VF -> PF) get ring-to-vector map */
 
 	HCLGE_MBX_GET_VF_FLR_STATUS = 200, /* (M7 -> PF) get vf flr status */
 	HCLGE_MBX_PUSH_LINK_STATUS,	/* (M7 -> PF) get port link status */
@@ -80,6 +81,9 @@ enum hclge_mbx_tbl_cfg_subcode {
 #define HCLGE_MBX_MAX_RESP_DATA_SIZE	8U
 #define HCLGE_MBX_MAX_RING_CHAIN_PARAM_NUM	4
 
+#define HCLGE_RESET_SCHED_TIMEOUT	(3 * HZ)
+#define HCLGE_MBX_SCHED_TIMEOUT	(HZ / 2)
+
 struct hclge_ring_chain_param {
 	u8 ring_type;
 	u8 tqp_index;
@@ -208,6 +212,17 @@ struct hclgevf_mbx_arq_ring {
 	__le16 msg_q[HCLGE_MBX_MAX_ARQ_MSG_NUM][HCLGE_MBX_MAX_ARQ_MSG_SIZE];
 };
 
+struct hclge_dev;
+
+#define HCLGE_MBX_OPCODE_MAX 256
+struct hclge_mbx_ops_param {
+	struct hclge_vport *vport;
+	struct hclge_mbx_vf_to_pf_cmd *req;
+	struct hclge_respond_to_vf_msg *resp_msg;
+};
+
+typedef int (*hclge_mbx_ops_fn)(struct hclge_mbx_ops_param *param);
+
 #define hclge_mbx_ring_ptr_move_crq(crq) \
 	(crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
 #define hclge_mbx_tail_ptr_move_arq(arq) \
drivers/net/ethernet/hisilicon/hns3/hnae3.h +2 -1
index b51afb83d023..f362a2fac3c2 100644
@@ -341,6 +341,7 @@ struct hnae3_dev_specs {
 	u8 max_non_tso_bd_num; /* max BD number of one non-TSO packet */
 	u16 max_frm_size;
 	u16 max_qset_num;
+	u16 umv_size;
 };
 
 struct hnae3_client_ops {
@@ -828,7 +829,7 @@ struct hnae3_handle {
 		struct hnae3_roce_private_info rinfo;
 	};
 
-	u32 numa_node_mask;	/* for multi-chip support */
+	nodemask_t numa_node_mask; /* for multi-chip support */
 
 	enum hnae3_port_base_vlan_state port_base_vlan_state;
 
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c new file +259 -0

259 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h new file +121 -0

121 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +2 -0
index 45f245b1d331..bd801e35d51e 100644
@@ -924,6 +924,8 @@ hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos)
 			  dev_specs->max_tm_rate);
 	*pos += scnprintf(buf + *pos, len - *pos, "MAX QSET number: %u\n",
 			  dev_specs->max_qset_num);
+	*pos += scnprintf(buf + *pos, len - *pos, "umv size: %u\n",
+			  dev_specs->umv_size);
 }
 
 static int hns3_dbg_dev_info(struct hnae3_handle *h, char *buf, int len)
drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile deleted +0 -12
deleted file mode 100644
index d1bf5c4c0abb..000000000000
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Makefile for the HISILICON network device drivers.
-#
-
-ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3
-ccflags-y += -I $(srctree)/$(src)
-
-obj-$(CONFIG_HNS3_HCLGE) += hclge.o
-hclge-objs = hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o hclge_mbx.o hclge_err.o  hclge_debugfs.o hclge_ptp.o hclge_devlink.o
-
-hclge-$(CONFIG_HNS3_DCB) += hclge_dcb.o
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +47 -264

415 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +8 -77

124 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +131 -84

441 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +12 -5
index a716027df0ed..1ef5b4c8625a 100644
@@ -228,7 +228,6 @@ enum HCLGE_DEV_STATE {
 	HCLGE_STATE_MBX_HANDLING,
 	HCLGE_STATE_ERR_SERVICE_SCHED,
 	HCLGE_STATE_STATISTICS_UPDATING,
-	HCLGE_STATE_CMD_DISABLE,
 	HCLGE_STATE_LINK_UPDATING,
 	HCLGE_STATE_RST_FAIL,
 	HCLGE_STATE_FD_TBL_CHANGED,
@@ -275,10 +274,13 @@ struct hclge_mac {
 	u8 media_type;	/* port media type, e.g. fibre/copper/backplane */
 	u8 mac_addr[ETH_ALEN];
 	u8 autoneg;
+	u8 req_autoneg;
 	u8 duplex;
+	u8 req_duplex;
 	u8 support_autoneg;
 	u8 speed_type;	/* 0: sfp speed, 1: active speed */
 	u32 speed;
+	u32 req_speed;
 	u32 max_speed;
 	u32 speed_ability; /* speed ability supported by current media */
 	u32 module_type; /* sub media type, e.g. kr/cr/sr/lr */
@@ -294,11 +296,9 @@ struct hclge_mac {
 };
 
 struct hclge_hw {
-	void __iomem *io_base;
-	void __iomem *mem_base;
+	struct hclge_comm_hw hw;
 	struct hclge_mac mac;
 	int num_vec;
-	struct hclge_cmq cmq;
 };
 
 /* TQP stats */
@@ -613,6 +613,11 @@ struct key_info {
 #define MAX_FD_FILTER_NUM	4096
 #define HCLGE_ARFS_EXPIRE_INTERVAL	5UL
 
+#define hclge_read_dev(a, reg) \
+	hclge_comm_read_reg((a)->hw.io_base, reg)
+#define hclge_write_dev(a, reg, value) \
+	hclge_comm_write_reg((a)->hw.io_base, reg, value)
+
 enum HCLGE_FD_ACTIVE_RULE_TYPE {
 	HCLGE_FD_RULE_NONE,
 	HCLGE_FD_ARFS_ACTIVE,
@@ -858,7 +863,7 @@ struct hclge_dev {
 
 	u16 fdir_pf_filter_count; /* Num of guaranteed filters for this PF */
 	u16 num_alloc_vport;		/* Num vports this driver supports */
-	u32 numa_node_mask;
+	nodemask_t numa_node_mask;
 	u16 rx_buf_len;
 	u16 num_tx_desc;		/* desc num of per tx queue */
 	u16 num_rx_desc;		/* desc num of per rx queue */
@@ -925,6 +930,8 @@ struct hclge_dev {
 	u16 hclge_fd_rule_num;
 	unsigned long serv_processed_cnt;
 	unsigned long last_serv_processed;
+	unsigned long last_rst_scheduled;
+	unsigned long last_mbx_scheduled;
 	unsigned long fd_bmap[BITS_TO_LONGS(MAX_FD_FILTER_NUM)];
 	enum HCLGE_FD_ACTIVE_RULE_TYPE fd_active_type;
 	u8 fd_en;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +355 -131

86 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c +2 -2
index 1231c34f0949..63d2be4349e3 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c +1 -1
index dd0750f6daa6..0f06f95b09bc 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile deleted +0 -10
deleted file mode 100644
index 51ff7d86ee90..000000000000

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

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +5 -5
index bd8468c2d9a6..a41e04796b0b 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h +1 -1
index 5c7538ca36a7..2b216ac96914 100644

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

drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c +1 -3
index 4dddf6ec3be8..e20182752951 100644

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

drivers/net/ethernet/qlogic/qede/qede_filter.c +8 -6
index 3010833ddde3..8871099b99d8 100644

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

drivers/net/usb/qmi_wwan.c +1 -0
index 846ace9830d3..89e1fac07a25 100644

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

drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +17 -17
index 54064714d73f..b223583dfb73 100644

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

drivers/pinctrl/core.c +1 -7
index 456b72041c34..1c906fc68c1d 100644

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

drivers/pinctrl/devicetree.c +6 -4
index eac55fee5281..0220228c5040 100644

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

drivers/pinctrl/mediatek/pinctrl-paris.c +72 -108

180 lines not on this page · raw message

drivers/pinctrl/meson/pinctrl-meson-a1.c +3 -3
index 79f5d753d7e1..50a87d9618a8 100644

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

drivers/power/supply/mt6360_charger.c +1 -1
index f1248faf5905..383bf19819df 100644

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

drivers/power/supply/rt9455_charger.c +2 -0
index 594bb3b8a4d1..a84afccd509f 100644

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

drivers/regulator/core.c +16 -11
index 9b1f27f87c95..d6febb9ec60d 100644

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

drivers/regulator/mt6360-regulator.c +20 -12
index 4d34be94d166..fc464a4450dc 100644

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

drivers/s390/cio/cio_inject.c +1 -1
index 8613fa937237..a2e771ebae8e 100644

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

drivers/s390/net/qeth_core.h +0 -1
index e8c360879883..71464e9ad4f8 100644

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

drivers/s390/net/qeth_core_main.c +34 -44

78 lines not on this page · raw message

drivers/scsi/bnx2fc/bnx2fc_tgt.c +0 -2
index 9200b718085c..5015d9b0817a 100644

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

drivers/scsi/lpfc/lpfc.h +0 -1
index 65ac952b767f..194825ff1ee8 100644

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

drivers/scsi/lpfc/lpfc_nvme.c +2 -2
index 4e0c0b273e5f..2ff8ace6f78f 100644

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

drivers/scsi/lpfc/lpfc_scsi.c +4 -9
index 6d1a3cbd6b3c..d9fb5e09fb53 100644

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

drivers/scsi/lpfc/lpfc_vport.c +4 -4
index da9a1f72d938..b1071226e27f 100644

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

drivers/slimbus/qcom-ngd-ctrl.c +5 -1
index 21519ce05bdb..286997adb6ea 100644

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

drivers/spi/spi-hisi-kunpeng.c +0 -2
index 525cc0143a30..54730e93fba4 100644

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

drivers/target/target_core_configfs.c +12 -0
index 023bd4516a68..30ce3451bc6b 100644

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

drivers/usb/core/hub.c +3 -2
index a603e8a54196..7bb3f81ac3b3 100644

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

drivers/usb/dwc3/core.c +38 -52

90 lines not on this page · raw message

drivers/usb/dwc3/core.h +1 -0
index d64f7edc70c1..8c8e17cc1344 100644

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

drivers/usb/dwc3/gadget.c +2 -0
index 86cf3b2b66e9..af35278a5e8f 100644

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

drivers/usb/dwc3/host.c +27 -0
index 012b54cb847f..9adcf3a7e978 100644

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

drivers/usb/gadget/composite.c +3 -3
index edce0a1bdddf..3f035e905b24 100644

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

drivers/usb/gadget/function/f_fs.c +1 -1
index 73ad9c3acc33..a4367a43cdd8 100644

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

drivers/usb/host/ohci-hcd.c +8 -0
index 1f5e69314a17..90185d1df20c 100644

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

drivers/usb/host/xhci-plat.h +3 -1
index 561d0b7bce09..29f15298e315 100644

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

drivers/usb/typec/ucsi/ucsi.c +11 -1
index 985e512c0e65..cb6458ec042c 100644

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

fs/9p/vfs_file.c +2 -0
index 7437b185fa8e..0c84d414660c 100644

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

fs/9p/vfs_inode.c +4 -1
index 0d9b7d453a87..ef103ef392ee 100644

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

fs/9p/vfs_super.c +1 -0
index 7449f7fd47d2..51ac2653984a 100644

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

fs/btrfs/inode.c +1 -1
index c7d8a18daaf5..07c6ab4ba0d4 100644

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

fs/btrfs/send.c +2 -2
index f1ef176a6424..c2842e892e4e 100644

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

fs/btrfs/transaction.c +1 -1
index 99cdd1d6a4bf..a9b794c47159 100644

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

fs/btrfs/volumes.c +13 -5
index 36e77956c63f..b5e2daf538d4 100644

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

fs/gfs2/bmap.c +3 -2
index 0ec1eaf33833..d2011c3c33fc 100644

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

fs/ksmbd/server.c +5 -8
index 11b201e6ee44..63b01f7d9703 100644

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

fs/ksmbd/smb2pdu.c +4 -0
index 86b1fb43104e..57f59172d821 100644

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

fs/ksmbd/vfs.c +5 -0
index 173a488bfeee..7afb2412c4d4 100644

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

fs/nfs/client.c +4 -1
index 090b16890e3d..9e3a3570efc0 100644

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

fs/nfs/inode.c +9 -4
index d8f01d222c49..48ade92d4ce8 100644

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

fs/nfs/internal.h +0 -2
index 2ceb4b98ec15..d0965b4676a5 100644

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

fs/nfs/netns.h +2 -0
index c8374f74dce1..a68b21603ea9 100644

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

include/linux/bpf.h +10 -10
index 74a26cabc084..4236de05a8e7 100644

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

include/linux/dma-fence.h +0 -7
index 6659d0369ec5..9d276655cc25 100644

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

include/linux/filter.h +4 -0
index ddaeb2afc022..af0103bebb7b 100644

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

include/linux/skbuff.h +15 -0
index 7ed1d4472c0c..15de91c65a09 100644

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

include/linux/skmsg.h +3 -2
index 4273505d309a..422b391d931f 100644

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

include/linux/sunrpc/clnt.h +1 -0
index 71ec22b1df86..9c5197c360b9 100644

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

include/net/xfrm.h +3 -0
index 6156ed2950f9..2e2e30d31a76 100644

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

kernel/bpf/cpumap.c +1 -7
index a8429cfb4ae8..0848d5691fd1 100644

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

kernel/bpf/devmap.c +11 -21
index b591073c5f83..bbf3ec03aa59 100644

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

kernel/bpf/verifier.c +1 -2
index 67b325427022..94d952967fbf 100644

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

lib/Kconfig.debug +3 -2
index 28faea9b5da6..2025b624fbb6 100644

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

lib/dynamic_debug.c +5 -1
index 2ca56c22a169..27a5a28c412d 100644

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

net/bluetooth/l2cap_core.c +3 -0
index 11bfc8737e6c..900b35297585 100644

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

net/bluetooth/sco.c +4 -0
index 57c6a4f845a3..431e09cac178 100644

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

net/bridge/br_forward.c +7 -2
index 011bd3c59da1..1b66c276118a 100644

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

net/core/filter.c +95 -20

115 lines not on this page · raw message

net/core/net_namespace.c +10 -3
index dcddc54d0840..a209db33fa5f 100644

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

net/core/rtnetlink.c +1 -1
index ef218e290dfb..d25632fbfa89 100644

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

net/core/skbuff.c +19 -8
index a42431860af9..4ec8cfd357eb 100644

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

net/core/skmsg.c +21 -32

53 lines not on this page · raw message

net/core/sock.c +2 -2
index 6f761f3c272a..62e376f09f95 100644

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

net/core/sock_map.c +2 -1
index 4e42bc679bac..2ded250ac0d2 100644

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

net/ipv4/tcp.c +2 -2
index 16fd3da68e9f..9c7998377d6b 100644

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

net/ipv4/tcp_bpf.c +51 -0

51 lines not on this page · raw message

net/ipv4/tcp_input.c +2 -0
index e51b5d887c24..52a9d7f96da4 100644

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

net/ipv4/tcp_ipv4.c +7 -1
index 0666be6b9ec9..e162bed1916a 100644

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

net/ipv4/tcp_output.c +3 -1
index d8817d6c7b96..0fb84e57a2d4 100644

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

net/ipv4/udp_offload.c +11 -1
index 7c6ac47b0bb1..c61268849948 100644

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

net/ipv4/xfrm4_input.c +5 -1
index eac206a290d0..1f50517289fd 100644

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

net/ipv6/fib6_rules.c +5 -1
index 8e9e80eb0f32..a4caaead74c1 100644

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

net/ipv6/xfrm6_input.c +5 -1
index 4907ab241d6b..7dbefbb338ca 100644

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

net/l2tp/l2tp_eth.c +3 -0
index 6cd97c75445c..9a36e174984c 100644

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

net/mac80211/ieee80211_i.h +2 -2
index 21549a440b38..03f8c8bdab76 100644

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

net/mptcp/protocol.c +3 -0
index cde62dafda49..3c3f630f4943 100644

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

net/nsh/nsh.c +8 -6
index 0f23e5e8e03e..3e0fc71d95a1 100644

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

net/phonet/pn_netlink.c +1 -1
index 59aebe296890..dd4c7e9a634f 100644

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

net/sunrpc/clnt.c +4 -1
index af1ca707c3d3..59fd6dedbbed 100644

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

net/tipc/msg.c +6 -2
index 5c9fd4791c4b..76284fc538eb 100644

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

net/wireless/nl80211.c +2 -0
index 99149b10f86f..d758ec565589 100644

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

net/wireless/trace.h +1 -1
index 19b78d472283..dafea8bfcf3c 100644

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

net/xfrm/xfrm_input.c +8 -0
index a6861832710d..7f326a01cbce 100644

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

scripts/Makefile.modfinal +1 -1
index 47f047458264..dce4cf55a4b6 100644

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

security/keys/key.c +2 -1
index e65240641ca5..f2a84d86eab4 100644

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

sound/hda/intel-sdw-acpi.c +2 -0
index b7758dbe2371..7c1e47aa4e7a 100644

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

sound/pci/hda/patch_realtek.c +1 -0
index 94859fdd1da0..c7529aa13f94 100644

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

sound/soc/meson/Kconfig +1 -0
index b93ea33739f2..6458d5dc4902 100644

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

sound/soc/meson/axg-card.c +1 -0
index 2b77010c2c5c..cbbaa55d92a6 100644

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

sound/soc/meson/axg-fifo.c +31 -21

52 lines not on this page · raw message

sound/soc/meson/axg-fifo.h +5 -7
index b63acd723c87..5b7d32c37991 100644

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

sound/soc/meson/axg-frddr.c +3 -2
index 37f4bb3469b5..38c731ad4070 100644

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

sound/soc/meson/axg-tdm-interface.c +21 -5
index 60d132ab1ab7..f5145902360d 100644

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

sound/soc/meson/axg-toddr.c +10 -12
index d6adf7edea41..85a17d8861f2 100644

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

sound/soc/tegra/tegra186_dspk.c +3 -4
index a74c980ee775..d5a74e25371d 100644

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

sound/soc/ti/davinci-mcasp.c +6 -6
index 56a19eeec5c7..5b82329f4440 100644

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

sound/usb/line6/driver.c +3 -3
index b67617b68e50..f4437015d43a 100644

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

tools/power/x86/turbostat/turbostat.8 +1 -1
index b3d4bf08e70b..f382cd53cb4e 100644

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

tools/power/x86/turbostat/turbostat.c +4 -3
index 65ada8065cfc..0822e7dc0fd8 100644

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

tools/testing/selftests/timers/valid-adjtimex.c +36 -37

73 lines not on this page · 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.