Skip to contentSkip to conversation

Linux 6.4.11

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 16, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.4.11 kernel.

All users of the 6.4 kernel series must upgrade.

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

thanks,

greg k-h

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

 Makefile                                                          |    2 
 arch/alpha/kernel/setup.c                                         |    3 
 arch/arm64/kvm/arm.c                                              |   15 
 arch/parisc/Kconfig.debug                                         |    2 
 arch/parisc/include/asm/spinlock.h                                |    2 
 arch/parisc/include/asm/spinlock_types.h                          |    6 
 arch/parisc/kernel/sys_parisc.c                                   |   15 
 arch/parisc/kernel/syscall.S                                      |   23 
 arch/riscv/include/asm/mmio.h                                     |   16 
 arch/riscv/include/asm/pgtable.h                                  |    2 
 arch/riscv/kernel/elf_kexec.c                                     |    3 
 arch/riscv/mm/init.c                                              |   16 
 arch/riscv/mm/kasan_init.c                                        |    1 
 arch/x86/boot/compressed/idt_64.c                                 |    9 
 arch/x86/boot/compressed/sev.c                                    |   37 +
 arch/x86/entry/vdso/vma.c                                         |    4 
 arch/x86/include/asm/acpi.h                                       |    2 
 arch/x86/include/asm/linkage.h                                    |    2 
 arch/x86/include/asm/processor.h                                  |    2 
 arch/x86/include/asm/segment.h                                    |    2 
 arch/x86/kernel/acpi/boot.c                                       |    4 
 arch/x86/kernel/cpu/amd.c                                         |    1 
 arch/x86/kernel/vmlinux.lds.S                                     |   12 
 arch/x86/kvm/svm/sev.c                                            |   94 +--
 arch/x86/kvm/svm/svm.h                                            |   26 +
 arch/x86/kvm/x86.c                                                |    2 
 drivers/accel/ivpu/ivpu_gem.c                                     |    8 
 drivers/acpi/resource.c                                           |   64 ++
 drivers/acpi/scan.c                                               |    1 
 drivers/android/binder.c                                          |    1 
 drivers/android/binder_alloc.c                                    |    6 
 drivers/android/binder_alloc.h                                    |    1 
 drivers/block/zram/zram_drv.c                                     |   32 -
 drivers/char/tpm/tpm-chip.c                                       |   83 ---
 drivers/char/tpm/tpm_crb.c                                        |   30 +
 drivers/char/tpm/tpm_tis.c                                        |   20 
 drivers/cpufreq/amd-pstate.c                                      |   10 
 drivers/cpuidle/cpuidle-psci-domain.c                             |   39 -
 drivers/cpuidle/dt_idle_genpd.c                                   |   24 
 drivers/cpuidle/dt_idle_genpd.h                                   |    7 
 drivers/dma/idxd/device.c                                         |    4 
 drivers/dma/mcf-edma.c                                            |   13 
 drivers/dma/owl-dma.c                                             |    2 
 drivers/dma/pl330.c                                               |   18 
 drivers/dma/xilinx/xdma.c                                         |    6 
 drivers/gpio/gpio-sim.c                                           |    1 
 drivers/gpio/gpio-ws16c48.c                                       |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                               |    4 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                            |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                        |   26 +
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c                 |    5 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c       |    2 
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c       |    3 
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c                  |    7 
 drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h                           |    2 
 drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c                  |   48 +
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c          |    4 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c               |    2 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c               |   27 -
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c             |   10 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c             |    4 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c             |    4 
 drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h                      |    2 
 drivers/gpu/drm/amd/pm/powerplay/inc/power_state.h                |    1 
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c                         |   34 +
 drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h                     |    2 
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c                    |    9 
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c                    |    9 
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c              |    3 
 drivers/gpu/drm/bridge/ite-it6505.c                               |    4 
 drivers/gpu/drm/drm_gem_shmem_helper.c                            |    6 
 drivers/gpu/drm/nouveau/nouveau_connector.c                       |    2 
 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c                     |   48 +
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h                 |    1 
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c                 |    4 
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c                 |   10 
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c                |    1 
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c                 |    1 
 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c                 |    1 
 drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c                    |   13 
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c                       |   17 
 drivers/hwmon/aquacomputer_d5next.c                               |   37 +
 drivers/hwmon/pmbus/bel-pfe.c                                     |   16 
 drivers/iio/adc/ad7192.c                                          |   16 
 drivers/iio/adc/ina2xx-adc.c                                      |    9 
 drivers/iio/adc/meson_saradc.c                                    |   23 
 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c         |    2 
 drivers/iio/frequency/admv1013.c                                  |    5 
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c                      |    2 
 drivers/iio/industrialio-core.c                                   |    5 
 drivers/iio/light/rohm-bu27034.c                                  |   22 
 drivers/infiniband/core/umem.c                                    |    3 
 drivers/infiniband/hw/bnxt_re/main.c                              |    4 
 drivers/infiniband/hw/hfi1/chip.c                                 |    1 
 drivers/interconnect/qcom/bcm-voter.c                             |    5 
 drivers/interconnect/qcom/icc-rpmh.h                              |    2 
 drivers/interconnect/qcom/sa8775p.c                               |    1 
 drivers/interconnect/qcom/sm8450.c                                |    9 
 drivers/interconnect/qcom/sm8550.c                                |   17 
 drivers/isdn/mISDN/dsp.h                                          |    2 
 drivers/isdn/mISDN/dsp_cmx.c                                      |    2 
 drivers/isdn/mISDN/dsp_core.c                                     |    2 
 drivers/misc/cardreader/rts5227.c                                 |    2 
 drivers/misc/cardreader/rts5228.c                                 |   18 
 drivers/misc/cardreader/rts5249.c                                 |    3 
 drivers/misc/cardreader/rts5260.c                                 |   18 
 drivers/misc/cardreader/rts5261.c                                 |   18 
 drivers/misc/cardreader/rtsx_pcr.c                                |    5 
 drivers/mmc/host/moxart-mmc.c                                     |    8 
 drivers/mmc/host/sdhci_f_sdh30.c                                  |   60 +-
 drivers/net/bonding/bond_main.c                                   |    4 
 drivers/net/dsa/ocelot/felix.c                                    |    2 
 drivers/net/ethernet/freescale/enetc/enetc_pf.c                   |  103 ++-
 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c                |    4 
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c                   |   14 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c        |    4 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c           |   24 
 drivers/net/ethernet/ibm/ibmvnic.c                                |  112 +++-
 drivers/net/ethernet/intel/iavf/iavf_ethtool.c                    |    5 
 drivers/net/ethernet/intel/iavf/iavf_fdir.c                       |   11 
 drivers/net/ethernet/intel/igc/igc.h                              |    4 
 drivers/net/ethernet/intel/igc/igc_main.c                         |   34 +
 drivers/net/ethernet/marvell/prestera/prestera_router.c           |   14 
 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c         |    6 
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c                 |   11 
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c                   |   21 
 drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c            |    2 
 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c               |    5 
 drivers/net/ethernet/mellanox/mlx5/core/main.c                    |    2 
 drivers/net/ethernet/mellanox/mlx5/core/sriov.c                   |    3 
 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ptrn.c        |    2 
 drivers/net/ethernet/microsoft/mana/mana_en.c                     |   37 +
 drivers/net/ethernet/pensando/ionic/ionic_lif.c                   |   23 
 drivers/net/macsec.c                                              |   28 -
 drivers/net/phy/at803x.c                                          |    2 
 drivers/net/tun.c                                                 |    2 
 drivers/net/vxlan/vxlan_vnifilter.c                               |   11 
 drivers/net/wireguard/allowedips.c                                |    8 
 drivers/net/wireguard/selftest/allowedips.c                       |   16 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c       |    5 
 drivers/net/wireless/realtek/rtw89/mac.c                          |    2 
 drivers/nvme/host/core.c                                          |   10 
 drivers/nvme/host/pci.c                                           |    3 
 drivers/nvme/host/rdma.c                                          |    3 
 drivers/nvme/host/tcp.c                                           |    3 
 drivers/pci/bus.c                                                 |    4 
 drivers/pci/controller/Kconfig                                    |    1 
 drivers/pci/of.c                                                  |    5 
 drivers/platform/x86/lenovo-ymc.c                                 |   25 
 drivers/platform/x86/mlx-platform.c                               |   23 
 drivers/platform/x86/msi-ec.c                                     |   18 
 drivers/platform/x86/serial-multi-instantiate.c                   |   35 +
 drivers/scsi/53c700.c                                             |    2 
 drivers/scsi/fnic/fnic.h                                          |    2 
 drivers/scsi/fnic/fnic_scsi.c                                     |    6 
 drivers/scsi/qedf/qedf_main.c                                     |   18 
 drivers/scsi/qedi/qedi_main.c                                     |   18 
 drivers/scsi/raid_class.c                                         |    1 
 drivers/scsi/scsi_proc.c                                          |   30 -
 drivers/scsi/snic/snic_disc.c                                     |    1 
 drivers/scsi/storvsc_drv.c                                        |    4 
 drivers/thunderbolt/tb.c                                          |    2 
 drivers/ufs/host/ufs-renesas.c                                    |    2 
 drivers/usb/common/usb-conn-gpio.c                                |    6 
 drivers/usb/dwc3/gadget.c                                         |    9 
 drivers/usb/gadget/udc/core.c                                     |    9 
 drivers/usb/storage/alauda.c                                      |   12 
 drivers/usb/typec/altmodes/displayport.c                          |   18 
 drivers/usb/typec/tcpm/tcpm.c                                     |    7 
 fs/btrfs/block-group.c                                            |   17 
 fs/btrfs/block-group.h                                            |    2 
 fs/btrfs/disk-io.c                                                |    3 
 fs/btrfs/extent-tree.c                                            |    5 
 fs/btrfs/extent_io.c                                              |   13 
 fs/btrfs/inode.c                                                  |   10 
 fs/btrfs/relocation.c                                             |   45 +
 fs/btrfs/tree-checker.c                                           |   14 
 fs/nilfs2/inode.c                                                 |    8 
 fs/nilfs2/segment.c                                               |    2 
 fs/nilfs2/the_nilfs.h                                             |    2 
 fs/proc/kcore.c                                                   |   30 +
 fs/smb/server/smb2misc.c                                          |   10 
 fs/smb/server/smb2pdu.c                                           |    9 
 include/linux/cpu.h                                               |    2 
 include/linux/skmsg.h                                             |    1 
 include/linux/tpm.h                                               |    1 
 include/net/cfg80211.h                                            |    3 
 include/net/netfilter/nf_tables.h                                 |   64 ++
 include/trace/events/tcp.h                                        |    5 
 io_uring/io_uring.c                                               |    3 
 io_uring/openclose.c                                              |    6 
 mm/damon/core.c                                                   |    1 
 mm/hugetlb.c                                                      |   75 +-
 mm/memory-failure.c                                               |   29 -
 mm/zsmalloc.c                                                     |   14 
 net/core/filter.c                                                 |    6 
 net/core/skmsg.c                                                  |   10 
 net/core/sock_map.c                                               |   10 
 net/dccp/output.c                                                 |    2 
 net/dccp/proto.c                                                  |   10 
 net/ipv4/ip_tunnel_core.c                                         |    2 
 net/ipv4/nexthop.c                                                |   28 -
 net/ipv6/ndisc.c                                                  |    3 
 net/mptcp/protocol.c                                              |    4 
 net/mptcp/protocol.h                                              |    1 
 net/mptcp/subflow.c                                               |   58 +-
 net/netfilter/nf_tables_api.c                                     |  259 +++++++++-
 net/netfilter/nft_set_hash.c                                      |   85 ++-
 net/netfilter/nft_set_pipapo.c                                    |   66 +-
 net/netfilter/nft_set_rbtree.c                                    |  146 +++--
 net/packet/af_packet.c                                            |   16 
 net/smc/af_smc.c                                                  |   77 ++
 net/smc/smc.h                                                     |    2 
 net/smc/smc_clc.c                                                 |    4 
 net/smc/smc_core.c                                                |   25 
 net/smc/smc_sysctl.c                                              |   10 
 net/tls/tls_device.c                                              |   64 +-
 net/wireless/nl80211.c                                            |    5 
 net/xdp/xsk.c                                                     |    1 
 tools/testing/radix-tree/regression1.c                            |    2 
 tools/testing/selftests/bpf/prog_tests/sockmap_listen.c           |    2 
 tools/testing/selftests/mm/ksm_tests.c                            |    1 
 tools/testing/selftests/net/fib_nexthops.sh                       |   10 
 tools/testing/selftests/net/forwarding/bridge_mdb.sh              |   59 +-
 tools/testing/selftests/net/forwarding/bridge_mdb_max.sh          |   19 
 tools/testing/selftests/net/forwarding/ethtool.sh                 |    2 
 tools/testing/selftests/net/forwarding/ethtool_extended_state.sh  |    2 
 tools/testing/selftests/net/forwarding/ethtool_mm.sh              |   18 
 tools/testing/selftests/net/forwarding/hw_stats_l3_gre.sh         |    2 
 tools/testing/selftests/net/forwarding/ip6_forward_instats_vrf.sh |    2 
 tools/testing/selftests/net/forwarding/lib.sh                     |   17 
 tools/testing/selftests/net/forwarding/settings                   |    1 
 tools/testing/selftests/net/forwarding/tc_actions.sh              |    6 
 tools/testing/selftests/net/forwarding/tc_flower.sh               |    8 
 tools/testing/selftests/net/forwarding/tc_tunnel_key.sh           |    9 
 tools/testing/selftests/net/mptcp/mptcp_join.sh                   |    6 
 tools/testing/selftests/rseq/Makefile                             |    4 
 tools/testing/selftests/rseq/rseq.c                               |    2 
 238 files changed, 2515 insertions(+), 1033 deletions(-)

Alan Stern (2):
usb-storage: alauda: Fix uninit-value in alauda_check_media()
USB: Gadget: core: Help prevent panic during UVC unconfigure

Alejandro Tafalla (1):
iio: imu: lsm6dsx: Fix mount matrix retrieval

Aleksa Sarai (1):
io_uring: correct check for O_TMPFILE

Aleksa Savic (1):
hwmon: (aquacomputer_d5next) Add selective 200ms delay after sending ctrl report

Alex Deucher (1):
drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()

Alexandra Diupina (1):
scsi: 53c700: Check that command slot is not NULL

Alexandre Ghiti (1):
riscv: Start of DRAM should at least be aligned on PMD size for the direct mapping

Alisa Roman (1):
iio: adc: ad7192: Fix ac excitation feature

Alvin Šipraga (1):
iio: adc: ina2xx: avoid NULL pointer dereference on OF device match

Andrea Claudi (2):
selftests: mptcp: join: fix 'delete and re-add' test
selftests: mptcp: join: fix 'implicit EP' test

Andrea Parri (1):
riscv,mmio: Fix readX()-to-delay() ordering

Andrew Kanner (2):
net: core: remove unnecessary frame_sz check in bpf_xdp_adjust_tail()
drivers: net: prevent tun_build_skb() to exceed the packet size limit

Andrew Yang (1):
zsmalloc: fix races between modifications of fullness and isolated

Arnd Bergmann (3):
x86/speculation: Add cpu_show_gds() prototype
x86: Move gds_ucode_mitigated() declaration to header drm/nouveau: remove unused tu102_gr_load() function

August Wikerfors (1):
nvme-pci: add NVME_QUIRK_BOGUS_NID for Samsung PM9B1 256G and 512G

Ayush Jain (1):
selftests: mm: ksm: fix incorrect evaluation of parameter

Badhri Jagan Sridharan (1):
usb: typec: tcpm: Fix response to vsafe0V event

Bartosz Golaszewski (1):
gpio: sim: mark the GPIO chip as a one that can sleep

Bjorn Helgaas (1):
Revert "PCI: mvebu: Mark driver as BROKEN"

Boris Brezillon (1):

      drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()

Borislav Petkov (AMD) (1):
x86/sev: Do not try to parse for the CC blob on non-AMD hardware

Chris Mi (1):
net/mlx5e: Unoffload post act rule when handling FIB events

Christoph Hellwig (4):
zram: take device and not only bvec offset into account
btrfs: don't stop integrity writeback too early
btrfs: don't wait for writeback on clean pages in extent_write_cache_pages
btrfs: properly clear end of the unreserved range in cow_file_range

Christophe JAILLET (1):
dmaengine: mcf-edma: Fix a potential un-allocated memory access

Colin Ian King (1):
radix tree test suite: fix incorrect allocation size for pthreads

Cristian Ciocaltea (1):
x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405

Dan Carpenter (1):
iio: frequency: admv1013: propagate errors from regulator_get_voltage()

Daniel Jurgens (1):
net/mlx5: Allow 0 for total host VFs

Daniel Stone (1):
drm/rockchip: Don't spam logs in atomic check

David Xu (1):
platform/x86: serial-multi-instantiate: Auto detect IRQ resource for CSC3551

Douglas Miller (1):
IB/hfi1: Fix possible panic during hotplug remove

Elson Roy Serrao (1):
usb: dwc3: Properly handle processing of pending events

Eric Dumazet (4):
macsec: use DEV_STATS_INC()
net/packet: annotate data-races around tp->status
tcp: add missing family to tcp_set_ca_state() tracepoint
dccp: fix data-race around dp->dccps_mss_cache

Evan Quan (2):
drm/amd/pm: expose swctf threshold setting for legacy powerplay drm/amd/pm: avoid unintentional shutdown due to temperature momentary fluctuation

Fedor Pchelkin (1):
drivers: vxlan: vnifilter: free percpu vni stats on error path

Felix Fietkau (1):
wifi: cfg80211: fix sband iftype data lookup for AP_VLAN

Fenghua Yu (1):
dmaengine: idxd: Clear PRS disable flag when disabling IDXD device

Florian Westphal (2):
netfilter: nf_tables: don't skip expired elements during walk
tunnels: fix kasan splat when generating ipv4 pmtu error

Gal Pressman (1):
net/mlx5e: Take RTNL lock when needed before calling xdp_set_features()

George Stark (1):
iio: adc: meson: fix core clock enable/disable moment

Gerd Bayer (2):
net/smc: Fix setsockopt and sysctl to specify same buffer size again net/smc: Use correct buffer sizes when switching between TCP and SMC

Greg Kroah-Hartman (1):

      Linux 6.4.11

Hans de Goede (5):
ACPI: resource: revert "Remove "Zen" specific match and quirks"
ACPI: resource: Always use MADT override IRQ settings for all legacy non i8042 IRQs
ACPI: resource: Honor MADT INT_SRC_OVR settings for IRQ1 on AMD Zen
ACPI: resource: Add IRQ override quirk for PCSpecialist Elimina Pro 16 M platform/x86: lenovo-ymc: Only bind on machines with a convertible DMI chassis-type

Hao Chen (1):
net: hns3: fix strscpy causing content truncation issue

Helge Deller (2):
io_uring/parisc: Adjust pgoff in io_uring mmap() for parisc
parisc: Fix lightweight spinlock checks to not break futexes

Ido Schimmel (19):
selftests: forwarding: Set default IPv6 traceroute utility
selftests: forwarding: tc_tunnel_key: Make filters more specific
selftests: forwarding: ethtool_mm: Skip when MAC Merge is not supported
selftests: forwarding: bridge_mdb_max: Check iproute2 version
selftests: forwarding: bridge_mdb: Check iproute2 version
selftests: forwarding: Add a helper to skip test when using veth pairs
selftests: forwarding: ethtool: Skip when using veth pairs
selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
selftests: forwarding: hw_stats_l3_gre: Skip when using veth pairs
selftests: forwarding: Skip test when no interfaces are specified
selftests: forwarding: Switch off timeout
selftests: forwarding: tc_actions: Use ncat instead of nc
selftests: forwarding: tc_flower: Relax success criterion
selftests: forwarding: bridge_mdb_max: Fix failing test with old libnet
selftests: forwarding: bridge_mdb: Fix failing test with old libnet
selftests: forwarding: bridge_mdb: Make test more robust
nexthop: Fix infinite nexthop dump when using maximum nexthop ID
nexthop: Make nexthop bucket dump more efficient
nexthop: Fix infinite nexthop bucket dump when using maximum nexthop ID

Ilpo Järvinen (1):
dmaengine: pl330: Return DMA_PAUSED when transaction is paused

Jakub Kicinski (1):
net: tls: avoid discarding data on record close

Jarkko Sakkinen (1):
tpm_tis: Opt-in interrupts

Jason A. Donenfeld (1):
wireguard: allowedips: expand maximum node depth

Jean Delvare (1):
platform/x86: msi-ec: Fix the build

Jianbo Liu (1):
net/mlx5e: TC, Fix internal port memory leak

