Linux 5.7.7
Sasha Levin
maintainer-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I'm announcing the release of the 5.7.7 kernel.
All users of the 5.7 kernel series must upgrade.
The updated 5.7.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.7.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,
Sasha
Makefile | 2 +- arch/arm/boot/dts/am335x-pocketbeagle.dts | 1 - arch/arm/boot/dts/am33xx.dtsi | 4 +- arch/arm/boot/dts/bcm-nsp.dtsi | 10 +- arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 1 + arch/arm/boot/dts/bcm958522er.dts | 4 + arch/arm/boot/dts/bcm958525er.dts | 4 + arch/arm/boot/dts/bcm958525xmc.dts | 4 + arch/arm/boot/dts/bcm958622hr.dts | 4 + arch/arm/boot/dts/bcm958623hr.dts | 4 + arch/arm/boot/dts/bcm958625hr.dts | 4 + arch/arm/boot/dts/bcm958625k.dts | 4 + arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi | 13 --- .../boot/dts/imx6ul-kontron-n6x1x-som-common.dtsi | 13 +++ arch/arm/boot/dts/omap4-duovero-parlor.dts | 2 +- arch/arm/mach-bcm/Kconfig | 1 + arch/arm/mach-imx/pm-imx5.c | 6 +- arch/arm/mach-omap2/omap_hwmod.c | 2 +- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 4 +- arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 4 +- arch/arm64/kernel/fpsimd.c | 6 +- arch/arm64/kernel/perf_regs.c | 25 +++- arch/powerpc/mm/nohash/kaslr_booke.c | 1 + arch/riscv/include/asm/cmpxchg.h | 8 +- arch/riscv/kernel/sys_riscv.c | 6 + arch/s390/include/asm/vdso.h | 1 + arch/s390/kernel/asm-offsets.c | 2 +- arch/s390/kernel/entry.S | 2 +- arch/s390/kernel/ptrace.c | 83 ++++++++++--- arch/s390/kernel/time.c | 1 + arch/s390/kernel/vdso64/Makefile | 10 +- arch/s390/kernel/vdso64/clock_getres.S | 10 +- arch/sparc/kernel/ptrace_32.c | 9 +- arch/x86/boot/compressed/head_64.S | 11 +- arch/x86/include/asm/cpu.h | 5 + arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/include/asm/mwait.h | 2 - arch/x86/include/asm/processor.h | 3 +- arch/x86/include/asm/resctrl_sched.h | 3 + arch/x86/kernel/cpu/centaur.c | 1 + arch/x86/kernel/cpu/common.c | 51 +++----- arch/x86/kernel/cpu/cpu.h | 4 - arch/x86/kernel/cpu/resctrl/core.c | 29 +++++ arch/x86/kernel/cpu/resctrl/internal.h | 1 + arch/x86/kernel/cpu/resctrl/rdtgroup.c | 1 + arch/x86/kernel/cpu/umwait.c | 6 - arch/x86/kernel/cpu/zhaoxin.c | 1 + arch/x86/kvm/lapic.c | 1 + arch/x86/kvm/mmu.h | 2 +- arch/x86/kvm/mmu/mmu.c | 4 +- arch/x86/kvm/mmu/paging_tmpl.h | 7 +- arch/x86/kvm/vmx/vmx.c | 27 +---- arch/x86/kvm/x86.c | 4 +- arch/x86/lib/usercopy_64.c | 1 + arch/x86/power/cpu.c | 6 + block/bio-integrity.c | 1 - block/blk-mq.c | 4 +- drivers/acpi/acpi_configfs.c | 6 +- drivers/acpi/sysfs.c | 4 +- drivers/android/binder.c | 14 +-- drivers/ata/libata-scsi.c | 9 +- drivers/ata/sata_rcar.c | 11 +- drivers/base/regmap/regmap.c | 1 + drivers/block/loop.c | 8 +- drivers/bus/ti-sysc.c | 98 ++++++++++++---- drivers/char/hw_random/ks-sa-rng.c | 1 + drivers/clk/sifive/fu540-prci.c | 5 +- drivers/edac/amd64_edac.c | 2 + drivers/firmware/efi/esrt.c | 2 +- drivers/firmware/efi/libstub/file.c | 16 ++- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 6 +- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 1 + .../drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c | 6 +- .../drm/amd/display/modules/color/color_gamma.c | 2 +- drivers/gpu/drm/drm_fb_helper.c | 63 +++++++--- drivers/gpu/drm/panel/panel-simple.c | 2 + drivers/gpu/drm/radeon/ni_dpm.c | 2 +- drivers/gpu/drm/rcar-du/Kconfig | 1 + drivers/i2c/busses/i2c-fsi.c | 2 +- drivers/i2c/busses/i2c-tegra.c | 9 -- drivers/i2c/i2c-core-smbus.c | 7 ++ drivers/infiniband/core/cma.c | 18 +++ drivers/infiniband/core/mad.c | 3 +- drivers/infiniband/core/rdma_core.c | 36 +++--- drivers/infiniband/hw/efa/efa_verbs.c | 1 + drivers/infiniband/hw/hfi1/debugfs.c | 19 +-- drivers/infiniband/hw/qedr/qedr_iw_cm.c | 13 ++- drivers/infiniband/sw/rdmavt/qp.c | 6 +- drivers/infiniband/sw/siw/siw_qp_rx.c | 3 +- drivers/iommu/dmar.c | 3 +- drivers/iommu/intel-iommu.c | 18 ++- drivers/md/bcache/super.c | 22 +++- drivers/md/dm-writecache.c | 4 + drivers/misc/mei/hw-me-regs.h | 3 + drivers/misc/mei/hw-me.c | 70 ++++++++++- drivers/misc/mei/hw-me.h | 17 ++- drivers/misc/mei/pci-me.c | 17 +-- drivers/net/bareudp.c | 3 + drivers/net/dsa/bcm_sf2.c | 2 + drivers/net/ethernet/atheros/alx/main.c | 9 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 36 ++++-- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 5 + drivers/net/ethernet/broadcom/genet/bcmgenet.c | 8 +- drivers/net/ethernet/broadcom/tg3.c | 4 +- drivers/net/ethernet/cadence/macb_main.c | 128 +++++++++++++-------- drivers/net/ethernet/chelsio/cxgb4/l2t.c | 52 ++++----- drivers/net/ethernet/chelsio/cxgb4/sge.c | 23 ++-- drivers/net/ethernet/freescale/enetc/enetc.c | 4 +- drivers/net/ethernet/ibm/ibmveth.c | 2 +- drivers/net/ethernet/ibm/ibmvnic.c | 21 +++- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 4 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 4 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 8 +- .../net/ethernet/mellanox/mlxsw/spectrum_buffers.c | 2 +- .../net/ethernet/mellanox/mlxsw/spectrum_span.c | 2 +- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 21 +++- drivers/net/ethernet/qlogic/qed/qed_cxt.c | 21 +++- drivers/net/ethernet/qlogic/qed/qed_debug.c | 3 +- drivers/net/ethernet/qlogic/qed/qed_dev.c | 9 +- drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 2 - drivers/net/ethernet/qlogic/qed/qed_roce.c | 1 - drivers/net/ethernet/qlogic/qed/qed_vf.c | 23 +++- drivers/net/ethernet/qlogic/qede/qede_main.c | 3 +- drivers/net/ethernet/qlogic/qede/qede_ptp.c | 31 +++-- drivers/net/ethernet/qlogic/qede/qede_ptp.h | 2 +- drivers/net/ethernet/qlogic/qede/qede_rdma.c | 3 +- drivers/net/ethernet/realtek/r8169_main.c | 5 +- drivers/net/ethernet/rocker/rocker_main.c | 4 +- drivers/net/ethernet/socionext/netsec.c | 5 +- drivers/net/geneve.c | 1 + drivers/net/phy/Kconfig | 3 +- drivers/net/phy/mscc/mscc_macsec.c | 40 ++----- drivers/net/phy/phy_device.c | 6 +- drivers/net/phy/phylink.c | 45 +++++--- drivers/net/phy/smsc.c | 11 +- drivers/net/usb/ax88179_178a.c | 11 +- drivers/net/wireguard/device.c | 58 +++++----- drivers/net/wireguard/device.h | 3 +- drivers/net/wireguard/netlink.c | 14 ++- drivers/net/wireguard/receive.c | 10 +- drivers/net/wireguard/socket.c | 25 ++-- drivers/net/wireless/ath/wil6210/txrx.c | 39 ++----- drivers/nvdimm/region_devs.c | 14 +-- drivers/nvme/host/multipath.c | 12 +- drivers/nvme/target/core.c | 40 ++++--- drivers/of/of_mdio.c | 9 +- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 21 ++-- drivers/pinctrl/tegra/pinctrl-tegra.c | 4 +- drivers/regulator/da9063-regulator.c | 1 - drivers/regulator/pfuze100-regulator.c | 60 ++++++---- drivers/s390/net/qeth_core_main.c | 5 +- drivers/s390/scsi/zfcp_erp.c | 13 ++- drivers/scsi/lpfc/lpfc_init.c | 3 +- drivers/scsi/qla2xxx/qla_gs.c | 4 +- drivers/soc/imx/soc-imx8m.c | 8 +- drivers/spi/spi-fsl-dspi.c | 8 +- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 4 +- drivers/tty/hvc/hvc_console.c | 16 +-- drivers/usb/cdns3/ep0.c | 10 +- drivers/usb/cdns3/trace.h | 2 +- drivers/usb/class/cdc-acm.c | 2 + drivers/usb/core/quirks.c | 3 +- drivers/usb/dwc2/gadget.c | 6 - drivers/usb/dwc2/platform.c | 11 ++ drivers/usb/dwc3/dwc3-exynos.c | 9 -- drivers/usb/gadget/udc/mv_udc_core.c | 3 +- drivers/usb/host/ehci-exynos.c | 5 +- drivers/usb/host/ehci-pci.c | 7 ++ drivers/usb/host/ohci-sm501.c | 1 + drivers/usb/host/xhci-mtk.c | 5 +- drivers/usb/host/xhci.c | 9 +- drivers/usb/host/xhci.h | 2 +- drivers/usb/renesas_usbhs/fifo.c | 23 ++-- drivers/usb/renesas_usbhs/fifo.h | 2 +- drivers/usb/typec/mux/intel_pmc_mux.c | 13 ++- drivers/usb/typec/tcpm/tcpci_rt1711h.c | 31 ++--- drivers/video/fbdev/core/fbcon.c | 3 +- fs/afs/cell.c | 9 ++ fs/afs/internal.h | 2 +- fs/btrfs/block-group.c | 19 ++- fs/btrfs/ctree.h | 2 + fs/btrfs/file.c | 15 ++- fs/btrfs/inode.c | 39 +++++-- fs/btrfs/tree-log.c | 5 + fs/cifs/smb2ops.c | 12 ++ fs/erofs/zdata.h | 20 ++-- fs/io_uring.c | 9 +- fs/nfs/direct.c | 13 ++- fs/nfs/file.c | 1 + fs/nfs/flexfilelayout/flexfilelayout.c | 11 +- fs/ocfs2/dlmglue.c | 17 ++- fs/ocfs2/ocfs2.h | 1 + fs/ocfs2/ocfs2_fs.h | 4 +- fs/ocfs2/suballoc.c | 9 +- include/linux/intel-iommu.h | 1 + include/linux/netdevice.h | 2 +- include/linux/qed/qed_chain.h | 26 +++-- include/linux/syscalls.h | 2 +- include/linux/tpm_eventlog.h | 14 ++- include/net/sctp/constants.h | 8 +- include/net/sock.h | 1 - include/net/xfrm.h | 1 + include/uapi/linux/fb.h | 1 + kernel/bpf/cgroup.c | 53 +++++---- kernel/bpf/devmap.c | 10 +- kernel/dma/direct.c | 26 ++++- kernel/kprobes.c | 3 +- kernel/sched/core.c | 3 +- kernel/sched/deadline.c | 1 + kernel/sched/fair.c | 2 +- kernel/trace/blktrace.c | 13 +++ kernel/trace/ring_buffer.c | 2 +- kernel/trace/trace_boot.c | 8 +- kernel/trace/trace_events_trigger.c | 21 +++- lib/test_objagg.c | 4 +- mm/compaction.c | 17 ++- mm/memcontrol.c | 13 ++- mm/memory_hotplug.c | 13 ++- mm/slab.h | 4 +- mm/slab_common.c | 2 +- net/bridge/br_private.h | 2 +- net/core/dev.c | 9 ++ net/core/sock.c | 4 +- net/ethtool/common.c | 2 + net/ethtool/ioctl.c | 2 +- net/ipv4/fib_semantics.c | 2 +- net/ipv4/ip_tunnel.c | 14 ++- net/ipv4/tcp_cubic.c | 5 +- net/ipv4/tcp_input.c | 26 ++++- net/ipv6/ip6_gre.c | 9 +- net/ipv6/mcast.c | 1 + net/mptcp/options.c | 2 - net/mptcp/subflow.c | 4 +- net/netfilter/ipset/ip_set_core.c | 2 + net/netlink/genetlink.c | 28 ++--- net/openvswitch/actions.c | 9 +- net/rxrpc/call_accept.c | 7 ++ net/rxrpc/input.c | 7 +- net/sched/sch_cake.c | 58 +++++++--- net/sctp/associola.c | 5 +- net/sctp/bind_addr.c | 1 + net/sctp/protocol.c | 3 +- net/sunrpc/rpc_pipe.c | 1 + net/sunrpc/xdr.c | 4 + net/sunrpc/xprtrdma/rpc_rdma.c | 9 +- net/xfrm/xfrm_device.c | 4 +- samples/bpf/xdp_monitor_user.c | 8 +- samples/bpf/xdp_redirect_cpu_kern.c | 2 +- samples/bpf/xdp_redirect_cpu_user.c | 34 +++--- samples/bpf/xdp_rxq_info_user.c | 13 +-- scripts/Kbuild.include | 11 +- scripts/recordmcount.h | 98 +++++++++++++++- sound/pci/hda/patch_hdmi.c | 5 + sound/pci/hda/patch_realtek.c | 3 + sound/soc/fsl/fsl_ssi.c | 13 ++- sound/soc/qcom/common.c | 14 ++- sound/soc/qcom/qdsp6/q6afe.c | 8 ++ sound/soc/qcom/qdsp6/q6afe.h | 1 + sound/soc/qcom/qdsp6/q6asm.c | 7 +- sound/soc/rockchip/rockchip_pdm.c | 4 +- sound/soc/soc-pcm.c | 6 +- sound/usb/format.c | 6 +- sound/usb/mixer.c | 15 ++- sound/usb/mixer.h | 9 +- sound/usb/mixer_quirks.c | 3 +- sound/usb/pcm.c | 2 + sound/usb/quirks.c | 10 ++ tools/testing/selftests/bpf/progs/bpf_cubic.c | 5 +- tools/testing/selftests/net/so_txtime.c | 33 ++++-- tools/testing/selftests/powerpc/pmu/ebb/Makefile | 2 +- tools/testing/selftests/wireguard/netns.sh | 13 ++- 272 files changed, 1999 insertions(+), 1037 deletions(-)
Aaron Plattner (1):
ALSA: hda: Add NVIDIA codec IDs 9a & 9d through a0 to patch table
Adam Ford (1):
drm/panel-simple: fix connector type for LogicPD Type28 Display
Aditya Pakki (3):
rocker: fix incorrect error handling in dma_rings_init RDMA/rvt: Fix potential memory leak caused by rvt_alloc_rq
test_objagg: Fix potential memory leak in error handling
Al Cooper (1):
xhci: Fix enumeration issue when setting max packet size for FS devices.
Al Viro (1):
fix a braino in "sparc32: fix register window handling in genregs32_[gs]et()"
Alexander Lobakin (10):
net: ethtool: add missing string for NETIF_F_GSO_TUNNEL_REMCSUM
net: ethtool: add missing NETIF_F_GSO_FRAGLIST feature string
net: qed: fix left elements count calculation
net: qed: fix async event callbacks unregistering
net: qede: stop adding events on an already destroyed workqueue
net: qed: fix NVMe login fails over VFs
net: qed: fix excessive QM ILT lines consumption
net: qede: fix PTP initialization on recovery
net: qede: fix use-after-free on recovery and AER handling
net: qed: reset ILT block sizes before recomputing to fix crashes
Alexander Usyskin (1):
mei: me: add tiger lake point device ids for H platforms.
Anand Moon (1):
Revert "usb: dwc3: exynos: Add support for Exynos5422 suspend clk"
Anson Huang (1):
soc: imx8m: Correct i.MX8MP UID fuse offset
Ard Biesheuvel (1):
net: phy: mscc: avoid skcipher API for single block AES encryption
Arseny Solokha (1):
powerpc/fsl_booke/32: Fix build with CONFIG_RANDOMIZE_BASE
Arvind Sankar (1):
efi/x86: Setup stack correctly for efi_pe_entry
Babu Moger (1):
x86/resctrl: Fix memory bandwidth counter width for AMD
Ben Widawsky (1):
mm/memory_hotplug.c: fix false softlockup during pfn range removal
Bernard Zhao (1):
drm/amd: fix potential memleak in err branch
Borislav Petkov (1):
EDAC/amd64: Read back the scrub rate PCI register on F15h
Chaitanya Kulkarni (1):
nvmet: fail outstanding host posted AEN req
Charles Keepax (1):
regmap: Fix memory leak from regmap_register_patch
Christoffer Nielsen (1):
ALSA: usb-audio: Add registration quirk for Kingston HyperX Cloud Flight S
Christopher Swenson (1):
ALSA: usb-audio: Set 48 kHz rate for Rodecaster
Chuck Lever (2):
SUNRPC: Properly set the @subbuf parameter of xdr_buf_subsegment()
xprtrdma: Fix handling of RDMA_ERROR replies
Chuhong Yuan (1):
USB: ohci-sm501: Add missed iounmap() in remove
Claudiu Beznea (3):
net: macb: undo operations in case of failure
net: macb: call pm_runtime_put_sync on failure path
net: macb: free resources on failure path of at91ether_open()
Claudiu Manoil (1):
enetc: Fix tx rings bitmap iteration range, irq handling
Colin Ian King (1):
qed: add missing error test for DBG_STATUS_NO_MATCHING_FRAMING_MODE
Cong Wang (1):
genetlink: clean up family attributes allocations
Dan Carpenter (3):
x86/resctrl: Fix a NULL vs IS_ERR() static checker warning in rdt_cdp_peer_get()
usb: gadget: udc: Potential Oops in error handling code
Staging: rtl8723bs: prevent buffer overflow in update_sta_support_rate()
Daniel Gomez (1):
drm: rcar-du: Fix build error
Daniel Vetter (1):
drm/fb-helper: Fix vt restore
David Christensen (1):
tg3: driver sleeps indefinitely when EEH errors exceed eeh_max_freezes
David Howells (3):
rxrpc: Fix notification call on completion of discarded calls
rxrpc: Fix handling of rwind from an ACK packet
afs: Fix storage of cell names
David Milburn (1):
nvmet: cleanups the loop in nvmet_async_events_process
David Rientjes (3):
dma-direct: re-encrypt memory if dma_direct_alloc_pages() fails
dma-direct: check return value when encrypting or decrypting memory
dma-direct: add missing set_memory_decrypted() for coherent mapping
Dejin Zheng (1):
net: phy: smsc: fix printing too many logs
Denis Efremov (2):
drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp() drm/radeon: fix fb_div check in ni_init_smc_spll_table()
Denis Kirjanov (1):
tcp: don't ignore ECN CWR on pure ACK
Dennis Dalessandro (1):
IB/hfi1: Fix module use count flaw due to leftover module put calls
Dinghao Liu (1):
hwrng: ks-sa - Fix runtime PM imbalance on error
Dmitry Baryshkov (1):
pinctrl: qcom: spmi-gpio: fix warning about irq chip reusage
Doug Berger (1):
net: bcmgenet: use hardware padding of runt frames
Drew Fustini (1):
ARM: dts: am335x-pocketbeagle: Fix mmc0 Write Protect
Eddie James (1):
i2c: fsi: Fix the port number field in status register
Eric Dumazet (2):
net: increment xmit_recursion level in dev_direct_xmit()
tcp: grow window for OOO packets only for SACK flows
Fabian Vogt (1):
efi/tpm: Verify event log header before parsing
Fan Guo (1):
RDMA/mad: Fix possible memory leak in ib_mad_post_receive_mads()
Filipe Manana (7):
btrfs: fix a block group ref counter leak after failure to remove block group
btrfs: fix bytes_may_use underflow when running balance and scrub in parallel
btrfs: fix data block group relocation failure due to concurrent scrub
btrfs: check if a log root exists before locking the log_mutex on unlink
btrfs: fix hang on snapshot creation after RWF_NOWAIT write
btrfs: fix failure of RWF_NOWAIT write into prealloc extent beyond eof
btrfs: fix RWF_NOWAIT write not failling when we need to cow
Florian Fainelli (3):
net: phy: Check harder for errors in get_phy_id()
of: of_mdio: Correct loop scanning logic
net: dsa: bcm_sf2: Fix node reference count
Frieder Schrempf (2):
ARM: dts: imx6ul-kontron: Move watchdog from Kontron i.MX6UL/ULL board to SoM
ARM: dts: imx6ul-kontron: Change WDOG_ANY signal from push-pull to open-drain
Gal Pressman (1):
RDMA/efa: Set maximum pkeys device attribute
Gao Xiang (1):
erofs: fix partially uninitialized misuse in z_erofs_onlinepage_fixup
Gaurav Singh (2):
ethtool: Fix check in ethtool_rx_flow_rule_create bpf, xdp, samples: Fix null pointer dereference in *_user code
Geliang Tang (1):
mptcp: drop sndr_key in mptcp_syn_options
Greg Kroah-Hartman (1):
Revert "tty: hvc: Fix data abort due to race in hvc_open"
Harish (1):
selftests/powerpc: Fix build failure in ebb tests
Heikki Krogerus (1):
usb: typec: mux: intel_pmc_mux: Fix DP alternate mode entry
Heiner Kallweit (1):
r8169: fix firmware not resetting tp->ocp_base
Huaisheng Ye (1):
dm writecache: correct uncommitted_block when discarding uncommitted entry
Huy Nguyen (1):
xfrm: Fix double ESP trailer insertion in IPsec crypto offload.
Ido Schimmel (1):
mlxsw: spectrum: Do not rely on machine endianness
Igor Mammedov (1):
kvm: lapic: fix broken vcpu hotplug
Ilya Ponetayev (1):
sch_cake: don't try to reallocate or unshare skb unconditionally
Jason A. Donenfeld (5):
wireguard: device: avoid circular netns references
wireguard: receive: account for napi_gro_receive never returning GRO_DROP
socionext: account for napi_gro_receive never returning GRO_DROP
wil6210: account for napi_gro_receive never returning GRO_DROP
ACPI: configfs: Disallow loading ACPI tables when locked down
Jeremy Kerr (1):
net: usb: ax88179_178a: fix packet alignment padding
Jiping Ma (1):
arm64: perf: Report the PC value in REGS_ABI_32 mode
Jiri Slaby (1):
syscalls: Fix offset type of ksys_ftruncate()
Joakim Tjernlund (1):
cdc-acm: Add DISABLE_ECHO quirk for Microchip/SMSC chip
Johannes Weiner (1):
mm: memcontrol: handle div0 crash race condition in memory.low
John van der Kamp (1):
drm/amdgpu/display: Unlock mutex on error
Julian Wiedmann (1):
s390/qeth: fix error handling for isolation mode cmds
Junxiao Bi (4):
ocfs2: avoid inode removal while nfsd is accessing it
ocfs2: load global_inode_alloc
ocfs2: fix value of OCFS2_INVALID_SLOT
ocfs2: fix panic on nfs server over ocfs2
Juri Lelli (2):
sched/deadline: Initialize ->dl_boosted sched/core: Fix PI boosting between RT and DEADLINE tasks
Kai-Heng Feng (3):
xhci: Poll for U0 after disabling USB2 LPM
xhci: Return if xHCI doesn't support LPM
ALSA: hda/realtek: Add mute LED and micmute LED support for HP systems
Kees Cook (1):
x86/cpu: Use pinning mask for CR4 bits needing to be 0
Krzysztof Kozlowski (1):
spi: spi-fsl-dspi: Free DMA memory with matching function
Laurence Tratt (1):
ALSA: usb-audio: Add implicit feedback quirk for SSL2+.
Leon Romanovsky (1):
RDMA/core: Check that type_attrs is not NULL prior access
Li Jun (1):
usb: typec: tcpci_rt1711h: avoid screaming irq causing boot hangs
Longfang Liu (1):
USB: ehci: reopen solution for Synopsys HC bug
Lorenzo Bianconi (2):
openvswitch: take into account de-fragmentation/gso_size in execute_check_pkt_len samples/bpf: xdp_redirect_cpu: Set MAX_CPUS according to NR_CPUS
Lu Baolu (3):
iommu/vt-d: Set U/S bit in first level page table by default iommu/vt-d: Enable PCI ACS for platform opt in hint iommu/vt-d: Update scalable mode paging structure coherency
Luis Chamberlain (1):
blktrace: break out of blktrace setup on concurrent calls
Macpaul Lin (2):
usb: host: xhci-mtk: avoid runtime suspend when removing hcd
ALSA: usb-audio: add quirk for Samsung USBC Headset (AKG)
Mans Rullgard (1):
i2c: core: check returned size of emulated smbus block read
Marcelo Ricardo Leitner (1):
sctp: Don't advertise IPv4 addresses if ipv6only is set on the socket
Mark Zhang (1):
RDMA/cma: Protect bind_list and listen_list while finding matching cm id
Martin (1):
bareudp: Fixed multiproto mode configuration
Martin Fuzzey (1):
regulator: da9063: fix LDO9 suspend and warning.
Masahiro Yamada (1):
kbuild: improve cc-option to clean up all temporary files
Masami Hiramatsu (2):
kprobes: Suppress the suspicious RCU warning on kprobes
tracing: Fix event trigger to accept redundant spaces
Mathias Nyman (1):
xhci: Fix incorrect EP_STATE_MASK
Matt Fleming (1):
x86/asm/64: Align start of __clear_user() loop to 16-bytes
Matthew Hagan (3):
ARM: bcm: Select ARM_TIMER_SP804 for ARCH_BCM_NSP
ARM: dts: NSP: Disable PL330 by default, add dma-coherent property
ARM: dts: NSP: Correct FA2 mailbox node
Mauricio Faria de Oliveira (1):
bcache: check and adjust logical block size for backing devices
Michael Chan (3):
bnxt_en: Store the running firmware version code.
bnxt_en: Do not enable legacy TX push on older firmware.
bnxt_en: Fix statistics counters issue during ifdown with older firmware.
Michal Kalderon (1):
RDMA/qedr: Fix KASAN: use-after-free in ucma_event_handler+0x532
Mikulas Patocka (1):
dm writecache: add cond_resched to loop in persistent_memory_claim()
Minas Harutyunyan (1):
usb: dwc2: Postponed gadget registration to the udc class driver
Muchun Song (1):
mm/memcontrol.c: add missed css_put()
Nathan Chancellor (2):
s390/vdso: Use $(LD) instead of $(CC) to link vDSO
ACPI: sysfs: Fix pm_profile_attr type
Nathan Huckleberry (1):
riscv/atomic: Fix sign extension for RV64I
Navid Emamdoost (1):
sata_rcar: handle pm_runtime_get_sync failure cases
Neal Cardwell (2):
tcp_cubic: fix spurious HYSTART_DELAY exit upon drop in min RTT
bpf: tcp: bpf_cubic: fix spurious HYSTART_DELAY exit upon drop in min RTT
Olga Kornievskaia (1):
NFSv4 fix CLOSE not waiting for direct IO compeletion
Oskar Holmlund (2):
ARM: dts: Fix am33xx.dtsi USB ranges length
ARM: dts: Fix am33xx.dtsi ti,sysc-mask wrong softreset flag
Pavel Begunkov (1):
io_uring: fix hanging iopoll in case of -EAGAIN
Peter Chen (3):
usb: cdns3: trace: using correct dir value
usb: cdns3: ep0: fix the test mode set incorrectly
usb: cdns3: ep0: add spinlock for cdns3_check_new_setup
Philipp Fent (1):
efi/libstub: Fix path separator regression
Pierre-Louis Bossart (1):
ASoC: soc-pcm: fix checks for multi-cpu FE dailinks
Qiushi Wu (2):
efi/esrt: Fix reference count leak in esre_create_sysfs_entry.
ASoC: rockchip: Fix a reference count leak.
Rafał Miłecki (1):
ARM: dts: BCM5301X: Add missing memory "device_type" for Luxul XWC-2000
Rahul Lakkireddy (2):
cxgb4: move handling L2T ARP failures to caller
cxgb4: move PTP lock and unlock to caller in Tx path
Reinette Chatre (2):
x86/cpu: Move resctrl CPUID code to resctrl/ x86/resctrl: Support CPUID enumeration of MBM counter width
Robin Gong (3):
regualtor: pfuze100: correct sw1a/sw2 on pfuze3000
arm64: dts: imx8mm-evk: correct ldo1/ldo2 voltage range
arm64: dts: imx8mn-ddr4-evk: correct ldo1/ldo2 voltage range
Roman Bolshakov (1):
scsi: qla2xxx: Keep initiator ports after RSCN
Russell King (3):
net: phylink: fix ethtool -A with attached PHYs
net: phylink: ensure manual pause mode configuration takes effect
netfilter: ipset: fix unaligned atomic access
Sabrina Dubroca (1):
geneve: allow changing DF behavior after creation
Sagi Grimberg (1):
nvme: don't protect ns mutation with ns->head->lock
Sami Tolvanen (1):
recordmcount: support >64k sections
Sascha Ortmann (1):
tracing/boottime: Fix kprobe multiple events
Sasha Levin (1):
Linux 5.7.7
Sean Christopherson (3):
KVM: nVMX: Plumb L2 GPA through to PML emulation
KVM: VMX: Stop context switching MSR_IA32_UMWAIT_CONTROL x86/cpu: Reinitialize IA32_FEAT_CTL MSR on BSP during wakeup
SeongJae Park (1):
scsi: lpfc: Avoid another null dereference in lpfc_sli4_hba_unset()
Shannon Nelson (2):
ionic: update the queue count on open
ionic: tame the watchdog timer on reconfig
Shay Drory (1):
IB/mad: Fix use after free when destroying MAD agent
Shengjiu Wang (1):
ASoC: fsl_ssi: Fix bclk calculation for mono channel
Srinivas Kandagatla (3):
ASoC: q6asm: handle EOS correctly
ASoc: q6afe: add support to get port direction
ASoC: qcom: common: set correct directions for dailinks
Stanislav Fomichev (1):
bpf: Don't return EINVAL from {get,set}sockopt when optlen > PAGE_SIZE
Steffen Maier (1):
scsi: zfcp: Fix panic on ERP timeout for previously dismissed ERP action
Steven Rostedt (VMware) (1):
ring-buffer: Zero out time extend if it is nested and not absolute
Stylon Wang (1):
drm/amd/display: Enable output_bpc property on all outputs
Sven Auhagen (1):
mvpp2: ethtool rxtx stats fix
Sven Schnelle (4):
s390/seccomp: pass syscall arguments via seccomp_data s390/ptrace: return -ENOSYS when invalid syscall is supplied s390/ptrace: pass invalid syscall numbers to tracing s390/ptrace: fix setting syscall number
Taehee Yoo (3):
net: core: reduce recursion limit value
ip6_gre: fix use-after-free in ip6gre_tunnel_lookup()
ip_tunnel: fix use-after-free in ip_tunnel_lookup()
Takashi Iwai (3):
ALSA: usb-audio: Fix potential use-after-free of streams
ALSA: usb-audio: Fix OOB access of mixer element list
ALSA: hda/realtek - Add quirk for MSI GE63 laptop
Tang Bin (1):
usb: host: ehci-exynos: Fix error check in exynos_ehci_probe()
Tariq Toukan (1):
net: Do not clear the sock TX queue in sk_set_socket()
Thierry Reding (1):
Revert "i2c: tegra: Fix suspending in active runtime PM state"
Thomas Falcon (2):
ibmveth: Fix max MTU limit
ibmvnic: Harden device login requests
Thomas Martitz (1):
net: bridge: enfore alignment for ethernet address
Todd Kjos (1):
binder: fix null deref of proc->context
Toke Høiland-Jørgensen (3):
sch_cake: don't call diffserv parsing code when it is not needed
sch_cake: fix a few style nits
devmap: Use bpf_map_area_alloc() for allocating hash buckets
Tom Seewald (1):
RDMA/siw: Fix pointer-to-int-cast warning in siw_rx_pbl()
Tomas Winkler (1):
mei: me: disable mei interface on Mehlow server platforms
Tomasz Meresiński (1):
usb: add USB_QUIRK_DELAY_INIT for Logitech C922
Tomi Valkeinen (1):
drm/panel-simple: fix connector type for newhaven_nhd_43_480272ef_atxl
Tony Lindgren (6):
bus: ti-sysc: Flush posted write on enable and disable
bus: ti-sysc: Use optional clocks on for enable and wait for softreset bit
bus: ti-sysc: Ignore clockactivity unless specified as a quirk
bus: ti-sysc: Fix uninitialized framedonetv_irq
ARM: OMAP2+: Fix legacy mode dss_reset
ARM: dts: Fix duovero smsc interrupt for suspend
Trond Myklebust (1):
pNFS/flexfiles: Fix list corruption if the mirror count changes
Vasily Averin (1):
sunrpc: fixed rollback in rpc_gssd_dummy_populate()
Vasundhara Volam (1):
bnxt_en: Read VPD info only for PFs
Vidya Sagar (1):
pinctrl: tegra: Use noirq suspend/resume callbacks
Vincent Chen (1):
clk: sifive: allocate sufficient memory for struct __prci_data
Vincent Guittot (1):
sched/cfs: change initial value of runnable_avg
Vincenzo Frascino (1):
s390/vdso: fix vDSO clock_getres()
Vishal Verma (1):
nvdimm/region: always show the 'align' attribute
Vitaly Kuznetsov (1):
Revert "KVM: VMX: Micro-optimize vmexit time when not exposing PMU"
Vlastimil Babka (1):
mm, compaction: make capture control handling safe wrt interrupts
Waiman Long (2):
mm, slab: fix sign conversion problem in memcg_uncharge_slab() mm/slab: use memzero_explicit() in kzfree()
Wang Hai (1):
mld: fix memory leak in ipv6_mc_destroy_dev()
Wei Yongjun (1):
mptcp: fix memory leak in mptcp_subflow_create_socket()
Weiping Zhang (1):
block: update hctx map when use multiple maps
Wenhui Sheng (1):
drm/amdgpu: add fw release for sdma v5_0
Will Deacon (1):
arm64: sve: Fix build failure when ARM64_SVE=y and SYSCTL=n
Willem de Bruijn (1):
selftests/net: report etf errors correctly
Xiaoyao Li (1):
KVM: X86: Fix MSR range of APIC registers in X2APIC mode
Xiyu Yang (1):
cifs: Fix cached_fid refcnt leak in open_shroot
Yang Yingliang (1):
net: fix memleak in register_netdevice()
Yash Shah (1):
RISC-V: Don't allow write+exec only page mapping request in mmap
Ye Bin (1):
ata/libata: Fix usage of page address by page_address in ata_scsi_mode_select_xlat function
Yick W. Tse (1):
ALSA: usb-audio: add quirk for Denon DCD-1500RE
Yoshihiro Shimoda (1):
usb: renesas_usbhs: getting residue from callback_result
Zekun Shen (1):
net: alx: fix race condition in alx_remove
Zhang Xiaoxu (2):
cifs/smb3: Fix data inconsistent when punch hole cifs/smb3: Fix data inconsistent when zero file range
Zheng Bin (1):
loop: replace kill_bdev with invalidate_bdev
guodeqing (1):
net: Fix the arp error in some cases
yu kuai (2):
block/bio-integrity: don't free 'buf' if bio_integrity_add_page() failed
ARM: imx5: add missing put_device() call in imx_suspend_alloc_ocram()
-----BEGIN PGP SIGNATURE-----
iQIyBAEBCgAdFiEE4n5dijQDou9mhzu83qZv95d3LNwFAl78lgUACgkQ3qZv95d3 LNzHJw/0CqFMuGyCrICVrYEnVz77+EweEtyxKAIkWlM3HFttRhmmNXn2l6oxe1Lf hgjOUkqAO65TmzrDsmpG5JnUEeXVzi3UXy9Zkys38LUqri9lTRT0gOzeiNVI8aiv jZfOI2tbnal869c0ucCnfg/FORrBOoIBsqTN7hK9yJJN2K462niDnnUJaBJEmZ4N FFyHmIr4oj3V8ytq2RNEy1vAGrnVLFFJ5SjoOGFki/H+86YxoNq9xk2d+LxW//vM ficOjhgE5HItTyjo9HpV8fLLDZJa1UUAQKcJU48UjOSlIu3pDpn2xmACiNU9+M+x iequP7hKbqi3phtw/QenFYn4pp/smErIjpTNyG/APZnk0KxQepF9u9Jtc/ZJ3hZt e7gKsEGFEwSOLlTpSfrnLsCZ3gojbcP0KX76+gXt0doCNZgV8GGrZ3jLMXYgcV0b /fWUMvqhkoZLEqVVMeSt5MPTtHt8GnDghKF07i2DGCFAjfHUG+q7Hrv/IpPjclwH jrx1NWtNbMrXVrwlNSvY1zwvs4Rxw++kt1kvqV/5fz1vPY7X1Letlmq4ypxzsCzK nS0teYeDbLJkborUPDGCwIi54ypF5tDnX5JAIrZfSjoolJdLwZ9MR+PikhSDY57y ltJg+UrZKD1GO2UO4cBLq7nz/ij4c2rGi/YCbWeyyoOxKyIitw== =EZPb
-----END PGP SIGNATURE-----
Sasha Levin
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 7 -SUBLEVEL = 6 +SUBLEVEL = 7 EXTRAVERSION = NAME = Kleptomaniac Octopus
arch/arm/boot/dts/am335x-pocketbeagle.dts +0 -1
@@ -88,7 +88,6 @@ AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0) - AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKR, PIN_INPUT, MUX_MODE4) /* (B12) mcasp0_aclkr.mmc0_sdwp */ >; };
arch/arm/boot/dts/am33xx.dtsi +2 -2
@@ -335,7 +335,7 @@ <0x47400010 0x4>; reg-names = "rev", "sysc"; ti,sysc-mask = <(SYSC_OMAP4_FREEEMU | - SYSC_OMAP2_SOFTRESET)>; + SYSC_OMAP4_SOFTRESET)>; ti,sysc-midle = <SYSC_IDLE_FORCE>, <SYSC_IDLE_NO>, <SYSC_IDLE_SMART>;
@@ -347,7 +347,7 @@ clock-names = "fck"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0x47400000 0x5000>; + ranges = <0x0 0x47400000 0x8000>; usb0_phy: usb-phy@1300 { compatible = "ti,am335x-usb-phy";
arch/arm/boot/dts/bcm-nsp.dtsi +6 -4
@@ -200,7 +200,7 @@ status = "disabled"; }; - dma@20000 { + dma: dma@20000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x20000 0x1000>; interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
@@ -215,6 +215,8 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent; + status = "disabled"; }; sdio: sdhci@21000 {
@@ -257,10 +259,10 @@ status = "disabled"; }; - mailbox: mailbox@25000 { + mailbox: mailbox@25c00 { compatible = "brcm,iproc-fa2-mbox"; - reg = <0x25000 0x445>; - interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x25c00 0x400>; + interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>; #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr;
arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts +1 -0
@@ -17,6 +17,7 @@ }; memory { + device_type = "memory"; reg = <0x00000000 0x08000000 0x88000000 0x18000000>; };
arch/arm/boot/dts/bcm958522er.dts +4 -0
@@ -58,6 +58,10 @@ /* USB 3 support needed to be complete */ +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/bcm958525er.dts +4 -0
@@ -58,6 +58,10 @@ /* USB 3 support needed to be complete */ +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/bcm958525xmc.dts +4 -0
@@ -58,6 +58,10 @@ /* XHCI support needed to be complete */ +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/bcm958622hr.dts +4 -0
@@ -58,6 +58,10 @@ /* USB 3 and SLIC support needed to be complete */ +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/bcm958623hr.dts +4 -0
@@ -58,6 +58,10 @@ /* USB 3 and SLIC support needed to be complete */ +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/bcm958625hr.dts +4 -0
@@ -69,6 +69,10 @@ status = "okay"; }; +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/bcm958625k.dts +4 -0
@@ -48,6 +48,10 @@ }; }; +&dma { + status = "okay"; +}; + &amac0 { status = "okay"; };
arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi +0 -13
@@ -232,13 +232,6 @@ status = "okay"; }; -&wdog1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_wdog>; - fsl,ext-reset-output; - status = "okay"; -}; - &iomuxc { pinctrl-0 = <&pinctrl_reset_out &pinctrl_gpio>;
@@ -409,10 +402,4 @@ MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170f9 >; }; - - pinctrl_wdog: wdoggrp { - fsl,pins = < - MX6UL_PAD_GPIO1_IO09__WDOG1_WDOG_ANY 0x30b0 - >; - }; };
arch/arm/boot/dts/imx6ul-kontron-n6x1x-som-common.dtsi +13 -0
@@ -57,6 +57,13 @@ status = "okay"; }; +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; + status = "okay"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_out>;
@@ -106,4 +113,10 @@ MX6UL_PAD_SNVS_TAMPER9__GPIO5_IO09 0x1b0b0 >; }; + + pinctrl_wdog: wdoggrp { + fsl,pins = < + MX6UL_PAD_GPIO1_IO09__WDOG1_WDOG_ANY 0x18b0 + >; + }; };
arch/arm/boot/dts/omap4-duovero-parlor.dts +1 -1
@@ -139,7 +139,7 @@ ethernet@gpmc { reg = <5 0 0xff>; interrupt-parent = <&gpio2>; - interrupts = <12 IRQ_TYPE_EDGE_FALLING>; /* gpio_44 */ + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; /* gpio_44 */ phy-mode = "mii";
arch/arm/mach-bcm/Kconfig +1 -0
@@ -53,6 +53,7 @@ config ARCH_BCM_NSP select ARM_ERRATA_754322 select ARM_ERRATA_775420 select ARM_ERRATA_764369 if SMP + select ARM_TIMER_SP804 select THERMAL select THERMAL_OF help
arch/arm/mach-imx/pm-imx5.c +4 -2
@@ -295,14 +295,14 @@ static int __init imx_suspend_alloc_ocram(if (!ocram_pool) {pr_warn ("%s: ocram pool unavailable!\n" , __func__); ret = -ENODEV ; - goto put_node; + goto put_device; } ocram_base =gen_pool_alloc (ocram_pool, size);if (!ocram_base) {pr_warn ("%s: unable to alloc ocram!\n" , __func__); ret = -ENOMEM ; - goto put_node; + goto put_device; } phys =gen_pool_virt_to_phys (ocram_pool, ocram_base);
@@ -312,6 +312,8 @@ static int __init imx_suspend_alloc_ocram(if (virt_out) *virt_out = virt; +put_device: +put_device (&pdev->dev); put_node:of_node_put (node);
arch/arm/mach-omap2/omap_hwmod.c +1 -1
@@ -3489,7 +3489,7 @@ static const struct omap_hwmod_reset dra7_reset_quirks[] = { };static const struct omap_hwmod_reset omap_reset_quirks[] = { - { .match ="dss" , .len =3 , .reset = omap_dss_reset, }, + { .match ="dss_core" , .len =8 , .reset = omap_dss_reset, }, { .match ="hdq1w" , .len =5 , .reset = omap_hdq1w_reset, }, { .match ="i2c" , .len =3 , .reset = omap_i2c_reset, }, { .match ="wd_timer" , .len =8 , .reset = omap2_wd_timer_reset, },
arch/arm64/boot/dts/freescale/imx8mm-evk.dts +2 -2
@@ -196,7 +196,7 @@ ldo1_reg: LDO1 { regulator-name = "LDO1"; - regulator-min-microvolt = <3000000>; + regulator-min-microvolt = <1600000>; regulator-max-microvolt = <3300000>; regulator-boot-on; regulator-always-on;
@@ -204,7 +204,7 @@ ldo2_reg: LDO2 { regulator-name = "LDO2"; - regulator-min-microvolt = <900000>; + regulator-min-microvolt = <800000>; regulator-max-microvolt = <900000>; regulator-boot-on; regulator-always-on;
arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts +2 -2
@@ -101,7 +101,7 @@ ldo1_reg: LDO1 { regulator-name = "LDO1"; - regulator-min-microvolt = <3000000>; + regulator-min-microvolt = <1600000>; regulator-max-microvolt = <3300000>; regulator-boot-on; regulator-always-on;
@@ -109,7 +109,7 @@ ldo2_reg: LDO2 { regulator-name = "LDO2"; - regulator-min-microvolt = <900000>; + regulator-min-microvolt = <800000>; regulator-max-microvolt = <900000>; regulator-boot-on; regulator-always-on;
arch/arm64/kernel/fpsimd.c +3 -3
@@ -338,7 +338,7 @@ static unsigned int find_supported_vector_length(unsigned int vl)return sve_vl_from_vq (__bit_to_vq (bit)); } -#ifdef CONFIG_SYSCTL +#if defined(CONFIG_ARM64_SVE ) && defined(CONFIG_SYSCTL ) static int sve_proc_do_default_vl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp,
@@ -384,9 +384,9 @@ static int __init sve_sysctl_init(void) return 0; } -#else /* ! CONFIG_SYSCTL */ +#else /* ! (CONFIG_ARM64_SVE && CONFIG_SYSCTL) */ static int __init sve_sysctl_init (void ) {return 0 ; } -#endif /* ! CONFIG_SYSCTL */ +#endif /* ! (CONFIG_ARM64_SVE && CONFIG_SYSCTL) */ #define ZREG (sve_state, vq, n) ((char *)(sve_state) + \ (SVE_SIG_ZREG_OFFSET(vq, n) - SVE_SIG_REGS_OFFSET))
arch/arm64/kernel/perf_regs.c +22 -3
@@ -15,15 +15,34 @@ u64 perf_reg_value(struct pt_regs *regs, int idx)return 0 ;/* -* Compat (i.e. 32 bit) mode: -* - PC has been set in the pt_regs struct in kernel_entry, -* - Handle SP and LR here. +* Our handling of compat tasks (PERF_SAMPLE_REGS_ABI_32) is weird, but +* we're stuck with it for ABI compatability reasons. +* +* For a 32-bit consumer inspecting a 32-bit task, then it will look at +* the first 16 registers (see arch/arm/include/uapi/asm/perf_regs.h). +* These correspond directly to a prefix of the registers saved in our +* 'struct pt_regs', with the exception of the PC, so we copy that down +* (x15 corresponds to SP_hyp in the architecture). +* +* So far, so good. +* +* The oddity arises when a 64-bit consumer looks at a 32-bit task and +* asks for registers beyond PERF_REG_ARM_MAX. In this case, we return +* SP_usr, LR_usr and PC in the positions where the AArch64 SP, LR and +* PC registers would normally live. The initial idea was to allow a +* 64-bit unwinder to unwind a 32-bit task and, although it's not clear +* how well that works in practice, somebody might be relying on it. +* +* At the time we make a sample, we don't know whether the consumer is +* 32-bit or 64-bit, so we have to cater for both possibilities. */ if (compat_user_mode (regs)) {if ((u32 )idx ==PERF_REG_ARM64_SP )return regs->compat_sp;if ((u32 )idx ==PERF_REG_ARM64_LR )return regs->compat_lr; +if (idx ==15 ) +return regs->pc; }if ((u32 )idx ==PERF_REG_ARM64_SP )
arch/powerpc/mm/nohash/kaslr_booke.c +1 -0
@@ -14,6 +14,7 @@#include <linux/memblock.h> #include <linux/libfdt.h> #include <linux/crash_core.h> +#include <asm/cacheflush.h> #include <asm/pgalloc.h> #include <asm/prom.h> #include <asm/kdump.h>
arch/riscv/include/asm/cmpxchg.h +4 -4
@@ -179,7 +179,7 @@" bnez %1, 0b\n" \"1:\n" \ : "=&r" (__ret), "=&r" (__rc), "+A" (*__ptr) \ -: " rJ" (__old), " rJ" (__new) \ +: " rJ" ((long)__old), " rJ" (__new) \ : "memory"); \ break; \ case 8: \
@@ -224,7 +224,7 @@RISCV_ACQUIRE_BARRIER \"1:\n" \ : "=&r" (__ret), "=&r" (__rc), "+A" (*__ptr) \ -: " rJ" (__old), " rJ" (__new) \ +: " rJ" ((long)__old), " rJ" (__new) \ : "memory"); \ break; \ case 8: \
@@ -270,7 +270,7 @@" bnez %1, 0b\n" \"1:\n" \ : "=&r" (__ret), "=&r" (__rc), "+A" (*__ptr) \ -: " rJ" (__old), " rJ" (__new) \ +: " rJ" ((long)__old), " rJ" (__new) \ : "memory"); \ break; \ case 8: \
@@ -316,7 +316,7 @@" fence rw, rw\n" \"1:\n" \ : "=&r" (__ret), "=&r" (__rc), "+A" (*__ptr) \ -: " rJ" (__old), " rJ" (__new) \ +: " rJ" ((long)__old), " rJ" (__new) \ : "memory"); \ break; \ case 8: \
arch/riscv/kernel/sys_riscv.c +6 -0
@@ -8,6 +8,7 @@#include <linux/syscalls.h> #include <asm/unistd.h> #include <asm/cacheflush.h> +#include <asm-generic/mman-common.h> static long riscv_sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags,
@@ -16,6 +17,11 @@ static long riscv_sys_mmap(unsigned long addr, unsigned long len, {if (unlikely (offset & (~PAGE_MASK >> page_shift_offset)))return -EINVAL ; + +if ((prot &PROT_WRITE ) && (prot &PROT_EXEC )) +if (unlikely (!(prot &PROT_READ ))) +return -EINVAL ; +return ksys_mmap_pgoff (addr, len, prot, flags, fd, offset >> (PAGE_SHIFT - page_shift_offset)); }
arch/s390/include/asm/vdso.h +1 -0
@@ -36,6 +36,7 @@ struct vdso_data {__u32 tk_shift;/* Shift used for xtime_nsec 0x60 */ __u32 ts_dir;/* TOD steering direction 0x64 */ __u64 ts_end;/* TOD steering end 0x68 */ +__u32 hrtimer_res;/* hrtimer resolution 0x70 */ };struct vdso_per_cpu_data {
arch/s390/kernel/asm-offsets.c +1 -1
@@ -76,6 +76,7 @@ int main(void)OFFSET (__VDSO_TK_SHIFT, vdso_data, tk_shift);OFFSET (__VDSO_TS_DIR, vdso_data, ts_dir);OFFSET (__VDSO_TS_END, vdso_data, ts_end); +OFFSET (__VDSO_CLOCK_REALTIME_RES, vdso_data, hrtimer_res);OFFSET (__VDSO_ECTG_BASE, vdso_per_cpu_data, ectg_timer_base);OFFSET (__VDSO_ECTG_USER, vdso_per_cpu_data, ectg_user_time);OFFSET (__VDSO_GETCPU_VAL, vdso_per_cpu_data, getcpu_val);
@@ -86,7 +87,6 @@ int main(void)DEFINE (__CLOCK_REALTIME_COARSE,CLOCK_REALTIME_COARSE );DEFINE (__CLOCK_MONOTONIC_COARSE,CLOCK_MONOTONIC_COARSE );DEFINE (__CLOCK_THREAD_CPUTIME_ID,CLOCK_THREAD_CPUTIME_ID ); -DEFINE (__CLOCK_REALTIME_RES,MONOTONIC_RES_NSEC );DEFINE (__CLOCK_COARSE_RES,LOW_RES_NSEC );BLANK ();/* idle data offsets */
arch/s390/kernel/entry.S +1 -1
@@ -368,9 +368,9 @@ ENTRY(system_call) jnz .Lsysc_nr_ok # svc 0: system call number in %r1 llgfr %r1,%r1 # clear high word in r1 + sth %r1,__PT_INT_CODE+2(%r11) cghi %r1,NR_syscalls jnl .Lsysc_nr_ok - sth %r1,__PT_INT_CODE+2(%r11) slag %r8,%r1,3 .Lsysc_nr_ok: xc __SF_BACKCHAIN(8,%r15),__SF_BACKCHAIN(%r15)
arch/s390/kernel/ptrace.c +69 -14
135 lines not on this page · raw message
arch/s390/kernel/time.c +1 -0
@@ -301,6 +301,7 @@ void update_vsyscall(struct timekeeper *tk) vdso_data->tk_mult = tk->tkr_mono.mult; vdso_data->tk_shift = tk->tkr_mono.shift; + vdso_data->hrtimer_res = hrtimer_resolution;smp_wmb (); ++vdso_data->tb_update_count; }
arch/s390/kernel/vdso64/Makefile +4 -6
@@ -18,8 +18,8 @@ KBUILD_AFLAGS_64 += -m64 -s KBUILD_CFLAGS_64 := $(filter-out -m64,$(KBUILD_CFLAGS)) KBUILD_CFLAGS_64 += -m64 -fPIC -shared -fno-common -fno-builtin -KBUILD_CFLAGS_64 += -nostdlib -Wl,-soname=linux-vdso64.so.1 \ - -Wl,--hash-style=both +ldflags-y := -fPIC -shared -nostdlib -soname=linux-vdso64.so.1 \ + --hash-style=both --build-id -T $(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_64) $(targets:%=$(obj)/%.dbg): KBUILD_AFLAGS = $(KBUILD_AFLAGS_64)
@@ -37,8 +37,8 @@ KASAN_SANITIZE := n $(obj)/vdso64_wrapper.o : $(obj)/vdso64.so # link rule for the .so file, .lds has to be first -$(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) FORCE - $(call if_changed,vdso64ld) +$(obj)/vdso64.so.dbg: $(obj)/vdso64.lds $(obj-vdso64) FORCE + $(call if_changed,ld) # strip rule for the .so file $(obj)/%.so: OBJCOPYFLAGS := -S
@@ -50,8 +50,6 @@ $(obj-vdso64): %.o: %.S FORCE $(call if_changed_dep,vdso64as) # actual build commands -quiet_cmd_vdso64ld = VDSO64L $@ - cmd_vdso64ld = $(CC) $(c_flags) -Wl,-T $(filter %.lds %.o,$^) -o $@ quiet_cmd_vdso64as = VDSO64A $@ cmd_vdso64as = $(CC) $(a_flags) -c -o $@ $<
arch/s390/kernel/vdso64/clock_getres.S +5 -5
@@ -17,12 +17,14 @@ .type __kernel_clock_getres,@function __kernel_clock_getres: CFI_STARTPROC - larl %r1,4f + larl %r1,3f + lg %r0,0(%r1) cghi %r2,__CLOCK_REALTIME_COARSE je 0f cghi %r2,__CLOCK_MONOTONIC_COARSE je 0f - larl %r1,3f + larl %r1,_vdso_data + llgf %r0,__VDSO_CLOCK_REALTIME_RES(%r1) cghi %r2,__CLOCK_REALTIME je 0f cghi %r2,__CLOCK_MONOTONIC
@@ -36,7 +38,6 @@ __kernel_clock_getres: jz 2f 0: ltgr %r3,%r3 jz 1f /* res == NULL */ - lg %r0,0(%r1) xc 0(8,%r3),0(%r3) /* set tp->tv_sec to zero */ stg %r0,8(%r3) /* store tp->tv_usec */ 1: lghi %r2,0
@@ -45,6 +46,5 @@ __kernel_clock_getres: svc 0 br %r14 CFI_ENDPROC -3: .quad __CLOCK_REALTIME_RES -4: .quad __CLOCK_COARSE_RES +3: .quad __CLOCK_COARSE_RES .size __kernel_clock_getres,.-__kernel_clock_getres
arch/sparc/kernel/ptrace_32.c +7 -2
@@ -168,12 +168,17 @@ static int genregs32_set(struct task_struct *target,if (ret || !count)return ret; ret =user_regset_copyin (&pos, &count, &kbuf, &ubuf, - ®s->y, + ®s->npc,34 *sizeof (u32),35 *sizeof (u32));if (ret || !count)return ret; + ret =user_regset_copyin (&pos, &count, &kbuf, &ubuf, + ®s->y, +35 *sizeof (u32),36 *sizeof (u32)); +if (ret || !count) +return ret;return user_regset_copyin_ignore (&pos, &count, &kbuf, &ubuf, -35 *sizeof (u32),38 *sizeof (u32)); +36 *sizeof (u32),38 *sizeof (u32)); } static int fpregs32_get(struct task_struct *target,
arch/x86/boot/compressed/head_64.S +10 -1
@@ -213,7 +213,6 @@ SYM_FUNC_START(startup_32) * We place all of the values on our mini stack so lret can * used to perform that far jump. */ - pushl $__KERNEL_CS leal startup_64(%ebp), %eax #ifdef CONFIG_EFI_MIXED movl efi32_boot_args(%ebp), %edi
@@ -224,11 +223,20 @@ SYM_FUNC_START(startup_32) movl efi32_boot_args+8(%ebp), %edx // saved bootparams pointer cmpl $0, %edx jnz 1f + /* + * efi_pe_entry uses MS calling convention, which requires 32 bytes of + * shadow space on the stack even if all arguments are passed in + * registers. We also need an additional 8 bytes for the space that + * would be occupied by the return address, and this also results in + * the correct stack alignment for entry. + */ + subl $40, %esp leal efi_pe_entry(%ebp), %eax movl %edi, %ecx // MS calling convention movl %esi, %edx 1: #endif + pushl $__KERNEL_CS pushl %eax /* Enter paged protected Mode, activating Long Mode */
@@ -776,6 +784,7 @@ SYM_DATA_LOCAL(boot_heap, .fill BOOT_HEAP_SIZE, 1, 0) SYM_DATA_START_LOCAL(boot_stack) .fill BOOT_STACK_SIZE, 1, 0 + .balign 16 SYM_DATA_END_LABEL(boot_stack, SYM_L_LOCAL, boot_stack_end) /*
arch/x86/include/asm/cpu.h +5 -0
@@ -58,4 +58,9 @@ static inline bool handle_guest_split_lock(unsigned long ip)return false; }#endif +#ifdef CONFIG_IA32_FEAT_CTL +void init_ia32_feat_ctl (struct cpuinfo_x86 *c); +#else +static inline void init_ia32_feat_ctl (struct cpuinfo_x86 *c) {} +#endif #endif /* _ASM_X86_CPU_H */
arch/x86/include/asm/kvm_host.h +1 -1
@@ -1195,7 +1195,7 @@ struct kvm_x86_ops {void (*enable_log_dirty_pt_masked)(struct kvm *kvm,struct kvm_memory_slot *slot,gfn_t offset,unsigned long mask); -int (*write_log_dirty)(struct kvm_vcpu *vcpu); +int (*write_log_dirty)(struct kvm_vcpu *vcpu,gpa_t l2_gpa);/* pmu operations of sub-arch */ const struct kvm_pmu_ops *pmu_ops;
arch/x86/include/asm/mwait.h +0 -2
@@ -23,8 +23,6 @@#define MWAITX_MAX_LOOPS ((u32)-1)#define MWAITX_DISABLE_CSTATES 0xf0 -u32 get_umwait_control_msr (void ); -static inline void __monitor (const void *eax,unsigned long ecx,unsigned long edx) {
arch/x86/include/asm/processor.h +2 -1
@@ -113,9 +113,10 @@ struct cpuinfo_x86 {/* in KB - valid for CPUS which support this call: */ unsigned int x86_cache_size;int x86_cache_alignment;/* In bytes */ -/* Cache QoS architectural values: */ +/* Cache QoS architectural values, valid only on the BSP: */ int x86_cache_max_rmid;/* max index */ int x86_cache_occ_scale;/* scale to bytes */ +int x86_cache_mbm_width_offset;int x86_power;unsigned long loops_per_jiffy;/* cpuid returned max cores value: */
arch/x86/include/asm/resctrl_sched.h +3 -0
@@ -84,9 +84,12 @@ static inline void resctrl_sched_in(void) __resctrl_sched_in(); } +void resctrl_cpu_detect (struct cpuinfo_x86 *c); +#else static inline void resctrl_sched_in (void ) {} +static inline void resctrl_cpu_detect (struct cpuinfo_x86 *c) {}#endif /* CONFIG_X86_CPU_RESCTRL */
arch/x86/kernel/cpu/centaur.c +1 -0
@@ -3,6 +3,7 @@#include <linux/sched.h> #include <linux/sched/clock.h> +#include <asm/cpu.h> #include <asm/cpufeature.h> #include <asm/e820/api.h> #include <asm/mtrr.h>
arch/x86/kernel/cpu/common.c +14 -37
100 lines not on this page · raw message
arch/x86/kernel/cpu/cpu.h +0 -4
@@ -81,8 +81,4 @@ extern void update_srbds_msr(void);extern u64 x86_read_arch_cap_msr (void ); -#ifdef CONFIG_IA32_FEAT_CTL -void init_ia32_feat_ctl (struct cpuinfo_x86 *c); -#endif -#endif /* ARCH_X86_CPU_H */
arch/x86/kernel/cpu/resctrl/core.c +29 -0
@@ -958,6 +958,35 @@ static __init void rdt_init_res_defs(void)static enum cpuhp_state rdt_online; +void resctrl_cpu_detect (struct cpuinfo_x86 *c) +{ +if (!cpu_has (c,X86_FEATURE_CQM_LLC )) { + c->x86_cache_max_rmid =-1 ; + c->x86_cache_occ_scale =-1 ; + c->x86_cache_mbm_width_offset =-1 ; +return ; + } + +/* will be overridden if occupancy monitoring exists */ + c->x86_cache_max_rmid =cpuid_ebx (0xf ); + +if (cpu_has (c,X86_FEATURE_CQM_OCCUP_LLC ) || +cpu_has (c,X86_FEATURE_CQM_MBM_TOTAL ) || +cpu_has (c,X86_FEATURE_CQM_MBM_LOCAL )) { +u32 eax, ebx, ecx, edx; + +/* QoS sub-leaf, EAX=0Fh, ECX=1 */ +cpuid_count (0xf ,1 , &eax, &ebx, &ecx, &edx); + + c->x86_cache_max_rmid = ecx; + c->x86_cache_occ_scale = ebx; + c->x86_cache_mbm_width_offset = eax &0xff ; + +if (c->x86_vendor ==X86_VENDOR_AMD && !c->x86_cache_mbm_width_offset) + c->x86_cache_mbm_width_offset =MBM_CNTR_WIDTH_OFFSET_AMD ; + } +} +static int __init resctrl_late_init (void ) {struct rdt_resource *r;
arch/x86/kernel/cpu/resctrl/internal.h +1 -0
@@ -37,6 +37,7 @@#define MBA_IS_LINEAR 0x4#define MBA_MAX_MBPS U32_MAX#define MAX_MBA_BW_AMD 0x800 +#define MBM_CNTR_WIDTH_OFFSET_AMD 20#define RMID_VAL_ERROR BIT_ULL(63)#define RMID_VAL_UNAVAIL BIT_ULL(62)
arch/x86/kernel/cpu/resctrl/rdtgroup.c +1 -0
@@ -1117,6 +1117,7 @@ static int rdt_cdp_peer_get(struct rdt_resource *r, struct rdt_domain *d, _d_cdp =rdt_find_domain (_r_cdp, d->id,NULL );if (WARN_ON (IS_ERR_OR_NULL (_d_cdp))) { _r_cdp =NULL ; + _d_cdp =NULL ; ret = -EINVAL ; }
arch/x86/kernel/cpu/umwait.c +0 -6
@@ -18,12 +18,6 @@*/ static u32 umwait_control_cached =UMWAIT_CTRL_VAL (100000 ,UMWAIT_C02_ENABLE ); -u32 get_umwait_control_msr (void ) -{ -return umwait_control_cached; -} -EXPORT_SYMBOL_GPL (get_umwait_control_msr); -/* * Cache the original IA32_UMWAIT_CONTROL MSR value which is configured by * hardware or BIOS before kernel boot.
arch/x86/kernel/cpu/zhaoxin.c +1 -0
@@ -2,6 +2,7 @@#include <linux/sched.h> #include <linux/sched/clock.h> +#include <asm/cpu.h> #include <asm/cpufeature.h> #include "cpu.h"
arch/x86/kvm/lapic.c +1 -0
@@ -2512,6 +2512,7 @@ int kvm_apic_set_state(struct kvm_vcpu *vcpu, struct kvm_lapic_state *s) }memcpy (vcpu->arch.apic->regs, s->regs,sizeof (*s)); + apic->vcpu->kvm->arch.apic_map_dirty = true;kvm_recalculate_apic_map (vcpu->kvm);kvm_apic_set_version (vcpu);
arch/x86/kvm/mmu.h +1 -1
@@ -222,7 +222,7 @@ void kvm_mmu_gfn_disallow_lpage(struct kvm_memory_slot *slot, gfn_t gfn);void kvm_mmu_gfn_allow_lpage (struct kvm_memory_slot *slot,gfn_t gfn);bool kvm_mmu_slot_gfn_write_protect (struct kvm *kvm,struct kvm_memory_slot *slot,u64 gfn); -int kvm_arch_write_log_dirty (struct kvm_vcpu *vcpu); +int kvm_arch_write_log_dirty (struct kvm_vcpu *vcpu,gpa_t l2_gpa);int kvm_mmu_post_init_vm (struct kvm *kvm);void kvm_mmu_pre_destroy_vm (struct kvm *kvm);
arch/x86/kvm/mmu/mmu.c +2 -2
@@ -1746,10 +1746,10 @@ void kvm_arch_mmu_enable_log_dirty_pt_masked(struct kvm *kvm,* Emulate arch specific page modification logging for the * nested hypervisor */ -int kvm_arch_write_log_dirty (struct kvm_vcpu *vcpu) +int kvm_arch_write_log_dirty (struct kvm_vcpu *vcpu,gpa_t l2_gpa) {if (kvm_x86_ops.write_log_dirty) -return kvm_x86_ops.write_log_dirty (vcpu); +return kvm_x86_ops.write_log_dirty (vcpu, l2_gpa);return 0 ; }
arch/x86/kvm/mmu/paging_tmpl.h +4 -3
@@ -235,7 +235,7 @@ static inline unsigned FNAME(gpte_access)(u64 gpte)static int FNAME (update_accessed_dirty_bits )(struct kvm_vcpu *vcpu,struct kvm_mmu *mmu,struct guest_walker *walker, -int write_fault) +gpa_t addr,int write_fault) {unsigned level, index;pt_element_t pte, orig_pte;
@@ -260,7 +260,7 @@ static int FNAME(update_accessed_dirty_bits)(struct kvm_vcpu *vcpu, !(pte & PT_GUEST_DIRTY_MASK)) {trace_kvm_mmu_set_dirty_bit (table_gfn, index,sizeof (pte));#if PTTYPE ==PTTYPE_EPT -if (kvm_arch_write_log_dirty (vcpu)) +if (kvm_arch_write_log_dirty (vcpu, addr))return -EINVAL ;#endif pte |=PT_GUEST_DIRTY_MASK ;
@@ -457,7 +457,8 @@ retry_walk: (PT_GUEST_DIRTY_SHIFT -PT_GUEST_ACCESSED_SHIFT );if (unlikely (!accessed_dirty)) { - ret =FNAME (update_accessed_dirty_bits)(vcpu, mmu, walker, write_fault); + ret =FNAME (update_accessed_dirty_bits)(vcpu, mmu, walker, + addr, write_fault);if (unlikely (ret <0 )) goto error;else if (ret)
arch/x86/kvm/vmx/vmx.c +4 -23
@@ -6467,23 +6467,6 @@ static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx) msrs[i].host, false); } -static void atomic_switch_umwait_control_msr (struct vcpu_vmx *vmx) -{ -u32 host_umwait_control; - -if (!vmx_has_waitpkg (vmx)) -return ; - - host_umwait_control =get_umwait_control_msr (); - -if (vmx->msr_ia32_umwait_control != host_umwait_control) -add_atomic_switch_msr (vmx,MSR_IA32_UMWAIT_CONTROL , - vmx->msr_ia32_umwait_control, - host_umwait_control, false); -else -clear_atomic_switch_msr (vmx,MSR_IA32_UMWAIT_CONTROL ); -} -static void vmx_update_hv_timer (struct kvm_vcpu *vcpu) {struct vcpu_vmx *vmx =to_vmx (vcpu);
@@ -6575,9 +6558,7 @@ static void vmx_vcpu_run(struct kvm_vcpu *vcpu)pt_guest_enter (vmx); -if (vcpu_to_pmu (vcpu)->version) -atomic_switch_perf_msrs (vmx); -atomic_switch_umwait_control_msr (vmx); +atomic_switch_perf_msrs (vmx);if (enable_preemption_timer)vmx_update_hv_timer (vcpu);
@@ -7334,11 +7315,11 @@ static void vmx_flush_log_dirty(struct kvm *kvm)kvm_flush_pml_buffers (kvm); } -static int vmx_write_pml_buffer (struct kvm_vcpu *vcpu) +static int vmx_write_pml_buffer (struct kvm_vcpu *vcpu,gpa_t gpa) {struct vmcs12 *vmcs12;struct vcpu_vmx *vmx =to_vmx (vcpu); -gpa_t gpa, dst; +gpa_t dst;if (is_guest_mode (vcpu)) {WARN_ON_ONCE (vmx->nested.pml_full);
@@ -7357,7 +7338,7 @@ static int vmx_write_pml_buffer(struct kvm_vcpu *vcpu)return 1 ; } - gpa =vmcs_read64 (GUEST_PHYSICAL_ADDRESS ) & ~0xFFFull ; + gpa &= ~0xFFFull ; dst = vmcs12->pml_address +sizeof (u64) * vmcs12->guest_pml_index; if (kvm_write_guest_page(vcpu->kvm, gpa_to_gfn(dst), &gpa,
arch/x86/kvm/x86.c +2 -2
@@ -2784,7 +2784,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)return kvm_mtrr_set_msr (vcpu, msr, data);case MSR_IA32_APICBASE :return kvm_set_apic_base (vcpu, msr_info); - case APIC_BASE_MSR ... APIC_BASE_MSR + 0x3ff: + case APIC_BASE_MSR ... APIC_BASE_MSR + 0xff:return kvm_x2apic_msr_write (vcpu, msr, data);case MSR_IA32_TSCDEADLINE :kvm_set_lapic_tscdeadline_msr (vcpu, data);
@@ -3112,7 +3112,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)case MSR_IA32_APICBASE : msr_info->data =kvm_get_apic_base (vcpu);break ; - case APIC_BASE_MSR ... APIC_BASE_MSR + 0x3ff: + case APIC_BASE_MSR ... APIC_BASE_MSR + 0xff:return kvm_x2apic_msr_read (vcpu, msr_info->index, &msr_info->data);case MSR_IA32_TSCDEADLINE : msr_info->data =kvm_get_lapic_tscdeadline_msr (vcpu);
arch/x86/lib/usercopy_64.c +1 -0
@@ -24,6 +24,7 @@ unsigned long __clear_user(void __user *addr, unsigned long size) asmvolatile (" testq %[size8],%[size8]\n" " jz 4f\n" +" .align 16\n" "0: movq $0,(%[dst])\n" " addq $8,%[dst]\n" " decl %%ecx ; jnz 0b\n"
arch/x86/power/cpu.c +6 -0
@@ -193,6 +193,8 @@ static void fix_processor_context(void)*/ static void notrace __restore_processor_state(struct saved_context *ctxt) { +struct cpuinfo_x86 *c; +if (ctxt->misc_enable_saved)wrmsrl (MSR_IA32_MISC_ENABLE , ctxt->misc_enable);/*
@@ -263,6 +265,10 @@ static void notrace __restore_processor_state(struct saved_context *ctxt)mtrr_bp_restore ();perf_restore_debug_store ();msr_restore_context (ctxt); + + c = &cpu_data (smp_processor_id ()); +if (cpu_has (c,X86_FEATURE_MSR_IA32_FEAT_CTL )) +init_ia32_feat_ctl (c); }/* Needed by apm.c */
block/bio-integrity.c +0 -1
@@ -278,7 +278,6 @@ bool bio_integrity_prep(struct bio *bio)if (ret ==0 ) {printk (KERN_ERR "could not attach integrity payload\n" ); -kfree (buf); status =BLK_STS_RESOURCE ; goto err_end_io; }
block/blk-mq.c +3 -1
@@ -3328,7 +3328,9 @@ static void __blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set,if (set->nr_maps ==1 && nr_hw_queues > nr_cpu_ids) nr_hw_queues = nr_cpu_ids; -if (nr_hw_queues <1 || nr_hw_queues == set->nr_hw_queues) +if (nr_hw_queues <1 ) +return ; +if (set->nr_maps ==1 && nr_hw_queues == set->nr_hw_queues)return ;list_for_each_entry (q, &set->tag_list, tag_set_list)
drivers/acpi/acpi_configfs.c +5 -1
@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/configfs.h> #include <linux/acpi.h> +#include <linux/security.h> #include "acpica/accommon.h" #include "acpica/actables.h"
@@ -28,7 +29,10 @@ static ssize_t acpi_table_aml_write(struct config_item *cfg, {const struct acpi_table_header *header = data;struct acpi_table *table; -int ret; +int ret =security_locked_down (LOCKDOWN_ACPI_TABLES ); + +if (ret) +return ret; table = container_of(cfg, struct acpi_table, cfg);
drivers/acpi/sysfs.c +2 -2
@@ -938,13 +938,13 @@ static void __exit interrupt_stats_exit(void) }static ssize_t -acpi_show_profile (struct device *dev,struct device_attribute *attr, +acpi_show_profile (struct kobject *kobj,struct kobj_attribute *attr,char *buf) {return sprintf (buf,"%d\n" , acpi_gbl_FADT.preferred_profile); } -static const struct device_attribute pm_profile_attr = +static const struct kobj_attribute pm_profile_attr =__ATTR (pm_profile,S_IRUGO , acpi_show_profile,NULL ); static ssize_t hotplug_enabled_show(struct kobject *kobj,
drivers/android/binder.c +7 -7
@@ -4686,8 +4686,15 @@ static struct binder_thread *binder_get_thread(struct binder_proc *proc)static void binder_free_proc (struct binder_proc *proc) { +struct binder_device *device; +BUG_ON (!list_empty (&proc->todo));BUG_ON (!list_empty (&proc->delivered_death)); + device = container_of(proc->context, struct binder_device, context); +if (refcount_dec_and_test (&device->ref)) { +kfree (proc->context->name); +kfree (device); + }binder_alloc_deferred_release (&proc->alloc);put_task_struct (proc->tsk);binder_stats_deleted (BINDER_STAT_PROC );
@@ -5406,7 +5413,6 @@ static int binder_node_release(struct binder_node *node, int refs)static void binder_deferred_release (struct binder_proc *proc) {struct binder_context *context = proc->context; -struct binder_device *device;struct rb_node *n;int threads, nodes, incoming_refs, outgoing_refs, active_transactions;
@@ -5423,12 +5429,6 @@ static void binder_deferred_release(struct binder_proc *proc) context->binder_context_mgr_node =NULL ; }mutex_unlock (&context->context_mgr_node_lock); - device = container_of(proc->context, struct binder_device, context); -if (refcount_dec_and_test (&device->ref)) { -kfree (context->name); -kfree (device); - } - proc->context =NULL ;binder_inner_proc_lock (proc);/* * Make sure proc stays alive after we
drivers/ata/libata-scsi.c +6 -3
@@ -3692,12 +3692,13 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc) {struct scsi_cmnd *scmd = qc->scsicmd;const u8 *cdb = scmd->cmnd; -const u8 *p;u8 pg, spg;unsigned six_byte, pg_len, hdr_len, bd_len;int len;u16 fp = (u16)-1 ;u8 bp =0xff ; +u8 buffer[64 ]; +const u8 *p = buffer;VPRINTK ("ENTER\n" );
@@ -3731,12 +3732,14 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)if (!scsi_sg_count (scmd) ||scsi_sglist (scmd)->length < len) goto invalid_param_len; - p =page_address (sg_page (scsi_sglist (scmd))); -/* Move past header and block descriptors. */ if (len < hdr_len) goto invalid_param_len; +if (!sg_copy_to_buffer (scsi_sglist (scmd),scsi_sg_count (scmd), + buffer,sizeof (buffer))) + goto invalid_param_len; +if (six_byte) bd_len = p[3 ];else
drivers/ata/sata_rcar.c +7 -4
@@ -907,7 +907,7 @@ static int sata_rcar_probe(struct platform_device *pdev)pm_runtime_enable (dev); ret =pm_runtime_get_sync (dev);if (ret <0 ) - goto err_pm_disable; + goto err_pm_put; host =ata_host_alloc (dev,1 );if (!host) {
@@ -937,7 +937,6 @@ static int sata_rcar_probe(struct platform_device *pdev) err_pm_put:pm_runtime_put (dev); -err_pm_disable:pm_runtime_disable (dev);return ret; }
@@ -991,8 +990,10 @@ static int sata_rcar_resume(struct device *dev)int ret; ret =pm_runtime_get_sync (dev); -if (ret <0 ) +if (ret <0 ) { +pm_runtime_put (dev);return ret; + }if (priv->type ==RCAR_GEN3_SATA ) {sata_rcar_init_module (priv);
@@ -1017,8 +1018,10 @@ static int sata_rcar_restore(struct device *dev)int ret; ret =pm_runtime_get_sync (dev); -if (ret <0 ) +if (ret <0 ) { +pm_runtime_put (dev);return ret; + }sata_rcar_setup_port (host);
drivers/base/regmap/regmap.c +1 -0
@@ -1356,6 +1356,7 @@ void regmap_exit(struct regmap *map)if (map->hwlock)hwspin_lock_free (map->hwlock);kfree_const (map->name); +kfree (map->patch);kfree (map); }EXPORT_SYMBOL_GPL (regmap_exit);
drivers/block/loop.c +4 -4
@@ -1289,7 +1289,7 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)if (lo->lo_offset != info->lo_offset || lo->lo_sizelimit != info->lo_sizelimit) {sync_blockdev (lo->lo_device); -kill_bdev (lo->lo_device); +invalidate_bdev (lo->lo_device); }/* I/O need to be drained during transfer transition */
@@ -1320,7 +1320,7 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)if (lo->lo_offset != info->lo_offset || lo->lo_sizelimit != info->lo_sizelimit) { -/* kill_bdev should have truncated all the pages */ +/* invalidate_bdev should have truncated all the pages */ if (lo->lo_device->bd_inode->i_mapping->nrpages) { err = -EAGAIN ; pr_warn("%s: loop%d (%s) has still dirty pages (nrpages=%lu)\n",
@@ -1565,11 +1565,11 @@ static int loop_set_block_size(struct loop_device *lo, unsigned long arg)return 0 ;sync_blockdev (lo->lo_device); -kill_bdev (lo->lo_device); +invalidate_bdev (lo->lo_device);blk_mq_freeze_queue (lo->lo_queue); -/* kill_bdev should have truncated all the pages */ +/* invalidate_bdev should have truncated all the pages */ if (lo->lo_device->bd_inode->i_mapping->nrpages) { err = -EAGAIN ; pr_warn("%s: loop%d (%s) has still dirty pages (nrpages=%lu)\n",
drivers/bus/ti-sysc.c +74 -24
163 lines not on this page · raw message
drivers/char/hw_random/ks-sa-rng.c +1 -0
@@ -244,6 +244,7 @@ static int ks_sa_rng_probe(struct platform_device *pdev) ret =pm_runtime_get_sync (dev);if (ret <0 ) {dev_err (dev,"Failed to enable SA power-domain\n" ); +pm_runtime_put_noidle (dev);pm_runtime_disable (dev);return ret; }
drivers/clk/sifive/fu540-prci.c +4 -1
@@ -586,7 +586,10 @@ static int sifive_fu540_prci_probe(struct platform_device *pdev)struct __prci_data *pd;int r; - pd =devm_kzalloc (dev,sizeof (*pd),GFP_KERNEL ); + pd =devm_kzalloc (dev, +struct_size (pd, hw_clks.hws, +ARRAY_SIZE (__prci_init_clocks)), +GFP_KERNEL );if (!pd)return -ENOMEM ;
drivers/edac/amd64_edac.c +2 -0
@@ -272,6 +272,8 @@ static int get_scrub_rate(struct mem_ctl_info *mci)if (pvt->model ==0x60 )amd64_read_pci_cfg (pvt->F2,F15H_M60H_SCRCTRL , &scrubval); +else +amd64_read_pci_cfg (pvt->F3,SCRCTRL , &scrubval); }else {amd64_read_pci_cfg (pvt->F3,SCRCTRL , &scrubval); }
drivers/firmware/efi/esrt.c +1 -1
@@ -181,7 +181,7 @@ static int esre_create_sysfs_entry(void *esre, int entry_num) rc =kobject_init_and_add (&entry->kobj, &esre1_ktype,NULL ,"entry%d" , entry_num);if (rc) { -kfree (entry); +kobject_put (&entry->kobj);return rc; } }
drivers/firmware/efi/libstub/file.c +12 -4
@@ -104,12 +104,20 @@ static int find_file_option(const efi_char16_t *cmdline, int cmdline_len,if (!found)return 0 ; +/* Skip any leading slashes */ +while (cmdline[i] ==L'/' || cmdline[i] ==L'\\' ) + i++; +while (--result_len >0 && i < cmdline_len) { -if (cmdline[i] ==L'\0' || - cmdline[i] ==L'\n' || - cmdline[i] ==L' ' ) +efi_char16_t c = cmdline[i++]; + +if (c ==L'\0' || c ==L'\n' || c ==L' ' )break ; - *result++ = cmdline[i++]; +else if (c ==L'/' ) +/* Replace UNIX dir separators with EFI standard ones */ + *result++ =L'\\' ; +else + *result++ = c; } *result =L'\0' ;return i;
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +5 -1
@@ -1261,8 +1261,12 @@ static int sdma_v5_0_sw_fini(void *handle)struct amdgpu_device *adev = (struct amdgpu_device *)handle;int i; -for (i =0 ; i < adev->sdma.num_instances; i++) +for (i =0 ; i < adev->sdma.num_instances; i++) { +if (adev->sdma.instance[i].fw !=NULL ) +release_firmware (adev->sdma.instance[i].fw); +amdgpu_ring_fini (&adev->sdma.instance[i].ring); + }return 0 ; }
drivers/gpu/drm/amd/amdkfd/kfd_process.c +1 -0
@@ -396,6 +396,7 @@ struct kfd_process *kfd_create_process(struct file *filep) (int)process->lead_thread->pid);if (ret) {pr_warn ("Creating procfs pid directory failed" ); +kobject_put (process->kobj); goto out; }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +3 -1
@@ -1017,7 +1017,6 @@ static const struct { {"link_settings", &dp_link_settings_debugfs_fops}, {"phy_settings", &dp_phy_settings_debugfs_fop}, {"test_pattern", &dp_phy_test_pattern_fops}, - {"output_bpc", &output_bpc_fops}, {"vrr_range", &vrr_range_fops}, {"sdp_message", &sdp_message_fops}, {"aux_dpcd_address", &dp_dpcd_address_debugfs_fops},
@@ -1090,6 +1089,9 @@ void connector_debugfs_init(struct amdgpu_dm_connector *connector)debugfs_create_file_unsafe ("force_yuv420_output" ,0644 , dir, connector, &force_yuv420_output_fops); +debugfs_create_file ("output_bpc" ,0644 , dir, connector, + &output_bpc_fops); + connector->debugfs_dpcd_address =0 ; connector->debugfs_dpcd_size =0 ;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +4 -2
@@ -510,8 +510,10 @@ static ssize_t srm_data_read(struct file *filp, struct kobject *kobj, struct bin srm =psp_get_srm (work->hdcp.config.psp.handle, &srm_version, &srm_size); -if (!srm) -return -EINVAL ; +if (!srm) { + ret = -EINVAL ; + goto ret; + }if (pos >= srm_size) ret =0 ;
drivers/gpu/drm/amd/display/modules/color/color_gamma.c +1 -1
@@ -1777,7 +1777,7 @@ bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,kfree (rgb_regamma); rgb_regamma_alloc_fail: -kvfree (rgb_user); +kfree (rgb_user); rgb_user_alloc_fail:return ret; }
drivers/gpu/drm/drm_fb_helper.c +49 -14
93 lines not on this page · raw message
drivers/gpu/drm/panel/panel-simple.c +2 -0
@@ -2297,6 +2297,7 @@ static const struct panel_desc logicpd_type_28 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, };static const struct panel_desc mitsubishi_aa070mc01 = {
@@ -2465,6 +2466,7 @@ static const struct panel_desc newhaven_nhd_43_480272ef_atxl = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, };static const struct display_timing nlt_nl192108ac18_02d_timing = {
drivers/gpu/drm/radeon/ni_dpm.c +1 -1
@@ -2127,7 +2127,7 @@ static int ni_init_smc_spll_table(struct radeon_device *rdev)if (clk_s & ~(SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_MASK >>SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_SHIFT )) ret = -EINVAL ; -if (clk_s & ~(SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_MASK >>SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_SHIFT )) +if (fb_div & ~(SMC_NISLANDS_SPLL_DIV_TABLE_FBDIV_MASK >>SMC_NISLANDS_SPLL_DIV_TABLE_FBDIV_SHIFT )) ret = -EINVAL ;if (clk_v & ~(SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_MASK >>SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT ))
drivers/gpu/drm/rcar-du/Kconfig +1 -0
@@ -31,6 +31,7 @@ config DRM_RCAR_DW_HDMI config DRM_RCAR_LVDS tristate "R-Car DU LVDS Encoder Support" depends on DRM && DRM_BRIDGE && OF + select DRM_KMS_HELPER select DRM_PANEL select OF_FLATTREE select OF_OVERLAY
drivers/i2c/busses/i2c-fsi.c +1 -1
@@ -98,7 +98,7 @@#define I2C_STAT_DAT_REQ BIT(25)#define I2C_STAT_CMD_COMP BIT(24)#define I2C_STAT_STOP_ERR BIT(23) -#define I2C_STAT_MAX_PORT GENMASK(19, 16) +#define I2C_STAT_MAX_PORT GENMASK(22, 16)#define I2C_STAT_ANY_INT BIT(15)#define I2C_STAT_SCL_IN BIT(11)#define I2C_STAT_SDA_IN BIT(10)
drivers/i2c/busses/i2c-tegra.c +0 -9
@@ -1769,14 +1769,9 @@ static int tegra_i2c_remove(struct platform_device *pdev)static int __maybe_unused tegra_i2c_suspend (struct device *dev) {struct tegra_i2c_dev *i2c_dev =dev_get_drvdata (dev); -int err;i2c_mark_adapter_suspended (&i2c_dev->adapter); - err =pm_runtime_force_suspend (dev); -if (err <0 ) -return err; -return 0 ; }
@@ -1797,10 +1792,6 @@ static int __maybe_unused tegra_i2c_resume(struct device *dev)if (err)return err; - err =pm_runtime_force_resume (dev); -if (err <0 ) -return err; -i2c_mark_adapter_resumed (&i2c_dev->adapter);return 0 ;
drivers/i2c/i2c-core-smbus.c +7 -0
@@ -495,6 +495,13 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter *adapter, u16 addr,break ;case I2C_SMBUS_BLOCK_DATA :case I2C_SMBUS_BLOCK_PROC_CALL : +if (msg[1 ].buf[0 ] >I2C_SMBUS_BLOCK_MAX ) { +dev_err (&adapter->dev, +"Invalid block size returned: %d\n" , + msg[1 ].buf[0 ]); + status = -EPROTO ; + goto cleanup; + }for (i =0 ; i < msg[1 ].buf[0 ] +1 ; i++) data->block[i] = msg[1 ].buf[i];break ;
drivers/infiniband/core/cma.c +18 -0
@@ -1619,6 +1619,8 @@ static struct rdma_id_private *cma_find_listener( {struct rdma_id_private *id_priv, *id_priv_dev; +lockdep_assert_held (&lock); +if (!bind_list)return ERR_PTR (-EINVAL );
@@ -1665,6 +1667,7 @@ cma_ib_id_from_event(struct ib_cm_id *cm_id, } } +mutex_lock (&lock);/* * Net namespace might be getting deleted while route lookup, * cm_id lookup is in progress. Therefore, perform netdevice
@@ -1706,6 +1709,7 @@ cma_ib_id_from_event(struct ib_cm_id *cm_id, id_priv =cma_find_listener (bind_list, cm_id, ib_event, req, *net_dev); err:rcu_read_unlock (); +mutex_unlock (&lock);if (IS_ERR (id_priv) && *net_dev) {dev_put (*net_dev); *net_dev =NULL ;
@@ -2481,6 +2485,8 @@ static void cma_listen_on_dev(struct rdma_id_private *id_priv,struct net *net = id_priv->id.route.addr.dev_addr.net;int ret; +lockdep_assert_held (&lock); +if (cma_family (id_priv) ==AF_IB && !rdma_cap_ib_cm (cma_dev->device,1 ))return ;
@@ -3308,6 +3314,8 @@ static void cma_bind_port(struct rdma_bind_list *bind_list,u64 sid, mask;__be16 port; +lockdep_assert_held (&lock); + addr =cma_src_addr (id_priv); port =htons (bind_list->port);
@@ -3336,6 +3344,8 @@ static int cma_alloc_port(enum rdma_ucm_port_space ps,struct rdma_bind_list *bind_list;int ret; +lockdep_assert_held (&lock); + bind_list =kzalloc (sizeof *bind_list,GFP_KERNEL );if (!bind_list)return -ENOMEM ;
@@ -3362,6 +3372,8 @@ static int cma_port_is_unique(struct rdma_bind_list *bind_list,struct sockaddr *saddr =cma_src_addr (id_priv);__be16 dport =cma_port (daddr); +lockdep_assert_held (&lock); +hlist_for_each_entry (cur_id, &bind_list->owners, node) {struct sockaddr *cur_daddr =cma_dst_addr (cur_id);struct sockaddr *cur_saddr =cma_src_addr (cur_id);
@@ -3401,6 +3413,8 @@ static int cma_alloc_any_port(enum rdma_ucm_port_space ps,unsigned int rover;struct net *net = id_priv->id.route.addr.dev_addr.net; +lockdep_assert_held (&lock); +inet_get_local_port_range (net, &low, &high); remaining = (high - low) +1 ; rover =prandom_u32 () % remaining + low;
@@ -3448,6 +3462,8 @@ static int cma_check_port(struct rdma_bind_list *bind_list,struct rdma_id_private *cur_id;struct sockaddr *addr, *cur_addr; +lockdep_assert_held (&lock); + addr =cma_src_addr (id_priv);hlist_for_each_entry (cur_id, &bind_list->owners, node) {if (id_priv == cur_id)
@@ -3478,6 +3494,8 @@ static int cma_use_port(enum rdma_ucm_port_space ps,unsigned short snum;int ret; +lockdep_assert_held (&lock); + snum =ntohs (cma_port (cma_src_addr (id_priv)));if (snum <PROT_SOCK && !capable (CAP_NET_BIND_SERVICE ))return -EACCES ;
drivers/infiniband/core/mad.c +2 -1
@@ -639,10 +639,10 @@ static void unregister_mad_agent(struct ib_mad_agent_private *mad_agent_priv)xa_erase (&ib_mad_clients, mad_agent_priv->agent.hi_tid);flush_workqueue (port_priv->wq); -ib_cancel_rmpp_recvs (mad_agent_priv);deref_mad_agent (mad_agent_priv);wait_for_completion (&mad_agent_priv->comp); +ib_cancel_rmpp_recvs (mad_agent_priv);ib_mad_agent_security_cleanup (&mad_agent_priv->agent);
@@ -2941,6 +2941,7 @@ static int ib_mad_post_receive_mads(struct ib_mad_qp_info *qp_info, DMA_FROM_DEVICE);if (unlikely (ib_dma_mapping_error (qp_info->port_priv->device, sg_list.addr))) { +kfree (mad_priv); ret = -ENOMEM ;break ; }
drivers/infiniband/core/rdma_core.c +21 -15
@@ -459,40 +459,46 @@ static struct ib_uobject * alloc_begin_fd_uobject(const struct uverbs_api_object *obj, struct uverbs_attr_bundle *attrs) { - const struct uverbs_obj_fd_type *fd_type = - container_of(obj->type_attrs, struct uverbs_obj_fd_type, type); + const struct uverbs_obj_fd_type *fd_type;int new_fd; -struct ib_uobject *uobj; +struct ib_uobject *uobj, *ret;struct file *filp; + uobj =alloc_uobj (attrs, obj); +if (IS_ERR (uobj)) +return uobj; + + fd_type = + container_of(obj->type_attrs, struct uverbs_obj_fd_type, type);if (WARN_ON (fd_type->fops->release != &uverbs_uobject_fd_release && - fd_type->fops->release != &uverbs_async_event_release)) -return ERR_PTR (-EINVAL ); + fd_type->fops->release != &uverbs_async_event_release)) { + ret =ERR_PTR (-EINVAL ); + goto err_fd; + } new_fd =get_unused_fd_flags (O_CLOEXEC ); -if (new_fd <0 ) -return ERR_PTR (new_fd); - - uobj =alloc_uobj (attrs, obj); -if (IS_ERR (uobj)) +if (new_fd <0 ) { + ret =ERR_PTR (new_fd); goto err_fd; + }/* Note that uverbs_uobject_fd_release() is called during abort */ filp =anon_inode_getfile (fd_type->name, fd_type->fops,NULL , fd_type->flags);if (IS_ERR (filp)) { -uverbs_uobject_put (uobj); - uobj =ERR_CAST (filp); - goto err_fd; + ret =ERR_CAST (filp); + goto err_getfile; } uobj->object = filp; uobj->id = new_fd;return uobj; -err_fd: +err_getfile:put_unused_fd (new_fd); -return uobj; +err_fd: +uverbs_uobject_put (uobj); +return ret; } struct ib_uobject *rdma_alloc_begin_uobject(const struct uverbs_api_object *obj,
drivers/infiniband/hw/efa/efa_verbs.c +1 -0
@@ -209,6 +209,7 @@ int efa_query_device(struct ib_device *ibdev, props->max_send_sge = dev_attr->max_sq_sge; props->max_recv_sge = dev_attr->max_rq_sge; props->max_sge_rd = dev_attr->max_wr_rdma_sge; + props->max_pkeys =1 ;if (udata && udata->outlen) { resp.max_sq_sge = dev_attr->max_sq_sge;
drivers/infiniband/hw/hfi1/debugfs.c +2 -17
@@ -985,15 +985,10 @@ static ssize_t qsfp2_debugfs_read(struct file *file, char __user *buf,static int __i2c_debugfs_open (struct inode *in,struct file *fp,u32 target) {struct hfi1_pportdata *ppd; -int ret; ppd =private2ppd (fp); - ret =acquire_chip_resource (ppd->dd,i2c_target (target),0 ); -if (ret)/* failed - release the module */ -module_put (THIS_MODULE ); - -return ret; +return acquire_chip_resource (ppd->dd,i2c_target (target),0 ); }static int i2c1_debugfs_open (struct inode *in,struct file *fp)
@@ -1013,7 +1008,6 @@ static int __i2c_debugfs_release(struct inode *in, struct file *fp, u32 target) ppd =private2ppd (fp);release_chip_resource (ppd->dd,i2c_target (target)); -module_put (THIS_MODULE );return 0 ; }
@@ -1031,18 +1025,10 @@ static int i2c2_debugfs_release(struct inode *in, struct file *fp)static int __qsfp_debugfs_open (struct inode *in,struct file *fp,u32 target) {struct hfi1_pportdata *ppd; -int ret; - -if (!try_module_get (THIS_MODULE )) -return -ENODEV ; ppd =private2ppd (fp); - ret =acquire_chip_resource (ppd->dd,i2c_target (target),0 ); -if (ret)/* failed - release the module */ -module_put (THIS_MODULE ); - -return ret; +return acquire_chip_resource (ppd->dd,i2c_target (target),0 ); }static int qsfp1_debugfs_open (struct inode *in,struct file *fp)
@@ -1062,7 +1048,6 @@ static int __qsfp_debugfs_release(struct inode *in, struct file *fp, u32 target) ppd =private2ppd (fp);release_chip_resource (ppd->dd,i2c_target (target)); -module_put (THIS_MODULE );return 0 ; }
drivers/infiniband/hw/qedr/qedr_iw_cm.c +11 -2
@@ -150,8 +150,17 @@ qedr_iw_issue_event(void *context,if (params->cm_info) { event.ird = params->cm_info->ird; event.ord = params->cm_info->ord; - event.private_data_len = params->cm_info->private_data_len; - event.private_data = (void *)params->cm_info->private_data; +/* Only connect_request and reply have valid private data +* the rest of the events this may be left overs from +* connection establishment. CONNECT_REQUEST is issued via +* qedr_iw_mpa_request +*/ +if (event_type ==IW_CM_EVENT_CONNECT_REPLY ) { + event.private_data_len = + params->cm_info->private_data_len; + event.private_data = + (void *)params->cm_info->private_data; + } }if (ep->cm_id)
drivers/infiniband/sw/rdmavt/qp.c +4 -2
@@ -1196,7 +1196,7 @@ struct ib_qp *rvt_create_qp(struct ib_pd *ibpd, err =alloc_ud_wq_attr (qp, rdi->dparms.node);if (err) { ret = (ERR_PTR (err)); - goto bail_driver_priv; + goto bail_rq_rvt; } err = alloc_qpn(rdi, &rdi->qp_dev->qpn_table,
@@ -1300,9 +1300,11 @@ bail_qpn:rvt_free_qpn (&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); bail_rq_wq: -rvt_free_rq (&qp->r_rq);free_ud_wq_attr (qp); +bail_rq_rvt: +rvt_free_rq (&qp->r_rq); + bail_driver_priv: rdi->driver_f.qp_priv_free (rdi, qp);
drivers/infiniband/sw/siw/siw_qp_rx.c +2 -1
@@ -139,7 +139,8 @@ static int siw_rx_pbl(struct siw_rx_stream *srx, int *pbl_idx,break ; bytes =min (bytes, len); -if (siw_rx_kva (srx, (void *)buf_addr, bytes) == bytes) { +if (siw_rx_kva (srx, (void *)(uintptr_t )buf_addr, bytes) == + bytes) { copied += bytes; offset += bytes; len -= bytes;
drivers/iommu/dmar.c +2 -1
@@ -898,7 +898,8 @@ int __init detect_intel_iommu(void)if (!ret) ret =dmar_walk_dmar_table ((struct acpi_table_dmar *)dmar_tbl, &validate_drhd_cb); -if (!ret && !no_iommu && !iommu_detected && !dmar_disabled) { +if (!ret && !no_iommu && !iommu_detected && + (!dmar_disabled ||dmar_platform_optin ())) { iommu_detected =1 ;/* Make sure ACS will be enabled */ pci_request_acs ();
drivers/iommu/intel-iommu.c +12 -6
@@ -634,6 +634,12 @@ struct intel_iommu *domain_get_iommu(struct dmar_domain *domain)return g_iommus[iommu_id]; } +static inline bool iommu_paging_structure_coherency (struct intel_iommu *iommu) +{ +return sm_supported (iommu) ? +ecap_smpwc (iommu->ecap) :ecap_coherent (iommu->ecap); +} +static void domain_update_iommu_coherency (struct dmar_domain *domain) {struct dmar_drhd_unit *drhd;
@@ -645,7 +651,7 @@ static void domain_update_iommu_coherency(struct dmar_domain *domain)for_each_domain_iommu (i, domain) { found = true; -if (!ecap_coherent (g_iommus[i]->ecap)) { +if (!iommu_paging_structure_coherency (g_iommus[i])) { domain->iommu_coherency =0 ;break ; }
@@ -656,7 +662,7 @@ static void domain_update_iommu_coherency(struct dmar_domain *domain)/* No hardware attached; use lowest common denominator */ rcu_read_lock ();for_each_active_iommu (iommu, drhd) { -if (!ecap_coherent (iommu->ecap)) { +if (!iommu_paging_structure_coherency (iommu)) { domain->iommu_coherency =0 ;break ; }
@@ -943,7 +949,7 @@ static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain,domain_flush_cache (domain, tmp_page,VTD_PAGE_SIZE ); pteval = ((uint64_t )virt_to_dma_pfn (tmp_page) <<VTD_PAGE_SHIFT ) |DMA_PTE_READ |DMA_PTE_WRITE ;if (domain_use_first_level (domain)) - pteval |=DMA_FL_PTE_XD ; + pteval |=DMA_FL_PTE_XD |DMA_FL_PTE_US ;if (cmpxchg64 (&pte->val,0ULL , pteval))/* Someone else set it while we were thinking; use theirs. */ free_pgtable_page (tmp_page);
@@ -2034,7 +2040,6 @@ static inline void context_set_sm_rid2pasid(struct context_entry *context, unsigned long pasid) { context->hi |= pasid & ((1 <<20 ) -1 ); - context->hi |= (1 <<20 ); }/*
@@ -2178,7 +2183,8 @@ static int domain_context_mapping_one(struct dmar_domain *domain,context_set_fault_enable (context);context_set_present (context); -domain_flush_cache (domain, context,sizeof (*context)); +if (!ecap_coherent (iommu->ecap)) +clflush_cache_range (context,sizeof (*context));/* * It's a non-present to present mapping. If hardware doesn't cache
@@ -2326,7 +2332,7 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn, attr = prot & (DMA_PTE_READ |DMA_PTE_WRITE |DMA_PTE_SNP );if (domain_use_first_level (domain)) - attr |=DMA_FL_PTE_PRESENT |DMA_FL_PTE_XD ; + attr |=DMA_FL_PTE_PRESENT |DMA_FL_PTE_XD |DMA_FL_PTE_US ;if (!sg) { sg_res = nr_pages;
drivers/md/bcache/super.c +19 -3
@@ -819,7 +819,8 @@ static void bcache_device_free(struct bcache_device *d) }static int bcache_device_init (struct bcache_device *d,unsigned int block_size, -sector_t sectors,make_request_fn make_request_fn) +sector_t sectors,make_request_fn make_request_fn, +struct block_device *cached_bdev) {struct request_queue *q; const size_t max_stripes = min_t(size_t, INT_MAX,
@@ -885,6 +886,21 @@ static int bcache_device_init(struct bcache_device *d, unsigned int block_size, q->limits.io_min = block_size; q->limits.logical_block_size = block_size; q->limits.physical_block_size = block_size; + +if (q->limits.logical_block_size >PAGE_SIZE && cached_bdev) { +/* +* This should only happen with BCACHE_SB_VERSION_BDEV. +* Block/page size is checked for BCACHE_SB_VERSION_CDEV. +*/ +pr_info ("%s: sb/logical block size (%u) greater than page size " +"(%lu) falling back to device logical block size (%u)" , + d->disk->disk_name, q->limits.logical_block_size, +PAGE_SIZE ,bdev_logical_block_size (cached_bdev)); + +/* This also adjusts physical block size/min io size if needed */ +blk_queue_logical_block_size (q,bdev_logical_block_size (cached_bdev)); + } +blk_queue_flag_set (QUEUE_FLAG_NONROT , d->disk->queue);blk_queue_flag_clear (QUEUE_FLAG_ADD_RANDOM , d->disk->queue);blk_queue_flag_set (QUEUE_FLAG_DISCARD , d->disk->queue);
@@ -1342,7 +1358,7 @@ static int cached_dev_init(struct cached_dev *dc, unsigned int block_size) ret =bcache_device_init (&dc->disk, block_size, dc->bdev->bd_part->nr_sects - dc->sb.data_offset, - cached_dev_make_request); + cached_dev_make_request, dc->bdev);if (ret)return ret;
@@ -1455,7 +1471,7 @@ static int flash_dev_run(struct cache_set *c, struct uuid_entry *u)kobject_init (&d->kobj, &bch_flash_dev_ktype);if (bcache_device_init (d,block_bytes (c), u->sectors, - flash_dev_make_request)) + flash_dev_make_request,NULL )) goto err;bcache_device_attach (d, c, u - c->uuids);
drivers/md/dm-writecache.c +4 -0
@@ -286,6 +286,8 @@ static int persistent_memory_claim(struct dm_writecache *wc)while (daa-- && i < p) { pages[i++] =pfn_t_to_page (pfn); pfn.val++; +if (!(i &15 )) +cond_resched (); } }while (i < p); wc->memory_map =vmap (pages, p,VM_MAP ,PAGE_KERNEL );
@@ -857,6 +859,8 @@ static void writecache_discard(struct dm_writecache *wc, sector_t start, sector_writecache_wait_for_ios (wc,WRITE ); discarded_something = true; } +if (!writecache_entry_is_committed (wc, e)) + wc->uncommitted_blocks--;writecache_free_entry (wc, e); }
drivers/misc/mei/hw-me-regs.h +3 -0
@@ -94,6 +94,7 @@#define MEI_DEV_ID_JSP_N 0x4DE0/* Jasper Lake Point N */ #define MEI_DEV_ID_TGP_LP 0xA0E0/* Tiger Lake Point LP */ +#define MEI_DEV_ID_TGP_H 0x43E0/* Tiger Lake Point H */ #define MEI_DEV_ID_MCC 0x4B70/* Mule Creek Canyon (EHL) */ #define MEI_DEV_ID_MCC_4 0x4B75/* Mule Creek Canyon 4 (EHL) */
@@ -107,6 +108,8 @@# define PCI_CFG_HFS_1_D0I3_MSK 0x80000000#define PCI_CFG_HFS_2 0x48#define PCI_CFG_HFS_3 0x60 +# define PCI_CFG_HFS_3_FW_SKU_MSK 0x00000070 +# define PCI_CFG_HFS_3_FW_SKU_SPS 0x00000060#define PCI_CFG_HFS_4 0x64#define PCI_CFG_HFS_5 0x68#define PCI_CFG_HFS_6 0x6C
drivers/misc/mei/hw-me.c +64 -6
112 lines not on this page · raw message
drivers/misc/mei/hw-me.h +13 -4
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ /* -* Copyright (c) 2012-2019, Intel Corporation. All rights reserved. +* Copyright (c) 2012-2020, Intel Corporation. All rights reserved. * Intel Management Engine Interface (Intel MEI) Linux driver */
@@ -76,14 +76,20 @@ struct mei_me_hw {* with quirk for Node Manager exclusion. * @MEI_ME_PCH8_CFG: Platform Controller Hub Gen8 and newer * client platforms. -* @MEI_ME_PCH8_SPS_CFG: Platform Controller Hub Gen8 and newer +* @MEI_ME_PCH8_SPS_4_CFG: Platform Controller Hub Gen8 and newer * servers platforms with quirk for * SPS firmware exclusion. * @MEI_ME_PCH12_CFG: Platform Controller Hub Gen12 and newer -* @MEI_ME_PCH12_SPS_CFG: Platform Controller Hub Gen12 and newer +* @MEI_ME_PCH12_SPS_4_CFG:Platform Controller Hub Gen12 up to 4.0 +* servers platforms with quirk for +* SPS firmware exclusion. +* @MEI_ME_PCH12_SPS_CFG: Platform Controller Hub Gen12 5.0 and newer * servers platforms with quirk for * SPS firmware exclusion. * @MEI_ME_PCH15_CFG: Platform Controller Hub Gen15 and newer +* @MEI_ME_PCH15_SPS_CFG: Platform Controller Hub Gen15 and newer +* servers platforms with quirk for +* SPS firmware exclusion. * @MEI_ME_NUM_CFG: Upper Sentinel. */ enum mei_cfg_idx {
@@ -94,10 +100,13 @@ enum mei_cfg_idx {MEI_ME_PCH7_CFG ,MEI_ME_PCH_CPT_PBG_CFG ,MEI_ME_PCH8_CFG , -MEI_ME_PCH8_SPS_CFG , +MEI_ME_PCH8_SPS_4_CFG ,MEI_ME_PCH12_CFG , +MEI_ME_PCH12_SPS_4_CFG ,MEI_ME_PCH12_SPS_CFG , +MEI_ME_PCH12_SPS_NODMA_CFG ,MEI_ME_PCH15_CFG , +MEI_ME_PCH15_SPS_CFG , MEI_ME_NUM_CFG, };
drivers/misc/mei/pci-me.c +9 -8
@@ -59,18 +59,18 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_PPT_1, MEI_ME_PCH7_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_PPT_2, MEI_ME_PCH7_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_PPT_3, MEI_ME_PCH7_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_H, MEI_ME_PCH8_SPS_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_W, MEI_ME_PCH8_SPS_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_H, MEI_ME_PCH8_SPS_4_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_W, MEI_ME_PCH8_SPS_4_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_LP, MEI_ME_PCH8_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_HR, MEI_ME_PCH8_SPS_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_LPT_HR, MEI_ME_PCH8_SPS_4_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_WPT_LP, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_WPT_LP_2, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_SPT, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_2, MEI_ME_PCH8_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H, MEI_ME_PCH8_SPS_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H_2, MEI_ME_PCH8_SPS_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_LBG, MEI_ME_PCH12_SPS_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H, MEI_ME_PCH8_SPS_4_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_SPT_H_2, MEI_ME_PCH8_SPS_4_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_LBG, MEI_ME_PCH12_SPS_4_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_BXT_M, MEI_ME_PCH8_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_APL_I, MEI_ME_PCH8_CFG)},
@@ -84,8 +84,8 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_LP, MEI_ME_PCH12_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_LP_3, MEI_ME_PCH8_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H, MEI_ME_PCH12_CFG)}, - {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H_3, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H, MEI_ME_PCH12_SPS_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CNP_H_3, MEI_ME_PCH12_SPS_NODMA_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_LP, MEI_ME_PCH12_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_LP_3, MEI_ME_PCH8_CFG)},
@@ -96,6 +96,7 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_ICP_LP, MEI_ME_PCH12_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_TGP_LP, MEI_ME_PCH15_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_TGP_H, MEI_ME_PCH15_SPS_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_JSP_N, MEI_ME_PCH15_CFG)},
drivers/net/bareudp.c +3 -0
@@ -572,6 +572,9 @@ static int bareudp2info(struct nlattr *data[], struct bareudp_conf *conf,if (data[IFLA_BAREUDP_SRCPORT_MIN ]) conf->sport_min =nla_get_u16 (data[IFLA_BAREUDP_SRCPORT_MIN ]); +if (data[IFLA_BAREUDP_MULTIPROTO_MODE ]) + conf->multi_proto_mode = true; +return 0 ; }
drivers/net/dsa/bcm_sf2.c +2 -0
@@ -1147,6 +1147,8 @@ static int bcm_sf2_sw_probe(struct platform_device *pdev)set_bit (0 , priv->cfp.used);set_bit (0 , priv->cfp.unique); +/* Balance of_node_put() done by of_find_node_by_name() */ +of_node_get (dn); ports =of_find_node_by_name (dn,"ports" );if (ports) {bcm_sf2_identify_ports (priv, ports);
drivers/net/ethernet/atheros/alx/main.c +5 -4
@@ -1249,8 +1249,12 @@ out_disable_adv_intr:static void __alx_stop (struct alx_priv *alx) { -alx_halt (alx);alx_free_irq (alx); + +cancel_work_sync (&alx->link_check_wk); +cancel_work_sync (&alx->reset_wk); + +alx_halt (alx);alx_free_rings (alx);alx_free_napis (alx); }
@@ -1855,9 +1859,6 @@ static void alx_remove(struct pci_dev *pdev)struct alx_priv *alx =pci_get_drvdata (pdev);struct alx_hw *hw = &alx->hw; -cancel_work_sync (&alx->link_check_wk); -cancel_work_sync (&alx->reset_wk); -/* restore permanent mac address */ alx_set_macaddr (hw, hw->perm_addr);
drivers/net/ethernet/broadcom/bnxt/bnxt.c +29 -7
@@ -6293,6 +6293,7 @@ int bnxt_hwrm_set_coal(struct bnxt *bp)static void bnxt_hwrm_stat_ctx_free (struct bnxt *bp) { +struct hwrm_stat_ctx_clr_stats_input req0 = {0 };struct hwrm_stat_ctx_free_input req = {0 };int i;
@@ -6302,6 +6303,7 @@ static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp)if (BNXT_CHIP_TYPE_NITRO_A0 (bp))return ; +bnxt_hwrm_cmd_hdr_init (bp, &req0,HWRM_STAT_CTX_CLR_STATS ,-1 ,-1 );bnxt_hwrm_cmd_hdr_init (bp, &req,HWRM_STAT_CTX_FREE ,-1 ,-1 );mutex_lock (&bp->hwrm_cmd_lock);
@@ -6311,7 +6313,11 @@ static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp)if (cpr->hw_stats_ctx_id !=INVALID_STATS_CTX_ID ) { req.stat_ctx_id =cpu_to_le32 (cpr->hw_stats_ctx_id); - +if (BNXT_FW_MAJ (bp) <=20 ) { + req0.stat_ctx_id = req.stat_ctx_id; +_hwrm_send_message (bp, &req0,sizeof (req0), +HWRM_CMD_TIMEOUT ); + }_hwrm_send_message (bp, &req,sizeof (req),HWRM_CMD_TIMEOUT );
@@ -6953,7 +6959,8 @@ static int __bnxt_hwrm_func_qcaps(struct bnxt *bp) bp->fw_cap |=BNXT_FW_CAP_ERR_RECOVER_RELOAD ; bp->tx_push_thresh =0 ; -if (flags &FUNC_QCAPS_RESP_FLAGS_PUSH_MODE_SUPPORTED ) +if ((flags &FUNC_QCAPS_RESP_FLAGS_PUSH_MODE_SUPPORTED ) && +BNXT_FW_MAJ (bp) >217 ) bp->tx_push_thresh =BNXT_TX_PUSH_THRESH ; hw_resc->max_rsscos_ctxs =le16_to_cpu (resp->max_rsscos_ctx);
@@ -7217,8 +7224,9 @@ static int __bnxt_hwrm_ver_get(struct bnxt *bp, bool silent)static int bnxt_hwrm_ver_get (struct bnxt *bp) {struct hwrm_ver_get_output *resp = bp->hwrm_cmd_resp_addr; +u16 fw_maj, fw_min, fw_bld, fw_rsv;u32 dev_caps_cfg, hwrm_ver; -int rc; +int rc, len; bp->hwrm_max_req_len =HWRM_MAX_REQ_LEN ;mutex_lock (&bp->hwrm_cmd_lock);
@@ -7250,9 +7258,22 @@ static int bnxt_hwrm_ver_get(struct bnxt *bp) resp->hwrm_intf_maj_8b, resp->hwrm_intf_min_8b, resp->hwrm_intf_upd_8b); -snprintf (bp->fw_ver_str,BC_HWRM_STR_LEN ,"%d.%d.%d.%d" , - resp->hwrm_fw_maj_8b, resp->hwrm_fw_min_8b, - resp->hwrm_fw_bld_8b, resp->hwrm_fw_rsvd_8b); + fw_maj =le16_to_cpu (resp->hwrm_fw_major); +if (bp->hwrm_spec_code >0x10803 && fw_maj) { + fw_min =le16_to_cpu (resp->hwrm_fw_minor); + fw_bld =le16_to_cpu (resp->hwrm_fw_build); + fw_rsv =le16_to_cpu (resp->hwrm_fw_patch); + len =FW_VER_STR_LEN ; + }else { + fw_maj = resp->hwrm_fw_maj_8b; + fw_min = resp->hwrm_fw_min_8b; + fw_bld = resp->hwrm_fw_bld_8b; + fw_rsv = resp->hwrm_fw_rsvd_8b; + len =BC_HWRM_STR_LEN ; + } + bp->fw_ver_code =BNXT_FW_VER_CODE (fw_maj, fw_min, fw_bld, fw_rsv); +snprintf (bp->fw_ver_str, len,"%d.%d.%d.%d" , fw_maj, fw_min, fw_bld, + fw_rsv);if (strlen (resp->active_pkg_name)) {int fw_ver_len =strlen (bp->fw_ver_str);
@@ -11863,7 +11884,8 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) dev->ethtool_ops = &bnxt_ethtool_ops;pci_set_drvdata (pdev, dev); -bnxt_vpd_read_info (bp); +if (BNXT_PF (bp)) +bnxt_vpd_read_info (bp); rc =bnxt_alloc_hwrm_resources (bp);if (rc)
drivers/net/ethernet/broadcom/bnxt/bnxt.h +5 -0
@@ -1729,6 +1729,11 @@ struct bnxt {#define PHY_VER_STR_LEN (FW_VER_STR_LEN - BC_HWRM_STR_LEN)char fw_ver_str[FW_VER_STR_LEN ];char hwrm_ver_supp[FW_VER_STR_LEN ]; +u64 fw_ver_code; +#define BNXT_FW_VER_CODE (maj, min, bld, rsv) \ + ((u64)(maj) << 48 | (u64)(min) << 32 | (u64)(bld) << 16 | (rsv)) +#define BNXT_FW_MAJ (bp) ((bp)->fw_ver_code >> 48) +__be16 vxlan_port;u8 vxlan_port_cnt;__le16 vxlan_fw_dst_port_id;
drivers/net/ethernet/broadcom/genet/bcmgenet.c +3 -5
@@ -1520,11 +1520,6 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev) goto out; } -if (skb_padto (skb,ETH_ZLEN )) { - ret =NETDEV_TX_OK ; - goto out; - } -/* Retain how many bytes will be sent on the wire, without TSB inserted * by transmit checksum offload */
@@ -1571,6 +1566,9 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev) len_stat = (size <<DMA_BUFLENGTH_SHIFT ) | (priv->hw_params->qtag_mask <<DMA_TX_QTAG_SHIFT ); +/* Note: if we ever change from DMA_TX_APPEND_CRC below we +* will need to restore software padding of "runt" packets +*/ if (!i) { len_stat |=DMA_TX_APPEND_CRC |DMA_SOP ;if (skb->ip_summed ==CHECKSUM_PARTIAL )
drivers/net/ethernet/broadcom/tg3.c +2 -2
@@ -18170,8 +18170,8 @@ static pci_ers_result_t tg3_io_error_detected(struct pci_dev *pdev,rtnl_lock (); -/* We probably don't have netdev yet */ -if (!netdev || !netif_running (netdev)) +/* Could be second call or maybe we don't have netdev yet */ +if (!netdev || tp->pcierr_recovery || !netif_running (netdev)) goto done;/* We needn't recover from permanent error */
drivers/net/ethernet/cadence/macb_main.c +82 -46
191 lines not on this page · raw message
drivers/net/ethernet/chelsio/cxgb4/l2t.c +24 -28
73 lines not on this page · raw message
drivers/net/ethernet/chelsio/cxgb4/sge.c +11 -12
@@ -1425,12 +1425,10 @@ static netdev_tx_t cxgb4_eth_xmit(struct sk_buff *skb, struct net_device *dev) qidx =skb_get_queue_mapping (skb);if (ptp_enabled) { -spin_lock (&adap->ptp_lock);if (!(adap->ptp_tx_skb)) {skb_shinfo (skb)->tx_flags |=SKBTX_IN_PROGRESS ; adap->ptp_tx_skb =skb_get (skb); }else { -spin_unlock (&adap->ptp_lock); goto out_free; } q = &adap->sge.ptptxq;
@@ -1444,11 +1442,8 @@ static netdev_tx_t cxgb4_eth_xmit(struct sk_buff *skb, struct net_device *dev)#ifdef CONFIG_CHELSIO_T4_FCOE ret =cxgb_fcoe_offload (skb, adap, pi, &cntrl); -if (unlikely (ret == -ENOTSUPP )) { -if (ptp_enabled) -spin_unlock (&adap->ptp_lock); +if (unlikely (ret == -EOPNOTSUPP )) goto out_free; - }#endif /* CONFIG_CHELSIO_T4_FCOE */ chip_ver =CHELSIO_CHIP_VERSION (adap->params.chip);
@@ -1461,8 +1456,6 @@ static netdev_tx_t cxgb4_eth_xmit(struct sk_buff *skb, struct net_device *dev)dev_err (adap->pdev_dev,"%s: Tx ring %u full while queue awake!\n" , dev->name, qidx); -if (ptp_enabled) -spin_unlock (&adap->ptp_lock);return NETDEV_TX_BUSY ; }
@@ -1481,8 +1474,6 @@ static netdev_tx_t cxgb4_eth_xmit(struct sk_buff *skb, struct net_device *dev) unlikely(cxgb4_map_skb(adap->pdev_dev, skb, sgl_sdesc->addr) < 0)) {memset (sgl_sdesc->addr,0 ,sizeof (sgl_sdesc->addr)); q->mapping_err++; -if (ptp_enabled) -spin_unlock (&adap->ptp_lock); goto out_free; }
@@ -1630,8 +1621,6 @@ static netdev_tx_t cxgb4_eth_xmit(struct sk_buff *skb, struct net_device *dev)txq_advance (&q->q, ndesc);cxgb4_ring_tx_db (adap, &q->q, ndesc); -if (ptp_enabled) -spin_unlock (&adap->ptp_lock);return NETDEV_TX_OK ; out_free:
@@ -2365,6 +2354,16 @@ netdev_tx_t t4_start_xmit(struct sk_buff *skb, struct net_device *dev)if (unlikely (qid >= pi->nqsets))return cxgb4_ethofld_xmit (skb, dev); +if (is_ptp_enabled (skb, dev)) { +struct adapter *adap =netdev2adap (dev); +netdev_tx_t ret; + +spin_lock (&adap->ptp_lock); + ret =cxgb4_eth_xmit (skb, dev); +spin_unlock (&adap->ptp_lock); +return ret; + } +return cxgb4_eth_xmit (skb, dev); }
drivers/net/ethernet/freescale/enetc/enetc.c +2 -2
@@ -266,7 +266,7 @@ static irqreturn_t enetc_msix(int irq, void *data)/* disable interrupts */ enetc_wr_reg (v->rbier,0 ); -for_each_set_bit (i, &v->tx_rings_map, v->count_tx_rings) +for_each_set_bit (i, &v->tx_rings_map,ENETC_MAX_NUM_TXQS )enetc_wr_reg (v->tbier_base +ENETC_BDR_OFF (i),0 );napi_schedule_irqoff (&v->napi);
@@ -302,7 +302,7 @@ static int enetc_poll(struct napi_struct *napi, int budget)/* enable interrupts */ enetc_wr_reg (v->rbier,ENETC_RBIER_RXTIE ); -for_each_set_bit (i, &v->tx_rings_map, v->count_tx_rings) +for_each_set_bit (i, &v->tx_rings_map,ENETC_MAX_NUM_TXQS )enetc_wr_reg (v->tbier_base +ENETC_BDR_OFF (i),ENETC_TBIER_TXTIE );
drivers/net/ethernet/ibm/ibmveth.c +1 -1
@@ -1715,7 +1715,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) } netdev->min_mtu =IBMVETH_MIN_MTU ; - netdev->max_mtu =ETH_MAX_MTU ; + netdev->max_mtu =ETH_MAX_MTU -IBMVETH_BUFF_OH ;memcpy (netdev->dev_addr, mac_addr_p,ETH_ALEN );
drivers/net/ethernet/ibm/ibmvnic.c +17 -4
@@ -842,12 +842,13 @@ static int ibmvnic_login(struct net_device *netdev)struct ibmvnic_adapter *adapter =netdev_priv (netdev);unsigned long timeout =msecs_to_jiffies (30000 );int retry_count =0 ; +int retries =10 ;bool retry;int rc; do { retry = false; - if (retry_count > IBMVNIC_MAX_QUEUES) { + if (retry_count > retries) { netdev_warn(netdev, "Login attempts exceeded\n"); return -1; }
@@ -862,11 +863,23 @@ static int ibmvnic_login(struct net_device *netdev)if (!wait_for_completion_timeout (&adapter->init_done, timeout)) { -netdev_warn (netdev,"Login timed out\n" ); -return -1 ; +netdev_warn (netdev,"Login timed out, retrying...\n" ); + retry = true; + adapter->init_done_rc =0 ; + retry_count++; +continue ; } -if (adapter->init_done_rc ==PARTIALSUCCESS ) { +if (adapter->init_done_rc ==ABORTED ) { +netdev_warn (netdev,"Login aborted, retrying...\n" ); + retry = true; + adapter->init_done_rc =0 ; + retry_count++; +/* FW or device may be busy, so +* wait a bit before retrying login +*/ +msleep (500 ); + }else if (adapter->init_done_rc ==PARTIALSUCCESS ) { retry_count++;release_sub_crqs (adapter,1 );
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +2 -2
@@ -1544,7 +1544,7 @@ static void mvpp2_read_stats(struct mvpp2_port *port)for (q =0 ; q < port->ntxqs; q++)for (i =0 ; i <ARRAY_SIZE (mvpp2_ethtool_txq_regs); i++) *pstats++ +=mvpp2_read_index (port->priv, -MVPP22_CTRS_TX_CTR (port->id, i), +MVPP22_CTRS_TX_CTR (port->id, q), mvpp2_ethtool_txq_regs[i].offset);/* Rxqs are numbered from 0 from the user standpoint, but not from the
@@ -1553,7 +1553,7 @@ static void mvpp2_read_stats(struct mvpp2_port *port)for (q =0 ; q < port->nrxqs; q++)for (i =0 ; i <ARRAY_SIZE (mvpp2_ethtool_rxq_regs); i++) *pstats++ +=mvpp2_read_index (port->priv, - port->first_rxq + i, + port->first_rxq + q, mvpp2_ethtool_rxq_regs[i].offset); }
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +2 -2
@@ -990,10 +990,10 @@ int __mlxsw_sp_port_headroom_set(struct mlxsw_sp_port *mlxsw_sp_port, int mtu, lossy = !(pfc || pause_en); thres_cells =mlxsw_sp_pg_buf_threshold_get (mlxsw_sp, mtu); -mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, &thres_cells); + thres_cells =mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, thres_cells); delay_cells =mlxsw_sp_pg_buf_delay_get (mlxsw_sp, mtu, delay, pfc, pause_en); -mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, &delay_cells); + delay_cells =mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, delay_cells); total_cells = thres_cells + delay_cells; taken_headroom_cells += total_cells;
drivers/net/ethernet/mellanox/mlxsw/spectrum.h +3 -5
@@ -395,17 +395,15 @@ mlxsw_sp_port_vlan_find_by_vid(const struct mlxsw_sp_port *mlxsw_sp_port,return NULL ; } -static inline void +static inline u32 mlxsw_sp_port_headroom_8x_adjust (const struct mlxsw_sp_port *mlxsw_sp_port, -u16 *p_size) +u32 size_cells) {/* Ports with eight lanes use two headroom buffers between which the * configured headroom size is split. Therefore, multiply the calculated * headroom size by two. */ -if (mlxsw_sp_port->mapping.width !=8 ) -return ; - *p_size *=2 ; +return mlxsw_sp_port->mapping.width ==8 ?2 * size_cells : size_cells; }enum mlxsw_sp_flood_type {
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c +1 -1
@@ -312,7 +312,7 @@ static int mlxsw_sp_port_pb_init(struct mlxsw_sp_port *mlxsw_sp_port)if (i ==MLXSW_SP_PB_UNUSED )continue ; -mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, &size); + size =mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, size);mlxsw_reg_pbmc_lossy_buffer_pack (pbmc_pl, i, size); } mlxsw_reg_pbmc_lossy_buffer_pack(pbmc_pl,
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c +1 -1
@@ -776,7 +776,7 @@ mlxsw_sp_span_port_buffsize_update(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) speed =0 ; buffsize =mlxsw_sp_span_buffsize_get (mlxsw_sp, speed, mtu); -mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, (u16 *) &buffsize); + buffsize =mlxsw_sp_port_headroom_8x_adjust (mlxsw_sp_port, buffsize);mlxsw_reg_sbib_pack (sbib_pl, mlxsw_sp_port->local_port, buffsize);return mlxsw_reg_write (mlxsw_sp->core,MLXSW_REG (sbib), sbib_pl); }
drivers/net/ethernet/pensando/ionic/ionic_lif.c +15 -6
@@ -1653,6 +1653,14 @@ int ionic_open(struct net_device *netdev)if (err) goto err_out; + err =netif_set_real_num_tx_queues (netdev, lif->nxqs); +if (err) + goto err_txrx_deinit; + + err =netif_set_real_num_rx_queues (netdev, lif->nxqs); +if (err) + goto err_txrx_deinit; +/* don't start the queues until we have link */ if (netif_carrier_ok (netdev)) { err =ionic_start_queues (lif);
@@ -1674,8 +1682,8 @@ static void ionic_stop_queues(struct ionic_lif *lif)if (!test_and_clear_bit (IONIC_LIF_F_UP , lif->state))return ; -ionic_txrx_disable (lif);netif_tx_disable (lif->netdev); +ionic_txrx_disable (lif); }int ionic_stop (struct net_device *netdev)
@@ -1941,18 +1949,19 @@ int ionic_reset_queues(struct ionic_lif *lif)bool running;int err =0 ; -/* Put off the next watchdog timeout */ -netif_trans_update (lif->netdev); - err =ionic_wait_for_bit (lif,IONIC_LIF_F_QUEUE_RESET );if (err)return err; running =netif_running (lif->netdev); -if (running) +if (running) { +netif_device_detach (lif->netdev); err =ionic_stop (lif->netdev); -if (!err && running) + } +if (!err && running) {ionic_open (lif->netdev); +netif_device_attach (lif->netdev); + }clear_bit (IONIC_LIF_F_QUEUE_RESET , lif->state);
drivers/net/ethernet/qlogic/qed/qed_cxt.c +20 -1
@@ -270,7 +270,7 @@ static void qed_cxt_qm_iids(struct qed_hwfn *p_hwfn, vf_tids += segs[NUM_TASK_PF_SEGMENTS ].count; } - iids->vf_cids += vf_cids * p_mngr->vf_count; + iids->vf_cids = vf_cids; iids->tids += vf_tids * p_mngr->vf_count; DP_VERBOSE(p_hwfn, QED_MSG_ILT,
@@ -442,6 +442,20 @@ static struct qed_ilt_cli_blk *qed_cxt_set_blk(struct qed_ilt_cli_blk *p_blk)return p_blk; } +static void qed_cxt_ilt_blk_reset (struct qed_hwfn *p_hwfn) +{ +struct qed_ilt_client_cfg *clients = p_hwfn->p_cxt_mngr->clients; +u32 cli_idx, blk_idx; + +for (cli_idx =0 ; cli_idx <MAX_ILT_CLIENTS ; cli_idx++) { +for (blk_idx =0 ; blk_idx <ILT_CLI_PF_BLOCKS ; blk_idx++) + clients[cli_idx].pf_blks[blk_idx].total_size =0 ; + +for (blk_idx =0 ; blk_idx <ILT_CLI_VF_BLOCKS ; blk_idx++) + clients[cli_idx].vf_blks[blk_idx].total_size =0 ; + } +} +int qed_cxt_cfg_ilt_compute (struct qed_hwfn *p_hwfn,u32 *line_count) {struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
@@ -461,6 +475,11 @@ int qed_cxt_cfg_ilt_compute(struct qed_hwfn *p_hwfn, u32 *line_count) p_mngr->pf_start_line =RESC_START (p_hwfn,QED_ILT ); +/* Reset all ILT blocks at the beginning of ILT computing in order +* to prevent memory allocation for irrelevant blocks afterwards. +*/ +qed_cxt_ilt_blk_reset (p_hwfn); +DP_VERBOSE (p_hwfn,QED_MSG_ILT ,"hwfn [%d] - Set context manager starting line to be 0x%08x\n" , p_hwfn->my_id, p_hwfn->p_cxt_mngr->pf_start_line);
drivers/net/ethernet/qlogic/qed/qed_debug.c +2 -1
@@ -5568,7 +5568,8 @@ static const char * const s_status_str[] = {/* DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS */ "The filter/trigger constraint dword offsets are not enabled for recording" , - +/* DBG_STATUS_NO_MATCHING_FRAMING_MODE */ +"No matching framing mode" ,/* DBG_STATUS_VFC_READ_ERROR */ "Error reading from VFC",
drivers/net/ethernet/qlogic/qed/qed_dev.c +7 -2
@@ -1368,6 +1368,8 @@ static void qed_dbg_user_data_free(struct qed_hwfn *p_hwfn)void qed_resc_free (struct qed_dev *cdev) { +struct qed_rdma_info *rdma_info; +struct qed_hwfn *p_hwfn;int i;if (IS_VF (cdev)) {
@@ -1385,7 +1387,8 @@ void qed_resc_free(struct qed_dev *cdev)qed_llh_free (cdev);for_each_hwfn (cdev, i) { -struct qed_hwfn *p_hwfn = &cdev->hwfns[i]; + p_hwfn = cdev->hwfns + i; + rdma_info = p_hwfn->p_rdma_info;qed_cxt_mngr_free (p_hwfn);qed_qm_info_free (p_hwfn);
@@ -1404,8 +1407,10 @@ void qed_resc_free(struct qed_dev *cdev)qed_ooo_free (p_hwfn); }
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_iwarp.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_roce.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_vf.c +18 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_ptp.c +13 -18
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_ptp.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_rdma.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/rocker/rocker_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/socionext/netsec.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/phy/phylink.c +32 -13
45 lines not on this page · raw message
drivers/net/wireguard/device.c +27 -31
58 lines not on this page · raw message
drivers/net/wireless/ath/wil6210/txrx.c +11 -28
Lines of this file are not shown. View the raw message.
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +10 -11
Lines of this file are not shown. View the raw message.
drivers/regulator/pfuze100-regulator.c +39 -21
60 lines not on this page · raw message
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/usb/typec/tcpm/tcpci_rt1711h.c +10 -21
Lines of this file are not shown. View the raw message.
kernel/bpf/cgroup.c +33 -20
53 lines not on this page · raw message
net/sched/sch_cake.c +41 -17
58 lines not on this page · raw message
scripts/recordmcount.h +92 -6
98 lines not on this page · raw message
tools/testing/selftests/bpf/progs/bpf_cubic.c +2 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/so_txtime.c +26 -7
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/pmu/ebb/Makefile +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/wireguard/netns.sh +12 -1
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.