Skip to contentSkip to conversation

Linux 6.1.91

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 6.1.91 kernel.

All users of the 6.1 kernel series must upgrade.

The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.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 
 MAINTAINERS                                                      |    1 
 Makefile                                                         |    2 
 arch/arm/kernel/sleep.S                                          |    4 
 arch/arm64/kvm/vgic/vgic-kvm-device.c                            |   12 
 arch/arm64/net/bpf_jit_comp.c                                    |    6 
 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/powerpc/platforms/pseries/iommu.c                           |    8 
 arch/powerpc/platforms/pseries/plpks.c                           |   62 --
 arch/powerpc/platforms/pseries/plpks.h                           |   35 +
 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 
 block/ioctl.c                                                    |    5 
 drivers/ata/sata_gemini.c                                        |    5 
 drivers/bluetooth/btqca.c                                        |  160 +++++
 drivers/bluetooth/btqca.h                                        |    6 
 drivers/bluetooth/hci_qca.c                                      |   11 
 drivers/char/tpm/tpm-dev-common.c                                |    4 
 drivers/clk/clk.c                                                |   12 
 drivers/clk/sunxi-ng/ccu-sun50i-h6.c                             |   19 
 drivers/dma/idxd/cdev.c                                          |   77 ++
 drivers/dma/idxd/idxd.h                                          |    3 
 drivers/dma/idxd/init.c                                          |    4 
 drivers/dma/idxd/registers.h                                     |    3 
 drivers/dma/idxd/sysfs.c                                         |   27 
 drivers/firewire/nosy.c                                          |    6 
 drivers/firewire/ohci.c                                          |    6 
 drivers/gpio/gpio-crystalcove.c                                  |    2 
 drivers/gpio/gpio-wcove.c                                        |    2 
 drivers/gpio/gpiolib-cdev.c                                      |  183 +++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c                          |    7 
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c                       |   14 
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h                       |    4 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c                          |   48 -
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c                         |    7 
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c               |    1 
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c |    6 
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c             |    2 
 drivers/gpu/drm/drm_connector.c                                  |    2 
 drivers/gpu/drm/i915/display/intel_bios.c                        |   19 
 drivers/gpu/drm/i915/display/intel_vbt_defs.h                    |    5 
 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/hv/channel.c                                             |   29 -
 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                   |   32 -
 drivers/net/ethernet/broadcom/genet/bcmgenet.h                   |    4 
 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c               |    8 
 drivers/net/ethernet/broadcom/genet/bcmmii.c                     |   25 
 drivers/net/ethernet/brocade/bna/bnad_debugfs.c                  |    4 
 drivers/net/ethernet/chelsio/cxgb4/sge.c                         |    6 
 drivers/net/ethernet/hisilicon/hns3/hnae3.h                      |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c          |   52 +
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h          |    5 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c           |    7 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c        |   20 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h        |    2 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c          |    4 
 drivers/net/ethernet/micrel/ks8851_common.c                      |   16 
 drivers/net/ethernet/qlogic/qede/qede_filter.c                   |   14 
 drivers/net/usb/qmi_wwan.c                                       |    1 
 drivers/net/vxlan/vxlan_core.c                                   |   19 
 drivers/nvme/host/core.c                                         |    2 
 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c                       |   34 -
 drivers/pinctrl/core.c                                           |    8 
 drivers/pinctrl/devicetree.c                                     |   10 
 drivers/pinctrl/intel/pinctrl-baytrail.c                         |   74 +-
 drivers/pinctrl/intel/pinctrl-intel.c                            |    6 
 drivers/pinctrl/intel/pinctrl-intel.h                            |   17 
 drivers/pinctrl/mediatek/pinctrl-paris.c                         |   40 -
 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_main.c                                |   61 --
 drivers/scsi/bnx2fc/bnx2fc_tgt.c                                 |    2 
 drivers/scsi/lpfc/lpfc.h                                         |    1 
 drivers/scsi/lpfc/lpfc_els.c                                     |   20 
 drivers/scsi/lpfc/lpfc_hbadisc.c                                 |    5 
 drivers/scsi/lpfc/lpfc_nvme.c                                    |    4 
 drivers/scsi/lpfc/lpfc_scsi.c                                    |   13 
 drivers/scsi/lpfc/lpfc_sli.c                                     |   14 
 drivers/scsi/lpfc/lpfc_vport.c                                   |    8 
 drivers/scsi/mpi3mr/mpi3mr_app.c                                 |    2 
 drivers/slimbus/qcom-ngd-ctrl.c                                  |    6 
 drivers/spi/spi-axi-spi-engine.c                                 |  273 +++++-----
 drivers/spi/spi-hisi-kunpeng.c                                   |    2 
 drivers/spi/spi-microchip-core-qspi.c                            |    1 
 drivers/spi/spi.c                                                |   12 
 drivers/staging/wlan-ng/hfa384x_usb.c                            |    4 
 drivers/staging/wlan-ng/prism2usb.c                              |    6 
 drivers/target/target_core_configfs.c                            |   12 
 drivers/ufs/core/ufshcd.c                                        |    5 
 drivers/uio/uio_hv_generic.c                                     |   12 
 drivers/usb/core/hub.c                                           |    5 
 drivers/usb/core/port.c                                          |    8 
 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/tcpm/tcpm.c                                    |   35 -
 drivers/usb/typec/ucsi/ucsi.c                                    |   12 
 drivers/vfio/pci/vfio_pci.c                                      |    2 
 fs/9p/vfs_file.c                                                 |    2 
 fs/9p/vfs_inode.c                                                |    5 
 fs/9p/vfs_super.c                                                |    1 
 fs/btrfs/extent_io.c                                             |   19 
 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/hugetlbfs/inode.c                                             |    8 
 fs/nfs/client.c                                                  |    5 
 fs/nfs/inode.c                                                   |   13 
 fs/nfs/internal.h                                                |    2 
 fs/nfs/netns.h                                                   |    2 
 fs/smb/client/transport.c                                        |   37 +
 fs/smb/server/oplock.c                                           |   35 -
 fs/smb/server/transport_tcp.c                                    |    4 
 include/linux/compiler_types.h                                   |   11 
 include/linux/dma-fence.h                                        |    7 
 include/linux/gfp_types.h                                        |    2 
 include/linux/hugetlb.h                                          |   53 +
 include/linux/hugetlb_cgroup.h                                   |   69 +-
 include/linux/hyperv.h                                           |    1 
 include/linux/mm_types.h                                         |   14 
 include/linux/pci_ids.h                                          |    2 
 include/linux/pinctrl/pinctrl.h                                  |   20 
 include/linux/regulator/consumer.h                               |    4 
 include/linux/skbuff.h                                           |   15 
 include/linux/skmsg.h                                            |    2 
 include/linux/slab.h                                             |    2 
 include/linux/spi/spi.h                                          |   51 +
 include/linux/sunrpc/clnt.h                                      |    1 
 include/linux/swapops.h                                          |  105 +--
 include/linux/timer.h                                            |   15 
 include/net/xfrm.h                                               |    3 
 include/uapi/scsi/scsi_bsg_mpi3mr.h                              |    2 
 kernel/bpf/bloom_filter.c                                        |   13 
 kernel/bpf/verifier.c                                            |    3 
 kernel/time/timer.c                                              |    8 
 lib/Kconfig.debug                                                |    5 
 lib/dynamic_debug.c                                              |    6 
 mm/hugetlb.c                                                     |   55 +-
 mm/hugetlb_cgroup.c                                              |   34 -
 mm/migrate.c                                                     |    2 
 mm/readahead.c                                                   |    4 
 net/bluetooth/hci_core.c                                         |    3 
 net/bluetooth/l2cap_core.c                                       |    3 
 net/bluetooth/msft.c                                             |    2 
 net/bluetooth/msft.h                                             |    4 
 net/bluetooth/sco.c                                              |    4 
 net/bridge/br_forward.c                                          |    9 
 net/bridge/br_netlink.c                                          |    3 
 net/core/filter.c                                                |   42 +
 net/core/link_watch.c                                            |    4 
 net/core/net-sysfs.c                                             |    4 
 net/core/net_namespace.c                                         |   13 
 net/core/rtnetlink.c                                             |    6 
 net/core/skbuff.c                                                |   27 
 net/core/skmsg.c                                                 |    5 
 net/core/sock.c                                                  |    4 
 net/hsr/hsr_device.c                                             |   31 -
 net/ipv4/tcp.c                                                   |    4 
 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/addrconf.c                                              |   11 
 net/ipv6/fib6_rules.c                                            |    6 
 net/ipv6/ip6_input.c                                             |    4 
 net/ipv6/ip6_output.c                                            |    2 
 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/smc/smc_ib.c                                                 |   19 
 net/sunrpc/clnt.c                                                |    5 
 net/sunrpc/xprt.c                                                |    2 
 net/tipc/msg.c                                                   |    8 
 net/wireless/nl80211.c                                           |    2 
 net/wireless/trace.h                                             |    2 
 net/xfrm/xfrm_input.c                                            |    8 
 rust/Makefile                                                    |   11 
 rust/kernel/error.rs                                             |    2 
 rust/kernel/lib.rs                                               |    2 
 rust/macros/module.rs                                            |  185 ++++--
 scripts/Makefile.build                                           |   17 
 scripts/Makefile.host                                            |   27 
 scripts/Makefile.modfinal                                        |    4 
 scripts/is_rust_module.sh                                        |   16 
 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                              |   34 -
 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/include/linux/kernel.h                                     |    1 
 tools/include/linux/mm.h                                         |    5 
 tools/include/linux/panic.h                                      |   19 
 tools/perf/util/unwind-libdw.c                                   |   21 
 tools/perf/util/unwind-libunwind-local.c                         |    2 
 tools/power/x86/turbostat/turbostat.8                            |    2 
 tools/power/x86/turbostat/turbostat.c                            |   30 -
 tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c        |    6 
 tools/testing/selftests/timers/valid-adjtimex.c                  |   73 +-
 247 files changed, 2505 insertions(+), 1391 deletions(-)

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

