Linux 5.15.124
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.124 kernel.
All users of the 5.15 kernel series must upgrade.
The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/security-bugs.rst | 39 Documentation/trace/kprobetrace.rst | 8 MAINTAINERS | 1 Makefile | 2 arch/s390/mm/gmap.c | 1 arch/x86/include/asm/kvm-x86-ops.h | 1 arch/x86/include/asm/kvm_host.h | 3 arch/x86/kvm/svm/svm.c | 6 arch/x86/kvm/vmx/vmx.c | 41 arch/x86/kvm/x86.c | 34 drivers/acpi/processor_perflib.c | 38 drivers/ata/pata_ns87415.c | 2 drivers/block/rbd.c | 124 drivers/char/tpm/tpm_tis_core.c | 10 drivers/cpufreq/intel_pstate.c | 14 drivers/gpio/gpio-mvebu.c | 26 drivers/gpio/gpio-tps68470.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 45 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.h | 5 drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h | 2 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h | 13 drivers/gpu/drm/ttm/ttm_bo.c | 25 drivers/hwmon/k10temp.c | 17 drivers/hwmon/nct7802.c | 2 drivers/i2c/busses/i2c-ibm_iic.c | 4 drivers/i2c/busses/i2c-nomadik.c | 42 drivers/i2c/busses/i2c-sh7760.c | 3 drivers/i2c/busses/i2c-tiny-usb.c | 4 drivers/infiniband/hw/bnxt_re/ib_verbs.c | 12 drivers/infiniband/hw/bnxt_re/qplib_fp.c | 18 drivers/infiniband/hw/bnxt_re/qplib_fp.h | 1 drivers/infiniband/hw/irdma/ctrl.c | 31 drivers/infiniband/hw/irdma/defs.h | 46 drivers/infiniband/hw/irdma/hw.c | 3 drivers/infiniband/hw/irdma/main.h | 2 drivers/infiniband/hw/irdma/puda.c | 6 drivers/infiniband/hw/irdma/type.h | 2 drivers/infiniband/hw/irdma/uk.c | 3 drivers/infiniband/hw/irdma/utils.c | 8 drivers/infiniband/hw/mlx4/qp.c | 18 drivers/infiniband/hw/mthca/mthca_qp.c | 2 drivers/irqchip/irq-bcm6345-l1.c | 14 drivers/irqchip/irq-gic-v3-its.c | 75 drivers/md/dm-cache-policy-smq.c | 28 drivers/md/dm-raid.c | 20 drivers/md/md.c | 2 drivers/net/Makefile | 2 drivers/net/bonding/bond_main.c | 5 drivers/net/can/usb/gs_usb.c | 2 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 7 drivers/net/ethernet/emulex/benet/be_main.c | 3 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 17 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 3 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 3 drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 2 drivers/net/ethernet/intel/iavf/iavf_main.c | 11 drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c | 26 drivers/net/ethernet/intel/igc/igc_main.c | 40 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 4 drivers/net/phy/marvell10g.c | 7 drivers/net/team/team.c | 9 drivers/net/virtio_net.c | 4 drivers/net/vxlan.c | 4834 ------------- drivers/net/vxlan/Makefile | 7 drivers/net/vxlan/vxlan_core.c | 4831 ++++++++++++ drivers/pci/controller/pcie-rockchip-ep.c | 156 drivers/pci/controller/pcie-rockchip.h | 40 drivers/pci/pcie/aspm.c | 55 drivers/phy/hisilicon/phy-hisi-inno-usb2.c | 2 drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c | 86 drivers/platform/x86/msi-laptop.c | 8 drivers/pwm/pwm-meson.c | 25 drivers/s390/block/dasd_ioctl.c | 1 drivers/scsi/qla2xxx/qla_attr.c | 3 drivers/scsi/qla2xxx/qla_def.h | 27 drivers/scsi/qla2xxx/qla_gbl.h | 14 drivers/scsi/qla2xxx/qla_init.c | 256 drivers/scsi/qla2xxx/qla_iocb.c | 33 drivers/scsi/qla2xxx/qla_isr.c | 26 drivers/scsi/qla2xxx/qla_target.h | 2 drivers/soundwire/qcom.c | 2 drivers/staging/ks7010/ks_wlan_net.c | 6 drivers/staging/media/atomisp/Kconfig | 1 drivers/staging/rtl8712/rtl871x_xmit.c | 43 drivers/staging/rtl8712/xmit_linux.c | 6 drivers/tty/n_gsm.c | 4 drivers/tty/n_tty.c | 29 drivers/tty/serial/8250/8250_dwlib.c | 6 drivers/tty/serial/qcom_geni_serial.c | 7 drivers/tty/serial/sifive.c | 2 drivers/usb/cdns3/cdns3-gadget.c | 4 drivers/usb/core/quirks.c | 4 drivers/usb/dwc3/core.c | 20 drivers/usb/dwc3/core.h | 3 drivers/usb/dwc3/dwc3-pci.c | 6 drivers/usb/gadget/composite.c | 4 drivers/usb/gadget/legacy/raw_gadget.c | 10 drivers/usb/gadget/udc/tegra-xudc.c | 8 drivers/usb/host/ohci-at91.c | 8 drivers/usb/host/xhci-mtk.c | 1 drivers/usb/host/xhci-pci.c | 4 drivers/usb/host/xhci-ring.c | 25 drivers/usb/host/xhci-tegra.c | 8 drivers/usb/serial/option.c | 6 drivers/usb/serial/usb-serial-simple.c | 73 fs/btrfs/qgroup.c | 18 fs/btrfs/transaction.c | 10 fs/ceph/metric.c | 2 fs/cifs/cifs_dfs_ref.c | 100 fs/cifs/file.c | 4 fs/dlm/plock.c | 100 fs/file.c | 6 fs/internal.h | 2 fs/jbd2/checkpoint.c | 32 fs/ksmbd/vfs.c | 2 fs/nfsd/nfs4state.c | 2 include/linux/namei.h | 2 include/linux/pwm.h | 5 include/net/ipv6.h | 8 include/net/vxlan.h | 13 include/uapi/linux/blkzoned.h | 10 io_uring/io_uring.c | 10 kernel/locking/rtmutex.c | 170 kernel/locking/rtmutex_api.c | 2 kernel/locking/rtmutex_common.h | 47 kernel/locking/ww_mutex.h | 12 kernel/trace/ring_buffer.c | 22 kernel/trace/trace.c | 2 kernel/trace/trace.h | 6 kernel/trace/trace_events.c | 14 kernel/trace/trace_events_hist.c | 7 kernel/trace/trace_events_synth.c | 80 kernel/trace/trace_probe.c | 46 kernel/trace/trace_probe.h | 16 kernel/trace/trace_probe_kernel.h | 30 kernel/trace/trace_probe_tmpl.h | 59 kernel/trace/trace_synth.h | 1 kernel/trace/trace_uprobe.c | 3 net/ceph/messenger.c | 1 net/ipv6/addrconf.c | 14 net/netfilter/nf_tables_api.c | 5 net/netfilter/nft_immediate.c | 27 net/netfilter/nft_set_rbtree.c | 20 net/sched/sch_mqprio.c | 144 net/tipc/crypto.c | 3 net/tipc/node.c | 2 sound/pci/hda/patch_realtek.c | 1 sound/soc/codecs/cs42l51-i2c.c | 6 sound/soc/codecs/cs42l51.c | 7 sound/soc/codecs/cs42l51.h | 1 sound/soc/codecs/wm8904.c | 3 sound/soc/fsl/fsl_spdif.c | 2 tools/testing/selftests/net/mptcp/mptcp_join.sh | 5 tools/testing/selftests/net/mptcp/mptcp_sockopt.sh | 20 virt/kvm/kvm_main.c | 24 158 files changed, 6849 insertions(+), 5939 deletions(-)
Adrien Thierry (2):
phy: qcom-snps-femto-v2: keep cfg_ahb_clk enabled during runtime suspend
phy: qcom-snps-femto-v2: properly enable ref clock
Alexander Aring (3):
dlm: cleanup plock_op vs plock_xop
dlm: rearrange async condition return
fs: dlm: interrupt posix locks only when process is killed
Alexander Steffen (1):
tpm_tis: Explicitly check for error code
Andi Shyti (2):
i2c: nomadik: Remove unnecessary goto label
i2c: nomadik: Use devm_clk_get_enabled()
Andy Shevchenko (1):
pwm: Add a stub for devm_pwmchip_add()
Arnd Bergmann (1):
ata: pata_ns87415: mark ns87560_tf_read static
Arun Easi (1):
scsi: qla2xxx: Add debug prints in the device remove path
Bart Van Assche (1):
block: Fix a source code comment in include/uapi/linux/blkzoned.h
Bartosz Golaszewski (1):
gpio: mvebu: fix irq domain leak
Baskaran Kannan (1):
hwmon: (k10temp) Enable AMD3255 Proc to show negative temperature
Bharath SM (1):
cifs: if deferred close is disabled then close files immediately
Bjorn Helgaas (1):
PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()
Chaoyuan Peng (1):
tty: n_gsm: fix UAF in gsm_cleanup_mux
Christian Brauner (1):
file: always lock position for FMODE_ATOMIC_POS
Christian König (1):
drm/ttm: never consider pinned BOs for eviction&swap
Christophe JAILLET (1):
i2c: nomadik: Remove a useless call in the remove function
Claudio Imbrenda (1):
KVM: s390: pv: fix index value of replaced ASCE
Dan Carpenter (3):
RDMA/mlx4: Make check for invalid flags stricter
Revert "usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()" Revert "usb: xhci: tegra: Fix error check"
Dmitry Baryshkov (1):
drm/msm/dpu: drop enum dpu_core_perf_data_bus_id
Fedor Pchelkin (1):
tipc: stop tipc crypto on failure in tipc_node_create
Filipe Manana (3):
btrfs: fix race between quota disable and relocation
btrfs: check if the transaction was aborted at btrfs_wait_for_commit()
btrfs: check for commit error at btrfs_attach_transaction_barrier()
Flora Cui (1):
drm/amdgpu: fix vkms crtc settings
Florian Westphal (1):
netfilter: nft_set_rbtree: fix overlap expiration walk
Frank Li (2):
usb: gadget: call usb_gadget_check_config() to verify UDC capability
usb: cdns3: fix incorrect calculation of ep_buf_size when more than one config
Gaosheng Cui (2):
scsi: qla2xxx: Remove unused declarations for qla2xxx drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
Gilles Buloz (1):
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
Gratian Crisan (1):
usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy
Greg Kroah-Hartman (3):
Documentation: security-bugs.rst: update preferences when dealing with the linux-distros group
Documentation: security-bugs.rst: clarify CVE handling
Linux 5.15.124
Guchun Chen (1):
drm/amdgpu/vkms: relax timer deactivation by hrtimer_try_to_cancel
Guiting Shen (1):
usb: ohci-at91: Fix the unhandle interrupt when resume
Hangbin Liu (2):
bonding: reset bond's flags when down link is P2P device
team: reset team's flags when down link is P2P device
Hans de Goede (1):
gpio: tps68470: Make tps68470_gpio_output() always set the initial value
Harshit Mogalapalli (1):
phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
Heiner Kallweit (1):
pwm: meson: fix handling of period/duty if greater than UINT_MAX
Hui Li (1):
tty: fix hang on tty device with no_room set
Ilpo Järvinen (3):
PCI/ASPM: Factor out pcie_wait_for_retrain() PCI/ASPM: Avoid link retraining race
n_tty: Rename tail to old_tail in n_tty_read()
Ilya Dryomov (3):
rbd: make get_lock_owner_info() return a single locker or NULL
rbd: harden get_lock_owner_info() a bit
rbd: retrieve and check lock owner twice before blocklisting
Jacob Keller (2):
iavf: fix potential deadlock on allocation failure
iavf: check for removal state before IAVF_FLAG_PF_COMMS_FAILED
Jakub Vanek (1):
Revert "usb: dwc3: core: Enable AutoRetry feature in the controller"
Jason Wang (1):
virtio-net: fix race between set queues and probe
Jedrzej Jagielski (1):
ice: Fix memory management in ice_ethtool_fdir.c
Jens Axboe (1):
io_uring: treat -EAGAIN for REQ_F_NOWAIT as final for io-wq
Jerry Meng (1):
USB: serial: option: support Quectel EM060K_128
Jiawen Wu (1):
net: phy: marvell10g: fix 88x3310 power up
Jijie Shao (2):
net: hns3: fix wrong tc bandwidth weight data issue
net: hns3: fix wrong bw weight of disabled tc issue
Jiri Benc (1):
vxlan: calculate correct header length for GPE
Jisheng Zhang (1):
usb: dwc3: don't reset device side if dwc3 was configured as host-only
Joe Thornber (1):
dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
Johan Hovold (2):
serial: qcom-geni: drop bogus runtime pm state update
USB: serial: simple: sort driver entries
Jonas Gorski (1):
irq-bcm6345-l1: Do not assume a fixed block to cpu mapping
Kashyap Desai (1):
RDMA/bnxt_re: Prevent handling any completions after qp destroy
Krzysztof Kozlowski (1):
phy: qcom-snps: correct struct qcom_snps_hsphy kerneldoc
Larry Finger (1):
staging: r8712: Fix memory leak in _r8712_init_xmit_priv()
Lin Ma (1):
net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64
Luka Guzenko (1):
ALSA: hda/relatek: Enable Mute LED on HP 250 G8
Maciej Żenczykowski (1):
ipv6 addrconf: fix bug where deleting a mngtmpaddr can create a new temporary address
Marc Kleine-Budde (1):
can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
Marc Zyngier (1):
irqchip/gic-v4.1: Properly lock VPEs when doing a directLPI invalidation
Mario Limonciello (1):
drm/amd: Fix an error handling mistake in psp_sw_init()
Mark Brown (1):
ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register
Markus Elfring (2):
i2c: Delete error messages for failed memory allocations
i2c: Improve size determinations
Masami Hiramatsu (Google) (4):
tracing/probes: Add symstr type for dynamic events
tracing/probes: Fix to avoid double count of the string length on the array Revert "tracing: Add "(fault)" name injection to kernel probes" tracing/probes: Fix to record 0-length data_loc in fetch_store_string*() if fails
Matthieu Baerts (2):
selftests: mptcp: sockopt: use 'iptables-legacy' if available
selftests: mptcp: join: only check for ip6tables if needed
Matus Gajdos (1):
ASoC: fsl_spdif: Silence output on stop
Maxim Mikityanskiy (1):
platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100
Mohsen Tahmasebi (1):
USB: serial: option: add Quectel EC200A module support
Muhammad Husaini Zulkifli (1):
igc: Fix Kernel Panic during ndo_tx_timeout callback
Namjae Jeon (1):
ksmbd: remove internal.h include
Oliver Neukum (2):
USB: serial: simple: add Kaufmann RKS+CAN VCP
Revert "xhci: add quirk for host controllers that don't update endpoint DCS"
Ondrej Mosnacek (1):
io_uring: don't audit the capability check in io_uring_create()
Pablo Neira Ayuso (2):
netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR
netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
Paulo Alcantara (1):
cifs: use fs_context for automounts
Peter Zijlstra (1):
locking/rtmutex: Fix task->pi_waiters integrity
Quinn Tran (4):
scsi: qla2xxx: Multi-que support for TMF
scsi: qla2xxx: Fix task management cmd failure
scsi: qla2xxx: Fix task management cmd fail due to unavailable resource
scsi: qla2xxx: Fix hang in task management
Rafael J. Wysocki (3):
ACPI: processor: perflib: Use the "no limit" frequency QoS
ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
cpufreq: intel_pstate: Drop ACPI _PSS states table patching
Ricardo Ribalda (1):
usb: xhci-mtk: set the dma max_seg_size
Rick Wertenbroek (3):
PCI: rockchip: Remove writes to unused registers
PCI: rockchip: Fix window mapping and address translation for endpoint
PCI: rockchip: Don't advertise MSI-X in PCIe capabilities
Rob Clark (1):
drm/msm/adreno: Fix snapshot BINDLESS_DATA size
Roopa Prabhu (1):
vxlan: move to its own directory
Ruihong Luo (1):
serial: 8250_dw: Preserve original value of DLF register
Sakari Ailus (1):
media: staging: atomisp: select V4L2_FWNODE
Samuel Holland (1):
serial: sifive: Fix sifive_serial_console_setup() section
Sean Christopherson (3):
KVM: Grab a reference to KVM for VM and vCPU stats file descriptors
KVM: VMX: Don't fudge CR0 and CR4 for restricted L2 guest
KVM: x86: Disallow KVM_SET_SREGS{2} if incoming CR0 is invalid
Shiraz Saleem (3):
RDMA/irdma: Add missing read barriers RDMA/irdma: Fix data race on CQP completion stats RDMA/irdma: Fix data race on CQP request done
Sindhu Devale (1):
RDMA/irdma: Report correct WC error
Srinivas Kandagatla (1):
soundwire: qcom: update status correctly with mask
Stefan Haberland (1):
s390/dasd: fix hanging device after quiesce/resume
Steve French (1):
cifs: missing directory in MAINTAINERS file
Steven Rostedt (Google) (2):
tracing: Allow synthetic events to pass around stacktraces
tracing: Fix trace_event_raw_event_synth() if else statement
Stewart Smith (1):
tcp: Reduce chance of collisions in inet6_hashfn().
Thomas Bogendoerfer (1):
RDMA/mthca: Fix crash when polling CQ for shared QPs
Thomas Hellström (2):
drm/ttm: Don't print error message if eviction was interrupted drm/ttm: Don't leak a resource on eviction error
Thomas Petazzoni (1):
ASoC: cs42l51: fix driver to properly autoload with automatic module loading
Trond Myklebust (1):
nfsd: Remove incorrect check in nfsd4_validate_stateid
Uwe Kleine-König (2):
gpio: mvebu: Make use of devm_pwmchip_add
pwm: meson: Simplify duplicated per-channel tracking
Vincent Whitchurch (1):
net: stmmac: Apply redundant write work around on 4.xx too
Vladimir Oltean (2):
net/sched: mqprio: refactor nlattr parsing to a separate function net/sched: mqprio: add extack to mqprio_parse_nlattr()
Wang Ming (1):
i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()
Xiubo Li (1):
ceph: never send metrics if disable_send_metrics is set
Yu Kuai (3):
dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths dm raid: clean up four equivalent goto tags in raid_ctr() dm raid: protect md_stop() with 'reconfig_mutex'
Yuan Can (1):
phy: qcom-snps: Use dev_err_probe() to simplify code
Yuanjun Gong (3):
ethernet: atheros: fix return value check in atl1e_tso_csum()
benet: fix return value check in be_lancer_xmit_workarounds()
tipc: check return value of pskb_trim()
Zhang Shurong (1):
staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()
Zheng Yejian (2):
ring-buffer: Fix wrong stat of cpu_buffer->read
tracing: Fix warning in trace_buffered_event_disable()
Zhihao Cheng (1):
jbd2: Fix wrongly judgement for buffer head removing while doing checkpoint
Zqiang (1):
USB: gadget: Fix the memory leak in raw_gadget driver
Łukasz Bartosik (1):
USB: quirks: add quirk for Focusrite Scarlett
Greg Kroah-Hartman
maintainerDocumentation/admin-guide/security-bugs.rst +18 -21
@@ -63,31 +63,28 @@ information submitted to the security list and any followup discussions of the report are treated confidentially even after the embargo has been lifted, in perpetuity. -Coordination ------------- - -Fixes for sensitive bugs, such as those that might lead to privilege -escalations, may need to be coordinated with the private -<[email protected]> mailing list so that distribution vendors -are well prepared to issue a fixed kernel upon public disclosure of the -upstream fix. Distros will need some time to test the proposed patch and -will generally request at least a few days of embargo, and vendor update -publication prefers to happen Tuesday through Thursday. When appropriate, -the security team can assist with this coordination, or the reporter can -include linux-distros from the start. In this case, remember to prefix -the email Subject line with "[vs]" as described in the linux-distros wiki: -<http://oss-security.openwall.org/wiki/mailing-lists/distros#how-to-use-the-lists> +Coordination with other groups +------------------------------ + +The kernel security team strongly recommends that reporters of potential +security issues NEVER contact the "linux-distros" mailing list until +AFTER discussing it with the kernel security team. Do not Cc: both +lists at once. You may contact the linux-distros mailing list after a +fix has been agreed on and you fully understand the requirements that +doing so will impose on you and the kernel community. + +The different lists have different goals and the linux-distros rules do +not contribute to actually fixing any potential security problems. CVE assignment -------------- -The security team does not normally assign CVEs, nor do we require them -for reports or fixes, as this can needlessly complicate the process and -may delay the bug handling. If a reporter wishes to have a CVE identifier -assigned ahead of public disclosure, they will need to contact the private -linux-distros list, described above. When such a CVE identifier is known -before a patch is provided, it is desirable to mention it in the commit -message if the reporter agrees. +The security team does not assign CVEs, nor do we require them for +reports or fixes, as this can needlessly complicate the process and may +delay the bug handling. If a reporter wishes to have a CVE identifier +assigned, they should find one by themselves, for example by contacting +MITRE directly. However under no circumstances will a patch inclusion +be delayed to wait for a CVE identifier to arrive. Non-disclosure agreements -------------------------
Documentation/trace/kprobetrace.rst +6 -2
@@ -58,8 +58,8 @@ Synopsis of kprobe_events NAME=FETCHARG : Set NAME as the argument name of FETCHARG. FETCHARG:TYPE : Set TYPE as the type of FETCHARG. Currently, basic types (u8/u16/u32/u64/s8/s16/s32/s64), hexadecimal types - (x8/x16/x32/x64), "string", "ustring" and bitfield - are supported. + (x8/x16/x32/x64), "string", "ustring", "symbol", "symstr" + and bitfield are supported. (\*1) only for the probe on function entry (offs == 0). (\*2) only for return probe.
@@ -96,6 +96,10 @@ offset, and container-size (usually 32). The syntax is:: Symbol type('symbol') is an alias of u32 or u64 type (depends on BITS_PER_LONG) which shows given pointer in "symbol+offset" style. +On the other hand, symbol-string type ('symstr') converts the given address to +"symbol+offset/symbolsize" style and stores it as a null-terminated string. +With 'symstr' type, you can filter the event with wildcard pattern of the +symbols, and you don't need to solve symbol name by yourself. For $comm, the default type is "string"; any other type is invalid. .. _user_mem_access:
MAINTAINERS +1 -0
@@ -4666,6 +4666,7 @@ T: git git://git.samba.org/sfrench/cifs-2.6.git F: Documentation/admin-guide/cifs/ F: fs/cifs/ F: fs/smbfs_common/ +F: include/uapi/linux/cifs COMPACTPCI HOTPLUG CORE M: Scott Murray <[email protected]>
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 123 +SUBLEVEL = 124 EXTRAVERSION = NAME = Trick or Treat
arch/s390/mm/gmap.c +1 -0
@@ -2791,6 +2791,7 @@ int s390_replace_asce(struct gmap *gmap) page =alloc_pages (GFP_KERNEL_ACCOUNT ,CRST_ALLOC_ORDER );if (!page)return -ENOMEM ; + page->index =0 ; table =page_to_virt (page);memcpy (table, gmap->table,1UL << (CRST_ALLOC_ORDER +PAGE_SHIFT ));
arch/x86/include/asm/kvm-x86-ops.h +1 -0
@@ -34,6 +34,7 @@ KVM_X86_OP(get_segment) KVM_X86_OP(get_cpl) KVM_X86_OP(set_segment) KVM_X86_OP_NULL(get_cs_db_l_bits) +KVM_X86_OP(is_valid_cr0) KVM_X86_OP(set_cr0) KVM_X86_OP(is_valid_cr4) KVM_X86_OP(set_cr4)
arch/x86/include/asm/kvm_host.h +2 -1
@@ -1333,8 +1333,9 @@ struct kvm_x86_ops {void (*set_segment)(struct kvm_vcpu *vcpu,struct kvm_segment *var,int seg);void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu,int *db,int *l); +bool (*is_valid_cr0)(struct kvm_vcpu *vcpu,unsigned long cr0);void (*set_cr0)(struct kvm_vcpu *vcpu,unsigned long cr0); -bool (*is_valid_cr4)(struct kvm_vcpu *vcpu,unsigned long cr0); +bool (*is_valid_cr4)(struct kvm_vcpu *vcpu,unsigned long cr4);void (*set_cr4)(struct kvm_vcpu *vcpu,unsigned long cr4);int (*set_efer)(struct kvm_vcpu *vcpu,u64 efer);void (*get_idt)(struct kvm_vcpu *vcpu,struct desc_ptr *dt);
arch/x86/kvm/svm/svm.c +6 -0
@@ -1734,6 +1734,11 @@ static void svm_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt)vmcb_mark_dirty (svm->vmcb,VMCB_DT ); } +static bool svm_is_valid_cr0 (struct kvm_vcpu *vcpu,unsigned long cr0) +{ +return true; +} +void svm_set_cr0 (struct kvm_vcpu *vcpu,unsigned long cr0) {struct vcpu_svm *svm =to_svm (vcpu);
@@ -4596,6 +4601,7 @@ static struct kvm_x86_ops svm_x86_ops __initdata = { .set_segment = svm_set_segment, .get_cpl = svm_get_cpl, .get_cs_db_l_bits = kvm_get_cs_db_l_bits, + .is_valid_cr0 = svm_is_valid_cr0, .set_cr0 = svm_set_cr0, .is_valid_cr4 = svm_is_valid_cr4, .set_cr4 = svm_set_cr4,
arch/x86/kvm/vmx/vmx.c +30 -11
100 lines not on this page · raw message
arch/x86/kvm/x86.c +22 -12
@@ -876,6 +876,22 @@ int load_pdptrs(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, unsigned long cr3) }EXPORT_SYMBOL_GPL (load_pdptrs); +static bool kvm_is_valid_cr0 (struct kvm_vcpu *vcpu,unsigned long cr0) +{ +#ifdef CONFIG_X86_64 +if (cr0 &0xffffffff00000000UL ) +return false; +#endif + +if ((cr0 &X86_CR0_NW ) && !(cr0 &X86_CR0_CD )) +return false; + +if ((cr0 &X86_CR0_PG ) && !(cr0 &X86_CR0_PE )) +return false; + +return static_call (kvm_x86_is_valid_cr0)(vcpu, cr0); +} +void kvm_post_set_cr0 (struct kvm_vcpu *vcpu,unsigned long old_cr0,unsigned long cr0) {if ((cr0 ^ old_cr0) &X86_CR0_PG ) {
@@ -898,20 +914,13 @@ int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)unsigned long old_cr0 =kvm_read_cr0 (vcpu);unsigned long pdptr_bits =X86_CR0_CD |X86_CR0_NW |X86_CR0_PG ; - cr0 |=X86_CR0_ET ; - -#ifdef CONFIG_X86_64 -if (cr0 &0xffffffff00000000UL ) +if (!kvm_is_valid_cr0 (vcpu, cr0))return 1 ; -#endif - - cr0 &= ~CR0_RESERVED_BITS ; -if ((cr0 &X86_CR0_NW ) && !(cr0 &X86_CR0_CD )) -return 1 ; + cr0 |=X86_CR0_ET ; -if ((cr0 &X86_CR0_PG ) && !(cr0 &X86_CR0_PE )) -return 1 ; +/* Write to CR0 reserved bits are ignored, even on Intel. */ + cr0 &= ~CR0_RESERVED_BITS ;#ifdef CONFIG_X86_64 if ((vcpu->arch.efer & EFER_LME) && !is_paging(vcpu) &&
@@ -10643,7 +10652,8 @@ static bool kvm_is_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)return false; } -return kvm_is_valid_cr4 (vcpu, sregs->cr4); +return kvm_is_valid_cr4 (vcpu, sregs->cr4) && +kvm_is_valid_cr0 (vcpu, sregs->cr0); } static int __set_sregs_common(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs,
drivers/acpi/processor_perflib.c +30 -8
@@ -53,6 +53,8 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr) {acpi_status status =0 ;unsigned long long ppc =0 ; +s32 qos_value; +int index;int ret;if (!pr)
@@ -72,17 +74,30 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr) } } + index = ppc; + +if (pr->performance_platform_limit == index || + ppc >= pr->performance->state_count) +return 0 ; +pr_debug ("CPU %d: _PPC is %d - frequency %s limited\n" , pr->id, - (int )ppc, ppc ?"" :"not" ); + index, index ?"is" :"is not" ); - pr->performance_platform_limit = (int )ppc; + pr->performance_platform_limit = index; -if (ppc >= pr->performance->state_count || -unlikely (!freq_qos_request_active (&pr->perflib_req))) +if (unlikely (!freq_qos_request_active (&pr->perflib_req)))return 0 ; - ret =freq_qos_update_request (&pr->perflib_req, - pr->performance->states[ppc].core_frequency *1000 ); +/* +* If _PPC returns 0, it means that all of the available states can be +* used ("no limit"). +*/ +if (index ==0 ) + qos_value =FREQ_QOS_MAX_DEFAULT_VALUE ; +else + qos_value = pr->performance->states[index].core_frequency *1000 ; + + ret =freq_qos_update_request (&pr->perflib_req, qos_value);if (ret <0 ) {pr_warn ("Failed to update perflib freq constraint: CPU%d (%d)\n" , pr->id, ret);
@@ -165,9 +180,16 @@ void acpi_processor_ppc_init(struct cpufreq_policy *policy)if (!pr)continue ; +/* +* Reset performance_platform_limit in case there is a stale +* value in it, so as to make it match the "no limit" QoS value +* below. +*/ + pr->performance_platform_limit =0 ; + ret =freq_qos_add_request (&policy->constraints, - &pr->perflib_req, -FREQ_QOS_MAX ,INT_MAX ); + &pr->perflib_req,FREQ_QOS_MAX , +FREQ_QOS_MAX_DEFAULT_VALUE );if (ret <0 )pr_err ("Failed to add freq constraint for CPU%d (%d)\n" , cpu, ret);
drivers/ata/pata_ns87415.c +1 -1
@@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap)* LOCKING: * Inherited from caller. */ -void ns87560_tf_read (struct ata_port *ap,struct ata_taskfile *tf) +static void ns87560_tf_read (struct ata_port *ap,struct ata_taskfile *tf) {struct ata_ioports *ioaddr = &ap->ioaddr;
drivers/block/rbd.c +86 -38
188 lines not on this page · raw message
drivers/char/tpm/tpm_tis_core.c +8 -2
@@ -314,6 +314,7 @@ static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count)int size =0 ;int status;u32 expected; +int rc;if (count <TPM_HEADER_SIZE ) { size = -EIO ;
@@ -333,8 +334,13 @@ static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count) goto out; } - size +=recv_data (chip, &buf[TPM_HEADER_SIZE ], - expected -TPM_HEADER_SIZE ); + rc =recv_data (chip, &buf[TPM_HEADER_SIZE ], + expected -TPM_HEADER_SIZE ); +if (rc <0 ) { + size = rc; + goto out; + } + size += rc;if (size < expected) {dev_err (&chip->dev,"Unable to read remainder of result\n" ); size = -ETIME ;
drivers/cpufreq/intel_pstate.c +0 -14
@@ -448,20 +448,6 @@ static void intel_pstate_init_acpi_perf_limits(struct cpufreq_policy *policy) (u32) cpu->acpi_perf_data.states[i].control); } -/* -* The _PSS table doesn't contain whole turbo frequency range. -* This just contains +1 MHZ above the max non turbo frequency, -* with control value corresponding to max turbo ratio. But -* when cpufreq set policy is called, it will call with this -* max frequency, which will cause a reduced performance as -* this driver uses real max turbo frequency as the max -* frequency. So correct this frequency in _PSS table to -* correct max turbo frequency based on the turbo state. -* Also need to convert to MHz as _PSS freq is in MHz. -*/ -if (!global.turbo_disabled) - cpu->acpi_perf_data.states[0 ].core_frequency = - policy->cpuinfo.max_freq /1000 ; cpu->valid_pss_table = true;pr_debug ("_PPC limits will be enforced\n" );
drivers/gpio/gpio-mvebu.c +15 -11
@@ -874,7 +874,7 @@ static int mvebu_pwm_probe(struct platform_device *pdev,spin_lock_init (&mvpwm->lock); -return pwmchip_add (&mvpwm->chip); +return devm_pwmchip_add (dev, &mvpwm->chip); }#ifdef CONFIG_DEBUG_FS
@@ -1112,6 +1112,13 @@ static int mvebu_gpio_probe_syscon(struct platform_device *pdev,return 0 ; } +static void mvebu_gpio_remove_irq_domain (void *data) +{ +struct irq_domain *domain = data; + +irq_domain_remove (domain); +} +static int mvebu_gpio_probe (struct platform_device *pdev) {struct mvebu_gpio_chip *mvchip;
@@ -1244,17 +1251,21 @@ static int mvebu_gpio_probe(struct platform_device *pdev)if (!mvchip->domain) {dev_err (&pdev->dev,"couldn't allocate irq domain %s (DT).\n" , mvchip->chip.label); - err = -ENODEV ; - goto err_pwm; +return -ENODEV ; } + err =devm_add_action_or_reset (&pdev->dev, mvebu_gpio_remove_irq_domain, + mvchip->domain); +if (err) +return err; + err =irq_alloc_domain_generic_chips ( mvchip->domain, ngpios,2 , np->name, handle_level_irq,IRQ_NOREQUEST |IRQ_NOPROBE |IRQ_LEVEL ,0 ,0 );if (err) {dev_err (&pdev->dev,"couldn't allocate irq chips %s (DT).\n" , mvchip->chip.label); - goto err_domain; +return err; }/*
@@ -1294,13 +1305,6 @@ static int mvebu_gpio_probe(struct platform_device *pdev) }return 0 ; - -err_domain: -irq_domain_remove (mvchip->domain); -err_pwm: -pwmchip_remove (&mvchip->mvpwm->chip); - -return err; }static struct platform_driver mvebu_gpio_driver = {
drivers/gpio/gpio-tps68470.c +3 -3
@@ -91,13 +91,13 @@ static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset,struct tps68470_gpio_data *tps68470_gpio =gpiochip_get_data (gc);struct regmap *regmap = tps68470_gpio->tps68470_regmap; +/* Set the initial value */ +tps68470_gpio_set (gc, offset, value); +/* rest are always outputs */ if (offset >=TPS68470_N_REGULAR_GPIO )return 0 ; -/* Set the initial value */ -tps68470_gpio_set (gc, offset, value); -return regmap_update_bits (regmap,TPS68470_GPIO_CTL_REG_A (offset),TPS68470_GPIO_MODE_MASK ,TPS68470_GPIO_MODE_OUT_CMOS );
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -3
@@ -341,11 +341,11 @@ static int psp_sw_init(void *handle)return 0 ; failed2: -amdgpu_bo_free_kernel (&psp->fw_pri_bo, - &psp->fw_pri_mc_addr, &psp->fw_pri_buf); -failed1:amdgpu_bo_free_kernel (&psp->fence_buf_bo, &psp->fence_buf_mc_addr, &psp->fence_buf); +failed1: +amdgpu_bo_free_kernel (&psp->fw_pri_bo, + &psp->fw_pri_mc_addr, &psp->fw_pri_buf);return ret; }
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +30 -15
118 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.h +2 -3
@@ -10,15 +10,14 @@#define YRES_MAX 16384#define drm_crtc_to_amdgpu_vkms_output (target) \ - container_of(target, struct amdgpu_vkms_output, crtc) + container_of(target, struct amdgpu_vkms_output, crtc.base)extern const struct amdgpu_ip_block_version amdgpu_vkms_ip_block;struct amdgpu_vkms_output { -struct drm_crtc crtc; +struct amdgpu_crtc crtc;struct drm_encoder encoder;struct drm_connector connector; -struct hrtimer vblank_hrtimer;ktime_t period_ns;struct drm_pending_vblank_event *event; };
drivers/gpu/drm/msm/adreno/a5xx_gpu.c +1 -1
@@ -90,7 +90,7 @@ static void a5xx_submit_in_rb(struct msm_gpu *gpu, struct msm_gem_submit *submit* since we've already mapped it once in * submit_reloc() */ -if (WARN_ON (!ptr)) +if (WARN_ON (IS_ERR_OR_NULL (ptr)))return ;for (i =0 ; i < dwords; i++) {
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h +1 -1
@@ -200,7 +200,7 @@ static const struct a6xx_shader_block {SHADER (A6XX_SP_LB_3_DATA ,0x800 ),SHADER (A6XX_SP_LB_4_DATA ,0x800 ),SHADER (A6XX_SP_LB_5_DATA ,0x200 ), -SHADER (A6XX_SP_CB_BINDLESS_DATA ,0x2000 ), +SHADER (A6XX_SP_CB_BINDLESS_DATA ,0x800 ),SHADER (A6XX_SP_CB_LEGACY_DATA ,0x280 ),SHADER (A6XX_SP_UAV_DATA ,0x80 ), SHADER(A6XX_SP_INST_TAG, 0x80),
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h +0 -13
@@ -14,19 +14,6 @@#define DPU_PERF_DEFAULT_MAX_CORE_CLK_RATE 412500000 -/** -* enum dpu_core_perf_data_bus_id - data bus identifier -* @DPU_CORE_PERF_DATA_BUS_ID_MNOC: DPU/MNOC data bus -* @DPU_CORE_PERF_DATA_BUS_ID_LLCC: MNOC/LLCC data bus -* @DPU_CORE_PERF_DATA_BUS_ID_EBI: LLCC/EBI data bus -*/ -enum dpu_core_perf_data_bus_id { -DPU_CORE_PERF_DATA_BUS_ID_MNOC , -DPU_CORE_PERF_DATA_BUS_ID_LLCC , -DPU_CORE_PERF_DATA_BUS_ID_EBI , -DPU_CORE_PERF_DATA_BUS_ID_MAX , -}; -/** * struct dpu_core_perf_params - definition of performance parameters * @max_per_pipe_ib: maximum instantaneous bandwidth request
drivers/gpu/drm/ttm/ttm_bo.c +16 -9
@@ -552,17 +552,18 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, goto out; } -bounce: - ret =ttm_bo_handle_move_mem (bo, evict_mem, true, ctx, &hop); -if (ret == -EMULTIHOP ) { +do { + ret =ttm_bo_handle_move_mem (bo, evict_mem, true, ctx, &hop); +if (ret != -EMULTIHOP ) +break ; + ret =ttm_bo_bounce_temp_buffer (bo, &evict_mem, ctx, &hop); -if (ret) { + }while (!ret); + +if (ret) { +ttm_resource_free (bo, &evict_mem); +if (ret != -ERESTARTSYS && ret != -EINTR )pr_err ("Buffer eviction failed\n" ); -ttm_resource_free (bo, &evict_mem); - goto out; - } -/* try and move to final place now. */ - goto bounce; } out:return ret;
@@ -603,6 +604,12 @@ static bool ttm_bo_evict_swapout_allowable(struct ttm_buffer_object *bo, {bool ret = false; +if (bo->pin_count) { + *locked = false; + *busy = false; +return false; + } +if (bo->base.resv == ctx->resv) {dma_resv_assert_held (bo->base.resv);if (ctx->allow_res_evict)
drivers/hwmon/k10temp.c +15 -2
@@ -97,6 +97,13 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);#define F19H_M01H_CFACTOR_ICORE 1000000/* 1A / LSB */ #define F19H_M01H_CFACTOR_ISOC 310000/* 0.31A / LSB */ +/* +* AMD's Industrial processor 3255 supports temperature from -40 deg to 105 deg Celsius. +* Use the model name to identify 3255 CPUs and set a flag to display negative temperature. +* Do not round off to zero for negative Tctl or Tdie values if the flag is set +*/ +#define AMD_I3255_STR "3255" +struct k10temp_data {struct pci_dev *pdev;void (*read_htcreg)(struct pci_dev *pdev,u32 *regval);
@@ -106,6 +113,7 @@ struct k10temp_data {u32 show_temp;bool is_zen;u32 ccd_offset; +bool disp_negative; };#define TCTL_BIT 0
@@ -220,12 +228,12 @@ static int k10temp_read_temp(struct device *dev, u32 attr, int channel,switch (channel) {case 0 :/* Tctl */ *val =get_raw_temp (data); -if (*val <0 ) +if (*val <0 && !data->disp_negative) *val =0 ;break ;case 1 :/* Tdie */ *val =get_raw_temp (data) - data->temp_offset; -if (*val <0 ) +if (*val <0 && !data->disp_negative) *val =0 ;break ; case 2 ... 9: /* Tccd{1-8} */
@@ -417,6 +425,11 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id) data->pdev = pdev; data->show_temp |=BIT (TCTL_BIT );/* Always show Tctl */ +if (boot_cpu_data.x86 ==0x17 && +strstr (boot_cpu_data.x86_model_id,AMD_I3255_STR )) { + data->disp_negative = true; + } +if (boot_cpu_data.x86 ==0x15 && ((boot_cpu_data.x86_model &0xf0 ) ==0x60 || (boot_cpu_data.x86_model &0xf0 ) ==0x70 )) {
drivers/hwmon/nct7802.c +1 -1
@@ -708,7 +708,7 @@ static umode_t nct7802_temp_is_visible(struct kobject *kobj,if (index >=38 && index <46 && !(reg &0x01 ))/* PECI 0 */ return 0 ; -if (index >=0x46 && (!(reg &0x02 )))/* PECI 1 */ +if (index >=46 && !(reg &0x02 ))/* PECI 1 */ return 0 ;return attr->mode;
drivers/i2c/busses/i2c-ibm_iic.c +1 -3
@@ -694,10 +694,8 @@ static int iic_probe(struct platform_device *ofdev)int ret; dev =kzalloc (sizeof (*dev),GFP_KERNEL ); -if (!dev) { -dev_err (&ofdev->dev,"failed to allocate device data\n" ); +if (!dev)return -ENOMEM ; - }platform_set_drvdata (ofdev, dev);
drivers/i2c/busses/i2c-nomadik.c +11 -31
83 lines not on this page · raw message
drivers/i2c/busses/i2c-sh7760.c +1 -2
@@ -443,9 +443,8 @@ static int sh7760_i2c_probe(struct platform_device *pdev) goto out0; } - id =kzalloc (sizeof (struct cami2c ),GFP_KERNEL ); + id =kzalloc (sizeof (*id),GFP_KERNEL );if (!id) { -dev_err (&pdev->dev,"no mem for private data\n" ); ret = -ENOMEM ; goto out0; }
drivers/i2c/busses/i2c-tiny-usb.c +1 -3
@@ -226,10 +226,8 @@ static int i2c_tiny_usb_probe(struct usb_interface *interface,/* allocate memory for our device state and initialize it */ dev =kzalloc (sizeof (*dev),GFP_KERNEL ); -if (dev ==NULL ) { -dev_err (&interface->dev,"Out of memory\n" ); +if (!dev) goto error; - } dev->usb_dev =usb_get_dev (interface_to_usbdev (interface)); dev->interface = interface;
drivers/infiniband/hw/bnxt_re/ib_verbs.c +12 -0
@@ -792,7 +792,10 @@ static int bnxt_re_destroy_gsi_sqp(struct bnxt_re_qp *qp)int bnxt_re_destroy_qp (struct ib_qp *ib_qp,struct ib_udata *udata) { struct bnxt_re_qp *qp = container_of(ib_qp, struct bnxt_re_qp, ib_qp); +struct bnxt_qplib_qp *qplib_qp = &qp->qplib_qp;struct bnxt_re_dev *rdev = qp->rdev; +struct bnxt_qplib_nq *scq_nq =NULL ; +struct bnxt_qplib_nq *rcq_nq =NULL ;unsigned int flags;int rc;
@@ -826,6 +829,15 @@ int bnxt_re_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata)ib_umem_release (qp->rumem);ib_umem_release (qp->sumem); +/* Flush all the entries of notification queue associated with +* given qp. +*/ + scq_nq = qplib_qp->scq->nq; + rcq_nq = qplib_qp->rcq->nq; +bnxt_re_synchronize_nq (scq_nq); +if (scq_nq != rcq_nq) +bnxt_re_synchronize_nq (rcq_nq); +return 0 ; }
drivers/infiniband/hw/bnxt_re/qplib_fp.c +18 -0
@@ -386,6 +386,24 @@ static void bnxt_qplib_service_nq(struct tasklet_struct *t)spin_unlock_bh (&hwq->lock); } +/* bnxt_re_synchronize_nq - self polling notification queue. +* @nq - notification queue pointer +* +* This function will start polling entries of a given notification queue +* for all pending entries. +* This function is useful to synchronize notification entries while resources +* are going away. +*/ + +void bnxt_re_synchronize_nq (struct bnxt_qplib_nq *nq) +{ +int budget = nq->budget; + + nq->budget = nq->hwq.max_elements; +bnxt_qplib_service_nq (&nq->nq_tasklet); + nq->budget = budget; +} +static irqreturn_t bnxt_qplib_nq_irq (int irq,void *dev_instance) {struct bnxt_qplib_nq *nq = dev_instance;
drivers/infiniband/hw/bnxt_re/qplib_fp.h +1 -0
@@ -548,6 +548,7 @@ int bnxt_qplib_process_flush_list(struct bnxt_qplib_cq *cq,struct bnxt_qplib_cqe *cqe, int num_cqes);void bnxt_qplib_flush_cqn_wq (struct bnxt_qplib_qp *qp); +void bnxt_re_synchronize_nq (struct bnxt_qplib_nq *nq);static inline void *bnxt_qplib_get_swqe (struct bnxt_qplib_q *que,u32 *swq_idx) {
drivers/infiniband/hw/irdma/ctrl.c +19 -12
@@ -2741,13 +2741,13 @@ irdma_sc_cq_modify(struct irdma_sc_cq *cq, struct irdma_modify_cq_info *info,*/ void irdma_check_cqp_progress (struct irdma_cqp_timeout *timeout,struct irdma_sc_dev *dev) { -if (timeout->compl_cqp_cmds != dev->cqp_cmd_stats[IRDMA_OP_CMPL_CMDS ]) { - timeout->compl_cqp_cmds = dev->cqp_cmd_stats[IRDMA_OP_CMPL_CMDS ]; +u64 completed_ops =atomic64_read (&dev->cqp->completed_ops); + +if (timeout->compl_cqp_cmds != completed_ops) { + timeout->compl_cqp_cmds = completed_ops; timeout->count =0 ; - }else { -if (dev->cqp_cmd_stats[IRDMA_OP_REQ_CMDS ] != - timeout->compl_cqp_cmds) - timeout->count++; + }else if (timeout->compl_cqp_cmds != dev->cqp->requested_ops) { + timeout->count++; } }
@@ -2790,7 +2790,7 @@ static enum irdma_status_code irdma_cqp_poll_registers(struct irdma_sc_cqp *cqp,if (newtail != tail) {/* SUCCESS */ IRDMA_RING_MOVE_TAIL (cqp->sq_ring); - cqp->dev->cqp_cmd_stats[IRDMA_OP_CMPL_CMDS ]++; +atomic64_inc (&cqp->completed_ops);return 0 ; }udelay (cqp->dev->hw_attrs.max_sleep_count);
@@ -3152,8 +3152,8 @@ enum irdma_status_code irdma_sc_cqp_init(struct irdma_sc_cqp *cqp, info->dev->cqp = cqp;IRDMA_RING_INIT (cqp->sq_ring, cqp->sq_size); - cqp->dev->cqp_cmd_stats[IRDMA_OP_REQ_CMDS ] =0 ; - cqp->dev->cqp_cmd_stats[IRDMA_OP_CMPL_CMDS ] =0 ; + cqp->requested_ops =0 ; +atomic64_set (&cqp->completed_ops,0 );/* for the cqp commands backlog. */ INIT_LIST_HEAD (&cqp->dev->cqp_cmd_head);
@@ -3306,7 +3306,7 @@ __le64 *irdma_sc_cqp_get_next_send_wqe_idx(struct irdma_sc_cqp *cqp, u64 scratchif (ret_code)return NULL ; - cqp->dev->cqp_cmd_stats[IRDMA_OP_REQ_CMDS ]++; + cqp->requested_ops++;if (!*wqe_idx) cqp->polarity = !cqp->polarity; wqe = cqp->sq_base[*wqe_idx].elem;
@@ -3395,6 +3395,9 @@ enum irdma_status_code irdma_sc_ccq_get_cqe_info(struct irdma_sc_cq *ccq,if (polarity != ccq->cq_uk.polarity)return IRDMA_ERR_Q_EMPTY ; +/* Ensure CEQE contents are read after valid bit is checked */ +dma_rmb (); +get_64bit_val (cqe,8 , &qp_ctx); cqp = (struct irdma_sc_cqp *)(unsigned long )qp_ctx; info->error = (bool )FIELD_GET (IRDMA_CQ_ERROR , temp);
@@ -3429,7 +3432,7 @@ enum irdma_status_code irdma_sc_ccq_get_cqe_info(struct irdma_sc_cq *ccq,dma_wmb ();/* make sure shadow area is updated before moving tail */ IRDMA_RING_MOVE_TAIL (cqp->sq_ring); - ccq->dev->cqp_cmd_stats[IRDMA_OP_CMPL_CMDS ]++; +atomic64_inc (&cqp->completed_ops);return ret_code; }
@@ -4046,13 +4049,17 @@ enum irdma_status_code irdma_sc_get_next_aeqe(struct irdma_sc_aeq *aeq,u8 polarity; aeqe =IRDMA_GET_CURRENT_AEQ_ELEM (aeq); -get_64bit_val (aeqe,0 , &compl_ctx);get_64bit_val (aeqe,8 , &temp); polarity = (u8 )FIELD_GET (IRDMA_AEQE_VALID , temp);if (aeq->polarity != polarity)return IRDMA_ERR_Q_EMPTY ; +/* Ensure AEQE contents are read after valid bit is checked */ +dma_rmb (); + +get_64bit_val (aeqe,0 , &compl_ctx); +print_hex_dump_debug ("WQE: AEQ_ENTRY WQE" ,DUMP_PREFIX_OFFSET ,16 ,8 , aeqe,16 , false);
drivers/infiniband/hw/irdma/defs.h +22 -24
54 lines not on this page · raw message
drivers/infiniband/hw/irdma/hw.c +2 -1
@@ -191,6 +191,7 @@ static void irdma_set_flush_fields(struct irdma_sc_qp *qp,case IRDMA_AE_AMP_MWBIND_INVALID_RIGHTS :case IRDMA_AE_AMP_MWBIND_BIND_DISABLED :case IRDMA_AE_AMP_MWBIND_INVALID_BOUNDS : +case IRDMA_AE_AMP_MWBIND_VALID_STAG : qp->flush_code =FLUSH_MW_BIND_ERR ; qp->event_type =IRDMA_QP_EVENT_ACCESS_ERR ;break ;
@@ -2084,7 +2085,7 @@ void irdma_cqp_ce_handler(struct irdma_pci_f *rf, struct irdma_sc_cq *cq) cqp_request->compl_info.error = info.error;if (cqp_request->waiting) { - cqp_request->request_done = true; +WRITE_ONCE (cqp_request->request_done, true);wake_up (&cqp_request->waitq);irdma_put_cqp_request (&rf->cqp, cqp_request); }else {
drivers/infiniband/hw/irdma/main.h +1 -1
@@ -160,8 +160,8 @@ struct irdma_cqp_request {void (*callback_fcn)(struct irdma_cqp_request *cqp_request);void *param;struct irdma_cqp_compl_info compl_info; +bool request_done;/* READ/WRITE_ONCE macros operate on it */ bool waiting:1; - bool request_done:1; bool dynamic:1; };
drivers/infiniband/hw/irdma/puda.c +6 -0
@@ -235,6 +235,9 @@ irdma_puda_poll_info(struct irdma_sc_cq *cq, struct irdma_puda_cmpl_info *info)if (valid_bit != cq_uk->polarity)return IRDMA_ERR_Q_EMPTY ; +/* Ensure CQE contents are read after valid bit is checked */ +dma_rmb (); +if (cq->dev->hw_attrs.uk_attrs.hw_rev >=IRDMA_GEN_2 ) ext_valid = (bool )FIELD_GET (IRDMA_CQ_EXTCQE , qword3);
@@ -248,6 +251,9 @@ irdma_puda_poll_info(struct irdma_sc_cq *cq, struct irdma_puda_cmpl_info *info)if (polarity != cq_uk->polarity)return IRDMA_ERR_Q_EMPTY ; +/* Ensure ext CQE contents are read after ext valid bit is checked */ +dma_rmb (); +IRDMA_RING_MOVE_HEAD_NOCHECK (cq_uk->cq_ring);if (!IRDMA_RING_CURRENT_HEAD (cq_uk->cq_ring)) cq_uk->polarity = !cq_uk->polarity;
drivers/infiniband/hw/irdma/type.h +2 -0
@@ -411,6 +411,8 @@ struct irdma_sc_cqp {struct irdma_dcqcn_cc_params dcqcn_params;__le64 *host_ctx;u64 *scratch_array; +u64 requested_ops; +atomic64_t completed_ops;u32 cqp_id;u32 sq_size;u32 hw_sq_size;
drivers/infiniband/hw/irdma/uk.c +3 -0
@@ -1549,6 +1549,9 @@ void irdma_uk_clean_cq(void *q, struct irdma_cq_uk *cq)if (polarity != temp)break ; +/* Ensure CQE contents are read after valid bit is checked */ +dma_rmb (); +get_64bit_val (cqe,8 , &comp_ctx);if ((void *)(unsigned long )comp_ctx == q)set_64bit_val (cqe,8 ,0 );
drivers/infiniband/hw/irdma/utils.c +4 -4
@@ -481,7 +481,7 @@ void irdma_free_cqp_request(struct irdma_cqp *cqp,if (cqp_request->dynamic) {kfree (cqp_request); }else { - cqp_request->request_done = false; +WRITE_ONCE (cqp_request->request_done, false); cqp_request->callback_fcn =NULL ; cqp_request->waiting = false;
@@ -515,7 +515,7 @@ irdma_free_pending_cqp_request(struct irdma_cqp *cqp, {if (cqp_request->waiting) { cqp_request->compl_info.error = true; - cqp_request->request_done = true; +WRITE_ONCE (cqp_request->request_done, true);wake_up (&cqp_request->waitq); } wait_event_timeout(cqp->remove_wq,
@@ -567,11 +567,11 @@ static enum irdma_status_code irdma_wait_event(struct irdma_pci_f *rf,bool cqp_error = false;enum irdma_status_code err_code =0 ; - cqp_timeout.compl_cqp_cmds = rf->sc_dev.cqp_cmd_stats[IRDMA_OP_CMPL_CMDS ]; + cqp_timeout.compl_cqp_cmds =atomic64_read (&rf->sc_dev.cqp->completed_ops); do { irdma_cqp_ce_handler(rf, &rf->ccq.sc_cq); if (wait_event_timeout(cqp_request->waitq, - cqp_request->request_done, + READ_ONCE(cqp_request->request_done), msecs_to_jiffies(CQP_COMPL_WAIT_TIME_MS))) break;
drivers/infiniband/hw/mlx4/qp.c +9 -9
@@ -530,15 +530,15 @@ static int set_qp_rss(struct mlx4_ib_dev *dev, struct mlx4_ib_rss *rss_ctx,return (-EOPNOTSUPP ); } -if (ucmd->rx_hash_fields_mask & ~(MLX4_IB_RX_HASH_SRC_IPV4 | -MLX4_IB_RX_HASH_DST_IPV4 | -MLX4_IB_RX_HASH_SRC_IPV6 | -MLX4_IB_RX_HASH_DST_IPV6 | -MLX4_IB_RX_HASH_SRC_PORT_TCP | -MLX4_IB_RX_HASH_DST_PORT_TCP | -MLX4_IB_RX_HASH_SRC_PORT_UDP | -MLX4_IB_RX_HASH_DST_PORT_UDP | -MLX4_IB_RX_HASH_INNER )) { +if (ucmd->rx_hash_fields_mask & ~(u64)(MLX4_IB_RX_HASH_SRC_IPV4 | +MLX4_IB_RX_HASH_DST_IPV4 | +MLX4_IB_RX_HASH_SRC_IPV6 | +MLX4_IB_RX_HASH_DST_IPV6 | +MLX4_IB_RX_HASH_SRC_PORT_TCP | +MLX4_IB_RX_HASH_DST_PORT_TCP | +MLX4_IB_RX_HASH_SRC_PORT_UDP | +MLX4_IB_RX_HASH_DST_PORT_UDP | +MLX4_IB_RX_HASH_INNER )) {pr_debug ("RX Hash fields_mask has unsupported mask (0x%llx)\n" , ucmd->rx_hash_fields_mask);return (-EOPNOTSUPP );
drivers/infiniband/hw/mthca/mthca_qp.c +1 -1
@@ -1393,7 +1393,7 @@ int mthca_alloc_sqp(struct mthca_dev *dev,if (mthca_array_get (&dev->qp_table.qp, mqpn)) err = -EBUSY ;else -mthca_array_set (&dev->qp_table.qp, mqpn, qp->sqp); +mthca_array_set (&dev->qp_table.qp, mqpn, qp);spin_unlock_irq (&dev->qp_table.lock);if (err)
drivers/irqchip/irq-bcm6345-l1.c +5 -9
@@ -82,6 +82,7 @@ struct bcm6345_l1_chip { };struct bcm6345_l1_cpu { +struct bcm6345_l1_chip *intc;void __iomem *map_base;unsigned int parent_irq;u32 enable_cache[];
@@ -115,17 +116,11 @@ static inline unsigned int cpu_for_irq(struct bcm6345_l1_chip *intc,static void bcm6345_l1_irq_handle (struct irq_desc *desc) { -struct bcm6345_l1_chip *intc =irq_desc_get_handler_data (desc); -struct bcm6345_l1_cpu *cpu; +struct bcm6345_l1_cpu *cpu =irq_desc_get_handler_data (desc); +struct bcm6345_l1_chip *intc = cpu->intc;struct irq_chip *chip =irq_desc_get_chip (desc);unsigned int idx; -#ifdef CONFIG_SMP - cpu = intc->cpus[cpu_logical_map (smp_processor_id ())]; -#else - cpu = intc->cpus[0 ]; -#endif -chained_irq_enter (chip, desc);for (idx =0 ; idx < intc->n_words; idx++) {
@@ -257,6 +252,7 @@ static int __init bcm6345_l1_init_one(struct device_node *dn,if (!cpu)return -ENOMEM ; + cpu->intc = intc; cpu->map_base =ioremap (res.start, sz);if (!cpu->map_base)return -ENOMEM ;
@@ -272,7 +268,7 @@ static int __init bcm6345_l1_init_one(struct device_node *dn,return -EINVAL ; }irq_set_chained_handler_and_data (cpu->parent_irq, - bcm6345_l1_irq_handle, intc); + bcm6345_l1_irq_handle, cpu);return 0 ; }
drivers/irqchip/irq-gic-v3-its.c +46 -29
116 lines not on this page · raw message
drivers/md/dm-cache-policy-smq.c +18 -10
@@ -854,7 +854,13 @@ struct smq_policy {struct background_tracker *bg_work; -bool migrations_allowed; + bool migrations_allowed:1; + +/* +* If this is set the policy will try and clean the whole cache +* even if the device is not idle. +*/ + bool cleaner:1; };/*----------------------------------------------------------------*/
@@ -1133,7 +1139,7 @@ static bool clean_target_met(struct smq_policy *mq, bool idle)* Cache entries may not be populated. So we cannot rely on the * size of the clean queue. */ -if (idle) { +if (idle || mq->cleaner) {/* * We'd like to clean everything. */
@@ -1716,11 +1722,9 @@ static void calc_hotspot_params(sector_t origin_size, *hotspot_block_size /=2u ; } -static struct dm_cache_policy *__smq_create (dm_cblock_t cache_size, -sector_t origin_size, -sector_t cache_block_size, -bool mimic_mq, -bool migrations_allowed) +static struct dm_cache_policy * +__smq_create (dm_cblock_t cache_size,sector_t origin_size,sector_t cache_block_size, +bool mimic_mq,bool migrations_allowed,bool cleaner) {unsigned i;unsigned nr_sentinels_per_queue =2u *NR_CACHE_LEVELS ;
@@ -1807,6 +1811,7 @@ static struct dm_cache_policy *__smq_create(dm_cblock_t cache_size, goto bad_btracker; mq->migrations_allowed = migrations_allowed; + mq->cleaner = cleaner;return &mq->policy;
@@ -1830,21 +1835,24 @@ static struct dm_cache_policy *smq_create(dm_cblock_t cache_size,sector_t origin_size, sector_t cache_block_size) { - return __smq_create(cache_size, origin_size, cache_block_size, false, true); + return __smq_create(cache_size, origin_size, cache_block_size, +false ,true ,false ); }static struct dm_cache_policy *mq_create (dm_cblock_t cache_size,sector_t origin_size,sector_t cache_block_size) { -return __smq_create (cache_size, origin_size, cache_block_size, true, true); +return __smq_create (cache_size, origin_size, cache_block_size, + true, true, false); }static struct dm_cache_policy *cleaner_create (dm_cblock_t cache_size,sector_t origin_size,sector_t cache_block_size) { -return __smq_create (cache_size, origin_size, cache_block_size, false, false); +return __smq_create (cache_size, origin_size, cache_block_size, + false, false, true); }/*----------------------------------------------------------------*/
drivers/md/dm-raid.c +9 -11
@@ -3258,8 +3258,7 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv) r =md_start (&rs->md);if (r) { ti->error ="Failed to start raid array" ; -mddev_unlock (&rs->md); - goto bad_md_start; + goto bad_unlock; }/* If raid4/5/6 journal mode explicitly requested (only possible with journal dev) -> set it */
@@ -3267,8 +3266,7 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv) r =r5c_journal_mode_set (&rs->md, rs->journal_dev.mode);if (r) { ti->error ="Failed to set raid4/5/6 journal mode" ; -mddev_unlock (&rs->md); - goto bad_journal_mode_set; + goto bad_unlock; } }
@@ -3279,14 +3277,14 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv)if (rs_is_raid456 (rs)) { r =rs_set_raid456_stripe_cache (rs);if (r) - goto bad_stripe_cache; + goto bad_unlock; }/* Now do an early reshape check */ if (test_bit (RT_FLAG_RESHAPE_RS , &rs->runtime_flags)) { r =rs_check_reshape (rs);if (r) - goto bad_check_reshape; + goto bad_unlock;/* Restore new, ctr requested layout to perform check */ rs_config_restore (rs, &rs_layout);
@@ -3295,7 +3293,7 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv) r = rs->md.pers->check_reshape (&rs->md);if (r) { ti->error ="Reshape check failed" ; - goto bad_check_reshape; + goto bad_unlock; } } }
@@ -3306,11 +3304,9 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv)mddev_unlock (&rs->md);return 0 ; -bad_md_start: -bad_journal_mode_set: -bad_stripe_cache: -bad_check_reshape: +bad_unlock:md_stop (&rs->md); +mddev_unlock (&rs->md); bad:raid_set_free (rs);
@@ -3321,7 +3317,9 @@ static void raid_dtr(struct dm_target *ti) {struct raid_set *rs = ti->private; +mddev_lock_nointr (&rs->md);md_stop (&rs->md); +mddev_unlock (&rs->md);raid_set_free (rs); }
drivers/md/md.c +2 -0
@@ -6281,6 +6281,8 @@ static void __md_stop(struct mddev *mddev)void md_stop (struct mddev *mddev) { +lockdep_assert_held (&mddev->reconfig_mutex); +/* stop the array and free an attached data structures. * This is called from dm-raid */
drivers/net/Makefile +1 -1
@@ -30,7 +30,7 @@ obj-$(CONFIG_TUN) += tun.o obj-$(CONFIG_TAP) += tap.o obj-$(CONFIG_VETH) += veth.o obj-$(CONFIG_VIRTIO_NET) += virtio_net.o -obj-$(CONFIG_VXLAN) += vxlan.o +obj-$(CONFIG_VXLAN) += vxlan/ obj-$(CONFIG_GENEVE) += geneve.o obj-$(CONFIG_BAREUDP) += bareudp.o obj-$(CONFIG_GTP) += gtp.o
drivers/net/bonding/bond_main.c +5 -0
@@ -1482,6 +1482,11 @@ static void bond_setup_by_slave(struct net_device *bond_dev,memcpy (bond_dev->broadcast, slave_dev->broadcast, slave_dev->addr_len); + +if (slave_dev->flags &IFF_POINTOPOINT ) { + bond_dev->flags &= ~(IFF_BROADCAST |IFF_MULTICAST ); + bond_dev->flags |= (IFF_POINTOPOINT |IFF_NOARP ); + } }/* On bonding slaves other than the currently active slave, suppress
drivers/net/can/usb/gs_usb.c +2 -0
@@ -734,6 +734,8 @@ static int gs_can_close(struct net_device *netdev)usb_kill_anchored_urbs (&dev->tx_submitted);atomic_set (&dev->active_tx_urbs,0 ); + dev->can.state =CAN_STATE_STOPPED ; +/* reset the device */ rc =gs_cmd_reset (dev);if (rc <0 )
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +5 -2
@@ -1642,8 +1642,11 @@ static int atl1e_tso_csum(struct atl1e_adapter *adapter, real_len = (((unsigned char *)ip_hdr (skb) - skb->data) +ntohs (ip_hdr (skb)->tot_len)); -if (real_len < skb->len) -pskb_trim (skb, real_len); +if (real_len < skb->len) { + err =pskb_trim (skb, real_len); +if (err) +return err; + } hdr_len = (skb_transport_offset (skb) +tcp_hdrlen (skb));if (unlikely (skb->len == hdr_len)) {
drivers/net/ethernet/emulex/benet/be_main.c +2 -1
@@ -1139,7 +1139,8 @@ static struct sk_buff *be_lancer_xmit_workarounds(struct be_adapter *adapter, (lancer_chip(adapter) || BE3_chip(adapter) || skb_vlan_tag_present(skb)) && is_ipv4_pkt(skb)) { ip = (struct iphdr *)ip_hdr (skb); -pskb_trim (skb, eth_hdr_len +ntohs (ip->tot_len)); +if (unlikely (pskb_trim (skb, eth_hdr_len +ntohs (ip->tot_len)))) + goto tx_drop; }/* If vlan tag is already inlined in the packet, skip HW VLAN
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c +14 -3
@@ -52,7 +52,10 @@ static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev,for (i =0 ; i <HNAE3_MAX_TC ; i++) { ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; - ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0 ].tc_dwrr[i]; +if (i < hdev->tm_info.num_tc) + ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0 ].tc_dwrr[i]; +else + ets->tc_tx_bw[i] =0 ;if (hdev->tm_info.tc_info[i].tc_sch_mode ==HCLGE_SCH_MODE_SP )
@@ -123,7 +126,8 @@ static u8 hclge_ets_tc_changed(struct hclge_dev *hdev, struct ieee_ets *ets, }static int hclge_ets_sch_mode_validate (struct hclge_dev *hdev, -struct ieee_ets *ets,bool *changed) +struct ieee_ets *ets,bool *changed, +u8 tc_num) {bool has_ets_tc = false;u32 total_ets_bw =0 ;
@@ -137,6 +141,13 @@ static int hclge_ets_sch_mode_validate(struct hclge_dev *hdev, *changed = true;break ;case IEEE_8021QAZ_TSA_ETS : +if (i >= tc_num) { +dev_err (&hdev->pdev->dev, +"tc%u is disabled, cannot set ets bw\n" , + i); +return -EINVAL ; + } +/* The hardware will switch to sp mode if bandwidth is * 0, so limit ets bandwidth must be greater than 0. */
@@ -176,7 +187,7 @@ static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets,if (ret)return ret; - ret =hclge_ets_sch_mode_validate (hdev, ets, changed); + ret =hclge_ets_sch_mode_validate (hdev, ets, changed, tc_num);if (ret)return ret;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +1 -2
@@ -677,8 +677,7 @@ static int hclge_dbg_dump_tc(struct hclge_dev *hdev, char *buf, int len)for (i =0 ; i <HNAE3_MAX_TC ; i++) { sch_mode_str = ets_weight->tc_weight[i] ?"dwrr" :"sp" ; pos +=scnprintf (buf + pos, len - pos,"%u %4s %3u\n" , - i, sch_mode_str, - hdev->tm_info.pg_info[0 ].tc_dwrr[i]); + i, sch_mode_str, ets_weight->tc_weight[i]); }return 0 ;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c +2 -1
@@ -732,6 +732,7 @@ static void hclge_tm_tc_info_init(struct hclge_dev *hdev)static void hclge_tm_pg_info_init (struct hclge_dev *hdev) {#define BW_PERCENT 100 +#define DEFAULT_BW_WEIGHT 1u8 i;
@@ -753,7 +754,7 @@ static void hclge_tm_pg_info_init(struct hclge_dev *hdev)for (k =0 ; k < hdev->tm_info.num_tc; k++) hdev->tm_info.pg_info[i].tc_dwrr[k] =BW_PERCENT ;for (; k <HNAE3_MAX_TC ; k++) - hdev->tm_info.pg_info[i].tc_dwrr[k] =0 ; + hdev->tm_info.pg_info[i].tc_dwrr[k] =DEFAULT_BW_WEIGHT ; } }
drivers/net/ethernet/intel/i40e/i40e_debugfs.c +1 -1
@@ -1839,7 +1839,7 @@ void i40e_dbg_pf_exit(struct i40e_pf *pf)void i40e_dbg_init (void ) { i40e_dbg_root =debugfs_create_dir (i40e_driver_name,NULL ); -if (!i40e_dbg_root) +if (IS_ERR (i40e_dbg_root))pr_info ("init of debugfs failed\n" ); }
drivers/net/ethernet/intel/iavf/iavf_main.c +6 -5
@@ -2532,9 +2532,6 @@ static void iavf_adminq_task(struct work_struct *work)u32 val, oldval;u16 pending; -if (adapter->flags &IAVF_FLAG_PF_COMMS_FAILED ) - goto out; -if (!mutex_trylock (&adapter->crit_lock)) {if (adapter->state == __IAVF_REMOVE)return ;
@@ -2543,10 +2540,13 @@ static void iavf_adminq_task(struct work_struct *work) goto out; } +if (adapter->flags &IAVF_FLAG_PF_COMMS_FAILED ) + goto unlock; + event.buf_len =IAVF_MAX_AQ_BUF_SIZE ; event.msg_buf =kzalloc (event.buf_len,GFP_KERNEL );if (!event.msg_buf) - goto out; + goto unlock; do { ret = iavf_clean_arq_element(hw, &event, &pending);
@@ -2561,7 +2561,6 @@ static void iavf_adminq_task(struct work_struct *work)if (pending !=0 )memset (event.msg_buf,0 ,IAVF_MAX_AQ_BUF_SIZE ); }while (pending); -mutex_unlock (&adapter->crit_lock);if ((adapter->flags &IAVF_FLAG_SETUP_NETDEV_FEATURES )) { if (adapter->netdev_registered ||
@@ -2619,6 +2618,8 @@ static void iavf_adminq_task(struct work_struct *work) freedom:kfree (event.msg_buf); +unlock: +mutex_unlock (&adapter->crit_lock); out:/* re-enable Admin queue interrupt cause */ iavf_misc_irq_enable (adapter);
drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c +14 -12
@@ -1135,16 +1135,21 @@ ice_cfg_fdir_xtrct_seq(struct ice_pf *pf, struct ethtool_rx_flow_spec *fsp, ICE_FLOW_FLD_OFF_INVAL); } -/* add filter for outer headers */ fltr_idx =ice_ethtool_flow_to_fltr (fsp->flow_type & ~FLOW_EXT ); + +assign_bit (fltr_idx, hw->fdir_perfect_fltr, perfect_filter); + +/* add filter for outer headers */ ret =ice_fdir_set_hw_fltr_rule (pf, seg, fltr_idx,ICE_FD_HW_SEG_NON_TUN ); -if (ret == -EEXIST ) -/* Rule already exists, free memory and continue */ -devm_kfree (dev, seg); -else if (ret) +if (ret == -EEXIST ) { +/* Rule already exists, free memory and count as success */ + ret =0 ; + goto err_exit; + }else if (ret) {/* could not write filter, free memory */ goto err_exit; + }/* make tunneled filter HW entries if possible */ memcpy (&tun_seg[1 ], seg,sizeof (*seg));
@@ -1159,18 +1164,13 @@ ice_cfg_fdir_xtrct_seq(struct ice_pf *pf, struct ethtool_rx_flow_spec *fsp,devm_kfree (dev, tun_seg); } -if (perfect_filter) -set_bit (fltr_idx, hw->fdir_perfect_fltr); -else -clear_bit (fltr_idx, hw->fdir_perfect_fltr); -return ret; err_exit:devm_kfree (dev, tun_seg);devm_kfree (dev, seg); -return -EOPNOTSUPP ; +return ret; }/**
@@ -1684,7 +1684,9 @@ int ice_add_fdir_ethtool(struct ice_vsi *vsi, struct ethtool_rxnfc *cmd) input->comp_report =ICE_FXD_FLTR_QW0_COMP_REPORT_SW_FAIL ;/* input struct is added to the HW filter list */ -ice_fdir_update_list_entry (pf, input, fsp->location); + ret =ice_fdir_update_list_entry (pf, input, fsp->location); +if (ret) + goto release_lock; ret =ice_fdir_write_all_fltr (pf, input, true);if (ret)
drivers/net/ethernet/intel/igc/igc_main.c +28 -12
@@ -316,6 +316,33 @@ static void igc_clean_all_tx_rings(struct igc_adapter *adapter)igc_clean_tx_ring (adapter->tx_ring[i]); } +static void igc_disable_tx_ring_hw (struct igc_ring *ring) +{ +struct igc_hw *hw = &ring->q_vector->adapter->hw; +u8 idx = ring->reg_idx; +u32 txdctl; + + txdctl =rd32 (IGC_TXDCTL (idx)); + txdctl &= ~IGC_TXDCTL_QUEUE_ENABLE ; + txdctl |=IGC_TXDCTL_SWFLUSH ; +wr32 (IGC_TXDCTL (idx), txdctl); +} + +/** +* igc_disable_all_tx_rings_hw - Disable all transmit queue operation +* @adapter: board private structure +*/ +static void igc_disable_all_tx_rings_hw (struct igc_adapter *adapter) +{ +int i; + +for (i =0 ; i < adapter->num_tx_queues; i++) { +struct igc_ring *tx_ring = adapter->tx_ring[i]; + +igc_disable_tx_ring_hw (tx_ring); + } +} +/** * igc_setup_tx_resources - allocate Tx resources (Descriptors) * @tx_ring: tx descriptor ring (for a specific queue) to setup
@@ -4975,6 +5002,7 @@ void igc_down(struct igc_adapter *adapter)/* clear VLAN promisc flag so VFTA will be updated if necessary */ adapter->flags &= ~IGC_FLAG_VLAN_PROMISC ; +igc_disable_all_tx_rings_hw (adapter);igc_clean_all_tx_rings (adapter);igc_clean_all_rx_rings (adapter); }
@@ -7124,18 +7152,6 @@ void igc_enable_rx_ring(struct igc_ring *ring)igc_alloc_rx_buffers (ring,igc_desc_unused (ring)); } -static void igc_disable_tx_ring_hw (struct igc_ring *ring) -{ -struct igc_hw *hw = &ring->q_vector->adapter->hw; -u8 idx = ring->reg_idx; -u32 txdctl; - - txdctl =rd32 (IGC_TXDCTL (idx)); - txdctl &= ~IGC_TXDCTL_QUEUE_ENABLE ; - txdctl |=IGC_TXDCTL_SWFLUSH ; -wr32 (IGC_TXDCTL (idx), txdctl); -} -void igc_disable_tx_ring (struct igc_ring *ring) {igc_disable_tx_ring_hw (ring);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +1 -1
@@ -8398,7 +8398,7 @@ static void ixgbe_atr(struct ixgbe_ring *ring,struct ixgbe_adapter *adapter = q_vector->adapter;if (unlikely (skb_tail_pointer (skb) < hdr.network + -VXLAN_HEADROOM )) +vxlan_headroom (0 )))return ;/* verify the port is recognized as VXLAN */
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +3 -1
@@ -207,13 +207,15 @@ void stmmac_dwmac4_set_mac_addr(void __iomem *ioaddr, u8 addr[6],void stmmac_dwmac4_set_mac (void __iomem *ioaddr,bool enable) {u32 value =readl (ioaddr +GMAC_CONFIG ); +u32 old_val = value;if (enable) value |=GMAC_CONFIG_RE |GMAC_CONFIG_TE ;else value &= ~(GMAC_CONFIG_TE |GMAC_CONFIG_RE ); -writel (value, ioaddr +GMAC_CONFIG ); +if (value != old_val) +writel (value, ioaddr +GMAC_CONFIG ); } void stmmac_dwmac4_get_mac_addr(void __iomem *ioaddr, unsigned char *addr,
drivers/net/phy/marvell10g.c +7 -0
@@ -307,6 +307,13 @@ static int mv3310_power_up(struct phy_device *phydev) ret =phy_clear_bits_mmd (phydev,MDIO_MMD_VEND2 ,MV_V2_PORT_CTRL ,MV_V2_PORT_CTRL_PWRDOWN ); +/* Sometimes, the power down bit doesn't clear immediately, and +* a read of this register causes the bit not to clear. Delay +* 100us to allow the PHY to come out of power down mode before +* the next access. +*/ +udelay (100 ); +if (phydev->drv->phy_id !=MARVELL_PHY_ID_88X3310 || priv->firmware_ver <0x00030000 )return ret;
drivers/net/team/team.c +9 -0
@@ -2130,6 +2130,15 @@ static void team_setup_by_port(struct net_device *dev, dev->mtu = port_dev->mtu;memcpy (dev->broadcast, port_dev->broadcast, port_dev->addr_len);eth_hw_addr_inherit (dev, port_dev); + +if (port_dev->flags &IFF_POINTOPOINT ) { + dev->flags &= ~(IFF_BROADCAST |IFF_MULTICAST ); + dev->flags |= (IFF_POINTOPOINT |IFF_NOARP ); + }else if ((port_dev->flags & (IFF_BROADCAST |IFF_MULTICAST )) == + (IFF_BROADCAST |IFF_MULTICAST )) { + dev->flags |= (IFF_BROADCAST |IFF_MULTICAST ); + dev->flags &= ~(IFF_POINTOPOINT |IFF_NOARP ); + } } static int team_dev_type_check_change(struct net_device *dev,
drivers/net/virtio_net.c +2 -2
@@ -3319,6 +3319,8 @@ static int virtnet_probe(struct virtio_device *vdev) } } +_virtnet_set_queues (vi, vi->curr_queue_pairs); +/* serialize netdev register + virtio_device_ready() with ndo_open() */ rtnl_lock ();
@@ -3339,8 +3341,6 @@ static int virtnet_probe(struct virtio_device *vdev) goto free_unregister_netdev; } -virtnet_set_queues (vi, vi->curr_queue_pairs); -/* Assume link up if device can't report link status, otherwise get link status from config. */ netif_carrier_off (dev);
drivers/net/vxlan.c deleted +0 -4834
1,004 lines not on this page · raw message
drivers/net/vxlan/vxlan_core.c new file +4831 -0
4,831 lines not on this page · raw message
drivers/pci/controller/pcie-rockchip-ep.c +76 -80
156 lines not on this page · raw message
drivers/pci/controller/pcie-rockchip.h +25 -15
Lines of this file are not shown. View the raw message.
drivers/pci/pcie/aspm.c +37 -18
55 lines not on this page · raw message
drivers/phy/hisilicon/phy-hisi-inno-usb2.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c +52 -34
86 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_init.c +236 -20
256 lines not on this page · raw message
drivers/staging/rtl8712/rtl871x_xmit.c +34 -9
43 lines not on this page · raw message
drivers/usb/serial/usb-serial-simple.c +40 -33
73 lines not on this page · raw message
fs/cifs/cifs_dfs_ref.c +40 -60
100 lines not on this page · raw message
fs/dlm/plock.c +57 -43
100 lines not on this page · raw message
kernel/locking/rtmutex.c +114 -56
170 lines not on this page · raw message
kernel/locking/rtmutex_common.h +34 -13
47 lines not on this page · raw message
kernel/trace/trace_events_synth.c +79 -1
80 lines not on this page · raw message
kernel/trace/trace_probe.c +30 -16
46 lines not on this page · raw message
kernel/trace/trace_probe_tmpl.h +48 -11
59 lines not on this page · raw message
net/sched/sch_mqprio.c +93 -51
144 lines not on this page · raw message
tools/testing/selftests/net/mptcp/mptcp_join.sh +1 -4
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/mptcp/mptcp_sockopt.sh +11 -9
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.