Linux 6.11.6
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.11.6 kernel.
All users of the 6.11 kernel series must upgrade.
The updated 6.11.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.11.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml | 18 Makefile | 2 arch/arm/boot/dts/broadcom/bcm2837-rpi-cm3-io3.dts | 2 arch/arm64/Makefile | 2 arch/arm64/kvm/arm.c | 3 arch/arm64/kvm/sys_regs.c | 2 arch/arm64/kvm/vgic/vgic-init.c | 28 + arch/arm64/net/bpf_jit_comp.c | 12 arch/loongarch/include/asm/bootinfo.h | 4 arch/loongarch/include/asm/kasan.h | 2 arch/loongarch/kernel/process.c | 16 arch/loongarch/kernel/setup.c | 3 arch/loongarch/kernel/traps.c | 5 arch/riscv/net/bpf_jit_comp64.c | 8 arch/s390/include/asm/perf_event.h | 1 arch/s390/pci/pci_event.c | 17 arch/x86/Kconfig | 1 arch/x86/events/rapl.c | 47 ++ arch/x86/include/asm/runtime-const.h | 4 arch/x86/include/asm/uaccess_64.h | 45 +- arch/x86/kernel/amd_nb.c | 6 arch/x86/kernel/cpu/common.c | 10 arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 23 - arch/x86/kernel/vmlinux.lds.S | 1 arch/x86/kvm/svm/nested.c | 6 arch/x86/lib/getuser.S | 9 arch/x86/virt/svm/sev.c | 2 block/elevator.c | 17 drivers/accel/qaic/qaic_control.c | 2 drivers/accel/qaic/qaic_data.c | 6 drivers/acpi/button.c | 11 drivers/acpi/cppc_acpi.c | 22 - drivers/acpi/prmt.c | 29 + drivers/acpi/resource.c | 7 drivers/ata/libata-eh.c | 1 drivers/cdrom/cdrom.c | 2 drivers/clk/rockchip/clk.c | 2 drivers/cpufreq/amd-pstate.c | 10 drivers/firewire/core-topology.c | 2 drivers/firmware/arm_scmi/driver.c | 4 drivers/firmware/arm_scmi/mailbox.c | 32 + drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 15 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 5 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 13 drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 2 drivers/gpu/drm/bridge/aux-bridge.c | 3 drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 16 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 20 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 68 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 7 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 5 drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 19 drivers/gpu/drm/msm/dsi/dsi_host.c | 4 drivers/gpu/drm/panel/panel-himax-hx83102.c | 12 drivers/gpu/drm/vboxvideo/hgsmi_base.c | 10 drivers/gpu/drm/vboxvideo/vboxvideo.h | 4 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 4 drivers/gpu/drm/xe/xe_device.c | 4 drivers/gpu/drm/xe/xe_exec.c | 12 drivers/gpu/drm/xe/xe_gpu_scheduler.h | 2 drivers/gpu/drm/xe/xe_gt_mcr.c | 2 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 29 - drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h | 1 drivers/gpu/drm/xe/xe_guc_submit.c | 7 drivers/gpu/drm/xe/xe_vm.c | 8 drivers/hwmon/jc42.c | 2 drivers/iio/accel/bma400_core.c | 3 drivers/iio/adc/Kconfig | 2 drivers/iio/frequency/Kconfig | 33 - drivers/infiniband/core/addr.c | 2 drivers/infiniband/hw/bnxt_re/hw_counters.c | 2 drivers/infiniband/hw/bnxt_re/ib_verbs.h | 1 drivers/infiniband/hw/bnxt_re/main.c | 29 - drivers/infiniband/hw/bnxt_re/qplib_fp.c | 16 drivers/infiniband/hw/bnxt_re/qplib_fp.h | 3 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 2 drivers/infiniband/hw/bnxt_re/qplib_res.c | 21 - drivers/infiniband/hw/bnxt_re/qplib_sp.c | 11 drivers/infiniband/hw/bnxt_re/qplib_sp.h | 1 drivers/infiniband/hw/cxgb4/cm.c | 9 drivers/infiniband/hw/irdma/cm.c | 2 drivers/infiniband/ulp/srpt/ib_srpt.c | 80 +++ drivers/irqchip/irq-renesas-rzg2l.c | 16 drivers/irqchip/irq-riscv-imsic-platform.c | 2 drivers/md/raid10.c | 7 drivers/net/dsa/microchip/ksz_common.c | 21 - drivers/net/dsa/mv88e6xxx/chip.c | 2 drivers/net/dsa/mv88e6xxx/chip.h | 6 drivers/net/dsa/mv88e6xxx/port.c | 1 drivers/net/dsa/mv88e6xxx/ptp.c | 108 +++-- drivers/net/dsa/vitesse-vsc73xx-core.c | 1 drivers/net/ethernet/aeroflex/greth.c | 3 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 1 drivers/net/ethernet/broadcom/bcmsysport.c | 1 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 22 - drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 70 ++- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h | 12 drivers/net/ethernet/emulex/benet/be_main.c | 10 drivers/net/ethernet/freescale/fman/mac.c | 68 ++- drivers/net/ethernet/freescale/fman/mac.h | 6 drivers/net/ethernet/i825xx/sun3_82586.c | 1 drivers/net/ethernet/marvell/octeon_ep/octep_rx.c | 82 ++-- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 8 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 drivers/net/ethernet/mellanox/mlx5/core/eq.c | 6 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 5 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 9 drivers/net/ethernet/microchip/sparx5/sparx5_mirror.c | 12 drivers/net/ethernet/realtek/r8169_main.c | 4 drivers/net/ethernet/renesas/ravb_main.c | 25 - drivers/net/ethernet/renesas/rtsn.c | 1 drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c | 14 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 drivers/net/hyperv/netvsc_drv.c | 30 + drivers/net/macsec.c | 18 drivers/net/netdevsim/dev.c | 15 drivers/net/phy/dp83822.c | 4 drivers/net/plip/plip.c | 2 drivers/net/pse-pd/pse_core.c | 4 drivers/net/usb/usbnet.c | 4 drivers/net/virtio_net.c | 2 drivers/net/vmxnet3/vmxnet3_xdp.c | 2 drivers/net/wwan/wwan_core.c | 2 drivers/nvme/host/pci.c | 19 drivers/pci/probe.c | 2 drivers/pci/pwrctl/pci-pwrctl-pwrseq.c | 58 ++ drivers/platform/x86/dell/dell-wmi-base.c | 9 drivers/platform/x86/dell/dell-wmi-sysman/sysman.c | 1 drivers/platform/x86/intel/pmc/core_ssram.c | 4 drivers/powercap/dtpm_devfreq.c | 2 drivers/reset/starfive/reset-starfive-jh71x0.c | 3 drivers/soundwire/intel_ace2x.c | 19 drivers/target/target_core_device.c | 2 drivers/target/target_core_user.c | 2 drivers/usb/host/xhci-dbgcap.h | 2 drivers/usb/host/xhci-dbgtty.c | 73 ++- drivers/usb/typec/class.c | 3 drivers/video/fbdev/Kconfig | 1 fs/9p/v9fs.h | 34 + fs/9p/v9fs_vfs.h | 2 fs/9p/vfs_inode.c | 129 ++++-- fs/9p/vfs_inode_dotl.c | 112 ++++- fs/9p/vfs_super.c | 2 fs/backing-file.c | 8 fs/btrfs/block-group.c | 2 fs/btrfs/dir-item.c | 4 fs/btrfs/disk-io.c | 2 fs/btrfs/extent_map.c | 31 - fs/btrfs/inode.c | 7 fs/btrfs/qgroup.c | 2 fs/btrfs/qgroup.h | 2 fs/btrfs/super.c | 12 fs/fuse/passthrough.c | 8 fs/jfs/jfs_dmap.c | 2 fs/namespace.c | 4 fs/nfsd/nfs4state.c | 50 ++ fs/nfsd/state.h | 2 fs/nilfs2/page.c | 6 fs/notify/fsnotify.c | 21 - fs/notify/inotify/inotify_user.c | 2 fs/notify/mark.c | 8 fs/open.c | 2 fs/overlayfs/file.c | 9 fs/select.c | 4 fs/smb/client/cifsfs.c | 2 fs/smb/client/fs_context.c | 7 fs/smb/client/reparse.c | 23 + fs/smb/client/smb2ops.c | 3 fs/smb/client/smb2pdu.c | 9 fs/udf/balloc.c | 38 + fs/udf/directory.c | 23 - fs/udf/inode.c | 202 ++++++---- fs/udf/partition.c | 6 fs/udf/super.c | 3 fs/udf/truncate.c | 43 +- fs/udf/udfdecl.h | 15 fs/xfs/scrub/repair.c | 8 include/linux/backing-file.h | 2 include/linux/bpf.h | 14 include/linux/bpf_types.h | 1 include/linux/huge_mm.h | 18 include/linux/netdevice.h | 12 include/linux/shmem_fs.h | 11 include/linux/task_work.h | 5 include/linux/uaccess.h | 7 include/net/bluetooth/bluetooth.h | 1 include/net/genetlink.h | 3 include/net/sock.h | 5 include/net/xfrm.h | 28 - include/uapi/linux/bpf.h | 16 include/uapi/sound/asoc.h | 2 kernel/bpf/btf.c | 15 kernel/bpf/devmap.c | 11 kernel/bpf/helpers.c | 10 kernel/bpf/inode.c | 5 kernel/bpf/log.c | 3 kernel/bpf/ringbuf.c | 14 kernel/bpf/syscall.c | 31 + kernel/bpf/task_iter.c | 2 kernel/bpf/verifier.c | 107 ++--- kernel/sched/core.c | 4 kernel/task_work.c | 15 kernel/time/posix-clock.c | 6 kernel/trace/bpf_trace.c | 42 -- kernel/trace/fgraph.c | 15 kernel/trace/ring_buffer.c | 44 +- kernel/trace/trace_eprobe.c | 7 kernel/trace/trace_fprobe.c | 6 kernel/trace/trace_kprobe.c | 6 kernel/trace/trace_probe.c | 2 kernel/trace/trace_uprobe.c | 13 lib/Kconfig.debug | 2 lib/objpool.c | 2 lib/strncpy_from_user.c | 9 lib/strnlen_user.c | 9 mm/huge_memory.c | 24 - mm/memory.c | 9 mm/shmem.c | 55 +- net/bluetooth/af_bluetooth.c | 22 + net/bluetooth/bnep/core.c | 3 net/bluetooth/hci_core.c | 24 - net/bluetooth/hci_sync.c | 12 net/bluetooth/iso.c | 18 net/bluetooth/sco.c | 18 net/core/filter.c | 50 -- net/core/sock_map.c | 8 net/ipv4/devinet.c | 35 + net/ipv4/inet_connection_sock.c | 21 - net/ipv4/xfrm4_policy.c | 40 - net/ipv6/xfrm6_policy.c | 31 - net/l2tp/l2tp_netlink.c | 4 net/netfilter/nf_bpf_link.c | 7 net/netfilter/xt_NFLOG.c | 2 net/netfilter/xt_TRACE.c | 1 net/netfilter/xt_mark.c | 2 net/netlink/genetlink.c | 28 - net/sched/act_api.c | 23 + net/sched/sch_generic.c | 8 net/sched/sch_taprio.c | 21 - net/smc/smc_pnet.c | 2 net/smc/smc_wr.c | 6 net/vmw_vsock/virtio_transport_common.c | 14 net/vmw_vsock/vsock_bpf.c | 8 net/wireless/nl80211.c | 8 net/xfrm/xfrm_device.c | 11 net/xfrm/xfrm_policy.c | 50 +- net/xfrm/xfrm_user.c | 10 sound/firewire/amdtp-stream.c | 3 sound/pci/hda/Kconfig | 2 sound/pci/hda/patch_cs8409.c | 5 sound/pci/hda/patch_realtek.c | 48 +- sound/soc/amd/yc/acp6x-mach.c | 7 sound/soc/codecs/lpass-rx-macro.c | 2 sound/soc/codecs/max98388.c | 1 sound/soc/fsl/fsl_micfil.c | 43 ++ sound/soc/fsl/fsl_sai.c | 5 sound/soc/fsl/fsl_sai.h | 1 sound/soc/loongson/loongson_card.c | 1 sound/soc/qcom/Kconfig | 2 sound/soc/qcom/lpass-cpu.c | 2 sound/soc/qcom/sc7280.c | 10 sound/soc/qcom/sdm845.c | 7 sound/soc/qcom/sm8250.c | 1 sound/soc/sh/rcar/core.c | 7 sound/soc/soc-dapm.c | 4 sound/soc/sof/intel/hda-dai-ops.c | 23 - sound/soc/sof/intel/hda-dai.c | 37 + sound/soc/sof/intel/hda-loader.c | 17 sound/soc/sof/ipc4-topology.c | 15 tools/include/uapi/linux/bpf.h | 3 tools/testing/selftests/bpf/Makefile | 2 tools/testing/selftests/bpf/prog_tests/fill_link_info.c | 9 274 files changed, 2654 insertions(+), 1268 deletions(-)
Abel Vesa (1):
drm/bridge: Fix assignment of the of_node of the parent to aux bridge
Abhishek Mohapatra (1):
RDMA/bnxt_re: Fix the max CQ WQEs for older adapters
Aleksa Sarai (1):
openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)
Aleksandr Mishin (4):
octeon_ep: Implement helper for iterating packets in Rx queue
octeon_ep: Add SKB allocation failures handling in __octep_oq_process_rx() fsl/fman: Save device references taken in mac_probe() fsl/fman: Fix refcount handling of fman-related devices
Alexander Zubkov (1):
RDMA/irdma: Fix misspelling of "accept*"
Alexey Klimov (3):
ASoC: codecs: lpass-rx-macro: add missing CDC_RX_BCL_VBAT_RF_PROC2 to default regs values
ASoC: qcom: sm8250: add qrb4210-rb2-sndcard compatible string
ASoC: qcom: sdm845: add missing soundwire runtime stream alloc
Amadeusz Sławiński (1):
ASoC: topology: Bump minimal topology ABI version
Amir Goldstein (2):
fs: pass offset and result to backing_file end_write() callback
fuse: update inode size after extending passthrough write
Andrea Parri (1):
riscv, bpf: Make BPF_CMPXCHG fully ordered
Andrew Jones (1):
irqchip/riscv-imsic: Fix output text of base address
Andrey Shumilin (1):
ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
Andrii Nakryiko (1):
bpf: fix do_misc_fixups() for bpf_get_branch_snapshot()
Anumula Murali Mohan Reddy (2):
RDMA/core: Fix ENODEV error for iWARP test over vlan RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP
Armin Wolf (1):
platform/x86: dell-wmi: Ignore suspend notifications
Arnd Bergmann (1):
fbdev: wm8505fb: select CONFIG_FB_IOMEM_FOPS
Ashish Kalra (1):
x86/sev: Ensure that RMP table fixups are reserved
Aurabindo Pillai (1):
drm/amd/display: temp w/a for DP Link Layer compliance
Baolin Wang (2):
mm: shmem: rename shmem_is_huge() to shmem_huge_global_enabled()
mm: shmem: move shmem_huge_global_enabled() into shmem_allowable_huge_orders()
Bart Van Assche (1):
RDMA/srpt: Make slab cache names unique
Bartosz Golaszewski (2):
PCI: Hold rescan lock while adding devices during host probe PCI/pwrctl: Abandon QCom WCN probe on pre-pwrseq device-trees
Benjamin Bara (1):
ASoC: dapm: avoid container_of() to get component
Bhargava Chenna Marreddy (1):
RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages
Binbin Zhou (1):
ASoC: loongson: Fix component check failed on FDT systems
Boris Burkov (1):
btrfs: fix read corruption due to race with extent map merging
Breno Leitao (2):
elevator: do not request_module if elevator exists
elevator: Remove argument from elevator_find_get
Chancel Liu (1):
ASoC: fsl_micfil: Add a flag to distinguish with different volume control types
Chandramohan Akula (1):
RDMA/bnxt_re: Change the sequence of updating the CQ toggle value
Changhuang Liang (1):
reset: starfive: jh71x0: Fix accessing the empty member on JH7110 SoC
Christian Brauner (1):
fs: don't try and remove empty rbtree node
Christian Heusel (1):
ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]
Colin Ian King (2):
octeontx2-af: Fix potential integer overflows on integer shifts
ASoC: max98388: Fix missing increment of variable slot_found
Cong Yang (1):
drm/panel: himax-hx83102: Adjust power and gamma to optimize brightness
Cosmin Ratiu (2):
net/mlx5: Unregister notifier on eswitch init failure net/mlx5e: Don't call cleanup on profile rollback failure
Crag Wang (1):
platform/x86: dell-sysman: add support for alienware products
Dan Carpenter (1):
ACPI: PRM: Clean up guid type in struct prm_handler_info
Daniel Borkmann (6):
vmxnet3: Fix packet corruption in vmxnet3_xdp_xmit_frame
bpf: Fix incorrect delta propagation between linked registers
bpf: Fix print_reg_state's constant scalar dump
bpf: Add MEM_WRITE attribute
bpf: Fix overloading of MEM_UNINIT's meaning
bpf: Remove MEM_UNINIT from skb/xdp MTU helpers
Daniel Machon (1):
net: sparx5: fix source port register when mirroring
Darrick J. Wong (1):
xfs: don't fail repairs on metadata files with no attr fork
Dave Kleikamp (1):
jfs: Fix sanity check in dbMount
David Hildenbrand (1):
mm: don't install PMD mappings when THPs are disabled by the hw/process/vma
David Lawrence Glanzman (1):
ASoC: amd: yc: Add quirk for HP Dragonfly pro one
Dhananjay Ugwekar (2):
cpufreq/amd-pstate: Fix amd_pstate mode switch on shared memory systems perf/x86/rapl: Fix the energy-pkg event for AMD CPUs
Dimitar Kanaliev (1):
bpf: Fix truncation bug in coerce_reg_to_size_sx()
Dmitry Antipov (2):
net: sched: fix use-after-free in taprio_change()
net: sched: use RCU read-side critical section in taprio_dump()
Dmitry Baryshkov (3):
drm/msm/dpu: make sure phys resources are properly initialized drm/msm/dpu: move CRTC resource assignment to dpu_encoder_virt_atomic_check drm/msm/dpu: check for overflow in _dpu_crtc_setup_lm_bounds()
Dominique Martinet (4):
Revert " fs/9p: mitigate inode collisions" Revert "fs/9p: remove redundant pointer v9ses" Revert "fs/9p: fix uaf in in v9fs_stat2inode_dotl" Revert "fs/9p: simplify iget to remove unnecessary paths"
Douglas Anderson (2):
drm/msm: Avoid NULL dereference in msm_disp_state_print_regs() drm/msm: Allocate memory for disp snapshot with kvzalloc()
Eduard Zingerman (1):
bpf: sync_linked_regs() must preserve subreg_def
Eric Biggers (1):
ALSA: hda/tas2781: select CRC32 instead of CRC32_SARWATE
Eric Dumazet (3):
netdevsim: use cond_resched() in nsim_dev_trap_report_work()
genetlink: hold RCU in genlmsg_mcast()
net: fix races in netdev_tx_sent_queue()/dev_watchdog()
Eyal Birger (2):
xfrm: extract dst lookup parameters into a struct
xfrm: respect ip protocols rules criteria when performing dst lookups
Fabrizio Castro (1):
irqchip/renesas-rzg2l: Fix missing put_device
Felix Fietkau (1):
net: ethernet: mtk_eth_soc: fix memory corruption during fq dma init
Filipe Manana (1):
btrfs: clear force-compress on remount when compress mount option is given
Florian Kauer (1):
bpf: devmap: provide rxq after redirect
Florian Klink (1):
ARM: dts: bcm2837-rpi-cm3-io3: Fix HDMI hpd-gpio pin
Florian Westphal (1):
netfilter: bpf: must hold reference on net namespace
Gal Pressman (1):
ravb: Remove setting of RX software timestamp
Gianfranco Trad (1):
udf: fix uninit-value use in udf_get_fileshortad
Greg Kroah-Hartman (1):
Linux 6.11.6
Gustavo Sousa (1):
drm/xe/mcr: Use Xe2_LPM steering tables for Xe2_HPM
Haiyang Zhang (1):
hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
Hans de Goede (1):
drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA
Heiko Carstens (1):
s390: Initialize psw mask in perf_arch_fetch_caller_regs()
Heiner Kallweit (1):
r8169: avoid unsolicited interrupts
Henrique Carvalho (1):
smb: client: Handle kstrdup failures for passwords
Hongguang Gao (1):
RDMA/bnxt_re: Get the toggle bits from SRQ events
Hou Tao (3):
bpf: Check the remaining info_cnt before repeating btf fields
bpf: Preserve param->string when parsing mount options
bpf: Add the missing BPF_LINK_TYPE invocation for sockmap
Huacai Chen (3):
LoongArch: Get correct cores_per_package for SMT systems
LoongArch: Enable IRQ if do_ale() triggered in irq-enabled context
LoongArch: Make KASAN usable for variable cpu_vabits
Ian Forbes (1):
drm/vmwgfx: Handle possible ENOMEM in vmw_stdu_connector_atomic_check
Ilkka Koskinen (1):
KVM: arm64: Fix shift-out-of-bounds bug
Jakub Boehm (1):
net: plip: fix break; causing plip to never transmit
Jan Kara (1):
fsnotify: Avoid data race between fsnotify_recalc_mask() and fsnotify_object_watched()
Javier Carrasco (3):
iio: frequency: {admv4420,adrf6780}: format Kconfig entries
iio: frequency: admv4420: fix missing select REMAP_SPI in Kconfig
iio: adc: ti-lmp92064: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
Jean Delvare (1):
[PATCH} hwmon: (jc42) Properly detect TSE2004-compliant devices again
Jessica Zhang (2):
drm/msm/dpu: Don't always set merge_3d pending flush drm/msm/dpu: don't always program merge_3d block
Jinjie Ruan (1):
posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
Jiri Olsa (2):
bpf: Fix memory leak in bpf_core_apply bpf,perf: Fix perf_event_detach_bpf_prog error handling
Jiri Slaby (SUSE) (2):
xhci: dbgtty: remove kfifo_out() wrapper
xhci: dbgtty: use kfifo from tty_port struct
Jonathan Marek (2):
drm/msm/dsi: improve/fix dsc pclk calculation
drm/msm/dsi: fix 32-bit signed integer extension in pclk_rate calculation
Jordan Rome (1):
bpf: Fix iter/task tid filtering
Josh Poimboeuf (1):
cdrom: Avoid barrier_nospec() in cdrom_ioctl_media_changed()
José Relvas (1):
ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593
Justin Chen (1):
firmware: arm_scmi: Queue in scmi layer for mailbox implementation
Kai Shen (1):
net/smc: Fix memory leak when using percpu refs
Kai Vehmanen (1):
ASoC: SOF: Intel: hda-loader: do not wait for HDaudio IOC
Kailang Yang (1):
ALSA: hda/realtek: Update default depop procedure
Kalesh AP (5):
RDMA/bnxt_re: Fix a possible memory leak RDMA/bnxt_re: Add a check for memory allocation RDMA/bnxt_re: Fix out of bound check RDMA/bnxt_re: Return more meaningful error RDMA/bnxt_re: Fix the GID table length
Kashyap Desai (1):
RDMA/bnxt_re: Fix incorrect dereference of srq in async event
Kefeng Wang (1):
mm: huge_memory: add vma_thp_disabled() and thp_disabled_by_hw()
Koba Ko (1):
ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context
Konrad Dybcio (1):
PCI/pwrctl: Add WCN6855 support
Kory Maincent (1):
net: pse-pd: Fix out of bound for loop
Krzysztof Kozlowski (2):
ASoC: qcom: sc7280: Fix missing Soundwire runtime stream alloc
ASoC: qcom: Select missing common Soundwire module code on SDM845
Kuniyuki Iwashima (1):
tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink().
Lad Prabhakar (1):
ASoC: rsnd: Fix probe failure on HiHope boards due to endpoint parsing
Leo Yan (1):
tracing: Consider the NULL character when validating the event length
Li Huafei (1):
fgraph: Fix missing unlock in register_ftrace_graph()
Li RongQing (1):
net/smc: Fix searching in list of known pnetids in smc_pnet_add_pnetid
Lin Ma (1):
net: wwan: fix global oob in wwan_rtnl_policy
Linus Torvalds (3):
x86: support user address masking instead of non-speculative conditional
x86: fix whitespace in runtime-const assembler output
x86: fix user address masking non-canonical speculation issue
Luiz Augusto von Dentz (3):
Bluetooth: hci_core: Disable works on hci_unregister_dev
Bluetooth: SCO: Fix UAF on sco_sock_timeout
Bluetooth: ISO: Fix UAF on iso_sock_timeout
Maher Sanalla (1):
net/mlx5: Check for invalid vector index on EQ creation
Marc Zyngier (1):
KVM: arm64: Don't eagerly teardown the vgic on init error
Mario Limonciello (2):
drm/amd: Guard against bad data for ATIF ACPI method drm/amd/display: Disable PSR-SU on Parade 08-01 TCON too
Mark Rutland (1):
arm64: Force position-independent veneers
Martin Kletzander (1):
x86/resctrl: Avoid overflow in MB settings in bw_validate()
Mathias Nyman (1):
xhci: dbc: honor usb transfer size boundaries.
Matthew Auld (2):
drm/xe: fix unbalanced rpm put() with fence_fini() drm/xe: fix unbalanced rpm put() with declare_wedged()
Matthew Brost (3):
drm/xe: Take job list lock in xe_sched_add_pending_job drm/xe: Don't free job in TDR
drm/xe: Use bookkeep slots for external BO's in exec IOCTL
Maurizio Lombardi (1):
nvme-pci: fix race condition between reset and nvme_dev_disable()
Michael S. Tsirkin (1):
virtio_net: fix integer overflow in stats
Michal Luczaj (4):
bpf, sockmap: SK_DROP on attempted redirects of unsupported af_vsock
vsock: Update rx_bytes on read_skb()
vsock: Update msg_count on read_skb()
bpf, vsock: Drop static vsock_bpf_prot initialization
Michel Alex (1):
net: phy: dp83822: Fix reset pin definitions
Mikel Rychliski (1):
tracing/probes: Fix MAX_TRACE_ARGS limit handling
Mikhail Lobanov (1):
iio: accel: bma400: Fix uninitialized variable field_value in tap event handling.
Miquel Raynal (2):
ASoC: dt-bindings: davinci-mcasp: Fix interrupts property
ASoC: dt-bindings: davinci-mcasp: Fix interrupt properties
Murad Masimov (1):
ALSA: hda/cs8409: Fix possible NULL dereference
Naohiro Aota (1):
btrfs: zoned: fix zone unusable accounting for freed reserved extent
Niklas Cassel (1):
ata: libata: Set DID_TIME_OUT for commands that actually timed out
Niklas Schnelle (1):
s390/pci: Handle PCI error codes other than 0x3a
Niklas Söderlund (1):
net: ravb: Only advertise Rx/Tx timestamps if hardware supports it
Olga Kornievskaia (1):
nfsd: fix race between laundromat and free_stateid
Oliver Neukum (2):
net: usb: usbnet: fix race in probe failure
net: usb: usbnet: fix name regression
Oliver Upton (1):
KVM: arm64: Unregister redistributor for failed vCPU creation
Pablo Neira Ayuso (1):
netfilter: xtables: fix typo causing some targets not to load on IPv6
Pali Rohár (1):
cifs: Validate content of NFS reparse point buffer
Paritosh Dixit (1):
net: stmmac: dwmac-tegra: Fix link bring-up sequence
Paulo Alcantara (1):
smb: client: fix OOBs when building SMB2_IOCTL request
Pawan Gupta (1):
x86/lam: Disable ADDRESS_MASKING in most cases
Peter Collingbourne (1):
bpf, arm64: Fix address emission with tag-based KASAN enabled
Peter Rashleigh (2):
net: dsa: mv88e6xxx: Fix the max_vid definition for the MV88E6361
net: dsa: mv88e6xxx: Fix error when setting port policy on mv88e6393x
Petr Pavlu (1):
ring-buffer: Fix reader locking when changing the sub buffer order
Petr Vaganov (1):
xfrm: fix one more kernel-infoleak in algo dumping
Pranjal Ramajor Asha Kanojiya (1):
accel/qaic: Fix the for loop used to walk SG table
Pu Lehui (1):
riscv, bpf: Fix possible infinite tailcall when CONFIG_CFI_CLANG is enabled
Qiao Ma (1):
uprobe: avoid out-of-bounds memory access of fetching args
Qu Wenruo (2):
btrfs: qgroup: set a more sane default value for subtree drop threshold
btrfs: reject ro->rw reconfiguration if there are hard ro requirements
Ranjani Sridharan (4):
ASoC: SOF: Intel: hda: Handle prepare without close for non-HDA DAI's
ASoC: SOF: Intel: hda: Always clean up link DMA during stop
ASoC: SOF: ipc4-topology: Do not set ALH node_id for aggregated DAIs
soundwire: intel_ace2x: Send PDI stream number during prepare
Richard Gong (2):
x86/amd_nb: Add new PCI IDs for AMD family 1Ah model 60h-70h x86/amd_nb: Add new PCI ID for AMD family 1Ah model 20h
Rob Clark (1):
drm/msm/a6xx+: Insert a fence wait before SMMU table update
Ryusuke Konishi (1):
nilfs2: fix kernel bug due to missing clearing of buffer delay flag
Sabrina Dubroca (2):
macsec: don't increment counters for an unrelated SA
xfrm: validate new SA's prefixlen using SA family when sel.family is unset
Saravanan Vajravel (1):
RDMA/bnxt_re: Fix incorrect AVID type in WQE structure
Sean Christopherson (1):
KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
Selvin Xavier (1):
RDMA/bnxt_re: Avoid CPU lockups due fifo occupancy check loop
Shay Drory (1):
net/mlx5: Fix command bitmask initialization
Shenghao Yang (3):
net: dsa: mv88e6xxx: group cycle counter coefficients
net: dsa: mv88e6xxx: read cycle counter period from hardware
net: dsa: mv88e6xxx: support 4000ps cycle counter period
Shengjiu Wang (1):
ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit
Shubham Panwar (1):
ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
Srinivasan Shanmugam (1):
drm/amd/amdgpu: Fix double unlock in amdgpu_mes_add_ring
Steven Rostedt (2):
fgraph: Allocate ret_stack_list with proper size
fgraph: Change the name of cpuhp state to "fgraph:online"
Su Hui (2):
firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()
smb: client: fix possible double free in smb2_set_ea()
Takashi Sakamoto (1):
firewire: core: fix invalid port index for parent device
Thadeu Lima de Souza Cascardo (1):
usb: typec: altmode should keep reference to parent
Thomas Weißschuh (1):
LoongArch: Don't crash in stack_top() for tasks without vDSO
Tim Harvey (1):
net: dsa: microchip: disable EEE for KSZ879x/KSZ877x/KSZ876x
Timo Grautstueck (1):
lib/Kconfig.debug: fix grammar in RUST_BUILD_ASSERT_ALLOW
Toke Høiland-Jørgensen (2):
bpf: Make sure internal and UAPI bpf_redirect flags don't overlap
bpf: fix kfunc btf caching for modules
Tony Ambardar (1):
selftests/bpf: Fix cross-compiling urandom_read
Tyrone Wu (4):
bpf: fix unpopulated name_len field in perf_event link info selftests/bpf: fix perf_event link info name_len assertion
bpf: Fix unpopulated path_size when uprobe_multi fields unset
bpf: Fix link info netfilter flags to populate defrag flag
Vadim Fedorenko (1):
bnxt_en: replace ptp_lock with irqsave variant
Vamsi Krishna Brahmajosyula (1):
platform/x86/intel/pmc: Fix pmc_core_iounmap to call iounmap for valid addresses
Viktor Malik (1):
objpool: fix choosing allocation for percpu slots
Vladimir Oltean (2):
net: dsa: vsc73xx: fix reception from VLAN-unaware bridges
net/sched: act_api: deny mismatched skip_sw/skip_hw flags for actions created by classifiers
Waiman Long (1):
sched/core: Disable page allocation in task_tick_mm_cid()
Wander Lairson Costa (1):
bpf: Use raw_spinlock_t in ringbuf
Wang Hai (8):
net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit()
net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
net: ethernet: rtsn: fix potential memory leak in rtsn_start_xmit()
net: systemport: fix potential memory leak in bcm_sysport_xmit()
net: bcmasp: fix potential memory leak in bcmasp_xmit()
scsi: target: core: Fix null-ptr-deref in target_alloc_device() net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()
be2net: fix potential memory leak in be_xmit()
Xin Long (1):
ipv4: give an IPv4 dev to blackhole_netdev
Yang Erkun (1):
nfsd: cancel nfsd_shrinker_work using sync mode in nfs4_state_shutdown_net
Yao Zi (1):
clk: rockchip: fix finding of maximum clock ID
Ye Bin (2):
Bluetooth: bnep: fix wild-memory-access in proto_unregister
cifs: fix warning when destroy 'cifs_io_request_pool'
Yu Kuai (1):
md/raid10: fix null ptr dereference in raid10_size()
Yuan Can (2):
mlxsw: spectrum_router: fix xa_store() error checking
powercap: dtpm_devfreq: Fix error check against dev_pm_qos_add_request()
Yue Haibing (1):
btrfs: fix passing 0 to ERR_PTR in btrfs_search_dir_index_item()
Zhao Mengmeng (3):
udf: refactor udf_current_aext() to handle error
udf: refactor udf_next_aext() to handle error
udf: refactor inode_bmap() to handle error
Zichen Xie (1):
ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
liwei (1):
cpufreq: CPPC: fix perf_to_khz/khz_to_perf conversion exception
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml +9 -9
@@ -102,21 +102,21 @@ properties: default: 2 interrupts: - anyOf: - - minItems: 1 - items: - - description: TX interrupt - - description: RX interrupt - - items: - - description: common/combined interrupt + minItems: 1 + maxItems: 2 interrupt-names: oneOf: - - minItems: 1 + - description: TX interrupt + const: tx + - description: RX interrupt + const: rx + - description: TX and RX interrupts items: - const: tx - const: rx - - const: common + - description: Common/combined interrupt + const: common fck_parent: $ref: /schemas/types.yaml#/definitions/string
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 11 -SUBLEVEL = 5 +SUBLEVEL = 6 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm/boot/dts/broadcom/bcm2837-rpi-cm3-io3.dts +1 -1
@@ -77,7 +77,7 @@ &gpio { }; &hdmi { - hpd-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>; + hpd-gpios = <&expgpio 0 GPIO_ACTIVE_LOW>; power-domains = <&power RPI_POWER_DOMAIN_HDMI>; status = "okay"; };
arch/arm64/Makefile +1 -1
@@ -10,7 +10,7 @@ # # Copyright (C) 1995-2001 by Russell King -LDFLAGS_vmlinux :=--no-undefined -X +LDFLAGS_vmlinux :=--no-undefined -X --pic-veneer ifeq ($(CONFIG_RELOCATABLE), y) # Pass --no-apply-dynamic-relocs to restore pre-binutils-2.27 behaviour
arch/arm64/kvm/arm.c +3 -0
@@ -996,6 +996,9 @@ static int kvm_vcpu_suspend(struct kvm_vcpu *vcpu)static int check_vcpu_requests (struct kvm_vcpu *vcpu) {if (kvm_request_pending (vcpu)) { +if (kvm_check_request (KVM_REQ_VM_DEAD , vcpu)) +return -EIO ; +if (kvm_check_request (KVM_REQ_SLEEP , vcpu))kvm_vcpu_sleep (vcpu);
arch/arm64/kvm/sys_regs.c +1 -1
@@ -1977,7 +1977,7 @@ static u64 reset_clidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)* one cache line. */ if (kvm_has_mte (vcpu->kvm)) - clidr |=2 <<CLIDR_TTYPE_SHIFT (loc); + clidr |=2ULL <<CLIDR_TTYPE_SHIFT (loc);__vcpu_sys_reg (vcpu, r->reg) = clidr;
arch/arm64/kvm/vgic/vgic-init.c +24 -4
@@ -417,8 +417,28 @@ static void __kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu)kfree (vgic_cpu->private_irqs); vgic_cpu->private_irqs =NULL ; -if (vcpu->kvm->arch.vgic.vgic_model ==KVM_DEV_TYPE_ARM_VGIC_V3 ) +if (vcpu->kvm->arch.vgic.vgic_model ==KVM_DEV_TYPE_ARM_VGIC_V3 ) { +/* +* If this vCPU is being destroyed because of a failed creation +* then unregister the redistributor to avoid leaving behind a +* dangling pointer to the vCPU struct. +* +* vCPUs that have been successfully created (i.e. added to +* kvm->vcpu_array) get unregistered in kvm_vgic_destroy(), as +* this function gets called while holding kvm->arch.config_lock +* in the VM teardown path and would otherwise introduce a lock +* inversion w.r.t. kvm->srcu. +* +* vCPUs that failed creation are torn down outside of the +* kvm->arch.config_lock and do not get unregistered in +* kvm_vgic_destroy(), meaning it is both safe and necessary to +* do so here. +*/ +if (kvm_get_vcpu_by_id (vcpu->kvm, vcpu->vcpu_id) != vcpu) +vgic_unregister_redist_iodev (vcpu); + vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; + } }void kvm_vgic_vcpu_destroy (struct kvm_vcpu *vcpu)
@@ -536,10 +556,10 @@ int kvm_vgic_map_resources(struct kvm *kvm) out:mutex_unlock (&kvm->arch.config_lock); out_slots: -mutex_unlock (&kvm->slots_lock); -if (ret) -kvm_vgic_destroy (kvm); +kvm_vm_dead (kvm); + +mutex_unlock (&kvm->slots_lock);return ret; }
arch/arm64/net/bpf_jit_comp.c +10 -2
@@ -2172,7 +2172,11 @@ static int prepare_trampoline(struct jit_ctx *ctx, struct bpf_tramp_image *im,emit (A64_STR64I (A64_R (20 ),A64_SP , regs_off +8 ), ctx);if (flags &BPF_TRAMP_F_CALL_ORIG ) { -emit_a64_mov_i64 (A64_R (0 ), (const u64 )im, ctx); +/* for the first pass, assume the worst case */ +if (!ctx->image) + ctx->idx +=4 ; +else +emit_a64_mov_i64 (A64_R (0 ), (const u64 )im, ctx);emit_call ((const u64 )__bpf_tramp_enter, ctx); }
@@ -2216,7 +2220,11 @@ static int prepare_trampoline(struct jit_ctx *ctx, struct bpf_tramp_image *im,if (flags &BPF_TRAMP_F_CALL_ORIG ) { im->ip_epilogue = ctx->ro_image + ctx->idx; -emit_a64_mov_i64 (A64_R (0 ), (const u64 )im, ctx); +/* for the first pass, assume the worst case */ +if (!ctx->image) + ctx->idx +=4 ; +else +emit_a64_mov_i64 (A64_R (0 ), (const u64 )im, ctx);emit_call ((const u64 )__bpf_tramp_exit, ctx); }
arch/loongarch/include/asm/bootinfo.h +4 -0
@@ -26,6 +26,10 @@ struct loongson_board_info {#define NR_WORDS DIV_ROUND_UP(NR_CPUS, BITS_PER_LONG) +/* +* The "core" of cores_per_node and cores_per_package stands for a +* logical core, which means in a SMT system it stands for a thread. +*/ struct loongson_system_configuration {int nr_cpus;int nr_nodes;
arch/loongarch/include/asm/kasan.h +1 -1
@@ -16,7 +16,7 @@#define XRANGE_SHIFT (48)/* Valid address length */ -#define XRANGE_SHADOW_SHIFT (PGDIR_SHIFT + PAGE_SHIFT - 3) +#define XRANGE_SHADOW_SHIFT min(cpu_vabits, VA_BITS)/* Used for taking out the valid address */ #define XRANGE_SHADOW_MASK GENMASK_ULL(XRANGE_SHADOW_SHIFT - 1, 0)/* One segment whole address space size */
arch/loongarch/kernel/process.c +9 -7
@@ -293,13 +293,15 @@ unsigned long stack_top(void) {unsigned long top =TASK_SIZE &PAGE_MASK ; -/* Space for the VDSO & data page */ - top -=PAGE_ALIGN (current->thread.vdso->size); - top -=VVAR_SIZE ; - -/* Space to randomize the VDSO base */ -if (current->flags &PF_RANDOMIZE ) - top -=VDSO_RANDOMIZE_SIZE ; +if (current->thread.vdso) { +/* Space for the VDSO & data page */ + top -=PAGE_ALIGN (current->thread.vdso->size); + top -=VVAR_SIZE ; + +/* Space to randomize the VDSO base */ +if (current->flags &PF_RANDOMIZE ) + top -=VDSO_RANDOMIZE_SIZE ; + }return top; }
arch/loongarch/kernel/setup.c +2 -1
@@ -55,6 +55,7 @@#define SMBIOS_FREQHIGH_OFFSET 0x17#define SMBIOS_FREQLOW_MASK 0xFF#define SMBIOS_CORE_PACKAGE_OFFSET 0x23 +#define SMBIOS_THREAD_PACKAGE_OFFSET 0x25#define LOONGSON_EFI_ENABLE (1 << 3)unsigned long fw_arg0, fw_arg1, fw_arg2;
@@ -125,7 +126,7 @@ static void __init parse_cpu_table(const struct dmi_header *dm) cpu_clock_freq = freq_temp *1000000 ; loongson_sysconf.cpuname = (void *)dmi_string_parse (dm, dmi_data[16 ]); - loongson_sysconf.cores_per_package = *(dmi_data +SMBIOS_CORE_PACKAGE_OFFSET ); + loongson_sysconf.cores_per_package = *(dmi_data +SMBIOS_THREAD_PACKAGE_OFFSET );pr_info ("CpuClock = %llu\n" , cpu_clock_freq); }
arch/loongarch/kernel/traps.c +5 -0
@@ -555,6 +555,9 @@ asmlinkage void noinstr do_ale(struct pt_regs *regs)#else unsigned int *pc; +if (regs->csr_prmd &CSR_PRMD_PIE ) +local_irq_enable (); +perf_sw_event (PERF_COUNT_SW_ALIGNMENT_FAULTS ,1 , regs, regs->csr_badvaddr);/*
@@ -579,6 +582,8 @@ asmlinkage void noinstr do_ale(struct pt_regs *regs)die_if_kernel ("Kernel ale access" , regs);force_sig_fault (SIGBUS ,BUS_ADRALN , (void __user *)regs->csr_badvaddr); out: +if (regs->csr_prmd &CSR_PRMD_PIE ) +local_irq_disable ();#endif irqentry_exit (regs, state); }
arch/riscv/net/bpf_jit_comp64.c +5 -3
@@ -18,6 +18,7 @@#define RV_MAX_REG_ARGS 8#define RV_FENTRY_NINSNS 2#define RV_FENTRY_NBYTES (RV_FENTRY_NINSNS * 4) +#define RV_KCFI_NINSNS (IS_ENABLED(CONFIG_CFI_CLANG) ? 1 : 0)/* imm that allows emit_imm to emit max count insns */ #define RV_MAX_COUNT_IMM 0x7FFF7FF7FF7FF7FF
@@ -271,7 +272,8 @@ static void __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx)if (!is_tail_call)emit_addiw (RV_REG_A0 ,RV_REG_A5 ,0 , ctx);emit_jalr (RV_REG_ZERO , is_tail_call ?RV_REG_T3 :RV_REG_RA , - is_tail_call ? (RV_FENTRY_NINSNS +1 ) *4 :0 ,/* skip reserved nops and TCC init */ +/* kcfi, fentry and TCC init insns will be skipped on tailcall */ + is_tail_call ? (RV_KCFI_NINSNS +RV_FENTRY_NINSNS +1 ) *4 :0 , ctx); }
@@ -548,8 +550,8 @@ static void emit_atomic(u8 rd, u8 rs, s16 off, s32 imm, bool is64, rv_lr_w(r0, 0, rd, 0, 0), ctx); jmp_offset =ninsns_rvoff (8 );emit (rv_bne (RV_REG_T2 , r0, jmp_offset >>1 ), ctx); -emit (is64 ?rv_sc_d (RV_REG_T3 , rs, rd,0 ,0 ) : -rv_sc_w (RV_REG_T3 , rs, rd,0 ,0 ), ctx); +emit (is64 ?rv_sc_d (RV_REG_T3 , rs, rd,0 ,1 ) : +rv_sc_w (RV_REG_T3 , rs, rd,0 ,1 ), ctx); jmp_offset =ninsns_rvoff (-6 );emit (rv_bne (RV_REG_T3 ,0 , jmp_offset >>1 ), ctx);emit (rv_fence (0x3 ,0x3 ), ctx);
arch/s390/include/asm/perf_event.h +1 -0
@@ -73,6 +73,7 @@ struct perf_sf_sde_regs {#define SAMPLE_FREQ_MODE (hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FREQ_MODE)#define perf_arch_fetch_caller_regs (regs, __ip) do { \ + (regs)->psw.mask = 0; \ (regs)->psw.addr = (__ip); \ (regs)->gprs[15] = (unsigned long)__builtin_frame_address(0) - \ offsetof(struct stack_frame, back_chain); \
arch/s390/pci/pci_event.c +9 -8
@@ -280,18 +280,19 @@ static void __zpci_event_error(struct zpci_ccdf_err *ccdf) goto no_pdev;switch (ccdf->pec) { -case 0x003a :/* Service Action or Error Recovery Successful */ +case 0x002a :/* Error event concerns FMB */ +case 0x002b : +case 0x002c : +break ; +case 0x0040 :/* Service Action or Error Recovery Failed */ +case 0x003b : +zpci_event_io_failure (pdev, pci_channel_io_perm_failure); +break ; +default :/* PCI function left in the error state attempt to recover */ ers_res =zpci_event_attempt_error_recovery (pdev);if (ers_res !=PCI_ERS_RESULT_RECOVERED )zpci_event_io_failure (pdev, pci_channel_io_perm_failure);break ; -default : -/* -* Mark as frozen not permanently failed because the device -* could be subsequently recovered by the platform. -*/ -zpci_event_io_failure (pdev, pci_channel_io_frozen); -break ; }pci_dev_put (pdev); no_pdev:
arch/x86/Kconfig +1 -0
@@ -2260,6 +2260,7 @@ config RANDOMIZE_MEMORY_PHYSICAL_PADDING config ADDRESS_MASKING bool "Linear Address Masking support" depends on X86_64 + depends on COMPILE_TEST || !CPU_MITIGATIONS # wait for LASS help Linear Address Masking (LAM) modifies the checking that is applied to 64-bit linear addresses, allowing software to use of the
arch/x86/events/rapl.c +42 -5
91 lines not on this page · raw message
arch/x86/include/asm/runtime-const.h +2 -2
@@ -6,7 +6,7 @@typeof (sym) __ret; \ asm_inline("mov %1,%0\n1:\n" \ ".pushsection runtime_ptr_" #sym ",\"a\"\n\t" \ - ".long 1b - %c2 - .\n\t" \ + ".long 1b - %c2 - .\n" \ ".popsection" \ :"=r" (__ret) \ :"i" ((unsigned long)0x0123456789abcdefull), \
@@ -20,7 +20,7 @@ typeof(0u+(val)) __ret = (val); \ asm_inline("shrl $12,%k0\n1:\n" \ ".pushsection runtime_shift_" #sym ",\"a\"\n\t" \ - ".long 1b - 1 - .\n\t" \ + ".long 1b - 1 - .\n" \ ".popsection" \ :"+r" (__ret)); \ __ret; })
arch/x86/include/asm/uaccess_64.h +29 -16
70 lines not on this page · raw message
arch/x86/kernel/amd_nb.c +6 -0
@@ -44,6 +44,9 @@#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F4 0x14f4#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F4 0x12fc#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F4 0x12c4 +#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F4 0x16fc +#define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F4 0x124c +#define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F4 0x12bc#define PCI_DEVICE_ID_AMD_MI200_DF_F4 0x14d4#define PCI_DEVICE_ID_AMD_MI300_DF_F4 0x152c
@@ -125,6 +128,9 @@ static const struct pci_device_id amd_nb_link_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M78H_DF_F4) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CNB17H_F4) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F4) }, + { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_DF_F4) }, + { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F4) }, + { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F4) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_DF_F4) }, { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI300_DF_F4) }, {}
arch/x86/kernel/cpu/common.c +10 -0
@@ -69,6 +69,7 @@#include <asm/sev.h> #include <asm/tdx.h> #include <asm/posted_intr.h> +#include <asm/runtime-const.h> #include "cpu.h"
@@ -2371,6 +2372,15 @@ void __init arch_cpu_finalize_init(void)alternative_instructions ();if (IS_ENABLED (CONFIG_X86_64 )) { +unsigned long USER_PTR_MAX =TASK_SIZE_MAX -1 ; + +/* +* Enable this when LAM is gated on LASS support +if (cpu_feature_enabled(X86_FEATURE_LAM)) +USER_PTR_MAX = (1ul << 63) - PAGE_SIZE - 1; +*/ +runtime_const_init (ptr,USER_PTR_MAX ); +/* * Make sure the first 2MB area is not mapped by huge pages * There are typically fixed size MTRRs in there and overlapping
arch/x86/kernel/cpu/resctrl/ctrlmondata.c +14 -9
@@ -29,10 +29,10 @@* hardware. The allocated bandwidth percentage is rounded to the next * control step available on the hardware. */ -static bool bw_validate (char *buf,unsigned long *data,struct rdt_resource *r) +static bool bw_validate (char *buf,u32 *data,struct rdt_resource *r) { -unsigned long bw;int ret; +u32 bw;/* * Only linear delay values is supported for current Intel SKUs.
@@ -42,16 +42,21 @@ static bool bw_validate(char *buf, unsigned long *data, struct rdt_resource *r)return false; } - ret =kstrtoul (buf,10 , &bw); + ret =kstrtou32 (buf,10 , &bw);if (ret) { -rdt_last_cmd_printf ("Non-decimal digit in MB value %s\n" , buf); +rdt_last_cmd_printf ("Invalid MB value %s\n" , buf);return false; } -if ((bw < r->membw.min_bw || bw > r->default_ctrl) && - !is_mba_sc (r)) { -rdt_last_cmd_printf ("MB value %ld out of range [%d,%d]\n" , bw, - r->membw.min_bw, r->default_ctrl); +/* Nothing else to do if software controller is enabled. */ +if (is_mba_sc (r)) { + *data = bw; +return true; + } + +if (bw < r->membw.min_bw || bw > r->default_ctrl) { +rdt_last_cmd_printf ("MB value %u out of range [%d,%d]\n" , + bw, r->membw.min_bw, r->default_ctrl);return false; }
@@ -65,7 +70,7 @@ int parse_bw(struct rdt_parse_data *data, struct resctrl_schema *s,struct resctrl_staged_config *cfg;u32 closid = data->rdtgrp->closid;struct rdt_resource *r = s->res; -unsigned long bw_val; +u32 bw_val; cfg = &d->staged_config[s->conf_type];if (cfg->have_new_ctrl) {
arch/x86/kernel/vmlinux.lds.S +1 -0
@@ -359,6 +359,7 @@ SECTIONS RUNTIME_CONST(shift, d_hash_shift) RUNTIME_CONST(ptr, dentry_hashtable) + RUNTIME_CONST(ptr, USER_PTR_MAX) . = ALIGN(PAGE_SIZE);
arch/x86/kvm/svm/nested.c +5 -1
@@ -63,8 +63,12 @@ static u64 nested_svm_get_tdp_pdptr(struct kvm_vcpu *vcpu, int index)u64 pdpte;int ret; +/* +* Note, nCR3 is "assumed" to be 32-byte aligned, i.e. the CPU ignores +* nCR3[4:0] when loading PDPTEs from memory. +*/ ret =kvm_vcpu_read_guest_page (vcpu,gpa_to_gfn (cr3), &pdpte, -offset_in_page (cr3) + index *8 ,8 ); + (cr3 &GENMASK (11 ,5 )) + index *8 ,8 );if (ret)return 0 ;return pdpte;
arch/x86/lib/getuser.S +7 -2
@@ -39,8 +39,13 @@ .macro check_range size:req .if IS_ENABLED(CONFIG_X86_64) - mov %rax, %rdx - sar $63, %rdx + movq $0x0123456789abcdef,%rdx + 1: + .pushsection runtime_ptr_USER_PTR_MAX,"a" + .long 1b - 8 - . + .popsection + cmp %rax, %rdx + sbb %rdx, %rdx or %rdx, %rax .else cmp $TASK_SIZE_MAX-\size+1, %eax
arch/x86/virt/svm/sev.c +2 -0
@@ -173,6 +173,8 @@ static void __init __snp_fixup_e820_tables(u64 pa)e820__range_update (pa,PMD_SIZE ,E820_TYPE_RAM ,E820_TYPE_RESERVED );e820__range_update_table (e820_table_kexec, pa,PMD_SIZE ,E820_TYPE_RAM ,E820_TYPE_RESERVED );e820__range_update_table (e820_table_firmware, pa,PMD_SIZE ,E820_TYPE_RAM ,E820_TYPE_RESERVED ); +if (!memblock_is_region_reserved (pa,PMD_SIZE )) +memblock_reserve (pa,PMD_SIZE ); } }
block/elevator.c +12 -5
@@ -106,8 +106,7 @@ static struct elevator_type *__elevator_find(const char *name)return NULL ; } -static struct elevator_type *elevator_find_get (struct request_queue *q, -const char *name) +static struct elevator_type *elevator_find_get (const char *name) {struct elevator_type *e;
@@ -569,7 +568,7 @@ static struct elevator_type *elevator_get_default(struct request_queue *q) !blk_mq_is_shared_tags(q->tag_set->flags))return NULL ; -return elevator_find_get (q,"mq-deadline" ); +return elevator_find_get ("mq-deadline" ); }/*
@@ -697,7 +696,7 @@ static int elevator_change(struct request_queue *q, const char *elevator_name)if (q->elevator &&elevator_match (q->elevator->type, elevator_name))return 0 ; - e =elevator_find_get (q, elevator_name); + e =elevator_find_get (elevator_name);if (!e)return -EINVAL ; ret =elevator_switch (q, e);
@@ -709,13 +708,21 @@ int elv_iosched_load_module(struct gendisk *disk, const char *buf, size_t count) {char elevator_name[ELV_NAME_MAX ]; +struct elevator_type *found; +const char *name;if (!elv_support_iosched (disk->queue))return -EOPNOTSUPP ;strscpy (elevator_name, buf,sizeof (elevator_name)); + name =strstrip (elevator_name); -request_module ("%s-iosched" ,strstrip (elevator_name)); +spin_lock (&elv_list_lock); + found =__elevator_find (name); +spin_unlock (&elv_list_lock); + +if (!found) +request_module ("%s-iosched" , name);return 0 ; }
drivers/accel/qaic/qaic_control.c +1 -1
@@ -496,7 +496,7 @@ static int encode_addr_size_pairs(struct dma_xfer *xfer, struct wrapper_list *wr nents = sgt->nents; nents_dma = nents; *size =QAIC_MANAGE_EXT_MSG_LENGTH - msg_hdr_len -sizeof (**out_trans); -for_each_sgtable_sg (sgt, sg, i) { +for_each_sgtable_dma_sg (sgt, sg, i) { *size -=sizeof (*asp);/* Save 1K for possible follow-up transactions. */ if (*size <SZ_1K ) {
drivers/accel/qaic/qaic_data.c +3 -3
@@ -184,7 +184,7 @@ static int clone_range_of_sgt_for_slice(struct qaic_device *qdev, struct sg_tabl nents =0 ; size = size ? size :PAGE_SIZE ; -for (sg = sgt_in->sgl; sg; sg =sg_next (sg)) { +for_each_sgtable_dma_sg (sgt_in, sg, j) { len =sg_dma_len (sg);if (!len)
@@ -221,7 +221,7 @@ static int clone_range_of_sgt_for_slice(struct qaic_device *qdev, struct sg_tabl/* copy relevant sg node and fix page and length */ sgn = sgf; -for_each_sgtable_sg (sgt, sg, j) { +for_each_sgtable_dma_sg (sgt, sg, j) {memcpy (sg, sgn,sizeof (*sg));if (sgn == sgf) {sg_dma_address (sg) += offf;
@@ -301,7 +301,7 @@ static int encode_reqs(struct qaic_device *qdev, struct bo_slice *slice,* fence. */ dev_addr = req->dev_addr; -for_each_sgtable_sg (slice->sgt, sg, i) { +for_each_sgtable_dma_sg (slice->sgt, sg, i) { slice->reqs[i].cmd = cmd; slice->reqs[i].src_addr =cpu_to_le64 (slice->dir ==DMA_TO_DEVICE ?sg_dma_address (sg) : dev_addr);
drivers/acpi/button.c +11 -0
@@ -130,6 +130,17 @@ static const struct dmi_system_id dmi_lid_quirks[] = { }, .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, }, + { + /* + * Samsung galaxybook2 ,initial _LID device notification returns + * lid closed. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), + DMI_MATCH(DMI_PRODUCT_NAME, "750XED"), + }, + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, + }, {} };
drivers/acpi/cppc_acpi.c +17 -5
@@ -1916,9 +1916,15 @@ unsigned int cppc_perf_to_khz(struct cppc_perf_caps *caps, unsigned int perf)u64 mul, div;if (caps->lowest_freq && caps->nominal_freq) { - mul = caps->nominal_freq - caps->lowest_freq; +/* Avoid special case when nominal_freq is equal to lowest_freq */ +if (caps->lowest_freq == caps->nominal_freq) { + mul = caps->nominal_freq; + div = caps->nominal_perf; + }else { + mul = caps->nominal_freq - caps->lowest_freq; + div = caps->nominal_perf - caps->lowest_perf; + } mul *=KHZ_PER_MHZ ; - div = caps->nominal_perf - caps->lowest_perf; offset = caps->nominal_freq *KHZ_PER_MHZ -div64_u64 (caps->nominal_perf * mul, div); }else {
@@ -1939,11 +1945,17 @@ unsigned int cppc_khz_to_perf(struct cppc_perf_caps *caps, unsigned int freq) {s64 retval, offset =0 ;static u64 max_khz; -u64 mul, div; +u64 mul, div;if (caps->lowest_freq && caps->nominal_freq) { - mul = caps->nominal_perf - caps->lowest_perf; - div = caps->nominal_freq - caps->lowest_freq; +/* Avoid special case when nominal_freq is equal to lowest_freq */ +if (caps->lowest_freq == caps->nominal_freq) { + mul = caps->nominal_perf; + div = caps->nominal_freq; + }else { + mul = caps->nominal_perf - caps->lowest_perf; + div = caps->nominal_freq - caps->lowest_freq; + }/* * We don't need to convert to kHz for computing offset and can * directly use nominal_freq and lowest_freq as the div64_u64
drivers/acpi/prmt.c +23 -6
@@ -52,7 +52,7 @@ struct prm_context_buffer {static LIST_HEAD (prm_module_list);struct prm_handler_info { -guid_t guid; +efi_guid_t guid; efi_status_t (__efiapi *handler_addr)(u64, void *);u64 static_data_buffer_addr;u64 acpi_param_buffer_addr;
@@ -72,17 +72,21 @@ struct prm_module_info { struct prm_handler_info handlers[] __counted_by(handler_count); }; -static u64 efi_pa_va_lookup (u64 pa) +static u64 efi_pa_va_lookup (efi_guid_t *guid,u64 pa) {efi_memory_desc_t *md;u64 pa_offset = pa & ~PAGE_MASK ;u64 page = pa &PAGE_MASK ;for_each_efi_memory_desc (md) { -if (md->phys_addr < pa && pa < md->phys_addr +PAGE_SIZE * md->num_pages) +if ((md->attribute &EFI_MEMORY_RUNTIME ) && + (md->phys_addr < pa && pa < md->phys_addr +PAGE_SIZE * md->num_pages)) {return pa_offset + md->virt_addr + page - md->phys_addr; + } } +pr_warn ("Failed to find VA for GUID: %pUL, PA: 0x%llx" , guid, pa); +return 0 ; }
@@ -148,9 +152,15 @@ acpi_parse_prmt(union acpi_subtable_headers *header, const unsigned long end) th = &tm->handlers[cur_handler];guid_copy (&th->guid, (guid_t *)handler_info->handler_guid); - th->handler_addr = (void *)efi_pa_va_lookup (handler_info->handler_address); - th->static_data_buffer_addr =efi_pa_va_lookup (handler_info->static_data_buffer_address); - th->acpi_param_buffer_addr =efi_pa_va_lookup (handler_info->acpi_param_buffer_address); + th->handler_addr = + (void *)efi_pa_va_lookup (&th->guid, handler_info->handler_address); + + th->static_data_buffer_addr = +efi_pa_va_lookup (&th->guid, handler_info->static_data_buffer_address); + + th->acpi_param_buffer_addr = +efi_pa_va_lookup (&th->guid, handler_info->acpi_param_buffer_address); + }while (++cur_handler < tm->handler_count && (handler_info =get_next_handler (handler_info)));return 0 ;
@@ -253,6 +263,13 @@ static acpi_status acpi_platformrt_space_handler(u32 function,if (!handler || !module) goto invalid_guid; +if (!handler->handler_addr || + !handler->static_data_buffer_addr || + !handler->acpi_param_buffer_addr) { + buffer->prm_status =PRM_HANDLER_ERROR ; +return AE_OK ; + } +ACPI_COPY_NAMESEG (context.signature,"PRMC" ); context.revision =0x0 ; context.reserved =0x0 ;
drivers/acpi/resource.c +7 -0
@@ -538,6 +538,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = { DMI_MATCH(DMI_BOARD_NAME, "17U70P"), }, }, + { + /* LG Electronics 16T90SP */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"), + DMI_MATCH(DMI_BOARD_NAME, "16T90SP"), + }, + }, { } };
drivers/ata/libata-eh.c +1 -0
@@ -648,6 +648,7 @@ void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap,/* the scmd has an associated qc */ if (!(qc->flags &ATA_QCFLAG_EH )) {/* which hasn't failed yet, timeout */ +set_host_byte (scmd,DID_TIME_OUT ); qc->err_mask |=AC_ERR_TIMEOUT ; qc->flags |=ATA_QCFLAG_EH ; nr_timedout++;
drivers/cdrom/cdrom.c +1 -1
@@ -2313,7 +2313,7 @@ static int cdrom_ioctl_media_changed(struct cdrom_device_info *cdi,return -EINVAL ;/* Prevent arg from speculatively bypassing the length check */ -barrier_nospec (); + arg =array_index_nospec (arg, cdi->capacity); info =kmalloc (sizeof (*info),GFP_KERNEL );if (!info)
drivers/clk/rockchip/clk.c +1 -1
@@ -439,7 +439,7 @@ unsigned long rockchip_clk_find_max_clk_id(struct rockchip_clk_branch *list,if (list->id > max) max = list->id;if (list->child && list->child->id > max) - max = list->id; + max = list->child->id; }return max;
drivers/cpufreq/amd-pstate.c +10 -0
@@ -1281,11 +1281,21 @@ static int amd_pstate_register_driver(int mode)return -EINVAL ; cppc_state = mode; + + ret =amd_pstate_enable (true); +if (ret) { +pr_err ("failed to enable cppc during amd-pstate driver registration, return %d\n" , + ret); +amd_pstate_driver_cleanup (); +return ret; + } + ret =cpufreq_register_driver (current_pstate_driver);if (ret) {amd_pstate_driver_cleanup ();return ret; } +return 0 ; }
drivers/firewire/core-topology.c +1 -1
@@ -204,7 +204,7 @@ static struct fw_node *build_tree(struct fw_card *card, const u32 *sid, int self// the node->ports array where the parent node should be. Later, // when we handle the parent node, we fix up the reference. ++parent_count; - node->color = i; + node->color = port_index;break ;case PHY_PACKET_SELF_ID_PORT_STATUS_CHILD :
drivers/firmware/arm_scmi/driver.c +1 -3
@@ -2902,10 +2902,8 @@ static struct scmi_debug_info *scmi_debugfs_common_setup(struct scmi_info *info) dbg->top_dentry = top_dentry;if (devm_add_action_or_reset (info->dev, - scmi_debugfs_common_cleanup, dbg)) { -scmi_debugfs_common_cleanup (dbg); + scmi_debugfs_common_cleanup, dbg))return NULL ; - }return dbg; }
drivers/firmware/arm_scmi/mailbox.c +21 -11
@@ -24,6 +24,7 @@* @chan_platform_receiver: Optional Platform Receiver mailbox unidirectional channel * @cinfo: SCMI channel info * @shmem: Transmit/Receive shared memory area +* @chan_lock: Lock that prevents multiple xfers from being queued */ struct scmi_mailbox {struct mbox_client cl;
@@ -32,6 +33,7 @@ struct scmi_mailbox {struct mbox_chan *chan_platform_receiver;struct scmi_chan_info *cinfo;struct scmi_shared_mem __iomem *shmem; +struct mutex chan_lock; };#define client_to_scmi_mailbox (c) container_of(c, struct scmi_mailbox, cl)
@@ -255,6 +257,7 @@ static int mailbox_chan_setup(struct scmi_chan_info *cinfo, struct device *dev, cinfo->transport_info = smbox; smbox->cinfo = cinfo; +mutex_init (&smbox->chan_lock);return 0 ; }
@@ -284,13 +287,23 @@ static int mailbox_send_message(struct scmi_chan_info *cinfo,struct scmi_mailbox *smbox = cinfo->transport_info;int ret; - ret =mbox_send_message (smbox->chan, xfer); +/* +* The mailbox layer has its own queue. However the mailbox queue +* confuses the per message SCMI timeouts since the clock starts when +* the message is submitted into the mailbox queue. So when multiple +* messages are queued up the clock starts on all messages instead of +* only the one inflight. +*/ +mutex_lock (&smbox->chan_lock); -/* mbox_send_message returns non-negative value on success, so reset */ -if (ret >0 ) - ret =0 ; + ret =mbox_send_message (smbox->chan, xfer); +/* mbox_send_message returns non-negative value on success */ +if (ret <0 ) { +mutex_unlock (&smbox->chan_lock); +return ret; + } -return ret; +return 0 ; } static void mailbox_mark_txdone(struct scmi_chan_info *cinfo, int ret,
@@ -298,13 +311,10 @@ static void mailbox_mark_txdone(struct scmi_chan_info *cinfo, int ret, {struct scmi_mailbox *smbox = cinfo->transport_info; -/* -* NOTE: we might prefer not to need the mailbox ticker to manage the -* transfer queueing since the protocol layer queues things by itself. -* Unfortunately, we have to kick the mailbox framework after we have -* received our message. -*/ mbox_client_txdone (smbox->chan, ret); + +/* Release channel */ +mutex_unlock (&smbox->chan_lock); } static void mailbox_fetch_response(struct scmi_chan_info *cinfo,
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +12 -3
@@ -147,6 +147,7 @@ static union acpi_object *amdgpu_atif_call(struct amdgpu_atif *atif, struct acpi_buffer *params) {acpi_status status; +union acpi_object *obj;union acpi_object atif_arg_elements[2 ];struct acpi_object_list atif_arg;struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };
@@ -169,16 +170,24 @@ static union acpi_object *amdgpu_atif_call(struct amdgpu_atif *atif, status =acpi_evaluate_object (atif->handle,NULL , &atif_arg, &buffer); + obj = (union acpi_object *)buffer.pointer; -/* Fail only if calling the method fails and ATIF is supported */ +/* Fail if calling the method fails and ATIF is supported */ if (ACPI_FAILURE (status) && status !=AE_NOT_FOUND ) {DRM_DEBUG_DRIVER ("failed to evaluate ATIF got %s\n" ,acpi_format_exception (status)); -kfree (buffer.pointer); +kfree (obj);return NULL ; } -return buffer.pointer; +if (obj->type !=ACPI_TYPE_BUFFER ) { +DRM_DEBUG_DRIVER ("bad object returned from ATIF: %d\n" , + obj->type); +kfree (obj); +return NULL ; + } + +return obj; }/**
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +3 -2
@@ -1124,8 +1124,10 @@ int amdgpu_mes_add_ring(struct amdgpu_device *adev, int gang_id, r =amdgpu_ring_init (adev, ring,1024 ,NULL ,0 ,AMDGPU_RING_PRIO_DEFAULT ,NULL ); -if (r) +if (r) { +amdgpu_mes_unlock (&adev->mes); goto clean_up_memory; + }amdgpu_mes_ring_to_queue_props (adev, ring, &qprops);
@@ -1158,7 +1160,6 @@ int amdgpu_mes_add_ring(struct amdgpu_device *adev, int gang_id,amdgpu_ring_fini (ring); clean_up_memory:kfree (ring); -amdgpu_mes_unlock (&adev->mes);return r; }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +13 -0
@@ -44,6 +44,7 @@#include "dm_helpers.h" #include "ddc_service_types.h" +#include "clk_mgr.h" static u32 edid_extract_panel_id (struct edid *edid) {
@@ -1121,6 +1122,8 @@ bool dm_helpers_dp_handle_test_pattern_request(struct pipe_ctx *pipe_ctx =NULL ;struct amdgpu_dm_connector *aconnector = link->priv;struct drm_device *dev = aconnector->base.dev; +struct dc_state *dc_state = ctx->dc->current_state; +struct clk_mgr *clk_mgr = ctx->dc->clk_mgr;int i;for (i =0 ; i <MAX_PIPES ; i++) {
@@ -1221,6 +1224,16 @@ bool dm_helpers_dp_handle_test_pattern_request( pipe_ctx->stream->test_pattern.type = test_pattern; pipe_ctx->stream->test_pattern.color_space = test_pattern_color_space; +/* Temp W/A for compliance test failure */ + dc_state->bw_ctx.bw.dcn.clk.p_state_change_support = false; + dc_state->bw_ctx.bw.dcn.clk.dramclk_khz = clk_mgr->dc_mode_softmax_enabled ? + clk_mgr->bw_params->dc_mode_softmax_memclk : clk_mgr->bw_params->max_memclk_mhz; + dc_state->bw_ctx.bw.dcn.clk.idle_dramclk_khz = dc_state->bw_ctx.bw.dcn.clk.dramclk_khz; + ctx->dc->clk_mgr->funcs->update_clocks ( + ctx->dc->clk_mgr, + dc_state, + false); + dc_link_dp_set_test_pattern( (struct dc_link *) link, test_pattern,
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +2 -0
@@ -841,6 +841,8 @@ bool is_psr_su_specific_panel(struct dc_link *link) isPSRSUSupported = false; else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x03) isPSRSUSupported = false; + else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x01) + isPSRSUSupported = false; else if (dpcd_caps->psr_info.force_psrsu_cap == 0x1) isPSRSUSupported = true; }
drivers/gpu/drm/bridge/aux-bridge.c +2 -1
@@ -58,9 +58,10 @@ int drm_aux_bridge_register(struct device *parent) adev->id = ret; adev->name ="aux_bridge" ; adev->dev.parent = parent; - adev->dev.of_node =of_node_get (parent->of_node); adev->dev.release = drm_aux_bridge_release; +device_set_of_node_from_dev (&adev->dev, parent); + ret =auxiliary_device_init (adev);if (ret) {ida_free (&drm_aux_bridge_ida, adev->id);
drivers/gpu/drm/msm/adreno/a6xx_gpu.c +13 -3
@@ -101,9 +101,10 @@ static void get_stats_counter(struct msm_ringbuffer *ring, u32 counter, }static void a6xx_set_pagetable (struct a6xx_gpu *a6xx_gpu, -struct msm_ringbuffer *ring,struct msm_file_private *ctx) +struct msm_ringbuffer *ring,struct msm_gem_submit *submit) {bool sysprof =refcount_read (&a6xx_gpu->base.base.sysprof_active) >1 ; +struct msm_file_private *ctx = submit->queue->ctx;struct adreno_gpu *adreno_gpu = &a6xx_gpu->base;phys_addr_t ttbr;u32 asid;
@@ -115,6 +116,15 @@ static void a6xx_set_pagetable(struct a6xx_gpu *a6xx_gpu,if (msm_iommu_pagetable_params (ctx->aspace->mmu, &ttbr, &asid))return ; +if (adreno_gpu->info->family >=ADRENO_7XX_GEN1 ) { +/* Wait for previous submit to complete before continuing: */ +OUT_PKT7 (ring,CP_WAIT_TIMESTAMP ,4 ); +OUT_RING (ring,0 ); +OUT_RING (ring,lower_32_bits (rbmemptr (ring, fence))); +OUT_RING (ring,upper_32_bits (rbmemptr (ring, fence))); +OUT_RING (ring, submit->seqno -1 ); + } +if (!sysprof) {if (!adreno_is_a7xx (adreno_gpu)) {/* Turn off protected mode to write to special registers */
@@ -193,7 +203,7 @@ static void a6xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)struct msm_ringbuffer *ring = submit->ring;unsigned int i, ibs =0 ; -a6xx_set_pagetable (a6xx_gpu, ring, submit->queue->ctx); +a6xx_set_pagetable (a6xx_gpu, ring, submit);get_stats_counter (ring,REG_A6XX_RBBM_PERFCTR_CP (0 ),rbmemptr_stats (ring, index, cpcycles_start));
@@ -283,7 +293,7 @@ static void a7xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)OUT_PKT7 (ring,CP_THREAD_CONTROL ,1 );OUT_RING (ring,CP_THREAD_CONTROL_0_SYNC_THREADS |CP_SET_THREAD_BR ); -a6xx_set_pagetable (a6xx_gpu, ring, submit->queue->ctx); +a6xx_set_pagetable (a6xx_gpu, ring, submit);get_stats_counter (ring,REG_A7XX_RBBM_PERFCTR_CP (0 ),rbmemptr_stats (ring, index, cpcycles_start));
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +13 -7
@@ -711,12 +711,13 @@ void dpu_crtc_complete_commit(struct drm_crtc *crtc)_dpu_crtc_complete_flip (crtc); } -static void _dpu_crtc_setup_lm_bounds (struct drm_crtc *crtc, +static int _dpu_crtc_check_and_setup_lm_bounds (struct drm_crtc *crtc,struct drm_crtc_state *state) {struct dpu_crtc_state *cstate =to_dpu_crtc_state (state);struct drm_display_mode *adj_mode = &state->adjusted_mode;u32 crtc_split_width = adj_mode->hdisplay / cstate->num_mixers; +struct dpu_kms *dpu_kms =_dpu_crtc_get_kms (crtc);int i;for (i =0 ; i < cstate->num_mixers; i++) {
@@ -727,7 +728,12 @@ static void _dpu_crtc_setup_lm_bounds(struct drm_crtc *crtc, r->y2 = adj_mode->vdisplay;trace_dpu_crtc_setup_lm_bounds (DRMID (crtc), i, r); + +if (drm_rect_width (r) > dpu_kms->catalog->caps->max_mixer_width) +return -E2BIG ; } + +return 0 ; } static void _dpu_crtc_get_pcc_coeff(struct drm_crtc_state *state,
@@ -803,7 +809,7 @@ static void dpu_crtc_atomic_begin(struct drm_crtc *crtc,DRM_DEBUG_ATOMIC ("crtc%d\n" , crtc->base.id); -_dpu_crtc_setup_lm_bounds (crtc, crtc->state); +_dpu_crtc_check_and_setup_lm_bounds (crtc, crtc->state);/* encoder will trigger pending mask now */ drm_for_each_encoder_mask (encoder, crtc->dev, crtc->state->encoder_mask)
@@ -1091,9 +1097,6 @@ static void dpu_crtc_disable(struct drm_crtc *crtc,dpu_core_perf_crtc_update (crtc,0 ); -memset (cstate->mixers,0 ,sizeof (cstate->mixers)); - cstate->num_mixers =0 ; -/* disable clk & bw control until clk & bw properties are set */ cstate->bw_control = false; cstate->bw_split_vote = false;
@@ -1192,8 +1195,11 @@ static int dpu_crtc_atomic_check(struct drm_crtc *crtc,if (crtc_state->active_changed) crtc_state->mode_changed = true; -if (cstate->num_mixers) -_dpu_crtc_setup_lm_bounds (crtc, crtc_state); +if (cstate->num_mixers) { + rc =_dpu_crtc_check_and_setup_lm_bounds (crtc, crtc_state); +if (rc) +return rc; + }/* FIXME: move this to dpu_plane_atomic_check? */ drm_atomic_crtc_state_for_each_plane_state (plane, pstate, crtc_state) {
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +42 -26
115 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +5 -2
@@ -302,7 +302,7 @@ static void dpu_encoder_phys_vid_setup_timing_engine( intf_cfg.stream_sel =0 ;/* Don't care value for video mode */ intf_cfg.mode_3d =dpu_encoder_helper_get_3d_blend_mode (phys_enc); intf_cfg.dsc =dpu_encoder_helper_get_dsc (phys_enc); -if (phys_enc->hw_pp->merge_3d) +if (intf_cfg.mode_3d && phys_enc->hw_pp->merge_3d) intf_cfg.merge_3d = phys_enc->hw_pp->merge_3d->idx;spin_lock_irqsave (phys_enc->enc_spinlock, lock_flags);
@@ -440,10 +440,12 @@ static void dpu_encoder_phys_vid_enable(struct dpu_encoder_phys *phys_enc)struct dpu_hw_ctl *ctl;const struct msm_format *fmt;u32 fmt_fourcc; +u32 mode_3d; ctl = phys_enc->hw_ctl; fmt_fourcc =dpu_encoder_get_drm_fmt (phys_enc); fmt =mdp_get_format (&phys_enc->dpu_kms->base, fmt_fourcc,0 ); + mode_3d =dpu_encoder_helper_get_3d_blend_mode (phys_enc);DPU_DEBUG_VIDENC (phys_enc,"\n" );
@@ -466,7 +468,8 @@ static void dpu_encoder_phys_vid_enable(struct dpu_encoder_phys *phys_enc) goto skip_flush; ctl->ops.update_pending_flush_intf (ctl, phys_enc->hw_intf->idx); -if (ctl->ops.update_pending_flush_merge_3d && phys_enc->hw_pp->merge_3d) +if (mode_3d && ctl->ops.update_pending_flush_merge_3d && + phys_enc->hw_pp->merge_3d) ctl->ops.update_pending_flush_merge_3d (ctl, phys_enc->hw_pp->merge_3d->idx);if (ctl->ops.update_pending_flush_cdm && phys_enc->hw_cdm)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c +4 -1
@@ -275,6 +275,7 @@ static void _dpu_encoder_phys_wb_update_flush(struct dpu_encoder_phys *phys_enc)struct dpu_hw_pingpong *hw_pp;struct dpu_hw_cdm *hw_cdm;u32 pending_flush =0 ; +u32 mode_3d;if (!phys_enc)return ;
@@ -283,6 +284,7 @@ static void _dpu_encoder_phys_wb_update_flush(struct dpu_encoder_phys *phys_enc) hw_pp = phys_enc->hw_pp; hw_ctl = phys_enc->hw_ctl; hw_cdm = phys_enc->hw_cdm; + mode_3d =dpu_encoder_helper_get_3d_blend_mode (phys_enc);DPU_DEBUG ("[wb:%d]\n" , hw_wb->idx -WB_0 );
@@ -294,7 +296,8 @@ static void _dpu_encoder_phys_wb_update_flush(struct dpu_encoder_phys *phys_enc)if (hw_ctl->ops.update_pending_flush_wb) hw_ctl->ops.update_pending_flush_wb (hw_ctl, hw_wb->idx); -if (hw_ctl->ops.update_pending_flush_merge_3d && hw_pp && hw_pp->merge_3d) +if (mode_3d && hw_ctl->ops.update_pending_flush_merge_3d && + hw_pp && hw_pp->merge_3d) hw_ctl->ops.update_pending_flush_merge_3d (hw_ctl, hw_pp->merge_3d->idx);
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +10 -9
@@ -26,7 +26,7 @@ static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *b end_addr = base_addr + aligned_len;if (!(*reg)) - *reg =kzalloc (len_padded,GFP_KERNEL ); + *reg =kvzalloc (len_padded,GFP_KERNEL );if (*reg) dump_addr = *reg;
@@ -48,20 +48,21 @@ static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *b } } -static void msm_disp_state_print_regs (u32 **reg,u32 len,void __iomem *base_addr, -struct drm_printer *p) +static void msm_disp_state_print_regs (const u32 *dump_addr,u32 len, +void __iomem *base_addr,struct drm_printer *p) {int i; -u32 *dump_addr =NULL ;void __iomem *addr;u32 num_rows; +if (!dump_addr) { +drm_printf (p,"Registers not stored\n" ); +return ; + } + addr = base_addr; num_rows = len /REG_DUMP_ALIGN ; -if (*reg) - dump_addr = *reg; -for (i =0 ; i < num_rows; i++) { drm_printf(p, "0x%lx : %08x %08x %08x %08x\n", (unsigned long)(addr - base_addr),
@@ -89,7 +90,7 @@ void msm_disp_state_print(struct msm_disp_state *state, struct drm_printer *p)list_for_each_entry_safe (block, tmp, &state->blocks, node) {drm_printf (p,"====================%s================\n" , block->name); -msm_disp_state_print_regs (&block->state, block->size, block->base_addr, p); +msm_disp_state_print_regs (block->state, block->size, block->base_addr, p); }drm_printf (p,"===================dpu drm state================\n" );
@@ -161,7 +162,7 @@ void msm_disp_state_free(void *data)list_for_each_entry_safe (block, tmp, &disp_state->blocks, node) {list_del (&block->node); -kfree (block->state); +kvfree (block->state);kfree (block); }
drivers/gpu/drm/msm/dsi/dsi_host.c +2 -2
@@ -542,7 +542,7 @@ static unsigned long dsi_adjust_pclk_for_compression(const struct drm_display_moint new_htotal = mode->htotal - mode->hdisplay + new_hdisplay; -return new_htotal * mode->vtotal *drm_mode_vrefresh (mode); +return mult_frac (mode->clock *1000u , new_htotal, mode->htotal); } static unsigned long dsi_get_pclk_rate(const struct drm_display_mode *mode,
@@ -550,7 +550,7 @@ static unsigned long dsi_get_pclk_rate(const struct drm_display_mode *mode, {unsigned long pclk_rate; - pclk_rate = mode->clock *1000 ; + pclk_rate = mode->clock *1000u ;if (dsc) pclk_rate =dsi_adjust_pclk_for_compression (mode, dsc);
drivers/gpu/drm/panel/panel-himax-hx83102.c +6 -6
@@ -298,7 +298,7 @@ static int ivo_t109nw41_init(struct hx83102 *ctx)msleep (60 );hx83102_enable_extended_cmds (&dsi_ctx, true); -mipi_dsi_dcs_write_seq_multi (&dsi_ctx,HX83102_SETPOWER ,0x2c ,0xed ,0xed ,0x0f ,0xcf ,0x42 , +mipi_dsi_dcs_write_seq_multi (&dsi_ctx,HX83102_SETPOWER ,0x2c ,0xed ,0xed ,0x27 ,0xe7 ,0x52 ,0xf5 ,0x39 ,0x36 ,0x36 ,0x36 ,0x36 ,0x32 ,0x8b ,0x11 ,0x65 ,0x00 ,0x88 ,0xfa ,0xff ,0xff ,0x8f ,0xff ,0x08 ,0xd6 ,0x33 ); mipi_dsi_dcs_write_seq_multi(&dsi_ctx, HX83102_SETDISP, 0x00, 0x47, 0xb0, 0x80, 0x00, 0x12,
@@ -343,11 +343,11 @@ static int ivo_t109nw41_init(struct hx83102 *ctx)0xaa ,0xaa ,0xaa ,0xaa ,0xaa ,0xa0 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); -mipi_dsi_dcs_write_seq_multi (&dsi_ctx,HX83102_SETGMA ,0x04 ,0x04 ,0x06 ,0x0a ,0x0a ,0x05 , -0x12 ,0x14 ,0x17 ,0x13 ,0x2c ,0x33 ,0x39 ,0x4b ,0x4c ,0x56 ,0x61 ,0x78 , -0x7a ,0x41 ,0x50 ,0x68 ,0x73 ,0x04 ,0x04 ,0x06 ,0x0a ,0x0a ,0x05 ,0x12 , -0x14 ,0x17 ,0x13 ,0x2c ,0x33 ,0x39 ,0x4b ,0x4c ,0x56 ,0x61 ,0x78 ,0x7a , -0x41 ,0x50 ,0x68 ,0x73 ); +mipi_dsi_dcs_write_seq_multi (&dsi_ctx,HX83102_SETGMA ,0x00 ,0x07 ,0x10 ,0x17 ,0x1c ,0x33 , +0x48 ,0x50 ,0x57 ,0x50 ,0x68 ,0x6e ,0x71 ,0x7f ,0x81 ,0x8a ,0x8e ,0x9b , +0x9c ,0x4d ,0x56 ,0x5d ,0x73 ,0x00 ,0x07 ,0x10 ,0x17 ,0x1c ,0x33 ,0x48 , +0x50 ,0x57 ,0x50 ,0x68 ,0x6e ,0x71 ,0x7f ,0x81 ,0x8a ,0x8e ,0x9b ,0x9c , +0x4d ,0x56 ,0x5d ,0x73 );mipi_dsi_dcs_write_seq_multi (&dsi_ctx,HX83102_SETTP1 ,0x07 ,0x10 ,0x10 ,0x1a ,0x26 ,0x9e ,0x00 ,0x4f ,0xa0 ,0x14 ,0x14 ,0x00 ,0x00 ,0x00 ,0x00 ,0x12 ,0x0a ,0x02 ,0x02 ,0x00 ,0x33 ,0x02 ,0x04 ,0x18 ,0x01 );
drivers/gpu/drm/vboxvideo/hgsmi_base.c +9 -1
@@ -139,7 +139,15 @@ int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags, flags |=VBOX_MOUSE_POINTER_VISIBLE ; } - p =hgsmi_buffer_alloc (ctx,sizeof (*p) + pixel_len,HGSMI_CH_VBVA , +/* +* The 4 extra bytes come from switching struct vbva_mouse_pointer_shape +* from having a 4 bytes fixed array at the end to using a proper VLA +* at the end. These 4 extra bytes were not subtracted from sizeof(*p) +* before the switch to the VLA, so this way the behavior is unchanged. +* Chances are these 4 extra bytes are not necessary but they are kept +* to avoid regressions. +*/ + p =hgsmi_buffer_alloc (ctx,sizeof (*p) + pixel_len +4 ,HGSMI_CH_VBVA ,VBVA_MOUSE_POINTER_SHAPE );if (!p)return -ENOMEM ;
drivers/gpu/drm/vboxvideo/vboxvideo.h +1 -3
@@ -351,10 +351,8 @@ struct vbva_mouse_pointer_shape {* Bytes in the gap between the AND and the XOR mask are undefined. * XOR mask scanlines have no gap between them and size of XOR mask is: * xor_len = width * 4 * height. -* -* Preallocate 4 bytes for accessing actual data as p->data. */ -u8 data[4 ]; +u8 data[]; } __packed;/* pointer is visible */
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +4 -0
@@ -886,6 +886,10 @@ static int vmw_stdu_connector_atomic_check(struct drm_connector *conn,struct drm_crtc_state *new_crtc_state; conn_state =drm_atomic_get_connector_state (state, conn); + +if (IS_ERR (conn_state)) +return PTR_ERR (conn_state); + du =vmw_connector_to_stdu (conn);if (!conn_state->crtc)
drivers/gpu/drm/xe/xe_device.c +2 -2
@@ -960,13 +960,13 @@ void xe_device_declare_wedged(struct xe_device *xe)return ; } +xe_pm_runtime_get_noresume (xe); +if (drmm_add_action_or_reset (&xe->drm, xe_device_wedged_fini, xe)) {drm_err (&xe->drm,"Failed to register xe_device_wedged_fini clean-up. Although device is wedged.\n" );return ; } -xe_pm_runtime_get_noresume (xe); -if (!atomic_xchg (&xe->wedged.flag,1 )) { xe->needs_flr_on_fini = true; drm_err(&xe->drm,
drivers/gpu/drm/xe/xe_exec.c +4 -8
@@ -40,11 +40,6 @@* user knows an exec writes to a BO and reads from the BO in the next exec, it * is the user's responsibility to pass in / out fence between the two execs). * -* Implicit dependencies for external BOs are handled by using the dma-buf -* implicit dependency uAPI (TODO: add link). To make this works each exec must -* install the job's fence into the DMA_RESV_USAGE_WRITE slot of every external -* BO mapped in the VM. -* * We do not allow a user to trigger a bind at exec time rather we have a VM * bind IOCTL which uses the same in / out fence interface as exec. In that * sense, a VM bind is basically the same operation as an exec from the user
@@ -58,8 +53,8 @@* behind any pending kernel operations on any external BOs in VM or any BOs * private to the VM. This is accomplished by the rebinds waiting on BOs * DMA_RESV_USAGE_KERNEL slot (kernel ops) and kernel ops waiting on all BOs -* slots (inflight execs are in the DMA_RESV_USAGE_BOOKING for private BOs and -* in DMA_RESV_USAGE_WRITE for external BOs). +* slots (inflight execs are in the DMA_RESV_USAGE_BOOKKEEP for private BOs and +* for external BOs). * * Rebinds / dma-resv usage applies to non-compute mode VMs only as for compute * mode VMs we use preempt fences and a rebind worker (TODO: add link).
@@ -292,7 +287,8 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)xe_sched_job_arm (job);if (!xe_vm_in_lr_mode (vm))drm_gpuvm_resv_add_fence (&vm->gpuvm, exec, &job->drm.s_fence->finished, -DMA_RESV_USAGE_BOOKKEEP ,DMA_RESV_USAGE_WRITE ); +DMA_RESV_USAGE_BOOKKEEP , +DMA_RESV_USAGE_BOOKKEEP );for (i =0 ; i < num_syncs; i++) {xe_sync_entry_signal (&syncs[i], &job->drm.s_fence->finished);
drivers/gpu/drm/xe/xe_gpu_scheduler.h +2 -0
@@ -51,7 +51,9 @@ xe_sched_invalidate_job(struct xe_sched_job *job, int threshold)static inline void xe_sched_add_pending_job (struct xe_gpu_scheduler *sched,struct xe_sched_job *job) { +spin_lock (&sched->base.job_list_lock);list_add (&job->drm.list, &sched->base.pending_list); +spin_unlock (&sched->base.job_list_lock); } static inline
drivers/gpu/drm/xe/xe_gt_mcr.c +1 -1
@@ -407,7 +407,7 @@ void xe_gt_mcr_init(struct xe_gt *gt)if (gt->info.type ==XE_GT_TYPE_MEDIA ) {drm_WARN_ON (&xe->drm,MEDIA_VER (xe) <13 ); -if (MEDIA_VER (xe) >=20 ) { +if (MEDIA_VERx100 (xe) >=1301 ) { gt->steering[OADDRM ].ranges = xe2lpm_gpmxmt_steering_table; gt->steering[INSTANCE0 ].ranges = xe2lpm_instance0_steering_table; }else {
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c +13 -16
@@ -36,6 +36,15 @@ static long tlb_timeout_jiffies(struct xe_gt *gt)return hw_tlb_timeout +2 * delay; } +static void xe_gt_tlb_invalidation_fence_fini (struct xe_gt_tlb_invalidation_fence *fence) +{ +if (WARN_ON_ONCE (!fence->gt)) +return ; + +xe_pm_runtime_put (gt_to_xe (fence->gt)); + fence->gt =NULL ;/* fini() should be called once */ +} +static void __invalidation_fence_signal (struct xe_device *xe,struct xe_gt_tlb_invalidation_fence *fence) {
@@ -203,7 +212,7 @@ static int send_tlb_invalidation(struct xe_guc *guc, tlb_timeout_jiffies(gt)); }spin_unlock_irq (>->tlb_invalidation.pending_lock); - }else if (ret <0 ) { + }else {__invalidation_fence_signal (xe, fence); }if (!ret) {
@@ -265,10 +274,8 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)xe_gt_tlb_invalidation_fence_init (gt, &fence, true); ret =xe_gt_tlb_invalidation_guc (gt, &fence); -if (ret <0 ) { -xe_gt_tlb_invalidation_fence_fini (&fence); +if (ret)return ret; - }xe_gt_tlb_invalidation_fence_wait (&fence); }else if (xe_device_uc_enabled (xe) && !xe_device_wedged (xe)) {
@@ -494,7 +501,8 @@ static const struct dma_fence_ops invalidation_fence_ops = {* @stack: fence is stack variable * * Initialize TLB invalidation fence for use. xe_gt_tlb_invalidation_fence_fini -* must be called if fence is not signaled. +* will be automatically called when fence is signalled (all fences must signal), +* even on error. */ void xe_gt_tlb_invalidation_fence_init(struct xe_gt *gt, struct xe_gt_tlb_invalidation_fence *fence,
@@ -514,14 +522,3 @@ void xe_gt_tlb_invalidation_fence_init(struct xe_gt *gt,dma_fence_get (&fence->base); fence->gt = gt; } - -/** -* xe_gt_tlb_invalidation_fence_fini - Finalize TLB invalidation fence -* @fence: TLB invalidation fence to finalize -* -* Drop PM ref which fence took durinig init. -*/ -void xe_gt_tlb_invalidation_fence_fini (struct xe_gt_tlb_invalidation_fence *fence) -{ -xe_pm_runtime_put (gt_to_xe (fence->gt)); -}
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h +0 -1
@@ -28,7 +28,6 @@ int xe_guc_tlb_invalidation_done_handler(struct xe_guc *guc, u32 *msg, u32 len);void xe_gt_tlb_invalidation_fence_init (struct xe_gt *gt,struct xe_gt_tlb_invalidation_fence *fence,bool stack); -void xe_gt_tlb_invalidation_fence_fini (struct xe_gt_tlb_invalidation_fence *fence);static inline void xe_gt_tlb_invalidation_fence_wait (struct xe_gt_tlb_invalidation_fence *fence)
drivers/gpu/drm/xe/xe_guc_submit.c +5 -2
@@ -1101,10 +1101,13 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)/* * TDR has fired before free job worker. Common if exec queue -* immediately closed after last fence signaled. +* immediately closed after last fence signaled. Add back to pending +* list so job can be freed and kick scheduler ensuring free job is not +* lost. */ if (test_bit (DMA_FENCE_FLAG_SIGNALED_BIT , &job->fence->flags)) { -guc_exec_queue_free_job (drm_job); +xe_sched_add_pending_job (sched, job); +xe_sched_submission_start (sched);return DRM_GPU_SCHED_STAT_NOMINAL ; }
drivers/gpu/drm/xe/xe_vm.c +2 -6
@@ -3377,10 +3377,8 @@ int xe_vm_invalidate_vma(struct xe_vma *vma) ret =xe_gt_tlb_invalidation_vma (tile->primary_gt, &fence[fence_id], vma); -if (ret <0 ) { -xe_gt_tlb_invalidation_fence_fini (&fence[fence_id]); +if (ret) goto wait; - } ++fence_id;if (!tile->media_gt)
@@ -3392,10 +3390,8 @@ int xe_vm_invalidate_vma(struct xe_vma *vma) ret =xe_gt_tlb_invalidation_vma (tile->media_gt, &fence[fence_id], vma); -if (ret <0 ) { -xe_gt_tlb_invalidation_fence_fini (&fence[fence_id]); +if (ret) goto wait; - } ++fence_id; } }
drivers/hwmon/jc42.c +1 -1
@@ -417,7 +417,7 @@ static int jc42_detect(struct i2c_client *client, struct i2c_board_info *info)return -ENODEV ;if ((devid &TSE2004_DEVID_MASK ) ==TSE2004_DEVID && - (cap &0x00e7 ) !=0x00e7 ) + (cap &0x0062 ) !=0x0062 )return -ENODEV ;for (i =0 ; i <ARRAY_SIZE (jc42_chips); i++) {
drivers/iio/accel/bma400_core.c +2 -1
@@ -1219,7 +1219,8 @@ static int bma400_activity_event_en(struct bma400_data *data,static int bma400_tap_event_en (struct bma400_data *data,enum iio_event_direction dir,int state) { -unsigned int mask, field_value; +unsigned int mask; +unsigned int field_value =0 ;int ret;/*
drivers/iio/adc/Kconfig +2 -0
@@ -1486,6 +1486,8 @@ config TI_LMP92064 tristate "Texas Instruments LMP92064 ADC driver" depends on SPI select REGMAP_SPI + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER help Say yes here to build support for the LMP92064 Precision Current and Voltage sensor.
drivers/iio/frequency/Kconfig +17 -16
@@ -92,25 +92,26 @@ config ADMV1014 module will be called admv1014. config ADMV4420 - tristate "Analog Devices ADMV4420 K Band Downconverter" - depends on SPI - help - Say yes here to build support for Analog Devices K Band - Downconverter with integrated Fractional-N PLL and VCO. + tristate "Analog Devices ADMV4420 K Band Downconverter" + depends on SPI + select REGMAP_SPI + help + Say yes here to build support for Analog Devices K Band + Downconverter with integrated Fractional-N PLL and VCO. - To compile this driver as a module, choose M here: the - module will be called admv4420. + To compile this driver as a module, choose M here: the + module will be called admv4420. config ADRF6780 - tristate "Analog Devices ADRF6780 Microwave Upconverter" - depends on SPI - depends on COMMON_CLK - help - Say yes here to build support for Analog Devices ADRF6780 - 5.9 GHz to 23.6 GHz, Wideband, Microwave Upconverter. - - To compile this driver as a module, choose M here: the - module will be called adrf6780. + tristate "Analog Devices ADRF6780 Microwave Upconverter" + depends on SPI + depends on COMMON_CLK + help + Say yes here to build support for Analog Devices ADRF6780 + 5.9 GHz to 23.6 GHz, Wideband, Microwave Upconverter. + + To compile this driver as a module, choose M here: the + module will be called adrf6780. endmenu endmenu
drivers/infiniband/core/addr.c +2 -0
@@ -269,6 +269,8 @@ rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in)break ;#endif } +if (!ret && dev &&is_vlan_dev (dev)) + dev =vlan_dev_real_dev (dev);return ret ?ERR_PTR (ret) : dev; }
drivers/infiniband/hw/bnxt_re/hw_counters.c +1 -1
@@ -366,7 +366,7 @@ int bnxt_re_ib_get_hw_stats(struct ib_device *ibdev, goto done; } } -if (rdev->pacing.dbr_pacing) +if (rdev->pacing.dbr_pacing &&bnxt_qplib_is_chip_gen_p5_p7 (rdev->chip_ctx))bnxt_re_copy_db_pacing_stats (rdev, stats); }
drivers/infiniband/hw/bnxt_re/ib_verbs.h +1 -0
@@ -77,6 +77,7 @@ struct bnxt_re_srq {struct bnxt_qplib_srq qplib_srq;struct ib_umem *umem;spinlock_t lock;/* protect srq */ +void *uctx_srq_page; };struct bnxt_re_qp {
drivers/infiniband/hw/bnxt_re/main.c +19 -10
@@ -184,8 +184,11 @@ static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode)bnxt_re_set_db_offset (rdev); rc =bnxt_qplib_map_db_bar (&rdev->qplib_res); -if (rc) +if (rc) { +kfree (rdev->chip_ctx); + rdev->chip_ctx =NULL ;return rc; + }if (bnxt_qplib_determine_atomics (en_dev->pdev)) ibdev_info(&rdev->ibdev,
@@ -515,6 +518,7 @@ static bool is_dbr_fifo_full(struct bnxt_re_dev *rdev)static void __wait_for_fifo_occupancy_below_th (struct bnxt_re_dev *rdev) {struct bnxt_qplib_db_pacing_data *pacing_data = rdev->qplib_res.pacing_data; +u32 retry_fifo_check =1000 ;u32 fifo_occup;/* loop shouldn't run infintely as the occupancy usually goes
@@ -528,6 +532,14 @@ static void __wait_for_fifo_occupancy_below_th(struct bnxt_re_dev *rdev)if (fifo_occup < pacing_data->pacing_th)break ; +if (!retry_fifo_check--) { +dev_info_once (rdev_to_dev (rdev), +"%s: fifo_occup = 0x%xfifo_max_depth = 0x%x pacing_th = 0x%x\n" , + __func__, fifo_occup, pacing_data->fifo_max_depth, + pacing_data->pacing_th); +break ; + } + } }
@@ -1009,12 +1021,15 @@ static int bnxt_re_handle_unaffi_async_event(struct creq_func_eventstatic int bnxt_re_handle_qp_async_event (struct creq_qp_event *qp_event,struct bnxt_re_qp *qp) { - struct bnxt_re_srq *srq = container_of(qp->qplib_qp.srq, struct bnxt_re_srq, - qplib_srq);struct creq_qp_error_notification *err_event; +struct bnxt_re_srq *srq =NULL ;struct ib_event event = {};unsigned int flags; +if (qp->qplib_qp.srq) + srq = container_of(qp->qplib_qp.srq, struct bnxt_re_srq, + qplib_srq); +if (qp->qplib_qp.state ==CMDQ_MODIFY_QP_NEW_STATE_ERR &&rdma_is_kernel_res (&qp->ib_qp.res)) { flags =bnxt_re_lock_cqs (qp);
@@ -1242,15 +1257,9 @@ static int bnxt_re_cqn_handler(struct bnxt_qplib_nq *nq, { struct bnxt_re_cq *cq = container_of(handle, struct bnxt_re_cq, qplib_cq); -u32 *cq_ptr; -if (cq->ib_cq.comp_handler) { -if (cq->uctx_cq_page) { - cq_ptr = (u32 *)cq->uctx_cq_page; - *cq_ptr = cq->qplib_cq.toggle; - } +if (cq->ib_cq.comp_handler) (*cq->ib_cq.comp_handler)(&cq->ib_cq, cq->ib_cq.cq_context); - }return 0 ; }
drivers/infiniband/hw/bnxt_re/qplib_fp.c +16 -0
@@ -54,6 +54,10 @@#include "qplib_rcfw.h" #include "qplib_sp.h" #include "qplib_fp.h" +#include <rdma/ib_addr.h> +#include "bnxt_ulp.h" +#include "bnxt_re.h" +#include "ib_verbs.h" static void __clean_cq (struct bnxt_qplib_cq *cq,u64 qp);
@@ -323,6 +327,7 @@ static void bnxt_qplib_service_nq(struct tasklet_struct *t)case NQ_BASE_TYPE_CQ_NOTIFICATION : {struct nq_cn *nqcne = (struct nq_cn *)nqe; +struct bnxt_re_cq *cq_p; q_handle =le32_to_cpu (nqcne->cq_handle_low); q_handle |= (u64 )le32_to_cpu (nqcne->cq_handle_high)
@@ -333,6 +338,10 @@ static void bnxt_qplib_service_nq(struct tasklet_struct *t) cq->toggle = (le16_to_cpu (nqe->info10_type) &NQ_CN_TOGGLE_MASK ) >>NQ_CN_TOGGLE_SFT ; cq->dbinfo.toggle = cq->toggle; + cq_p = container_of(cq, struct bnxt_re_cq, qplib_cq); +if (cq_p->uctx_cq_page) + *((u32 *)cq_p->uctx_cq_page) = cq->toggle; +bnxt_qplib_armen_db (&cq->dbinfo,DBC_DBC_TYPE_CQ_ARMENA );spin_lock_bh (&cq->compl_lock);
@@ -347,6 +356,7 @@ static void bnxt_qplib_service_nq(struct tasklet_struct *t)case NQ_BASE_TYPE_SRQ_EVENT : {struct bnxt_qplib_srq *srq; +struct bnxt_re_srq *srq_p;struct nq_srq_event *nqsrqe = (struct nq_srq_event *)nqe;
@@ -354,6 +364,12 @@ static void bnxt_qplib_service_nq(struct tasklet_struct *t) q_handle |= (u64 )le32_to_cpu (nqsrqe->srq_handle_high) <<32 ; srq = (struct bnxt_qplib_srq *)q_handle; + srq->toggle = (le16_to_cpu (nqe->info10_type) &NQ_CN_TOGGLE_MASK ) + >>NQ_CN_TOGGLE_SFT ; + srq->dbinfo.toggle = srq->toggle; + srq_p = container_of(srq, struct bnxt_re_srq, qplib_srq); +if (srq_p->uctx_srq_page) + *((u32 *)srq_p->uctx_srq_page) = srq->toggle;bnxt_qplib_armen_db (&srq->dbinfo,DBC_DBC_TYPE_SRQ_ARMENA ); if (nq->srqn_handler(nq,
drivers/infiniband/hw/bnxt_re/qplib_fp.h +2 -1
@@ -105,6 +105,7 @@ struct bnxt_qplib_srq {struct bnxt_qplib_sg_info sg_info;u16 eventq_hw_ring_id;spinlock_t lock;/* protect SRQE link list */ +u8 toggle; };struct bnxt_qplib_sge {
@@ -169,7 +170,7 @@ struct bnxt_qplib_swqe { };u32 q_key;u32 dst_qp; -u16 avid; +u32 avid; } send;/* Send Raw Ethernet and QP1 */
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +1 -1
@@ -525,7 +525,7 @@ static int __bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,/* failed with status */ dev_err (&rcfw->pdev->dev,"cmdq[%#x]=%#x status %#x\n" , cookie, opcode, evnt->status); - rc = -EFAULT ; + rc = -EIO ; }return rc;
drivers/infiniband/hw/bnxt_re/qplib_res.c +5 -16
@@ -244,6 +244,8 @@ int bnxt_qplib_alloc_init_hwq(struct bnxt_qplib_hwq *hwq, sginfo.pgsize = npde * pg_size; sginfo.npages =1 ; rc =__alloc_pbl (res, &hwq->pbl[PBL_LVL_0 ], &sginfo); +if (rc) + goto fail;/* Alloc PBL pages */ sginfo.npages = npbl;
@@ -255,22 +257,9 @@ int bnxt_qplib_alloc_init_hwq(struct bnxt_qplib_hwq *hwq, dst_virt_ptr = (dma_addr_t **)hwq->pbl[PBL_LVL_0 ].pg_arr; src_phys_ptr = hwq->pbl[PBL_LVL_1 ].pg_map_arr; -if (hwq_attr->type ==HWQ_TYPE_MR ) { -/* For MR it is expected that we supply only 1 contigous -* page i.e only 1 entry in the PDL that will contain -* all the PBLs for the user supplied memory region -*/ -for (i =0 ; i < hwq->pbl[PBL_LVL_1 ].pg_count; - i++) - dst_virt_ptr[0 ][i] = src_phys_ptr[i] | - flag; - }else { -for (i =0 ; i < hwq->pbl[PBL_LVL_1 ].pg_count; - i++) - dst_virt_ptr[PTR_PG (i)][PTR_IDX (i)] = - src_phys_ptr[i] | -PTU_PDE_VALID ; - } +for (i =0 ; i < hwq->pbl[PBL_LVL_1 ].pg_count; i++) + dst_virt_ptr[0 ][i] = src_phys_ptr[i] | flag; +/* Alloc or init PTEs */ rc =__alloc_pbl (res, &hwq->pbl[PBL_LVL_2 ], hwq_attr->sginfo);
drivers/infiniband/hw/bnxt_re/qplib_sp.c +10 -1
@@ -137,6 +137,8 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, 6 : sb->max_sge; attr->max_cq =le32_to_cpu (sb->max_cq); attr->max_cq_wqes =le32_to_cpu (sb->max_cqe); +if (!bnxt_qplib_is_chip_gen_p7 (rcfw->res->cctx)) + attr->max_cq_wqes =min_t (u32,BNXT_QPLIB_MAX_CQ_WQES , attr->max_cq_wqes); attr->max_cq_sges = attr->max_qp_sges; attr->max_mr =le32_to_cpu (sb->max_mr); attr->max_mw =le32_to_cpu (sb->max_mw);
@@ -154,7 +156,14 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,if (!bnxt_qplib_is_chip_gen_p7 (rcfw->res->cctx)) attr->l2_db_size = (sb->l2_db_space_size +1 ) * (0x01 <<RCFW_DBR_BASE_PAGE_SHIFT ); - attr->max_sgid =BNXT_QPLIB_NUM_GIDS_SUPPORTED ; +/* +* Read the max gid supported by HW. +* For each entry in HW GID in HW table, we consume 2 +* GID entries in the kernel GID table. So max_gid reported +* to stack can be up to twice the value reported by the HW, up to 256 gids. +*/ + attr->max_sgid =le32_to_cpu (sb->max_gid); + attr->max_sgid =min_t (u32,BNXT_QPLIB_NUM_GIDS_SUPPORTED ,2 * attr->max_sgid); attr->dev_cap_flags =le16_to_cpu (sb->dev_cap_flags); attr->dev_cap_flags2 =le16_to_cpu (sb->dev_cap_ext_flags_2);
drivers/infiniband/hw/bnxt_re/qplib_sp.h +1 -0
@@ -55,6 +55,7 @@ struct bnxt_qplib_dev_attr {u32 max_qp_wqes;u32 max_qp_sges;u32 max_cq; +#define BNXT_QPLIB_MAX_CQ_WQES 0xfffffu32 max_cq_wqes;u32 max_cq_sges;u32 max_mr;
drivers/infiniband/hw/cxgb4/cm.c +4 -5
@@ -2086,7 +2086,7 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip, err = -ENOMEM ;if (n->dev->flags &IFF_LOOPBACK ) {if (iptype ==4 ) - pdev =ip_dev_find (&init_net, *(__be32 *)peer_ip); + pdev =__ip_dev_find (&init_net, *(__be32 *)peer_ip, false);else if (IS_ENABLED (CONFIG_IPV6 ))for_each_netdev (&init_net, pdev) { if (ipv6_chk_addr(&init_net,
@@ -2101,12 +2101,12 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip, err = -ENODEV ; goto out; } +if (is_vlan_dev (pdev)) + pdev =vlan_dev_real_dev (pdev); ep->l2t =cxgb4_l2t_get (cdev->rdev.lldi.l2t, n, pdev,rt_tos2priority (tos)); -if (!ep->l2t) { -dev_put (pdev); +if (!ep->l2t) goto out; - } ep->mtu = pdev->mtu; ep->tx_chan =cxgb4_port_chan (pdev); ep->smac_idx = ((struct port_info *)netdev_priv (pdev))->smt_idx;
@@ -2119,7 +2119,6 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip, ep->rss_qid = cdev->rdev.lldi.rxq_ids[cxgb4_port_idx (pdev) * step];set_tcp_window (ep, (struct port_info *)netdev_priv (pdev)); -dev_put (pdev); }else { pdev =get_real_dev (n->dev); ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
drivers/infiniband/hw/irdma/cm.c +1 -1
@@ -3631,7 +3631,7 @@ void irdma_free_lsmm_rsrc(struct irdma_qp *iwqp)/** * irdma_accept - registered call for connection to be accepted * @cm_id: cm information for passive connection -* @conn_param: accpet parameters +* @conn_param: accept parameters */ int irdma_accept (struct iw_cm_id *cm_id,struct iw_cm_conn_param *conn_param) {
drivers/infiniband/ulp/srpt/ib_srpt.c +68 -12
145 lines not on this page · raw message
drivers/irqchip/irq-renesas-rzg2l.c +14 -2
@@ -8,6 +8,7 @@*/ #include <linux/bitfield.h> +#include <linux/cleanup.h> #include <linux/clk.h> #include <linux/err.h> #include <linux/io.h>
@@ -530,12 +531,12 @@ static int rzg2l_irqc_parse_interrupts(struct rzg2l_irqc_priv *priv,static int rzg2l_irqc_common_init (struct device_node *node,struct device_node *parent,const struct irq_chip *irq_chip) { +struct platform_device *pdev =of_find_device_by_node (node); + struct device *dev __free(put_device) = pdev ? &pdev->dev : NULL;struct irq_domain *irq_domain, *parent_domain; -struct platform_device *pdev;struct reset_control *resetn;int ret; - pdev =of_find_device_by_node (node);if (!pdev)return -ENODEV ;
@@ -591,6 +592,17 @@ static int rzg2l_irqc_common_init(struct device_node *node, struct device_node *register_syscore_ops (&rzg2l_irqc_syscore_ops); +/* +* Prevent the cleanup function from invoking put_device by assigning +* NULL to dev. +* +* make coccicheck will complain about missing put_device calls, but +* those are false positives, as dev will be automatically "put" via +* __free_put_device on the failing path. +* On the successful path we don't actually want to "put" dev. +*/ + dev =NULL ; +return 0 ; pm_put:
drivers/irqchip/irq-riscv-imsic-platform.c +1 -1
@@ -340,7 +340,7 @@ int imsic_irqdomain_init(void) imsic->fwnode, global->hart_index_bits, global->guest_index_bits);pr_info ("%pfwP: group-index-bits: %d, group-index-shift: %d\n" , imsic->fwnode, global->group_index_bits, global->group_index_shift); -pr_info ("%pfwP: per-CPU IDs %d at base PPN %pa\n" , +pr_info ("%pfwP: per-CPU IDs %d at base address %pa\n" , imsic->fwnode, global->nr_ids, &global->base_addr);pr_info ("%pfwP: total %d interrupts available\n" , imsic->fwnode,num_possible_cpus () * (global->nr_ids -1 ));
drivers/md/raid10.c +5 -2
@@ -4055,9 +4055,12 @@ static int raid10_run(struct mddev *mddev) }if (!mddev_is_dm (conf->mddev)) { - ret =raid10_set_queue_limits (mddev); -if (ret) +int err =raid10_set_queue_limits (mddev); + +if (err) { + ret = err; goto out_free_conf; + } }/* need to check that every block has at least one working mirror */
drivers/net/dsa/microchip/ksz_common.c +11 -10
@@ -2579,26 +2579,27 @@ static u32 ksz_get_phy_flags(struct dsa_switch *ds, int port)return MICREL_KSZ8_P1_ERRATA ;break ;case KSZ8567_CHIP_ID : +/* KSZ8567R Errata DS80000752C Module 4 */ +case KSZ8765_CHIP_ID : +case KSZ8794_CHIP_ID : +case KSZ8795_CHIP_ID : +/* KSZ879x/KSZ877x/KSZ876x Errata DS80000687C Module 2 */ case KSZ9477_CHIP_ID : +/* KSZ9477S Errata DS80000754A Module 4 */ case KSZ9567_CHIP_ID : +/* KSZ9567S Errata DS80000756A Module 4 */ case KSZ9896_CHIP_ID : +/* KSZ9896C Errata DS80000757A Module 3 */ case KSZ9897_CHIP_ID : -/* KSZ9477 Errata DS80000754C -* -* Module 4: Energy Efficient Ethernet (EEE) feature select must -* be manually disabled +/* KSZ9897R Errata DS80000758C Module 4 */ +/* Energy Efficient Ethernet (EEE) feature select must be manually disabled * The EEE feature is enabled by default, but it is not fully * operational. It must be manually disabled through register * controls. If not disabled, the PHY ports can auto-negotiate * to enable EEE, and this feature can cause link drops when * linked to another device supporting EEE. * -* The same item appears in the errata for the KSZ9567, KSZ9896, -* and KSZ9897. -* -* A similar item appears in the errata for the KSZ8567, but -* provides an alternative workaround. For now, use the simple -* workaround of disabling the EEE feature for this device too. +* The same item appears in the errata for all switches above. */ return MICREL_NO_EEE ; }
drivers/net/dsa/mv88e6xxx/chip.c +1 -1
@@ -6347,7 +6347,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] = { .invalid_port_mask = BIT(1) | BIT(2) | BIT(8), .num_internal_phys = 5, .internal_phys_offset = 3, - .max_vid = 4095, + .max_vid = 8191, .max_sid = 63, .port_base_addr = 0x0, .phy_base_addr = 0x0,
drivers/net/dsa/mv88e6xxx/chip.h +2 -4
@@ -206,6 +206,7 @@ struct mv88e6xxx_gpio_ops;struct mv88e6xxx_avb_ops ;struct mv88e6xxx_ptp_ops ;struct mv88e6xxx_pcs_ops ; +struct mv88e6xxx_cc_coeffs ;struct mv88e6xxx_irq {u16 masked;
@@ -408,6 +409,7 @@ struct mv88e6xxx_chip {struct cyclecounter tstamp_cc;struct timecounter tstamp_tc;struct delayed_work overflow_work; +const struct mv88e6xxx_cc_coeffs *cc_coeffs;struct ptp_clock *ptp_clock;struct ptp_clock_info ptp_clock_info;
@@ -731,10 +733,6 @@ struct mv88e6xxx_ptp_ops {int arr1_sts_reg;int dep_sts_reg;u32 rx_filters; -u32 cc_shift; -u32 cc_mult; -u32 cc_mult_num; -u32 cc_mult_dem; };struct mv88e6xxx_pcs_ops {
drivers/net/dsa/mv88e6xxx/port.c +1 -0
@@ -1713,6 +1713,7 @@ int mv88e6393x_port_set_policy(struct mv88e6xxx_chip *chip, int port, ptr = shift /8 ; shift %=8 ; mask >>= ptr *8 ; + ptr <<=8 ; err =mv88e6393x_port_policy_read (chip, port, ptr, ®);if (err)
drivers/net/dsa/mv88e6xxx/ptp.c +75 -33
187 lines not on this page · raw message
drivers/net/dsa/vitesse-vsc73xx-core.c +0 -1
@@ -721,7 +721,6 @@ static int vsc73xx_setup(struct dsa_switch *ds)dev_info (vsc->dev,"set up the switch\n" ); - ds->untag_bridge_pvid = true; ds->max_num_bridges =DSA_TAG_8021Q_MAX_NUM_BRIDGES ;/* Issue RESET */
drivers/net/ethernet/aeroflex/greth.c +2 -1
@@ -484,7 +484,7 @@ greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev)if (unlikely (skb->len >MAX_FRAME_SIZE )) { dev->stats.tx_errors++; - goto out; + goto len_error; }/* Save skb pointer. */
@@ -575,6 +575,7 @@ greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev) map_error:if (net_ratelimit ())dev_warn (greth->dev,"Could not create TX DMA mapping\n" ); +len_error:dev_kfree_skb (skb); out:return err;
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c +1 -0
@@ -322,6 +322,7 @@ static netdev_tx_t bcmasp_xmit(struct sk_buff *skb, struct net_device *dev) }/* Rewind so we do not have a hole */ spb_index = intf->tx_spb_index; +dev_kfree_skb (skb);return NETDEV_TX_OK ; }
drivers/net/ethernet/broadcom/bcmsysport.c +1 -0
@@ -1359,6 +1359,7 @@ static netdev_tx_t bcm_sysport_xmit(struct sk_buff *skb,netif_err (priv, tx_err, dev,"DMA map failed at %p (len=%d)\n" , skb->data, skb_len); ret =NETDEV_TX_OK ; +dev_kfree_skb_any (skb); goto out; }
drivers/net/ethernet/broadcom/bnxt/bnxt.c +14 -8
@@ -2257,10 +2257,11 @@ static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,if (!bnxt_get_rx_ts_p5 (bp, &ts, cmpl_ts)) {struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; +unsigned long flags; -spin_lock_bh (&ptp->ptp_lock); +spin_lock_irqsave (&ptp->ptp_lock, flags); ns =timecounter_cyc2time (&ptp->tc, ts); -spin_unlock_bh (&ptp->ptp_lock); +spin_unlock_irqrestore (&ptp->ptp_lock, flags);memset (skb_hwtstamps (skb),0 ,sizeof (*skb_hwtstamps (skb)));skb_hwtstamps (skb)->hwtstamp =ns_to_ktime (ns);
@@ -2760,17 +2761,18 @@ static int bnxt_async_event_process(struct bnxt *bp,case ASYNC_EVENT_CMPL_PHC_UPDATE_EVENT_DATA1_FLAGS_PHC_RTC_UPDATE :if (BNXT_PTP_USE_RTC (bp)) {struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; +unsigned long flags;u64 ns;if (!ptp) goto async_event_process_exit; -spin_lock_bh (&ptp->ptp_lock); +spin_lock_irqsave (&ptp->ptp_lock, flags);bnxt_ptp_update_current_time (bp); ns = (((u64 )BNXT_EVENT_PHC_RTC_UPDATE (data1) <<BNXT_PHC_BITS ) | ptp->current_time);bnxt_ptp_rtc_timecounter_init (ptp, ns); -spin_unlock_bh (&ptp->ptp_lock); +spin_unlock_irqrestore (&ptp->ptp_lock, flags); }break ; }
@@ -13484,9 +13486,11 @@ static void bnxt_force_fw_reset(struct bnxt *bp)return ;if (ptp) { -spin_lock_bh (&ptp->ptp_lock); +unsigned long flags; + +spin_lock_irqsave (&ptp->ptp_lock, flags);set_bit (BNXT_STATE_IN_FW_RESET , &bp->state); -spin_unlock_bh (&ptp->ptp_lock); +spin_unlock_irqrestore (&ptp->ptp_lock, flags); }else {set_bit (BNXT_STATE_IN_FW_RESET , &bp->state); }
@@ -13551,9 +13555,11 @@ void bnxt_fw_reset(struct bnxt *bp)int n =0 , tmo;if (ptp) { -spin_lock_bh (&ptp->ptp_lock); +unsigned long flags; + +spin_lock_irqsave (&ptp->ptp_lock, flags);set_bit (BNXT_STATE_IN_FW_RESET , &bp->state); -spin_unlock_bh (&ptp->ptp_lock); +spin_unlock_irqrestore (&ptp->ptp_lock, flags); }else {set_bit (BNXT_STATE_IN_FW_RESET , &bp->state); }
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +42 -28
225 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h +7 -5
@@ -146,11 +146,13 @@ struct bnxt_ptp_cfg { };#if BITS_PER_LONG ==32 -#define BNXT_READ_TIME64 (ptp, dst, src) \ -do { \ - spin_lock_bh(&(ptp)->ptp_lock); \ - (dst) = (src); \ - spin_unlock_bh(&(ptp)->ptp_lock); \ +#define BNXT_READ_TIME64 (ptp, dst, src) \ +do { \ + unsigned long flags; \ + \ + spin_lock_irqsave(&(ptp)->ptp_lock, flags); \ + (dst) = (src); \ + spin_unlock_irqrestore(&(ptp)->ptp_lock, flags); \ } while (0)#else #define BNXT_READ_TIME64 (ptp, dst, src) \
drivers/net/ethernet/emulex/benet/be_main.c +5 -5
@@ -1381,10 +1381,8 @@ static netdev_tx_t be_xmit(struct sk_buff *skb, struct net_device *netdev)be_get_wrb_params_from_skb (adapter, skb, &wrb_params); wrb_cnt =be_xmit_enqueue (adapter, txo, skb, &wrb_params); -if (unlikely (!wrb_cnt)) { -dev_kfree_skb_any (skb); - goto drop; - } +if (unlikely (!wrb_cnt)) + goto drop_skb;/* if os2bmc is enabled and if the pkt is destined to bmc, * enqueue the pkt a 2nd time with mgmt bit set.
@@ -1393,7 +1391,7 @@ static netdev_tx_t be_xmit(struct sk_buff *skb, struct net_device *netdev)BE_WRB_F_SET (wrb_params.features,OS2BMC ,1 ); wrb_cnt =be_xmit_enqueue (adapter, txo, skb, &wrb_params);if (unlikely (!wrb_cnt)) - goto drop; + goto drop_skb;else skb_get (skb); }
@@ -1407,6 +1405,8 @@ static netdev_tx_t be_xmit(struct sk_buff *skb, struct net_device *netdev)be_xmit_flush (adapter, txo);return NETDEV_TX_OK ; +drop_skb: +dev_kfree_skb_any (skb); drop:tx_stats (txo)->tx_drv_drops++;/* Flush the already enqueued tx requests */
drivers/net/ethernet/freescale/fman/mac.c +51 -17
164 lines not on this page · raw message
drivers/net/ethernet/freescale/fman/mac.h +5 -1
@@ -19,12 +19,13 @@struct fman_mac ;struct mac_priv_s ; +#define PORT_NUM 2struct mac_device {void __iomem *vaddr;struct device *dev;struct resource *res;u8 addr[ETH_ALEN ]; -struct fman_port *port[2 ]; +struct fman_port *port[PORT_NUM ];struct phylink *phylink;struct phylink_config phylink_config;phy_interface_t phy_if;
@@ -52,6 +53,9 @@ struct mac_device {struct fman_mac *fman_mac;struct mac_priv_s *priv; + +struct device *fman_dev; +struct device *fman_port_devs[PORT_NUM ]; }; static inline struct mac_device
drivers/net/ethernet/i825xx/sun3_82586.c +1 -0
@@ -1012,6 +1012,7 @@ sun3_82586_send_packet(struct sk_buff *skb, struct net_device *dev)if (skb->len >XMIT_BUFF_SIZE ) {printk ("%s: Sorry, max. framelength is %d bytes. The length of your frame is %d bytes.\n" ,dev->name,XMIT_BUFF_SIZE ,skb->len); +dev_kfree_skb (skb);return NETDEV_TX_OK ; }
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c +59 -23
69 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eq.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +3 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_mirror.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/renesas/ravb_main.c +12 -13
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c +12 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/pci/pwrctl/pci-pwrctl-pwrseq.c +54 -4
58 lines not on this page · raw message
drivers/platform/x86/dell/dell-wmi-base.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/platform/x86/intel/pmc/core_ssram.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/reset/starfive/reset-starfive-jh71x0.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/usb/host/xhci-dbgtty.c +53 -20
73 lines not on this page · raw message
fs/9p/vfs_inode.c +82 -47
129 lines not on this page · raw message
fs/9p/vfs_inode_dotl.c +81 -31
112 lines not on this page · raw message
fs/nfsd/nfs4state.c +41 -9
50 lines not on this page · raw message
fs/udf/inode.c +134 -68
202 lines not on this page · raw message
fs/udf/truncate.c +34 -9
43 lines not on this page · raw message
kernel/bpf/verifier.c +58 -49
107 lines not on this page · raw message
kernel/trace/bpf_trace.c +19 -23
42 lines not on this page · raw message
kernel/trace/ring_buffer.c +26 -18
44 lines not on this page · raw message
mm/shmem.c +32 -23
55 lines not on this page · raw message
net/core/filter.c +20 -30
50 lines not on this page · raw message
net/vmw_vsock/virtio_transport_common.c +12 -2
Lines of this file are not shown. View the raw message.
net/xfrm/xfrm_policy.c +38 -12
50 lines not on this page · raw message
sound/pci/hda/patch_realtek.c +27 -21
48 lines not on this page · raw message
sound/soc/fsl/fsl_micfil.c +42 -1
43 lines not on this page · raw message
tools/testing/selftests/bpf/prog_tests/fill_link_info.c +6 -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.