Al Viro (1):
qibfs: fix dentry leak

Alan Stern (2):
usb: Fix regression caused by invalid ep0 maxpacket in virtual SuperSpeed device
USB: core: Fix access violation during port device removal

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

Alex Deucher (1):
drm/amdkfd: don't allow mapping the MMIO HDP page with large pages

Alexander Potapenko (1):
kmsan: compiler_types: declare __no_sanitize_or_inline

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

Amit Sunil Dhamne (1):
usb: typec: tcpm: unregister existing source caps before re-registration

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

Andrea Righi (2):
rust: fix regexp in scripts/is_rust_module.sh btf, scripts: rust: drop is_rust_module.sh

Andrei Matei (1):
bpf: Check bloom filter map value size

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 (7):
pinctrl: Introduce struct pinfunction and PINCTRL_PINFUNCTION() macro
pinctrl: intel: Make use of struct pinfunction and PINCTRL_PINFUNCTION() drm/panel: ili9341: Respect deferred probe
drm/panel: ili9341: Use predefined error codes
gpio: wcove: Use -ENOTSUPP consistently
gpio: crystalcove: Use -ENOTSUPP consistently
gpiolib: cdev: Add missing header(s)

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

Arjan van de Ven (2):
VFIO: Add the SPR_DSA and SPR_IAX devices to the denylist
dmaengine: idxd: add a new security check to deal with a hardware erratum

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

Asahi Lina (1):

      rust: error: Rename to_kernel_errno() -> to_errno()

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()

Badhri Jagan Sridharan (1):
usb: typec: tcpm: Check for port partner validity before consuming it

Benno Lossin (1):
rust: macros: fix soundness issue in module! macro

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 (2):
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

Christian König (1):
drm/amdgpu: once more fix the call oder in amdgpu_ttm_move() v2

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

Conor Dooley (1):
spi: microchip-core-qspi: fix setting spi bus clock rate

Dan Carpenter (2):
pinctrl: core: delete incorrect free in pinctrl_enable() mm/slab: make __free(kfree) accept error pointers

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

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

David Lechner (5):
spi: axi-spi-engine: simplify driver data allocation
spi: axi-spi-engine: use devm_spi_alloc_host()
spi: axi-spi-engine: move msg state to new struct
spi: axi-spi-engine: use common AXI macros
spi: axi-spi-engine: fix version format string

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 (3):
net: bcmgenet: synchronize EXT_RGMII_OOB_CTRL access
net: bcmgenet: synchronize use of bcmgenet_set_rx_mode()
net: bcmgenet: synchronize UMAC_CMD access

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

Eric Dumazet (6):
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()
net-sysfs: convert dev->operstate reads to lockless ones
ipv6: annotate data-races around cnf.disable_ipv6
ipv6: prevent NULL dereference in ip6_output()

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

Florian Fainelli (1):
net: bcmgenet: Clear RGMII_LINK upon link down

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

Gaurav Batra (1):
powerpc/pseries/iommu: LPAR panics during boot up with a frozen PE

Geert Uytterhoeven (1):
spi: Merge spi_controller.{slave,target}_abort()

George Shen (1):
drm/amd/display: Handle Y carry-over in VCP X.Y calculation

Greg Kroah-Hartman (1):

      Linux 6.1.91

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

Guillaume Nault (1):
vxlan: Pull inner IP header in vxlan_rcv().

Hans de Goede (2):
pinctrl: baytrail: Fix selecting gpio pinctrl state
iio: accel: mxc4005: Interrupt handling fixes

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

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 (1):
net: hns3: direct return when receive a unknown mailbox message

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

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 (6):
regulator: core: fix debugfs creation regression
Bluetooth: qca: add missing firmware sanity checks
Bluetooth: qca: fix NVM configuration parsing
Bluetooth: qca: fix info leak when fetching board id
Bluetooth: qca: fix info leak when fetching fw build id
Bluetooth: qca: fix firmware check error path

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

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

Justin Ernst (1):
tools/power/turbostat: Fix uncore frequency file string

Justin Tee (4):
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()
scsi: lpfc: Release hbalock before calling lpfc_worker_wake_up()

Karthikeyan Ramasubramanian (1):
drm/i915/bios: Fix parsing backlight BDB data

Kefeng Wang (1):
mm: use memalloc_nofs_save() in page_cache_ra_order()

Kent Gibson (2):
gpiolib: cdev: relocate debounce_period_us from struct gpio_desc
gpiolib: cdev: fix uninitialised kfifo

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

Leah Rumancik (1):
MAINTAINERS: add leah to 6.1 MAINTAINERS file

Li Nan (2):
block: fix overflow in blk_ioctl_discard()
md: fix kmemleak of rdev->serial

Li Zetao (1):
spi: spi-axi-spi-engine: Use helper function devm_clk_get_enabled()

Lijo Lazar (1):
drm/amdgpu: Refine IB schedule error logging

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

Lukasz Majewski (1):
hsr: Simplify code for announcing HSR nodes timer setup

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

Mans Rullgard (1):
spi: fix null pointer dereference within spi_sync

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

Marek Vasut (1):
net: ks8851: Queue RX packets in IRQ handler instead of disabling BHs

Mario Limonciello (1):
dm/amd/pm: Fix problems with reboot/shutdown for some SMU 13.0.4/13.0.11 users

Masahiro Yamada (2):
kbuild: refactor host*_flags
kbuild: specify output names separately for each emission type from rustc

Matti Vaittinen (2):
regulator: change stubbed devm_regulator_get_enable to return Ok
regulator: change devm_regulator_get_enable_optional() stub to return Ok

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

Miaohe Lin (1):
mm/hugetlb: fix DEBUG_LOCKS_WARN_ON(1) when dissolve_free_hugetlb_folio()

Michael Kelley (1):
Drivers: hv: vmbus: Don't free ring buffers that couldn't be re-encrypted

Miguel Ojeda (1):
kbuild: rust: avoid creating temporary files

Namhyung Kim (2):
perf unwind-libunwind: Fix base address for .eh_frame perf unwind-libdw: Handle JIT-generated DSOs properly

Namjae Jeon (3):
ksmbd: off ipv6only for both ipv4/ipv6 binding
ksmbd: avoid to send duplicate lease break notifications
ksmbd: do not grant v2 lease if parent lease key and epoch are not set

Nayna Jain (2):
powerpc/pseries: replace kmalloc with kzalloc in PLPKS driver powerpc/pseries: make max polling consistent for longer H_CALLs

Nikhil Rao (1):
dmaengine: idxd: add a write() method for applications to submit work

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

Oscar Salvador (1):
mm,swapops: update check in is_pfn_swap_entry for hwpoison entries

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 (4):
net: hns3: using user configure after hardware reset
net: hns3: change type of numa_node_mask as nodemask_t
net: hns3: release PTP resources if pf initialization failed
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

Peter Wang (1):
scsi: ufs: core: WLUN suspend dev/link state error recovery

Peter Xu (1):
mm/hugetlb: fix missing hugetlb_lock for resv uncharge

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()

Qu Wenruo (1):
btrfs: do not wait for short bulk allocation

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

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

Rick Edgecombe (2):
Drivers: hv: vmbus: Track decrypted status in vmbus_gpadl
uio_hv_generic: Don't free decrypted memory

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

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

Russell Currey (1):
powerpc/pseries: Move PLPKS constants to header file

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.

Shin'ichiro Kawasaki (1):
scsi: mpi3mr: Avoid memcpy field-spanning write WARNING

Shyam Prasad N (1):
cifs: use the least loaded channel for sending requests

Sidhartha Kumar (8):
mm/hugetlb: add folio support to hugetlb specific flag macros
mm: add private field of first tail to struct page and struct folio mm/hugetlb: add hugetlb_folio_subpool() helpers mm/hugetlb: add folio_hstate()
mm/hugetlb_cgroup: convert __set_hugetlb_cgroup() to folios mm/hugetlb_cgroup: convert hugetlb_cgroup_from_page() to folios mm/hugetlb: convert free_huge_page to folios mm/hugetlb_cgroup: convert hugetlb_cgroup_uncharge_page() to folios

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

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

Steve French (1):
smb3: missing lock when picking channel

Sungwoo Kim (1):
Bluetooth: msft: fix slab-use-after-free in msft_do_close()

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

Thomas Bertschinger (1):
rust: module: place generated init_module() function in .init.text

Thomas Gleixner (2):
timers: Get rid of del_singleshot_timer_sync()
timers: Rename del_timer() to timer_delete()

Tim Jiang (1):
Bluetooth: qca: add support for QCA2066

Toke Høiland-Jørgensen (1):
xdp: use flags field to disambiguate broadcast redirect

Uwe Kleine-König (1):
spi: axi-spi-engine: Convert to platform remove callback returning void

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

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"

Wedson Almeida Filho (1):
rust: kernel: require Send for Module implementations

