Linux 6.4.8
Greg Kroah-Hartman
maintainerI'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
Greg Kroah-Hartman
maintainerDocumentation/ABI/testing/sysfs-module +11 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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, boif (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
@@ -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
@@ -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
@@ -89,4 +89,5 @@ void dc_dmub_setup_subvp_dmub_command(struct dc *dc, struct dc_state *context, bvoid 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
@@ -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
@@ -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
@@ -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
@@ -301,7 +301,12 @@ static void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *ovoid 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
@@ -103,6 +103,7 @@ static void dcn31_program_det_size(struct hubbub *hubbub, int hubp_inst, unsignedefault :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
@@ -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, strucelse 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, strucif (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
@@ -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
@@ -47,6 +47,9 @@ void dcn31_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_paramsvoid 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
@@ -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
@@ -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
@@ -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 *cstruct 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
@@ -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
@@ -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
@@ -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
@@ -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 (<_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 (<_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 0x40030000static 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 *flagif (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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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/iommu/iommufd/iommufd_private.h +13 -2
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/irqchip/irq-gic-v3-its.c +46 -29
75 lines not on this page · raw message
drivers/media/platform/amphion/vpu_core.c +2 -2
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
Lines of this file are not shown. View the raw message.
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c +1 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/atheros/atlx/atl1.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/emulex/benet/be_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/fec_main.c +14 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hnae3.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c +18 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c +14 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_debugfs.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/iavf/iavf_main.c +6 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c +14 -12
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_main.c +28 -12
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +1 -1
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
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +26 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +3 -1
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
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
Lines of this file are not shown. View the raw message.
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c +1 -1
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/sps.c +70 -4
74 lines not on this page · raw message
drivers/staging/rtl8712/rtl871x_xmit.c +34 -9
43 lines not on this page · raw message
drivers/usb/serial/usb-serial-simple.c +40 -33
73 lines not on this page · raw message
fs/ext4/mballoc.c +166 -28
194 lines not on this page · raw message
fs/smb/server/vfs.c +33 -25
58 lines not on this page · raw message
kernel/locking/rtmutex.c +114 -56
170 lines not on this page · raw message
kernel/locking/rtmutex_common.h +34 -13
47 lines not on this page · raw message
lib/test_maple_tree.c +84 -79
163 lines not on this page · 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
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.