Jie Wang (2):
net: hns3: refactor hclge_mac_link_status_wait for interface reuse
net: hns3: add wait until mac link down

Jinghao Jia (1):
x86/linkage: Fix typo of BUILD_VDSO in asm/linkage.h

Jonas Gorski (1):
net: marvell: prestera: fix handling IPv4 routes with nhid

Jonathan McDowell (1):
tpm/tpm_tis: Disable interrupts for Lenovo P620 devices

Josef Bacik (2):
btrfs: wait for actual caching progress during allocation
btrfs: set cache_block_group_error if we find an error

Kalesh AP (1):
RDMA/bnxt_re: Fix error handling in probe failure path

Karan Tilak Kumar (1):
scsi: fnic: Replace return codes in fnic_clean_pending_aborts()

Karol Herbst (2):
drm/nouveau/gr: enable memory loads on helper invocation on all channels drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes

Karol Wachowski (1):
accel/ivpu: Add set_pages_array_wc/uc for internal buffers

Keith Yeo (1):

      wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()

Kenneth Feng (1):
drm/amd/pm: correct the pcie width for smu 13.0.0

Kirill A. Shutemov (1):
x86/mm: Fix VDSO and VVAR placement on 5-level paging machines

Kunihiko Hayashi (1):
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm

Li Yang (1):
net: phy: at803x: remove set/get wol callbacks for AR8032

Long Li (1):
ksmbd: validate command request size

Lorenzo Stoakes (1):
fs/proc/kcore: reinstate bounce buffer for KCORE_TEXT regions

Lyude Paul (1):
drm/nouveau/nvkm/dp: Add workaround to fix DP 1.3+ DPCD issues

Maciej Żenczykowski (1):
ipv6: adjust ndisc_is_useropt() to also return true for PIO

Magnus Karlsson (1):
xsk: fix refcount underflow in error path

Mario Limonciello (5):
tpm: Disable RNG for all AMD fTPMs
tpm: Add a helper for checking hwrng enabled drm/amd/display: Fix a regression on Polaris cards drm/amd: Disable S/G for APUs when 64GB or more host memory drm/amd/display: Don't show stack trace for missing eDP

Mark Brown (1):
selftests/rseq: Fix build with undefined __weak

Masahiro Yamada (1):
alpha: remove __init annotation from exported page_is_ram()

Matti Vaittinen (1):
iio: light: bu27034: Fix scale format

Maulik Shah (2):
cpuidle: dt_idle_genpd: Add helper function to remove genpd topology
cpuidle: psci: Move enabling OSI mode after power domains creation

Melissa Wen (1):
drm/amd/display: check attr flag before set cursor degamma on DCN3+

Miaohe Lin (2):
mm: memory-failure: fix potential unexpected return value from unpoison_memory()
mm: memory-failure: avoid false hwpoison page mapped error info

Michael Guralnik (1):
RDMA/umem: Set iova in ODP flow

Michael Kelley (1):
scsi: storvsc: Fix handling of virtual Fibre Channel timeouts

Mika Westerberg (1):
thunderbolt: Fix memory leak in tb_handle_dp_bandwidth_request()

Mike Kravetz (1):
hugetlb: do not clear hugetlb dtor until allocating vmemmap

Mike Tipton (1):
interconnect: qcom: Add support for mask-based BCMs

Milan Zamazal (1):
iio: core: Prevent invalid memory access when there is no parent

Ming Lei (3):
nvme: fix possible hang when removing a controller during error recovery
nvme-tcp: fix potential unbalanced freeze & unfreeze
nvme-rdma: fix potential unbalanced freeze & unfreeze

Minjie Du (1):
dmaengine: xilinx: xdma: Fix Judgment of the return value

Miquel Raynal (2):
dmaengine: xilinx: xdma: Fix interrupt vector setting
dmaengine: xilinx: xdma: Fix typo

Moshe Shemesh (2):
net/mlx5: Skip clock update work when device is in error state net/mlx5: Reload auxiliary devices in pci error handlers

Muhammad Husaini Zulkifli (1):
igc: Add lock to safeguard global Qbv variables

Namjae Jeon (1):
ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()

Nathan Chancellor (1):
mISDN: Update parameter type of dsp_cmx_send()

Neil Armstrong (3):
interconnect: qcom: sa8775p: add enable_mask for bcm nodes
interconnect: qcom: sm8450: add enable_mask for bcm nodes
interconnect: qcom: sm8550: add enable_mask for bcm nodes

Nick Child (5):
ibmvnic: Enforce stronger sanity checks on login response
ibmvnic: Unmap DMA login rsp buffer on send login fail
ibmvnic: Handle DMA unmapping of login buffs in release functions
ibmvnic: Do partial reset on login failure
ibmvnic: Ensure login failure recovery is safe from other resets

Nick Desaulniers (2):
riscv: mm: fix 2 instances of -Wmissing-variable-declarations x86/srso: Fix build breakage with the LLVM linker

Nilesh Javali (2):
scsi: qedi: Fix firmware halt over suspend and resume
scsi: qedf: Fix firmware halt over suspend and resume

Nitya Sunkad (1):
ionic: Add missing err handling for queue reconfig

Pablo Neira Ayuso (3):
netfilter: nf_tables: GC transaction API to avoid race with control plane
netfilter: nf_tables: adapt set backend to use GC transaction API
netfilter: nft_set_hash: mark set element as dead when deleting from packet path

Paolo Abeni (2):
mptcp: avoid bogus reset on fallback close
mptcp: fix disconnect vs accept race

Paolo Bonzini (2):
KVM: SEV: snapshot the GHCB before accessing it
KVM: SEV: only access GHCB fields once

Peter Ujfalusi (1):
tpm: tpm_tis: Fix UPX-i11 DMI_MATCH condition

Petr Tesarik (1):
wifi: brcm80211: handle params_v1 allocation failure

Pin-yen Lin (1):

      drm/bridge: it6505: Check power state with it6505->powered in IRQ handler

Ping-Ke Shih (1):
wifi: rtw89: fix 8852AE disconnection caused by RX full flags

Piotr Gardocki (1):
iavf: fix potential races for FDIR filters

Prashanth K (1):
usb: common: usb-conn-gpio: Prevent bailing out if initial role is none

Qi Zheng (1):
binder: fix memory leak in binder_init()

Qu Wenruo (2):
btrfs: exit gracefully if reloc roots don't match
btrfs: reject invalid reloc tree root keys with stack dump

RD Babiera (1):
usb: typec: altmodes/displayport: Signal hpd when configuring pin assignment

Raghavendra Rao Ananta (1):
KVM: arm64: Fix hardware enable/disable flows for pKVM

Ricky WU (1):
misc: rtsx: judge ASPM Mode to set PETXCFG Reg

Ryusuke Konishi (1):
nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput

Selvin Xavier (1):
RDMA/bnxt_re: Properly order ib_device_unalloc() to avoid UAF

SeongJae Park (1):

      mm/damon/core: initialize damo_filter->list from damos_new_filter()

Sergei Antonov (1):
mmc: moxart: read scr register without changing byte order

Shay Drory (1):
net/mlx5: LAG, Check correct bucket when modifying LAG

Simon Trimmer (1):
ACPI: scan: Create platform device for CS35L56

Souradeep Chakrabarti (1):
net: mana: Fix MANA VF unload when hardware is unresponsive

Takashi Iwai (1):
tpm/tpm_tis: Disable interrupts for TUXEDO InfinityBook S 15/17 Gen7

Tao Ren (1):
hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100

Thomas Weißschuh (1):
cpufreq: amd-pstate: fix global sysfs attribute type

Tony Battersby (1):
scsi: core: Fix legacy /proc parsing buffer overflow

Torsten Duwe (2):
riscv/kexec: load initrd high in available memory riscv/kexec: handle R_RISCV_CALL_PLT relocation type

Vadim Pasternak (4):
platform: mellanox: Change register offset addresses
platform: mellanox: mlx-platform: Fix signals polarity and latch mask
platform: mellanox: mlx-platform: Modify graceful shutdown callback and power down mask
platform: mellanox: Fix order in exit flow

Vladimir Oltean (3):
PCI: move OF status = "disabled" detection to dev->match_driver
net: dsa: ocelot: call dsa_tag_8021q_unregister() under rtnl_lock() on driver remove
net: enetc: reimplement RFS/RSS memory clearing as PCI quirk

William Breathitt Gray (1):
gpio: ws16c48: Fix off-by-one error in WS16C48 resource region extent

Xiang Yang (1):

      mptcp: fix the incorrect judgment for msk->cb_flags

Xin Li (1):
x86/vdso: Choose the right GDT_ENTRY_CPUNODE for 32-bit getcpu() on 64-bit kernel

Xu Kuohai (3):
selftests/bpf: fix a CI failure caused by vsock sockmap test bpf, sockmap: Fix map type error in sock_map_del_link bpf, sockmap: Fix bug that strp_done cannot be called

Yevgeny Kliteynik (1):
net/mlx5: DR, Fix wrong allocation of modify hdr pattern

Yiyuan Guo (1):
iio: cros_ec: Fix the allocation size for cros_ec_command

Yonglong Liu (1):
net: hns3: fix deadlock issue when externel_lb and reset are executed together

Yoshihiro Shimoda (1):
scsi: ufs: renesas: Fix private allocation

Zhang Jianhua (1):
dmaengine: owl-dma: Modify mismatched function name

Zhu Wang (2):
scsi: snic: Fix possible memory leak if device_add() fails
scsi: core: Fix possible memory leak if device_add() fails

Ziyang Xuan (1):
bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves

author maintainer
#1 lore raw
Makefile +1 -1
index bf463afef54b..d0efd84bb7d0 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 4
-SUBLEVEL = 10
+SUBLEVEL = 11
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/alpha/kernel/setup.c +1 -2
index 33bf3a627002..45a920ba4921 100644
@@ -385,8 +385,7 @@ setup_memory(void *kernel_end)
 #endif /* CONFIG_BLK_DEV_INITRD */
 }
 
