Skip to contentSkip to conversation

Linux 6.4.8

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

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.4.8 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

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

 Documentation/ABI/testing/sysfs-module                                               |   11 
 Documentation/admin-guide/hw-vuln/spectre.rst                                        |   11 
 Documentation/filesystems/tmpfs.rst                                                  |   47 
 Documentation/process/security-bugs.rst                                              |   39 
 Makefile                                                                             |    2 
 arch/arm64/include/asm/virt.h                                                        |    1 
 arch/arm64/kernel/fpsimd.c                                                           |    4 
 arch/arm64/kvm/arm.c                                                                 |    9 
 arch/arm64/kvm/pkvm.c                                                                |    2 
 arch/loongarch/Kconfig                                                               |    1 
 arch/loongarch/lib/clear_user.S                                                      |    3 
 arch/loongarch/lib/copy_user.S                                                       |    3 
 arch/loongarch/net/bpf_jit.h                                                         |    2 
 arch/powerpc/platforms/pseries/vas.c                                                 |    9 
 arch/s390/kvm/pv.c                                                                   |    8 
 arch/s390/mm/fault.c                                                                 |    2 
 arch/s390/mm/gmap.c                                                                  |    1 
 arch/um/os-Linux/sigio.c                                                             |    7 
 arch/x86/include/asm/kvm-x86-ops.h                                                   |    1 
 arch/x86/include/asm/kvm_host.h                                                      |    3 
 arch/x86/kernel/cpu/bugs.c                                                           |   15 
 arch/x86/kernel/cpu/mce/amd.c                                                        |    4 
 arch/x86/kernel/traps.c                                                              |   18 
 arch/x86/kvm/svm/svm.c                                                               |    6 
 arch/x86/kvm/vmx/vmx.c                                                               |   41 
 arch/x86/kvm/x86.c                                                                   |   34 
 block/blk-core.c                                                                     |    3 
 block/blk-mq.c                                                                       |    9 
 drivers/acpi/arm64/iort.c                                                            |    3 
 drivers/ata/pata_ns87415.c                                                           |    2 
 drivers/base/power/power.h                                                           |    1 
 drivers/base/power/wakeirq.c                                                         |   12 
 drivers/base/regmap/regmap-kunit.c                                                   |    3 
 drivers/block/rbd.c                                                                  |  124 +
 drivers/block/ublk_drv.c                                                             |   11 
 drivers/char/tpm/tpm_tis_core.c                                                      |    9 
 drivers/cxl/acpi.c                                                                   |    5 
 drivers/dma-buf/dma-fence-unwrap.c                                                   |   26 
 drivers/dma-buf/dma-fence.c                                                          |    7 
 drivers/gpio/gpio-mvebu.c                                                            |   26 
 drivers/gpio/gpio-tps68470.c                                                         |    6 
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                                                  |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                                           |   19 
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c                                              |    6 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c                          |    2 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c                                |    3 
 drivers/gpu/drm/amd/display/dc/core/dc.c                                             |   25 
 drivers/gpu/drm/amd/display/dc/dc.h                                                  |    3 
 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c                                         |    7 
 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h                                         |    1 
 drivers/gpu/drm/amd/display/dc/dc_stream.h                                           |    1 
 drivers/gpu/drm/amd/display/dc/dc_types.h                                            |    1 
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c                                   |    4 
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c                                    |    7 
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c                                  |    1 
 drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c                              |  106 +
 drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c                                 |   23 
 drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c                                 |   25 
 drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.h                                 |    3 
 drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c                       |   39 
 drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c                    |    3 
 drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c                               |   15 
 drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c                  |   16 
 drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h                            |    3 
 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c                                |    6 
 drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c |   23 
 drivers/gpu/drm/amd/display/dmub/dmub_srv.h                                          |    2 
 drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h                                      |    2 
 drivers/gpu/drm/amd/display/dmub/src/Makefile                                        |    2 
 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.c                                    |    5 
 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.h                                    |    2 
 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn314.c                                   |   67 
 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn314.h                                   |   35 
 drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c                                      |   12 
 drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c                              |   89 -
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c                                       |   21 
 drivers/gpu/drm/drm_syncobj.c                                                        |    6 
 drivers/gpu/drm/i915/display/intel_dpt.c                                             |    4 
 drivers/gpu/drm/i915/gem/selftests/huge_pages.c                                      |    6 
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c                                                |    2 
 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h                                          |    2 
 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h                                        |   13 
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c                                           |    8 
 drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c                                           |    2 
 drivers/gpu/drm/msm/msm_fence.c                                                      |    6 
 drivers/gpu/drm/msm/msm_gem_submit.c                                                 |   16 
 drivers/gpu/drm/msm/msm_mdss.c                                                       |   19 
 drivers/gpu/drm/ttm/ttm_bo.c                                                         |    6 
 drivers/hwmon/aquacomputer_d5next.c                                                  |    2 
 drivers/hwmon/k10temp.c                                                              |   17 
 drivers/hwmon/nct7802.c                                                              |    2 
 drivers/hwmon/pmbus/pmbus_core.c                                                     |   20 
 drivers/i2c/busses/i2c-ibm_iic.c                                                     |    4 
 drivers/i2c/busses/i2c-nomadik.c                                                     |   42 
 drivers/i2c/busses/i2c-sh7760.c                                                      |    3 
 drivers/i2c/busses/i2c-tiny-usb.c                                                    |    4 
 drivers/infiniband/core/cma.c                                                        |    2 
 drivers/infiniband/hw/bnxt_re/ib_verbs.c                                             |   12 
 drivers/infiniband/hw/bnxt_re/qplib_fp.c                                             |   28 
 drivers/infiniband/hw/bnxt_re/qplib_fp.h                                             |    1 
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c                                           |  353 +++-
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h                                           |   26 
 drivers/infiniband/hw/irdma/ctrl.c                                                   |   31 
 drivers/infiniband/hw/irdma/defs.h                                                   |   46 
 drivers/infiniband/hw/irdma/hw.c                                                     |    3 
 drivers/infiniband/hw/irdma/main.h                                                   |    2 
 drivers/infiniband/hw/irdma/puda.c                                                   |    6 
 drivers/infiniband/hw/irdma/type.h                                                   |    2 
 drivers/infiniband/hw/irdma/uk.c                                                     |    5 
 drivers/infiniband/hw/irdma/utils.c                                                  |    8 
 drivers/infiniband/hw/mlx4/qp.c                                                      |   18 
 drivers/infiniband/hw/mthca/mthca_qp.c                                               |    2 
 drivers/iommu/iommufd/device.c                                                       |   12 
 drivers/iommu/iommufd/iommufd_private.h                                              |   15 
 drivers/iommu/iommufd/main.c                                                         |   78 
 drivers/iommu/iommufd/pages.c                                                        |    2 
 drivers/irqchip/irq-bcm6345-l1.c                                                     |   14 
 drivers/irqchip/irq-gic-v3-its.c                                                     |   75 
 drivers/md/dm-cache-policy-smq.c                                                     |   28 
 drivers/md/dm-raid.c                                                                 |   20 
 drivers/md/md.c                                                                      |    2 
 drivers/media/i2c/tc358746.c                                                         |    4 
 drivers/media/platform/amphion/vpu_core.c                                            |    4 
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c                                 |  860 ++++------
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c                               |    4 
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c                               |    4 
 drivers/net/bonding/bond_main.c                                                      |    5 
 drivers/net/can/usb/gs_usb.c                                                         |    2 
 drivers/net/dsa/qca/qca8k-8xxx.c                                                     |    7 
 drivers/net/dsa/qca/qca8k-common.c                                                   |   19 
 drivers/net/ethernet/atheros/atl1e/atl1e_main.c                                      |    7 
 drivers/net/ethernet/atheros/atlx/atl1.c                                             |    7 
 drivers/net/ethernet/emulex/benet/be_main.c                                          |    3 
 drivers/net/ethernet/freescale/fec_main.c                                            |   18 
 drivers/net/ethernet/hisilicon/hns3/hnae3.h                                          |    3 
 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c                     |   21 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c                               |   17 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c                           |    3 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c                                |    3 
 drivers/net/ethernet/intel/i40e/i40e_debugfs.c                                       |    2 
 drivers/net/ethernet/intel/iavf/iavf_main.c                                          |   11 
 drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c                                    |   26 
 drivers/net/ethernet/intel/igc/igc_main.c                                            |   40 
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c                                        |    2 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c                             |   43 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h                             |    8 
 drivers/net/ethernet/realtek/r8169_main.c                                            |   27 
 drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c                                     |    4 
 drivers/net/ipa/ipa_table.c                                                          |   20 
 drivers/net/macvlan.c                                                                |    1 
 drivers/net/phy/marvell10g.c                                                         |    7 
 drivers/net/team/team.c                                                              |    9 
 drivers/net/virtio_net.c                                                             |    4 
 drivers/net/vxlan/vxlan_core.c                                                       |  165 +
 drivers/pci/controller/pcie-rockchip-ep.c                                            |  156 -
 drivers/pci/controller/pcie-rockchip.h                                               |   40 
 drivers/pci/pcie/aspm.c                                                              |   55 
 drivers/phy/hisilicon/phy-hisi-inno-usb2.c                                           |    2 
 drivers/phy/mediatek/phy-mtk-dp.c                                                    |    2 
 drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c                                           |    2 
 drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c                                        |   72 
 drivers/platform/x86/amd/pmf/acpi.c                                                  |   23 
 drivers/platform/x86/amd/pmf/core.c                                                  |    9 
 drivers/platform/x86/amd/pmf/pmf.h                                                   |   16 
 drivers/platform/x86/amd/pmf/sps.c                                                   |   74 
 drivers/platform/x86/msi-laptop.c                                                    |    8 
 drivers/s390/block/dasd_3990_erp.c                                                   |    2 
 drivers/s390/block/dasd_ioctl.c                                                      |    1 
 drivers/soundwire/amd_manager.c                                                      |    4 
 drivers/soundwire/bus.c                                                              |    8 
 drivers/soundwire/qcom.c                                                             |    2 
 drivers/staging/ks7010/ks_wlan_net.c                                                 |    6 
 drivers/staging/media/atomisp/Kconfig                                                |    1 
 drivers/staging/rtl8712/rtl871x_xmit.c                                               |   43 
 drivers/staging/rtl8712/xmit_linux.c                                                 |    6 
 drivers/thermal/thermal_of.c                                                         |   27 
 drivers/tty/n_gsm.c                                                                  |    4 
 drivers/tty/serial/8250/8250_dwlib.c                                                 |    6 
 drivers/tty/serial/qcom_geni_serial.c                                                |    7 
 drivers/tty/serial/sh-sci.c                                                          |    2 
 drivers/tty/serial/sifive.c                                                          |    2 
 drivers/tty/tty_io.c                                                                 |    2 
 drivers/usb/cdns3/cdns3-gadget.c                                                     |    4 
 drivers/usb/core/quirks.c                                                            |    4 
 drivers/usb/dwc3/core.c                                                              |   20 
 drivers/usb/dwc3/core.h                                                              |    3 
 drivers/usb/dwc3/dwc3-pci.c                                                          |    6 
 drivers/usb/gadget/composite.c                                                       |    4 
 drivers/usb/gadget/legacy/raw_gadget.c                                               |   10 
 drivers/usb/gadget/udc/core.c                                                        |    1 
 drivers/usb/gadget/udc/tegra-xudc.c                                                  |    8 
 drivers/usb/host/ohci-at91.c                                                         |    8 
 drivers/usb/host/xhci-mtk.c                                                          |    1 
 drivers/usb/host/xhci-pci.c                                                          |    4 
 drivers/usb/host/xhci-ring.c                                                         |   25 
 drivers/usb/host/xhci-tegra.c                                                        |    8 
 drivers/usb/misc/ehset.c                                                             |    8 
 drivers/usb/serial/option.c                                                          |    6 
 drivers/usb/serial/usb-serial-simple.c                                               |   73 
 drivers/usb/typec/class.c                                                            |   15 
 drivers/xen/grant-table.c                                                            |   40 
 drivers/xen/xenbus/xenbus_probe.c                                                    |    3 
 fs/9p/fid.h                                                                          |    6 
 fs/9p/v9fs.h                                                                         |    2 
 fs/9p/vfs_dir.c                                                                      |    5 
 fs/9p/vfs_file.c                                                                     |    5 
 fs/btrfs/block-rsv.c                                                                 |    5 
 fs/btrfs/disk-io.c                                                                   |    7 
 fs/btrfs/extent_io.c                                                                 |   21 
 fs/btrfs/qgroup.c                                                                    |   18 
 fs/btrfs/transaction.c                                                               |   10 
 fs/btrfs/zoned.c                                                                     |    3 
 fs/ceph/metric.c                                                                     |    2 
 fs/ext4/mballoc.c                                                                    |  194 +-
 fs/file.c                                                                            |    6 
 fs/jbd2/checkpoint.c                                                                 |   32 
 fs/nfsd/nfs4state.c                                                                  |    2 
 fs/proc/vmcore.c                                                                     |    2 
 fs/smb/client/sess.c                                                                 |    4 
 fs/smb/server/ksmbd_netlink.h                                                        |    3 
 fs/smb/server/smb2pdu.c                                                              |   27 
 fs/smb/server/vfs.c                                                                  |   58 
 fs/smb/server/vfs.h                                                                  |    4 
 include/linux/dma-fence.h                                                            |    2 
 include/linux/mm.h                                                                   |   29 
 include/linux/mm_types.h                                                             |   28 
 include/linux/mmap_lock.h                                                            |   10 
 include/net/ipv6.h                                                                   |    8 
 include/net/vxlan.h                                                                  |   13 
 include/uapi/linux/blkzoned.h                                                        |   10 
 io_uring/io_uring.c                                                                  |   25 
 kernel/locking/rtmutex.c                                                             |  170 +
 kernel/locking/rtmutex_api.c                                                         |    2 
 kernel/locking/rtmutex_common.h                                                      |   47 
 kernel/locking/ww_mutex.h                                                            |   12 
 kernel/signal.c                                                                      |    4 
 kernel/trace/ring_buffer.c                                                           |   22 
 kernel/trace/trace_events.c                                                          |   14 
 lib/test_maple_tree.c                                                                |  163 -
 mm/memory-failure.c                                                                  |    2 
 mm/mempolicy.c                                                                       |   15 
 mm/mmap.c                                                                            |    1 
 net/ceph/messenger.c                                                                 |    1 
 net/ipv6/addrconf.c                                                                  |   14 
 net/mptcp/protocol.c                                                                 |    3 
 net/netfilter/nf_tables_api.c                                                        |    5 
 net/netfilter/nft_immediate.c                                                        |   27 
 net/netfilter/nft_set_rbtree.c                                                       |   20 
 net/sched/sch_mqprio.c                                                               |   14 
 net/tipc/crypto.c                                                                    |    3 
 net/tipc/node.c                                                                      |    2 
 sound/pci/hda/patch_realtek.c                                                        |    2 
 sound/soc/codecs/wm8904.c                                                            |    3 
 sound/soc/fsl/fsl_spdif.c                                                            |    2 
 tools/net/ynl/lib/ynl.py                                                             |    4 
 tools/testing/radix-tree/linux/init.h                                                |    1 
 tools/testing/radix-tree/maple.c                                                     |  147 -
 tools/testing/selftests/net/mptcp/mptcp_join.sh                                      |    4 
 virt/kvm/kvm_main.c                                                                  |   24 
 259 files changed, 3541 insertions(+), 2007 deletions(-)

Adrien Thierry (2):
phy: qcom-snps-femto-v2: keep cfg_ahb_clk enabled during runtime suspend
phy: qcom-snps-femto-v2: properly enable ref clock

Ahmad Fatoum (1):
thermal: of: fix double-free on unregistration

Aleksa Savic (1):
hwmon: (aquacomputer_d5next) Fix incorrect PWM value readout

Alex Elder (1):
net: ipa: only reset hashed tables when supported

Alexander Steffen (1):
tpm_tis: Explicitly check for error code

Andi Shyti (2):
i2c: nomadik: Remove unnecessary goto label
i2c: nomadik: Use devm_clk_get_enabled()

Andy Shevchenko (1):
Revert "um: Use swap() to make code cleaner"

Arkadiusz Kubalewski (1):
tools: ynl-gen: fix enum index in _decode_enum(..)

Arnd Bergmann (2):
media: mtk_jpeg_core: avoid unused-variable warning
ata: pata_ns87415: mark ns87560_tf_read static

Bart Van Assche (1):
block: Fix a source code comment in include/uapi/linux/blkzoned.h

Bartosz Golaszewski (1):
gpio: mvebu: fix irq domain leak

Baskaran Kannan (1):
hwmon: (k10temp) Enable AMD3255 Proc to show negative temperature

Biju Das (1):
tty: serial: sh-sci: Fix sleeping in atomic context

Bjorn Helgaas (1):
PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()

Breno Leitao (2):
cxl/acpi: Fix a use-after-free in cxl_parse_cfmws() cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()

Chaoyuan Peng (1):
tty: n_gsm: fix UAF in gsm_cleanup_mux

Chenguang Zhao (1):
LoongArch: BPF: Enable bpf_probe_read{, str}() on LoongArch

Christian Brauner (1):
file: always lock position for FMODE_ATOMIC_POS

Christian König (2):
drm/ttm: never consider pinned BOs for eviction&swap
dma-buf: keep the signaling time of merged fences v3

Christian Marangi (4):
net: dsa: qca8k: enable use_single_write for qca8xxx
net: dsa: qca8k: fix search_and_insert wrong handling of new rule
net: dsa: qca8k: fix broken search_and_del
net: dsa: qca8k: fix mdb add/del case with 0 VID

Christoph Hellwig (2):
btrfs: factor out a btrfs_verify_page helper
btrfs: fix fsverify read error handling in end_page_read

Christophe JAILLET (3):
i2c: nomadik: Remove a useless call in the remove function fs/9p: Fix a datatype used with V9FS_DIRECT_IO drm/i915: Fix an error handling path in igt_write_huge()

Claudio Imbrenda (2):
KVM: s390: pv: simplify shutdown and fix race
KVM: s390: pv: fix index value of replaced ASCE

Cruise Hung (1):
drm/amd/display: Update correct DCN314 register header

Dan Carpenter (8):
phy: phy-mtk-dp: Fix an error code in probe()
soundwire: amd: Fix a check for errors in probe()
RDMA/mlx4: Make check for invalid flags stricter
drm/amd/display: Unlock on error path in dm_handle_mst_sideband_msg_ready_event() Revert "usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()" Revert "usb: xhci: tegra: Fix error check"
proc/vmcore: fix signedness bug in read_from_oldmem()
dma-buf: fix an error pointer vs NULL bug

Daniel Miess (2):
drm/amd/display: Fix possible underflow for displays with large vblank drm/amd/display: Prevent vtotal from being set to 0

Demi Marie Obenour (1):
xen: speed up grant-table reclaim

Dmitry Baryshkov (2):
drm/msm/mdss: correct UBWC programming for SM8550 drm/msm/dpu: drop enum dpu_core_perf_data_bus_id

Dmytro Laktyushkin (2):
drm/amd/display: add pixel rate based CRB allocation support drm/amd/display: fix dcn315 single stream crb allocation

Dominique Martinet (1):
9p: fix ignored return value in v9fs_dir_release

Eric Van Hensbergen (4):
fs/9p: remove unnecessary and overrestrictive check fs/9p: fix typo in comparison logic for cache mode fs/9p: fix type mismatch in file cache mode helper fs/9p: remove unnecessary invalidate_inode_pages2