Wei Yang (3):
memblock tests: fix undefined reference to early_pfn_to_nid' memblock tests: fix undefined reference to panic' memblock tests: fix undefined reference to `BIT'

Wen Gu (1):
net/smc: fix neighbour and rtable leak in smc_ib_find_route()

Wyes Karny (1):
tools/power turbostat: Increase the limit for fd opened

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

Xu Kuohai (1):
bpf, arm64: Fix incorrect runtime stats

Yang Yingliang (2):
spi: introduce new helpers with using modern naming
spi: spi-axi-spi-engine: switch to use modern name

Yi Zhang (1):
nvme: fix warn output about shared namespaces without CONFIG_NVME_MULTIPATH

Yonglong Liu (2):
net: hns3: fix port vlan filter not disabled issue
net: hns3: fix kernel crash when devlink reload during initialization

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
MAINTAINERS +1 -0
index ecf4d0c8f446..4b19dfb5d2fd 100644
@@ -22557,6 +22557,7 @@ F:	include/xen/swiotlb-xen.h
 
 XFS FILESYSTEM
 C:	irc://irc.oftc.net/xfs
+M:	Leah Rumancik <[email protected]>
 M:	Darrick J. Wong <[email protected]>
 L:	[email protected]
 S:	Supported
Makefile +1 -1
index 7ae5cf9ec9e5..a7d90996e412 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 1
-SUBLEVEL = 90
+SUBLEVEL = 91
 EXTRAVERSION =
 NAME = Curry Ramen
 
arch/arm/kernel/sleep.S +4 -0
index a86a1d4f3461..93afd1005b43 100644
@@ -127,6 +127,10 @@ cpu_resume_after_mmu:
 	instr_sync
 #endif
 	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/kvm/vgic/vgic-kvm-device.c +4 -8
index bf4b3d9631ce..63731fb3d8f6 100644
@@ -337,16 +337,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/arm64/net/bpf_jit_comp.c +3 -3
index 0ce5f13eabb1..afb79209d413 100644
@@ -1679,15 +1679,15 @@ static void invoke_bpf_prog(struct jit_ctx *ctx, struct bpf_tramp_link *l,
 
 	emit_call(enter_prog, ctx);
 
+	/* save return value to callee saved register x20 */
+	emit(A64_MOV(1, A64_R(20), A64_R(0)), ctx);
+
 	/* if (__bpf_prog_enter(prog) == 0)
 	 *         goto skip_exec_of_prog;
 	 */
 	branch = ctx->image + ctx->idx;
 	emit(A64_NOP, ctx);
 
-	/* save return value to callee saved register x20 */
-	emit(A64_MOV(1, A64_R(20), A64_R(0)), ctx);
-
 	emit(A64_ADD_I(1, A64_R(0), A64_SP, args_off), ctx);
 	if (!p->jited)
 		emit_addr_mov_i64(A64_R(1), (const u64)p->insnsi, ctx);
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 c4501897b870..08342b9eccdb 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 567aec4abac0..a8e569830ec8 100644
@@ -1309,16 +1309,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 (ptrace_report_syscall_entry(regs))
 			return -1;
-		syscall = current_thread_info()->syscall;
 	}
 
 #ifdef CONFIG_SECCOMP
@@ -1327,7 +1324,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++)
@@ -1337,23 +1334,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 18dc9b345056..2c604717e630 100644
@@ -77,6 +77,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
@@ -114,16 +126,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 e6264aa62e45..be11ea5cc67e 100644
@@ -46,6 +46,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
@@ -82,7 +84,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/powerpc/platforms/pseries/iommu.c +8 -0
index 1e5f083cdb72..5e00a3cde93b 100644
@@ -781,8 +781,16 @@ static void pci_dma_bus_setup_pSeriesLP(struct pci_bus *bus)
 	 * parent bus. During reboot, there will be ibm,dma-window property to
 	 * define DMA window. For kdump, there will at least be default window or DDW
 	 * or both.
+	 * There is an exception to the above. In case the PE goes into frozen
+	 * state, firmware may not provide ibm,dma-window property at the time
+	 * of LPAR boot up.
 	 */
 
+	if (!pdn) {
+		pr_debug("  no ibm,dma-window property !\n");
+		return;
+	}
+
 	ppci = PCI_DN(pdn);
 
 	pr_debug("  parent is %pOF, iommu_table: 0x%p\n",
arch/powerpc/platforms/pseries/plpks.c +22 -40

164 lines not on this page · raw message

arch/powerpc/platforms/pseries/plpks.h +30 -5
index 275ccd86bfb5..07278a990c2d 100644
@@ -12,14 +12,39 @@
 #include <linux/types.h>
 #include <linux/list.h>
 
-#define OSSECBOOTAUDIT 0x40000000
-#define OSSECBOOTENFORCE 0x20000000
-#define WORLDREADABLE 0x08000000
-#define SIGNEDUPDATE 0x01000000
+// Object policy flags from supported_policies
+#define PLPKS_OSSECBOOTAUDIT	PPC_BIT32(1) // OS secure boot must be audit/enforce
+#define PLPKS_OSSECBOOTENFORCE	PPC_BIT32(2) // OS secure boot must be enforce
+#define PLPKS_PWSET		PPC_BIT32(3) // No access without password set
+#define PLPKS_WORLDREADABLE	PPC_BIT32(4) // Readable without authentication
+#define PLPKS_IMMUTABLE		PPC_BIT32(5) // Once written, object cannot be removed
+#define PLPKS_TRANSIENT		PPC_BIT32(6) // Object does not persist through reboot
+#define PLPKS_SIGNEDUPDATE	PPC_BIT32(7) // Object can only be modified by signed updates
+#define PLPKS_HVPROVISIONED	PPC_BIT32(28) // Hypervisor has provisioned this object
 
-#define PLPKS_VAR_LINUX	0x02
+// Signature algorithm flags from signed_update_algorithms
+#define PLPKS_ALG_RSA2048	PPC_BIT(0)
+#define PLPKS_ALG_RSA4096	PPC_BIT(1)
+
+// Object label OS metadata flags
+#define PLPKS_VAR_LINUX		0x02
 #define PLPKS_VAR_COMMON	0x04
 
+// Flags for which consumer owns an object is owned by
+#define PLPKS_FW_OWNER			0x1
+#define PLPKS_BOOTLOADER_OWNER		0x2
+#define PLPKS_OS_OWNER			0x3
+
+// Flags for label metadata fields
+#define PLPKS_LABEL_VERSION		0
+#define PLPKS_MAX_LABEL_ATTR_SIZE	16
+#define PLPKS_MAX_NAME_SIZE		239
+#define PLPKS_MAX_DATA_SIZE		4000
+
+// Timeouts for PLPKS operations
+#define PLPKS_MAX_TIMEOUT		(5 * USEC_PER_SEC)
+#define PLPKS_FLUSH_SLEEP		10000 // usec
+
 struct plpks_var {
 	char *component;
 	u8 *name;
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 662cf23a1b44..59657e0363e7 100644
@@ -2642,7 +2642,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 c299a18273ff..33ef6790114a 100644
@@ -139,7 +139,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 e6557024e3da..64b594d660b7 100644
@@ -1331,7 +1331,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;
 
@@ -1346,8 +1346,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;
 
block/ioctl.c +3 -2
index 47567ba1185a..99b8e2e44872 100644
@@ -89,7 +89,7 @@ static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode,
 		unsigned long arg)
 {
 	uint64_t range[2];
-	uint64_t start, len;
+	uint64_t start, len, end;
 	struct inode *inode = bdev->bd_inode;
 	int err;
 
@@ -110,7 +110,8 @@ static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode,
 	if (len & 511)
 		return -EINVAL;
 
-	if (start + len > bdev_nr_bytes(bdev))
+	if (check_add_overflow(start, len, &end) ||
+	    end > bdev_nr_bytes(bdev))
 		return -EINVAL;
 
 	filemap_invalidate_lock(inode->i_mapping);
drivers/ata/sata_gemini.c +4 -1
index c96fcf9ee3c0..01f050b1bc93 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 +148 -12

296 lines not on this page · raw message

drivers/bluetooth/btqca.h +4 -2
index 03bff5c0059d..38e2fbc95024 100644
@@ -12,6 +12,7 @@
 #define EDL_PATCH_VER_REQ_CMD		(0x19)
 #define EDL_PATCH_TLV_REQ_CMD		(0x1E)
 #define EDL_GET_BUILD_INFO_CMD		(0x20)
+#define EDL_GET_BID_REQ_CMD			(0x23)
 #define EDL_NVM_ACCESS_SET_REQ_CMD	(0x01)
 #define EDL_PATCH_CONFIG_CMD		(0x28)
 #define MAX_SIZE_PER_TLV_SEGMENT	(243)
@@ -46,8 +47,8 @@
 #define get_soc_ver(soc_id, rom_ver)	\
 	((le32_to_cpu(soc_id) << 16) | (le16_to_cpu(rom_ver)))
 
-#define QCA_FW_BUILD_VER_LEN		255
-
+#define QCA_HSP_GF_SOC_ID			0x1200
+#define QCA_HSP_GF_SOC_MASK			0x0000ff00
 
 enum qca_baudrate {
 	QCA_BAUDRATE_115200 	= 0,
@@ -146,6 +147,7 @@ enum qca_btsoc_type {
 	QCA_WCN3990,
 	QCA_WCN3998,
 	QCA_WCN3991,
+	QCA_QCA2066,
 	QCA_QCA6390,
 	QCA_WCN6750,
 	QCA_WCN6855,
drivers/bluetooth/hci_qca.c +11 -0
index 179278b801eb..a0e2b5d99269 100644
@@ -1808,6 +1808,10 @@ static int qca_setup(struct hci_uart *hu)
 	set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
 
 	switch (soc_type) {
+	case QCA_QCA2066:
+		soc_name = "qca2066";
+		break;
+
 	case QCA_WCN3988:
 	case QCA_WCN3990:
 	case QCA_WCN3991:
@@ -2000,6 +2004,11 @@ static const struct qca_device_data qca_soc_data_wcn3998 __maybe_unused = {
 	.num_vregs = 4,
 };
 
+static const struct qca_device_data qca_soc_data_qca2066 __maybe_unused = {
+	.soc_type = QCA_QCA2066,
+	.num_vregs = 0,
+};
+
 static const struct qca_device_data qca_soc_data_qca6390 __maybe_unused = {
 	.soc_type = QCA_QCA6390,
 	.num_vregs = 0,
@@ -2539,6 +2548,7 @@ static SIMPLE_DEV_PM_OPS(qca_pm_ops, qca_suspend, qca_resume);
 
 #ifdef CONFIG_OF
 static const struct of_device_id qca_bluetooth_of_match[] = {
+	{ .compatible = "qcom,qca2066-bt", .data = &qca_soc_data_qca2066},
 	{ .compatible = "qcom,qca6174-bt" },
 	{ .compatible = "qcom,qca6390-bt", .data = &qca_soc_data_qca6390},
 	{ .compatible = "qcom,qca9377-bt" },
@@ -2556,6 +2566,7 @@ MODULE_DEVICE_TABLE(of, qca_bluetooth_of_match);
 
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id qca_bluetooth_acpi_match[] = {
+	{ "QCOM2066", (kernel_ulong_t)&qca_soc_data_qca2066 },
 	{ "QCOM6390", (kernel_ulong_t)&qca_soc_data_qca6390 },
 	{ "DLA16390", (kernel_ulong_t)&qca_soc_data_qca6390 },
 	{ "DLB16390", (kernel_ulong_t)&qca_soc_data_qca6390 },
drivers/char/tpm/tpm-dev-common.c +2 -2
index dc4c0a0a5129..30b4c288c1bb 100644
@@ -155,7 +155,7 @@ ssize_t tpm_common_read(struct file *file, char __user *buf,
 out:
 	if (!priv->response_length) {
 		*off = 0;
-		del_singleshot_timer_sync(&priv->user_read_timer);
+		del_timer_sync(&priv->user_read_timer);
 		flush_work(&priv->timeout_work);
 	}
 	mutex_unlock(&priv->buffer_mutex);
@@ -262,7 +262,7 @@ __poll_t tpm_common_poll(struct file *file, poll_table *wait)
 void tpm_common_release(struct file *file, struct file_priv *priv)
 {
 	flush_work(&priv->async_work);
-	del_singleshot_timer_sync(&priv->user_read_timer);
+	del_timer_sync(&priv->user_read_timer);
 	flush_work(&priv->timeout_work);
 	file->private_data = NULL;
 	priv->response_length = 0;
drivers/clk/clk.c +5 -7
index fe1d45eac837..8ecbb8f49465 100644
@@ -4435,7 +4435,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
@@ -4469,11 +4470,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);
 
@@ -4632,13 +4632,11 @@ void __clk_put(struct clk *clk)
 	if (clk->min_rate > 0 || clk->max_rate < ULONG_MAX)
 		clk_set_rate_range_nolock(clk, 0, ULONG_MAX);
 
-	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 42568c616181..892df807275c 100644
@@ -1181,11 +1181,18 @@ 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)
 {
 	void __iomem *reg;
+	int i, ret;
 	u32 val;
-	int i;
 
 	reg = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(reg))
@@ -1252,7 +1259,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/dma/idxd/cdev.c +77 -0

95 lines not on this page · raw message

drivers/dma/idxd/idxd.h +3 -0
index 7ced8d283d98..14c6ef987fed 100644
@@ -258,6 +258,7 @@ struct idxd_driver_data {
 	struct device_type *dev_type;
 	int compl_size;
 	int align;
+	bool user_submission_safe;
 };
 
 struct idxd_device {
@@ -316,6 +317,8 @@ struct idxd_device {
 	struct idxd_pmu *idxd_pmu;
 
 	unsigned long *opcap_bmap;
+
+	bool user_submission_safe;
 };
 
 /* IDXD software descriptor */
drivers/dma/idxd/init.c +4 -0
index e0f49545d89f..30193195c813 100644
@@ -48,6 +48,7 @@ static struct idxd_driver_data idxd_driver_data[] = {
 		.compl_size = sizeof(struct dsa_completion_record),
 		.align = 32,
 		.dev_type = &dsa_device_type,
+		.user_submission_safe = false, /* See INTEL-SA-01084 security advisory */
 	},
 	[IDXD_TYPE_IAX] = {
 		.name_prefix = "iax",
@@ -55,6 +56,7 @@ static struct idxd_driver_data idxd_driver_data[] = {
 		.compl_size = sizeof(struct iax_completion_record),
 		.align = 64,
 		.dev_type = &iax_device_type,
+		.user_submission_safe = false, /* See INTEL-SA-01084 security advisory */
 	},
 };
 
@@ -663,6 +665,8 @@ static int idxd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	dev_info(&pdev->dev, "Intel(R) Accelerator Device (v%x)\n",
 		 idxd->hw.version);
 
+	idxd->user_submission_safe = data->user_submission_safe;
+
 	return 0;
 
  err_dev_register:
drivers/dma/idxd/registers.h +0 -3
index fe3b8d04f9db..fdfe7930f183 100644
@@ -4,9 +4,6 @@
 #define _IDXD_REGISTERS_H_
 
 /* PCI Config */
-#define PCI_DEVICE_ID_INTEL_DSA_SPR0	0x0b25
-#define PCI_DEVICE_ID_INTEL_IAX_SPR0	0x0cfe
-
 #define DEVICE_VERSION_1		0x100
 #define DEVICE_VERSION_2		0x200
 
drivers/dma/idxd/sysfs.c +25 -2
index 6e1e14b376e6..c811757d0f97 100644
@@ -1162,12 +1162,35 @@ static ssize_t wq_enqcmds_retries_store(struct device *dev, struct device_attrib
 static struct device_attribute dev_attr_wq_enqcmds_retries =
 		__ATTR(enqcmds_retries, 0644, wq_enqcmds_retries_show, wq_enqcmds_retries_store);
 
+static ssize_t op_cap_show_common(struct device *dev, char *buf, unsigned long *opcap_bmap)
+{
+	ssize_t pos;
+	int i;
+
+	pos = 0;
+	for (i = IDXD_MAX_OPCAP_BITS/64 - 1; i >= 0; i--) {
+		unsigned long val = opcap_bmap[i];
+
+		/* On systems where direct user submissions are not safe, we need to clear out
+		 * the BATCH capability from the capability mask in sysfs since we cannot support
+		 * that command on such systems.
+		 */
+		if (i == DSA_OPCODE_BATCH/64 && !confdev_to_idxd(dev)->user_submission_safe)
+			clear_bit(DSA_OPCODE_BATCH % 64, &val);
+
+		pos += sysfs_emit_at(buf, pos, "%*pb", 64, &val);
+		pos += sysfs_emit_at(buf, pos, "%c", i == 0 ? '\n' : ',');
+	}
+
+	return pos;
+}
+
 static ssize_t wq_op_config_show(struct device *dev,
 				 struct device_attribute *attr, char *buf)
 {
 	struct idxd_wq *wq = confdev_to_wq(dev);
 
-	return sysfs_emit(buf, "%*pb\n", IDXD_MAX_OPCAP_BITS, wq->opcap_bmap);
+	return op_cap_show_common(dev, buf, wq->opcap_bmap);
 }
 
 static int idxd_verify_supported_opcap(struct idxd_device *idxd, unsigned long *opmask)
@@ -1381,7 +1404,7 @@ static ssize_t op_cap_show(struct device *dev,
 {
 	struct idxd_device *idxd = confdev_to_idxd(dev);
 
-	return sysfs_emit(buf, "%*pb\n", IDXD_MAX_OPCAP_BITS, idxd->opcap_bmap);
+	return op_cap_show_common(dev, buf, idxd->opcap_bmap);
 }
 static DEVICE_ATTR_RO(op_cap);
 
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 1ee62cd58582..25db014494a4 100644
@@ -92,7 +92,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 c18b6b47384f..94ca9d03c094 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/gpio/gpiolib-cdev.c +159 -24

325 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +5 -2
index 3bf0e893c07d..f34bc9bb7045 100644
@@ -301,12 +301,15 @@ static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job)
 		dma_fence_set_error(finished, -ECANCELED);
 
 	if (finished->error < 0) {
-		DRM_INFO("Skip scheduling IBs!\n");
+		dev_dbg(adev->dev, "Skip scheduling IBs in ring(%s)",
+			ring->name);
 	} else {
 		r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, job,
 				       &fence);
 		if (r)
-			DRM_ERROR("Error scheduling IBs (%d)\n", r);
+			dev_err(adev->dev,
+				"Error scheduling IBs (%d) in ring(%s)", r,
+				ring->name);
 	}
 
 	job->job_run_counter++;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +9 -5
index cde2fd2f7117..9a111988b7f1 100644
@@ -1222,14 +1222,18 @@ int amdgpu_bo_get_metadata(struct amdgpu_bo *bo, void *buffer,
  * amdgpu_bo_move_notify - notification about a memory move
  * @bo: pointer to a buffer object
  * @evict: if this move is evicting the buffer from the graphics address space
+ * @new_mem: new resource for backing the BO
  *
  * Marks the corresponding &amdgpu_bo buffer object as invalid, also performs
  * bookkeeping.
  * TTM driver callback which is called when ttm moves a buffer.
  */
-void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict)
+void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,
+			   bool evict,
+			   struct ttm_resource *new_mem)
 {
 	struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev);
+	struct ttm_resource *old_mem = bo->resource;
 	struct amdgpu_bo *abo;
 
 	if (!amdgpu_bo_is_amdgpu_bo(bo))
@@ -1241,12 +1245,12 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict)
 	amdgpu_bo_kunmap(abo);
 
 	if (abo->tbo.base.dma_buf && !abo->tbo.base.import_attach &&
-	    bo->resource->mem_type != TTM_PL_SYSTEM)
+	    old_mem && old_mem->mem_type != TTM_PL_SYSTEM)
 		dma_buf_move_notify(abo->tbo.base.dma_buf);
 
-	/* remember the eviction */
-	if (evict)
-		atomic64_inc(&adev->num_evictions);
+	/* move_notify is called before move happens */
+	trace_amdgpu_bo_move(abo, new_mem ? new_mem->mem_type : -1,
+			     old_mem ? old_mem->mem_type : -1);
 }
 
 void amdgpu_bo_get_memory(struct amdgpu_bo *bo, uint64_t *vram_mem,
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +3 -1
index 2ada421e79e4..6dcd7bab42fb 100644
@@ -312,7 +312,9 @@ int amdgpu_bo_set_metadata (struct amdgpu_bo *bo, void *metadata,
 int amdgpu_bo_get_metadata(struct amdgpu_bo *bo, void *buffer,
 			   size_t buffer_size, uint32_t *metadata_size,
 			   uint64_t *flags);
-void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict);
+void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,
+			   bool evict,
+			   struct ttm_resource *new_mem);
 void amdgpu_bo_release_notify(struct ttm_buffer_object *bo);
 vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
 void amdgpu_bo_fence(struct amdgpu_bo *bo, struct dma_fence *fence,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +26 -22

97 lines not on this page · raw message

drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +5 -2
index 3f403afd6de8..b0f475d51ae7 100644
@@ -1106,7 +1106,7 @@ static int kfd_ioctl_alloc_memory_of_gpu(struct file *filep,
 			goto err_unlock;
 		}
 		offset = dev->adev->rmmio_remap.bus_addr;
-		if (!offset) {
+		if (!offset || (PAGE_SIZE > 4096)) {
 			err = -ENOMEM;
 			goto err_unlock;
 		}
@@ -2215,7 +2215,7 @@ static int criu_restore_memory_of_gpu(struct kfd_process_device *pdd,
 			return -EINVAL;
 		}
 		offset = pdd->dev->adev->rmmio_remap.bus_addr;
-		if (!offset) {
+		if (!offset || (PAGE_SIZE > 4096)) {
 			pr_err("amdgpu_amdkfd_get_mmio_remap_phys_addr failed\n");
 			return -ENOMEM;
 		}
@@ -2886,6 +2886,9 @@ static int kfd_mmio_mmap(struct kfd_dev *dev, struct kfd_process *process,
 	if (vma->vm_end - vma->vm_start != PAGE_SIZE)
 		return -EINVAL;
 
+	if (PAGE_SIZE > 4096)
+		return -EINVAL;
+
 	address = dev->adev->rmmio_remap.bus_addr;
 
 	vma->vm_flags |= VM_IO | VM_DONTCOPY | VM_DONTEXPAND | VM_NORESERVE |
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +1 -0
index 93e40e0a1508..4d2590964a20 100644
@@ -2962,6 +2962,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/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c +6 -0
index 80dfaa4d4d81..eb3a4624f781 100644
@@ -393,6 +393,12 @@ void dcn31_hpo_dp_link_enc_set_throttled_vcp_size(
 				x),
 			25));
 
+	// If y rounds up to integer, carry it over to x.
+	if (y >> 25) {
+		x += 1;
+		y = 0;
+	}
+
 	switch (stream_encoder_inst) {
 	case 0:
 		REG_SET_2(DP_DPHY_SYM32_VC_RATE_CNTL0, 0,
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c +1 -1
index 21b374d12181..5de31961319a 100644
@@ -222,7 +222,7 @@ static int smu_v13_0_4_system_features_control(struct smu_context *smu, bool en)
 	struct amdgpu_device *adev = smu->adev;
 	int ret = 0;
 
-	if (!en && !adev->in_s0ix) {
+	if (!en && adev->in_s4) {
 		/* Adds a GFX reset as workaround just before sending the
 		 * MP1_UNLOAD message to prevent GC/RLC/PMFW from entering
 		 * an invalid state.
drivers/gpu/drm/drm_connector.c +1 -1
index 27de2a97f1d1..3d18d840ef3b 100644
@@ -2707,7 +2707,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/i915/display/intel_bios.c +4 -15
index 9cc1ef2ca72c..efbb0cffd3bc 100644
@@ -1034,22 +1034,11 @@ parse_lfp_backlight(struct drm_i915_private *i915,
 
 	panel->vbt.backlight.type = INTEL_BACKLIGHT_DISPLAY_DDI;
 	if (i915->display.vbt.version >= 191) {
-		size_t exp_size;
+		const struct lfp_backlight_control_method *method;
 
-		if (i915->display.vbt.version >= 236)
-			exp_size = sizeof(struct bdb_lfp_backlight_data);
-		else if (i915->display.vbt.version >= 234)
-			exp_size = EXP_BDB_LFP_BL_DATA_SIZE_REV_234;
-		else
-			exp_size = EXP_BDB_LFP_BL_DATA_SIZE_REV_191;
-
-		if (get_blocksize(backlight_data) >= exp_size) {
-			const struct lfp_backlight_control_method *method;
-
-			method = &backlight_data->backlight_control[panel_type];
-			panel->vbt.backlight.type = method->type;
-			panel->vbt.backlight.controller = method->controller;
-		}
+		method = &backlight_data->backlight_control[panel_type];
+		panel->vbt.backlight.type = method->type;
+		panel->vbt.backlight.controller = method->controller;
 	}
 
 	panel->vbt.backlight.pwm_freq_hz = entry->pwm_freq_hz;
drivers/gpu/drm/i915/display/intel_vbt_defs.h +0 -5
index a9f44abfc9fc..b50cd0dcabda 100644
@@ -897,11 +897,6 @@ struct lfp_brightness_level {
 	u16 reserved;
 } __packed;
 
-#define EXP_BDB_LFP_BL_DATA_SIZE_REV_191 \
-	offsetof(struct bdb_lfp_backlight_data, brightness_level)
-#define EXP_BDB_LFP_BL_DATA_SIZE_REV_234 \
-	offsetof(struct bdb_lfp_backlight_data, brightness_precision_bits)
-
 struct bdb_lfp_backlight_data {
 	u8 entry_size;
 	struct lfp_backlight_data_entry data[16];
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 53185746fb3d..17e1e23a780e 100644
@@ -109,12 +109,15 @@ nouveau_dp_detect(struct nouveau_connector *nv_connector,
 	u8 *dpcd = nv_encoder->dp.dpcd;
 	int ret = NOUVEAU_DP_NONE, hpd;
 
-	/* 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 39dc40cf681f..285e76818d84 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)
@@ -717,18 +717,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 void 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 66cc35dc223e..95344735d00e 100644
@@ -991,7 +991,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 bdee16a0bb8e..ba622fb5e482 100644
@@ -368,11 +368,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,
@@ -386,7 +381,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,
 };
 
@@ -475,8 +469,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/hv/channel.c +24 -5
index 56f7e06c673e..47e1bd8de9fc 100644
@@ -153,7 +153,9 @@ void vmbus_free_ring(struct vmbus_channel *channel)
 	hv_ringbuffer_cleanup(&channel->inbound);
 
 	if (channel->ringbuffer_page) {
-		__free_pages(channel->ringbuffer_page,
+		/* In a CoCo VM leak the memory if it didn't get re-encrypted */
+		if (!channel->ringbuffer_gpadlhandle.decrypted)
+			__free_pages(channel->ringbuffer_page,
 			     get_order(channel->ringbuffer_pagecount
 				       << PAGE_SHIFT));
 		channel->ringbuffer_page = NULL;
@@ -472,9 +474,18 @@ static int __vmbus_establish_gpadl(struct vmbus_channel *channel,
 		(atomic_inc_return(&vmbus_connection.next_gpadl_handle) - 1);
 
 	ret = create_gpadl_header(type, kbuffer, size, send_offset, &msginfo);
-	if (ret)
+	if (ret) {
+		gpadl->decrypted = false;
 		return ret;
+	}
 
+	/*
+	 * Set the "decrypted" flag to true for the set_memory_decrypted()
+	 * success case. In the failure case, the encryption state of the
+	 * memory is unknown. Leave "decrypted" as true to ensure the
+	 * memory will be leaked instead of going back on the free list.
+	 */
+	gpadl->decrypted = true;
 	ret = set_memory_decrypted((unsigned long)kbuffer,
 				   PFN_UP(size));
 	if (ret) {
@@ -563,9 +574,15 @@ static int __vmbus_establish_gpadl(struct vmbus_channel *channel,
 
 	kfree(msginfo);
 
-	if (ret)
-		set_memory_encrypted((unsigned long)kbuffer,
-				     PFN_UP(size));
+	if (ret) {
+		/*
+		 * If set_memory_encrypted() fails, the decrypted flag is
+		 * left as true so the memory is leaked instead of being
+		 * put back on the free list.
+		 */
+		if (!set_memory_encrypted((unsigned long)kbuffer, PFN_UP(size)))
+			gpadl->decrypted = false;
+	}
 
 	return ret;
 }
@@ -886,6 +903,8 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, struct vmbus_gpadl *gpad
 	if (ret)
 		pr_warn("Fail to set mem host visibility in GPADL teardown %d.\n", ret);
 
+	gpadl->decrypted = ret;
+
 	return ret;
 }
 EXPORT_SYMBOL_GPL(vmbus_teardown_gpadl);
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 2d939773445d..e2931ea8af1f 100644
@@ -1126,6 +1126,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;
@@ -1187,8 +1188,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 a973905afd13..182a89bb24ef 100644
@@ -440,6 +440,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 0ba2a63a9538..576163f88a4a 100644
@@ -1570,6 +1570,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
 	{ .compatible = "mediatek,mt8195-iommu-vpp",   .data = &mt8195_data_vpp},
 	{}
 };
+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 a978220eb620..5dd06bcb507f 100644
@@ -602,6 +602,7 @@ static const struct of_device_id mtk_iommu_v1_of_ids[] = {
 	{ .compatible = "mediatek,mt2701-m4u", },
 	{}
 };
+MODULE_DEVICE_TABLE(of, mtk_iommu_v1_of_ids);
 
 static const struct component_master_ops mtk_iommu_v1_com_ops = {
 	.bind		= mtk_iommu_v1_bind,
drivers/md/md.c +1 -0
index 788acc81e7a8..506c998c0ca5 100644
@@ -2508,6 +2508,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 3390ff511103..d3c03d4edbef 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 a617f64a351d..a4bdc4128458 100644
@@ -122,6 +122,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 ba906dfab055..517c50d11fbc 100644
@@ -5677,7 +5677,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,
@@ -6134,7 +6134,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 +26 -6
index c2a991308215..f087a9716409 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
@@ -2468,14 +2468,18 @@ static void umac_enable_set(struct bcmgenet_priv *priv, u32 mask, bool enable)
 {
 	u32 reg;
 
+	spin_lock_bh(&priv->reg_lock);
 	reg = bcmgenet_umac_readl(priv, UMAC_CMD);
-	if (reg & CMD_SW_RESET)
+	if (reg & CMD_SW_RESET) {
+		spin_unlock_bh(&priv->reg_lock);
 		return;
+	}
 	if (enable)
 		reg |= mask;
 	else
 		reg &= ~mask;
 	bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+	spin_unlock_bh(&priv->reg_lock);
 
 	/* UniMAC stops on a packet boundary, wait for a full-size packet
 	 * to be processed
@@ -2491,8 +2495,10 @@ static void reset_umac(struct bcmgenet_priv *priv)
 	udelay(10);
 
 	/* issue soft reset and disable MAC while updating its registers */
+	spin_lock_bh(&priv->reg_lock);
 	bcmgenet_umac_writel(priv, CMD_SW_RESET, UMAC_CMD);
 	udelay(2);
+	spin_unlock_bh(&priv->reg_lock);
 }
 
 static void bcmgenet_intr_disable(struct bcmgenet_priv *priv)
@@ -3298,7 +3304,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;
@@ -3323,6 +3329,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;
 }
 
@@ -3344,7 +3358,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);
@@ -3386,8 +3402,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);
@@ -3605,16 +3621,19 @@ static void bcmgenet_set_rx_mode(struct net_device *dev)
 	 * 3. The number of filters needed exceeds the number filters
 	 *    supported by the hardware.
 	*/
+	spin_lock(&priv->reg_lock);
 	reg = bcmgenet_umac_readl(priv, UMAC_CMD);
 	if ((dev->flags & (IFF_PROMISC | IFF_ALLMULTI)) ||
 	    (nfilter > MAX_MDF_FILTER)) {
 		reg |= CMD_PROMISC;
 		bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+		spin_unlock(&priv->reg_lock);
 		bcmgenet_umac_writel(priv, 0, UMAC_MDF_CTRL);
 		return;
 	} else {
 		reg &= ~CMD_PROMISC;
 		bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+		spin_unlock(&priv->reg_lock);
 	}
 
 	/* update MDF filter */
@@ -4016,6 +4035,7 @@ static int bcmgenet_probe(struct platform_device *pdev)
 		goto err;
 	}
 
+	spin_lock_init(&priv->reg_lock);
 	spin_lock_init(&priv->lock);
 
 	/* Set default pause parameters */
@@ -4258,7 +4278,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/broadcom/genet/bcmgenet.h +3 -1
index 1985c0ec4da2..28e2c94ef835 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * Copyright (c) 2014-2020 Broadcom
+ * Copyright (c) 2014-2024 Broadcom
  */
 
 #ifndef __BCMGENET_H__
@@ -573,6 +573,8 @@ struct bcmgenet_rxnfc_rule {
 /* device context */
 struct bcmgenet_priv {
 	void __iomem *base;
+	/* reg_lock: lock to serialize access to shared registers */
+	spinlock_t reg_lock;
 	enum bcmgenet_version version;
 	struct net_device *dev;
 
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c +7 -1
index f55d9d9c01a8..56781e721497 100644
@@ -2,7 +2,7 @@
 /*
  * Broadcom GENET (Gigabit Ethernet) Wake-on-LAN support
  *
- * Copyright (c) 2014-2020 Broadcom
+ * Copyright (c) 2014-2024 Broadcom
  */
 
 #define pr_fmt(fmt)				"bcmgenet_wol: " fmt
@@ -133,6 +133,7 @@ int bcmgenet_wol_power_down_cfg(struct bcmgenet_priv *priv,
 	}
 
 	/* Can't suspend with WoL if MAC is still in reset */
+	spin_lock_bh(&priv->reg_lock);
 	reg = bcmgenet_umac_readl(priv, UMAC_CMD);
 	if (reg & CMD_SW_RESET)
 		reg &= ~CMD_SW_RESET;
@@ -140,6 +141,7 @@ int bcmgenet_wol_power_down_cfg(struct bcmgenet_priv *priv,
 	/* disable RX */
 	reg &= ~CMD_RX_EN;
 	bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+	spin_unlock_bh(&priv->reg_lock);
 	mdelay(10);
 
 	if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) {
@@ -185,6 +187,7 @@ int bcmgenet_wol_power_down_cfg(struct bcmgenet_priv *priv,
 	}
 
 	/* Enable CRC forward */
+	spin_lock_bh(&priv->reg_lock);
 	reg = bcmgenet_umac_readl(priv, UMAC_CMD);
 	priv->crc_fwd_en = 1;
 	reg |= CMD_CRC_FWD;
@@ -192,6 +195,7 @@ int bcmgenet_wol_power_down_cfg(struct bcmgenet_priv *priv,
 	/* Receiver must be enabled for WOL MP detection */
 	reg |= CMD_RX_EN;
 	bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+	spin_unlock_bh(&priv->reg_lock);
 
 	reg = UMAC_IRQ_MPD_R;
 	if (hfb_enable)
@@ -238,7 +242,9 @@ void bcmgenet_wol_power_up_cfg(struct bcmgenet_priv *priv,
 	}
 
 	/* Disable CRC Forward */
+	spin_lock_bh(&priv->reg_lock);
 	reg = bcmgenet_umac_readl(priv, UMAC_CMD);
 	reg &= ~CMD_CRC_FWD;
 	bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+	spin_unlock_bh(&priv->reg_lock);
 }
drivers/net/ethernet/broadcom/genet/bcmmii.c +19 -6
index 1779ee524dac..f21f2aaa6fd9 100644
@@ -2,7 +2,7 @@
 /*
  * Broadcom GENET MDIO routines
  *
- * Copyright (c) 2014-2017 Broadcom
+ * Copyright (c) 2014-2024 Broadcom
  */
 
 #include <linux/acpi.h>
@@ -72,10 +72,10 @@ static void bcmgenet_mac_config(struct net_device *dev)
 	 * Receive clock is provided by the PHY.
 	 */
 	reg = bcmgenet_ext_readl(priv, EXT_RGMII_OOB_CTRL);
-	reg &= ~OOB_DISABLE;
 	reg |= RGMII_LINK;
 	bcmgenet_ext_writel(priv, reg, EXT_RGMII_OOB_CTRL);
 
+	spin_lock_bh(&priv->reg_lock);
 	reg = bcmgenet_umac_readl(priv, UMAC_CMD);
 	reg &= ~((CMD_SPEED_MASK << CMD_SPEED_SHIFT) |
 		       CMD_HD_EN |
@@ -88,6 +88,7 @@ static void bcmgenet_mac_config(struct net_device *dev)
 		reg |= CMD_TX_EN | CMD_RX_EN;
 	}
 	bcmgenet_umac_writel(priv, reg, UMAC_CMD);
+	spin_unlock_bh(&priv->reg_lock);
 
 	priv->eee.eee_active = phy_init_eee(phydev, 0) >= 0;
 	bcmgenet_eee_enable_set(dev,
@@ -100,10 +101,18 @@ static void bcmgenet_mac_config(struct net_device *dev)
  */
 void bcmgenet_mii_setup(struct net_device *dev)
 {
+	struct bcmgenet_priv *priv = netdev_priv(dev);
 	struct phy_device *phydev = dev->phydev;
+	u32 reg;
 
-	if (phydev->link)
+	if (phydev->link) {
 		bcmgenet_mac_config(dev);
+	} else {
+		reg = bcmgenet_ext_readl(priv, EXT_RGMII_OOB_CTRL);
+		reg &= ~RGMII_LINK;
+		bcmgenet_ext_writel(priv, reg, EXT_RGMII_OOB_CTRL);
+	}
+
 	phy_print_status(phydev);
 }
 
@@ -264,18 +273,22 @@ int bcmgenet_mii_config(struct net_device *dev, bool init)
 			(priv->phy_interface != PHY_INTERFACE_MODE_MOCA);
 
 	/* This is an external PHY (xMII), so we need to enable the RGMII
-	 * block for the interface to work
+	 * block for the interface to work, unconditionally clear the
+	 * Out-of-band disable since we do not need it.
 	 */
+	mutex_lock(&phydev->lock);
+	reg = bcmgenet_ext_readl(priv, EXT_RGMII_OOB_CTRL);
+	reg &= ~OOB_DISABLE;
 	if (priv->ext_phy) {
-		reg = bcmgenet_ext_readl(priv, EXT_RGMII_OOB_CTRL);
 		reg &= ~ID_MODE_DIS;
 		reg |= id_mode_dis;
 		if (GENET_IS_V1(priv) || GENET_IS_V2(priv) || GENET_IS_V3(priv))
 			reg |= RGMII_MODE_EN_V123;
 		else
 			reg |= RGMII_MODE_EN;
-		bcmgenet_ext_writel(priv, reg, EXT_RGMII_OOB_CTRL);
 	}
+	bcmgenet_ext_writel(priv, reg, EXT_RGMII_OOB_CTRL);
+	mutex_unlock(&phydev->lock);
 
 	if (init)
 		dev_info(kdev, "configuring instance for %s\n", phy_name);
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 46809e2d94ee..4809d9eae6ca 100644
@@ -2684,12 +2684,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;
 	}
 
@@ -2724,7 +2724,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/hnae3.h +1 -1
index c693bb701ba3..60b8d61af07f 100644
@@ -873,7 +873,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/hns3pf/hclge_main.c +28 -24

136 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +4 -1
index f6fef790e16c..fd79bb81b6e0 100644
@@ -256,11 +256,14 @@ 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 */
 	u8 lane_num;
 	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 */
@@ -872,7 +875,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 */
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +4 -3
index 04ff9bf12185..877feee53804 100644
@@ -1077,12 +1077,13 @@ static void hclge_mbx_request_handling(struct hclge_mbx_ops_param *param)
 
 	hdev = param->vport->back;
 	cmd_func = hclge_mbx_ops_list[param->req->msg.code];
-	if (cmd_func)
-		ret = cmd_func(param);
-	else
+	if (!cmd_func) {
 		dev_err(&hdev->pdev->dev,
 			"un-supported mailbox message, code = %u\n",
 			param->req->msg.code);
+		return;
+	}
+	ret = cmd_func(param);
 
 	/* PF driver should not reply IMP */
 	if (hnae3_get_bit(param->req->mbx_need_resp, HCLGE_MBX_NEED_RESP_B) &&
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +9 -11
index 5a978ea101a9..1f5a27fb309a 100644
@@ -464,7 +464,8 @@ static int hclgevf_set_handle_info(struct hclgevf_dev *hdev)
 
 	nic->ae_algo = &ae_algovf;
 	nic->pdev = hdev->pdev;
-	nic->numa_node_mask = hdev->numa_node_mask;
+	bitmap_copy(nic->numa_node_mask.bits, hdev->numa_node_mask.bits,
+		    MAX_NUMNODES);
 	nic->flags |= HNAE3_SUPPORT_VF;
 	nic->kinfo.io_base = hdev->hw.hw.io_base;
 
@@ -2136,8 +2137,8 @@ static int hclgevf_init_roce_base_info(struct hclgevf_dev *hdev)
 
 	roce->pdev = nic->pdev;
 	roce->ae_algo = nic->ae_algo;
-	roce->numa_node_mask = nic->numa_node_mask;
-
+	bitmap_copy(roce->numa_node_mask.bits, nic->numa_node_mask.bits,
+		    MAX_NUMNODES);
 	return 0;
 }
 
@@ -2235,8 +2236,7 @@ static void hclgevf_set_timer_task(struct hnae3_handle *handle, bool enable)
 	} else {
 		set_bit(HCLGEVF_STATE_DOWN, &hdev->state);
 
-		/* flush memory to make sure DOWN is seen by service task */
-		smp_mb__before_atomic();
+		smp_mb__after_atomic(); /* flush memory to make sure DOWN is seen by service task */
 		hclgevf_flush_link_update(hdev);
 	}
 }
@@ -2902,10 +2902,6 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev)
 	if (ret)
 		return ret;
 
-	ret = hclgevf_devlink_init(hdev);
-	if (ret)
-		goto err_devlink_init;
-
 	ret = hclge_comm_cmd_queue_init(hdev->pdev, &hdev->hw.hw);
 	if (ret)
 		goto err_cmd_queue_init;
@@ -2998,6 +2994,10 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev)
 
 	hclgevf_init_rxd_adv_layout(hdev);
 
+	ret = hclgevf_devlink_init(hdev);
+	if (ret)
+		goto err_config;
+
 	set_bit(HCLGEVF_STATE_SERVICE_INITED, &hdev->state);
 
 	hdev->last_reset_time = jiffies;
@@ -3017,8 +3017,6 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev)
 err_cmd_init:
 	hclge_comm_cmd_uninit(hdev->ae_dev, &hdev->hw.hw);
 err_cmd_queue_init:
-	hclgevf_devlink_uninit(hdev);
-err_devlink_init:
 	hclgevf_pci_uninit(hdev);
 	clear_bit(HCLGEVF_STATE_IRQ_INITED, &hdev->state);
 	return ret;
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h +1 -1
index d65ace07b456..976414d00e67 100644
@@ -236,7 +236,7 @@ struct hclgevf_dev {
 	u16 rss_size_max;	/* HW defined max RSS task queue */
 
 	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 */
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c +1 -3
index cc5d342e026c..a3c1d82032f5 100644
@@ -999,12 +999,10 @@ static ssize_t rvu_dbg_qsize_write(struct file *filp,
 	u16 pcifunc;
 	int ret, lf;
 
-	cmd_buf = memdup_user(buffer, count + 1);
+	cmd_buf = memdup_user_nul(buffer, count);
 	if (IS_ERR(cmd_buf))
 		return -ENOMEM;
 
-	cmd_buf[count] = '\0';
-
 	cmd_buf_tmp = strchr(cmd_buf, '\n');
 	if (cmd_buf_tmp) {
 		*cmd_buf_tmp = '\0';
drivers/net/ethernet/micrel/ks8851_common.c +10 -6
index d4cdf3d4f552..502518cdb461 100644
@@ -234,12 +234,13 @@ static void ks8851_dbg_dumpkkt(struct ks8851_net *ks, u8 *rxpkt)
 /**
  * ks8851_rx_pkts - receive packets from the host
  * @ks: The device information.
+ * @rxq: Queue of packets received in this function.
  *
  * This is called from the IRQ work queue when the system detects that there
  * are packets in the receive queue. Find out how many packets there are and
  * read them from the FIFO.
  */
-static void ks8851_rx_pkts(struct ks8851_net *ks)
+static void ks8851_rx_pkts(struct ks8851_net *ks, struct sk_buff_head *rxq)
 {
 	struct sk_buff *skb;
 	unsigned rxfc;
@@ -299,7 +300,7 @@ static void ks8851_rx_pkts(struct ks8851_net *ks)
 					ks8851_dbg_dumpkkt(ks, rxpkt);
 
 				skb->protocol = eth_type_trans(skb, ks->netdev);
-				__netif_rx(skb);
+				__skb_queue_tail(rxq, skb);
 
 				ks->netdev->stats.rx_packets++;
 				ks->netdev->stats.rx_bytes += rxlen;

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 2d82481d34e6..45a542659a81 100644

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

drivers/net/vxlan/vxlan_core.c +18 -1
index fbd36dff9ec2..01ce289f4abf 100644

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

drivers/nvme/host/core.c +1 -1
index 20160683e868..75b4dd8a55b0 100644

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

drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +17 -17
index 80838dc54b3a..7938741136a2 100644

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

drivers/pinctrl/core.c +1 -7
index f1962866bb81..1ef36a0a7dd2 100644

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

drivers/pinctrl/devicetree.c +6 -4
index 6e0a40962f38..5ee746cb81f5 100644

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

drivers/pinctrl/intel/pinctrl-baytrail.c +38 -36

74 lines not on this page · raw message

drivers/pinctrl/intel/pinctrl-intel.c +3 -3
index 954a41226740..8542053d4d6d 100644

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

drivers/pinctrl/intel/pinctrl-intel.h +12 -5
index 65628423bf63..0d45063435eb 100644

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

drivers/pinctrl/mediatek/pinctrl-paris.c +13 -27
index ad873bd051b6..ee72c6894a5d 100644

Lines of this file are not shown. View the 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 72962286d704..c5597967a069 100644

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

drivers/regulator/core.c +16 -11
index c8702011b761..ff11f37e28c7 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_main.c +27 -34

61 lines not on this page · raw message

drivers/scsi/bnx2fc/bnx2fc_tgt.c +0 -2
index 2c246e80c1c4..d91659811eb3 100644

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

drivers/scsi/lpfc/lpfc.h +0 -1
index dc5ac3cc70f6..6f08fbe103cb 100644

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

drivers/scsi/lpfc/lpfc_els.c +10 -10
index 6b5ce9869e6b..05764008f6e7 100644

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

drivers/scsi/lpfc/lpfc_hbadisc.c +2 -3
index 549fa7d6c0f6..aaa98a006fdc 100644

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

drivers/scsi/lpfc/lpfc_nvme.c +2 -2
index 152245f7cacc..7e9e0d969256 100644

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

drivers/scsi/lpfc/lpfc_scsi.c +4 -9
index 0bb7e164b525..2a81a42de5c1 100644

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

drivers/scsi/lpfc/lpfc_sli.c +7 -7
index 427a6ac803e5..47b8102a7063 100644

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

drivers/scsi/lpfc/lpfc_vport.c +4 -4
index 4d171f5c213f..6b4259894584 100644

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

drivers/scsi/mpi3mr/mpi3mr_app.c +1 -1
index 8c662d08706f..42600e5c457a 100644

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

drivers/slimbus/qcom-ngd-ctrl.c +5 -1
index 76c5e446d243..da8555f3b6ca 100644

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

drivers/spi/spi-axi-spi-engine.c +139 -134

273 lines not on this page · 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/spi/spi-microchip-core-qspi.c +1 -0
index 19a6a46829f6..620c5d19031e 100644

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

drivers/spi/spi.c +12 -0
index 19688f333e0b..1018feff468c 100644

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

drivers/staging/wlan-ng/hfa384x_usb.c +2 -2
index 02fdef7a16c8..c7cd54171d99 100644

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

drivers/staging/wlan-ng/prism2usb.c +3 -3
index e13da7fadfff..c13f1699e5a2 100644

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

drivers/target/target_core_configfs.c +12 -0
index 416514c5c7ac..1a26dd0d5666 100644

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

drivers/ufs/core/ufshcd.c +4 -1
index f3c25467e571..948449a13247 100644

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

drivers/uio/uio_hv_generic.c +8 -4
index c08a6cfd119f..e5789dfcaff6 100644

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

drivers/usb/core/hub.c +3 -2
index dea110241ee7..50a5608c204f 100644

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

drivers/usb/core/port.c +6 -2
index 93a63b7f164d..0007031fad0d 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 889c122dad45..472a6a7e1558 100644

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

drivers/usb/dwc3/gadget.c +2 -0
index b134110cc2ed..2d7ac92ce9b8 100644

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

drivers/usb/dwc3/host.c +27 -0
index f4d8e80c4c34..c0dba453f1b8 100644

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

drivers/usb/gadget/composite.c +3 -3
index 247cca46cdfa..f10e43a948fd 100644

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

drivers/usb/gadget/function/f_fs.c +1 -1
index 3e59055aa504..b2da74bb107a 100644

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

drivers/usb/host/ohci-hcd.c +8 -0
index 0457dd9f6c19..ab175e181e55 100644

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

drivers/usb/host/xhci-plat.h +3 -1
index 1fb149d1fbce..f3abce238207 100644

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

drivers/usb/typec/tcpm/tcpm.c +27 -8
index bf615dc8085e..bbcc0e0aa070 100644

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

drivers/usb/typec/ucsi/ucsi.c +11 -1
index 98f335cbbcde..a163218fdc74 100644

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

drivers/vfio/pci/vfio_pci.c +2 -0
index 1d4919edfbde..a3ed9ab47748 100644

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

fs/9p/vfs_file.c +2 -0
index aec43ba83799..87222067fe5d 100644

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

fs/9p/vfs_inode.c +4 -1
index 5e2657c1dbbe..8f287009545c 100644

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

fs/9p/vfs_super.c +1 -0
index 2d9ee073d12c..7c35347f1d9b 100644

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

fs/btrfs/extent_io.c +7 -12
index 539bc9bdcb93..5f923c9b773e 100644

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

fs/btrfs/inode.c +1 -1
index f7f4bcc09464..10ded9c2be03 100644

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

fs/btrfs/send.c +2 -2
index 754a9fb0165f..ec3db315f561 100644

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

fs/btrfs/transaction.c +1 -1
index 5549c843f0d3..a7853a3a5719 100644

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

fs/btrfs/volumes.c +13 -5
index ab5d410d560e..8c7e74499ed1 100644

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

fs/gfs2/bmap.c +3 -2
index e7537fd305dd..9ad11e5bf14c 100644

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

fs/hugetlbfs/inode.c +4 -4
index 4fe4b3393e71..330729445d8a 100644

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

fs/nfs/client.c +4 -1
index f50e025ae406..755256875052 100644

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

fs/nfs/inode.c +9 -4
index e0c1fb98f907..cf8c3771e4bf 100644

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

fs/nfs/internal.h +0 -2
index 35a8ae46b6c3..b3b801e7c4bc 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.

fs/smb/client/transport.c +32 -5
index 338b34c99b2d..3fdafb9297f1 100644

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

fs/smb/server/oplock.c +24 -11
index 1253e9bde34c..1b98796499d7 100644

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

fs/smb/server/transport_tcp.c +4 -0
index 9d4222154dcc..0012919309f1 100644

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

include/linux/compiler_types.h +11 -0
index 574b4121ebe3..8f50c589ad5f 100644

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

include/linux/dma-fence.h +0 -7
index 5d6a5f3097cd..b79097b9070b 100644

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

include/linux/gfp_types.h +2 -0
index d88c46ca82e1..6811ab702e8d 100644

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

include/linux/hugetlb.h +49 -4

53 lines not on this page · raw message

include/linux/hugetlb_cgroup.h +35 -34

69 lines not on this page · raw message

include/linux/hyperv.h +1 -0
index 4fbd5d841711..811d59cf891b 100644

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

include/linux/mm_types.h +14 -0
index 247aedb18d5c..a9c1d611029d 100644

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

include/linux/pci_ids.h +2 -0
index 9e9794d03c9f..2c1371320c29 100644

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

include/linux/pinctrl/pinctrl.h +20 -0
index 487117ccb1bc..fb25085d0922 100644

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

include/linux/regulator/consumer.h +2 -2
index ee3b4a014611..a9ca87a8f4e6 100644

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

include/linux/skbuff.h +15 -0
index d5f888fe0e33..cecd3b6bebb8 100644

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

include/linux/skmsg.h +2 -0
index bd4418377bac..062fe440f5d0 100644

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

include/linux/slab.h +1 -1
index cb4b5deca9a9..b8e77ffc3892 100644

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

include/linux/spi/spi.h +48 -3

51 lines not on this page · raw message

include/linux/sunrpc/clnt.h +1 -0
index c794b0ce4e78..809c23120d54 100644

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

include/linux/swapops.h +53 -52

105 lines not on this page · raw message

include/linux/timer.h +13 -2
index 6d18f04ad703..e338e173ce8b 100644

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

include/net/xfrm.h +3 -0
index 9ec6f2e92ad3..5b9c2c535702 100644

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

include/uapi/scsi/scsi_bsg_mpi3mr.h +1 -1
index fdc3517f9e19..c48c5d08c0fa 100644

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

kernel/bpf/bloom_filter.c +13 -0
index 48ee750849f2..78e810f49c44 100644

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

kernel/bpf/verifier.c +1 -2
index 27cc6e3db5a8..18b3f429abe1 100644

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

kernel/time/timer.c +4 -4
index 59469897432b..e09852be4e63 100644

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

lib/Kconfig.debug +3 -2
index 95541b99aa8e..b2dff1935893 100644

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

lib/dynamic_debug.c +5 -1
index 009f2ead09c1..939678ea930e 100644

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

mm/hugetlb.c +31 -24

55 lines not on this page · raw message

mm/hugetlb_cgroup.c +18 -16
index f61d132df52b..32f4408eda24 100644

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

mm/migrate.c +1 -1
index c5968021fde0..0252aa4ff572 100644

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

mm/readahead.c +4 -0
index e4b772bb70e6..794d8ddc0697 100644

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

net/bluetooth/hci_core.c +1 -2
index 02e67ff05b7b..d6be3cb86598 100644

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

net/bluetooth/l2cap_core.c +3 -0
index b4cba55be5ad..c34011113d4c 100644

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

net/bluetooth/msft.c +1 -1
index bee6a4c656be..076cf8bce4d9 100644

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

net/bluetooth/msft.h +2 -2
index 2a63205b377b..fe538e9c91c0 100644

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

net/bluetooth/sco.c +4 -0
index 4a6bf60f3e7a..301cf802d32c 100644

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

net/bridge/br_forward.c +7 -2
index 4e3394a7d7d4..9661698e86e4 100644

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

net/bridge/br_netlink.c +2 -1
index d38eff27767d..e9e5c77ef0f4 100644

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

net/core/filter.c +32 -10

42 lines not on this page · raw message

net/core/link_watch.c +2 -2
index aa6cb1f90966..13513efcfbfe 100644

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

net/core/net-sysfs.c +1 -3
index 8409d41405df..fdf3308b0335 100644

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

net/core/net_namespace.c +10 -3
index 4c1707d0eb9b..c33930a17162 100644

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

net/core/rtnetlink.c +3 -3
index ac379e4590f8..1163226c025c 100644

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

net/core/skbuff.c +19 -8
index e38a4c7449f6..4d46788cd493 100644

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

net/core/skmsg.c +1 -4
index 39643f78cf78..8b0459a6b629 100644

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

net/core/sock.c +2 -2
index 550af616f535..48199e6e8f16 100644

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

net/hsr/hsr_device.c +14 -17
index 83906d093f0a..ad75724b69ad 100644

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

net/ipv4/tcp.c +2 -2
index f01c0a5d2c37..3447a09ee83a 100644

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

net/ipv4/tcp_input.c +2 -0
index 34460c9b37ae..4c9da9455336 100644

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

net/ipv4/tcp_ipv4.c +7 -1
index be2c807eed15..5dcb969cb5e9 100644

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

net/ipv4/tcp_output.c +3 -1
index 67087da45a1f..15f814c1e169 100644

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

net/ipv4/udp_offload.c +11 -1
index 84b7d6089f76..794ea24292f6 100644

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

net/ipv4/xfrm4_input.c +5 -1
index 183f6dc37242..f6e90ba50b63 100644

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

net/ipv6/addrconf.c +6 -5
index 3866deaadbb6..22e246ff910e 100644

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

net/ipv6/fib6_rules.c +5 -1
index be52b18e08a6..6eeab21512ba 100644

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

net/ipv6/ip6_input.c +2 -2
index b8378814532c..1ba97933c74f 100644

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

net/ipv6/ip6_output.c +1 -1
index e9ae084d038d..fb26401950e7 100644

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

net/ipv6/xfrm6_input.c +5 -1
index 4156387248e4..8432b50d9ce4 100644

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

net/l2tp/l2tp_eth.c +3 -0
index f2ae03c40473..1f41d2f3b8c4 100644

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

net/mac80211/ieee80211_i.h +2 -2
index d5dd2d9e89b4..3e14d5c9aa1b 100644

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

net/mptcp/protocol.c +3 -0
index c652c8ca765c..b6815610a6fa 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/smc/smc_ib.c +12 -7
index ace861173532..6de53431629c 100644

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

net/sunrpc/clnt.c +4 -1
index 61e5c77462e9..b774028e4aa8 100644

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

net/sunrpc/xprt.c +1 -1
index 656cec208371..ab453ede54f0 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 1a3bd554e258..a00df7b89ca8 100644

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

net/wireless/trace.h +1 -1
index a405c3edbc47..cb5c3224e038 100644

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

net/xfrm/xfrm_input.c +8 -0
index d0320e35accb..4bba890ff3bc 100644

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

rust/Makefile +5 -6
index 7700d3853404..6d0c0e9757f2 100644

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

rust/kernel/error.rs +1 -1
index 466b2a8fe569..4a3a6306cfe1 100644

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

rust/kernel/lib.rs +1 -1
index abd46261d385..43cf5f6bde9c 100644

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

rust/macros/module.rs +115 -70

185 lines not on this page · raw message

scripts/Makefile.build +10 -7
index 41f3602fc8de..1827bc1db1e9 100644

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

scripts/Makefile.host +14 -13
index da133780b751..a447c91893de 100644

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

scripts/Makefile.modfinal +1 -3
index 3af5e5807983..0faee3a47705 100644

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

scripts/is_rust_module.sh deleted +0 -16
deleted file mode 100755
index 28b3831a7593..000000000000

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 b57d72ea4503..4e376994bf78 100644

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

sound/pci/hda/patch_realtek.c +1 -0
index 77c40063d63a..f0b939862a2a 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 61f9d417fd60..f0a9e181ee72 100644

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

sound/soc/meson/axg-tdm-interface.c +19 -15
index 028383f949ef..272c3d2d68cb 100644

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

sound/soc/meson/axg-toddr.c +10 -12
index e9208e74e965..f875304463e2 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 ca5d1bb6ac59..4edf5b27e136 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/include/linux/kernel.h +1 -0
index 4b0673bf52c2..07cfad817d53 100644

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

tools/include/linux/mm.h +5 -0
index 43be27bcc897..2f401e8c6c0b 100644

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

tools/include/linux/panic.h new file +19 -0
new file mode 100644
index 000000000000..9c8f17a41ce8

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

tools/perf/util/unwind-libdw.c +17 -4
index 94aa40f6e348..9a7bdc0e14cc 100644

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

tools/perf/util/unwind-libunwind-local.c +1 -1
index 81b6bd6e1536..b276e36e3fb4 100644

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

tools/power/x86/turbostat/turbostat.8 +1 -1
index 3e1a4c4be001..7112d4732d28 100644

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

tools/power/x86/turbostat/turbostat.c +26 -4
index b113900d9487..a41bad8e653b 100644

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

tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c +6 -0
index d2d9e965eba5..f79815b7e951 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.