-int __init
-page_is_ram(unsigned long pfn)
+int page_is_ram(unsigned long pfn)
 {
 	struct memclust_struct * cluster;
 	struct memdesc_struct * memdesc;
arch/arm64/kvm/arm.c +4 -11
index 3a2606ba3e58..62b164a0041f 100644
@@ -1800,8 +1800,6 @@ static void _kvm_arch_hardware_enable(void *discard)
 
 int kvm_arch_hardware_enable(void)
 {
-	int was_enabled;
-
 	/*
 	 * Most calls to this function are made with migration
 	 * disabled, but not with preemption disabled. The former is
@@ -1810,13 +1808,10 @@ int kvm_arch_hardware_enable(void)
 	 */
 	preempt_disable();
 
-	was_enabled = __this_cpu_read(kvm_arm_hardware_enabled);
 	_kvm_arch_hardware_enable(NULL);
 
-	if (!was_enabled) {
-		kvm_vgic_cpu_up();
-		kvm_timer_cpu_up();
-	}
+	kvm_vgic_cpu_up();
+	kvm_timer_cpu_up();
 
 	preempt_enable();
 
@@ -1833,10 +1828,8 @@ static void _kvm_arch_hardware_disable(void *discard)
 
 void kvm_arch_hardware_disable(void)
 {
-	if (__this_cpu_read(kvm_arm_hardware_enabled)) {
-		kvm_timer_cpu_down();
-		kvm_vgic_cpu_down();
-	}
+	kvm_timer_cpu_down();
+	kvm_vgic_cpu_down();
 
 	if (!is_protected_kvm_enabled())
 		_kvm_arch_hardware_disable(NULL);
arch/parisc/Kconfig.debug +1 -1
index 3a059cb5e112..56d35315f88e 100644
@@ -2,7 +2,7 @@
 #
 config LIGHTWEIGHT_SPINLOCK_CHECK
 	bool "Enable lightweight spinlock checks"
-	depends on SMP && !DEBUG_SPINLOCK
+	depends on DEBUG_KERNEL && SMP && !DEBUG_SPINLOCK
 	default y
 	help
 	  Add checks with low performance impact to the spinlock functions
arch/parisc/include/asm/spinlock.h +0 -2
index edfcb9858bcb..0b326e52255e 100644
@@ -7,8 +7,6 @@
 #include <asm/processor.h>
 #include <asm/spinlock_types.h>
 
-#define SPINLOCK_BREAK_INSN	0x0000c006	/* break 6,6 */
-
 static inline void arch_spin_val_check(int lock_val)
 {
 	if (IS_ENABLED(CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK))
arch/parisc/include/asm/spinlock_types.h +6 -0
index d65934079ebd..efd06a897c6a 100644
@@ -4,6 +4,10 @@
 
 #define __ARCH_SPIN_LOCK_UNLOCKED_VAL	0x1a46
 
+#define SPINLOCK_BREAK_INSN	0x0000c006	/* break 6,6 */
+
+#ifndef __ASSEMBLY__
+
 typedef struct {
 #ifdef CONFIG_PA20
 	volatile unsigned int slock;
@@ -27,6 +31,8 @@ typedef struct {
 	volatile unsigned int	counter;
 } arch_rwlock_t;
 
+#endif /* __ASSEMBLY__ */
+
 #define __ARCH_RW_LOCK_UNLOCKED__       0x01000000
 #define __ARCH_RW_LOCK_UNLOCKED         { .lock_mutex = __ARCH_SPIN_LOCK_UNLOCKED, \
 					.counter = __ARCH_RW_LOCK_UNLOCKED__ }
arch/parisc/kernel/sys_parisc.c +5 -10
index 465b7cb9d44f..39acccabf2ed 100644
@@ -26,17 +26,12 @@
 #include <linux/compat.h>
 
 /*
- * Construct an artificial page offset for the mapping based on the virtual
+ * Construct an artificial page offset for the mapping based on the physical
  * address of the kernel file mapping variable.
- * If filp is zero the calculated pgoff value aliases the memory of the given
- * address. This is useful for io_uring where the mapping shall alias a kernel
- * address and a userspace adress where both the kernel and the userspace
- * access the same memory region.
  */
-#define GET_FILP_PGOFF(filp, addr)		\
-	((filp ? (((unsigned long) filp->f_mapping) >> 8)	\
-		 & ((SHM_COLOUR-1) >> PAGE_SHIFT) : 0UL)	\
-	  + (addr >> PAGE_SHIFT))
+#define GET_FILP_PGOFF(filp)		\
+	(filp ? (((unsigned long) filp->f_mapping) >> 8)	\
+		 & ((SHM_COLOUR-1) >> PAGE_SHIFT) : 0UL)
 
 static unsigned long shared_align_offset(unsigned long filp_pgoff,
 					 unsigned long pgoff)
@@ -116,7 +111,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
 	do_color_align = 0;
 	if (filp || (flags & MAP_SHARED))
 		do_color_align = 1;
-	filp_pgoff = GET_FILP_PGOFF(filp, addr);
+	filp_pgoff = GET_FILP_PGOFF(filp);
 
 	if (flags & MAP_FIXED) {
 		/* Even MAP_FIXED mappings must reside within TASK_SIZE */
arch/parisc/kernel/syscall.S +20 -3
index 1373e5129868..1f51aa9c8230 100644
@@ -39,6 +39,7 @@ registers).
 #include <asm/assembly.h>
 #include <asm/processor.h>
 #include <asm/cache.h>
+#include <asm/spinlock_types.h>
 
 #include <linux/linkage.h>
 
@@ -66,6 +67,16 @@ registers).
 	stw	\reg1, 0(%sr2,\reg2)
 	.endm
 
+	/* raise exception if spinlock content is not zero or
+	 * __ARCH_SPIN_LOCK_UNLOCKED_VAL */
+	.macro	spinlock_check spin_val,tmpreg
+#ifdef CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK
+	ldi	__ARCH_SPIN_LOCK_UNLOCKED_VAL, \tmpreg
+	andcm,=	\spin_val, \tmpreg, %r0
+	.word	SPINLOCK_BREAK_INSN
+#endif
+	.endm
+
 	.text
 
 	.import syscall_exit,code
@@ -508,7 +519,8 @@ lws_start:
 
 lws_exit_noerror:
 	lws_pagefault_enable	%r1,%r21
-	stw,ma	%r20, 0(%sr2,%r20)
+	ldi	__ARCH_SPIN_LOCK_UNLOCKED_VAL, %r21
+	stw,ma	%r21, 0(%sr2,%r20)
 	ssm	PSW_SM_I, %r0
 	b	lws_exit
 	copy	%r0, %r21
@@ -521,7 +533,8 @@ lws_wouldblock:
 
 lws_pagefault:
 	lws_pagefault_enable	%r1,%r21
-	stw,ma	%r20, 0(%sr2,%r20)
+	ldi	__ARCH_SPIN_LOCK_UNLOCKED_VAL, %r21
+	stw,ma	%r21, 0(%sr2,%r20)
 	ssm	PSW_SM_I, %r0
 	ldo	3(%r0),%r28
 	b	lws_exit
@@ -619,6 +632,7 @@ lws_compare_and_swap:
 
 	/* Try to acquire the lock */
 	LDCW	0(%sr2,%r20), %r28
+	spinlock_check	%r28, %r21
 	comclr,<>	%r0, %r28, %r0
 	b,n	lws_wouldblock
 
@@ -772,6 +786,7 @@ cas2_lock_start:
 
 	/* Try to acquire the lock */
 	LDCW	0(%sr2,%r20), %r28
+	spinlock_check	%r28, %r21
 	comclr,<>	%r0, %r28, %r0
 	b,n	lws_wouldblock
 
@@ -1001,6 +1016,7 @@ atomic_xchg_start:
 
 	/* Try to acquire the lock */
 	LDCW	0(%sr2,%r20), %r28
+	spinlock_check	%r28, %r21
 	comclr,<>	%r0, %r28, %r0
 	b,n	lws_wouldblock
 
@@ -1199,6 +1215,7 @@ atomic_store_start:
 
 	/* Try to acquire the lock */
 	LDCW	0(%sr2,%r20), %r28
+	spinlock_check	%r28, %r21
 	comclr,<>	%r0, %r28, %r0
 	b,n	lws_wouldblock
 
@@ -1330,7 +1347,7 @@ ENTRY(lws_lock_start)
 	/* lws locks */
 	.rept 256
 	/* Keep locks aligned at 16-bytes */
-	.word 1
+	.word __ARCH_SPIN_LOCK_UNLOCKED_VAL
 	.word 0 
 	.word 0
 	.word 0
arch/riscv/include/asm/mmio.h +8 -8
index aff6c33ab0c0..4c58ee7f95ec 100644
@@ -101,9 +101,9 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
  * Relaxed I/O memory access primitives. These follow the Device memory
  * ordering rules but do not guarantee any ordering relative to Normal memory
  * accesses.  These are defined to order the indicated access (either a read or
- * write) with all other I/O memory accesses. Since the platform specification
- * defines that all I/O regions are strongly ordered on channel 2, no explicit
- * fences are required to enforce this ordering.
+ * write) with all other I/O memory accesses to the same peripheral. Since the
+ * platform specification defines that all I/O regions are strongly ordered on
+ * channel 0, no explicit fences are required to enforce this ordering.
  */
 /* FIXME: These are now the same as asm-generic */
 #define __io_rbr()		do {} while (0)
@@ -125,14 +125,14 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
 #endif
 
 /*
- * I/O memory access primitives. Reads are ordered relative to any
- * following Normal memory access. Writes are ordered relative to any prior
- * Normal memory access.  The memory barriers here are necessary as RISC-V
+ * I/O memory access primitives.  Reads are ordered relative to any following
+ * Normal memory read and delay() loop.  Writes are ordered relative to any
+ * prior Normal memory write.  The memory barriers here are necessary as RISC-V
  * doesn't define any ordering between the memory space and the I/O space.
  */
 #define __io_br()	do {} while (0)
-#define __io_ar(v)	__asm__ __volatile__ ("fence i,r" : : : "memory")
-#define __io_bw()	__asm__ __volatile__ ("fence w,o" : : : "memory")
+#define __io_ar(v)	({ __asm__ __volatile__ ("fence i,ir" : : : "memory"); })
+#define __io_bw()	({ __asm__ __volatile__ ("fence w,o" : : : "memory"); })
 #define __io_aw()	mmiowb_set_pending()
 
 #define readb(c)	({ u8  __v; __io_br(); __v = readb_cpu(c); __io_ar(__v); __v; })
arch/riscv/include/asm/pgtable.h +2 -0
index 75970ee2bda2..b5680c940c1e 100644
@@ -188,6 +188,8 @@ extern struct pt_alloc_ops pt_ops __initdata;
 #define PAGE_KERNEL_IO		__pgprot(_PAGE_IOREMAP)
 
 extern pgd_t swapper_pg_dir[];
+extern pgd_t trampoline_pg_dir[];
+extern pgd_t early_pg_dir[];
 
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
 static inline int pmd_present(pmd_t pmd)
arch/riscv/kernel/elf_kexec.c +2 -1
index 5372b708fae2..c08bb5c3b385 100644
@@ -281,7 +281,7 @@ static void *elf_kexec_load(struct kimage *image, char *kernel_buf,
 		kbuf.buffer = initrd;
 		kbuf.bufsz = kbuf.memsz = initrd_len;
 		kbuf.buf_align = PAGE_SIZE;
-		kbuf.top_down = false;
+		kbuf.top_down = true;
 		kbuf.mem = KEXEC_BUF_MEM_UNKNOWN;
 		ret = kexec_add_buffer(&kbuf);
 		if (ret)
@@ -425,6 +425,7 @@ int arch_kexec_apply_relocations_add(struct purgatory_info *pi,
 		 * sym, instead of searching the whole relsec.
 		 */
 		case R_RISCV_PCREL_HI20:
+		case R_RISCV_CALL_PLT:
 		case R_RISCV_CALL:
 			*(u64 *)loc = CLEAN_IMM(UITYPE, *(u64 *)loc) |
 				 ENCODE_UJTYPE_IMM(val - addr);
arch/riscv/mm/init.c +11 -5
index 93e7bb9f67fd..7e62b4dec650 100644
@@ -26,12 +26,13 @@
 #include <linux/kfence.h>
 
 #include <asm/fixmap.h>
-#include <asm/tlbflush.h>
-#include <asm/sections.h>
-#include <asm/soc.h>
 #include <asm/io.h>
-#include <asm/ptdump.h>
 #include <asm/numa.h>
+#include <asm/pgtable.h>
+#include <asm/ptdump.h>
+#include <asm/sections.h>
+#include <asm/soc.h>
+#include <asm/tlbflush.h>
 
 #include "../kernel/head.h"
 
@@ -214,8 +215,13 @@ static void __init setup_bootmem(void)
 	memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start);
 
 	phys_ram_end = memblock_end_of_DRAM();
+
+	/*
+	 * Make sure we align the start of the memory on a PMD boundary so that
+	 * at worst, we map the linear mapping with PMD mappings.
+	 */
 	if (!IS_ENABLED(CONFIG_XIP_KERNEL))
-		phys_ram_base = memblock_start_of_DRAM();
+		phys_ram_base = memblock_start_of_DRAM() & PMD_MASK;
 
 	/*
 	 * In 64-bit, any use of __va/__pa before this point is wrong as we
arch/riscv/mm/kasan_init.c +0 -1
index 8fc0efcf905c..a01bc15dce24 100644
@@ -22,7 +22,6 @@
  * region is not and then we have to go down to the PUD level.
  */
 
-extern pgd_t early_pg_dir[PTRS_PER_PGD];
 pgd_t tmp_pg_dir[PTRS_PER_PGD] __page_aligned_bss;
 p4d_t tmp_p4d[PTRS_PER_P4D] __page_aligned_bss;
 pud_t tmp_pud[PTRS_PER_PUD] __page_aligned_bss;
arch/x86/boot/compressed/idt_64.c +8 -1
index 6debb816e83d..3cdf94b41456 100644
@@ -63,7 +63,14 @@ void load_stage2_idt(void)
 	set_idt_entry(X86_TRAP_PF, boot_page_fault);
 
 #ifdef CONFIG_AMD_MEM_ENCRYPT
-	set_idt_entry(X86_TRAP_VC, boot_stage2_vc);
+	/*
+	 * Clear the second stage #VC handler in case guest types
+	 * needing #VC have not been detected.
+	 */
+	if (sev_status & BIT(1))
+		set_idt_entry(X86_TRAP_VC, boot_stage2_vc);
+	else
+		set_idt_entry(X86_TRAP_VC, NULL);
 #endif
 
 	load_boot_idt(&boot_idt_desc);
arch/x86/boot/compressed/sev.c +35 -2
index 014b89c89088..91832133c1e8 100644
@@ -352,13 +352,46 @@ void sev_enable(struct boot_params *bp)
 	if (bp)
 		bp->cc_blob_address = 0;
 
+	/*
+	 * Do an initial SEV capability check before snp_init() which
+	 * loads the CPUID page and the same checks afterwards are done
+	 * without the hypervisor and are trustworthy.
+	 *
+	 * If the HV fakes SEV support, the guest will crash'n'burn
+	 * which is good enough.
+	 */
+
+	/* Check for the SME/SEV support leaf */
+	eax = 0x80000000;
+	ecx = 0;
+	native_cpuid(&eax, &ebx, &ecx, &edx);
+	if (eax < 0x8000001f)
+		return;
+
+	/*
+	 * Check for the SME/SEV feature:
+	 *   CPUID Fn8000_001F[EAX]
+	 *   - Bit 0 - Secure Memory Encryption support
+	 *   - Bit 1 - Secure Encrypted Virtualization support
+	 *   CPUID Fn8000_001F[EBX]
+	 *   - Bits 5:0 - Pagetable bit position used to indicate encryption
+	 */
+	eax = 0x8000001f;
+	ecx = 0;
+	native_cpuid(&eax, &ebx, &ecx, &edx);
+	/* Check whether SEV is supported */
+	if (!(eax & BIT(1)))
+		return;
+
 	/*
 	 * Setup/preliminary detection of SNP. This will be sanity-checked
 	 * against CPUID/MSR values later.
 	 */
 	snp = snp_init(bp);
 
-	/* Check for the SME/SEV support leaf */
+	/* Now repeat the checks with the SNP CPUID table. */
+
+	/* Recheck the SME/SEV support leaf */
 	eax = 0x80000000;
 	ecx = 0;
 	native_cpuid(&eax, &ebx, &ecx, &edx);
@@ -366,7 +399,7 @@ void sev_enable(struct boot_params *bp)
 		return;
 
 	/*
-	 * Check for the SME/SEV feature:
+	 * Recheck for the SME/SEV feature:
 	 *   CPUID Fn8000_001F[EAX]
 	 *   - Bit 0 - Secure Memory Encryption support
 	 *   - Bit 1 - Secure Encrypted Virtualization support
arch/x86/entry/vdso/vma.c +2 -2
index 11a5c68d1218..7645730dc228 100644
@@ -299,8 +299,8 @@ static unsigned long vdso_addr(unsigned long start, unsigned len)
 
 	/* Round the lowest possible end address up to a PMD boundary. */
 	end = (start + len + PMD_SIZE - 1) & PMD_MASK;
-	if (end >= TASK_SIZE_MAX)
-		end = TASK_SIZE_MAX;
+	if (end >= DEFAULT_MAP_WINDOW)
+		end = DEFAULT_MAP_WINDOW;
 	end -= len;
 
 	if (end > start) {
arch/x86/include/asm/acpi.h +2 -0
index 8eb74cf386db..2888c0ee4df0 100644
@@ -15,6 +15,7 @@
 #include <asm/mpspec.h>
 #include <asm/x86_init.h>
 #include <asm/cpufeature.h>
+#include <asm/irq_vectors.h>
 
 #ifdef CONFIG_ACPI_APEI
 # include <asm/pgtable_types.h>
@@ -31,6 +32,7 @@ extern int acpi_skip_timer_override;
 extern int acpi_use_timer_override;
 extern int acpi_fix_pin2_polarity;
 extern int acpi_disable_cmcff;
+extern bool acpi_int_src_ovr[NR_IRQS_LEGACY];
 
 extern u8 acpi_sci_flags;
 extern u32 acpi_sci_override_gsi;
arch/x86/include/asm/linkage.h +1 -1
index 0953aa32a324..97a3de7892d3 100644
@@ -21,7 +21,7 @@
 #define FUNCTION_PADDING
 #endif
 
-#if (CONFIG_FUNCTION_ALIGNMENT > 8) && !defined(__DISABLE_EXPORTS) && !defined(BULID_VDSO)
+#if (CONFIG_FUNCTION_ALIGNMENT > 8) && !defined(__DISABLE_EXPORTS) && !defined(BUILD_VDSO)
 # define __FUNC_ALIGN		__ALIGN; FUNCTION_PADDING
 #else
 # define __FUNC_ALIGN		__ALIGN
arch/x86/include/asm/processor.h +2 -0
index e8db1cff76fd..54100710605f 100644
@@ -732,4 +732,6 @@ bool arch_is_platform_page(u64 paddr);
 #define arch_is_platform_page arch_is_platform_page
 #endif
 
+extern bool gds_ucode_mitigated(void);
+
 #endif /* _ASM_X86_PROCESSOR_H */
arch/x86/include/asm/segment.h +1 -1
index 794f69625780..9d6411c65920 100644
@@ -56,7 +56,7 @@
 
 #define GDT_ENTRY_INVALID_SEG	0
 
-#ifdef CONFIG_X86_32
+#if defined(CONFIG_X86_32) && !defined(BUILD_VDSO32_64)
 /*
  * The layout of the per-CPU GDT under Linux:
  *
arch/x86/kernel/acpi/boot.c +4 -0
index 21b542a6866c..53369c57751e 100644
@@ -52,6 +52,7 @@ int acpi_lapic;
 int acpi_ioapic;
 int acpi_strict;
 int acpi_disable_cmcff;
+bool acpi_int_src_ovr[NR_IRQS_LEGACY];
 
 /* ACPI SCI override configuration */
 u8 acpi_sci_flags __initdata;
@@ -588,6 +589,9 @@ acpi_parse_int_src_ovr(union acpi_subtable_headers * header,
 
 	acpi_table_print_madt_entry(&header->common);
 
+	if (intsrc->source_irq < NR_IRQS_LEGACY)
+		acpi_int_src_ovr[intsrc->source_irq] = true;
+
 	if (intsrc->source_irq == acpi_gbl_FADT.sci_interrupt) {
 		acpi_sci_ioapic_setup(intsrc->source_irq,
 				      intsrc->inti_flags & ACPI_MADT_POLARITY_MASK,
arch/x86/kernel/cpu/amd.c +1 -0
index c37a3a5cdabd..0b5f33cb32b5 100644
@@ -73,6 +73,7 @@ static const int amd_erratum_1054[] =
 static const int amd_zenbleed[] =
 	AMD_LEGACY_ERRATUM(AMD_MODEL_RANGE(0x17, 0x30, 0x0, 0x4f, 0xf),
 			   AMD_MODEL_RANGE(0x17, 0x60, 0x0, 0x7f, 0xf),
+			   AMD_MODEL_RANGE(0x17, 0x90, 0x0, 0x91, 0xf),
 			   AMD_MODEL_RANGE(0x17, 0xa0, 0x0, 0xaf, 0xf));
 
 static const int amd_div0[] =
arch/x86/kernel/vmlinux.lds.S +9 -3
index 84f741b06376..bac2e2949f01 100644
@@ -529,11 +529,17 @@ INIT_PER_CPU(irq_stack_backing_store);
 
 #ifdef CONFIG_CPU_SRSO
 /*
- * GNU ld cannot do XOR so do: (A | B) - (A & B) in order to compute the XOR
+ * GNU ld cannot do XOR until 2.41.
+ * https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=f6f78318fca803c4907fb8d7f6ded8295f1947b1
+ *
+ * LLVM lld cannot do XOR until lld-17.
+ * https://github.com/llvm/llvm-project/commit/fae96104d4378166cbe5c875ef8ed808a356f3fb
+ *
+ * Instead do: (A | B) - (A & B) in order to compute the XOR
  * of the two function addresses:
  */
-. = ASSERT(((srso_untrain_ret_alias | srso_safe_ret_alias) -
-		(srso_untrain_ret_alias & srso_safe_ret_alias)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
+. = ASSERT(((ABSOLUTE(srso_untrain_ret_alias) | srso_safe_ret_alias) -
+		(ABSOLUTE(srso_untrain_ret_alias) & srso_safe_ret_alias)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
 		"SRSO function pair won't alias");
 #endif
 
arch/x86/kvm/svm/sev.c +49 -45

207 lines not on this page · raw message

arch/x86/kvm/svm/svm.h +26 -0
index f44751dd8d5d..ece0d5959567 100644
@@ -190,10 +190,12 @@ struct vcpu_sev_es_state {
 	/* SEV-ES support */
 	struct sev_es_save_area *vmsa;
 	struct ghcb *ghcb;
+	u8 valid_bitmap[16];
 	struct kvm_host_map ghcb_map;
 	bool received_first_sipi;
 
 	/* SEV-ES scratch area support */
+	u64 sw_scratch;
 	void *ghcb_sa;
 	u32 ghcb_sa_len;
 	bool ghcb_sa_sync;
@@ -745,4 +747,28 @@ void sev_es_unmap_ghcb(struct vcpu_svm *svm);
 void __svm_sev_es_vcpu_run(struct vcpu_svm *svm, bool spec_ctrl_intercepted);
 void __svm_vcpu_run(struct vcpu_svm *svm, bool spec_ctrl_intercepted);
 
+#define DEFINE_KVM_GHCB_ACCESSORS(field)						\
+	static __always_inline bool kvm_ghcb_##field##_is_valid(const struct vcpu_svm *svm) \
+	{									\
+		return test_bit(GHCB_BITMAP_IDX(field),				\
+				(unsigned long *)&svm->sev_es.valid_bitmap);	\
+	}									\
+										\
+	static __always_inline u64 kvm_ghcb_get_##field##_if_valid(struct vcpu_svm *svm, struct ghcb *ghcb) \
+	{									\
+		return kvm_ghcb_##field##_is_valid(svm) ? ghcb->save.field : 0;	\
+	}									\
+
+DEFINE_KVM_GHCB_ACCESSORS(cpl)
+DEFINE_KVM_GHCB_ACCESSORS(rax)
+DEFINE_KVM_GHCB_ACCESSORS(rcx)
+DEFINE_KVM_GHCB_ACCESSORS(rdx)
+DEFINE_KVM_GHCB_ACCESSORS(rbx)
+DEFINE_KVM_GHCB_ACCESSORS(rsi)
+DEFINE_KVM_GHCB_ACCESSORS(sw_exit_code)
+DEFINE_KVM_GHCB_ACCESSORS(sw_exit_info_1)
+DEFINE_KVM_GHCB_ACCESSORS(sw_exit_info_2)
+DEFINE_KVM_GHCB_ACCESSORS(sw_scratch)
+DEFINE_KVM_GHCB_ACCESSORS(xcr0)
+
 #endif
arch/x86/kvm/x86.c +0 -2
index a96f0f775ae2..7c9f3b1b42ba 100644
@@ -314,8 +314,6 @@ u64 __read_mostly host_xcr0;
 
 static struct kmem_cache *x86_emulator_cache;
 
-extern bool gds_ucode_mitigated(void);
-
 /*
  * When called, it means the previous get/set msr reached an invalid msr.
  * Return true if we want to ignore/silent this failed msr access.
drivers/accel/ivpu/ivpu_gem.c +8 -0
index 52b339aefadc..9967fcfa27ec 100644
@@ -173,6 +173,9 @@ static void internal_free_pages_locked(struct ivpu_bo *bo)
 {
 	unsigned int i, npages = bo->base.size >> PAGE_SHIFT;
 
+	if (ivpu_bo_cache_mode(bo) != DRM_IVPU_BO_CACHED)
+		set_pages_array_wb(bo->pages, bo->base.size >> PAGE_SHIFT);
+
 	for (i = 0; i < npages; i++)
 		put_page(bo->pages[i]);
 
@@ -587,6 +590,11 @@ ivpu_bo_alloc_internal(struct ivpu_device *vdev, u64 vpu_addr, u64 size, u32 fla
 	if (ivpu_bo_cache_mode(bo) != DRM_IVPU_BO_CACHED)
 		drm_clflush_pages(bo->pages, bo->base.size >> PAGE_SHIFT);
 
+	if (bo->flags & DRM_IVPU_BO_WC)
+		set_pages_array_wc(bo->pages, bo->base.size >> PAGE_SHIFT);
+	else if (bo->flags & DRM_IVPU_BO_UNCACHED)
+		set_pages_array_uc(bo->pages, bo->base.size >> PAGE_SHIFT);
+
 	prot = ivpu_bo_pgprot(bo, PAGE_KERNEL);
 	bo->kvaddr = vmap(bo->pages, bo->base.size >> PAGE_SHIFT, VM_MAP, prot);
 	if (!bo->kvaddr) {
drivers/acpi/resource.c +64 -0

82 lines not on this page · raw message

drivers/acpi/scan.c +1 -0
index 0c6f06abe3f4..c28c8d5ca0c8 100644
@@ -1712,6 +1712,7 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device)
 		{"BSG1160", },
 		{"BSG2150", },
 		{"CSC3551", },
+		{"CSC3556", },
 		{"INT33FE", },
 		{"INT3515", },
 		/* Non-conforming _HID for Cirrus Logic already released */
drivers/android/binder.c +1 -0
index 8fb7672021ee..16ec3cb143c3 100644
@@ -6610,6 +6610,7 @@ static int __init binder_init(void)
 
 err_alloc_device_names_failed:
 	debugfs_remove_recursive(binder_debugfs_dir_entry_root);
+	binder_alloc_shrinker_exit();
 
 	return ret;
 }
drivers/android/binder_alloc.c +6 -0
index 662a2a2e2e84..e3db8297095a 100644
@@ -1087,6 +1087,12 @@ int binder_alloc_shrinker_init(void)
 	return ret;
 }
 
+void binder_alloc_shrinker_exit(void)
+{
+	unregister_shrinker(&binder_shrinker);
+	list_lru_destroy(&binder_alloc_lru);
+}
+
 /**
  * check_buffer() - verify that buffer/offset is safe to access
  * @alloc: binder_alloc for this proc
drivers/android/binder_alloc.h +1 -0
index 138d1d5af9ce..dc1e2b01dd64 100644
@@ -129,6 +129,7 @@ extern struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc,
 						  int pid);
 extern void binder_alloc_init(struct binder_alloc *alloc);
 extern int binder_alloc_shrinker_init(void);
+extern void binder_alloc_shrinker_exit(void);
 extern void binder_alloc_vma_close(struct binder_alloc *alloc);
 extern struct binder_buffer *
 binder_alloc_prepare_to_free(struct binder_alloc *alloc,
drivers/block/zram/zram_drv.c +20 -12
index f6d90f1ba5cf..7d00911f6c5a 100644
@@ -1870,15 +1870,16 @@ static void zram_bio_discard(struct zram *zram, struct bio *bio)
 
 static void zram_bio_read(struct zram *zram, struct bio *bio)
 {
-	struct bvec_iter iter;
-	struct bio_vec bv;
-	unsigned long start_time;
+	unsigned long start_time = bio_start_io_acct(bio);
+	struct bvec_iter iter = bio->bi_iter;
 
-	start_time = bio_start_io_acct(bio);
-	bio_for_each_segment(bv, bio, iter) {
+	do {
 		u32 index = iter.bi_sector >> SECTORS_PER_PAGE_SHIFT;
 		u32 offset = (iter.bi_sector & (SECTORS_PER_PAGE - 1)) <<
 				SECTOR_SHIFT;
+		struct bio_vec bv = bio_iter_iovec(bio, iter);
+
+		bv.bv_len = min_t(u32, bv.bv_len, PAGE_SIZE - offset);
 
 		if (zram_bvec_read(zram, &bv, index, offset, bio) < 0) {
 			atomic64_inc(&zram->stats.failed_reads);
@@ -1890,22 +1891,26 @@ static void zram_bio_read(struct zram *zram, struct bio *bio)
 		zram_slot_lock(zram, index);
 		zram_accessed(zram, index);
 		zram_slot_unlock(zram, index);
-	}
+
+		bio_advance_iter_single(bio, &iter, bv.bv_len);
+	} while (iter.bi_size);
+
 	bio_end_io_acct(bio, start_time);
 	bio_endio(bio);
 }
 
 static void zram_bio_write(struct zram *zram, struct bio *bio)
 {
-	struct bvec_iter iter;
-	struct bio_vec bv;
-	unsigned long start_time;
+	unsigned long start_time = bio_start_io_acct(bio);
+	struct bvec_iter iter = bio->bi_iter;
 
-	start_time = bio_start_io_acct(bio);
-	bio_for_each_segment(bv, bio, iter) {
+	do {
 		u32 index = iter.bi_sector >> SECTORS_PER_PAGE_SHIFT;
 		u32 offset = (iter.bi_sector & (SECTORS_PER_PAGE - 1)) <<
 				SECTOR_SHIFT;
+		struct bio_vec bv = bio_iter_iovec(bio, iter);
+
+		bv.bv_len = min_t(u32, bv.bv_len, PAGE_SIZE - offset);
 
 		if (zram_bvec_write(zram, &bv, index, offset, bio) < 0) {
 			atomic64_inc(&zram->stats.failed_writes);
@@ -1916,7 +1921,10 @@ static void zram_bio_write(struct zram *zram, struct bio *bio)
 		zram_slot_lock(zram, index);
 		zram_accessed(zram, index);
 		zram_slot_unlock(zram, index);
-	}
+
+		bio_advance_iter_single(bio, &iter, bv.bv_len);
+	} while (iter.bi_size);
+
 	bio_end_io_acct(bio, start_time);
 	bio_endio(bio);
 }
drivers/char/tpm/tpm-chip.c +14 -69

109 lines not on this page · raw message

drivers/char/tpm/tpm_crb.c +30 -0
index 1a5d09b18513..9eb1a1859012 100644
@@ -463,6 +463,28 @@ static bool crb_req_canceled(struct tpm_chip *chip, u8 status)
 	return (cancel & CRB_CANCEL_INVOKE) == CRB_CANCEL_INVOKE;
 }
 
+static int crb_check_flags(struct tpm_chip *chip)
+{
+	u32 val;
+	int ret;
+
+	ret = crb_request_locality(chip, 0);
+	if (ret)
+		return ret;
+
+	ret = tpm2_get_tpm_pt(chip, TPM2_PT_MANUFACTURER, &val, NULL);
+	if (ret)
+		goto release;
+
+	if (val == 0x414D4400U /* AMD */)
+		chip->flags |= TPM_CHIP_FLAG_HWRNG_DISABLED;
+
+release:
+	crb_relinquish_locality(chip, 0);
+
+	return ret;
+}
+
 static const struct tpm_class_ops tpm_crb = {
 	.flags = TPM_OPS_AUTO_STARTUP,
 	.status = crb_status,
@@ -800,6 +822,14 @@ static int crb_acpi_add(struct acpi_device *device)
 	chip->acpi_dev_handle = device->handle;
 	chip->flags = TPM_CHIP_FLAG_TPM2;
 
+	rc = tpm_chip_bootstrap(chip);
+	if (rc)
+		goto out;
+
+	rc = crb_check_flags(chip);
+	if (rc)
+		goto out;
+
 	rc = tpm_chip_register(chip);
 
 out:
drivers/char/tpm/tpm_tis.c +18 -2
index cc42cf3de960..7fa3d91042b2 100644
@@ -89,7 +89,7 @@ static inline void tpm_tis_iowrite32(u32 b, void __iomem *iobase, u32 addr)
 	tpm_tis_flush(iobase);
 }
 
-static int interrupts = -1;
+static int interrupts;
 module_param(interrupts, int, 0444);
 MODULE_PARM_DESC(interrupts, "Enable interrupts");
 
@@ -162,12 +162,28 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L590"),
 		},
 	},
+	{
+		.callback = tpm_tis_disable_irq,
+		.ident = "ThinkStation P620",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P620"),
+		},
+	},
+	{
+		.callback = tpm_tis_disable_irq,
+		.ident = "TUXEDO InfinityBook S 15/17 Gen7",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "TUXEDO InfinityBook S 15/17 Gen7"),
+		},
+	},
 	{
 		.callback = tpm_tis_disable_irq,
 		.ident = "UPX-TGL",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"),
 		},
 	},
 	{}
drivers/cpufreq/amd-pstate.c +5 -5
index a5764946434c..71a766bb6d5e 100644
@@ -986,8 +986,8 @@ static int amd_pstate_update_status(const char *buf, size_t size)
 	return 0;
 }
 