Fedor Pchelkin (1):
tipc: stop tipc crypto on failure in tipc_node_create

Filipe Manana (4):
btrfs: fix race between quota disable and relocation
btrfs: account block group tree when calculating global reserve size
btrfs: check if the transaction was aborted at btrfs_wait_for_commit()
btrfs: check for commit error at btrfs_attach_transaction_barrier()

Florian Westphal (1):
netfilter: nft_set_rbtree: fix overlap expiration walk

Frank Li (2):
usb: gadget: call usb_gadget_check_config() to verify UDC capability
usb: cdns3: fix incorrect calculation of ep_buf_size when more than one config

Gabe Teeger (1):
drm/amd/display: update extended blank for dcn314 onwards

Gaosheng Cui (1):
drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()

Gilles Buloz (1):
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled

Gratian Crisan (1):
usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy

Greg Kroah-Hartman (3):
Documentation: security-bugs.rst: update preferences when dealing with the linux-distros group
Documentation: security-bugs.rst: clarify CVE handling
Linux 6.4.8

Guanghui Feng (1):
ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info()

Guenter Roeck (2):
regmap: Disable locking for RBTREE and MAPLE unit tests
hwmon: (pmbus_core) Fix Deadlock in pmbus_regulator_get_status

Guillaume Ranquet (1):
phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test

Guiting Shen (1):
usb: ohci-at91: Fix the unhandle interrupt when resume

Hangbin Liu (2):
bonding: reset bond's flags when down link is P2P device
team: reset team's flags when down link is P2P device

Hans de Goede (1):
gpio: tps68470: Make tps68470_gpio_output() always set the initial value

Hao Lan (1):
net: hns3: fix the imp capability bit cannot exceed 32 bits issue

Haren Myneni (1):
powerpc/pseries/vas: Hold mmap_mutex after mmap lock during window close

Harshit Mogalapalli (1):
phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()

Heiner Kallweit (1):
r8169: revert 2ab19de62d67 ("r8169: remove ASPM restrictions now that ASPM is disabled during NAPI poll")

Hugh Dickins (1):
tmpfs: fix Documentation of noswap and huge mount options

Ilpo Järvinen (2):
PCI/ASPM: Factor out pcie_wait_for_retrain() PCI/ASPM: Avoid link retraining race

Ilya Dryomov (3):
rbd: make get_lock_owner_info() return a single locker or NULL
rbd: harden get_lock_owner_info() a bit
rbd: retrieve and check lock owner twice before blocklisting

Jacob Keller (2):
iavf: fix potential deadlock on allocation failure
iavf: check for removal state before IAVF_FLAG_PF_COMMS_FAILED

Jakub Vanek (1):
Revert "usb: dwc3: core: Enable AutoRetry feature in the controller"

Jann Horn (3):
mm: lock VMA in dup_anon_vma() before setting ->anon_vma
mm: fix memory ordering for mm_lock_seq and vm_lock_seq mm/mempolicy: Take VMA lock before replacing policy

Jason Gunthorpe (2):
iommufd: IOMMUFD_DESTROY should not increase the refcount
iommufd: Set end correctly when doing batch carry

Jason Wang (1):
virtio-net: fix race between set queues and probe

Jedrzej Jagielski (1):
ice: Fix memory management in ice_ethtool_fdir.c

Jens Axboe (1):
io_uring: gate iowait schedule on having pending requests

Jerry Meng (1):
USB: serial: option: support Quectel EM060K_128

Jiawen Wu (1):

      net: phy: marvell10g: fix 88x3310 power up

Jijie Shao (2):
net: hns3: fix wrong tc bandwidth weight data issue
net: hns3: fix wrong bw weight of disabled tc issue

Jiri Benc (3):
vxlan: calculate correct header length for GPE
vxlan: generalize vxlan_parse_gpe_hdr and remove unused args
vxlan: fix GRO with VXLAN-GPE

Jisheng Zhang (1):
usb: dwc3: don't reset device side if dwc3 was configured as host-only

Joe Thornber (1):
dm cache policy smq: ensure IO doesn't prevent cleaner policy progress

Johan Hovold (4):
serial: qcom-geni: drop bogus runtime pm state update
USB: serial: simple: sort driver entries
soundwire: fix enumeration completion
PM: sleep: wakeirq: fix wake irq arming

Jonas Gorski (1):
irq-bcm6345-l1: Do not assume a fixed block to cpu mapping

Jonathan Marek (1):
drm/msm/dpu: add missing flush and fetch bits for DMA4/DMA5 planes

Kashyap Desai (6):
RDMA/bnxt_re: Prevent handling any completions after qp destroy RDMA/bnxt_re: Enhance the existing functions that wait for FW responses RDMA/bnxt_re: Avoid the command wait if firmware is inactive RDMA/bnxt_re: use shadow qd while posting non blocking rcfw command RDMA/bnxt_re: Simplify the function that sends the FW commands RDMA/bnxt_re: add helper function __poll_for_resp

Kemeng Shi (1):
ext4: add EXT4_MB_HINT_GOAL_ONLY test in ext4_mb_use_preallocated

Kim Phillips (1):
x86/cpu: Enable STIBP on AMD if Automatic IBRS is enabled

Kirill A. Shutemov (1):
x86/traps: Fix load_unaligned_zeropad() handling for shared TDX memory

Kyle Tso (3):
usb: typec: Set port->pd before adding device for typec_port
usb: typec: Iterate pds array when showing the pd list
usb: typec: Use sysfs_emit_at when concatenating the string

Larry Finger (1):

      staging: r8712: Fix memory leak in _r8712_init_xmit_priv()

Liam R. Howlett (2):
maple_tree: add __init and __exit to test module
maple_tree: fix 32 bit mas_next testing

Lin Ma (2):
macvlan: add forgotten nla_policy for IFLA_MACVLAN_BC_CUTOFF net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64

Linus Torvalds (1):
mm: suppress mm fault logging if fatal signal already pending

Luka Guzenko (1):
ALSA: hda/relatek: Enable Mute LED on HP 250 G8

Maciej Żenczykowski (1):
ipv6 addrconf: fix bug where deleting a mngtmpaddr can create a new temporary address

Marc Kleine-Budde (1):
can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED

Marc Zyngier (1):
irqchip/gic-v4.1: Properly lock VPEs when doing a directLPI invalidation

Marijn Suijten (1):
drm/msm/dsi: Drop unused regulators from QCM2290 14nm DSI PHY config

Mario Limonciello (5):
drm/amd: Move helper for dynamic speed switch check out of smu13 drm/amd: Align SMU11 SMU_MSG_OverridePcieParameters implementation with SMU13 drm/amd/display: Set minimum requirement for using PSR-SU on Rembrandt drm/amd/display: Set minimum requirement for using PSR-SU on Phoenix drm/amd: Fix an error handling mistake in psp_sw_init()

Mark Brown (2):
ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register arm64/sme: Set new vector length before reallocating

Markus Elfring (2):
i2c: Delete error messages for failed memory allocations
i2c: Improve size determinations

Matthieu Baerts (1):
selftests: mptcp: join: only check for ip6tables if needed

Matus Gajdos (1):
ASoC: fsl_spdif: Silence output on stop

Maxim Mikityanskiy (1):
platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100

Michael Grzeschik (1):
usb: gadget: core: remove unbalanced mutex_unlock in usb_gadget_activate

Michael Strauss (2):
drm/amd/display: Convert Delaying Aux-I Disable To Monitor Patch drm/amd/display: Keep disable aux-i delay as 0

Ming Lei (3):
ublk: fail to start device if queue setup is interrupted
ublk: fail to recover device if queue setup is interrupted
ublk: return -EINTR if breaking from waiting for existed users in DEL_DEV

Mohsen Tahmasebi (1):
USB: serial: option: add Quectel EC200A module support

Muhammad Husaini Zulkifli (1):
igc: Fix Kernel Panic during ndo_tx_timeout callback

Namjae Jeon (1):
ksmbd: check if a mount point is crossed during path lookup

Naohiro Aota (1):
btrfs: zoned: do not enable async discard

Nicolas Dufresne (1):
media: amphion: Fix firmware path to match linux-firmware

Ojaswin Mujoo (1):
ext4: fix rbtree traversal bug in ext4_mb_use_preallocated

Oliver Neukum (2):
USB: serial: simple: add Kaufmann RKS+CAN VCP
Revert "xhci: add quirk for host controllers that don't update endpoint DCS"

Ondrej Mosnacek (1):
io_uring: don't audit the capability check in io_uring_create()

Pablo Neira Ayuso (2):
netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR
netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID

Paolo Abeni (1):
mptcp: more accurate NL event generation

Patrick Rudolph (2):
hwmon: (pmbus_core) Fix pmbus_is_enabled()
hwmon: (pmbus_core) Fix NULL pointer dereference

Pavel Asyutchenko (1):
ALSA: hda/realtek: Support ASUS G713PV laptop

Peter Zijlstra (1):

      locking/rtmutex: Fix task->pi_waiters integrity

Radhakrishna Sripada (1):
drm/i915/dpt: Use shmem for dpt objects

Randy Dunlap (1):
media: mtk-jpeg: move data/code inside CONFIG_OF blocks

Ricardo Ribalda (1):
usb: xhci-mtk: set the dma max_seg_size

Rick Wertenbroek (3):
PCI: rockchip: Remove writes to unused registers
PCI: rockchip: Fix window mapping and address translation for endpoint
PCI: rockchip: Don't advertise MSI-X in PCIe capabilities

Ritesh Harjani (1):
ext4: mballoc: Remove useless setting of ac_criteria

Rob Clark (3):
drm/msm/adreno: Fix snapshot BINDLESS_DATA size drm/msm: Fix hw_fence error path cleanup drm/msm: Disallow submit with fence id 0

Rodrigo Siqueira (1):
drm/amd/display: Add FAMS validation before trying to use it

Ross Lagerwall (1):
blk-mq: Fix stall due to recursive flush plug

Ruihong Luo (1):
serial: 8250_dw: Preserve original value of DLF register

Sakari Ailus (2):
media: tc358746: Address compiler warnings
media: staging: atomisp: select V4L2_FWNODE

Samuel Holland (1):
serial: sifive: Fix sifive_serial_console_setup() section

Samuel Thibault (1):
TIOCSTI: always enable for CAP_SYS_ADMIN

Sean Christopherson (3):
KVM: Grab a reference to KVM for VM and vCPU stats file descriptors
KVM: VMX: Don't fudge CR0 and CR4 for restricted L2 guest
KVM: x86: Disallow KVM_SET_SREGS{2} if incoming CR0 is invalid

Selvin Xavier (1):
RDMA/bnxt_re: Fix hang during driver unload

Shiraz Saleem (4):
RDMA/irdma: Add missing read barriers
RDMA/irdma: Fix data race on CQP completion stats RDMA/irdma: Fix data race on CQP request done RDMA/core: Update CMA destination address on rdma_resolve_addr

Shyam Sundar S K (2):
platform/x86/amd/pmf: Notify OS power slider update platform/x86/amd/pmf: reduce verbosity of apmf_get_system_params

Sidhartha Kumar (1):
mm/memory-failure: fix hardware poison check in unpoison_memory()

Sindhu Devale (2):
RDMA/irdma: Fix op_type reporting in CQEs
RDMA/irdma: Report correct WC error

Srinivas Kandagatla (1):
soundwire: qcom: update status correctly with mask

Stefan Haberland (2):
s390/dasd: fix hanging device after quiesce/resume s390/dasd: print copy pair message only for the correct error

Stefano Stabellini (1):
xenbus: check xen_domain in xenbus_probe_initcall

Steve French (1):
smb3: do not set NTLMSSP_VERSION flag for negotiate not auth request

Stewart Smith (1):
tcp: Reduce chance of collisions in inet6_hashfn().

Sudeep Holla (1):
KVM: arm64: Handle kvm_arm_init failure correctly in finalize_pkvm

Suman Ghosh (1):
octeontx2-af: Fix hash extraction enable configuration

Sven Schnelle (1):
s390/mm: fix per vma lock fault handling

Thomas Bogendoerfer (1):
RDMA/mthca: Fix crash when polling CQ for shared QPs

Tiezhu Yang (1):
LoongArch: BPF: Fix check condition to call lu32id in move_imm()

Trond Myklebust (1):
nfsd: Remove incorrect check in nfsd4_validate_stateid

Uwe Kleine-König (1):
gpio: mvebu: Make use of devm_pwmchip_add

Vincent Whitchurch (1):
net: stmmac: Apply redundant write work around on 4.xx too

WANG Rui (1):
LoongArch: Fix return value underflow in exception path

Wang Ming (1):
i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()

Wei Fang (2):
net: fec: avoid tx queue timeout when XDP is enabled
net: fec: tx processing does not call XDP APIs if budget is 0

Xiubo Li (1):
ceph: never send metrics if disable_send_metrics is set

Xu Yang (1):
usb: misc: ehset: fix wrong if condition

Yazen Ghannam (1):
x86/MCE/AMD: Decrement threshold_bank refcount when removing threshold blocks

Yu Kuai (3):
dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths dm raid: clean up four equivalent goto tags in raid_ctr() dm raid: protect md_stop() with 'reconfig_mutex'

Yuanjun Gong (4):
atheros: fix return value check in atl1_tso()
ethernet: atheros: fix return value check in atl1e_tso_csum()
benet: fix return value check in be_lancer_xmit_workarounds()
tipc: check return value of pskb_trim()

Zhang Shurong (1):
staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()

Zheng Yejian (2):
ring-buffer: Fix wrong stat of cpu_buffer->read
tracing: Fix warning in trace_buffered_event_disable()

Zhihao Cheng (1):
jbd2: Fix wrongly judgement for buffer head removing while doing checkpoint

Zqiang (1):
USB: gadget: Fix the memory leak in raw_gadget driver

Łukasz Bartosik (1):
USB: quirks: add quirk for Focusrite Scarlett

author maintainer
#1 lore raw
Documentation/ABI/testing/sysfs-module +11 -0
index 08886367d047..62addab47d0c 100644
@@ -60,3 +60,14 @@ Description:	Module taint flags:
 			C   staging driver module
 			E   unsigned module
 			==  =====================
+
+What:		/sys/module/grant_table/parameters/free_per_iteration
+Date:		July 2023
+KernelVersion:	6.5 but backported to all supported stable branches
+Contact:	Xen developer discussion <[email protected]>
+Description:	Read and write number of grant entries to attempt to free per iteration.
+
+		Note: Future versions of Xen and Linux may provide a better
+		interface for controlling the rate of deferred grant reclaim
+		or may not need it at all.
+Users:		Qubes OS (https://www.qubes-os.org)
Documentation/admin-guide/hw-vuln/spectre.rst +7 -4
index 4d186f599d90..32a8893e5617 100644
@@ -484,11 +484,14 @@ Spectre variant 2
 
    Systems which support enhanced IBRS (eIBRS) enable IBRS protection once at
    boot, by setting the IBRS bit, and they're automatically protected against
-   Spectre v2 variant attacks, including cross-thread branch target injections
-   on SMT systems (STIBP). In other words, eIBRS enables STIBP too.
+   Spectre v2 variant attacks.
 
-   Legacy IBRS systems clear the IBRS bit on exit to userspace and
-   therefore explicitly enable STIBP for that
+   On Intel's enhanced IBRS systems, this includes cross-thread branch target
+   injections on SMT systems (STIBP). In other words, Intel eIBRS enables
+   STIBP, too.
+
+   AMD Automatic IBRS does not protect userspace, and Legacy IBRS systems clear
+   the IBRS bit on exit to userspace, therefore both explicitly enable STIBP.
 
    The retpoline mitigation is turned on by default on vulnerable
    CPUs. It can be forced on or off by the administrator
Documentation/filesystems/tmpfs.rst +20 -27

64 lines not on this page · raw message

Documentation/process/security-bugs.rst +18 -21
index 82e29837d589..5a6993795bd2 100644
@@ -63,31 +63,28 @@ information submitted to the security list and any followup discussions
 of the report are treated confidentially even after the embargo has been
 lifted, in perpetuity.
 
-Coordination
-------------
-
-Fixes for sensitive bugs, such as those that might lead to privilege
-escalations, may need to be coordinated with the private
-<[email protected]> mailing list so that distribution vendors
-are well prepared to issue a fixed kernel upon public disclosure of the
-upstream fix. Distros will need some time to test the proposed patch and
-will generally request at least a few days of embargo, and vendor update
-publication prefers to happen Tuesday through Thursday. When appropriate,
-the security team can assist with this coordination, or the reporter can
-include linux-distros from the start. In this case, remember to prefix
-the email Subject line with "[vs]" as described in the linux-distros wiki:
-<http://oss-security.openwall.org/wiki/mailing-lists/distros#how-to-use-the-lists>
+Coordination with other groups
+------------------------------
+
+The kernel security team strongly recommends that reporters of potential
+security issues NEVER contact the "linux-distros" mailing list until
+AFTER discussing it with the kernel security team.  Do not Cc: both
+lists at once.  You may contact the linux-distros mailing list after a
+fix has been agreed on and you fully understand the requirements that
+doing so will impose on you and the kernel community.
+
+The different lists have different goals and the linux-distros rules do
+not contribute to actually fixing any potential security problems.
 
 CVE assignment
 --------------
 
-The security team does not normally assign CVEs, nor do we require them
-for reports or fixes, as this can needlessly complicate the process and
-may delay the bug handling. If a reporter wishes to have a CVE identifier
-assigned ahead of public disclosure, they will need to contact the private
-linux-distros list, described above. When such a CVE identifier is known
-before a patch is provided, it is desirable to mention it in the commit
-message if the reporter agrees.
+The security team does not assign CVEs, nor do we require them for
+reports or fixes, as this can needlessly complicate the process and may
+delay the bug handling.  If a reporter wishes to have a CVE identifier
+assigned, they should find one by themselves, for example by contacting
+MITRE directly.  However under no circumstances will a patch inclusion
+be delayed to wait for a CVE identifier to arrive.
 
 Non-disclosure agreements
 -------------------------
Makefile +1 -1
index b3dc3b5f14ca..9607ce0b8a10 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 4
-SUBLEVEL = 7
+SUBLEVEL = 8
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/arm64/include/asm/virt.h +1 -0
index 4eb601e7de50..06382da63012 100644
@@ -78,6 +78,7 @@ extern u32 __boot_cpu_mode[2];
 
 void __hyp_set_vectors(phys_addr_t phys_vector_base);
 void __hyp_reset_vectors(void);
+bool is_kvm_arm_initialised(void);
 
 DECLARE_STATIC_KEY_FALSE(kvm_protected_mode_initialized);
 
arch/arm64/kernel/fpsimd.c +2 -2
index 9d7d10d60bfd..520b681a07bb 100644
@@ -917,6 +917,8 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type,
 	if (task == current)
 		put_cpu_fpsimd_context();
 
+	task_set_vl(task, type, vl);
+
 	/*
 	 * Free the changed states if they are not in use, SME will be
 	 * reallocated to the correct size on next use and we just
@@ -931,8 +933,6 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type,
 	if (free_sme)
 		sme_free(task);
 
-	task_set_vl(task, type, vl);
-
 out:
 	update_tsk_thread_flag(task, vec_vl_inherit_flag(type),
 			       flags & PR_SVE_VL_INHERIT);
arch/arm64/kvm/arm.c +8 -1
index 7d8c3dd8b7ca..3a2606ba3e58 100644
@@ -51,11 +51,16 @@ DECLARE_KVM_HYP_PER_CPU(unsigned long, kvm_hyp_vector);
 DEFINE_PER_CPU(unsigned long, kvm_arm_hyp_stack_page);
 DECLARE_KVM_NVHE_PER_CPU(struct kvm_nvhe_init_params, kvm_init_params);
 
-static bool vgic_present;
+static bool vgic_present, kvm_arm_initialised;
 
 static DEFINE_PER_CPU(unsigned char, kvm_arm_hardware_enabled);
 DEFINE_STATIC_KEY_FALSE(userspace_irqchip_in_use);
 
+bool is_kvm_arm_initialised(void)
+{
+	return kvm_arm_initialised;
+}
+
 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu)
 {
 	return kvm_vcpu_exiting_guest_mode(vcpu) == IN_GUEST_MODE;
@@ -2396,6 +2401,8 @@ static __init int kvm_arm_init(void)
 	if (err)
 		goto out_subs;
 
+	kvm_arm_initialised = true;
+
 	return 0;
 
 out_subs:
arch/arm64/kvm/pkvm.c +1 -1
index 6e9ece1ebbe7..3895416cb15a 100644
@@ -243,7 +243,7 @@ static int __init finalize_pkvm(void)
 {
 	int ret;
 
-	if (!is_protected_kvm_enabled())
+	if (!is_protected_kvm_enabled() || !is_kvm_arm_initialised())
 		return 0;
 
 	/*
arch/loongarch/Kconfig +1 -0
index 73519e13bbb3..2570e7c1eb75 100644
@@ -12,6 +12,7 @@ config LOONGARCH
 	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
 	select ARCH_HAS_FORTIFY_SOURCE
 	select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
+	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
 	select ARCH_HAS_PTE_SPECIAL
 	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
 	select ARCH_INLINE_READ_LOCK if !PREEMPTION
arch/loongarch/lib/clear_user.S +2 -1
index fd1d62b244f2..9dcf71719387 100644
@@ -108,6 +108,7 @@ SYM_FUNC_START(__clear_user_fast)
 	addi.d	a3, a2, -8
 	bgeu	a0, a3, .Llt8
 15:	st.d	zero, a0, 0
+	addi.d	a0, a0, 8
 
 .Llt8:
 16:	st.d	zero, a2, -8
@@ -188,7 +189,7 @@ SYM_FUNC_START(__clear_user_fast)
 	_asm_extable 13b, .L_fixup_handle_0
 	_asm_extable 14b, .L_fixup_handle_1
 	_asm_extable 15b, .L_fixup_handle_0
-	_asm_extable 16b, .L_fixup_handle_1
+	_asm_extable 16b, .L_fixup_handle_0
 	_asm_extable 17b, .L_fixup_handle_s0
 	_asm_extable 18b, .L_fixup_handle_s0
 	_asm_extable 19b, .L_fixup_handle_s0
arch/loongarch/lib/copy_user.S +2 -1
index b21f6d5d38f5..fecd08cad702 100644
@@ -136,6 +136,7 @@ SYM_FUNC_START(__copy_user_fast)
 	bgeu	a1, a4, .Llt8
 30:	ld.d	t0, a1, 0
 31:	st.d	t0, a0, 0
+	addi.d	a0, a0, 8
 
 .Llt8:
 32:	ld.d	t0, a3, -8
@@ -246,7 +247,7 @@ SYM_FUNC_START(__copy_user_fast)
 	_asm_extable 30b, .L_fixup_handle_0
 	_asm_extable 31b, .L_fixup_handle_0
 	_asm_extable 32b, .L_fixup_handle_0
-	_asm_extable 33b, .L_fixup_handle_1
+	_asm_extable 33b, .L_fixup_handle_0
 	_asm_extable 34b, .L_fixup_handle_s0
 	_asm_extable 35b, .L_fixup_handle_s0
 	_asm_extable 36b, .L_fixup_handle_s0
arch/loongarch/net/bpf_jit.h +1 -1
index c335dc4eed37..68586338ecf8 100644
@@ -150,7 +150,7 @@ static inline void move_imm(struct jit_ctx *ctx, enum loongarch_gpr rd, long imm
 			 * no need to call lu32id to do a new filled operation.
 			 */
 			imm_51_31 = (imm >> 31) & 0x1fffff;
-			if (imm_51_31 != 0 || imm_51_31 != 0x1fffff) {
+			if (imm_51_31 != 0 && imm_51_31 != 0x1fffff) {
 				/* lu32id rd, imm_51_32 */
 				imm_51_32 = (imm >> 32) & 0xfffff;
 				emit_insn(ctx, lu32id, rd, imm_51_32);
arch/powerpc/platforms/pseries/vas.c +7 -2
index 9a44a98ba342..3fbc2a6aa319 100644
@@ -744,6 +744,12 @@ static int reconfig_close_windows(struct vas_caps *vcap, int excess_creds,
 		}
 
 		task_ref = &win->vas_win.task_ref;
+		/*
+		 * VAS mmap (coproc_mmap()) and its fault handler
+		 * (vas_mmap_fault()) are called after holding mmap lock.
+		 * So hold mmap mutex after mmap_lock to avoid deadlock.
+		 */
+		mmap_write_lock(task_ref->mm);
 		mutex_lock(&task_ref->mmap_mutex);
 		vma = task_ref->vma;
 		/*
@@ -752,7 +758,6 @@ static int reconfig_close_windows(struct vas_caps *vcap, int excess_creds,
 		 */
 		win->vas_win.status |= flag;
 
-		mmap_write_lock(task_ref->mm);
 		/*
 		 * vma is set in the original mapping. But this mapping
 		 * is done with mmap() after the window is opened with ioctl.
@@ -762,8 +767,8 @@ static int reconfig_close_windows(struct vas_caps *vcap, int excess_creds,
 		if (vma)
 			zap_vma_pages(vma);
 
-		mmap_write_unlock(task_ref->mm);
 		mutex_unlock(&task_ref->mmap_mutex);
+		mmap_write_unlock(task_ref->mm);
 		/*
 		 * Close VAS window in the hypervisor, but do not
 		 * free vas_window struct since it may be reused
arch/s390/kvm/pv.c +6 -2
index 3ce5f4351156..899f3b8ac011 100644
@@ -411,8 +411,12 @@ int kvm_s390_pv_deinit_cleanup_all(struct kvm *kvm, u16 *rc, u16 *rrc)
 	u16 _rc, _rrc;
 	int cc = 0;
 
-	/* Make sure the counter does not reach 0 before calling s390_uv_destroy_range */
-	atomic_inc(&kvm->mm->context.protected_count);
+	/*
+	 * Nothing to do if the counter was already 0. Otherwise make sure
+	 * the counter does not reach 0 before calling s390_uv_destroy_range.
+	 */
+	if (!atomic_inc_not_zero(&kvm->mm->context.protected_count))
+		return 0;
 
 	*rc = 1;
 	/* If the current VM is protected, destroy it */
arch/s390/mm/fault.c +2 -0
index dbe8394234e2..2f123429a291 100644
@@ -421,6 +421,8 @@ static inline vm_fault_t do_exception(struct pt_regs *regs, int access)
 	vma_end_read(vma);
 	if (!(fault & VM_FAULT_RETRY)) {
 		count_vm_vma_lock_event(VMA_LOCK_SUCCESS);
+		if (likely(!(fault & VM_FAULT_ERROR)))
+			fault = 0;
 		goto out;
 	}
 	count_vm_vma_lock_event(VMA_LOCK_RETRY);
arch/s390/mm/gmap.c +1 -0
index dc90d1eb0d55..d7e8297d5642 100644
@@ -2846,6 +2846,7 @@ int s390_replace_asce(struct gmap *gmap)
 	page = alloc_pages(GFP_KERNEL_ACCOUNT, CRST_ALLOC_ORDER);
 	if (!page)
 		return -ENOMEM;
+	page->index = 0;
 	table = page_to_virt(page);
 	memcpy(table, gmap->table, 1UL << (CRST_ALLOC_ORDER + PAGE_SHIFT));
 
arch/um/os-Linux/sigio.c +4 -3
index 37d60e72cf26..9e71794839e8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2002 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  */
 
-#include <linux/minmax.h>
 #include <unistd.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -51,7 +50,7 @@ static struct pollfds all_sigio_fds;
 
 static int write_sigio_thread(void *unused)
 {
-	struct pollfds *fds;
+	struct pollfds *fds, tmp;
 	struct pollfd *p;
 	int i, n, respond_fd;
 	char c;
@@ -78,7 +77,9 @@ static int write_sigio_thread(void *unused)
 					       "write_sigio_thread : "
 					       "read on socket failed, "
 					       "err = %d\n", errno);
-				swap(current_poll, next_poll);
+				tmp = current_poll;
+				current_poll = next_poll;
+				next_poll = tmp;
 				respond_fd = sigio_private[1];
 			}
 			else {
arch/x86/include/asm/kvm-x86-ops.h +1 -0
index 13bc212cd4bc..e3054e3e46d5 100644
@@ -37,6 +37,7 @@ KVM_X86_OP(get_segment)
 KVM_X86_OP(get_cpl)
 KVM_X86_OP(set_segment)
 KVM_X86_OP(get_cs_db_l_bits)
+KVM_X86_OP(is_valid_cr0)
 KVM_X86_OP(set_cr0)
 KVM_X86_OP_OPTIONAL(post_set_cr3)
 KVM_X86_OP(is_valid_cr4)
arch/x86/include/asm/kvm_host.h +2 -1
index fb9d1f2d6136..938fe9572ae1 100644
@@ -1566,9 +1566,10 @@ struct kvm_x86_ops {
 	void (*set_segment)(struct kvm_vcpu *vcpu,
 			    struct kvm_segment *var, int seg);
 	void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l);
+	bool (*is_valid_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
 	void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
 	void (*post_set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3);
-	bool (*is_valid_cr4)(struct kvm_vcpu *vcpu, unsigned long cr0);
+	bool (*is_valid_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4);
 	void (*set_cr4)(struct kvm_vcpu *vcpu, unsigned long cr4);
 	int (*set_efer)(struct kvm_vcpu *vcpu, u64 efer);
 	void (*get_idt)(struct kvm_vcpu *vcpu, struct desc_ptr *dt);
arch/x86/kernel/cpu/bugs.c +9 -6
index 182af64387d0..dbf7443c42eb 100644
@@ -1199,19 +1199,21 @@ spectre_v2_user_select_mitigation(void)
 	}
 
 	/*
-	 * If no STIBP, enhanced IBRS is enabled, or SMT impossible, STIBP
+	 * If no STIBP, Intel enhanced IBRS is enabled, or SMT impossible, STIBP
 	 * is not required.
 	 *
-	 * Enhanced IBRS also protects against cross-thread branch target
+	 * Intel's Enhanced IBRS also protects against cross-thread branch target
 	 * injection in user-mode as the IBRS bit remains always set which
 	 * implicitly enables cross-thread protections.  However, in legacy IBRS
 	 * mode, the IBRS bit is set only on kernel entry and cleared on return
-	 * to userspace. This disables the implicit cross-thread protection,
-	 * so allow for STIBP to be selected in that case.
+	 * to userspace.  AMD Automatic IBRS also does not protect userspace.
+	 * These modes therefore disable the implicit cross-thread protection,
+	 * so allow for STIBP to be selected in those cases.
 	 */
 	if (!boot_cpu_has(X86_FEATURE_STIBP) ||
 	    !smt_possible ||
-	    spectre_v2_in_eibrs_mode(spectre_v2_enabled))
+	    (spectre_v2_in_eibrs_mode(spectre_v2_enabled) &&
+	     !boot_cpu_has(X86_FEATURE_AUTOIBRS)))
 		return;
 
 	/*
@@ -2343,7 +2345,8 @@ static ssize_t mmio_stale_data_show_state(char *buf)
 
 static char *stibp_state(void)
 {
-	if (spectre_v2_in_eibrs_mode(spectre_v2_enabled))
+	if (spectre_v2_in_eibrs_mode(spectre_v2_enabled) &&
+	    !boot_cpu_has(X86_FEATURE_AUTOIBRS))
 		return "";
 
 	switch (spectre_v2_user_stibp) {
arch/x86/kernel/cpu/mce/amd.c +2 -2
index 0b971f974096..542fe6915ab7 100644
@@ -1259,10 +1259,10 @@ static void __threshold_remove_blocks(struct threshold_bank *b)
 	struct threshold_block *pos = NULL;
 	struct threshold_block *tmp = NULL;
 
-	kobject_del(b->kobj);
+	kobject_put(b->kobj);
 
 	list_for_each_entry_safe(pos, tmp, &b->blocks->miscj, miscj)
-		kobject_del(&pos->kobj);
+		kobject_put(b->kobj);
 }
 
 static void threshold_remove_bank(struct threshold_bank *bank)
arch/x86/kernel/traps.c +11 -7
index 58b1f208eff5..4a817d20ce3b 100644
@@ -697,9 +697,10 @@ static bool try_fixup_enqcmd_gp(void)
 }
 
 static bool gp_try_fixup_and_notify(struct pt_regs *regs, int trapnr,
-				    unsigned long error_code, const char *str)
+				    unsigned long error_code, const char *str,
+				    unsigned long address)
 {
-	if (fixup_exception(regs, trapnr, error_code, 0))
+	if (fixup_exception(regs, trapnr, error_code, address))
 		return true;
 
 	current->thread.error_code = error_code;
@@ -759,7 +760,7 @@ DEFINE_IDTENTRY_ERRORCODE(exc_general_protection)
 		goto exit;
 	}
 
-	if (gp_try_fixup_and_notify(regs, X86_TRAP_GP, error_code, desc))
+	if (gp_try_fixup_and_notify(regs, X86_TRAP_GP, error_code, desc, 0))
 		goto exit;
 
 	if (error_code)
@@ -1357,17 +1358,20 @@ DEFINE_IDTENTRY(exc_device_not_available)
 
 #define VE_FAULT_STR "VE fault"
 
-static void ve_raise_fault(struct pt_regs *regs, long error_code)
+static void ve_raise_fault(struct pt_regs *regs, long error_code,
+			   unsigned long address)
 {
 	if (user_mode(regs)) {
 		gp_user_force_sig_segv(regs, X86_TRAP_VE, error_code, VE_FAULT_STR);
 		return;
 	}
 
-	if (gp_try_fixup_and_notify(regs, X86_TRAP_VE, error_code, VE_FAULT_STR))
+	if (gp_try_fixup_and_notify(regs, X86_TRAP_VE, error_code,
+				    VE_FAULT_STR, address)) {
 		return;
+	}
 
-	die_addr(VE_FAULT_STR, regs, error_code, 0);
+	die_addr(VE_FAULT_STR, regs, error_code, address);
 }
 
 /*
@@ -1431,7 +1435,7 @@ DEFINE_IDTENTRY(exc_virtualization_exception)
 	 * it successfully, treat it as #GP(0) and handle it.
 	 */
 	if (!tdx_handle_virt_exception(regs, &ve))
-		ve_raise_fault(regs, 0);
+		ve_raise_fault(regs, 0, ve.gla);
 
 	cond_local_irq_disable(regs);
 }
arch/x86/kvm/svm/svm.c +6 -0
index 54089f990c8f..5a0c2d6791a0 100644
@@ -1799,6 +1799,11 @@ static void sev_post_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
 	}
 }
 
+static bool svm_is_valid_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
+{
+	return true;
+}
+
 void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
 {
 	struct vcpu_svm *svm = to_svm(vcpu);
@@ -4838,6 +4843,7 @@ static struct kvm_x86_ops svm_x86_ops __initdata = {
 	.set_segment = svm_set_segment,
 	.get_cpl = svm_get_cpl,
 	.get_cs_db_l_bits = svm_get_cs_db_l_bits,
+	.is_valid_cr0 = svm_is_valid_cr0,
 	.set_cr0 = svm_set_cr0,
 	.post_set_cr3 = sev_post_set_cr3,
 	.is_valid_cr4 = svm_is_valid_cr4,
arch/x86/kvm/vmx/vmx.c +30 -11

100 lines not on this page · raw message

arch/x86/kvm/x86.c +22 -12
index 04b57a336b34..f04bed5a5aff 100644
@@ -906,6 +906,22 @@ int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3)
 }
 EXPORT_SYMBOL_GPL(load_pdptrs);
 