-static ssize_t show_status(struct kobject *kobj,
-			   struct kobj_attribute *attr, char *buf)
+static ssize_t status_show(struct device *dev,
+			   struct device_attribute *attr, char *buf)
 {
 	ssize_t ret;
 
@@ -998,7 +998,7 @@ static ssize_t show_status(struct kobject *kobj,
 	return ret;
 }
 
-static ssize_t store_status(struct kobject *a, struct kobj_attribute *b,
+static ssize_t status_store(struct device *a, struct device_attribute *b,
 			    const char *buf, size_t count)
 {
 	char *p = memchr(buf, '\n', count);
@@ -1017,7 +1017,7 @@ cpufreq_freq_attr_ro(amd_pstate_lowest_nonlinear_freq);
 cpufreq_freq_attr_ro(amd_pstate_highest_perf);
 cpufreq_freq_attr_rw(energy_performance_preference);
 cpufreq_freq_attr_ro(energy_performance_available_preferences);
-define_one_global_rw(status);
+static DEVICE_ATTR_RW(status);
 
 static struct freq_attr *amd_pstate_attr[] = {
 	&amd_pstate_max_freq,
@@ -1036,7 +1036,7 @@ static struct freq_attr *amd_pstate_epp_attr[] = {
 };
 
 static struct attribute *pstate_global_attributes[] = {
-	&status.attr,
+	&dev_attr_status.attr,
 	NULL
 };
 
drivers/cpuidle/cpuidle-psci-domain.c +13 -26
index c2d6d9c3c930..b88af1262f1a 100644
@@ -120,20 +120,6 @@ static void psci_pd_remove(void)
 	}
 }
 
-static bool psci_pd_try_set_osi_mode(void)
-{
-	int ret;
-
-	if (!psci_has_osi_support())
-		return false;
-
-	ret = psci_set_osi_mode(true);
-	if (ret)
-		return false;
-
-	return true;
-}
-
 static void psci_cpuidle_domain_sync_state(struct device *dev)
 {
 	/*
@@ -152,15 +138,12 @@ static int psci_cpuidle_domain_probe(struct platform_device *pdev)
 {
 	struct device_node *np = pdev->dev.of_node;
 	struct device_node *node;
-	bool use_osi;
+	bool use_osi = psci_has_osi_support();
 	int ret = 0, pd_count = 0;
 
 	if (!np)
 		return -ENODEV;
 
-	/* If OSI mode is supported, let's try to enable it. */
-	use_osi = psci_pd_try_set_osi_mode();
-
 	/*
 	 * Parse child nodes for the "#power-domain-cells" property and
 	 * initialize a genpd/genpd-of-provider pair when it's found.
@@ -170,33 +153,37 @@ static int psci_cpuidle_domain_probe(struct platform_device *pdev)
 			continue;
 
 		ret = psci_pd_init(node, use_osi);
-		if (ret)
-			goto put_node;
+		if (ret) {
+			of_node_put(node);
+			goto exit;
+		}
 
 		pd_count++;
 	}
 
 	/* Bail out if not using the hierarchical CPU topology. */
 	if (!pd_count)
-		goto no_pd;
+		return 0;
 
 	/* Link genpd masters/subdomains to model the CPU topology. */
 	ret = dt_idle_pd_init_topology(np);
 	if (ret)
 		goto remove_pd;
 
+	/* let's try to enable OSI. */
+	ret = psci_set_osi_mode(use_osi);
+	if (ret)
+		goto remove_pd;
+
 	pr_info("Initialized CPU PM domain topology using %s mode\n",
 		use_osi ? "OSI" : "PC");
 	return 0;
 
-put_node:
-	of_node_put(node);
 remove_pd:
+	dt_idle_pd_remove_topology(np);
 	psci_pd_remove();
+exit:
 	pr_err("failed to create CPU PM domains ret=%d\n", ret);
-no_pd:
-	if (use_osi)
-		psci_set_osi_mode(false);
 	return ret;
 }
 
drivers/cpuidle/dt_idle_genpd.c +24 -0
index b37165514d4e..1af63c189039 100644
@@ -152,6 +152,30 @@ int dt_idle_pd_init_topology(struct device_node *np)
 	return 0;
 }
 
+int dt_idle_pd_remove_topology(struct device_node *np)
+{
+	struct device_node *node;
+	struct of_phandle_args child, parent;
+	int ret;
+
+	for_each_child_of_node(np, node) {
+		if (of_parse_phandle_with_args(node, "power-domains",
+					"#power-domain-cells", 0, &parent))
+			continue;
+
+		child.np = node;
+		child.args_count = 0;
+		ret = of_genpd_remove_subdomain(&parent, &child);
+		of_node_put(parent.np);
+		if (ret) {
+			of_node_put(node);
+			return ret;
+		}
+	}
+
+	return 0;
+}
+
 struct device *dt_idle_attach_cpu(int cpu, const char *name)
 {
 	struct device *dev;
drivers/cpuidle/dt_idle_genpd.h +7 -0
index a95483d08a02..3be1f70f55b5 100644
@@ -14,6 +14,8 @@ struct generic_pm_domain *dt_idle_pd_alloc(struct device_node *np,
 
 int dt_idle_pd_init_topology(struct device_node *np);
 
+int dt_idle_pd_remove_topology(struct device_node *np);
+
 struct device *dt_idle_attach_cpu(int cpu, const char *name);
 
 void dt_idle_detach_cpu(struct device *dev);
@@ -36,6 +38,11 @@ static inline int dt_idle_pd_init_topology(struct device_node *np)
 	return 0;
 }
 
+static inline int dt_idle_pd_remove_topology(struct device_node *np)
+{
+	return 0;
+}
+
 static inline struct device *dt_idle_attach_cpu(int cpu, const char *name)
 {
 	return NULL;
drivers/dma/idxd/device.c +1 -3
index 5abbcc61c528..9a15f0d12c79 100644
@@ -384,9 +384,7 @@ static void idxd_wq_disable_cleanup(struct idxd_wq *wq)
 	wq->threshold = 0;
 	wq->priority = 0;
 	wq->enqcmds_retries = IDXD_ENQCMDS_RETRIES;
-	clear_bit(WQ_FLAG_DEDICATED, &wq->flags);
-	clear_bit(WQ_FLAG_BLOCK_ON_FAULT, &wq->flags);
-	clear_bit(WQ_FLAG_ATS_DISABLE, &wq->flags);
+	wq->flags = 0;
 	memset(wq->name, 0, WQ_NAME_SIZE);
 	wq->max_xfer_bytes = WQ_DEFAULT_MAX_XFER;
 	idxd_wq_set_max_batch_size(idxd->data->type, wq, WQ_DEFAULT_MAX_BATCH);
drivers/dma/mcf-edma.c +7 -6
index ebd8733f72ad..9413fad08a60 100644
@@ -190,7 +190,13 @@ static int mcf_edma_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
-	chans = pdata->dma_channels;
+	if (!pdata->dma_channels) {
+		dev_info(&pdev->dev, "setting default channel number to 64");
+		chans = 64;
+	} else {
+		chans = pdata->dma_channels;
+	}
+
 	len = sizeof(*mcf_edma) + sizeof(*mcf_chan) * chans;
 	mcf_edma = devm_kzalloc(&pdev->dev, len, GFP_KERNEL);
 	if (!mcf_edma)
@@ -202,11 +208,6 @@ static int mcf_edma_probe(struct platform_device *pdev)
 	mcf_edma->drvdata = &mcf_data;
 	mcf_edma->big_endian = 1;
 
-	if (!mcf_edma->n_chans) {
-		dev_info(&pdev->dev, "setting default channel number to 64");
-		mcf_edma->n_chans = 64;
-	}
-
 	mutex_init(&mcf_edma->fsl_edma_mutex);
 
 	mcf_edma->membase = devm_platform_ioremap_resource(pdev, 0);
drivers/dma/owl-dma.c +1 -1
index 95a462a1f511..b6e0ac8314e5 100644
@@ -192,7 +192,7 @@ struct owl_dma_pchan {
 };
 
 /**
- * struct owl_dma_pchan - Wrapper for DMA ENGINE channel
+ * struct owl_dma_vchan - Wrapper for DMA ENGINE channel
  * @vc: wrapped virtual channel
  * @pchan: the physical channel utilized by this channel
  * @txd: active transaction on this channel
drivers/dma/pl330.c +16 -2
index b4731fe6bbc1..3cf0b38387ae 100644
@@ -403,6 +403,12 @@ enum desc_status {
 	 * of a channel can be BUSY at any time.
 	 */
 	BUSY,
+	/*
+	 * Pause was called while descriptor was BUSY. Due to hardware
+	 * limitations, only termination is possible for descriptors
+	 * that have been paused.
+	 */
+	PAUSED,
 	/*
 	 * Sitting on the channel work_list but xfer done
 	 * by PL330 core
@@ -2041,7 +2047,7 @@ static inline void fill_queue(struct dma_pl330_chan *pch)
 	list_for_each_entry(desc, &pch->work_list, node) {
 
 		/* If already submitted */
-		if (desc->status == BUSY)
+		if (desc->status == BUSY || desc->status == PAUSED)
 			continue;
 
 		ret = pl330_submit_req(pch->thread, desc);
@@ -2326,6 +2332,7 @@ static int pl330_pause(struct dma_chan *chan)
 {
 	struct dma_pl330_chan *pch = to_pchan(chan);
 	struct pl330_dmac *pl330 = pch->dmac;
+	struct dma_pl330_desc *desc;
 	unsigned long flags;
 
 	pm_runtime_get_sync(pl330->ddma.dev);
@@ -2335,6 +2342,10 @@ static int pl330_pause(struct dma_chan *chan)
 	_stop(pch->thread);
 	spin_unlock(&pl330->lock);
 
+	list_for_each_entry(desc, &pch->work_list, node) {
+		if (desc->status == BUSY)
+			desc->status = PAUSED;
+	}
 	spin_unlock_irqrestore(&pch->lock, flags);
 	pm_runtime_mark_last_busy(pl330->ddma.dev);
 	pm_runtime_put_autosuspend(pl330->ddma.dev);
@@ -2425,7 +2436,7 @@ pl330_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
 		else if (running && desc == running)
 			transferred =
 				pl330_get_current_xferred_count(pch, desc);
-		else if (desc->status == BUSY)
+		else if (desc->status == BUSY || desc->status == PAUSED)
 			/*
 			 * Busy but not running means either just enqueued,
 			 * or finished and not yet marked done
@@ -2442,6 +2453,9 @@ pl330_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
 			case DONE:
 				ret = DMA_COMPLETE;
 				break;
+			case PAUSED:
+				ret = DMA_PAUSED;
+				break;
 			case PREP:
 			case BUSY:
 				ret = DMA_IN_PROGRESS;
drivers/dma/xilinx/xdma.c +4 -2
index 93ee298d52b8..e0bfd129d563 100644
@@ -668,6 +668,8 @@ static int xdma_set_vector_reg(struct xdma_device *xdev, u32 vec_tbl_start,
 			val |= irq_start << shift;
 			irq_start++;
 			irq_num--;
+			if (!irq_num)
+				break;
 		}
 
 		/* write IRQ register */
@@ -715,7 +717,7 @@ static int xdma_irq_init(struct xdma_device *xdev)
 		ret = request_irq(irq, xdma_channel_isr, 0,
 				  "xdma-c2h-channel", &xdev->c2h_chans[j]);
 		if (ret) {
-			xdma_err(xdev, "H2C channel%d request irq%d failed: %d",
+			xdma_err(xdev, "C2H channel%d request irq%d failed: %d",
 				 j, irq, ret);
 			goto failed_init_c2h;
 		}
@@ -892,7 +894,7 @@ static int xdma_probe(struct platform_device *pdev)
 	}
 
 	reg_base = devm_ioremap_resource(&pdev->dev, res);
-	if (!reg_base) {
+	if (IS_ERR(reg_base)) {
 		xdma_err(xdev, "ioremap failed");
 		goto failed;
 	}
drivers/gpio/gpio-sim.c +1 -0
index 8b49b0abacd5..f1f6f1c32987 100644
@@ -429,6 +429,7 @@ static int gpio_sim_add_bank(struct fwnode_handle *swnode, struct device *dev)
 	gc->set_config = gpio_sim_set_config;
 	gc->to_irq = gpio_sim_to_irq;
 	gc->free = gpio_sim_free;
+	gc->can_sleep = true;
 
 	ret = devm_gpiochip_add_data(dev, gc, chip);
 	if (ret)
drivers/gpio/gpio-ws16c48.c +1 -1
index e73885a4dc32..afb42a8e916f 100644
@@ -18,7 +18,7 @@
 #include <linux/spinlock.h>
 #include <linux/types.h>
 
-#define WS16C48_EXTENT 10
+#define WS16C48_EXTENT 11
 #define MAX_NUM_WS16C48 max_num_isa_dev(WS16C48_EXTENT)
 
 static unsigned int base[MAX_NUM_WS16C48];
drivers/gpu/drm/amd/amdgpu/amdgpu.h +4 -0
index 129081ffa0a5..5e9df7158ea4 100644
@@ -282,6 +282,9 @@ extern int amdgpu_sg_display;
 #define AMDGPU_SMARTSHIFT_MAX_BIAS (100)
 #define AMDGPU_SMARTSHIFT_MIN_BIAS (-100)
 
+/* Extra time delay(in ms) to eliminate the influence of temperature momentary fluctuation */
+#define AMDGPU_SWCTF_EXTRA_DELAY		50
+
 struct amdgpu_device;
 struct amdgpu_irq_src;
 struct amdgpu_fpriv;
@@ -1246,6 +1249,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
 void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);
 int amdgpu_device_pci_reset(struct amdgpu_device *adev);
 bool amdgpu_device_need_post(struct amdgpu_device *adev);
+bool amdgpu_sg_display_supported(struct amdgpu_device *adev);
 bool amdgpu_device_pcie_dynamic_switching_supported(void);
 bool amdgpu_device_should_use_aspm(struct amdgpu_device *adev);
 bool amdgpu_device_aspm_support_quirk(void);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +1 -1
index 5612caf77dd6..a989ae72a58a 100644
@@ -291,7 +291,7 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
 
 	if (!p->gang_size) {
 		ret = -EINVAL;
-		goto free_partial_kdata;
+		goto free_all_kdata;
 	}
 
 	for (i = 0; i < p->gang_size; ++i) {
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +26 -0
index 167b2a1c416e..44a902d9b5c7 100644
@@ -1352,6 +1352,32 @@ bool amdgpu_device_need_post(struct amdgpu_device *adev)
 	return true;
 }
 
+/*
+ * On APUs with >= 64GB white flickering has been observed w/ SG enabled.
+ * Disable S/G on such systems until we have a proper fix.
+ * https://gitlab.freedesktop.org/drm/amd/-/issues/2354
+ * https://gitlab.freedesktop.org/drm/amd/-/issues/2735
+ */
+bool amdgpu_sg_display_supported(struct amdgpu_device *adev)
+{
+	switch (amdgpu_sg_display) {
+	case -1:
+		break;
+	case 0:
+		return false;
+	case 1:
+		return true;
+	default:
+		return false;
+	}
+	if ((totalram_pages() << (PAGE_SHIFT - 10)) +
+	    (adev->gmc.real_vram_size / 1024) >= 64000000) {
+		DRM_WARN("Disabling S/G due to >=64GB RAM\n");
+		return false;
+	}
+	return true;
+}
+
 /*
  * Intel hosts such as Raptor Lake and Sapphire Rapids don't support dynamic
  * speed switching. Until we have confirmation from Intel that a specific host
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -3
index 812d7dd4c04b..bdce36754436 100644
@@ -1630,9 +1630,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 		}
 		break;
 	}
-	if (init_data.flags.gpu_vm_support &&
-	    (amdgpu_sg_display == 0))
-		init_data.flags.gpu_vm_support = false;
+	if (init_data.flags.gpu_vm_support)
+		init_data.flags.gpu_vm_support = amdgpu_sg_display_supported(adev);
 
 	if (init_data.flags.gpu_vm_support)
 		adev->mode_info.gpu_vm_support = true;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -1
index 9bc86deac9e8..b885c39bd16b 100644
@@ -1320,7 +1320,7 @@ int compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,
 		if (computed_streams[i])
 			continue;
 
-		if (!res_pool->funcs->remove_stream_from_ctx ||
+		if (res_pool->funcs->remove_stream_from_ctx &&
 		    res_pool->funcs->remove_stream_from_ctx(stream->ctx->dc, dc_state, stream) != DC_OK)
 			return -EINVAL;
 
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -1
index 8d2460d06bce..58e8fda04b86 100644
@@ -780,7 +780,8 @@ void dce110_edp_wait_for_hpd_ready(
 	dal_gpio_destroy_irq(&hpd);
 
 	/* ensure that the panel is detected */
-	ASSERT(edp_hpd_high);
+	if (!edp_hpd_high)
+		DC_LOG_DC("%s: wait timed out!\n", __func__);
 }
 
 void dce110_edp_power_control(
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c +5 -2
index e5b7ef7422b8..50dc83404644 100644
@@ -357,8 +357,11 @@ void dpp3_set_cursor_attributes(
 	int cur_rom_en = 0;
 
 	if (color_format == CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA ||
-		color_format == CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA)
-		cur_rom_en = 1;
+		color_format == CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA) {
+		if (cursor_attributes->attribute_flags.bits.ENABLE_CURSOR_DEGAMMA) {
+			cur_rom_en = 1;
+		}
+	}
 
 	REG_UPDATE_3(CURSOR0_CONTROL,
 			CUR0_MODE, color_format,
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h +2 -0
index d178f3f44081..42172b00be66 100644
@@ -89,6 +89,8 @@ struct amdgpu_dpm_thermal {
 	int                max_mem_crit_temp;
 	/* memory max emergency(shutdown) temp */
 	int                max_mem_emergency_temp;
+	/* SWCTF threshold */
+	int                sw_ctf_threshold;
 	/* was last interrupt low to high or high to low */
 	bool               high_to_low;
 	/* interrupt source */
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c +48 -0

78 lines not on this page · raw message

drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c +3 -1
index 981dc8c7112d..90452b66e107 100644
@@ -241,7 +241,8 @@ int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)
 		TEMP_RANGE_MAX,
 		TEMP_RANGE_MIN,
 		TEMP_RANGE_MAX,
-		TEMP_RANGE_MAX};
+		TEMP_RANGE_MAX,
+		0};
 	struct amdgpu_device *adev = hwmgr->adev;
 
 	if (!hwmgr->not_vf)
@@ -265,6 +266,7 @@ int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)
 	adev->pm.dpm.thermal.min_mem_temp = range.mem_min;
 	adev->pm.dpm.thermal.max_mem_crit_temp = range.mem_crit_max;
 	adev->pm.dpm.thermal.max_mem_emergency_temp = range.mem_emergency_max;
+	adev->pm.dpm.thermal.sw_ctf_threshold = range.sw_ctf_threshold;
 
 	return ret;
 }
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +2 -0
index e10cc5e7928e..6841a4bce186 100644
@@ -5432,6 +5432,8 @@ static int smu7_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 		thermal_data->max = data->thermal_temp_setting.temperature_shutdown *
 			PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
 
+	thermal_data->sw_ctf_threshold = thermal_data->max;
+
 	return 0;
 }
 
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +9 -18
index bfe80ac0ad8c..d0b1ab6c4523 100644
@@ -603,21 +603,17 @@ int phm_irq_process(struct amdgpu_device *adev,
 			   struct amdgpu_irq_src *source,
 			   struct amdgpu_iv_entry *entry)
 {
+	struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle;
 	uint32_t client_id = entry->client_id;
 	uint32_t src_id = entry->src_id;
 
 	if (client_id == AMDGPU_IRQ_CLIENTID_LEGACY) {
 		if (src_id == VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH) {
-			dev_emerg(adev->dev, "ERROR: GPU over temperature range(SW CTF) detected!\n");
-			/*
-			 * SW CTF just occurred.
-			 * Try to do a graceful shutdown to prevent further damage.
-			 */
-			dev_emerg(adev->dev, "ERROR: System is going to shutdown due to GPU SW CTF!\n");
-			orderly_poweroff(true);
-		} else if (src_id == VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW)
+			schedule_delayed_work(&hwmgr->swctf_delayed_work,
+					      msecs_to_jiffies(AMDGPU_SWCTF_EXTRA_DELAY));
+		} else if (src_id == VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW) {
 			dev_emerg(adev->dev, "ERROR: GPU under temperature range detected!\n");
-		else if (src_id == VISLANDS30_IV_SRCID_GPIO_19) {
+		} else if (src_id == VISLANDS30_IV_SRCID_GPIO_19) {
 			dev_emerg(adev->dev, "ERROR: GPU HW Critical Temperature Fault(aka CTF) detected!\n");
 			/*
 			 * HW CTF just occurred. Shutdown to prevent further damage.
@@ -626,15 +622,10 @@ int phm_irq_process(struct amdgpu_device *adev,
 			orderly_poweroff(true);
 		}
 	} else if (client_id == SOC15_IH_CLIENTID_THM) {
-		if (src_id == 0) {
-			dev_emerg(adev->dev, "ERROR: GPU over temperature range(SW CTF) detected!\n");
-			/*
-			 * SW CTF just occurred.
-			 * Try to do a graceful shutdown to prevent further damage.
-			 */
-			dev_emerg(adev->dev, "ERROR: System is going to shutdown due to GPU SW CTF!\n");
-			orderly_poweroff(true);
-		} else
+		if (src_id == 0)
+			schedule_delayed_work(&hwmgr->swctf_delayed_work,
+					      msecs_to_jiffies(AMDGPU_SWCTF_EXTRA_DELAY));
+		else
 			dev_emerg(adev->dev, "ERROR: GPU under temperature range detected!\n");
 	} else if (client_id == SOC15_IH_CLIENTID_ROM_SMUIO) {
 		dev_emerg(adev->dev, "ERROR: GPU HW Critical Temperature Fault(aka CTF) detected!\n");
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +10 -0
index 99cd2e63afdd..c51dd4c74fe9 100644
@@ -5241,6 +5241,9 @@ static int vega10_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 {
 	struct vega10_hwmgr *data = hwmgr->backend;
 	PPTable_t *pp_table = &(data->smc_state_table.pp_table);
+	struct phm_ppt_v2_information *pp_table_info =
+		(struct phm_ppt_v2_information *)(hwmgr->pptable);
+	struct phm_tdp_table *tdp_table = pp_table_info->tdp_table;
 
 	memcpy(thermal_data, &SMU7ThermalWithDelayPolicy[0], sizeof(struct PP_TemperatureRange));
 
@@ -5257,6 +5260,13 @@ static int vega10_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 	thermal_data->mem_emergency_max = (pp_table->ThbmLimit + CTF_OFFSET_HBM)*
 		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
 
+	if (tdp_table->usSoftwareShutdownTemp > pp_table->ThotspotLimit &&
+	    tdp_table->usSoftwareShutdownTemp < VEGA10_THERMAL_MAXIMUM_ALERT_TEMP)
+		thermal_data->sw_ctf_threshold = tdp_table->usSoftwareShutdownTemp;
+	else
+		thermal_data->sw_ctf_threshold = VEGA10_THERMAL_MAXIMUM_ALERT_TEMP;
+	thermal_data->sw_ctf_threshold *= PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
+
 	return 0;
 }
 
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c +4 -0
index e9db137cd1c6..1937be1cf5b4 100644
@@ -2763,6 +2763,8 @@ static int vega12_notify_cac_buffer_info(struct pp_hwmgr *hwmgr,
 static int vega12_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 		struct PP_TemperatureRange *thermal_data)
 {
+	struct phm_ppt_v3_information *pptable_information =
+		(struct phm_ppt_v3_information *)hwmgr->pptable;
 	struct vega12_hwmgr *data =
 			(struct vega12_hwmgr *)(hwmgr->backend);
 	PPTable_t *pp_table = &(data->smc_state_table.pp_table);
@@ -2781,6 +2783,8 @@ static int vega12_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
 	thermal_data->mem_emergency_max = (pp_table->ThbmLimit + CTF_OFFSET_HBM)*
 		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
+	thermal_data->sw_ctf_threshold = pptable_information->us_software_shutdown_temp *
+		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
 
 	return 0;
 }
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c +4 -0
index 0d4d4811527c..4e19ccbdb807 100644
@@ -4206,6 +4206,8 @@ static int vega20_notify_cac_buffer_info(struct pp_hwmgr *hwmgr,
 static int vega20_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 		struct PP_TemperatureRange *thermal_data)
 {
+	struct phm_ppt_v3_information *pptable_information =
+		(struct phm_ppt_v3_information *)hwmgr->pptable;
 	struct vega20_hwmgr *data =
 			(struct vega20_hwmgr *)(hwmgr->backend);
 	PPTable_t *pp_table = &(data->smc_state_table.pp_table);
@@ -4224,6 +4226,8 @@ static int vega20_get_thermal_temperature_range(struct pp_hwmgr *hwmgr,
 		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
 	thermal_data->mem_emergency_max = (pp_table->ThbmLimit + CTF_OFFSET_HBM)*
 		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
+	thermal_data->sw_ctf_threshold = pptable_information->us_software_shutdown_temp *
+		PP_TEMPERATURE_UNITS_PER_CENTIGRADES;
 
 	return 0;
 }
drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h +2 -0
index 5ce433e2c16a..ec10643edea3 100644
@@ -811,6 +811,8 @@ struct pp_hwmgr {
 	bool gfxoff_state_changed_by_workload;
 	uint32_t pstate_sclk_peak;
 	uint32_t pstate_mclk_peak;
+
+	struct delayed_work swctf_delayed_work;
 };
 
 int hwmgr_early_init(struct pp_hwmgr *hwmgr);
drivers/gpu/drm/amd/pm/powerplay/inc/power_state.h +1 -0
index a5f2227a3971..0ffc2347829d 100644
@@ -131,6 +131,7 @@ struct PP_TemperatureRange {
 	int mem_min;
 	int mem_crit_max;
 	int mem_emergency_max;
+	int sw_ctf_threshold;
 };
 
 struct PP_StateValidationBlock {
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +34 -0
index 2ddf5198e5c4..ea03e8d9a3f6 100644
@@ -24,6 +24,7 @@
 
 #include <linux/firmware.h>
 #include <linux/pci.h>
+#include <linux/reboot.h>
 
 #include "amdgpu.h"
 #include "amdgpu_smu.h"
@@ -1070,6 +1071,34 @@ static void smu_interrupt_work_fn(struct work_struct *work)
 		smu->ppt_funcs->interrupt_work(smu);
 }
 
+static void smu_swctf_delayed_work_handler(struct work_struct *work)
+{
+	struct smu_context *smu =
+		container_of(work, struct smu_context, swctf_delayed_work.work);
+	struct smu_temperature_range *range =
+				&smu->thermal_range;
+	struct amdgpu_device *adev = smu->adev;
+	uint32_t hotspot_tmp, size;
+
+	/*
+	 * If the hotspot temperature is confirmed as below SW CTF setting point
+	 * after the delay enforced, nothing will be done.
+	 * Otherwise, a graceful shutdown will be performed to prevent further damage.
+	 */
+	if (range->software_shutdown_temp &&
+	    smu->ppt_funcs->read_sensor &&
+	    !smu->ppt_funcs->read_sensor(smu,
+					 AMDGPU_PP_SENSOR_HOTSPOT_TEMP,
+					 &hotspot_tmp,
+					 &size) &&
+	    hotspot_tmp / 1000 < range->software_shutdown_temp)
+		return;
+
+	dev_emerg(adev->dev, "ERROR: GPU over temperature range(SW CTF) detected!\n");
+	dev_emerg(adev->dev, "ERROR: System is going to shutdown due to GPU SW CTF!\n");
+	orderly_poweroff(true);
+}
+
 static int smu_sw_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
@@ -1112,6 +1141,9 @@ static int smu_sw_init(void *handle)
 	smu->smu_dpm.dpm_level = AMD_DPM_FORCED_LEVEL_AUTO;
 	smu->smu_dpm.requested_dpm_level = AMD_DPM_FORCED_LEVEL_AUTO;
 
+	INIT_DELAYED_WORK(&smu->swctf_delayed_work,
+			  smu_swctf_delayed_work_handler);
+
 	ret = smu_smc_table_sw_init(smu);
 	if (ret) {
 		dev_err(adev->dev, "Failed to sw init smc table!\n");
@@ -1592,6 +1624,8 @@ static int smu_smc_hw_cleanup(struct smu_context *smu)
 		return ret;
 	}
 
+	cancel_delayed_work_sync(&smu->swctf_delayed_work);
+
 	ret = smu_disable_dpms(smu);
 	if (ret) {
 		dev_err(adev->dev, "Fail to disable dpm features!\n");
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h +2 -0
index 09469c750a96..6e2069dcb6b9 100644
@@ -573,6 +573,8 @@ struct smu_context
 	u32 debug_param_reg;
 	u32 debug_msg_reg;
 	u32 debug_resp_reg;
+
+	struct delayed_work		swctf_delayed_work;
 };
 
 struct i2c_adapter;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +2 -7
index e1ef88ee1ed3..aa4a5498a12f 100644
@@ -1412,13 +1412,8 @@ static int smu_v11_0_irq_process(struct amdgpu_device *adev,
 	if (client_id == SOC15_IH_CLIENTID_THM) {
 		switch (src_id) {
 		case THM_11_0__SRCID__THM_DIG_THERM_L2H:
-			dev_emerg(adev->dev, "ERROR: GPU over temperature range(SW CTF) detected!\n");
-			/*
-			 * SW CTF just occurred.
-			 * Try to do a graceful shutdown to prevent further damage.
-			 */
-			dev_emerg(adev->dev, "ERROR: System is going to shutdown due to GPU SW CTF!\n");
-			orderly_poweroff(true);
+			schedule_delayed_work(&smu->swctf_delayed_work,
+					      msecs_to_jiffies(AMDGPU_SWCTF_EXTRA_DELAY));
 		break;
 		case THM_11_0__SRCID__THM_DIG_THERM_H2L:
 			dev_emerg(adev->dev, "ERROR: GPU under temperature range detected\n");
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -7
index 79e9230fc796..048f4018d0b9 100644
@@ -1377,13 +1377,8 @@ static int smu_v13_0_irq_process(struct amdgpu_device *adev,
 	if (client_id == SOC15_IH_CLIENTID_THM) {
 		switch (src_id) {
 		case THM_11_0__SRCID__THM_DIG_THERM_L2H:
-			dev_emerg(adev->dev, "ERROR: GPU over temperature range(SW CTF) detected!\n");
-			/*
-			 * SW CTF just occurred.
-			 * Try to do a graceful shutdown to prevent further damage.
-			 */
-			dev_emerg(adev->dev, "ERROR: System is going to shutdown due to GPU SW CTF!\n");
-			orderly_poweroff(true);
+			schedule_delayed_work(&smu->swctf_delayed_work,
+					      msecs_to_jiffies(AMDGPU_SWCTF_EXTRA_DELAY));
 			break;
 		case THM_11_0__SRCID__THM_DIG_THERM_H2L:
 			dev_emerg(adev->dev, "ERROR: GPU under temperature range detected\n");
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +1 -2
index 907cc43d16a9..d7f09af2fb01 100644
@@ -1030,7 +1030,6 @@ static int smu_v13_0_0_print_clk_levels(struct smu_context *smu,
 	struct smu_13_0_dpm_context *dpm_context = smu_dpm->dpm_context;
 	struct smu_13_0_dpm_table *single_dpm_table;
 	struct smu_13_0_pcie_table *pcie_table;
-	const int link_width[] = {0, 1, 2, 4, 8, 12, 16};
 	uint32_t gen_speed, lane_width;
 	int i, curr_freq, size = 0;
 	int ret = 0;
@@ -1145,7 +1144,7 @@ static int smu_v13_0_0_print_clk_levels(struct smu_context *smu,
 					(pcie_table->pcie_lane[i] == 6) ? "x16" : "",
 					pcie_table->clk_freq[i],
 					(gen_speed == DECODE_GEN_SPEED(pcie_table->pcie_gen[i])) &&
-					(lane_width == DECODE_LANE_WIDTH(link_width[pcie_table->pcie_lane[i]])) ?
+					(lane_width == DECODE_LANE_WIDTH(pcie_table->pcie_lane[i])) ?
 					"*" : "");
 		break;
 
drivers/gpu/drm/bridge/ite-it6505.c +3 -1
index 45f579c365e7..94b1497dfb01 100644
@@ -2517,9 +2517,11 @@ static irqreturn_t it6505_int_threaded_handler(int unused, void *data)
 	};
 	int int_status[3], i;
 
-	if (it6505->enable_drv_hold || pm_runtime_get_if_in_use(dev) <= 0)
+	if (it6505->enable_drv_hold || !it6505->powered)
 		return IRQ_HANDLED;
 
+	pm_runtime_get_sync(dev);
+
 	int_status[0] = it6505_read(it6505, INT_STATUS_01);
 	int_status[1] = it6505_read(it6505, INT_STATUS_02);
 	int_status[2] = it6505_read(it6505, INT_STATUS_03);
drivers/gpu/drm/drm_gem_shmem_helper.c +6 -0
index 4ea6507a77e5..baaf0e0feb06 100644
@@ -623,7 +623,13 @@ int drm_gem_shmem_mmap(struct drm_gem_shmem_object *shmem, struct vm_area_struct
 	int ret;
 
 	if (obj->import_attach) {
+		/* Reset both vm_ops and vm_private_data, so we don't end up with
+		 * vm_ops pointing to our implementation if the dma-buf backend
+		 * doesn't set those fields.
+		 */
 		vma->vm_private_data = NULL;
+		vma->vm_ops = NULL;
+
 		ret = dma_buf_mmap(obj->dma_buf, vma, 0);
 
 		/* Drop the reference drm_gem_mmap_obj() acquired.*/
drivers/gpu/drm/nouveau/nouveau_connector.c +1 -1
index f75c6f09dd2a..a2e0033e8a26 100644
@@ -967,7 +967,7 @@ nouveau_connector_get_modes(struct drm_connector *connector)
 	/* Determine display colour depth for everything except LVDS now,
 	 * DP requires this before mode_valid() is called.
 	 */
-	if (connector->connector_type != DRM_MODE_CONNECTOR_LVDS && nv_connector->native_mode)
+	if (connector->connector_type != DRM_MODE_CONNECTOR_LVDS)
 		nouveau_connector_detect_depth(connector);
 
 	/* Find the native mode if this is a digital panel, if we didn't
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c +47 -1

66 lines not on this page · raw message

drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h +1 -0
index 00dbeda7e346..de161e7a04aa 100644
@@ -117,6 +117,7 @@ void gk104_grctx_generate_r418800(struct gf100_gr *);
 
 extern const struct gf100_grctx_func gk110_grctx;
 void gk110_grctx_generate_r419eb0(struct gf100_gr *);
+void gk110_grctx_generate_r419f78(struct gf100_gr *);
 
 extern const struct gf100_grctx_func gk110b_grctx;
 extern const struct gf100_grctx_func gk208_grctx;
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c +3 -1
index 94233d0119df..52a234b1ef01 100644
@@ -906,7 +906,9 @@ static void
 gk104_grctx_generate_r419f78(struct gf100_gr *gr)
 {
 	struct nvkm_device *device = gr->base.engine.subdev.device;
-	nvkm_mask(device, 0x419f78, 0x00000001, 0x00000000);
+
+	/* bit 3 set disables loads in fp helper invocations, we need it enabled */
+	nvkm_mask(device, 0x419f78, 0x00000009, 0x00000000);
 }
 
 void
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c +10 -0
index 4391458e1fb2..3acdd9eeb74a 100644
@@ -820,6 +820,15 @@ gk110_grctx_generate_r419eb0(struct gf100_gr *gr)
 	nvkm_mask(device, 0x419eb0, 0x00001000, 0x00001000);
 }
 
+void
+gk110_grctx_generate_r419f78(struct gf100_gr *gr)
+{
+	struct nvkm_device *device = gr->base.engine.subdev.device;
+
+	/* bit 3 set disables loads in fp helper invocations, we need it enabled */
+	nvkm_mask(device, 0x419f78, 0x00000008, 0x00000000);
+}
+
 const struct gf100_grctx_func
 gk110_grctx = {
 	.main  = gf100_grctx_generate_main,
@@ -854,4 +863,5 @@ gk110_grctx = {
 	.gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
 	.r418800 = gk104_grctx_generate_r418800,
 	.r419eb0 = gk110_grctx_generate_r419eb0,
+	.r419f78 = gk110_grctx_generate_r419f78,
 };
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c +1 -0
index 7b9a34f9ec3c..5597e87624ac 100644
@@ -103,4 +103,5 @@ gk110b_grctx = {
 	.gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
 	.r418800 = gk104_grctx_generate_r418800,
 	.r419eb0 = gk110_grctx_generate_r419eb0,
+	.r419f78 = gk110_grctx_generate_r419f78,
 };
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c +1 -0
index c78d07a8bb7d..612656496541 100644
@@ -568,4 +568,5 @@ gk208_grctx = {
 	.dist_skip_table = gf117_grctx_generate_dist_skip_table,
 	.gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
 	.r418800 = gk104_grctx_generate_r418800,
+	.r419f78 = gk110_grctx_generate_r419f78,
 };
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c +1 -0
index beac66eb2a80..9906974ac3f0 100644
@@ -988,4 +988,5 @@ gm107_grctx = {
 	.r406500 = gm107_grctx_generate_r406500,
 	.gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
 	.r419e00 = gm107_grctx_generate_r419e00,
+	.r419f78 = gk110_grctx_generate_r419f78,
 };
drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c +0 -13
index 3b6c8100a242..a7775aa18541 100644
@@ -206,19 +206,6 @@ tu102_gr_av_to_init_veid(struct nvkm_blob *blob, struct gf100_gr_pack **ppack)
 	return gk20a_gr_av_to_init_(blob, 64, 0x00100000, ppack);
 }
 
-int
-tu102_gr_load(struct gf100_gr *gr, int ver, const struct gf100_gr_fwif *fwif)
-{
-	int ret;
-
-	ret = gm200_gr_load(gr, ver, fwif);
-	if (ret)
-		return ret;
-
-	return gk20a_gr_load_net(gr, "gr/", "sw_veid_bundle_init", ver, tu102_gr_av_to_init_veid,
-				 &gr->bundle_veid);
-}
-
 static const struct gf100_gr_fwif
 tu102_gr_fwif[] = {
 	{  0, gm200_gr_load, &tu102_gr, &gp108_gr_fecs_acr, &gp108_gr_gpccs_acr },
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +9 -8
index a530ecc4d207..bf34498c1b6d 100644
@@ -833,12 +833,12 @@ static int vop_plane_atomic_check(struct drm_plane *plane,
 	 * need align with 2 pixel.
 	 */
 	if (fb->format->is_yuv && ((new_plane_state->src.x1 >> 16) % 2)) {
-		DRM_ERROR("Invalid Source: Yuv format not support odd xpos\n");
+		DRM_DEBUG_KMS("Invalid Source: Yuv format not support odd xpos\n");
 		return -EINVAL;
 	}
 
 	if (fb->format->is_yuv && new_plane_state->rotation & DRM_MODE_REFLECT_Y) {
-		DRM_ERROR("Invalid Source: Yuv format does not support this rotation\n");
+		DRM_DEBUG_KMS("Invalid Source: Yuv format does not support this rotation\n");
 		return -EINVAL;
 	}
 
@@ -846,7 +846,7 @@ static int vop_plane_atomic_check(struct drm_plane *plane,
 		struct vop *vop = to_vop(crtc);
 
 		if (!vop->data->afbc) {
-			DRM_ERROR("vop does not support AFBC\n");
+			DRM_DEBUG_KMS("vop does not support AFBC\n");
 			return -EINVAL;
 		}
 
@@ -855,15 +855,16 @@ static int vop_plane_atomic_check(struct drm_plane *plane,
 			return ret;
 
 		if (new_plane_state->src.x1 || new_plane_state->src.y1) {
-			DRM_ERROR("AFBC does not support offset display, xpos=%d, ypos=%d, offset=%d\n",
-				  new_plane_state->src.x1,
-				  new_plane_state->src.y1, fb->offsets[0]);
+			DRM_DEBUG_KMS("AFBC does not support offset display, " \
+				      "xpos=%d, ypos=%d, offset=%d\n",
+				      new_plane_state->src.x1, new_plane_state->src.y1,
+				      fb->offsets[0]);
 			return -EINVAL;
 		}
 
 		if (new_plane_state->rotation && new_plane_state->rotation != DRM_MODE_ROTATE_0) {
-			DRM_ERROR("No rotation support in AFBC, rotation=%d\n",
-				  new_plane_state->rotation);
+			DRM_DEBUG_KMS("No rotation support in AFBC, rotation=%d\n",
+				      new_plane_state->rotation);
 			return -EINVAL;
 		}
 	}
drivers/hwmon/aquacomputer_d5next.c +36 -1
index c2b99fd4f436..e6126a531952 100644
@@ -13,9 +13,11 @@
 
 #include <linux/crc16.h>
 #include <linux/debugfs.h>
+#include <linux/delay.h>
 #include <linux/hid.h>
 #include <linux/hwmon.h>
 #include <linux/jiffies.h>
+#include <linux/ktime.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/seq_file.h>
@@ -61,6 +63,8 @@ static const char *const aqc_device_names[] = {
 #define CTRL_REPORT_ID			0x03
 #define AQUAERO_CTRL_REPORT_ID		0x0b
 
+#define CTRL_REPORT_DELAY		200	/* ms */
+
 /* The HID report that the official software always sends
  * after writing values, currently same for all devices
  */
@@ -496,6 +500,9 @@ struct aqc_data {
 	int secondary_ctrl_report_size;
 	u8 *secondary_ctrl_report;
 
+	ktime_t last_ctrl_report_op;
+	int ctrl_report_delay;	/* Delay between two ctrl report operations, in ms */
+
 	int buffer_size;
 	u8 *buffer;
 	int checksum_start;
@@ -577,17 +584,35 @@ static int aqc_aquastreamxt_convert_fan_rpm(u16 val)
 	return 0;
 }
 
+static void aqc_delay_ctrl_report(struct aqc_data *priv)
+{
+	/*
+	 * If previous read or write is too close to this one, delay the current operation
+	 * to give the device enough time to process the previous one.
+	 */
+	if (priv->ctrl_report_delay) {
+		s64 delta = ktime_ms_delta(ktime_get(), priv->last_ctrl_report_op);
+
+		if (delta < priv->ctrl_report_delay)
+			msleep(priv->ctrl_report_delay - delta);
+	}
+}
+
 /* Expects the mutex to be locked */
 static int aqc_get_ctrl_data(struct aqc_data *priv)
 {
 	int ret;
 
+	aqc_delay_ctrl_report(priv);
+
 	memset(priv->buffer, 0x00, priv->buffer_size);
 	ret = hid_hw_raw_request(priv->hdev, priv->ctrl_report_id, priv->buffer, priv->buffer_size,
 				 HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
 	if (ret < 0)
 		ret = -ENODATA;
 
+	priv->last_ctrl_report_op = ktime_get();
+
 	return ret;
 }
 
@@ -597,6 +622,8 @@ static int aqc_send_ctrl_data(struct aqc_data *priv)
 	int ret;
 	u16 checksum;
 
+	aqc_delay_ctrl_report(priv);
+
 	/* Checksum is not needed for Aquaero */
 	if (priv->kind != aquaero) {
 		/* Init and xorout value for CRC-16/USB is 0xffff */
@@ -612,12 +639,16 @@ static int aqc_send_ctrl_data(struct aqc_data *priv)
 	ret = hid_hw_raw_request(priv->hdev, priv->ctrl_report_id, priv->buffer, priv->buffer_size,
 				 HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
 	if (ret < 0)
-		return ret;
+		goto record_access_and_ret;
 
 	/* The official software sends this report after every change, so do it here as well */
 	ret = hid_hw_raw_request(priv->hdev, priv->secondary_ctrl_report_id,
 				 priv->secondary_ctrl_report, priv->secondary_ctrl_report_size,
 				 HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
+
+record_access_and_ret:
+	priv->last_ctrl_report_op = ktime_get();
+
 	return ret;
 }
 
@@ -1443,6 +1474,7 @@ static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id)
 
 		priv->buffer_size = AQUAERO_CTRL_REPORT_SIZE;
 		priv->temp_ctrl_offset = AQUAERO_TEMP_CTRL_OFFSET;
+		priv->ctrl_report_delay = CTRL_REPORT_DELAY;
 
 		priv->temp_label = label_temp_sensors;
 		priv->virtual_temp_label = label_virtual_temp_sensors;
@@ -1466,6 +1498,7 @@ static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id)
 		priv->temp_ctrl_offset = D5NEXT_TEMP_CTRL_OFFSET;
 
 		priv->buffer_size = D5NEXT_CTRL_REPORT_SIZE;
+		priv->ctrl_report_delay = CTRL_REPORT_DELAY;
 
 		priv->power_cycle_count_offset = D5NEXT_POWER_CYCLES;
 
@@ -1516,6 +1549,7 @@ static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id)
 		priv->temp_ctrl_offset = OCTO_TEMP_CTRL_OFFSET;
 
 		priv->buffer_size = OCTO_CTRL_REPORT_SIZE;
+		priv->ctrl_report_delay = CTRL_REPORT_DELAY;
 
 		priv->power_cycle_count_offset = OCTO_POWER_CYCLES;
 
@@ -1543,6 +1577,7 @@ static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id)
 		priv->temp_ctrl_offset = QUADRO_TEMP_CTRL_OFFSET;
 
 		priv->buffer_size = QUADRO_CTRL_REPORT_SIZE;
+		priv->ctrl_report_delay = CTRL_REPORT_DELAY;
 
 		priv->flow_pulses_ctrl_offset = QUADRO_FLOW_PULSES_CTRL_OFFSET;
 		priv->power_cycle_count_offset = QUADRO_POWER_CYCLES;
drivers/hwmon/pmbus/bel-pfe.c +8 -8
index 4100eefb7ac3..61c195f8fd3b 100644
@@ -17,12 +17,13 @@
 enum chips {pfe1100, pfe3000};
 
 /*
- * Disable status check for pfe3000 devices, because some devices report
- * communication error (invalid command) for VOUT_MODE command (0x20)
- * although correct VOUT_MODE (0x16) is returned: it leads to incorrect
- * exponent in linear mode.
+ * Disable status check because some devices report communication error
+ * (invalid command) for VOUT_MODE command (0x20) although the correct
+ * VOUT_MODE (0x16) is returned: it leads to incorrect exponent in linear
+ * mode.
+ * This affects both pfe3000 and pfe1100.
  */
-static struct pmbus_platform_data pfe3000_plat_data = {
+static struct pmbus_platform_data pfe_plat_data = {
 	.flags = PMBUS_SKIP_STATUS_CHECK,
 };
 
@@ -94,16 +95,15 @@ static int pfe_pmbus_probe(struct i2c_client *client)
 	int model;
 
 	model = (int)i2c_match_id(pfe_device_id, client)->driver_data;
+	client->dev.platform_data = &pfe_plat_data;
 
 	/*
 	 * PFE3000-12-069RA devices may not stay in page 0 during device
 	 * probe which leads to probe failure (read status word failed).
 	 * So let's set the device to page 0 at the beginning.
 	 */
-	if (model == pfe3000) {
-		client->dev.platform_data = &pfe3000_plat_data;
+	if (model == pfe3000)
 		i2c_smbus_write_byte_data(client, PMBUS_PAGE, 0);
-	}
 
 	return pmbus_do_probe(client, &pfe_driver_info[model]);
 }
drivers/iio/adc/ad7192.c +8 -8
index 8685e0b58a83..7bc3ebfe8081 100644
@@ -62,7 +62,6 @@
 #define AD7192_MODE_STA_MASK	BIT(20) /* Status Register transmission Mask */
 #define AD7192_MODE_CLKSRC(x)	(((x) & 0x3) << 18) /* Clock Source Select */
 #define AD7192_MODE_SINC3	BIT(15) /* SINC3 Filter Select */
-#define AD7192_MODE_ACX		BIT(14) /* AC excitation enable(AD7195 only)*/
 #define AD7192_MODE_ENPAR	BIT(13) /* Parity Enable */
 #define AD7192_MODE_CLKDIV	BIT(12) /* Clock divide by 2 (AD7190/2 only)*/
 #define AD7192_MODE_SCYCLE	BIT(11) /* Single cycle conversion */
@@ -91,6 +90,7 @@
 /* Configuration Register Bit Designations (AD7192_REG_CONF) */
 
 #define AD7192_CONF_CHOP	BIT(23) /* CHOP enable */
+#define AD7192_CONF_ACX		BIT(22) /* AC excitation enable(AD7195 only) */
 #define AD7192_CONF_REFSEL	BIT(20) /* REFIN1/REFIN2 Reference Select */
 #define AD7192_CONF_CHAN(x)	((x) << 8) /* Channel select */
 #define AD7192_CONF_CHAN_MASK	(0x7FF << 8) /* Channel select mask */
@@ -472,7 +472,7 @@ static ssize_t ad7192_show_ac_excitation(struct device *dev,
 	struct iio_dev *indio_dev = dev_to_iio_dev(dev);
 	struct ad7192_state *st = iio_priv(indio_dev);
 
-	return sysfs_emit(buf, "%d\n", !!(st->mode & AD7192_MODE_ACX));
+	return sysfs_emit(buf, "%d\n", !!(st->conf & AD7192_CONF_ACX));
 }
 
 static ssize_t ad7192_show_bridge_switch(struct device *dev,
@@ -513,13 +513,13 @@ static ssize_t ad7192_set(struct device *dev,
 
 		ad_sd_write_reg(&st->sd, AD7192_REG_GPOCON, 1, st->gpocon);
 		break;
-	case AD7192_REG_MODE:
+	case AD7192_REG_CONF:
 		if (val)
-			st->mode |= AD7192_MODE_ACX;
+			st->conf |= AD7192_CONF_ACX;
 		else
-			st->mode &= ~AD7192_MODE_ACX;
+			st->conf &= ~AD7192_CONF_ACX;
 
-		ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode);
+		ad_sd_write_reg(&st->sd, AD7192_REG_CONF, 3, st->conf);
 		break;
 	default:
 		ret = -EINVAL;
@@ -579,12 +579,11 @@ static IIO_DEVICE_ATTR(bridge_switch_en, 0644,
 
 static IIO_DEVICE_ATTR(ac_excitation_en, 0644,
 		       ad7192_show_ac_excitation, ad7192_set,
-		       AD7192_REG_MODE);
+		       AD7192_REG_CONF);
 
 static struct attribute *ad7192_attributes[] = {
 	&iio_dev_attr_filter_low_pass_3db_frequency_available.dev_attr.attr,
 	&iio_dev_attr_bridge_switch_en.dev_attr.attr,
-	&iio_dev_attr_ac_excitation_en.dev_attr.attr,
 	NULL
 };
 
@@ -595,6 +594,7 @@ static const struct attribute_group ad7192_attribute_group = {
 static struct attribute *ad7195_attributes[] = {
 	&iio_dev_attr_filter_low_pass_3db_frequency_available.dev_attr.attr,
 	&iio_dev_attr_bridge_switch_en.dev_attr.attr,
+	&iio_dev_attr_ac_excitation_en.dev_attr.attr,
 	NULL
 };
 
drivers/iio/adc/ina2xx-adc.c +6 -3
index 38d9d7b2313e..2090bdf03cbe 100644
@@ -124,6 +124,7 @@ static const struct regmap_config ina2xx_regmap_config = {
 enum ina2xx_ids { ina219, ina226 };
 
 struct ina2xx_config {
+	const char *name;
 	u16 config_default;
 	int calibration_value;
 	int shunt_voltage_lsb;	/* nV */
@@ -155,6 +156,7 @@ struct ina2xx_chip_info {
 
 static const struct ina2xx_config ina2xx_config[] = {
 	[ina219] = {
+		.name = "ina219",
 		.config_default = INA219_CONFIG_DEFAULT,
 		.calibration_value = 4096,
 		.shunt_voltage_lsb = 10000,
@@ -164,6 +166,7 @@ static const struct ina2xx_config ina2xx_config[] = {
 		.chip_id = ina219,
 	},
 	[ina226] = {
+		.name = "ina226",
 		.config_default = INA226_CONFIG_DEFAULT,
 		.calibration_value = 2048,
 		.shunt_voltage_lsb = 2500,
@@ -996,7 +999,7 @@ static int ina2xx_probe(struct i2c_client *client)
 	/* Patch the current config register with default. */
 	val = chip->config->config_default;
 
-	if (id->driver_data == ina226) {
+	if (type == ina226) {
 		ina226_set_average(chip, INA226_DEFAULT_AVG, &val);
 		ina226_set_int_time_vbus(chip, INA226_DEFAULT_IT, &val);
 		ina226_set_int_time_vshunt(chip, INA226_DEFAULT_IT, &val);
@@ -1015,7 +1018,7 @@ static int ina2xx_probe(struct i2c_client *client)
 	}
 
 	indio_dev->modes = INDIO_DIRECT_MODE;
-	if (id->driver_data == ina226) {
+	if (type == ina226) {
 		indio_dev->channels = ina226_channels;
 		indio_dev->num_channels = ARRAY_SIZE(ina226_channels);
 		indio_dev->info = &ina226_info;
@@ -1024,7 +1027,7 @@ static int ina2xx_probe(struct i2c_client *client)
 		indio_dev->num_channels = ARRAY_SIZE(ina219_channels);
 		indio_dev->info = &ina219_info;
 	}
-	indio_dev->name = id->name;
+	indio_dev->name = id ? id->name : chip->config->name;
 
 	ret = devm_iio_kfifo_buffer_setup(&client->dev, indio_dev,
 					  &ina2xx_setup_ops);
drivers/iio/adc/meson_saradc.c +12 -11
index af6bfcc19075..eb78a6f17fd0 100644
@@ -916,12 +916,6 @@ static int meson_sar_adc_hw_enable(struct iio_dev *indio_dev)
 		goto err_vref;
 	}
 
-	ret = clk_prepare_enable(priv->core_clk);
-	if (ret) {
-		dev_err(dev, "failed to enable core clk\n");
-		goto err_core_clk;
-	}
-
 	regval = FIELD_PREP(MESON_SAR_ADC_REG0_FIFO_CNT_IRQ_MASK, 1);
 	regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0,
 			   MESON_SAR_ADC_REG0_FIFO_CNT_IRQ_MASK, regval);
@@ -948,8 +942,6 @@ static int meson_sar_adc_hw_enable(struct iio_dev *indio_dev)
 	regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG3,
 			   MESON_SAR_ADC_REG3_ADC_EN, 0);
 	meson_sar_adc_set_bandgap(indio_dev, false);
-	clk_disable_unprepare(priv->core_clk);
-err_core_clk:
 	regulator_disable(priv->vref);
 err_vref:
 	meson_sar_adc_unlock(indio_dev);
@@ -977,8 +969,6 @@ static void meson_sar_adc_hw_disable(struct iio_dev *indio_dev)
 
 	meson_sar_adc_set_bandgap(indio_dev, false);
 
-	clk_disable_unprepare(priv->core_clk);
-
 	regulator_disable(priv->vref);
 
 	if (!ret)
@@ -1211,7 +1201,7 @@ static int meson_sar_adc_probe(struct platform_device *pdev)
 	if (IS_ERR(priv->clkin))
 		return dev_err_probe(dev, PTR_ERR(priv->clkin), "failed to get clkin\n");
 
-	priv->core_clk = devm_clk_get(dev, "core");
+	priv->core_clk = devm_clk_get_enabled(dev, "core");
 	if (IS_ERR(priv->core_clk))
 		return dev_err_probe(dev, PTR_ERR(priv->core_clk), "failed to get core clk\n");
 
@@ -1294,15 +1284,26 @@ static int meson_sar_adc_remove(struct platform_device *pdev)
 static int meson_sar_adc_suspend(struct device *dev)
 {
 	struct iio_dev *indio_dev = dev_get_drvdata(dev);
+	struct meson_sar_adc_priv *priv = iio_priv(indio_dev);
 
 	meson_sar_adc_hw_disable(indio_dev);
 
+	clk_disable_unprepare(priv->core_clk);
+
 	return 0;
 }
 
 static int meson_sar_adc_resume(struct device *dev)
 {
 	struct iio_dev *indio_dev = dev_get_drvdata(dev);
+	struct meson_sar_adc_priv *priv = iio_priv(indio_dev);
+	int ret;
+
+	ret = clk_prepare_enable(priv->core_clk);
+	if (ret) {
+		dev_err(dev, "failed to enable core clk\n");
+		return ret;
+	}
 
 	return meson_sar_adc_hw_enable(indio_dev);
 }
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +1 -1
index 943e9e14d1e9..b72d39fc2434 100644
@@ -253,7 +253,7 @@ int cros_ec_sensors_core_init(struct platform_device *pdev,
 	platform_set_drvdata(pdev, indio_dev);
 
 	state->ec = ec->ec_dev;
-	state->msg = devm_kzalloc(&pdev->dev,
+	state->msg = devm_kzalloc(&pdev->dev, sizeof(*state->msg) +
 				max((u16)sizeof(struct ec_params_motion_sense),
 				state->ec->max_response), GFP_KERNEL);
 	if (!state->msg)
drivers/iio/frequency/admv1013.c +4 -1
index 9bf8337806fc..8c8e0bbfc99f 100644
@@ -344,9 +344,12 @@ static int admv1013_update_quad_filters(struct admv1013_state *st)
 
 static int admv1013_update_mixer_vgate(struct admv1013_state *st)
 {
-	unsigned int vcm, mixer_vgate;
+	unsigned int mixer_vgate;
+	int vcm;
 
 	vcm = regulator_get_voltage(st->reg);
+	if (vcm < 0)
+		return vcm;
 
 	if (vcm < 1800000)
 		mixer_vgate = (2389 * vcm / 1000000 + 8100) / 100;
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +1 -1
index 6a18b363cf73..b6e6b1df8a61 100644
@@ -2687,7 +2687,7 @@ static int lsm6dsx_get_acpi_mount_matrix(struct device *dev,
 static int lsm6dsx_get_acpi_mount_matrix(struct device *dev,
 					  struct iio_mount_matrix *orientation)
 {
-	return false;
+	return -EOPNOTSUPP;
 }
 
 #endif
drivers/iio/industrialio-core.c +3 -2
index c117f50d0cf3..adcba832e6fa 100644
@@ -1888,7 +1888,7 @@ static const struct iio_buffer_setup_ops noop_ring_setup_ops;
 int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod)
 {
 	struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev);
-	struct fwnode_handle *fwnode;
+	struct fwnode_handle *fwnode = NULL;
 	int ret;
 
 	if (!indio_dev->info)
@@ -1899,7 +1899,8 @@ int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod)
 	/* If the calling driver did not initialize firmware node, do it here */
 	if (dev_fwnode(&indio_dev->dev))
 		fwnode = dev_fwnode(&indio_dev->dev);
-	else
+	/* The default dummy IIO device has no parent */
+	else if (indio_dev->dev.parent)
 		fwnode = dev_fwnode(indio_dev->dev.parent);
 	device_set_node(&indio_dev->dev, fwnode);
 
drivers/iio/light/rohm-bu27034.c +19 -3
index f85194fda6b0..021a622ad611 100644
@@ -575,7 +575,7 @@ static int bu27034_set_scale(struct bu27034_data *data, int chan,
 		return -EINVAL;
 
 	if (chan == BU27034_CHAN_ALS) {
-		if (val == 0 && val2 == 1000)
+		if (val == 0 && val2 == 1000000)
 			return 0;
 
 		return -EINVAL;
@@ -587,7 +587,7 @@ static int bu27034_set_scale(struct bu27034_data *data, int chan,
 		goto unlock_out;
 
 	ret = iio_gts_find_gain_sel_for_scale_using_time(&data->gts, time_sel,
-						val, val2 * 1000, &gain_sel);
+						val, val2, &gain_sel);
 	if (ret) {
 		/*
 		 * Could not support scale with given time. Need to change time.
@@ -624,7 +624,7 @@ static int bu27034_set_scale(struct bu27034_data *data, int chan,
 
 			/* Can we provide requested scale with this time? */
 			ret = iio_gts_find_gain_sel_for_scale_using_time(
-				&data->gts, new_time_sel, val, val2 * 1000,
+				&data->gts, new_time_sel, val, val2,
 				&gain_sel);
 			if (ret)
 				continue;
@@ -1217,6 +1217,21 @@ static int bu27034_read_raw(struct iio_dev *idev,
 	}
 }
 
+static int bu27034_write_raw_get_fmt(struct iio_dev *indio_dev,
+				     struct iio_chan_spec const *chan,
+				     long mask)
+{
+
+	switch (mask) {
+	case IIO_CHAN_INFO_SCALE:
+		return IIO_VAL_INT_PLUS_NANO;
+	case IIO_CHAN_INFO_INT_TIME:
+		return IIO_VAL_INT_PLUS_MICRO;
+	default:
+		return -EINVAL;
+	}
+}
+
 static int bu27034_write_raw(struct iio_dev *idev,
 			     struct iio_chan_spec const *chan,
 			     int val, int val2, long mask)
@@ -1267,6 +1282,7 @@ static int bu27034_read_avail(struct iio_dev *idev,
 static const struct iio_info bu27034_info = {
 	.read_raw = &bu27034_read_raw,
 	.write_raw = &bu27034_write_raw,
+	.write_raw_get_fmt = &bu27034_write_raw_get_fmt,
 	.read_avail = &bu27034_read_avail,
 };
 
drivers/infiniband/core/umem.c +2 -1
index 755a9c57db6f..f9ab671c8eda 100644
@@ -85,6 +85,8 @@ unsigned long ib_umem_find_best_pgsz(struct ib_umem *umem,
 	dma_addr_t mask;
 	int i;
 
+	umem->iova = va = virt;
+
 	if (umem->is_odp) {
 		unsigned int page_size = BIT(to_ib_umem_odp(umem)->page_shift);
 
@@ -100,7 +102,6 @@ unsigned long ib_umem_find_best_pgsz(struct ib_umem *umem,
 	 */
 	pgsz_bitmap &= GENMASK(BITS_PER_LONG - 1, PAGE_SHIFT);
 
-	umem->iova = va = virt;
 	/* The best result is the smallest page size that results in the minimum
 	 * number of required pages. Compute the largest page size that could
 	 * work based on VA address bits that don't change.
drivers/infiniband/hw/bnxt_re/main.c +3 -1
index 1936f4b4002a..4f00fb7869f8 100644
@@ -1152,6 +1152,8 @@ static int bnxt_re_dev_init(struct bnxt_re_dev *rdev, u8 wqe_mode)
 
 	rc = bnxt_re_setup_chip_ctx(rdev, wqe_mode);
 	if (rc) {
+		bnxt_unregister_dev(rdev->en_dev);
+		clear_bit(BNXT_RE_FLAG_NETDEV_REGISTERED, &rdev->flags);
 		ibdev_err(&rdev->ibdev, "Failed to get chip context\n");
 		return -EINVAL;
 	}
@@ -1425,8 +1427,8 @@ static void bnxt_re_remove(struct auxiliary_device *adev)
 	}
 	bnxt_re_setup_cc(rdev, false);
 	ib_unregister_device(&rdev->ibdev);
-	ib_dealloc_device(&rdev->ibdev);
 	bnxt_re_dev_uninit(rdev);
+	ib_dealloc_device(&rdev->ibdev);
 skip_remove:
 	mutex_unlock(&bnxt_re_mutex);
 }
drivers/infiniband/hw/hfi1/chip.c +1 -0
index 9dbb89e9f4af..baaa4406d5e6 100644
@@ -12307,6 +12307,7 @@ static void free_cntrs(struct hfi1_devdata *dd)
 
 	if (dd->synth_stats_timer.function)
 		del_timer_sync(&dd->synth_stats_timer);
+	cancel_work_sync(&dd->update_cntr_work);
 	ppd = (struct hfi1_pportdata *)(dd + 1);
 	for (i = 0; i < dd->num_pports; i++, ppd++) {
 		kfree(ppd->cntrs);
drivers/interconnect/qcom/bcm-voter.c +5 -0
index 8f385f9c2dd3..d5f2a6b5376b 100644
@@ -83,6 +83,11 @@ static void bcm_aggregate(struct qcom_icc_bcm *bcm)
 
 		temp = agg_peak[bucket] * bcm->vote_scale;
 		bcm->vote_y[bucket] = bcm_div(temp, bcm->aux_data.unit);
+
+		if (bcm->enable_mask && (bcm->vote_x[bucket] || bcm->vote_y[bucket])) {
+			bcm->vote_x[bucket] = 0;
+			bcm->vote_y[bucket] = bcm->enable_mask;
+		}
 	}
 
 	if (bcm->keepalive && bcm->vote_x[QCOM_ICC_BUCKET_AMC] == 0 &&
drivers/interconnect/qcom/icc-rpmh.h +2 -0
index 04391c1ba465..7843d8864d6b 100644
@@ -81,6 +81,7 @@ struct qcom_icc_node {
  * @vote_x: aggregated threshold values, represents sum_bw when @type is bw bcm
  * @vote_y: aggregated threshold values, represents peak_bw when @type is bw bcm
  * @vote_scale: scaling factor for vote_x and vote_y
+ * @enable_mask: optional mask to send as vote instead of vote_x/vote_y
  * @dirty: flag used to indicate whether the bcm needs to be committed
  * @keepalive: flag used to indicate whether a keepalive is required
  * @aux_data: auxiliary data used when calculating threshold values and
@@ -97,6 +98,7 @@ struct qcom_icc_bcm {
 	u64 vote_x[QCOM_ICC_NUM_BUCKETS];
 	u64 vote_y[QCOM_ICC_NUM_BUCKETS];
 	u64 vote_scale;
+	u32 enable_mask;
 	bool dirty;
 	bool keepalive;
 	struct bcm_db aux_data;
drivers/interconnect/qcom/sa8775p.c +1 -0
index da21cc31a580..f56538669de0 100644
@@ -1873,6 +1873,7 @@ static struct qcom_icc_node srvc_snoc = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = 0x8,
 	.num_nodes = 1,
 	.nodes = { &ebi },
 };
drivers/interconnect/qcom/sm8450.c +9 -0
index 2d7a8e7b85ec..e64c214b4020 100644
@@ -1337,6 +1337,7 @@ static struct qcom_icc_node qns_mem_noc_sf_disp = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = 0x8,
 	.num_nodes = 1,
 	.nodes = { &ebi },
 };
@@ -1349,6 +1350,7 @@ static struct qcom_icc_bcm bcm_ce0 = {
 
 static struct qcom_icc_bcm bcm_cn0 = {
 	.name = "CN0",
+	.enable_mask = 0x1,
 	.keepalive = true,
 	.num_nodes = 55,
 	.nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
@@ -1383,6 +1385,7 @@ static struct qcom_icc_bcm bcm_cn0 = {
 
 static struct qcom_icc_bcm bcm_co0 = {
 	.name = "CO0",
+	.enable_mask = 0x1,
 	.num_nodes = 2,
 	.nodes = { &qxm_nsp, &qns_nsp_gemnoc },
 };
@@ -1403,6 +1406,7 @@ static struct qcom_icc_bcm bcm_mm0 = {
 
 static struct qcom_icc_bcm bcm_mm1 = {
 	.name = "MM1",
+	.enable_mask = 0x1,
 	.num_nodes = 12,
 	.nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
 		   &qnm_camnoc_sf, &qnm_mdp,
@@ -1445,6 +1449,7 @@ static struct qcom_icc_bcm bcm_sh0 = {
 
 static struct qcom_icc_bcm bcm_sh1 = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 7,
 	.nodes = { &alm_gpu_tcu, &alm_sys_tcu,
 		   &qnm_nsp_gemnoc, &qnm_pcie,
@@ -1461,6 +1466,7 @@ static struct qcom_icc_bcm bcm_sn0 = {
 
 static struct qcom_icc_bcm bcm_sn1 = {
 	.name = "SN1",
+	.enable_mask = 0x1,
 	.num_nodes = 4,
 	.nodes = { &qhm_gic, &qxm_pimem,
 		   &xm_gic, &qns_gemnoc_gc },
@@ -1492,6 +1498,7 @@ static struct qcom_icc_bcm bcm_sn7 = {
 
 static struct qcom_icc_bcm bcm_acv_disp = {
 	.name = "ACV",
+	.enable_mask = 0x1,
 	.num_nodes = 1,
 	.nodes = { &ebi_disp },
 };
@@ -1510,6 +1517,7 @@ static struct qcom_icc_bcm bcm_mm0_disp = {
 
 static struct qcom_icc_bcm bcm_mm1_disp = {
 	.name = "MM1",
+	.enable_mask = 0x1,
 	.num_nodes = 3,
 	.nodes = { &qnm_mdp_disp, &qnm_rot_disp,
 		   &qns_mem_noc_sf_disp },
@@ -1523,6 +1531,7 @@ static struct qcom_icc_bcm bcm_sh0_disp = {
 
 static struct qcom_icc_bcm bcm_sh1_disp = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 1,
 	.nodes = { &qnm_pcie_disp },
 };
drivers/interconnect/qcom/sm8550.c +17 -0
index d823ba988ef6..0864ed285375 100644
@@ -1473,6 +1473,7 @@ static struct qcom_icc_node qns_mem_noc_sf_cam_ife_2 = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = 0x8,
 	.num_nodes = 1,
 	.nodes = { &ebi },
 };
@@ -1485,6 +1486,7 @@ static struct qcom_icc_bcm bcm_ce0 = {
 
 static struct qcom_icc_bcm bcm_cn0 = {
 	.name = "CN0",
+	.enable_mask = 0x1,
 	.keepalive = true,
 	.num_nodes = 54,
 	.nodes = { &qsm_cfg, &qhs_ahb2phy0,
@@ -1524,6 +1526,7 @@ static struct qcom_icc_bcm bcm_cn1 = {
 
 static struct qcom_icc_bcm bcm_co0 = {
 	.name = "CO0",
+	.enable_mask = 0x1,
 	.num_nodes = 2,
 	.nodes = { &qxm_nsp, &qns_nsp_gemnoc },
 };
@@ -1549,6 +1552,7 @@ static struct qcom_icc_bcm bcm_mm0 = {
 
 static struct qcom_icc_bcm bcm_mm1 = {
 	.name = "MM1",
+	.enable_mask = 0x1,
 	.num_nodes = 8,
 	.nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
 		   &qnm_camnoc_sf, &qnm_vapss_hcp,
@@ -1589,6 +1593,7 @@ static struct qcom_icc_bcm bcm_sh0 = {
 
 static struct qcom_icc_bcm bcm_sh1 = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 13,
 	.nodes = { &alm_gpu_tcu, &alm_sys_tcu,
 		   &chm_apps, &qnm_gpu,
@@ -1608,6 +1613,7 @@ static struct qcom_icc_bcm bcm_sn0 = {
 
 static struct qcom_icc_bcm bcm_sn1 = {
 	.name = "SN1",
+	.enable_mask = 0x1,
 	.num_nodes = 3,
 	.nodes = { &qhm_gic, &xm_gic,
 		   &qns_gemnoc_gc },
@@ -1633,6 +1639,7 @@ static struct qcom_icc_bcm bcm_sn7 = {
 
 static struct qcom_icc_bcm bcm_acv_disp = {
 	.name = "ACV",
+	.enable_mask = 0x1,
 	.num_nodes = 1,
 	.nodes = { &ebi_disp },
 };
@@ -1657,12 +1664,14 @@ static struct qcom_icc_bcm bcm_sh0_disp = {
 
 static struct qcom_icc_bcm bcm_sh1_disp = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 2,
 	.nodes = { &qnm_mnoc_hf_disp, &qnm_pcie_disp },
 };
 
 static struct qcom_icc_bcm bcm_acv_cam_ife_0 = {
 	.name = "ACV",
+	.enable_mask = 0x0,
 	.num_nodes = 1,
 	.nodes = { &ebi_cam_ife_0 },
 };
@@ -1681,6 +1690,7 @@ static struct qcom_icc_bcm bcm_mm0_cam_ife_0 = {
 
 static struct qcom_icc_bcm bcm_mm1_cam_ife_0 = {
 	.name = "MM1",
+	.enable_mask = 0x1,
 	.num_nodes = 4,
 	.nodes = { &qnm_camnoc_hf_cam_ife_0, &qnm_camnoc_icp_cam_ife_0,
 		   &qnm_camnoc_sf_cam_ife_0, &qns_mem_noc_sf_cam_ife_0 },
@@ -1694,6 +1704,7 @@ static struct qcom_icc_bcm bcm_sh0_cam_ife_0 = {
 
 static struct qcom_icc_bcm bcm_sh1_cam_ife_0 = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 3,
 	.nodes = { &qnm_mnoc_hf_cam_ife_0, &qnm_mnoc_sf_cam_ife_0,
 		   &qnm_pcie_cam_ife_0 },
@@ -1701,6 +1712,7 @@ static struct qcom_icc_bcm bcm_sh1_cam_ife_0 = {
 
 static struct qcom_icc_bcm bcm_acv_cam_ife_1 = {
 	.name = "ACV",
+	.enable_mask = 0x0,
 	.num_nodes = 1,
 	.nodes = { &ebi_cam_ife_1 },
 };
@@ -1719,6 +1731,7 @@ static struct qcom_icc_bcm bcm_mm0_cam_ife_1 = {
 
 static struct qcom_icc_bcm bcm_mm1_cam_ife_1 = {
 	.name = "MM1",
+	.enable_mask = 0x1,
 	.num_nodes = 4,
 	.nodes = { &qnm_camnoc_hf_cam_ife_1, &qnm_camnoc_icp_cam_ife_1,
 		   &qnm_camnoc_sf_cam_ife_1, &qns_mem_noc_sf_cam_ife_1 },
@@ -1732,6 +1745,7 @@ static struct qcom_icc_bcm bcm_sh0_cam_ife_1 = {
 
 static struct qcom_icc_bcm bcm_sh1_cam_ife_1 = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 3,
 	.nodes = { &qnm_mnoc_hf_cam_ife_1, &qnm_mnoc_sf_cam_ife_1,
 		   &qnm_pcie_cam_ife_1 },
@@ -1739,6 +1753,7 @@ static struct qcom_icc_bcm bcm_sh1_cam_ife_1 = {
 
 static struct qcom_icc_bcm bcm_acv_cam_ife_2 = {
 	.name = "ACV",
+	.enable_mask = 0x0,
 	.num_nodes = 1,
 	.nodes = { &ebi_cam_ife_2 },
 };
@@ -1757,6 +1772,7 @@ static struct qcom_icc_bcm bcm_mm0_cam_ife_2 = {
 
 static struct qcom_icc_bcm bcm_mm1_cam_ife_2 = {
 	.name = "MM1",
+	.enable_mask = 0x1,
 	.num_nodes = 4,
 	.nodes = { &qnm_camnoc_hf_cam_ife_2, &qnm_camnoc_icp_cam_ife_2,
 		   &qnm_camnoc_sf_cam_ife_2, &qns_mem_noc_sf_cam_ife_2 },
@@ -1770,6 +1786,7 @@ static struct qcom_icc_bcm bcm_sh0_cam_ife_2 = {
 
 static struct qcom_icc_bcm bcm_sh1_cam_ife_2 = {
 	.name = "SH1",
+	.enable_mask = 0x1,
 	.num_nodes = 3,
 	.nodes = { &qnm_mnoc_hf_cam_ife_2, &qnm_mnoc_sf_cam_ife_2,
 		   &qnm_pcie_cam_ife_2 },
drivers/isdn/mISDN/dsp.h +1 -1
index fa09d511a8ed..baf31258f5c9 100644
@@ -247,7 +247,7 @@ extern void dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp);
 extern int dsp_cmx_conf(struct dsp *dsp, u32 conf_id);
 extern void dsp_cmx_receive(struct dsp *dsp, struct sk_buff *skb);
 extern void dsp_cmx_hdlc(struct dsp *dsp, struct sk_buff *skb);
-extern void dsp_cmx_send(void *arg);
+extern void dsp_cmx_send(struct timer_list *arg);
 extern void dsp_cmx_transmit(struct dsp *dsp, struct sk_buff *skb);
 extern int dsp_cmx_del_conf_member(struct dsp *dsp);
 extern int dsp_cmx_del_conf(struct dsp_conf *conf);
drivers/isdn/mISDN/dsp_cmx.c +1 -1
index 357b87592eb4..61cb45c5d0d8 100644
@@ -1614,7 +1614,7 @@ static u16	dsp_count; /* last sample count */
 static int	dsp_count_valid; /* if we have last sample count */
 
 void
-dsp_cmx_send(void *arg)
+dsp_cmx_send(struct timer_list *arg)
 {
 	struct dsp_conf *conf;
 	struct dsp_conf_member *member;
drivers/isdn/mISDN/dsp_core.c +1 -1
index 386084530c2f..fae95f166688 100644
@@ -1195,7 +1195,7 @@ static int __init dsp_init(void)
 	}
 
 	/* set sample timer */
-	timer_setup(&dsp_spl_tl, (void *)dsp_cmx_send, 0);
+	timer_setup(&dsp_spl_tl, dsp_cmx_send, 0);
 	dsp_spl_tl.expires = jiffies + dsp_tics;
 	dsp_spl_jiffies = dsp_spl_tl.expires;
 	add_timer(&dsp_spl_tl);
drivers/misc/cardreader/rts5227.c +1 -1
index d676cf63a966..3dae5e3a1697 100644
@@ -195,7 +195,7 @@ static int rts5227_extra_init_hw(struct rtsx_pcr *pcr)
 		}
 	}
 
-	if (option->force_clkreq_0)
+	if (option->force_clkreq_0 && pcr->aspm_mode == ASPM_MODE_CFG)
 		rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PETXCFG,
 				FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_LOW);
 	else
drivers/misc/cardreader/rts5228.c +0 -18
index cfebad51d1d8..f4ab09439da7 100644
@@ -435,17 +435,10 @@ static void rts5228_init_from_cfg(struct rtsx_pcr *pcr)
 			option->ltr_enabled = false;
 		}
 	}
-
-	if (rtsx_check_dev_flag(pcr, ASPM_L1_1_EN | ASPM_L1_2_EN
-				| PM_L1_1_EN | PM_L1_2_EN))
-		option->force_clkreq_0 = false;
-	else
-		option->force_clkreq_0 = true;
 }
 
 static int rts5228_extra_init_hw(struct rtsx_pcr *pcr)
 {
-	struct rtsx_cr_option *option = &pcr->option;
 
 	rtsx_pci_write_register(pcr, RTS5228_AUTOLOAD_CFG1,
 			CD_RESUME_EN_MASK, CD_RESUME_EN_MASK);
@@ -476,17 +469,6 @@ static int rts5228_extra_init_hw(struct rtsx_pcr *pcr)
 	else
 		rtsx_pci_write_register(pcr, PETXCFG, 0x30, 0x00);
 
-	/*
-	 * If u_force_clkreq_0 is enabled, CLKREQ# PIN will be forced
-	 * to drive low, and we forcibly request clock.
-	 */
-	if (option->force_clkreq_0)
-		rtsx_pci_write_register(pcr, PETXCFG,
-				 FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_LOW);
-	else
-		rtsx_pci_write_register(pcr, PETXCFG,
-				 FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_HIGH);
-
 	rtsx_pci_write_register(pcr, PWD_SUSPEND_EN, 0xFF, 0xFB);
 
 	if (pcr->rtd3_en) {
drivers/misc/cardreader/rts5249.c +1 -2
index 91d240dd68fa..47ab72a43256 100644
@@ -327,12 +327,11 @@ static int rts5249_extra_init_hw(struct rtsx_pcr *pcr)
 		}
 	}
 
-
 	/*
 	 * If u_force_clkreq_0 is enabled, CLKREQ# PIN will be forced
 	 * to drive low, and we forcibly request clock.
 	 */
-	if (option->force_clkreq_0)
+	if (option->force_clkreq_0 && pcr->aspm_mode == ASPM_MODE_CFG)
 		rtsx_pci_write_register(pcr, PETXCFG,
 			FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_LOW);
 	else
drivers/misc/cardreader/rts5260.c +0 -18
index 9b42b20a3e5a..79b18f6f73a8 100644
@@ -517,17 +517,10 @@ static void rts5260_init_from_cfg(struct rtsx_pcr *pcr)
 			option->ltr_enabled = false;
 		}
 	}
-
-	if (rtsx_check_dev_flag(pcr, ASPM_L1_1_EN | ASPM_L1_2_EN
-				| PM_L1_1_EN | PM_L1_2_EN))
-		option->force_clkreq_0 = false;
-	else
-		option->force_clkreq_0 = true;
 }
 
 static int rts5260_extra_init_hw(struct rtsx_pcr *pcr)
 {
-	struct rtsx_cr_option *option = &pcr->option;
 
 	/* Set mcu_cnt to 7 to ensure data can be sampled properly */
 	rtsx_pci_write_register(pcr, 0xFC03, 0x7F, 0x07);
@@ -546,17 +539,6 @@ static int rts5260_extra_init_hw(struct rtsx_pcr *pcr)
 
 	rts5260_init_hw(pcr);
 
-	/*
-	 * If u_force_clkreq_0 is enabled, CLKREQ# PIN will be forced
-	 * to drive low, and we forcibly request clock.
-	 */
-	if (option->force_clkreq_0)
-		rtsx_pci_write_register(pcr, PETXCFG,
-				 FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_LOW);
-	else
-		rtsx_pci_write_register(pcr, PETXCFG,
-				 FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_HIGH);
-
 	rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3, 0x10, 0x00);
 
 	return 0;
drivers/misc/cardreader/rts5261.c +0 -18
index b1e76030cafd..94af6bf8a25a 100644
@@ -498,17 +498,10 @@ static void rts5261_init_from_cfg(struct rtsx_pcr *pcr)
 			option->ltr_enabled = false;
 		}
 	}
-
-	if (rtsx_check_dev_flag(pcr, ASPM_L1_1_EN | ASPM_L1_2_EN
-				| PM_L1_1_EN | PM_L1_2_EN))
-		option->force_clkreq_0 = false;
-	else
-		option->force_clkreq_0 = true;
 }
 
 static int rts5261_extra_init_hw(struct rtsx_pcr *pcr)
 {
-	struct rtsx_cr_option *option = &pcr->option;
 	u32 val;
 
 	rtsx_pci_write_register(pcr, RTS5261_AUTOLOAD_CFG1,
@@ -554,17 +547,6 @@ static int rts5261_extra_init_hw(struct rtsx_pcr *pcr)
 	else
 		rtsx_pci_write_register(pcr, PETXCFG, 0x30, 0x00);
 
-	/*
-	 * If u_force_clkreq_0 is enabled, CLKREQ# PIN will be forced
-	 * to drive low, and we forcibly request clock.
-	 */
-	if (option->force_clkreq_0)
-		rtsx_pci_write_register(pcr, PETXCFG,
-				 FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_LOW);
-	else
-		rtsx_pci_write_register(pcr, PETXCFG,
-				 FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_HIGH);
-
 	rtsx_pci_write_register(pcr, PWD_SUSPEND_EN, 0xFF, 0xFB);
 
 	if (pcr->rtd3_en) {
drivers/misc/cardreader/rtsx_pcr.c +4 -1
index 32b7783e9d4f..a3f4b52bb159 100644
@@ -1326,8 +1326,11 @@ static int rtsx_pci_init_hw(struct rtsx_pcr *pcr)
 			return err;
 	}
 
-	if (pcr->aspm_mode == ASPM_MODE_REG)
+	if (pcr->aspm_mode == ASPM_MODE_REG) {
 		rtsx_pci_write_register(pcr, ASPM_FORCE_CTL, 0x30, 0x30);
+		rtsx_pci_write_register(pcr, PETXCFG,
+				FORCE_CLKREQ_DELINK_MASK, FORCE_CLKREQ_HIGH);
+	}
 
 	/* No CD interrupt if probing driver with card inserted.
 	 * So we need to initialize pcr->card_exist here.
drivers/mmc/host/moxart-mmc.c +1 -7
index 2d002c81dcf3..d0d6ffcf78d4 100644
@@ -338,13 +338,7 @@ static void moxart_transfer_pio(struct moxart_host *host)
 				return;
 			}
 			for (len = 0; len < remain && len < host->fifo_width;) {
-				/* SCR data must be read in big endian. */
-				if (data->mrq->cmd->opcode == SD_APP_SEND_SCR)
-					*sgp = ioread32be(host->base +
-							  REG_DATA_WINDOW);
-				else
-					*sgp = ioread32(host->base +
-							REG_DATA_WINDOW);
+				*sgp = ioread32(host->base + REG_DATA_WINDOW);
 				sgp++;
 				len += 4;
 			}
drivers/mmc/host/sdhci_f_sdh30.c +27 -33

115 lines not on this page · raw message

drivers/net/bonding/bond_main.c +3 -1
index 1a0776f9b008..7be484f2c926 100644
@@ -5898,7 +5898,9 @@ void bond_setup(struct net_device *bond_dev)
 
 	bond_dev->hw_features = BOND_VLAN_FEATURES |
 				NETIF_F_HW_VLAN_CTAG_RX |
-				NETIF_F_HW_VLAN_CTAG_FILTER;
+				NETIF_F_HW_VLAN_CTAG_FILTER |
+				NETIF_F_HW_VLAN_STAG_RX |
+				NETIF_F_HW_VLAN_STAG_FILTER;
 
 	bond_dev->hw_features |= NETIF_F_GSO_ENCAP_ALL;
 	bond_dev->features |= bond_dev->hw_features;
drivers/net/dsa/ocelot/felix.c +2 -0
index d78b4bd4787e..b090b4408e3a 100644
@@ -1625,8 +1625,10 @@ static void felix_teardown(struct dsa_switch *ds)
 	struct felix *felix = ocelot_to_felix(ocelot);
 	struct dsa_port *dp;
 
[… more lines in the raw message]

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

drivers/net/ethernet/freescale/enetc/enetc_pf.c +73 -30

103 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +2 -2
index 32bb14303473..207b2e3f3fc2 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +13 -1
index b676496ec6d7..94acefd153bf 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +2 -2
index 409db2e70965..0fb2eaee3e8a 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +18 -6
index 2689b108f7df..c3e94598f398 100644

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

drivers/net/ethernet/ibm/ibmvnic.c +99 -13

112 lines not on this page · raw message

drivers/net/ethernet/intel/iavf/iavf_ethtool.c +4 -1
index 2f47cfa7f06e..460ca561819a 100644

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

drivers/net/ethernet/intel/iavf/iavf_fdir.c +8 -3
index 6146203efd84..505e82ebafe4 100644

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

drivers/net/ethernet/intel/igc/igc.h +4 -0
index 345d3a4e8ed4..2bd042dcd00f 100644

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

drivers/net/ethernet/intel/igc/igc_main.c +32 -2
index 3ccf2fedc5af..2ae74870bbae 100644

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

drivers/net/ethernet/marvell/prestera/prestera_router.c +7 -7
index a9a1028cb17b..de317179a7dc 100644

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

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c +4 -2
index 0c88cf47af01..1730f6a716ee 100644

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

drivers/net/ethernet/mellanox/mlx5/core/en_main.c +11 -0
index f084513fbead..7e6d0489854e 100644

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

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +13 -8
index e002f013fa01..73c827ee1a94 100644

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

drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c +1 -1
index d3a3fe4ce670..7d9bbb494d95 100644

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

drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +5 -0
index 932fbc843c69..dba4c5e2f766 100644

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

drivers/net/ethernet/mellanox/mlx5/core/main.c +1 -1
index c7a06c8bbb7a..321683977654 100644

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

drivers/net/ethernet/mellanox/mlx5/core/sriov.c +1 -2
index 20d7662c10fb..5f2195e65dd6 100644

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

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ptrn.c +1 -1
index d6947fe13d56..8ca534ef5d03 100644

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

drivers/net/ethernet/microsoft/mana/mana_en.c +33 -4
index d907727c7b7a..96c78f7db254 100644

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

drivers/net/ethernet/pensando/ionic/ionic_lif.c +16 -7
index e03a94f2469a..a25a202ad75a 100644

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

drivers/net/macsec.c +14 -14
index 984dfa5d6c11..144ec756c796 100644

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

drivers/net/phy/at803x.c +0 -2
index 656136628ffd..ef6dc008e4c5 100644

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

drivers/net/tun.c +1 -1
index 25f0191df00b..100339bc8b04 100644

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

drivers/net/vxlan/vxlan_vnifilter.c +8 -3
index a3de081cda5e..c3ff30ab782e 100644

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

drivers/net/wireguard/allowedips.c +4 -4
index 5bf7822c53f1..0ba714ca5185 100644

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

drivers/net/wireguard/selftest/allowedips.c +10 -6
index 78ebe2892a78..3d1f64ff2e12 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +5 -0
index de8a2e27f49c..2a90bb24ba77 100644

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

drivers/net/wireless/realtek/rtw89/mac.c +1 -1
index 512de491a064..e31c0cdfd16c 100644

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

drivers/nvme/host/core.c +7 -3
index 45f1dac07685..c61173be4127 100644

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

drivers/nvme/host/pci.c +2 -1
index 5b5303f0e2c2..a277ef16392c 100644

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

drivers/nvme/host/rdma.c +2 -1
index 0eb79696fb73..354cce8853c1 100644

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

drivers/nvme/host/tcp.c +2 -1
index bf0230442d57..5ae08e9cb16d 100644

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

drivers/pci/bus.c +3 -1
index 5bc81cc0a2de..46b252bbe500 100644

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

drivers/pci/controller/Kconfig +0 -1
index 8d49bad7f847..0859be86e718 100644

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

drivers/pci/of.c +0 -5
index 2c25f4fa0225..6f305362ba30 100644

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

drivers/platform/x86/lenovo-ymc.c +25 -0
index 41676188b373..f360370d5002 100644

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

drivers/platform/x86/mlx-platform.c +11 -12
index 67367f010139..7d33977d9c60 100644

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

drivers/platform/x86/msi-ec.c +9 -9
index ff93986e3d35..f26a3121092f 100644

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

drivers/platform/x86/serial-multi-instantiate.c +31 -4
index f3dcbdd72fec..8158e3cf5d6d 100644

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

drivers/scsi/53c700.c +1 -1
index e1e4f9d10887..857be0f3ae5b 100644

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

drivers/scsi/fnic/fnic.h +1 -1
index d82de34f6fd7..e51e92f932fa 100644

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

drivers/scsi/fnic/fnic_scsi.c +4 -2
index 26dbd347156e..be89ce96df46 100644

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

drivers/scsi/qedf/qedf_main.c +18 -0
index 2a31ddc99dde..7825765c936c 100644

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

drivers/scsi/qedi/qedi_main.c +18 -0
index 45d359554182..ef62dbbc1868 100644

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

drivers/scsi/raid_class.c +1 -0
index 898a0bdf8df6..711252e52d8e 100644

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

drivers/scsi/scsi_proc.c +17 -13
index 4a6eb1741be0..41f23cd0bfb4 100644

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

drivers/scsi/snic/snic_disc.c +1 -0
index 8fbf3c1b1311..cd27562ec922 100644

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

drivers/scsi/storvsc_drv.c +0 -4
index 4d72d82f7358..182cf916f083 100644

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

drivers/thunderbolt/tb.c +2 -0
index c1af712ca728..7c67476efa78 100644

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

drivers/ufs/host/ufs-renesas.c +1 -1
index f8a5e79ed3b4..ab0652d8705a 100644

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

drivers/usb/common/usb-conn-gpio.c +5 -1
index e20874caba36..3f5180d64931 100644

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

drivers/usb/dwc3/gadget.c +8 -1
index 550dc8f4d16a..f7957a93abd2 100644

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

drivers/usb/gadget/udc/core.c +9 -0
index 0068d0c44865..d5bc2892184c 100644

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

drivers/usb/storage/alauda.c +9 -3
index 5e912dd29b4c..115f05a6201a 100644

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

drivers/usb/typec/altmodes/displayport.c +17 -1
index 66de880b28d0..cdf8261e22db 100644

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

drivers/usb/typec/tcpm/tcpm.c +7 -0
index 3c6b0c8e2d3a..dc113cbb3bed 100644

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

fs/btrfs/block-group.c +15 -2
index ad14dd745e4a..2a60033d907b 100644

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

fs/btrfs/block-group.h +2 -0
index 3195d0b0dbed..471f591db7c0 100644

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

fs/btrfs/disk-io.c +2 -1
index 9f056ad41df0..f890c4c71cda 100644

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

fs/btrfs/extent-tree.c +4 -1
index 5cd289de4e92..10bffcb37914 100644

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

fs/btrfs/extent_io.c +10 -3
index 82b9779deaa8..54eed5a8a412 100644

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

fs/btrfs/inode.c +5 -5
index c89071186388..ace949bc7505 100644

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

fs/btrfs/relocation.c +37 -8

45 lines not on this page · raw message

fs/btrfs/tree-checker.c +14 -0
index 2138e9fc0564..9bbcb9375530 100644

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

fs/nilfs2/inode.c +8 -0
index a8ce522ac747..35bc79305318 100644

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

fs/nilfs2/segment.c +2 -0
index c2553024bd25..581691e4be49 100644

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

fs/nilfs2/the_nilfs.h +2 -0
index 47c7dfbb7ea5..cd4ae1b8ae16 100644

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

fs/proc/kcore.c +27 -3
index 25b44b303b35..2669035f7eb1 100644

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

fs/smb/server/smb2misc.c +5 -5
index 33b7e6c4ceff..e881df1d10cb 100644

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

fs/smb/server/smb2pdu.c +8 -1
index d7e519648560..4b4764abcdff 100644

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

include/linux/cpu.h +2 -0
index ce41922470a5..e81edf076f29 100644

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

include/linux/skmsg.h +1 -0
index 054d7911bfc9..c1637515a8a4 100644

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

include/linux/tpm.h +1 -0
index 6a1e8f157255..4ee9d13749ad 100644

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

include/net/cfg80211.h +3 -0
index 9e04f69712b1..f67f705c5ad0 100644

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

include/net/netfilter/nf_tables.h +63 -1

64 lines not on this page · raw message

include/trace/events/tcp.h +4 -1
index bf06db8d2046..7b1ddffa3dfc 100644

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

io_uring/io_uring.c +3 -0
index 2989b81cca82..a57bdf336ca8 100644

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

io_uring/openclose.c +4 -2
index a1b98c81a52d..1b4a06a8572d 100644

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

mm/damon/core.c +1 -0
index 91cff7f2997e..eb9580942a5c 100644

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

mm/hugetlb.c +51 -24

75 lines not on this page · raw message

mm/memory-failure.c +16 -13
index 47e2b545ffcc..244dbfe075a2 100644

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

mm/zsmalloc.c +9 -5
index 02f7f414aade..4def13ee071c 100644

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

net/core/filter.c +0 -6
index 1c959794a886..f15ae393c276 100644

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

net/core/skmsg.c +8 -2
index a29508e1ff35..ef1a2eb6520b 100644

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

net/core/sock_map.c +5 -5
index 08ab108206bf..8f07fea39d9e 100644

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

net/dccp/output.c +1 -1
index b8a24734385e..fd2eb148d24d 100644

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

net/dccp/proto.c +8 -2
index b0ebf853cb07..18873f2308ec 100644

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

net/ipv4/ip_tunnel_core.c +1 -1
index 92c02c886fe7..586b1b3e35b8 100644

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

net/ipv4/nexthop.c +7 -21
index f95142e56da0..be5498f5dd31 100644

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

net/ipv6/ndisc.c +2 -1
index 18634ebd20a4..a42be96ae209 100644

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

net/mptcp/protocol.c +2 -2
index f2eeb8a850af..39daf5915bae 100644

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

net/mptcp/protocol.h +0 -1
index d3783a7056e1..16c9c3197ada 100644

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

net/mptcp/subflow.c +29 -29

58 lines not on this page · raw message

net/netfilter/nf_tables_api.c +243 -16

259 lines not on this page · raw message

net/netfilter/nft_set_hash.c +52 -33

85 lines not on this page · raw message

net/netfilter/nft_set_pipapo.c +48 -18

66 lines not on this page · raw message

net/netfilter/nft_set_rbtree.c +87 -59

146 lines not on this page · raw message

net/packet/af_packet.c +10 -6
index a753246ef165..96a017f78539 100644

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

net/smc/af_smc.c +53 -24

77 lines not on this page · raw message

net/smc/smc.h +1 -1
index 2eeea4cdc718..1f2b912c43d1 100644

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

net/smc/smc_clc.c +2 -2
index b9b8b07aa702..c90d9e5dda54 100644

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

net/smc/smc_core.c +12 -13
index 3f465faf2b68..6b78075404d7 100644

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

net/smc/smc_sysctl.c +8 -2
index b6f79fabb9d3..0b2a957ca5f5 100644

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

net/tls/tls_device.c +33 -31

64 lines not on this page · raw message

net/wireless/nl80211.c +4 -1
index 087d60c0f6e4..1b688745ce0a 100644

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

net/xdp/xsk.c +1 -0
index 35e518eaaeba..5f249fa96998 100644

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

tools/testing/radix-tree/regression1.c +1 -1
index a61c7bcbc72d..63f468bf8245 100644

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

tools/testing/selftests/bpf/prog_tests/sockmap_listen.c +1 -1
index b4f6f3a50ae5..ba35bcc66e7e 100644

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

tools/testing/selftests/mm/ksm_tests.c +1 -0
index 435acebdc325..380b691d3eb9 100644

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

tools/testing/selftests/net/fib_nexthops.sh +10 -0
index 0f5e88c8f4ff..df8d90b51867 100755

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

tools/testing/selftests/net/forwarding/bridge_mdb.sh +33 -26

59 lines not on this page · raw message

tools/testing/selftests/net/forwarding/bridge_mdb_max.sh +15 -4
index ae255b662ba3..3da9d93ab36f 100755

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

tools/testing/selftests/net/forwarding/ethtool.sh +2 -0
index dbb9fcf759e0..aa2eafb7b243 100755

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

tools/testing/selftests/net/forwarding/ethtool_extended_state.sh +2 -0
index 072faa77f53b..17f89c3b7c02 100755

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

tools/testing/selftests/net/forwarding/ethtool_mm.sh +13 -5
index c580ad623848..39e736f30322 100755

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

tools/testing/selftests/net/forwarding/hw_stats_l3_gre.sh +2 -0
index eb9ec4a68f84..7594bbb49029 100755

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

tools/testing/selftests/net/forwarding/ip6_forward_instats_vrf.sh +2 -0
index 9f5b3e2e5e95..49fa94b53a1c 100755

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

tools/testing/selftests/net/forwarding/lib.sh +17 -0
index 9ddb68dd6a08..f69015bf2dea 100755

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

tools/testing/selftests/net/forwarding/settings new file +1 -0
new file mode 100644
index 000000000000..e7b9417537fb

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

tools/testing/selftests/net/forwarding/tc_actions.sh +4 -2
index a96cff8e7219..b0f5e55d2d0b 100755

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

tools/testing/selftests/net/forwarding/tc_flower.sh +4 -4
index 683711f41aa9..b1daad19b01e 100755

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

tools/testing/selftests/net/forwarding/tc_tunnel_key.sh +6 -3
index 5ac184d51809..5a5dd9034819 100755

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

tools/testing/selftests/net/mptcp/mptcp_join.sh +4 -2
index a40c35c90c52..de0d04b0e246 100755

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

tools/testing/selftests/rseq/Makefile +3 -1
index b357ba24af06..7a957c7d459a 100644

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

tools/testing/selftests/rseq/rseq.c +2 -0
index a723da253244..96e812bdf8a4 100644

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

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

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