+static bool kvm_is_valid_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
+{
+#ifdef CONFIG_X86_64
+	if (cr0 & 0xffffffff00000000UL)
+		return false;
+#endif
+
+	if ((cr0 & X86_CR0_NW) && !(cr0 & X86_CR0_CD))
+		return false;
+
+	if ((cr0 & X86_CR0_PG) && !(cr0 & X86_CR0_PE))
+		return false;
+
+	return static_call(kvm_x86_is_valid_cr0)(vcpu, cr0);
+}
+
 void kvm_post_set_cr0(struct kvm_vcpu *vcpu, unsigned long old_cr0, unsigned long cr0)
 {
 	/*
@@ -952,20 +968,13 @@ int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
 {
 	unsigned long old_cr0 = kvm_read_cr0(vcpu);
 
-	cr0 |= X86_CR0_ET;
-
-#ifdef CONFIG_X86_64
-	if (cr0 & 0xffffffff00000000UL)
+	if (!kvm_is_valid_cr0(vcpu, cr0))
 		return 1;
-#endif
-
-	cr0 &= ~CR0_RESERVED_BITS;
 
-	if ((cr0 & X86_CR0_NW) && !(cr0 & X86_CR0_CD))
-		return 1;
+	cr0 |= X86_CR0_ET;
 
-	if ((cr0 & X86_CR0_PG) && !(cr0 & X86_CR0_PE))
-		return 1;
+	/* Write to CR0 reserved bits are ignored, even on Intel. */
+	cr0 &= ~CR0_RESERVED_BITS;
 
 #ifdef CONFIG_X86_64
 	if ((vcpu->arch.efer & EFER_LME) && !is_paging(vcpu) &&
@@ -11461,7 +11470,8 @@ static bool kvm_is_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
 			return false;
 	}
 
-	return kvm_is_valid_cr4(vcpu, sregs->cr4);
+	return kvm_is_valid_cr4(vcpu, sregs->cr4) &&
+	       kvm_is_valid_cr0(vcpu, sregs->cr0);
 }
 
 static int __set_sregs_common(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs,
block/blk-core.c +1 -2
index 3fc68b944479..0434f5a8151f 100644
@@ -1141,8 +1141,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule)
 {
 	if (!list_empty(&plug->cb_list))
 		flush_plug_callbacks(plug, from_schedule);
-	if (!rq_list_empty(plug->mq_list))
-		blk_mq_flush_plug_list(plug, from_schedule);
+	blk_mq_flush_plug_list(plug, from_schedule);
 	/*
 	 * Unconditionally flush out cached requests, even if the unplug
 	 * event came from schedule. Since we know hold references to the
block/blk-mq.c +8 -1
index 73ed8ccb09ce..58bf41e8e66c 100644
@@ -2754,7 +2754,14 @@ void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule)
 {
 	struct request *rq;
 
-	if (rq_list_empty(plug->mq_list))
+	/*
+	 * We may have been called recursively midway through handling
+	 * plug->mq_list via a schedule() in the driver's queue_rq() callback.
+	 * To avoid mq_list changing under our feet, clear rq_count early and
+	 * bail out specifically if rq_count is 0 rather than checking
+	 * whether the mq_list is empty.
+	 */
+	if (plug->rq_count == 0)
 		return;
 	plug->rq_count = 0;
 
drivers/acpi/arm64/iort.c +0 -3
index 38fb84974f35..8a384e6cfa13 100644
@@ -1006,9 +1006,6 @@ static void iort_node_get_rmr_info(struct acpi_iort_node *node,
 	for (i = 0; i < node->mapping_count; i++, map++) {
 		struct acpi_iort_node *parent;
 
-		if (!map->id_count)
-			continue;
-
 		parent = ACPI_ADD_PTR(struct acpi_iort_node, iort_table,
 				      map->output_reference);
 		if (parent != iommu)
drivers/ata/pata_ns87415.c +1 -1
index d60e1f69d7b0..c697219a61a2 100644
@@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap)
  *	LOCKING:
  *	Inherited from caller.
  */
-void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
+static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
 {
 	struct ata_ioports *ioaddr = &ap->ioaddr;
 
drivers/base/power/power.h +1 -0
index 0eb7f02b3ad5..922ed457db19 100644
@@ -29,6 +29,7 @@ extern u64 pm_runtime_active_time(struct device *dev);
 #define WAKE_IRQ_DEDICATED_MASK		(WAKE_IRQ_DEDICATED_ALLOCATED | \
 					 WAKE_IRQ_DEDICATED_MANAGED | \
 					 WAKE_IRQ_DEDICATED_REVERSE)
+#define WAKE_IRQ_DEDICATED_ENABLED	BIT(3)
 
 struct wake_irq {
 	struct device *dev;
drivers/base/power/wakeirq.c +8 -4
index d487a6bac630..afd094dec5ca 100644
@@ -314,8 +314,10 @@ void dev_pm_enable_wake_irq_check(struct device *dev,
 	return;
 
 enable:
-	if (!can_change_status || !(wirq->status & WAKE_IRQ_DEDICATED_REVERSE))
+	if (!can_change_status || !(wirq->status & WAKE_IRQ_DEDICATED_REVERSE)) {
 		enable_irq(wirq->irq);
+		wirq->status |= WAKE_IRQ_DEDICATED_ENABLED;
+	}
 }
 
 /**
@@ -336,8 +338,10 @@ void dev_pm_disable_wake_irq_check(struct device *dev, bool cond_disable)
 	if (cond_disable && (wirq->status & WAKE_IRQ_DEDICATED_REVERSE))
 		return;
 
-	if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED)
+	if (wirq->status & WAKE_IRQ_DEDICATED_MANAGED) {
+		wirq->status &= ~WAKE_IRQ_DEDICATED_ENABLED;
 		disable_irq_nosync(wirq->irq);
+	}
 }
 
 /**
@@ -376,7 +380,7 @@ void dev_pm_arm_wake_irq(struct wake_irq *wirq)
 
 	if (device_may_wakeup(wirq->dev)) {
 		if (wirq->status & WAKE_IRQ_DEDICATED_ALLOCATED &&
-		    !pm_runtime_status_suspended(wirq->dev))
+		    !(wirq->status & WAKE_IRQ_DEDICATED_ENABLED))
 			enable_irq(wirq->irq);
 
 		enable_irq_wake(wirq->irq);
@@ -399,7 +403,7 @@ void dev_pm_disarm_wake_irq(struct wake_irq *wirq)
 		disable_irq_wake(wirq->irq);
 
 		if (wirq->status & WAKE_IRQ_DEDICATED_ALLOCATED &&
-		    !pm_runtime_status_suspended(wirq->dev))
+		    !(wirq->status & WAKE_IRQ_DEDICATED_ENABLED))
 			disable_irq_nosync(wirq->irq);
 	}
 }
drivers/base/regmap/regmap-kunit.c +3 -0
index f76d41688134..0b3dacc7fa42 100644
@@ -58,6 +58,9 @@ static struct regmap *gen_regmap(struct regmap_config *config,
 	int i;
 	struct reg_default *defaults;
 
+	config->disable_locking = config->cache_type == REGCACHE_RBTREE ||
+					config->cache_type == REGCACHE_MAPLE;
+
 	buf = kmalloc(size, GFP_KERNEL);
 	if (!buf)
 		return ERR_PTR(-ENOMEM);
drivers/block/rbd.c +86 -38

188 lines not on this page · raw message

drivers/block/ublk_drv.c +7 -4
index 33d3298a0da1..e6b6e5eee4de 100644
@@ -1632,7 +1632,8 @@ static int ublk_ctrl_start_dev(struct ublk_device *ub, struct io_uring_cmd *cmd)
 	if (ublksrv_pid <= 0)
 		return -EINVAL;
 
-	wait_for_completion_interruptible(&ub->completion);
+	if (wait_for_completion_interruptible(&ub->completion) != 0)
+		return -EINTR;
 
 	schedule_delayed_work(&ub->monitor_work, UBLK_DAEMON_MONITOR_PERIOD);
 
@@ -1908,8 +1909,8 @@ static int ublk_ctrl_del_dev(struct ublk_device **p_ub)
 	 * - the device number is freed already, we will not find this
 	 *   device via ublk_get_device_from_id()
 	 */
-	wait_event_interruptible(ublk_idr_wq, ublk_idr_freed(idx));
-
+	if (wait_event_interruptible(ublk_idr_wq, ublk_idr_freed(idx)))
+		return -EINTR;
 	return 0;
 }
 
@@ -2106,7 +2107,9 @@ static int ublk_ctrl_end_recovery(struct ublk_device *ub,
 	pr_devel("%s: Waiting for new ubq_daemons(nr: %d) are ready, dev id %d...\n",
 			__func__, ub->dev_info.nr_hw_queues, header->dev_id);
 	/* wait until new ubq_daemon sending all FETCH_REQ */
-	wait_for_completion_interruptible(&ub->completion);
+	if (wait_for_completion_interruptible(&ub->completion))
+		return -EINTR;
+
 	pr_devel("%s: All new ubq_daemons(nr: %d) are ready, dev id %d\n",
 			__func__, ub->dev_info.nr_hw_queues, header->dev_id);
 
drivers/char/tpm/tpm_tis_core.c +7 -2
index 88a5384c09c0..b95963095729 100644
@@ -366,8 +366,13 @@ static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count)
 		goto out;
 	}
 
-	size += recv_data(chip, &buf[TPM_HEADER_SIZE],
-			  expected - TPM_HEADER_SIZE);
+	rc = recv_data(chip, &buf[TPM_HEADER_SIZE],
+		       expected - TPM_HEADER_SIZE);
+	if (rc < 0) {
+		size = rc;
+		goto out;
+	}
+	size += rc;
 	if (size < expected) {
 		dev_err(&chip->dev, "Unable to read remainder of result\n");
 		size = -ETIME;
drivers/cxl/acpi.c +2 -3
index 7e1765b09e04..8757bf886207 100644
@@ -296,9 +296,8 @@ static int cxl_parse_cfmws(union acpi_subtable_headers *header, void *arg,
 	else
 		rc = cxl_decoder_autoremove(dev, cxld);
 	if (rc) {
-		dev_err(dev, "Failed to add decode range [%#llx - %#llx]\n",
-			cxld->hpa_range.start, cxld->hpa_range.end);
-		return 0;
+		dev_err(dev, "Failed to add decode range: %pr", res);
+		return rc;
 	}
 	dev_dbg(dev, "add: %s node: %d range [%#llx - %#llx]\n",
 		dev_name(&cxld->dev),
drivers/dma-buf/dma-fence-unwrap.c +22 -4
index 7002bca792ff..c625bb2b5d56 100644
@@ -66,18 +66,36 @@ struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
 {
 	struct dma_fence_array *result;
 	struct dma_fence *tmp, **array;
+	ktime_t timestamp;
 	unsigned int i;
 	size_t count;
 
 	count = 0;
+	timestamp = ns_to_ktime(0);
 	for (i = 0; i < num_fences; ++i) {
-		dma_fence_unwrap_for_each(tmp, &iter[i], fences[i])
-			if (!dma_fence_is_signaled(tmp))
+		dma_fence_unwrap_for_each(tmp, &iter[i], fences[i]) {
+			if (!dma_fence_is_signaled(tmp)) {
 				++count;
+			} else if (test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT,
+					    &tmp->flags)) {
+				if (ktime_after(tmp->timestamp, timestamp))
+					timestamp = tmp->timestamp;
+			} else {
+				/*
+				 * Use the current time if the fence is
+				 * currently signaling.
+				 */
+				timestamp = ktime_get();
+			}
+		}
 	}
 
+	/*
+	 * If we couldn't find a pending fence just return a private signaled
+	 * fence with the timestamp of the last signaled one.
+	 */
 	if (count == 0)
-		return dma_fence_get_stub();
+		return dma_fence_allocate_private_stub(timestamp);
 
 	array = kmalloc_array(count, sizeof(*array), GFP_KERNEL);
 	if (!array)
@@ -138,7 +156,7 @@ struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
 	} while (tmp);
 
 	if (count == 0) {
-		tmp = dma_fence_get_stub();
+		tmp = dma_fence_allocate_private_stub(ktime_get());
 		goto return_tmp;
 	}
 
drivers/dma-buf/dma-fence.c +4 -3
index f177c56269bb..8aa8f8cb7071 100644
@@ -150,16 +150,17 @@ EXPORT_SYMBOL(dma_fence_get_stub);
 
 /**
  * dma_fence_allocate_private_stub - return a private, signaled fence
+ * @timestamp: timestamp when the fence was signaled
  *
  * Return a newly allocated and signaled stub fence.
  */
-struct dma_fence *dma_fence_allocate_private_stub(void)
+struct dma_fence *dma_fence_allocate_private_stub(ktime_t timestamp)
 {
 	struct dma_fence *fence;
 
 	fence = kzalloc(sizeof(*fence), GFP_KERNEL);
 	if (fence == NULL)
-		return ERR_PTR(-ENOMEM);
+		return NULL;
 
 	dma_fence_init(fence,
 		       &dma_fence_stub_ops,
@@ -169,7 +170,7 @@ struct dma_fence *dma_fence_allocate_private_stub(void)
 	set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
 		&fence->flags);
 
-	dma_fence_signal(fence);
+	dma_fence_signal_timestamp(fence, timestamp);
 
 	return fence;
 }
drivers/gpio/gpio-mvebu.c +15 -11
index a68f682aec01..67497116ce27 100644
@@ -874,7 +874,7 @@ static int mvebu_pwm_probe(struct platform_device *pdev,
 
 	spin_lock_init(&mvpwm->lock);
 
-	return pwmchip_add(&mvpwm->chip);
+	return devm_pwmchip_add(dev, &mvpwm->chip);
 }
 
 #ifdef CONFIG_DEBUG_FS
@@ -1112,6 +1112,13 @@ static int mvebu_gpio_probe_syscon(struct platform_device *pdev,
 	return 0;
 }
 
+static void mvebu_gpio_remove_irq_domain(void *data)
+{
+	struct irq_domain *domain = data;
+
+	irq_domain_remove(domain);
+}
+
 static int mvebu_gpio_probe(struct platform_device *pdev)
 {
 	struct mvebu_gpio_chip *mvchip;
@@ -1243,17 +1250,21 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
 	if (!mvchip->domain) {
 		dev_err(&pdev->dev, "couldn't allocate irq domain %s (DT).\n",
 			mvchip->chip.label);
-		err = -ENODEV;
-		goto err_pwm;
+		return -ENODEV;
 	}
 
+	err = devm_add_action_or_reset(&pdev->dev, mvebu_gpio_remove_irq_domain,
+				       mvchip->domain);
+	if (err)
+		return err;
+
 	err = irq_alloc_domain_generic_chips(
 	    mvchip->domain, ngpios, 2, np->name, handle_level_irq,
 	    IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_LEVEL, 0, 0);
 	if (err) {
 		dev_err(&pdev->dev, "couldn't allocate irq chips %s (DT).\n",
 			mvchip->chip.label);
-		goto err_domain;
+		return err;
 	}
 
 	/*
@@ -1293,13 +1304,6 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
 	}
 
 	return 0;
-
-err_domain:
-	irq_domain_remove(mvchip->domain);
-err_pwm:
-	pwmchip_remove(&mvchip->mvpwm->chip);
-
-	return err;
 }
 
 static struct platform_driver mvebu_gpio_driver = {
drivers/gpio/gpio-tps68470.c +3 -3
index aaddcabe9b35..532deaddfd4e 100644
@@ -91,13 +91,13 @@ static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset,
 	struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc);
 	struct regmap *regmap = tps68470_gpio->tps68470_regmap;
 
+	/* Set the initial value */
+	tps68470_gpio_set(gc, offset, value);
+
 	/* rest are always outputs */
 	if (offset >= TPS68470_N_REGULAR_GPIO)
 		return 0;
 
-	/* Set the initial value */
-	tps68470_gpio_set(gc, offset, value);
-
 	return regmap_update_bits(regmap, TPS68470_GPIO_CTL_REG_A(offset),
 				 TPS68470_GPIO_MODE_MASK,
 				 TPS68470_GPIO_MODE_OUT_CMOS);
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
index 02b827785e39..129081ffa0a5 100644
@@ -1246,6 +1246,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_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_device.c +19 -0
index 5c7d40873ee2..167b2a1c416e 100644
@@ -1352,6 +1352,25 @@ bool amdgpu_device_need_post(struct amdgpu_device *adev)
 	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
+ * supports it, it's safer that we keep it disabled for all.
+ *
+ * https://edc.intel.com/content/www/us/en/design/products/platforms/details/raptor-lake-s/13th-generation-core-processors-datasheet-volume-1-of-2/005/pci-express-support/
+ * https://gitlab.freedesktop.org/drm/amd/-/issues/2663
+ */
+bool amdgpu_device_pcie_dynamic_switching_supported(void)
+{
+#if IS_ENABLED(CONFIG_X86)
+	struct cpuinfo_x86 *c = &cpu_data(0);
+
+	if (c->x86_vendor == X86_VENDOR_INTEL)
+		return false;
+#endif
+	return true;
+}
+
 /**
  * amdgpu_device_should_use_aspm - check if the device should program ASPM
  *
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -3
index e4757a2807d9..db820331f2c6 100644
@@ -491,11 +491,11 @@ static int psp_sw_init(void *handle)
 	return 0;
 
 failed2:
-	amdgpu_bo_free_kernel(&psp->fw_pri_bo,
-			      &psp->fw_pri_mc_addr, &psp->fw_pri_buf);
-failed1:
 	amdgpu_bo_free_kernel(&psp->fence_buf_bo,
 			      &psp->fence_buf_mc_addr, &psp->fence_buf);
+failed1:
+	amdgpu_bo_free_kernel(&psp->fw_pri_bo,
+			      &psp->fw_pri_mc_addr, &psp->fw_pri_buf);
 	return ret;
 }
 
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -1
index 888e80f498e9..9bc86deac9e8 100644
@@ -706,7 +706,7 @@ void dm_handle_mst_sideband_msg_ready_event(
 
 			if (retry == 3) {
 				DRM_ERROR("Failed to ack MST event.\n");
-				return;
+				break;
 			}
 
 			drm_dp_mst_hpd_irq_send_new_request(&aconnector->mst_mgr);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2 -1
index d647f68fd563..4f61d4f257cd 100644
@@ -24,6 +24,7 @@
  */
 
 #include "amdgpu_dm_psr.h"
+#include "dc_dmub_srv.h"
 #include "dc.h"
 #include "dm_helpers.h"
 #include "amdgpu_dm.h"
@@ -50,7 +51,7 @@ static bool link_supports_psrsu(struct dc_link *link)
 	    !link->dpcd_caps.psr_info.psr2_su_y_granularity_cap)
 		return false;
 
-	return true;
+	return dc_dmub_check_min_version(dc->ctx->dmub_srv->dmub);
 }
 
 /*
drivers/gpu/drm/amd/display/dc/core/dc.c +5 -20
index 6eace83c9c6f..d22095a3a265 100644
@@ -2626,8 +2626,11 @@ static enum surface_update_type check_update_surfaces_for_stream(
 
 		if (stream_update->mst_bw_update)
 			su_flags->bits.mst_bw = 1;
-		if (stream_update->crtc_timing_adjust && dc_extended_blank_supported(dc))
-			su_flags->bits.crtc_timing_adjust = 1;
+
+		if (stream_update->stream && stream_update->stream->freesync_on_desktop &&
+			(stream_update->vrr_infopacket || stream_update->allow_freesync ||
+				stream_update->vrr_active_variable))
+			su_flags->bits.fams_changed = 1;
 
 		if (su_flags->raw != 0)
 			overall_type = UPDATE_TYPE_FULL;
@@ -4894,21 +4897,3 @@ void dc_notify_vsync_int_state(struct dc *dc, struct dc_stream_state *stream, bo
 	if (pipe->stream_res.abm && pipe->stream_res.abm->funcs->set_abm_pause)
 		pipe->stream_res.abm->funcs->set_abm_pause(pipe->stream_res.abm, !enable, i, pipe->stream_res.tg->inst);
 }
-
-/**
- * dc_extended_blank_supported - Decide whether extended blank is supported
- *
- * @dc: [in] Current DC state
- *
- * Extended blank is a freesync optimization feature to be enabled in the
- * future.  During the extra vblank period gained from freesync, we have the
- * ability to enter z9/z10.
- *
- * Return:
- * Indicate whether extended blank is supported (%true or %false)
- */
-bool dc_extended_blank_supported(struct dc *dc)
-{
-	return dc->debug.extended_blank_optimization && !dc->debug.disable_z10
-		&& dc->caps.zstate_support && dc->caps.is_apu;
-}
drivers/gpu/drm/amd/display/dc/dc.h +0 -3
index 4d93ca9c627b..9279990e4369 100644
@@ -855,7 +855,6 @@ struct dc_debug_options {
 	bool force_usr_allow;
 	/* uses value at boot and disables switch */
 	bool disable_dtb_ref_clk_switch;
-	uint32_t fixed_vs_aux_delay_config_wa;
 	bool extended_blank_optimization;
 	union aux_wake_wa_options aux_wake_wa;
 	uint32_t mst_start_top_delay;
@@ -2126,8 +2125,6 @@ struct dc_sink_init_data {
 	bool converter_disable_audio;
 };
 
-bool dc_extended_blank_supported(struct dc *dc);
-
 struct dc_sink *dc_sink_create(const struct dc_sink_init_data *init_params);
 
 /* Newer interfaces  */
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +7 -0
index a9b9490a532c..ab4542b57b9a 100644
@@ -1079,3 +1079,10 @@ void dc_send_update_cursor_info_to_dmu(
 		dc_send_cmd_to_dmu(pCtx->stream->ctx->dmub_srv, &cmd);
 	}
 }
+
+bool dc_dmub_check_min_version(struct dmub_srv *srv)
+{
+	if (!srv->hw_funcs.is_psrsu_supported)
+		return true;
+	return srv->hw_funcs.is_psrsu_supported(srv);
+}
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h +1 -0
index d34f5563df2e..9a248ced03b9 100644
@@ -89,4 +89,5 @@ void dc_dmub_setup_subvp_dmub_command(struct dc *dc, struct dc_state *context, b
 void dc_dmub_srv_log_diagnostic_data(struct dc_dmub_srv *dc_dmub_srv);
 
 void dc_send_update_cursor_info_to_dmu(struct pipe_ctx *pCtx, uint8_t pipe_idx);
+bool dc_dmub_check_min_version(struct dmub_srv *srv);
 #endif /* _DMUB_DC_SRV_H_ */
drivers/gpu/drm/amd/display/dc/dc_stream.h +1 -0
index 25284006019c..270282fbda4a 100644
@@ -131,6 +131,7 @@ union stream_update_flags {
 		uint32_t dsc_changed : 1;
 		uint32_t mst_bw : 1;
 		uint32_t crtc_timing_adjust : 1;
+		uint32_t fams_changed : 1;
 	} bits;
 
 	uint32_t raw;
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -0
index 45ab48fe5d00..139a77acd5d0 100644
@@ -196,6 +196,7 @@ struct dc_panel_patch {
 	unsigned int disable_fams;
 	unsigned int skip_avmute;
 	unsigned int mst_start_top_delay;
+	unsigned int delay_disable_aux_intercept_ms;
 };
 
 struct dc_edid_caps {
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +2 -2
index c38be3c6c234..a621b6a27c1f 100644
@@ -2128,7 +2128,7 @@ void dcn20_optimize_bandwidth(
 			dc->clk_mgr,
 			context,
 			true);
-	if (dc_extended_blank_supported(dc) && context->bw_ctx.bw.dcn.clk.zstate_support == DCN_ZSTATE_SUPPORT_ALLOW) {
+	if (context->bw_ctx.bw.dcn.clk.zstate_support == DCN_ZSTATE_SUPPORT_ALLOW) {
 		for (i = 0; i < dc->res_pool->pipe_count; ++i) {
 			struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
 
@@ -2136,7 +2136,7 @@ void dcn20_optimize_bandwidth(
 				&& pipe_ctx->stream->adjust.v_total_min == pipe_ctx->stream->adjust.v_total_max
 				&& pipe_ctx->stream->adjust.v_total_max > pipe_ctx->stream->timing.v_total)
 					pipe_ctx->plane_res.hubp->funcs->program_extended_blank(pipe_ctx->plane_res.hubp,
-						pipe_ctx->dlg_regs.optimized_min_dst_y_next_start);
+						pipe_ctx->dlg_regs.min_dst_y_next_start);
 		}
 	}
 }
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c +6 -1
index c95f000b63b2..34b08d90dc1d 100644
@@ -301,7 +301,12 @@ static void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *o
 
 void optc3_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max)
 {
-	optc1_set_vtotal_min_max(optc, vtotal_min, vtotal_max);
+	struct dc *dc = optc->ctx->dc;
+
+	if (dc->caps.dmub_caps.mclk_sw && !dc->debug.disable_fams)
+		dc_dmub_srv_drr_update_cmd(dc, optc->inst, vtotal_min, vtotal_max);
+	else
+		optc1_set_vtotal_min_max(optc, vtotal_min, vtotal_max);
 }
 
 void optc3_tg_init(struct timing_generator *optc)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c +1 -0
index 7e7cd5b64e6a..7445ed27852a 100644
@@ -103,6 +103,7 @@ static void dcn31_program_det_size(struct hubbub *hubbub, int hubp_inst, unsigne
 	default:
 		break;
 	}
+	DC_LOG_DEBUG("Set DET%d to %d segments\n", hubp_inst, det_size_segments);
 	/* Should never be hit, if it is we have an erroneous hw config*/
 	ASSERT(hubbub2->det0_size + hubbub2->det1_size + hubbub2->det2_size
 			+ hubbub2->det3_size + hubbub2->compbuf_size_segments <= hubbub2->crb_size_segs);
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c +102 -4

151 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c +11 -12
index f1c1a4b5fcac..7661f8946aa3 100644
@@ -948,10 +948,10 @@ static enum dcn_zstate_support_state  decide_zstate_support(struct dc *dc, struc
 {
 	int plane_count;
 	int i;
-	unsigned int optimized_min_dst_y_next_start_us;
+	unsigned int min_dst_y_next_start_us;
 
 	plane_count = 0;
-	optimized_min_dst_y_next_start_us = 0;
+	min_dst_y_next_start_us = 0;
 	for (i = 0; i < dc->res_pool->pipe_count; i++) {
 		if (context->res_ctx.pipe_ctx[i].plane_state)
 			plane_count++;
@@ -973,19 +973,18 @@ static enum dcn_zstate_support_state  decide_zstate_support(struct dc *dc, struc
 	else if (context->stream_count == 1 &&  context->streams[0]->signal == SIGNAL_TYPE_EDP) {
 		struct dc_link *link = context->streams[0]->sink->link;
 		struct dc_stream_status *stream_status = &context->stream_status[0];
+		struct dc_stream_state *current_stream = context->streams[0];
 		int minmum_z8_residency = dc->debug.minimum_z8_residency_time > 0 ? dc->debug.minimum_z8_residency_time : 1000;
 		bool allow_z8 = context->bw_ctx.dml.vba.StutterPeriod > (double)minmum_z8_residency;
 		bool is_pwrseq0 = link->link_index == 0;
+		bool isFreesyncVideo;
 
-		if (dc_extended_blank_supported(dc)) {
-			for (i = 0; i < dc->res_pool->pipe_count; i++) {
-				if (context->res_ctx.pipe_ctx[i].stream == context->streams[0]
-					&& context->res_ctx.pipe_ctx[i].stream->adjust.v_total_min == context->res_ctx.pipe_ctx[i].stream->adjust.v_total_max
-					&& context->res_ctx.pipe_ctx[i].stream->adjust.v_total_min > context->res_ctx.pipe_ctx[i].stream->timing.v_total) {
-						optimized_min_dst_y_next_start_us =
-							context->res_ctx.pipe_ctx[i].dlg_regs.optimized_min_dst_y_next_start_us;
-						break;
-				}
+		isFreesyncVideo = current_stream->adjust.v_total_min == current_stream->adjust.v_total_max;
+		isFreesyncVideo = isFreesyncVideo && current_stream->timing.v_total < current_stream->adjust.v_total_min;
+		for (i = 0; i < dc->res_pool->pipe_count; i++) {
+			if (context->res_ctx.pipe_ctx[i].stream == current_stream && isFreesyncVideo) {
+				min_dst_y_next_start_us = context->res_ctx.pipe_ctx[i].dlg_regs.min_dst_y_next_start_us;
+				break;
 			}
 		}
 
@@ -993,7 +992,7 @@ static enum dcn_zstate_support_state  decide_zstate_support(struct dc *dc, struc
 		if (stream_status->plane_count > 1)
 			return DCN_ZSTATE_SUPPORT_DISALLOW;
 
-		if (is_pwrseq0 && (context->bw_ctx.dml.vba.StutterPeriod > 5000.0 || optimized_min_dst_y_next_start_us > 5000))
+		if (is_pwrseq0 && (context->bw_ctx.dml.vba.StutterPeriod > 5000.0 || min_dst_y_next_start_us > 5000))
 			return DCN_ZSTATE_SUPPORT_ALLOW;
 		else if (is_pwrseq0 && link->psr_settings.psr_version == DC_PSR_VERSION_1 && !link->panel_config.psr.disable_psr)
 			return allow_z8 ? DCN_ZSTATE_SUPPORT_ALLOW_Z8_Z10_ONLY : DCN_ZSTATE_SUPPORT_ALLOW_Z10_ONLY;
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c +24 -1
index 59836570603a..19d034341e64 100644
@@ -483,7 +483,7 @@ void dcn31_calculate_wm_and_dlg_fp(
 		int pipe_cnt,
 		int vlevel)
 {
-	int i, pipe_idx, active_hubp_count = 0;
+	int i, pipe_idx, total_det = 0, active_hubp_count = 0;
 	double dcfclk = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb];
 
 	dc_assert_fp_enabled();
@@ -563,6 +563,18 @@ void dcn31_calculate_wm_and_dlg_fp(
 			if (context->res_ctx.pipe_ctx[i].stream)
 				context->res_ctx.pipe_ctx[i].plane_res.bw.dppclk_khz = 0;
 	}
+	for (i = 0, pipe_idx = 0; i < dc->res_pool->pipe_count; i++) {
+		if (!context->res_ctx.pipe_ctx[i].stream)
+			continue;
+
+		context->res_ctx.pipe_ctx[i].det_buffer_size_kb =
+				get_det_buffer_size_kbytes(&context->bw_ctx.dml, pipes, pipe_cnt, pipe_idx);
+		if (context->res_ctx.pipe_ctx[i].det_buffer_size_kb > 384)
+			context->res_ctx.pipe_ctx[i].det_buffer_size_kb /= 2;
+		total_det += context->res_ctx.pipe_ctx[i].det_buffer_size_kb;
+		pipe_idx++;
+	}
+	context->bw_ctx.bw.dcn.compbuf_size_kb = context->bw_ctx.dml.ip.config_return_buffer_size_in_kbytes - total_det;
 }
 
 void dcn31_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params)
@@ -815,3 +827,14 @@ int dcn_get_max_non_odm_pix_rate_100hz(struct _vcs_dpi_soc_bounding_box_st *soc)
 {
 	return soc->clock_limits[0].dispclk_mhz * 10000.0 / (1.0 + soc->dcn_downspread_percent / 100.0);
 }
+
+int dcn_get_approx_det_segs_required_for_pstate(
+		struct _vcs_dpi_soc_bounding_box_st *soc,
+		int pix_clk_100hz, int bpp, int seg_size_kb)
+{
+	/* Roughly calculate required crb to hide latency. In practice there is slightly
+	 * more buffer available for latency hiding
+	 */
+	return (int)(soc->dram_clock_change_latency_us * pix_clk_100hz * bpp
+					/ 10240000 + seg_size_kb - 1) /	seg_size_kb;
+}
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.h +3 -0
index 687d3522cc33..8f9c8faed260 100644
@@ -47,6 +47,9 @@ void dcn31_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params
 void dcn315_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params);
 void dcn316_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params);
 int dcn_get_max_non_odm_pix_rate_100hz(struct _vcs_dpi_soc_bounding_box_st *soc);
+int dcn_get_approx_det_segs_required_for_pstate(
+		struct _vcs_dpi_soc_bounding_box_st *soc,
+		int pix_clk_100hz, int bpp, int seg_size_kb);
 
 int dcn31x_populate_dml_pipes_from_context(struct dc *dc,
 					  struct dc_state *context,
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c +27 -12
index bd674dc30df3..a0f44eef7763 100644
@@ -532,7 +532,8 @@ static void CalculateStutterEfficiency(
 static void CalculateSwathAndDETConfiguration(
 		bool ForceSingleDPP,
 		int NumberOfActivePlanes,
-		unsigned int DETBufferSizeInKByte,
+		bool DETSharedByAllDPP,
+		unsigned int DETBufferSizeInKByte[],
 		double MaximumSwathWidthLuma[],
 		double MaximumSwathWidthChroma[],
 		enum scan_direction_class SourceScan[],
@@ -3118,7 +3119,7 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman
 				v->SurfaceWidthC[k],
 				v->SurfaceHeightY[k],
 				v->SurfaceHeightC[k],
-				v->DETBufferSizeInKByte[0] * 1024,
+				v->DETBufferSizeInKByte[k] * 1024,
 				v->BlockHeight256BytesY[k],
 				v->BlockHeight256BytesC[k],
 				v->SurfaceTiling[k],
@@ -3313,7 +3314,8 @@ static void DisplayPipeConfiguration(struct display_mode_lib *mode_lib)
 	CalculateSwathAndDETConfiguration(
 			false,
 			v->NumberOfActivePlanes,
-			v->DETBufferSizeInKByte[0],
+			mode_lib->project == DML_PROJECT_DCN315 && v->DETSizeOverride[0],
+			v->DETBufferSizeInKByte,
 			dummy1,
 			dummy2,
 			v->SourceScan,
@@ -3779,14 +3781,16 @@ static noinline void CalculatePrefetchSchedulePerPlane(
 		&v->VReadyOffsetPix[k]);
 }
 
-static void PatchDETBufferSizeInKByte(unsigned int NumberOfActivePlanes, int NoOfDPPThisState[], unsigned int config_return_buffer_size_in_kbytes, unsigned int *DETBufferSizeInKByte)
+static void PatchDETBufferSizeInKByte(unsigned int NumberOfActivePlanes, int NoOfDPPThisState[], unsigned int config_return_buffer_size_in_kbytes, unsigned int DETBufferSizeInKByte[])
 {
 	int i, total_pipes = 0;
 	for (i = 0; i < NumberOfActivePlanes; i++)
 		total_pipes += NoOfDPPThisState[i];
-	*DETBufferSizeInKByte = ((config_return_buffer_size_in_kbytes - DCN3_15_MIN_COMPBUF_SIZE_KB) / 64 / total_pipes) * 64;
-	if (*DETBufferSizeInKByte > DCN3_15_MAX_DET_SIZE)
-		*DETBufferSizeInKByte = DCN3_15_MAX_DET_SIZE;
+	DETBufferSizeInKByte[0] = ((config_return_buffer_size_in_kbytes - DCN3_15_MIN_COMPBUF_SIZE_KB) / 64 / total_pipes) * 64;
+	if (DETBufferSizeInKByte[0] > DCN3_15_MAX_DET_SIZE)
+		DETBufferSizeInKByte[0] = DCN3_15_MAX_DET_SIZE;
+	for (i = 1; i < NumberOfActivePlanes; i++)
+		DETBufferSizeInKByte[i] = DETBufferSizeInKByte[0];
 }
 
 
@@ -4026,7 +4030,8 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
 	CalculateSwathAndDETConfiguration(
 			true,
 			v->NumberOfActivePlanes,
-			v->DETBufferSizeInKByte[0],
+			mode_lib->project == DML_PROJECT_DCN315 && v->DETSizeOverride[0],
+			v->DETBufferSizeInKByte,
 			v->MaximumSwathWidthLuma,
 			v->MaximumSwathWidthChroma,
 			v->SourceScan,
@@ -4166,6 +4171,10 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
 						|| (v->PlaneRequiredDISPCLK > v->MaxDispclkRoundedDownToDFSGranularity)) {
 					v->DISPCLK_DPPCLK_Support[i][j] = false;
 				}
+				if (mode_lib->project == DML_PROJECT_DCN315 && v->DETSizeOverride[k] > DCN3_15_MAX_DET_SIZE && v->NoOfDPP[i][j][k] < 2) {
+					v->MPCCombine[i][j][k] = true;
+					v->NoOfDPP[i][j][k] = 2;
+				}
 			}
 			v->TotalNumberOfActiveDPP[i][j] = 0;
 			v->TotalNumberOfSingleDPPPlanes[i][j] = 0;
@@ -4642,12 +4651,13 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
 				v->ODMCombineEnableThisState[k] = v->ODMCombineEnablePerState[i][k];
 			}
 
-			if (v->NumberOfActivePlanes > 1 && mode_lib->project == DML_PROJECT_DCN315)
-				PatchDETBufferSizeInKByte(v->NumberOfActivePlanes, v->NoOfDPPThisState, v->ip.config_return_buffer_size_in_kbytes, &v->DETBufferSizeInKByte[0]);
+			if (v->NumberOfActivePlanes > 1 && mode_lib->project == DML_PROJECT_DCN315 && !v->DETSizeOverride[0])
+				PatchDETBufferSizeInKByte(v->NumberOfActivePlanes, v->NoOfDPPThisState, v->ip.config_return_buffer_size_in_kbytes, v->DETBufferSizeInKByte);
 			CalculateSwathAndDETConfiguration(
 					false,
 					v->NumberOfActivePlanes,
-					v->DETBufferSizeInKByte[0],
+					mode_lib->project == DML_PROJECT_DCN315 && v->DETSizeOverride[0],
+					v->DETBufferSizeInKByte,
 					v->MaximumSwathWidthLuma,
 					v->MaximumSwathWidthChroma,
 					v->SourceScan,
@@ -6611,7 +6621,8 @@ static void CalculateStutterEfficiency(
 static void CalculateSwathAndDETConfiguration(
 		bool ForceSingleDPP,
 		int NumberOfActivePlanes,
-		unsigned int DETBufferSizeInKByte,
+		bool DETSharedByAllDPP,
+		unsigned int DETBufferSizeInKByteA[],
 		double MaximumSwathWidthLuma[],
 		double MaximumSwathWidthChroma[],
 		enum scan_direction_class SourceScan[],
@@ -6695,6 +6706,10 @@ static void CalculateSwathAndDETConfiguration(
 
 	*ViewportSizeSupport = true;
 	for (k = 0; k < NumberOfActivePlanes; ++k) {
+		unsigned int DETBufferSizeInKByte = DETBufferSizeInKByteA[k];
+
+		if (DETSharedByAllDPP && DPPPerPlane[k])
+			DETBufferSizeInKByte /= DPPPerPlane[k];
 		if ((SourcePixelFormat[k] == dm_444_64 || SourcePixelFormat[k] == dm_444_32 || SourcePixelFormat[k] == dm_444_16 || SourcePixelFormat[k] == dm_mono_16
 				|| SourcePixelFormat[k] == dm_mono_8 || SourcePixelFormat[k] == dm_rgbe)) {
 			if (SurfaceTiling[k] == dm_sw_linear
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c +1 -2
index 2244e4fb8c96..fcde8f21b8be 100644
@@ -987,8 +987,7 @@ static void dml_rq_dlg_get_dlg_params(
 
 	dlg_vblank_start = interlaced ? (vblank_start / 2) : vblank_start;
 	disp_dlg_regs->min_dst_y_next_start = (unsigned int) (((double) dlg_vblank_start) * dml_pow(2, 2));
-	disp_dlg_regs->optimized_min_dst_y_next_start_us = 0;
-	disp_dlg_regs->optimized_min_dst_y_next_start = disp_dlg_regs->min_dst_y_next_start;
+	disp_dlg_regs->min_dst_y_next_start_us = 0;
 	ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18));
 
 	dml_print("DML_DLG: %s: min_ttu_vblank (us)         = %3.2f\n", __func__, min_ttu_vblank);
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c +10 -5
index 9e54e3d0eb78..b878effa2129 100644
@@ -33,7 +33,7 @@
 #include "dml/display_mode_vba.h"
 
 struct _vcs_dpi_ip_params_st dcn3_14_ip = {
-	.VBlankNomDefaultUS = 668,
+	.VBlankNomDefaultUS = 800,
 	.gpuvm_enable = 1,
 	.gpuvm_max_page_table_levels = 1,
 	.hostvm_enable = 1,
@@ -286,6 +286,7 @@ int dcn314_populate_dml_pipes_from_context_fpu(struct dc *dc, struct dc_state *c
 	struct resource_context *res_ctx = &context->res_ctx;
 	struct pipe_ctx *pipe;
 	bool upscaled = false;
+	const unsigned int max_allowed_vblank_nom = 1023;
 
 	dc_assert_fp_enabled();
 
@@ -299,9 +300,15 @@ int dcn314_populate_dml_pipes_from_context_fpu(struct dc *dc, struct dc_state *c
 		pipe = &res_ctx->pipe_ctx[i];
 		timing = &pipe->stream->timing;
 
-		if (dc_extended_blank_supported(dc) && pipe->stream->adjust.v_total_max == pipe->stream->adjust.v_total_min
-			&& pipe->stream->adjust.v_total_min > timing->v_total)
+		if (pipe->stream->adjust.v_total_min != 0)
 			pipes[pipe_cnt].pipe.dest.vtotal = pipe->stream->adjust.v_total_min;
+		else
+			pipes[pipe_cnt].pipe.dest.vtotal = timing->v_total;
+
+		pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive;
+		pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, dcn3_14_ip.VBlankNomDefaultUS);
+		pipes[pipe_cnt].pipe.dest.vblank_nom = max(pipes[pipe_cnt].pipe.dest.vblank_nom, timing->v_sync_width);
+		pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, max_allowed_vblank_nom);
 
 		if (pipe->plane_state &&
 				(pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height ||
@@ -323,8 +330,6 @@ int dcn314_populate_dml_pipes_from_context_fpu(struct dc *dc, struct dc_state *c
 		pipes[pipe_cnt].pipe.src.dcc_fraction_of_zs_req_luma = 0;
 		pipes[pipe_cnt].pipe.src.dcc_fraction_of_zs_req_chroma = 0;
 		pipes[pipe_cnt].pipe.dest.vfront_porch = timing->v_front_porch;
-		pipes[pipe_cnt].pipe.dest.vblank_nom =
-				dcn3_14_ip.VBlankNomDefaultUS / (timing->h_total / (timing->pix_clk_100hz / 10000.0));
 		pipes[pipe_cnt].pipe.src.dcc_rate = 3;
 		pipes[pipe_cnt].dout.dsc_input_bpc = 0;
 
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c +4 -12
index ea4eb66066c4..4f945458b2b7 100644
@@ -1051,7 +1051,6 @@ static void dml_rq_dlg_get_dlg_params(
 
 	float vba__refcyc_per_req_delivery_pre_l = get_refcyc_per_req_delivery_pre_l_in_us(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz;  // From VBA
 	float vba__refcyc_per_req_delivery_l = get_refcyc_per_req_delivery_l_in_us(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz;  // From VBA
-	int blank_lines = 0;
 
 	memset(disp_dlg_regs, 0, sizeof(*disp_dlg_regs));
 	memset(disp_ttu_regs, 0, sizeof(*disp_ttu_regs));
@@ -1075,17 +1074,10 @@ static void dml_rq_dlg_get_dlg_params(
 	min_ttu_vblank = get_min_ttu_vblank_in_us(mode_lib, e2e_pipe_param, num_pipes, pipe_idx);	// From VBA
 
 	dlg_vblank_start = interlaced ? (vblank_start / 2) : vblank_start;
-	disp_dlg_regs->optimized_min_dst_y_next_start = disp_dlg_regs->min_dst_y_next_start;
-	disp_dlg_regs->optimized_min_dst_y_next_start_us = 0;
-	disp_dlg_regs->min_dst_y_next_start = (unsigned int) (((double) dlg_vblank_start) * dml_pow(2, 2));
-	blank_lines = (dst->vblank_end + dst->vtotal_min - dst->vblank_start - dst->vstartup_start - 1);
-	if (blank_lines < 0)
-		blank_lines = 0;
-	if (blank_lines != 0) {
-		disp_dlg_regs->optimized_min_dst_y_next_start = vba__min_dst_y_next_start;
-		disp_dlg_regs->optimized_min_dst_y_next_start_us = (disp_dlg_regs->optimized_min_dst_y_next_start * dst->hactive) / (unsigned int) dst->pixel_rate_mhz;
-		disp_dlg_regs->min_dst_y_next_start = disp_dlg_regs->optimized_min_dst_y_next_start;
-	}
+	disp_dlg_regs->min_dst_y_next_start_us =
+		(vba__min_dst_y_next_start * dst->hactive) / (unsigned int) dst->pixel_rate_mhz;
+	disp_dlg_regs->min_dst_y_next_start = vba__min_dst_y_next_start * dml_pow(2, 2);
+
 	ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int)dml_pow(2, 18));
 
 	dml_print("DML_DLG: %s: min_ttu_vblank (us)         = %3.2f\n", __func__, min_ttu_vblank);
drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h +1 -2
index 3c077164f362..ff0246a9458f 100644
@@ -619,8 +619,7 @@ struct _vcs_dpi_display_dlg_regs_st {
 	unsigned int refcyc_h_blank_end;
 	unsigned int dlg_vblank_end;
 	unsigned int min_dst_y_next_start;
-	unsigned int optimized_min_dst_y_next_start;
-	unsigned int optimized_min_dst_y_next_start_us;
+	unsigned int min_dst_y_next_start_us;
 	unsigned int refcyc_per_htotal;
 	unsigned int refcyc_x_after_scaler;
 	unsigned int dst_y_after_scaler;
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c +6 -0
index f9653f511baa..2f63ae954826 100644
@@ -571,6 +571,10 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
 		mode_lib->vba.OutputLinkDPRate[mode_lib->vba.NumberOfActivePlanes] = dout->dp_rate;
 		mode_lib->vba.ODMUse[mode_lib->vba.NumberOfActivePlanes] = dst->odm_combine_policy;
 		mode_lib->vba.DETSizeOverride[mode_lib->vba.NumberOfActivePlanes] = src->det_size_override;
+		if (src->det_size_override)
+			mode_lib->vba.DETBufferSizeInKByte[mode_lib->vba.NumberOfActivePlanes] = src->det_size_override;
+		else
+			mode_lib->vba.DETBufferSizeInKByte[mode_lib->vba.NumberOfActivePlanes] = ip->det_buffer_size_kbytes;
 		//TODO: Need to assign correct values to dp_multistream vars
 		mode_lib->vba.OutputMultistreamEn[mode_lib->vba.NumberOfActiveSurfaces] = dout->dp_multistream_en;
 		mode_lib->vba.OutputMultistreamId[mode_lib->vba.NumberOfActiveSurfaces] = dout->dp_multistream_id;
@@ -785,6 +789,8 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
 					mode_lib->vba.pipe_plane[k] =
 							mode_lib->vba.NumberOfActivePlanes;
 					mode_lib->vba.DPPPerPlane[mode_lib->vba.NumberOfActivePlanes]++;
+					if (src_k->det_size_override)
+						mode_lib->vba.DETBufferSizeInKByte[mode_lib->vba.NumberOfActivePlanes] = src_k->det_size_override;
 					if (mode_lib->vba.SourceScan[mode_lib->vba.NumberOfActivePlanes]
 							== dm_horz) {
 						mode_lib->vba.ViewportWidth[mode_lib->vba.NumberOfActivePlanes] +=
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c +16 -7
index 5731c4b61f9f..15faaf645b14 100644
@@ -233,7 +233,7 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence_legacy(
 			link->dpcd_caps.lttpr_caps.phy_repeater_cnt);
 	const uint8_t vendor_lttpr_write_data_intercept_en[4] = {0x1, 0x55, 0x63, 0x0};
 	const uint8_t vendor_lttpr_write_data_intercept_dis[4] = {0x1, 0x55, 0x63, 0x68};
-	uint32_t pre_disable_intercept_delay_ms = link->dc->debug.fixed_vs_aux_delay_config_wa;
+	uint32_t pre_disable_intercept_delay_ms = 0;
 	uint8_t vendor_lttpr_write_data_vs[4] = {0x1, 0x51, 0x63, 0x0};
 	uint8_t vendor_lttpr_write_data_pe[4] = {0x1, 0x52, 0x63, 0x0};
 	uint32_t vendor_lttpr_write_address = 0xF004F;
@@ -244,6 +244,10 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence_legacy(
 	uint8_t toggle_rate;
 	uint8_t rate;
 
+	if (link->local_sink)
+		pre_disable_intercept_delay_ms =
+				link->local_sink->edid_caps.panel_patch.delay_disable_aux_intercept_ms;
+
 	/* Only 8b/10b is supported */
 	ASSERT(link_dp_get_encoding_format(&lt_settings->link_settings) ==
 			DP_8b_10b_ENCODING);
@@ -259,7 +263,7 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence_legacy(
 
 		/* Certain display and cable configuration require extra delay */
 		if (offset > 2)
-			pre_disable_intercept_delay_ms = link->dc->debug.fixed_vs_aux_delay_config_wa * 2;
+			pre_disable_intercept_delay_ms = pre_disable_intercept_delay_ms * 2;
 	}
 
 	/* Vendor specific: Reset lane settings */
@@ -380,7 +384,8 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence_legacy(
 						0);
 				/* Vendor specific: Disable intercept */
 				for (i = 0; i < max_vendor_dpcd_retries; i++) {
-					msleep(pre_disable_intercept_delay_ms);
+					if (pre_disable_intercept_delay_ms != 0)
+						msleep(pre_disable_intercept_delay_ms);
 					dpcd_status = core_link_write_dpcd(
 							link,
 							vendor_lttpr_write_address,
@@ -591,10 +596,9 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence(
 	const uint8_t vendor_lttpr_write_data_adicora_eq1[4] = {0x1, 0x55, 0x63, 0x2E};
 	const uint8_t vendor_lttpr_write_data_adicora_eq2[4] = {0x1, 0x55, 0x63, 0x01};
 	const uint8_t vendor_lttpr_write_data_adicora_eq3[4] = {0x1, 0x55, 0x63, 0x68};
-	uint32_t pre_disable_intercept_delay_ms = link->dc->debug.fixed_vs_aux_delay_config_wa;
 	uint8_t vendor_lttpr_write_data_vs[4] = {0x1, 0x51, 0x63, 0x0};
 	uint8_t vendor_lttpr_write_data_pe[4] = {0x1, 0x52, 0x63, 0x0};
-
+	uint32_t pre_disable_intercept_delay_ms = 0;
 	uint32_t vendor_lttpr_write_address = 0xF004F;
 	enum link_training_result status = LINK_TRAINING_SUCCESS;
 	uint8_t lane = 0;
@@ -603,6 +607,10 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence(
 	uint8_t toggle_rate;
 	uint8_t rate;
 
+	if (link->local_sink)
+		pre_disable_intercept_delay_ms =
+				link->local_sink->edid_caps.panel_patch.delay_disable_aux_intercept_ms;
+
 	/* Only 8b/10b is supported */
 	ASSERT(link_dp_get_encoding_format(&lt_settings->link_settings) ==
 			DP_8b_10b_ENCODING);
@@ -618,7 +626,7 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence(
 
 		/* Certain display and cable configuration require extra delay */
 		if (offset > 2)
-			pre_disable_intercept_delay_ms = link->dc->debug.fixed_vs_aux_delay_config_wa * 2;
+			pre_disable_intercept_delay_ms = pre_disable_intercept_delay_ms * 2;
 	}
 
 	/* Vendor specific: Reset lane settings */
@@ -739,7 +747,8 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence(
 						0);
 				/* Vendor specific: Disable intercept */
 				for (i = 0; i < max_vendor_dpcd_retries; i++) {
-					msleep(pre_disable_intercept_delay_ms);
+					if (pre_disable_intercept_delay_ms != 0)
+						msleep(pre_disable_intercept_delay_ms);
 					dpcd_status = core_link_write_dpcd(
 							link,
 							vendor_lttpr_write_address,
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +2 -0
index 554ab48d4e64..9cad599b2709 100644
@@ -364,6 +364,8 @@ struct dmub_srv_hw_funcs {
 
 	bool (*is_supported)(struct dmub_srv *dmub);
 
+	bool (*is_psrsu_supported)(struct dmub_srv *dmub);
+
 	bool (*is_hw_init)(struct dmub_srv *dmub);
 
 	bool (*is_phy_init)(struct dmub_srv *dmub);
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +1 -1
index 598fa1de54ce..1c55d3b01f53 100644
@@ -360,7 +360,7 @@ union dmub_fw_boot_status {
 		uint32_t optimized_init_done : 1; /**< 1 if optimized init done */
 		uint32_t restore_required : 1; /**< 1 if driver should call restore */
 		uint32_t defer_load : 1; /**< 1 if VBIOS data is deferred programmed */
-		uint32_t reserved : 1;
+		uint32_t fams_enabled : 1; /**< 1 if VBIOS data is deferred programmed */
 		uint32_t detection_required: 1; /**<  if detection need to be triggered by driver */
 		uint32_t hw_power_init_done: 1; /**< 1 if hw power init is completed */
 	} bits; /**< status bits */
drivers/gpu/drm/amd/display/dmub/src/Makefile +1 -1
index 0589ad4778ee..caf095aca8f3 100644
@@ -22,7 +22,7 @@
 
 DMUB = dmub_srv.o dmub_srv_stat.o dmub_reg.o dmub_dcn20.o dmub_dcn21.o
 DMUB += dmub_dcn30.o dmub_dcn301.o dmub_dcn302.o dmub_dcn303.o
-DMUB += dmub_dcn31.o dmub_dcn315.o dmub_dcn316.o
+DMUB += dmub_dcn31.o dmub_dcn314.o dmub_dcn315.o dmub_dcn316.o
 DMUB += dmub_dcn32.o
 
 AMD_DAL_DMUB = $(addprefix $(AMDDALPATH)/dmub/src/,$(DMUB))
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.c +5 -0
index c90b9ee42e12..89d24fb7024e 100644
@@ -297,6 +297,11 @@ bool dmub_dcn31_is_supported(struct dmub_srv *dmub)
 	return supported;
 }
 
+bool dmub_dcn31_is_psrsu_supported(struct dmub_srv *dmub)
+{
+	return dmub->fw_version >= DMUB_FW_VERSION(4, 0, 59);
+}
+
 void dmub_dcn31_set_gpint(struct dmub_srv *dmub,
 			  union dmub_gpint_data_register reg)
 {
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.h +2 -0
index f6db6f89d45d..eb6241094147 100644
@@ -219,6 +219,8 @@ bool dmub_dcn31_is_hw_init(struct dmub_srv *dmub);
 
 bool dmub_dcn31_is_supported(struct dmub_srv *dmub);
 
+bool dmub_dcn31_is_psrsu_supported(struct dmub_srv *dmub);
+
 void dmub_dcn31_set_gpint(struct dmub_srv *dmub,
 			  union dmub_gpint_data_register reg);
 
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn314.c new file +67 -0

67 lines not on this page · raw message

drivers/gpu/drm/amd/display/dmub/src/dmub_dcn314.h new file +35 -0
new file mode 100644
index 000000000000..f213bd82c911
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2021 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ *
+ */
+
+#ifndef _DMUB_DCN314_H_
+#define _DMUB_DCN314_H_
+
+#include "dmub_dcn31.h"
+
+extern const struct dmub_srv_dcn31_regs dmub_srv_dcn314_regs;
+
+bool dmub_dcn314_is_psrsu_supported(struct dmub_srv *dmub);
+
+#endif /* _DMUB_DCN314_H_ */
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +9 -3
index 92c18bfb98b3..0dab22d79480 100644
@@ -32,6 +32,7 @@
 #include "dmub_dcn302.h"
 #include "dmub_dcn303.h"
 #include "dmub_dcn31.h"
+#include "dmub_dcn314.h"
 #include "dmub_dcn315.h"
 #include "dmub_dcn316.h"
 #include "dmub_dcn32.h"
@@ -226,12 +227,17 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic)
 	case DMUB_ASIC_DCN314:
 	case DMUB_ASIC_DCN315:
 	case DMUB_ASIC_DCN316:
-		if (asic == DMUB_ASIC_DCN315)
+		if (asic == DMUB_ASIC_DCN314) {
+			dmub->regs_dcn31 = &dmub_srv_dcn314_regs;
+			funcs->is_psrsu_supported = dmub_dcn314_is_psrsu_supported;
+		} else if (asic == DMUB_ASIC_DCN315) {
 			dmub->regs_dcn31 = &dmub_srv_dcn315_regs;
-		else if (asic == DMUB_ASIC_DCN316)
+		} else if (asic == DMUB_ASIC_DCN316) {
 			dmub->regs_dcn31 = &dmub_srv_dcn316_regs;
-		else
+		} else {
 			dmub->regs_dcn31 = &dmub_srv_dcn31_regs;
+			funcs->is_psrsu_supported = dmub_dcn31_is_psrsu_supported;
+		}
 		funcs->reset = dmub_dcn31_reset;
 		funcs->reset_release = dmub_dcn31_reset_release;
 		funcs->backdoor_load = dmub_dcn31_backdoor_load;
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +18 -71

107 lines not on this page · raw message

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1 -20
index 7acf731a69cc..79e9230fc796 100644
@@ -2454,25 +2454,6 @@ int smu_v13_0_mode1_reset(struct smu_context *smu)
 	return ret;
 }
 
-/*
- * 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
- * supports it, it's safer that we keep it disabled for all.
- *
- * https://edc.intel.com/content/www/us/en/design/products/platforms/details/raptor-lake-s/13th-generation-core-processors-datasheet-volume-1-of-2/005/pci-express-support/
- * https://gitlab.freedesktop.org/drm/amd/-/issues/2663
- */
-static bool smu_v13_0_is_pcie_dynamic_switching_supported(void)
-{
-#if IS_ENABLED(CONFIG_X86)
-	struct cpuinfo_x86 *c = &cpu_data(0);
-
-	if (c->x86_vendor == X86_VENDOR_INTEL)
-		return false;
-#endif
-	return true;
-}
-
 int smu_v13_0_update_pcie_parameters(struct smu_context *smu,
 				     uint32_t pcie_gen_cap,
 				     uint32_t pcie_width_cap)
@@ -2484,7 +2465,7 @@ int smu_v13_0_update_pcie_parameters(struct smu_context *smu,
 	uint32_t smu_pcie_arg;
 	int ret, i;
 
-	if (!smu_v13_0_is_pcie_dynamic_switching_supported()) {
+	if (!amdgpu_device_pcie_dynamic_switching_supported()) {
 		if (pcie_table->pcie_gen[num_of_levels - 1] < pcie_gen_cap)
 			pcie_gen_cap = pcie_table->pcie_gen[num_of_levels - 1];
 
drivers/gpu/drm/drm_syncobj.c +3 -3
index 0c2be8360525..e592c5da70ce 100644
@@ -353,10 +353,10 @@ EXPORT_SYMBOL(drm_syncobj_replace_fence);
  */
 static int drm_syncobj_assign_null_handle(struct drm_syncobj *syncobj)
 {
-	struct dma_fence *fence = dma_fence_allocate_private_stub();
+	struct dma_fence *fence = dma_fence_allocate_private_stub(ktime_get());
 
-	if (IS_ERR(fence))
-		return PTR_ERR(fence);
+	if (!fence)
+		return -ENOMEM;
 
 	drm_syncobj_replace_fence(syncobj, fence);
 	dma_fence_put(fence);
drivers/gpu/drm/i915/display/intel_dpt.c +3 -1
index b8027392144d..25b9a0ba29eb 100644
@@ -166,6 +166,8 @@ struct i915_vma *intel_dpt_pin(struct i915_address_space *vm)
 		i915_vma_get(vma);
 	}
 
+	dpt->obj->mm.dirty = true;
+
 	atomic_dec(&i915->gpu_error.pending_fb_pin);
 	intel_runtime_pm_put(&i915->runtime_pm, wakeref);
 
@@ -261,7 +263,7 @@ intel_dpt_create(struct intel_framebuffer *fb)
 		dpt_obj = i915_gem_object_create_stolen(i915, size);
 	if (IS_ERR(dpt_obj) && !HAS_LMEM(i915)) {
 		drm_dbg_kms(&i915->drm, "Allocating dpt from smem\n");
-		dpt_obj = i915_gem_object_create_internal(i915, size);
+		dpt_obj = i915_gem_object_create_shmem(i915, size);
 	}
 	if (IS_ERR(dpt_obj))
 		return ERR_CAST(dpt_obj);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c +4 -2
index 99f39a5feca1..e86e75971ec6 100644
@@ -1190,8 +1190,10 @@ static int igt_write_huge(struct drm_i915_private *i915,
 	 * times in succession a possibility by enlarging the permutation array.
 	 */
 	order = i915_random_order(count * count, &prng);
-	if (!order)
-		return -ENOMEM;
+	if (!order) {
+		err = -ENOMEM;
+		goto out;
+	}
 
 	max_page_size = rounddown_pow_of_two(obj->mm.page_sizes.sg);
 	max = div_u64(max - size, max_page_size);
drivers/gpu/drm/msm/adreno/a5xx_gpu.c +1 -1
index a99310b68793..bbb1bf33f98e 100644
@@ -89,7 +89,7 @@ static void a5xx_submit_in_rb(struct msm_gpu *gpu, struct msm_gem_submit *submit
 			 * since we've already mapped it once in
 			 * submit_reloc()
 			 */
-			if (WARN_ON(!ptr))
+			if (WARN_ON(IS_ERR_OR_NULL(ptr)))
 				return;
 
 			for (i = 0; i < dwords; i++) {
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h +1 -1
index 790f55e24533..e788ed72eb0d 100644
@@ -206,7 +206,7 @@ static const struct a6xx_shader_block {
 	SHADER(A6XX_SP_LB_3_DATA, 0x800),
 	SHADER(A6XX_SP_LB_4_DATA, 0x800),
 	SHADER(A6XX_SP_LB_5_DATA, 0x200),
-	SHADER(A6XX_SP_CB_BINDLESS_DATA, 0x2000),
+	SHADER(A6XX_SP_CB_BINDLESS_DATA, 0x800),
 	SHADER(A6XX_SP_CB_LEGACY_DATA, 0x280),
 	SHADER(A6XX_SP_UAV_DATA, 0x80),
 	SHADER(A6XX_SP_INST_TAG, 0x80),
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h +0 -13
index e3795995e145..29bb8ee2bc26 100644
@@ -14,19 +14,6 @@
 
 #define	DPU_PERF_DEFAULT_MAX_CORE_CLK_RATE	412500000
 
-/**
- * enum dpu_core_perf_data_bus_id - data bus identifier
- * @DPU_CORE_PERF_DATA_BUS_ID_MNOC: DPU/MNOC data bus
- * @DPU_CORE_PERF_DATA_BUS_ID_LLCC: MNOC/LLCC data bus
- * @DPU_CORE_PERF_DATA_BUS_ID_EBI: LLCC/EBI data bus
- */
-enum dpu_core_perf_data_bus_id {
-	DPU_CORE_PERF_DATA_BUS_ID_MNOC,
-	DPU_CORE_PERF_DATA_BUS_ID_LLCC,
-	DPU_CORE_PERF_DATA_BUS_ID_EBI,
-	DPU_CORE_PERF_DATA_BUS_ID_MAX,
-};
-
 /**
  * struct dpu_core_perf_params - definition of performance parameters
  * @max_per_pipe_ib: maximum instantaneous bandwidth request
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c +7 -1
index f6270b7a0b14..5afbc16ec5bb 100644
@@ -51,7 +51,7 @@
 
 static const u32 fetch_tbl[SSPP_MAX] = {CTL_INVALID_BIT, 16, 17, 18, 19,
 	CTL_INVALID_BIT, CTL_INVALID_BIT, CTL_INVALID_BIT, CTL_INVALID_BIT, 0,
-	1, 2, 3, CTL_INVALID_BIT, CTL_INVALID_BIT};
+	1, 2, 3, 4, 5};
 
 static const struct dpu_ctl_cfg *_ctl_offset(enum dpu_ctl ctl,
 		const struct dpu_mdss_cfg *m,
@@ -209,6 +209,12 @@ static void dpu_hw_ctl_update_pending_flush_sspp(struct dpu_hw_ctl *ctx,
 	case SSPP_DMA3:
 		ctx->pending_flush_mask |= BIT(25);
 		break;
+	case SSPP_DMA4:
+		ctx->pending_flush_mask |= BIT(13);
+		break;
+	case SSPP_DMA5:
+		ctx->pending_flush_mask |= BIT(14);
+		break;
 	case SSPP_CURSOR0:
 		ctx->pending_flush_mask |= BIT(22);
 		break;
drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c +0 -2
index 3ce45b023e63..31deda1c664a 100644
@@ -1087,8 +1087,6 @@ const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs = {
 
 const struct msm_dsi_phy_cfg dsi_phy_14nm_2290_cfgs = {
 	.has_phy_lane = true,
-	.regulator_data = dsi_phy_14nm_17mA_regulators,
-	.num_regulators = ARRAY_SIZE(dsi_phy_14nm_17mA_regulators),
 	.ops = {
 		.enable = dsi_14nm_phy_enable,
 		.disable = dsi_14nm_phy_disable,
drivers/gpu/drm/msm/msm_fence.c +6 -0
index 96599ec3eb78..1a5d4f1c8b42 100644
@@ -191,6 +191,12 @@ msm_fence_init(struct dma_fence *fence, struct msm_fence_context *fctx)
 
 	f->fctx = fctx;
 
+	/*
+	 * Until this point, the fence was just some pre-allocated memory,
+	 * no-one should have taken a reference to it yet.
+	 */
+	WARN_ON(kref_read(&fence->refcount));
+
 	dma_fence_init(&f->base, &msm_fence_ops, &fctx->spinlock,
 		       fctx->context, ++fctx->last_fence);
 }
drivers/gpu/drm/msm/msm_gem_submit.c +14 -2
index 9f5933c75e3d..1bd78041b4d0 100644
@@ -86,7 +86,19 @@ void __msm_gem_submit_destroy(struct kref *kref)
 	}
 
 	dma_fence_put(submit->user_fence);
-	dma_fence_put(submit->hw_fence);
+
+	/*
+	 * If the submit is freed before msm_job_run(), then hw_fence is
+	 * just some pre-allocated memory, not a reference counted fence.
+	 * Once the job runs and the hw_fence is initialized, it will
+	 * have a refcount of at least one, since the submit holds a ref
+	 * to the hw_fence.
+	 */
+	if (kref_read(&submit->hw_fence->refcount) == 0) {
+		kfree(submit->hw_fence);
+	} else {
+		dma_fence_put(submit->hw_fence);
+	}
 
 	put_pid(submit->pid);
 	msm_submitqueue_put(submit->queue);
@@ -890,7 +902,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
 	 * after the job is armed
 	 */
 	if ((args->flags & MSM_SUBMIT_FENCE_SN_IN) &&
-			idr_find(&queue->fence_idr, args->fence)) {
+			(!args->fence || idr_find(&queue->fence_idr, args->fence))) {
 		spin_unlock(&queue->idr_lock);
 		idr_preload_end();
 		ret = -EINVAL;
drivers/gpu/drm/msm/msm_mdss.c +17 -2
index e8c93731aaa1..4ae6fac20e48 100644
@@ -189,6 +189,7 @@ static int _msm_mdss_irq_domain_add(struct msm_mdss *msm_mdss)
 #define UBWC_2_0 0x20000000
 #define UBWC_3_0 0x30000000
 #define UBWC_4_0 0x40000000
+#define UBWC_4_3 0x40030000
 
 static void msm_mdss_setup_ubwc_dec_20(struct msm_mdss *msm_mdss)
 {
@@ -227,7 +228,10 @@ static void msm_mdss_setup_ubwc_dec_40(struct msm_mdss *msm_mdss)
 		writel_relaxed(1, msm_mdss->mmio + UBWC_CTRL_2);
 		writel_relaxed(0, msm_mdss->mmio + UBWC_PREDICTION_MODE);
 	} else {
-		writel_relaxed(2, msm_mdss->mmio + UBWC_CTRL_2);
+		if (data->ubwc_dec_version == UBWC_4_3)
+			writel_relaxed(3, msm_mdss->mmio + UBWC_CTRL_2);
+		else
+			writel_relaxed(2, msm_mdss->mmio + UBWC_CTRL_2);
 		writel_relaxed(1, msm_mdss->mmio + UBWC_PREDICTION_MODE);
 	}
 }
@@ -271,6 +275,7 @@ static int msm_mdss_enable(struct msm_mdss *msm_mdss)
 		msm_mdss_setup_ubwc_dec_30(msm_mdss);
 		break;
 	case UBWC_4_0:
+	case UBWC_4_3:
 		msm_mdss_setup_ubwc_dec_40(msm_mdss);
 		break;
 	default:
@@ -561,6 +566,16 @@ static const struct msm_mdss_data sm8250_data = {
 	.macrotile_mode = 1,
 };
 
+static const struct msm_mdss_data sm8550_data = {
+	.ubwc_version = UBWC_4_0,
+	.ubwc_dec_version = UBWC_4_3,
+	.ubwc_swizzle = 6,
+	.ubwc_static = 1,
+	/* TODO: highest_bank_bit = 2 for LP_DDR4 */
+	.highest_bank_bit = 3,
+	.macrotile_mode = 1,
+};
+
 static const struct of_device_id mdss_dt_match[] = {
 	{ .compatible = "qcom,mdss" },
 	{ .compatible = "qcom,msm8998-mdss" },
@@ -575,7 +590,7 @@ static const struct of_device_id mdss_dt_match[] = {
 	{ .compatible = "qcom,sm8250-mdss", .data = &sm8250_data },
 	{ .compatible = "qcom,sm8350-mdss", .data = &sm8250_data },
 	{ .compatible = "qcom,sm8450-mdss", .data = &sm8250_data },
-	{ .compatible = "qcom,sm8550-mdss", .data = &sm8250_data },
+	{ .compatible = "qcom,sm8550-mdss", .data = &sm8550_data },
 	{}
 };
 MODULE_DEVICE_TABLE(of, mdss_dt_match);
drivers/gpu/drm/ttm/ttm_bo.c +6 -0
index 1a1cfd675cc4..7139a522b2f3 100644
@@ -517,6 +517,12 @@ static bool ttm_bo_evict_swapout_allowable(struct ttm_buffer_object *bo,
 {
 	bool ret = false;
 
+	if (bo->pin_count) {
+		*locked = false;
+		*busy = false;
+		return false;
+	}
+
 	if (bo->base.resv == ctx->resv) {
 		dma_resv_assert_held(bo->base.resv);
 		if (ctx->allow_res_evict)
drivers/hwmon/aquacomputer_d5next.c +1 -1
index a4fcd4ebf76c..c2b99fd4f436 100644
@@ -969,7 +969,7 @@ static int aqc_read(struct device *dev, enum hwmon_sensor_types type, u32 attr,
 			if (ret < 0)
 				return ret;
 
-			*val = aqc_percent_to_pwm(ret);
+			*val = aqc_percent_to_pwm(*val);
 			break;
 		}
 		break;
drivers/hwmon/k10temp.c +15 -2
index 7b177b9fbb09..a267b11731a8 100644
@@ -77,6 +77,13 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);
 #define ZEN_CUR_TEMP_RANGE_SEL_MASK		BIT(19)
 #define ZEN_CUR_TEMP_TJ_SEL_MASK		GENMASK(17, 16)
 
+/*
+ * AMD's Industrial processor 3255 supports temperature from -40 deg to 105 deg Celsius.
+ * Use the model name to identify 3255 CPUs and set a flag to display negative temperature.
+ * Do not round off to zero for negative Tctl or Tdie values if the flag is set
+ */
+#define AMD_I3255_STR				"3255"
+
 struct k10temp_data {
 	struct pci_dev *pdev;
 	void (*read_htcreg)(struct pci_dev *pdev, u32 *regval);
@@ -86,6 +93,7 @@ struct k10temp_data {
 	u32 show_temp;
 	bool is_zen;
 	u32 ccd_offset;
+	bool disp_negative;
 };
 
 #define TCTL_BIT	0
@@ -204,12 +212,12 @@ static int k10temp_read_temp(struct device *dev, u32 attr, int channel,
 		switch (channel) {
 		case 0:		/* Tctl */
 			*val = get_raw_temp(data);
-			if (*val < 0)
+			if (*val < 0 && !data->disp_negative)
 				*val = 0;
 			break;
 		case 1:		/* Tdie */
 			*val = get_raw_temp(data) - data->temp_offset;
-			if (*val < 0)
+			if (*val < 0 && !data->disp_negative)
 				*val = 0;
 			break;
 		case 2 ... 13:		/* Tccd{1-12} */
@@ -405,6 +413,11 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	data->pdev = pdev;
 	data->show_temp |= BIT(TCTL_BIT);	/* Always show Tctl */
 
+	if (boot_cpu_data.x86 == 0x17 &&
+	    strstr(boot_cpu_data.x86_model_id, AMD_I3255_STR)) {
+		data->disp_negative = true;
+	}
+
 	if (boot_cpu_data.x86 == 0x15 &&
 	    ((boot_cpu_data.x86_model & 0xf0) == 0x60 ||
 	     (boot_cpu_data.x86_model & 0xf0) == 0x70)) {
drivers/hwmon/nct7802.c +1 -1
index a175f8283695..e64c12d90a04 100644
@@ -725,7 +725,7 @@ static umode_t nct7802_temp_is_visible(struct kobject *kobj,
 	if (index >= 38 && index < 46 && !(reg & 0x01))		/* PECI 0 */
 		return 0;
 
-	if (index >= 0x46 && (!(reg & 0x02)))			/* PECI 1 */
+	if (index >= 46 && !(reg & 0x02))			/* PECI 1 */
 		return 0;
 
 	return attr->mode;
drivers/hwmon/pmbus/pmbus_core.c +11 -9
index 9d14954da94f..8e54be26c88f 100644
@@ -2745,9 +2745,8 @@ static const struct pmbus_status_category __maybe_unused pmbus_status_flag_map[]
 	},
 };
 
-static int _pmbus_is_enabled(struct device *dev, u8 page)
+static int _pmbus_is_enabled(struct i2c_client *client, u8 page)
 {
-	struct i2c_client *client = to_i2c_client(dev->parent);
 	int ret;
 
 	ret = _pmbus_read_byte_data(client, page, PMBUS_OPERATION);
@@ -2758,17 +2757,16 @@ static int _pmbus_is_enabled(struct device *dev, u8 page)
 	return !!(ret & PB_OPERATION_CONTROL_ON);
 }
 
-static int __maybe_unused pmbus_is_enabled(struct device *dev, u8 page)
+static int __maybe_unused pmbus_is_enabled(struct i2c_client *client, u8 page)
 {
-	struct i2c_client *client = to_i2c_client(dev->parent);
 	struct pmbus_data *data = i2c_get_clientdata(client);
 	int ret;
 
 	mutex_lock(&data->update_lock);
-	ret = _pmbus_is_enabled(dev, page);
+	ret = _pmbus_is_enabled(client, page);
 	mutex_unlock(&data->update_lock);
 
-	return !!(ret & PB_OPERATION_CONTROL_ON);
+	return ret;
 }
 
 #define to_dev_attr(_dev_attr) \
@@ -2844,7 +2842,7 @@ static int _pmbus_get_flags(struct pmbus_data *data, u8 page, unsigned int *flag
 	if (status < 0)
 		return status;
 
-	if (_pmbus_is_enabled(dev, page)) {
+	if (_pmbus_is_enabled(client, page)) {
 		if (status & PB_STATUS_OFF) {
 			*flags |= REGULATOR_ERROR_FAIL;
 			*event |= REGULATOR_EVENT_FAIL;
@@ -2898,7 +2896,10 @@ static int __maybe_unused pmbus_get_flags(struct pmbus_data *data, u8 page, unsi
 #if IS_ENABLED(CONFIG_REGULATOR)
 static int pmbus_regulator_is_enabled(struct regulator_dev *rdev)
 {
-	return pmbus_is_enabled(rdev_get_dev(rdev), rdev_get_id(rdev));
+	struct device *dev = rdev_get_dev(rdev);
+	struct i2c_client *client = to_i2c_client(dev->parent);
+
+	return pmbus_is_enabled(client, rdev_get_id(rdev));
 }
 
 static int _pmbus_regulator_on_off(struct regulator_dev *rdev, bool enable)
@@ -2945,6 +2946,7 @@ static int pmbus_regulator_get_status(struct regulator_dev *rdev)
 	struct pmbus_data *data = i2c_get_clientdata(client);
 	u8 page = rdev_get_id(rdev);
 	int status, ret;
+	int event;
 
 	mutex_lock(&data->update_lock);
 	status = pmbus_get_status(client, page, PMBUS_STATUS_WORD);
@@ -2964,7 +2966,7 @@ static int pmbus_regulator_get_status(struct regulator_dev *rdev)
 		goto unlock;
 	}
 
-	ret = pmbus_regulator_get_error_flags(rdev, &status);
+	ret = _pmbus_get_flags(data, rdev_get_id(rdev), &status, &event, false);
 	if (ret)
 		goto unlock;
 
drivers/i2c/busses/i2c-ibm_iic.c +1 -3
index eeb80e34f9ad..de3b609515e0 100644
@@ -694,10 +694,8 @@ static int iic_probe(struct platform_device *ofdev)
 	int ret;
 
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
-	if (!dev) {
-		dev_err(&ofdev->dev, "failed to allocate device data\n");
+	if (!dev)
 		return -ENOMEM;
-	}
 
 	platform_set_drvdata(ofdev, dev);
 
drivers/i2c/busses/i2c-nomadik.c +11 -31

83 lines not on this page · raw message

drivers/i2c/busses/i2c-sh7760.c +1 -2
index 319d1fa617c8..051b904cb35f 100644
@@ -443,9 +443,8 @@ static int sh7760_i2c_probe(struct platform_device *pdev)
 		goto out0;
 	}
 
-	id = kzalloc(sizeof(struct cami2c), GFP_KERNEL);
+	id = kzalloc(sizeof(*id), GFP_KERNEL);
 	if (!id) {
-		dev_err(&pdev->dev, "no mem for private data\n");
 		ret = -ENOMEM;
 		goto out0;
 	}
drivers/i2c/busses/i2c-tiny-usb.c +1 -3
index 7279ca0eaa2d..d1fa9ff5aeab 100644
@@ -226,10 +226,8 @@ static int i2c_tiny_usb_probe(struct usb_interface *interface,
 
 	/* allocate memory for our device state and initialize it */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
-	if (dev == NULL) {
-		dev_err(&interface->dev, "Out of memory\n");
+	if (!dev)
 		goto error;
-	}
 
 	dev->usb_dev = usb_get_dev(interface_to_usbdev(interface));
 	dev->interface = interface;
drivers/infiniband/core/cma.c +2 -0
index 6b3f4384e46a..a60e587aea81 100644
@@ -4062,6 +4062,8 @@ static int resolve_prepare_src(struct rdma_id_private *id_priv,
 					   RDMA_CM_ADDR_QUERY)))
 			return -EINVAL;
 
+	} else {
+		memcpy(cma_dst_addr(id_priv), dst_addr, rdma_addr_size(dst_addr));
 	}
 
 	if (cma_family(id_priv) != dst_addr->sa_family) {
drivers/infiniband/hw/bnxt_re/ib_verbs.c +12 -0
index 952811c40c54..ebe6852c40e8 100644
@@ -797,7 +797,10 @@ static int bnxt_re_destroy_gsi_sqp(struct bnxt_re_qp *qp)
 int bnxt_re_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata)
 {
 	struct bnxt_re_qp *qp = container_of(ib_qp, struct bnxt_re_qp, ib_qp);
+	struct bnxt_qplib_qp *qplib_qp = &qp->qplib_qp;
 	struct bnxt_re_dev *rdev = qp->rdev;
+	struct bnxt_qplib_nq *scq_nq = NULL;
+	struct bnxt_qplib_nq *rcq_nq = NULL;
 	unsigned int flags;
 	int rc;
 
@@ -831,6 +834,15 @@ int bnxt_re_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata)
 	ib_umem_release(qp->rumem);
 	ib_umem_release(qp->sumem);
 
+	/* Flush all the entries of notification queue associated with
+	 * given qp.
+	 */
+	scq_nq = qplib_qp->scq->nq;
+	rcq_nq = qplib_qp->rcq->nq;
+	bnxt_re_synchronize_nq(scq_nq);
+	if (scq_nq != rcq_nq)
+		bnxt_re_synchronize_nq(rcq_nq);
+
 	return 0;
 }
 
drivers/infiniband/hw/bnxt_re/qplib_fp.c +23 -5
index 55f092c2c8a8..b34cc500f51f 100644
@@ -381,6 +381,24 @@ static void bnxt_qplib_service_nq(struct tasklet_struct *t)
 	spin_unlock_bh(&hwq->lock);
 }
 
+/* bnxt_re_synchronize_nq - self polling notification queue.
+ * @nq      -     notification queue pointer
+ *
+ * This function will start polling entries of a given notification queue
+ * for all pending  entries.
+ * This function is useful to synchronize notification entries while resources
+ * are going away.
+ */
+
+void bnxt_re_synchronize_nq(struct bnxt_qplib_nq *nq)
+{
+	int budget = nq->budget;
+
+	nq->budget = nq->hwq.max_elements;
+	bnxt_qplib_service_nq(&nq->nq_tasklet);
+	nq->budget = budget;
+}
+
 static irqreturn_t bnxt_qplib_nq_irq(int irq, void *dev_instance)
 {
 	struct bnxt_qplib_nq *nq = dev_instance;
@@ -402,19 +420,19 @@ void bnxt_qplib_nq_stop_irq(struct bnxt_qplib_nq *nq, bool kill)
 	if (!nq->requested)
 		return;
 
-	tasklet_disable(&nq->nq_tasklet);
+	nq->requested = false;
 	/* Mask h/w interrupt */
 	bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, false);
 	/* Sync with last running IRQ handler */
 	synchronize_irq(nq->msix_vec);
-	if (kill)
-		tasklet_kill(&nq->nq_tasklet);
-
 	irq_set_affinity_hint(nq->msix_vec, NULL);
 	free_irq(nq->msix_vec, nq);
 	kfree(nq->name);
 	nq->name = NULL;
-	nq->requested = false;
+
+	if (kill)
+		tasklet_kill(&nq->nq_tasklet);
+	tasklet_disable(&nq->nq_tasklet);
 }
 
 void bnxt_qplib_disable_nq(struct bnxt_qplib_nq *nq)
drivers/infiniband/hw/bnxt_re/qplib_fp.h +1 -0
index a42820821c47..404b851091ca 100644
@@ -553,6 +553,7 @@ int bnxt_qplib_process_flush_list(struct bnxt_qplib_cq *cq,
 				  struct bnxt_qplib_cqe *cqe,
 				  int num_cqes);
 void bnxt_qplib_flush_cqn_wq(struct bnxt_qplib_qp *qp);
+void bnxt_re_synchronize_nq(struct bnxt_qplib_nq *nq);
 
 static inline void *bnxt_qplib_get_swqe(struct bnxt_qplib_q *que, u32 *swq_idx)
 {
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +267 -86

337 lines not on this page · raw message

drivers/infiniband/hw/bnxt_re/qplib_rcfw.h +26 -0
index 92f7a25533d3..4608c0ef07a8 100644

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

drivers/infiniband/hw/irdma/ctrl.c +19 -12
index d88c9184007e..45e3344daa04 100644

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

drivers/infiniband/hw/irdma/defs.h +22 -24

46 lines not on this page · raw message

drivers/infiniband/hw/irdma/hw.c +2 -1
index 795f7fd4f257..457368e324e1 100644

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

drivers/infiniband/hw/irdma/main.h +1 -1
index def6dd58dcd4..2323962cdeac 100644

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

drivers/infiniband/hw/irdma/puda.c +6 -0
index 4ec9639f1bdb..562531712ea4 100644

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

drivers/infiniband/hw/irdma/type.h +2 -0
index 5ee68604e59f..a20709577ab0 100644

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

drivers/infiniband/hw/irdma/uk.c +4 -1
index dd428d915c17..280d633d4ec4 100644

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

drivers/infiniband/hw/irdma/utils.c +4 -4
index 71e1c5d34709..eb083f70b09f 100644

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

drivers/infiniband/hw/mlx4/qp.c +9 -9
index 456656617c33..9d08aa99f3cb 100644

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

drivers/infiniband/hw/mthca/mthca_qp.c +1 -1
index 69bba0ef4a5d..53f43649f7d0 100644

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

drivers/iommu/iommufd/device.c +3 -9
index 29d05663d4d1..ed2937a4e196 100644

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

drivers/iommu/iommufd/iommufd_private.h +13 -2
index b38e67d1988b..f9790983699c 100644

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

drivers/iommu/iommufd/main.c +59 -19

78 lines not on this page · raw message

drivers/iommu/iommufd/pages.c +1 -1
index 3c47846cc5ef..d80669c4caf4 100644

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

drivers/irqchip/irq-bcm6345-l1.c +5 -9
index fa113cb2529a..6341c0167c4a 100644

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

drivers/irqchip/irq-gic-v3-its.c +46 -29

75 lines not on this page · raw message

drivers/md/dm-cache-policy-smq.c +18 -10
index 493a8715dc8f..8bd2ad743d9a 100644

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

drivers/md/dm-raid.c +9 -11
index c8821fcb8299..de3dd6e6bb89 100644

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

drivers/md/md.c +2 -0
index 18384251399a..32d7ba8069ae 100644

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

drivers/media/i2c/tc358746.c +2 -2
index ec1a193ba161..25fbce5cabda 100644

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

drivers/media/platform/amphion/vpu_core.c +2 -2
index de23627a119a..82bf8b3be66a 100644

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

drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c +429 -431

860 lines not on this page · raw message

drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c +1 -3
index 869068fac5e2..baa7be58ce69 100644

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

drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c +1 -3
index 71e85b4bbf12..244018365b6f 100644

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

drivers/net/bonding/bond_main.c +5 -0
index 091e035c76a6..1a0776f9b008 100644

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

drivers/net/can/usb/gs_usb.c +2 -0
index f418066569fc..bd9eb066ecf1 100644

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

drivers/net/dsa/qca/qca8k-8xxx.c +5 -2
index d775a14784f7..613af28663d7 100644

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

drivers/net/dsa/qca/qca8k-common.c +16 -3
index 96773e432558..8536c4f6363e 100644

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

drivers/net/ethernet/atheros/atl1e/atl1e_main.c +5 -2
index 5db0f3495a32..5935be190b9e 100644

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

drivers/net/ethernet/atheros/atlx/atl1.c +5 -2
index c8444bcdf527..02aa6fd8ebc2 100644

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

drivers/net/ethernet/emulex/benet/be_main.c +2 -1
index 0defd519ba62..7fa057d379c1 100644

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

drivers/net/ethernet/freescale/fec_main.c +14 -4
index 7659888a9691..92410f30ad24 100644

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

drivers/net/ethernet/hisilicon/hns3/hnae3.h +2 -1
index 9c9c72dc57e0..06f29e80104c 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c +18 -3
index b85c412683dd..16ba98ff2c9b 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c +14 -3
index c4aded65e848..09362823140d 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +1 -2
index 233c132dc513..409db2e70965 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c +2 -1
index 922c0da3660c..150f146fa24f 100644

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

drivers/net/ethernet/intel/i40e/i40e_debugfs.c +1 -1
index 9954493cd448..62497f5565c5 100644

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

drivers/net/ethernet/intel/iavf/iavf_main.c +6 -5
index ba96312feb50..e48810e0627d 100644

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

drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c +14 -12
index ead6d50fc0ad..8c6e13f87b7d 100644

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

drivers/net/ethernet/intel/igc/igc_main.c +28 -12
index 496a4eb687b0..3ccf2fedc5af 100644

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

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +1 -1
index 1726297f2e0d..8eb9839a3ca6 100644

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

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c +42 -1

43 lines not on this page · raw message

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h +4 -4
index a1c3d987b804..57a09328d46b 100644

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

drivers/net/ethernet/realtek/r8169_main.c +26 -1
index b69122686407..31fdecb414b6 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +3 -1
index df41eac54058..03ceb6a94073 100644

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

drivers/net/ipa/ipa_table.c +11 -9
index f0529c31d0b6..7b637bb8b41c 100644

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

drivers/net/macvlan.c +1 -0
index 4a53debf9d7c..ed908165a8b4 100644

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

drivers/net/phy/marvell10g.c +7 -0
index 55d9d7acc32e..d4bb90d76881 100644

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

drivers/net/team/team.c +9 -0
index 555b0b1e9a78..d3dc22509ea5 100644

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

drivers/net/virtio_net.c +2 -2
index 486b5849033d..2336a0e4befa 100644

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

drivers/net/vxlan/vxlan_core.c +107 -58

165 lines not on this page · raw message

drivers/pci/controller/pcie-rockchip-ep.c +76 -80

156 lines not on this page · raw message

drivers/pci/controller/pcie-rockchip.h +25 -15
index 8e92dc3339ec..fe0333778fd9 100644

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

drivers/pci/pcie/aspm.c +37 -18

55 lines not on this page · raw message

drivers/phy/hisilicon/phy-hisi-inno-usb2.c +1 -1
index b133ae06757a..a922fb11a109 100644

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

drivers/phy/mediatek/phy-mtk-dp.c +1 -1
index 232fd3f1ff1b..d7024a144335 100644

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

drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c +1 -1
index 8aa7251de4a9..bbfe11d6a69d 100644

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

drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c +48 -24

72 lines not on this page · raw message

drivers/platform/x86/amd/pmf/acpi.c +22 -1
index 081e84e116e7..3fc5e4547d9f 100644

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

drivers/platform/x86/amd/pmf/core.c +7 -2
index 7780705917b7..a02232516127 100644

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

drivers/platform/x86/amd/pmf/pmf.h +16 -0
index 06c30cdc0573..deba88e6e4c8 100644

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

drivers/platform/x86/amd/pmf/sps.c +70 -4

74 lines not on this page · raw message

drivers/platform/x86/msi-laptop.c +4 -4
index 6b18ec543ac3..f4c6c36e05a5 100644

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

drivers/s390/block/dasd_3990_erp.c +1 -1
index 9fd36c468706..f0f210627cad 100644

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

drivers/s390/block/dasd_ioctl.c +1 -0
index 8fca725b3dae..87890b6efcdc 100644

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

drivers/soundwire/amd_manager.c +2 -2
index 9fb7f91ca182..21c638e38c51 100644

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

drivers/soundwire/bus.c +4 -4
index 1ea6a64f8c4a..66e5dba919fa 100644

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

drivers/soundwire/qcom.c +1 -1
index e3ef5ebae6b7..027979c66486 100644

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

drivers/staging/ks7010/ks_wlan_net.c +4 -2
index e03c87f0bfe7..0fb97a79ad0b 100644

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

drivers/staging/media/atomisp/Kconfig +1 -0
index c9bff98e5309..e9b168ba97bf 100644

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

drivers/staging/rtl8712/rtl871x_xmit.c +34 -9

43 lines not on this page · raw message

drivers/staging/rtl8712/xmit_linux.c +6 -0
index 132afbf49dde..ceb6b590b310 100644

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

drivers/thermal/thermal_of.c +6 -21
index 6fb14e521197..bc07ae1c284c 100644

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

drivers/tty/n_gsm.c +3 -1
index b411a26cc092..1cdefac4dd1b 100644

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

drivers/tty/serial/8250/8250_dwlib.c +4 -2
index 75f32f054ebb..84843e204a5e 100644

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

drivers/tty/serial/qcom_geni_serial.c +0 -7
index 8582479f0211..22fe5a8ce939 100644

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

drivers/tty/serial/sh-sci.c +1 -1
index 7c9457962a3d..8b7a42e05d6d 100644

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

drivers/tty/serial/sifive.c +1 -1
index 1f565a216e74..a19db49327e2 100644

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

drivers/tty/tty_io.c +1 -1
index c84be40fb8df..429beccdfeb1 100644

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

drivers/usb/cdns3/cdns3-gadget.c +3 -1
index 1dcadef933e3..69a44bd7e5d0 100644

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

drivers/usb/core/quirks.c +4 -0
index 934b3d997702..15e9bd180a1d 100644

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

drivers/usb/dwc3/core.c +2 -18
index d68958e151a7..99963e724b71 100644

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

drivers/usb/dwc3/core.h +0 -3
index 1f043c31a096..59a31cac3082 100644

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

drivers/usb/dwc3/dwc3-pci.c +4 -2
index 44a04c9b2073..6604845c397c 100644

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

drivers/usb/gadget/composite.c +4 -0
index 1b3489149e5e..dd9b90481b4c 100644

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

drivers/usb/gadget/legacy/raw_gadget.c +6 -4
index 2acece16b890..e549022642e5 100644

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

drivers/usb/gadget/udc/core.c +0 -1
index 83fd1de14784..0068d0c44865 100644

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

drivers/usb/gadget/udc/tegra-xudc.c +4 -4
index 34e9c1df54c7..a0c11f51873e 100644

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

drivers/usb/host/ohci-at91.c +7 -1
index 533537ef3c21..360680769494 100644

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

drivers/usb/host/xhci-mtk.c +1 -0
index 90cf40d6d0c3..b60521e1a9a6 100644

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

drivers/usb/host/xhci-pci.c +1 -3
index a410162e15df..db9826c38b20 100644

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

drivers/usb/host/xhci-ring.c +1 -24
index 2bc82b3a2f98..ad70f6359309 100644

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

drivers/usb/host/xhci-tegra.c +4 -4
index 8a9c7deb7686..d28fa892c286 100644

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

drivers/usb/misc/ehset.c +4 -4
index 986d6589f053..36b6e9fa7ffb 100644

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

drivers/usb/serial/option.c +6 -0
index 288a96a74266..8ac98e60fff5 100644

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

drivers/usb/serial/usb-serial-simple.c +40 -33

73 lines not on this page · raw message

drivers/usb/typec/class.c +8 -7
index 349cc2030c90..5c6469548b20 100644

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

drivers/xen/grant-table.c +29 -11
index e1ec725c2819..f13c3b76ad1e 100644

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

drivers/xen/xenbus/xenbus_probe.c +3 -0
index 58b732dcbfb8..639bf628389b 100644

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

fs/9p/fid.h +3 -3
index 0c51889a60b3..29281b7c3887 100644

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

fs/9p/v9fs.h +1 -1
index 06a2514f0d88..698c43dd5dc8 100644

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

fs/9p/vfs_dir.c +3 -2
index 45b684b7d8d7..4102759a5cb5 100644

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

fs/9p/vfs_file.c +1 -4
index 6c31b8c8112d..99cb4f04cbdb 100644

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

fs/btrfs/block-rsv.c +5 -0
index ac18c43fadad..8e21c2faff62 100644

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

fs/btrfs/disk-io.c +6 -1
index 795b30913c54..9f056ad41df0 100644

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

fs/btrfs/extent_io.c +11 -10
index a37a6587efaf..82b9779deaa8 100644

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

fs/btrfs/qgroup.c +15 -3
index 360bf2522a87..2637d6b157ff 100644

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

fs/btrfs/transaction.c +8 -2
index 8b6a99b8d7f6..eaf7511bbc37 100644

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

fs/btrfs/zoned.c +3 -0
index 39828af4a4e8..1c56e056afcc 100644

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

fs/ceph/metric.c +1 -1
index c47347d2e84e..9560b7bc6009 100644

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

fs/ext4/mballoc.c +166 -28

194 lines not on this page · raw message

fs/file.c +2 -4
index 7893ea161d77..35c62b54c9d6 100644

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

fs/jbd2/checkpoint.c +17 -15
index 25e3c20eb19f..c4e0da6db719 100644

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

fs/nfsd/nfs4state.c +0 -2
index 6e61fa3acaf1..3aefbad4cc09 100644

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

fs/proc/vmcore.c +1 -1
index 03f5963914a1..a0e1463c3fc4 100644

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

fs/smb/client/sess.c +3 -1
index 335c078c42fb..c57ca2050b73 100644

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

fs/smb/server/ksmbd_netlink.h +2 -1
index fb8b2d566efb..b7521e41402e 100644

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

fs/smb/server/smb2pdu.c +16 -11
index 1cc336f51285..d7e519648560 100644

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

fs/smb/server/vfs.c +33 -25

58 lines not on this page · raw message

fs/smb/server/vfs.h +2 -2
index 8c0931d4d531..9df4a2a6776b 100644

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

include/linux/dma-fence.h +1 -1
index d54b595a0fe0..0d678e9a7b24 100644

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

include/linux/mm.h +23 -6
index 9e10485f37e7..d1fd7c544dcd 100644

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

include/linux/mm_types.h +28 -0
index de10fc797c8e..5e74ce4a28cd 100644

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

include/linux/mmap_lock.h +8 -2
index aab8f1b28d26..e05e167dbd16 100644

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

include/net/ipv6.h +2 -6
index 7332296eca44..2acc4c808d45 100644

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

include/net/vxlan.h +9 -4
index 20bd7d893e10..b57567296bc6 100644

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

include/uapi/linux/blkzoned.h +5 -5
index b80fcc9ea525..f85743ef6e7d 100644

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

io_uring/io_uring.c +18 -7
index d6667b435dd3..2989b81cca82 100644

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

kernel/locking/rtmutex.c +114 -56

170 lines not on this page · raw message

kernel/locking/rtmutex_api.c +1 -1
index cb9fdff76a8a..a6974d044593 100644

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

kernel/locking/rtmutex_common.h +34 -13

47 lines not on this page · raw message

kernel/locking/ww_mutex.h +6 -6
index 56f139201f24..3ad2cc4823e5 100644

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

kernel/signal.c +4 -0
index 2547fa73bde5..1b39cba7dfd3 100644

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

kernel/trace/ring_buffer.c +12 -10
index 14d8001140c8..99634b29a8b8 100644

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

kernel/trace/trace_events.c +4 -10
index 57e539d47989..32f39eabc071 100644

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

lib/test_maple_tree.c +84 -79

163 lines not on this page · raw message

mm/memory-failure.c +1 -1
index 5b663eca1f29..47e2b545ffcc 100644

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

mm/mempolicy.c +14 -1
index 1756389a0609..d524bf8d0e90 100644

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

mm/mmap.c +1 -0
index 5c5a917b261e..224a9646a7db 100644

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

net/ceph/messenger.c +1 -0
index cd7b0bf5369e..5eb4898cccd4 100644

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

net/ipv6/addrconf.c +10 -4
index 5affca8e2f53..c63f1d62d60a 100644

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

net/mptcp/protocol.c +1 -2
index b069826869d0..f2eeb8a850af 100644

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

net/netfilter/nf_tables_api.c +3 -2
index ccf0b3d80fd9..da00c411a9cd 100644

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

net/netfilter/nft_immediate.c +18 -9
index 407d7197f75b..fccb3cf7749c 100644

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

net/netfilter/nft_set_rbtree.c +14 -6
index 5c05c9b990fb..8d73fffd2d09 100644

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

net/sched/sch_mqprio.c +14 -0
index ab69ff7577fc..793009f445c0 100644

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

net/tipc/crypto.c +2 -1
index 577fa5af33ec..302fd749c424 100644

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

net/tipc/node.c +1 -1
index 5e000fde8067..a9c5b6594889 100644

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

sound/pci/hda/patch_realtek.c +2 -0
index 169572c8ed40..bcd548e247fc 100644

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

sound/soc/codecs/wm8904.c +3 -0
index 791d8738d1c0..a05d4dafd3d7 100644

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

sound/soc/fsl/fsl_spdif.c +2 -0
index 015c3708aa04..3fd26f2cdd60 100644

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

tools/net/ynl/lib/ynl.py +2 -2
index 3144f33196be..35462c7ce48b 100644

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

tools/testing/radix-tree/linux/init.h +1 -0
index 1bb0afc21309..81563c3dfce7 100644

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

tools/testing/radix-tree/maple.c +74 -73

147 lines not on this page · raw message

tools/testing/selftests/net/mptcp/mptcp_join.sh +1 -3
index 0ae8cafde439..a40c35c90c52 100755

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

virt/kvm/kvm_main.c +24 -0
index 65f94f592ff8..1f40d6bc17bc 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.