Linux 6.12.28
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.12.28 kernel.
All users of the 6.12 kernel series must upgrade.
The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.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
------------
Makefile | 2 arch/arm/boot/dts/nxp/imx/imx6ul-imx6ull-opos6ul.dtsi | 3 arch/arm64/boot/dts/freescale/imx95.dtsi | 8 arch/arm64/boot/dts/st/stm32mp251.dtsi | 9 arch/arm64/kernel/proton-pack.c | 2 arch/parisc/include/uapi/asm/socket.h | 10 arch/parisc/math-emu/driver.c | 16 arch/powerpc/boot/wrapper | 6 arch/powerpc/mm/book3s64/radix_pgtable.c | 17 arch/x86/boot/compressed/mem.c | 5 arch/x86/boot/compressed/sev.c | 40 + arch/x86/boot/compressed/sev.h | 2 arch/x86/events/core.c | 2 arch/x86/events/intel/core.c | 2 arch/x86/events/perf_event.h | 9 block/blk-mq-cpumap.c | 3 drivers/accel/ivpu/ivpu_drv.c | 38 - drivers/accel/ivpu/ivpu_drv.h | 9 drivers/accel/ivpu/ivpu_hw_btrs.h | 2 drivers/accel/ivpu/ivpu_job.c | 125 +++- drivers/accel/ivpu/ivpu_job.h | 1 drivers/accel/ivpu/ivpu_jsm_msg.c | 3 drivers/accel/ivpu/ivpu_mmu.c | 3 drivers/accel/ivpu/ivpu_pm.c | 18 drivers/accel/ivpu/ivpu_sysfs.c | 5 drivers/accel/ivpu/vpu_boot_api.h | 45 - drivers/accel/ivpu/vpu_jsm_api.h | 303 ++++++++-- drivers/android/binder.c | 2 drivers/base/module.c | 13 drivers/bluetooth/btintel_pcie.c | 57 + drivers/bluetooth/btusb.c | 137 +++- drivers/cpufreq/cpufreq.c | 42 + drivers/cpufreq/cpufreq_ondemand.c | 3 drivers/cpufreq/freq_table.c | 6 drivers/cpufreq/intel_pstate.c | 3 drivers/edac/altera_edac.c | 9 drivers/edac/altera_edac.h | 2 drivers/firmware/arm_ffa/driver.c | 3 drivers/firmware/arm_scmi/bus.c | 3 drivers/gpu/drm/Kconfig | 2 drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 2 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c | 56 - drivers/gpu/drm/drm_file.c | 6 drivers/gpu/drm/drm_mipi_dbi.c | 6 drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.h | 8 drivers/gpu/drm/meson/meson_vclk.c | 6 drivers/gpu/drm/nouveau/nouveau_fence.c | 2 drivers/gpu/drm/tests/drm_gem_shmem_test.c | 3 drivers/gpu/drm/xe/xe_hw_engine.c | 12 drivers/i2c/busses/i2c-imx-lpi2c.c | 4 drivers/iommu/amd/init.c | 8 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 6 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 19 drivers/iommu/intel/iommu.c | 4 drivers/irqchip/irq-qcom-mpm.c | 3 drivers/md/dm-bufio.c | 9 drivers/md/dm-integrity.c | 2 drivers/md/dm-table.c | 5 drivers/mmc/host/renesas_sdhi_core.c | 10 drivers/net/dsa/ocelot/felix_vsc9959.c | 5 drivers/net/ethernet/amd/pds_core/auxbus.c | 39 - drivers/net/ethernet/amd/pds_core/core.h | 7 drivers/net/ethernet/amd/pds_core/devlink.c | 7 drivers/net/ethernet/amd/pds_core/main.c | 11 drivers/net/ethernet/amd/xgbe/xgbe-desc.c | 9 drivers/net/ethernet/amd/xgbe/xgbe-dev.c | 24 drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 11 drivers/net/ethernet/amd/xgbe/xgbe.h | 4 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 18 drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c | 20 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 40 + drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 29 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h | 1 drivers/net/ethernet/dlink/dl2k.c | 2 drivers/net/ethernet/dlink/dl2k.h | 2 drivers/net/ethernet/freescale/fec_main.c | 7 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 82 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c | 13 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 25 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 1 drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c | 5 drivers/net/ethernet/intel/idpf/idpf.h | 18 drivers/net/ethernet/intel/idpf/idpf_lib.c | 76 -- drivers/net/ethernet/intel/idpf/idpf_main.c | 1 drivers/net/ethernet/intel/igc/igc_ptp.c | 6 drivers/net/ethernet/marvell/octeon_ep/octep_main.c | 2 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c | 4 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 18 drivers/net/ethernet/mediatek/mtk_star_emac.c | 13 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c | 6 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c | 32 - drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 5 drivers/net/ethernet/mellanox/mlx5/core/rdma.c | 11 drivers/net/ethernet/mellanox/mlx5/core/rdma.h | 4 drivers/net/ethernet/microchip/lan743x_main.c | 8 drivers/net/ethernet/microchip/lan743x_main.h | 1 drivers/net/ethernet/mscc/ocelot.c | 6 drivers/net/ethernet/realtek/rtase/rtase_main.c | 4 drivers/net/ethernet/vertexcom/mse102x.c | 36 - drivers/net/mdio/mdio-mux-meson-gxl.c | 3 drivers/net/usb/rndis_host.c | 16 drivers/net/vxlan/vxlan_vnifilter.c | 8 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 6 drivers/net/wireless/intel/iwlwifi/iwl-csr.h | 1 drivers/net/wireless/intel/iwlwifi/iwl-trans.c | 1 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 24 drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 9 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 13 drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 2 drivers/net/wireless/purelifi/plfxlc/mac.c | 1 drivers/nvme/host/Kconfig | 1 drivers/nvme/host/pci.c | 2 drivers/nvme/host/tcp.c | 31 - drivers/nvme/target/Kconfig | 1 drivers/pinctrl/freescale/pinctrl-imx.c | 6 drivers/platform/x86/amd/pmc/pmc.c | 7 drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c | 13 drivers/ptp/ptp_ocp.c | 52 + drivers/spi/spi-tegra114.c | 6 drivers/ufs/core/ufshcd.c | 2 fs/bcachefs/xattr_format.h | 8 fs/btrfs/extent_io.c | 2 fs/btrfs/inode.c | 9 fs/smb/client/smb2pdu.c | 1 fs/smb/server/auth.c | 14 fs/smb/server/mgmt/user_session.c | 20 fs/smb/server/mgmt/user_session.h | 1 fs/smb/server/smb2pdu.c | 9 include/linux/cpufreq.h | 83 +- include/linux/iommu.h | 8 include/linux/module.h | 2 include/net/bluetooth/hci.h | 4 include/net/bluetooth/hci_core.h | 20 include/net/bluetooth/hci_sync.h | 3 include/net/xdp_sock.h | 3 include/net/xsk_buff_pool.h | 2 include/sound/ump_convert.h | 2 kernel/params.c | 6 kernel/trace/trace.c | 5 kernel/trace/trace_output.c | 4 mm/memblock.c | 12 mm/slub.c | 27 net/bluetooth/hci_conn.c | 189 ------ net/bluetooth/hci_event.c | 15 net/bluetooth/hci_sync.c | 150 ++++ net/bluetooth/iso.c | 26 net/bluetooth/l2cap_core.c | 3 net/ipv4/tcp_offload.c | 2 net/ipv4/udp_offload.c | 61 +- net/ipv6/tcpv6_offload.c | 2 net/sched/sch_drr.c | 16 net/sched/sch_ets.c | 17 net/sched/sch_hfsc.c | 10 net/sched/sch_htb.c | 2 net/sched/sch_qfq.c | 18 net/xdp/xsk.c | 6 net/xdp/xsk_buff_pool.c | 1 sound/pci/hda/patch_realtek.c | 20 sound/soc/amd/acp/acp-i2s.c | 2 sound/soc/codecs/Kconfig | 5 sound/soc/generic/simple-card-utils.c | 4 sound/soc/sdw_utils/soc_sdw_rt_dmic.c | 2 sound/soc/soc-core.c | 32 - sound/soc/soc-pcm.c | 5 sound/usb/endpoint.c | 7 sound/usb/format.c | 3 169 files changed, 1846 insertions(+), 983 deletions(-)
Aaron Kling (1):
spi: tegra114: Don't fail set_cs_timing when delays are zero
Aaron Ma (1):
Bluetooth: btusb: add Foxconn 0xe0fc for Qualcomm WCN785x
Alan Huang (1):
bcachefs: Remove incorrect __counted_by annotation
Alexander Stein (1):
ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction
Alistair Francis (2):
nvme-tcp: select CONFIG_TLS from CONFIG_NVME_TCP_TLS
nvmet-tcp: select CONFIG_TLS from CONFIG_NVME_TARGET_TCP_TLS
Andrew Kreimer (1):
accel/ivpu: Fix a typo
Andrzej Kacprowski (1):
accel/ivpu: Update VPU FW API headers
Ard Biesheuvel (1):
x86/boot/sev: Support memory acceptance in the EFI stub under SVSM
Balbir Singh (1):
iommu/arm-smmu-v3: Fix pgsize_bit for sva domains
Benjamin Marzinski (1):
dm: always update the array size in realloc_argv on success
Carlos Llamas (1):
binder: fix offset calculation in debug log
Chad Monroe (1):
net: ethernet: mtk_eth_soc: fix SER panic with 4GB+ RAM
Chen Linxuan (1):
drm/i915/pxp: fix undefined reference to `intel_pxp_gsccs_is_ready_for_sessions'
Chenyuan Yang (1):
ASoC: Intel: sof_sdw: Add NULL check in asoc_sdw_rt_dmic_rtd_init()
Chris Bainbridge (1):
drm/amd/display: Fix slab-use-after-free in hdcp
Chris Mi (1):
net/mlx5: E-switch, Fix error handling for enabling roce
Christian Bruel (2):
arm64: dts: st: Adjust interrupt-controller for stm32mp25 SoCs
arm64: dts: st: Use 128kB size for aliased GIC400 register access on stm32mp25 SoCs
Christian Heusel (1):
Revert "rndis_host: Flag RNDIS modems as WWAN devices"
Christian Hewitt (1):
Revert "drm/meson: vclk: fix calculation of 59.94 fractional rates"
Clark Wang (1):
i2c: imx-lpi2c: Fix clock count when probe defers
Cong Wang (5):
sch_htb: make htb_qlen_notify() idempotent
sch_drr: make drr_qlen_notify() idempotent
sch_hfsc: make hfsc_qlen_notify() idempotent
sch_qfq: make qfq_qlen_notify() idempotent
sch_ets: make est_qlen_notify() idempotent
Cosmin Ratiu (1):
net/mlx5e: Fix lock order in mlx5e_tx_reporter_ptpsq_unhealthy_recover
Cristian Marussi (1):
firmware: arm_scmi: Balance device refcount when destroying devices
Da Xue (1):
net: mdio: mux-meson-gxl: set reversed bit when using internal phy
Daniel Golle (1):
net: ethernet: mtk_eth_soc: sync mtk_clks_source_name array
Daniel Wagner (1):
blk-mq: create correct map for fallback case
Dave Chen (1):
btrfs: fix COW handling in run_delalloc_nocow()
Donet Tom (1):
book3s64/radix : Align section vmemmap start address to PAGE_SIZE
Dorian Cruveiller (1):
Bluetooth: btusb: Add new VID/PID for WCN785x
Emmanuel Grumbach (2):
wifi: iwlwifi: don't warn if the NIC is gone in resume
wifi: iwlwifi: fix the check for the SCRATCH register upon resume
En-Wei Wu (1):
Bluetooth: btusb: avoid NULL pointer dereference in skb_dequeue()
Felix Fietkau (1):
net: ipv6: fix UDPv6 GSO segmentation with NAT
Geert Uytterhoeven (1):
ASoC: soc-core: Stop using of_property_read_bool() for non-boolean properties
Geoffrey D. Bennett (1):
ALSA: usb-audio: Add retry on -EPROTO from usb_set_interface()
Greg Kroah-Hartman (1):
Linux 6.12.28
Hao Lan (1):
net: hns3: fixed debugfs tm_qset size
Helge Deller (1):
parisc: Fix double SIGFPE crash
Hui Wang (1):
pinctrl: imx: Return NULL if no group is matched and found
Ido Schimmel (1):
vxlan: vnifilter: Fix unlocked deletion of default FDB entry
Iulia Tanasescu (1):
Bluetooth: hci_conn: Remove alloc from critical section
Jacob Keller (1):
igc: fix lock order in igc_ptp_reset
Janne Grunau (1):
drm: Select DRM_KMS_HELPER from DRM_DEBUG_DP_MST_TOPOLOGY_REFS
Jeongjun Park (1):
tracing: Fix oob write in trace_seq_to_buffer()
Jethro Donaldson (1):
smb: client: fix zero length for mkdir POSIX create context
Jian Shen (2):
net: hns3: store rx VLAN tag offload state for VF
net: hns3: defer calling ptp_clock_register()
Jianbo Liu (1):
net/mlx5e: TC, Continue the attr process even if encap entry is invalid
Jibin Zhang (1):
net: use sock_gen_put() when sk_state is TCP_TIME_WAIT
Joachim Priesner (1):
ALSA: usb-audio: Add second USB ID for Jabra Evolve 65 headset
Josef Bacik (1):
btrfs: adjust subpage bit start based on sectorsize
Justin Lai (1):
rtase: Modify the condition used to detect overflow in rtase_calc_time_mitigation
Kailang Yang (1):
ALSA: hda/realtek - Enable speaker for HP platform
Kalesh AP (1):
bnxt_en: Fix ethtool selftest output in one of the failure cases
Kan Liang (1):
perf/x86/intel: Only check the group flag for X86 leader
Karol Wachowski (5):
accel/ivpu: Correct DCT interrupt handling
accel/ivpu: Use xa_alloc_cyclic() instead of custom function accel/ivpu: Abort all jobs after command queue unregister accel/ivpu: Fix locking order in ivpu_job_submit accel/ivpu: Add handling of VPU_JSM_STATUS_MVNCI_CONTEXT_VIOLATION_HW
Kashyap Desai (1):
bnxt_en: call pci_alloc_irq_vectors() after bnxt_reserve_rings()
Keith Busch (1):
nvme-pci: fix queue unquiesce check on slot_reset
Keoseong Park (1):
scsi: ufs: core: Remove redundant query_complete trace
Kiran K (2):
Bluetooth: btintel_pcie: Avoid redundant buffer allocation
Bluetooth: btintel_pcie: Add additional to checks to clear TX/RX paths
Larysa Zaremba (1):
idpf: protect shutdown from reset
Leo Li (1):
drm/amd/display: Default IPS to RCG_IN_ACTIVE_IPS2_IN_OFF
Lijo Lazar (1):
drm/amdgpu: Fix offset for HDP remap in nbio v7.11
LongPing Wei (1):
dm-bufio: don't schedule in atomic context
Louis-Alexis Eyraud (2):
net: ethernet: mtk-star-emac: fix spinlock recursion issues on rx/tx poll
net: ethernet: mtk-star-emac: rearm interrupts in rx_poll only when advised
Luiz Augusto von Dentz (2):
Bluetooth: hci_conn: Fix not setting conn_timeout for Broadcast Receiver
Bluetooth: hci_conn: Fix not setting timeout for BIG Create Sync
Madhavan Srinivasan (2):
powerpc/boot: Check for ld-option support
powerpc/boot: Fix dash warning
Madhu Chittim (1):
idpf: fix offloads support for encapsulated packets
Maor Gottlieb (1):
net/mlx5: E-Switch, Initialize MAC Address for Default GID
Mario Limonciello (2):
platform/x86/amd: pmc: Require at least 2.5 seconds between HW sleep cycles drm/amd/display: Add scoped mutexes for amdgpu_dm_dhcp
Mark Dietzer (1):
Bluetooth: btusb: Add ID 0x2c7c:0x0130 for Qualcomm WCN785x
Mattias Barthel (1):
net: fec: ERR007885 Workaround for conventional TX
Maxime Ripard (1):
drm/tests: shmem: Fix memleak
Michael Chan (1):
bnxt_en: Fix ethtool -d byte order for 32-bit values
Michael Liang (1):
nvme-tcp: fix premature queue removal and I/O failover
Michal Swiatkowski (1):
idpf: fix potential memory leak on kcalloc() failure
Mikulas Patocka (1):
dm-integrity: fix a warning on invalid table line
Mingcong Bai (1):
iommu/vt-d: Apply quirk_iommu_igfx for 8086:0044 (QM57/QS57)
Murad Masimov (1):
wifi: plfxlc: Remove erroneous assert in plfxlc_mac_release
Namjae Jeon (1):
ksmbd: fix use-after-free in ksmbd_session_rpc_open
Nicolin Chen (2):
iommu/arm-smmu-v3: Fix iommu_device_probe bug due to duplicated stream ids
iommu: Fix two issues in iommu_copy_struct_from_user()
Niranjana Vishwanathapura (1):
drm/xe: Ensure fixed_slice_mode gets set after ccs_mode change
Niravkumar L Rabara (2):
EDAC/altera: Test the correct error reg offset EDAC/altera: Set DDR and SDMMC interrupt mask before registration
Pauli Virtanen (1):
Bluetooth: L2CAP: copy RX timestamp to new fragments
Pavel Paklov (1):
iommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid
Philipp Stanner (1):
drm/nouveau: Fix WARN_ON in nouveau_fence_context_kill()
Pranjal Shrivastava (1):
net: Fix the devmem sock opts and msgs for parisc
Rafael J. Wysocki (2):
cpufreq: Avoid using inconsistent policy->min and policy->max
cpufreq: Fix setting policy limits when frequency tables are used
Richard Fitzgerald (1):
ASoC: cs-amp-lib-test: Don't select SND_SOC_CS_AMP_LIB
Richard Zhu (1):
arm64: dts: imx95: Correct the range of PCIe app-reg region
Ruslan Piasetskyi (1):
mmc: renesas_sdhi: Fix error handling in renesas_sdhi_probe
Russell Cloran (1):
drm/mipi-dbi: Fix blanking for non-16 bit formats
Sagi Maimon (1):
ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations
Sathesh B Edara (2):
octeon_ep_vf: Resolve netdevice usage count issue
octeon_ep: Fix host hang issue during device reboot
Sean Christopherson (1):
perf/x86/intel: KVM: Mask PEBS_ENABLE loaded for guest with vCPU's value.
Sean Heelan (2):
ksmbd: fix use-after-free in kerberos authentication
ksmbd: fix use-after-free in session logoff
Shannon Nelson (3):
pds_core: make pdsc_auxbus_dev_del() void
pds_core: specify auxiliary_device to be created
pds_core: remove write-after-free of client_id
Sheetal (1):
ASoC: soc-pcm: Fix hw_params() and DAPM widget sequence
Shouye Liu (1):
platform/x86/intel-uncore-freq: Fix missing uncore sysfs during CPU hotplug
Shravya KN (1):
bnxt_en: Fix error handling path in bnxt_init_chip()
Shruti Parab (2):
bnxt_en: Fix coredump logic to free allocated buffer
bnxt_en: Fix out-of-bound memcpy() during ethtool -w
Shyam Saini (3):
kernel: param: rename locate_module_kobject
kernel: globalize lookup_or_create_module_kobject()
drivers: base: handle module_kobject creation
Simon Horman (1):
net: dlink: Correct endianness handling of led_mode
Somnath Kotur (1):
bnxt_en: Add missing skb_mark_for_recycle() in bnxt_rx_vlan()
Srinivas Pandruvada (1):
cpufreq: intel_pstate: Unchecked MSR aceess in legacy mode
Stefan Wahren (4):
net: vertexcom: mse102x: Fix possible stuck of SPI interrupt
net: vertexcom: mse102x: Fix LEN_MASK
net: vertexcom: mse102x: Add range check for CMD_RTS
net: vertexcom: mse102x: Fix RX error handling
Stephan Gerhold (1):
irqchip/qcom-mpm: Prevent crash when trying to handle non-wake GPIOs
Steven Rostedt (1):
tracing: Do not take trace_event_sem in print_event_fields()
Sudeep Holla (1):
firmware: arm_ffa: Skip Rx buffer ownership release if not acquired
Sébastien Szymanski (1):
ARM: dts: opos6ul: add ksz8081 phy properties
Takashi Iwai (2):
ALSA: ump: Fix buffer overflow at UMP SysEx message conversion
ALSA: hda/realtek: Fix built-mic regression on other ASUS models
Thangaraj Samynathan (1):
net: lan743x: Fix memleak issue when GSO enabled
Tomasz Rusinowicz (1):
accel/ivpu: Make DB_ID and JOB_ID allocations incremental
Tudor Ambarus (1):
dm: fix copying after src array boundaries
Tvrtko Ursulin (1):
drm/fdinfo: Protect against driver unbind
Vadim Fedorenko (2):
bnxt_en: improve TX timestamping FIFO configuration
bnxt_en: fix module unload sequence
Venkata Prasad Potturu (1):
ASoC: amd: acp: Fix NULL pointer deref in acp_i2s_set_tdm_slot
Victor Nogueira (4):
net_sched: drr: Fix double list add in class with netem as child qdisc
net_sched: hfsc: Fix a UAF vulnerability in class with netem as child qdisc
net_sched: ets: Fix double list add in class with netem as child qdisc
net_sched: qfq: Fix double list add in class with netem as child qdisc
Vishal Badole (1):
amd-xgbe: Fix to ensure dependent features are toggled with RX checksum offload
Vlad Dogaru (1):
net/mlx5e: Use custom tunnel header for vxlan gbp
Vladimir Oltean (2):
net: mscc: ocelot: delete PVID VLAN when readding it as non-PVID
net: dsa: felix: fix broken taprio gate states after clock jump
Wei Yang (2):
mm/memblock: pass size instead of end to memblock_set_node() mm/memblock: repeat setting reserved region nid if array is doubled
Wentao Liang (1):
wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()
Will Deacon (1):
arm64: errata: Add missing sentinels to Spectre-BHB MIDR arrays
Xuanqiang Luo (1):
ice: Check VF VSI Pointer Value in ice_vc_add_fdir_fltr()
Yonglong Liu (1):
net: hns3: fix an interrupt residual problem
Zhenhua Huang (1):
mm, slab: clean up slab->obj_exts always
Zijun Hu (3):
Bluetooth: btusb: Add one more ID 0x0489:0xe0f3 for Qualcomm WCN785x
Bluetooth: btusb: Add one more ID 0x13d3:0x3623 for Qualcomm WCN785x
Bluetooth: btusb: Add 13 USB device IDs for Qualcomm WCN785xe.kubanski (1):
xsk: Fix race condition in AF_XDP generic RX path
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 12 -SUBLEVEL = 27 +SUBLEVEL = 28 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm/boot/dts/nxp/imx/imx6ul-imx6ull-opos6ul.dtsi +3 -0
@@ -40,6 +40,9 @@ ethphy1: ethernet-phy@1 { reg = <1>; interrupt-parent = <&gpio4>; interrupts = <16 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <1>; + clocks = <&clks IMX6UL_CLK_ENET_REF>; + clock-names = "rmii-ref"; status = "okay"; }; };
arch/arm64/boot/dts/freescale/imx95.dtsi +4 -4
@@ -1478,7 +1478,7 @@ pcie0: pcie@4c300000 { reg = <0 0x4c300000 0 0x10000>, <0 0x60100000 0 0xfe00000>, <0 0x4c360000 0 0x10000>, - <0 0x4c340000 0 0x2000>; + <0 0x4c340000 0 0x4000>; reg-names = "dbi", "config", "atu", "app"; ranges = <0x81000000 0x0 0x00000000 0x0 0x6ff00000 0 0x00100000>, <0x82000000 0x0 0x10000000 0x9 0x10000000 0 0x10000000>;
@@ -1518,7 +1518,7 @@ pcie0_ep: pcie-ep@4c300000 { reg = <0 0x4c300000 0 0x10000>, <0 0x4c360000 0 0x1000>, <0 0x4c320000 0 0x1000>, - <0 0x4c340000 0 0x2000>, + <0 0x4c340000 0 0x4000>, <0 0x4c370000 0 0x10000>, <0x9 0 1 0>; reg-names = "dbi","atu", "dbi2", "app", "dma", "addr_space";
@@ -1545,7 +1545,7 @@ pcie1: pcie@4c380000 { reg = <0 0x4c380000 0 0x10000>, <8 0x80100000 0 0xfe00000>, <0 0x4c3e0000 0 0x10000>, - <0 0x4c3c0000 0 0x2000>; + <0 0x4c3c0000 0 0x4000>; reg-names = "dbi", "config", "atu", "app"; ranges = <0x81000000 0 0x00000000 0x8 0x8ff00000 0 0x00100000>, <0x82000000 0 0x10000000 0xa 0x10000000 0 0x10000000>;
@@ -1585,7 +1585,7 @@ pcie1_ep: pcie-ep@4c380000 { reg = <0 0x4c380000 0 0x10000>, <0 0x4c3e0000 0 0x1000>, <0 0x4c3a0000 0 0x1000>, - <0 0x4c3c0000 0 0x2000>, + <0 0x4c3c0000 0 0x4000>, <0 0x4c3f0000 0 0x10000>, <0xa 0 1 0>; reg-names = "dbi", "atu", "dbi2", "app", "dma", "addr_space";
arch/arm64/boot/dts/st/stm32mp251.dtsi +4 -5
@@ -114,14 +114,13 @@ scmi_vdda18adc: regulator@7 { }; intc: interrupt-controller@4ac00000 { - compatible = "arm,cortex-a7-gic"; + compatible = "arm,gic-400"; #interrupt-cells = <3>; - #address-cells = <1>; interrupt-controller; reg = <0x0 0x4ac10000 0x0 0x1000>, - <0x0 0x4ac20000 0x0 0x2000>, - <0x0 0x4ac40000 0x0 0x2000>, - <0x0 0x4ac60000 0x0 0x2000>; + <0x0 0x4ac20000 0x0 0x20000>, + <0x0 0x4ac40000 0x0 0x20000>, + <0x0 0x4ac60000 0x0 0x20000>; }; psci {
arch/arm64/kernel/proton-pack.c +2 -0
@@ -879,10 +879,12 @@ static u8 spectre_bhb_loop_affected(void)static const struct midr_range spectre_bhb_k132_list[] = {MIDR_ALL_VERSIONS (MIDR_CORTEX_X3 ),MIDR_ALL_VERSIONS (MIDR_NEOVERSE_V2 ), + {}, };static const struct midr_range spectre_bhb_k38_list[] = {MIDR_ALL_VERSIONS (MIDR_CORTEX_A715 ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A720 ), + {}, };static const struct midr_range spectre_bhb_k32_list[] = {MIDR_ALL_VERSIONS (MIDR_CORTEX_A78 ),
arch/parisc/include/uapi/asm/socket.h +7 -3
@@ -132,11 +132,15 @@#define SO_PASSPIDFD 0x404A#define SO_PEERPIDFD 0x404B -#define SO_DEVMEM_LINEAR 78 +#define SCM_TS_OPT_ID 0x404C + +#define SO_RCVPRIORITY 0x404D + +#define SO_DEVMEM_LINEAR 0x404E#define SCM_DEVMEM_LINEAR SO_DEVMEM_LINEAR -#define SO_DEVMEM_DMABUF 79 +#define SO_DEVMEM_DMABUF 0x404F#define SCM_DEVMEM_DMABUF SO_DEVMEM_DMABUF -#define SO_DEVMEM_DONTNEED 80 +#define SO_DEVMEM_DONTNEED 0x4050#if !defined(__KERNEL__)
arch/parisc/math-emu/driver.c +13 -3
@@ -97,9 +97,19 @@ handle_fpe(struct pt_regs *regs)memcpy (regs->fr, frcopy,sizeof regs->fr);if (signalcode !=0 ) { -force_sig_fault (signalcode >>24 , signalcode &0xffffff , - (void __user *) regs->iaoq[0 ]); -return -1 ; +int sig = signalcode >>24 ; + +if (sig ==SIGFPE ) { +/* +* Clear floating point trap bit to avoid trapping +* again on the first floating-point instruction in +* the userspace signal handler. +*/ + regs->fr[0 ] &= ~(1ULL <<38 ); + } +force_sig_fault (sig, signalcode &0xffffff , + (void __user *) regs->iaoq[0 ]); +return -1 ; }return signalcode ?-1 :0 ;
arch/powerpc/boot/wrapper +2 -4
@@ -234,10 +234,8 @@ fi # suppress some warnings in recent ld versions nowarn="-z noexecstack" -if ! ld_is_lld; then - if [ "$LD_VERSION" -ge "$(echo 2.39 | ld_version)" ]; then - nowarn="$nowarn --no-warn-rwx-segments" - fi +if "${CROSS}ld" -v --no-warn-rwx-segments >/dev/null 2>&1; then + nowarn="$nowarn --no-warn-rwx-segments" fi platformo=$object/"$platform".o
arch/powerpc/mm/book3s64/radix_pgtable.c +15 -2
@@ -1132,6 +1132,19 @@ int __meminit radix__vmemmap_populate(unsigned long start, unsigned long end, inpmd_t *pmd;pte_t *pte; +/* +* Make sure we align the start vmemmap addr so that we calculate +* the correct start_pfn in altmap boundary check to decided whether +* we should use altmap or RAM based backing memory allocation. Also +* the address need to be aligned for set_pte operation. + +* If the start addr is already PMD_SIZE aligned we will try to use +* a pmd mapping. We don't want to be too aggressive here beacause +* that will cause more allocations in RAM. So only if the namespace +* vmemmap start addr is PMD_SIZE aligned we will use PMD mapping. +*/ + + start =ALIGN_DOWN (start,PAGE_SIZE );for (addr = start; addr < end; addr = next) { next =pmd_addr_end (addr, end);
@@ -1157,8 +1170,8 @@ int __meminit radix__vmemmap_populate(unsigned long start, unsigned long end, in* in altmap block allocation failures, in which case * we fallback to RAM for vmemmap allocation. */ -if (altmap && (!IS_ALIGNED (addr,PMD_SIZE ) || -altmap_cross_boundary (altmap, addr,PMD_SIZE ))) { +if (!IS_ALIGNED (addr,PMD_SIZE ) || (altmap && +altmap_cross_boundary (altmap, addr,PMD_SIZE ))) {/* * make sure we don't create altmap mappings * covering things outside the device.
arch/x86/boot/compressed/mem.c +1 -4
@@ -34,14 +34,11 @@ static bool early_is_tdx_guest(void)void arch_accept_memory (phys_addr_t start,phys_addr_t end) { -static bool sevsnp; -/* Platform-specific memory-acceptance call goes here */ if (early_is_tdx_guest ()) {if (!tdx_accept_memory (start, end))panic ("TDX: Failed to accept memory\n" ); - }else if (sevsnp || (sev_get_status () &MSR_AMD64_SEV_SNP_ENABLED )) { - sevsnp = true; + }else if (early_is_sevsnp_guest ()) {snp_accept_memory (start, end); }else {error ("Cannot accept memory: unknown platform\n" );
arch/x86/boot/compressed/sev.c +40 -0
@@ -644,3 +644,43 @@ void sev_prep_identity_maps(unsigned long top_level_pgt)sev_verify_cbit (top_level_pgt); } + +bool early_is_sevsnp_guest (void ) +{ +static bool sevsnp; + +if (sevsnp) +return true; + +if (!(sev_get_status () &MSR_AMD64_SEV_SNP_ENABLED )) +return false; + + sevsnp = true; + +if (!snp_vmpl) { +unsigned int eax, ebx, ecx, edx; + +/* +* CPUID Fn8000_001F_EAX[28] - SVSM support +*/ + eax =0x8000001f ; + ecx =0 ; +native_cpuid (&eax, &ebx, &ecx, &edx); +if (eax &BIT (28 )) { +struct msr m; + +/* Obtain the address of the calling area to use */ +boot_rdmsr (MSR_SVSM_CAA , &m); + boot_svsm_caa = (void *)m.q; + boot_svsm_caa_pa = m.q; + +/* +* The real VMPL level cannot be discovered, but the +* memory acceptance routines make no use of that so +* any non-zero value suffices here. +*/ + snp_vmpl =U8_MAX ; + } + } +return true; +}
arch/x86/boot/compressed/sev.h +2 -0
@@ -13,12 +13,14 @@bool sev_snp_enabled (void );void snp_accept_memory (phys_addr_t start,phys_addr_t end);u64 sev_get_status (void ); +bool early_is_sevsnp_guest (void );#else static inline bool sev_snp_enabled (void ) {return false; }static inline void snp_accept_memory (phys_addr_t start,phys_addr_t end) { }static inline u64 sev_get_status (void ) {return 0 ; } +static inline bool early_is_sevsnp_guest (void ) {return false; }#endif
arch/x86/events/core.c +1 -1
@@ -753,7 +753,7 @@ void x86_pmu_enable_all(int added) } } -static inline int is_x86_event (struct perf_event *event) +int is_x86_event (struct perf_event *event) {int i;
arch/x86/events/intel/core.c +1 -1
@@ -4333,7 +4333,7 @@ static struct perf_guest_switch_msr *intel_guest_get_msrs(int *nr, void *data) arr[pebs_enable] = (struct perf_guest_switch_msr ){ .msr =MSR_IA32_PEBS_ENABLE , .host = cpuc->pebs_enabled & ~cpuc->intel_ctrl_guest_mask, - .guest = pebs_mask & ~cpuc->intel_ctrl_host_mask, + .guest = pebs_mask & ~cpuc->intel_ctrl_host_mask & kvm_pmu->pebs_enable, };if (arr[pebs_enable].host) {
arch/x86/events/perf_event.h +8 -1
@@ -110,9 +110,16 @@ static inline bool is_topdown_event(struct perf_event *event)return is_metric_event (event) ||is_slots_event (event); } +int is_x86_event (struct perf_event *event); + +static inline bool check_leader_group (struct perf_event *leader,int flags) +{ +return is_x86_event (leader) ? !!(leader->hw.flags & flags) : false; +} +static inline bool is_branch_counters_group (struct perf_event *event) { -return event->group_leader->hw.flags &PERF_X86_EVENT_BRANCH_COUNTERS ; +return check_leader_group (event->group_leader,PERF_X86_EVENT_BRANCH_COUNTERS ); }struct amd_nb {
block/blk-mq-cpumap.c +1 -2
@@ -87,7 +87,6 @@ void blk_mq_map_hw_queues(struct blk_mq_queue_map *qmap,return ; fallback: -WARN_ON_ONCE (qmap->nr_queues >1 ); -blk_mq_clear_mq_map (qmap); +blk_mq_map_queues (qmap); }EXPORT_SYMBOL_GPL (blk_mq_map_hw_queues);
drivers/accel/ivpu/ivpu_drv.c +12 -26
@@ -36,8 +36,6 @@ __stringify(DRM_IVPU_DRIVER_MINOR) "."#endif -static struct lock_class_key submitted_jobs_xa_lock_class_key; -int ivpu_dbg_mask;module_param_named (dbg_mask, ivpu_dbg_mask, int,0644 );MODULE_PARM_DESC (dbg_mask,"Driver debug mask. See IVPU_DBG_* macros." );
@@ -260,6 +258,9 @@ static int ivpu_open(struct drm_device *dev, struct drm_file *file)if (ret) goto err_xa_erase; + file_priv->job_limit.min =FIELD_PREP (IVPU_JOB_ID_CONTEXT_MASK , (file_priv->ctx.id -1 )); + file_priv->job_limit.max = file_priv->job_limit.min |IVPU_JOB_ID_JOB_MASK ; +mutex_unlock (&vdev->context_list_lock);drm_dev_exit (idx);
@@ -452,26 +453,6 @@ static const struct drm_driver driver = { .minor = DRM_IVPU_DRIVER_MINOR, }; -static void ivpu_context_abort_invalid (struct ivpu_device *vdev) -{ -struct ivpu_file_priv *file_priv; -unsigned long ctx_id; - -mutex_lock (&vdev->context_list_lock); - -xa_for_each (&vdev->context_xa, ctx_id, file_priv) { -if (!file_priv->has_mmu_faults || file_priv->aborted) -continue ; - -mutex_lock (&file_priv->lock); -ivpu_context_abort_locked (file_priv); - file_priv->aborted = true; -mutex_unlock (&file_priv->lock); - } - -mutex_unlock (&vdev->context_list_lock); -} -static irqreturn_t ivpu_irq_thread_handler (int irq,void *arg) {struct ivpu_device *vdev = arg;
@@ -485,9 +466,6 @@ static irqreturn_t ivpu_irq_thread_handler(int irq, void *arg)case IVPU_HW_IRQ_SRC_IPC :ivpu_ipc_irq_thread_handler (vdev);break ; -case IVPU_HW_IRQ_SRC_MMU_EVTQ : -ivpu_context_abort_invalid (vdev); -break ;case IVPU_HW_IRQ_SRC_DCT :ivpu_pm_dct_irq_thread_handler (vdev);break ;
@@ -604,13 +582,21 @@ static int ivpu_dev_init(struct ivpu_device *vdev)xa_init_flags (&vdev->context_xa,XA_FLAGS_ALLOC |XA_FLAGS_LOCK_IRQ );xa_init_flags (&vdev->submitted_jobs_xa,XA_FLAGS_ALLOC1 );xa_init_flags (&vdev->db_xa,XA_FLAGS_ALLOC1 ); -lockdep_set_class (&vdev->submitted_jobs_xa.xa_lock, &submitted_jobs_xa_lock_class_key);INIT_LIST_HEAD (&vdev->bo_list); + vdev->db_limit.min =IVPU_MIN_DB ; + vdev->db_limit.max =IVPU_MAX_DB ; + +INIT_WORK (&vdev->context_abort_work, ivpu_context_abort_thread_handler); + ret =drmm_mutex_init (&vdev->drm, &vdev->context_list_lock);if (ret) goto err_xa_destroy; + ret =drmm_mutex_init (&vdev->drm, &vdev->submitted_jobs_lock); +if (ret) + goto err_xa_destroy; + ret =drmm_mutex_init (&vdev->drm, &vdev->bo_list_lock);if (ret) goto err_xa_destroy;
drivers/accel/ivpu/ivpu_drv.h +9 -0
@@ -46,6 +46,9 @@#define IVPU_MIN_DB 1#define IVPU_MAX_DB 255 +#define IVPU_JOB_ID_JOB_MASK GENMASK(7, 0) +#define IVPU_JOB_ID_CONTEXT_MASK GENMASK(31, 8) +#define IVPU_NUM_ENGINES 2#define IVPU_NUM_PRIORITIES 4#define IVPU_NUM_CMDQS_PER_CTX (IVPU_NUM_ENGINES * IVPU_NUM_PRIORITIES)
@@ -134,12 +137,16 @@ struct ivpu_device {struct mutex context_list_lock;/* Protects user context addition/removal */ struct xarray context_xa;struct xa_limit context_xa_limit; +struct work_struct context_abort_work;struct xarray db_xa; +struct xa_limit db_limit; +u32 db_next;struct mutex bo_list_lock;/* Protects bo_list */ struct list_head bo_list; +struct mutex submitted_jobs_lock;/* Protects submitted_jobs */ struct xarray submitted_jobs_xa;struct ivpu_ipc_consumer job_done_consumer;
@@ -171,6 +178,8 @@ struct ivpu_file_priv {struct mutex ms_lock;/* Protects ms_instance_list, ms_info_bo */ struct list_head ms_instance_list;struct ivpu_bo *ms_info_bo; +struct xa_limit job_limit; +u32 job_id_next;bool has_mmu_faults;bool bound;bool aborted;
drivers/accel/ivpu/ivpu_hw_btrs.h +1 -1
@@ -14,7 +14,7 @@#define PLL_PROFILING_FREQ_DEFAULT 38400000#define PLL_PROFILING_FREQ_HIGH 400000000 -#define DCT_DEFAULT_ACTIVE_PERCENT 15u +#define DCT_DEFAULT_ACTIVE_PERCENT 30u#define DCT_PERIOD_US 35300uint ivpu_hw_btrs_info_init (struct ivpu_device *vdev);
drivers/accel/ivpu/ivpu_job.c +94 -31
239 lines not on this page · raw message
drivers/accel/ivpu/ivpu_job.h +1 -0
@@ -64,6 +64,7 @@ void ivpu_cmdq_reset_all_contexts(struct ivpu_device *vdev);void ivpu_job_done_consumer_init (struct ivpu_device *vdev);void ivpu_job_done_consumer_fini (struct ivpu_device *vdev); +void ivpu_context_abort_thread_handler (struct work_struct *work);void ivpu_jobs_abort_all (struct ivpu_device *vdev);
drivers/accel/ivpu/ivpu_jsm_msg.c +2 -1
@@ -48,9 +48,10 @@ const char *ivpu_jsm_msg_type_to_str(enum vpu_ipc_msg_type type)IVPU_CASE_TO_STR (VPU_JSM_MSG_HWS_RESUME_ENGINE_DONE );IVPU_CASE_TO_STR (VPU_JSM_MSG_STATE_DUMP );IVPU_CASE_TO_STR (VPU_JSM_MSG_STATE_DUMP_RSP ); -IVPU_CASE_TO_STR (VPU_JSM_MSG_BLOB_DEINIT ); +IVPU_CASE_TO_STR (VPU_JSM_MSG_BLOB_DEINIT_DEPRECATED );IVPU_CASE_TO_STR (VPU_JSM_MSG_DYNDBG_CONTROL );IVPU_CASE_TO_STR (VPU_JSM_MSG_JOB_DONE ); +IVPU_CASE_TO_STR (VPU_JSM_MSG_NATIVE_FENCE_SIGNALLED );IVPU_CASE_TO_STR (VPU_JSM_MSG_ENGINE_RESET_DONE );IVPU_CASE_TO_STR (VPU_JSM_MSG_ENGINE_PREEMPT_DONE );IVPU_CASE_TO_STR (VPU_JSM_MSG_REGISTER_DB_DONE );
drivers/accel/ivpu/ivpu_mmu.c +1 -2
@@ -917,8 +917,7 @@ void ivpu_mmu_irq_evtq_handler(struct ivpu_device *vdev)REGV_WR32 (IVPU_MMU_REG_EVTQ_CONS_SEC , vdev->mmu->evtq.cons); } -if (!kfifo_put (&vdev->hw->irq.fifo,IVPU_HW_IRQ_SRC_MMU_EVTQ )) -ivpu_err_ratelimited (vdev,"IRQ FIFO full\n" ); +queue_work (system_wq, &vdev->context_abort_work); }void ivpu_mmu_evtq_dump (struct ivpu_device *vdev)
drivers/accel/ivpu/ivpu_pm.c +10 -8
@@ -421,16 +421,17 @@ int ivpu_pm_dct_enable(struct ivpu_device *vdev, u8 active_percent) active_us = (DCT_PERIOD_US * active_percent) /100 ; inactive_us =DCT_PERIOD_US - active_us; + vdev->pm->dct_active_percent = active_percent; + +ivpu_dbg (vdev,PM ,"DCT requested %u%% (D0: %uus, D0i2: %uus)\n" , + active_percent, active_us, inactive_us); + ret =ivpu_jsm_dct_enable (vdev, active_us, inactive_us);if (ret) {ivpu_err_ratelimited (vdev,"Filed to enable DCT: %d\n" , ret);return ret; } - vdev->pm->dct_active_percent = active_percent; - -ivpu_dbg (vdev,PM ,"DCT set to %u%% (D0: %uus, D0i2: %uus)\n" , - active_percent, active_us, inactive_us);return 0 ; }
@@ -438,15 +439,16 @@ int ivpu_pm_dct_disable(struct ivpu_device *vdev) {int ret; + vdev->pm->dct_active_percent =0 ; + +ivpu_dbg (vdev,PM ,"DCT requested to be disabled\n" ); + ret =ivpu_jsm_dct_disable (vdev);if (ret) {ivpu_err_ratelimited (vdev,"Filed to disable DCT: %d\n" , ret);return ret; } - vdev->pm->dct_active_percent =0 ; - -ivpu_dbg (vdev,PM ,"DCT disabled\n" );return 0 ; }
@@ -458,7 +460,7 @@ void ivpu_pm_dct_irq_thread_handler(struct ivpu_device *vdev)if (ivpu_hw_btrs_dct_get_request (vdev, &enable))return ; -if (vdev->pm->dct_active_percent) +if (enable) ret =ivpu_pm_dct_enable (vdev,DCT_DEFAULT_ACTIVE_PERCENT );else ret =ivpu_pm_dct_disable (vdev);
drivers/accel/ivpu/ivpu_sysfs.c +3 -2
@@ -30,11 +30,12 @@ npu_busy_time_us_show(struct device *dev, struct device_attribute *attr, char *bstruct ivpu_device *vdev =to_ivpu_device (drm);ktime_t total, now =0 ; -xa_lock (&vdev->submitted_jobs_xa); +mutex_lock (&vdev->submitted_jobs_lock); + total = vdev->busy_time;if (!xa_empty (&vdev->submitted_jobs_xa)) now =ktime_sub (ktime_get (), vdev->busy_start_ts); -xa_unlock (&vdev->submitted_jobs_xa); +mutex_unlock (&vdev->submitted_jobs_lock);return sysfs_emit (buf,"%lld\n" ,ktime_to_us (ktime_add (total, now))); }
drivers/accel/ivpu/vpu_boot_api.h +29 -16
108 lines not on this page · raw message
drivers/accel/ivpu/vpu_jsm_api.h +261 -42
444 lines not on this page · raw message
drivers/android/binder.c +1 -1
@@ -6374,7 +6374,7 @@ static void print_binder_transaction_ilocked(struct seq_file *m,seq_printf (m," node %d" , buffer->target_node->debug_id);seq_printf (m," size %zd:%zd offset %lx\n" , buffer->data_size, buffer->offsets_size, - proc->alloc.buffer - buffer->user_data); + buffer->user_data - proc->alloc.buffer); } static void print_binder_work_ilocked(struct seq_file *m,
drivers/base/module.c +5 -8
@@ -42,16 +42,13 @@ int module_add_driver(struct module *mod, const struct device_driver *drv)if (mod) mk = &mod->mkobj;else if (drv->mod_name) { -struct kobject *mkobj; - -/* Lookup built-in module entry in /sys/modules */ - mkobj =kset_find_obj (module_kset, drv->mod_name); -if (mkobj) { - mk = container_of(mkobj, struct module_kobject, kobj); +/* Lookup or create built-in module entry in /sys/modules */ + mk =lookup_or_create_module_kobject (drv->mod_name); +if (mk) {/* remember our module structure */ drv->p->mkobj = mk; -/* kset_find_obj took a reference */ -kobject_put (mkobj); +/* lookup_or_create_module_kobject took a reference */ +kobject_put (&mk->kobj); } }
drivers/bluetooth/btintel_pcie.c +31 -26
114 lines not on this page · raw message
drivers/bluetooth/btusb.c +109 -28
184 lines not on this page · raw message
drivers/cpufreq/cpufreq.c +33 -9
74 lines not on this page · raw message
drivers/cpufreq/cpufreq_ondemand.c +2 -1
@@ -76,7 +76,8 @@ static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy,return freq_next; } - index =cpufreq_frequency_table_target (policy, freq_next, relation); + index =cpufreq_frequency_table_target (policy, freq_next, policy->min, + policy->max, relation); freq_req = freq_table[index].frequency; freq_reduc = freq_req * od_tuners->powersave_bias /1000 ; freq_avg = freq_req - freq_reduc;
drivers/cpufreq/freq_table.c +3 -3
@@ -116,8 +116,8 @@ int cpufreq_generic_frequency_table_verify(struct cpufreq_policy_data *policy)EXPORT_SYMBOL_GPL (cpufreq_generic_frequency_table_verify);int cpufreq_table_index_unsorted (struct cpufreq_policy *policy, -unsigned int target_freq, -unsigned int relation) +unsigned int target_freq,unsigned int min, +unsigned int max,unsigned int relation) {struct cpufreq_frequency_table optimal = { .driver_data = ~0 ,
@@ -148,7 +148,7 @@ int cpufreq_table_index_unsorted(struct cpufreq_policy *policy,cpufreq_for_each_valid_entry_idx (pos, table, i) { freq = pos->frequency; -if ((freq < policy->min) || (freq > policy->max)) +if (freq < min || freq > max)continue ;if (freq == target_freq) { optimal.driver_data = i;
drivers/cpufreq/intel_pstate.c +3 -0
@@ -600,6 +600,9 @@ static bool turbo_is_disabled(void) {u64 misc_en; +if (!cpu_feature_enabled (X86_FEATURE_IDA )) +return true; +rdmsrl (MSR_IA32_MISC_ENABLE , misc_en);return !!(misc_en &MSR_IA32_MISC_ENABLE_TURBO_DISABLE );
drivers/edac/altera_edac.c +5 -4
@@ -99,7 +99,7 @@ static irqreturn_t altr_sdram_mc_err_handler(int irq, void *dev_id)if (status & priv->ecc_stat_ce_mask) {regmap_read (drvdata->mc_vbase, priv->ecc_saddr_offset, &err_addr); -if (priv->ecc_uecnt_offset) +if (priv->ecc_cecnt_offset)regmap_read (drvdata->mc_vbase, priv->ecc_cecnt_offset, &err_count); edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, err_count,
@@ -1005,9 +1005,6 @@ altr_init_a10_ecc_block(struct device_node *np, u32 irq_mask, } } -/* Interrupt mode set to every SBERR */ -regmap_write (ecc_mgr_map,ALTR_A10_ECC_INTMODE_OFST , -ALTR_A10_ECC_INTMODE );/* Enable ECC */ ecc_set_bits (ecc_ctrl_en_mask, (ecc_block_base +ALTR_A10_ECC_CTRL_OFST ));
@@ -2127,6 +2124,10 @@ static int altr_edac_a10_probe(struct platform_device *pdev)return PTR_ERR (edac->ecc_mgr_map); } +/* Set irq mask for DDR SBE to avoid any pending irq before registration */ +regmap_write (edac->ecc_mgr_map,A10_SYSMGR_ECC_INTMASK_SET_OFST , + (A10_SYSMGR_ECC_INTMASK_SDMMCB |A10_SYSMGR_ECC_INTMASK_DDR0 )); + edac->irq_chip.name = pdev->dev.of_node->name; edac->irq_chip.irq_mask = a10_eccmgr_irq_mask; edac->irq_chip.irq_unmask = a10_eccmgr_irq_unmask;
drivers/edac/altera_edac.h +2 -0
@@ -249,6 +249,8 @@ struct altr_sdram_mc_data {#define A10_SYSMGR_ECC_INTMASK_SET_OFST 0x94#define A10_SYSMGR_ECC_INTMASK_CLR_OFST 0x98#define A10_SYSMGR_ECC_INTMASK_OCRAM BIT(1) +#define A10_SYSMGR_ECC_INTMASK_SDMMCB BIT(16) +#define A10_SYSMGR_ECC_INTMASK_DDR0 BIT(17)#define A10_SYSMGR_ECC_INTSTAT_SERR_OFST 0x9C#define A10_SYSMGR_ECC_INTSTAT_DERR_OFST 0xA0
drivers/firmware/arm_ffa/driver.c +2 -1
@@ -280,7 +280,8 @@ __ffa_partition_info_get(u32 uuid0, u32 uuid1, u32 uuid2, u32 uuid3,memcpy (buffer + idx, drv_info->rx_buffer + idx * sz, buf_sz); -ffa_rx_release (); +if (!(flags &PARTITION_INFO_GET_RETURN_COUNT_ONLY )) +ffa_rx_release ();mutex_unlock (&drv_info->rx_lock);
drivers/firmware/arm_scmi/bus.c +3 -0
@@ -260,6 +260,9 @@ static struct scmi_device *scmi_child_dev_find(struct device *parent,if (!dev)return NULL ; +/* Drop the refcnt bumped implicitly by device_find_child */ +put_device (dev); +return to_scmi_dev (dev); }
drivers/gpu/drm/Kconfig +1 -1
@@ -185,7 +185,7 @@ config DRM_DEBUG_DP_MST_TOPOLOGY_REFS bool "Enable refcount backtrace history in the DP MST helpers" depends on STACKTRACE_SUPPORT select STACKDEPOT - depends on DRM_KMS_HELPER + select DRM_KMS_HELPER depends on DEBUG_KERNEL depends on EXPERT help
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c +1 -1
@@ -361,7 +361,7 @@ static void nbio_v7_11_get_clockgating_state(struct amdgpu_device *adev, *flags |=AMD_CG_SUPPORT_BIF_LS ; } -#define MMIO_REG_HOLE_OFFSET (0x80000 - PAGE_SIZE) +#define MMIO_REG_HOLE_OFFSET 0x44000static void nbio_v7_11_set_reg_remap (struct amdgpu_device *adev) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -20
@@ -1887,26 +1887,6 @@ static enum dmub_ips_disable_type dm_get_default_ips_mode(switch (amdgpu_ip_version (adev,DCE_HWIP ,0 )) {case IP_VERSION (3 ,5 ,0 ): -/* -* On DCN35 systems with Z8 enabled, it's possible for IPS2 + Z8 to -* cause a hard hang. A fix exists for newer PMFW. -* -* As a workaround, for non-fixed PMFW, force IPS1+RCG as the deepest -* IPS state in all cases, except for s0ix and all displays off (DPMS), -* where IPS2 is allowed. -* -* When checking pmfw version, use the major and minor only. -*/ -if ((adev->pm.fw_version &0x00FFFF00 ) <0x005D6300 ) - ret =DMUB_IPS_RCG_IN_ACTIVE_IPS2_IN_OFF ; -else if (amdgpu_ip_version (adev,GC_HWIP ,0 ) >IP_VERSION (11 ,5 ,0 )) -/* -* Other ASICs with DCN35 that have residency issues with -* IPS2 in idle. -* We want them to use IPS2 only in display off cases. -*/ - ret =DMUB_IPS_RCG_IN_ACTIVE_IPS2_IN_OFF ; -break ;case IP_VERSION (3 ,5 ,1 ): ret =DMUB_IPS_RCG_IN_ACTIVE_IPS2_IN_OFF ;break ;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c +26 -30
181 lines not on this page · raw message
drivers/gpu/drm/drm_file.c +6 -0
@@ -938,6 +938,10 @@ void drm_show_fdinfo(struct seq_file *m, struct file *f)struct drm_file *file = f->private_data;struct drm_device *dev = file->minor->dev;struct drm_printer p =drm_seq_file_printer (m); +int idx; + +if (!drm_dev_enter (dev, &idx)) +return ;drm_printf (&p,"drm-driver:\t%s\n" , dev->driver->name);drm_printf (&p,"drm-client-id:\t%llu\n" , file->client_id);
@@ -952,6 +956,8 @@ void drm_show_fdinfo(struct seq_file *m, struct file *f)if (dev->driver->show_fdinfo) dev->driver->show_fdinfo (&p, file); + +drm_dev_exit (idx); }EXPORT_SYMBOL (drm_show_fdinfo);
drivers/gpu/drm/drm_mipi_dbi.c +5 -1
@@ -404,12 +404,16 @@ static void mipi_dbi_blank(struct mipi_dbi_dev *dbidev)u16 height = drm->mode_config.min_height;u16 width = drm->mode_config.min_width;struct mipi_dbi *dbi = &dbidev->dbi; -size_t len = width * height *2 ; +const struct drm_format_info *dst_format; +size_t len;int idx;if (!drm_dev_enter (drm, &idx))return ; + dst_format =drm_format_info (dbidev->pixel_format); + len =drm_format_info_min_pitch (dst_format,0 , width) * height; +memset (dbidev->tx_buf,0 , len);mipi_dbi_set_window_address (dbidev,0 , width -1 ,0 , height -1 );
drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.h +6 -2
@@ -23,6 +23,7 @@ int intel_pxp_gsccs_init(struct intel_pxp *pxp);int intel_pxp_gsccs_create_session (struct intel_pxp *pxp,int arb_session_id);void intel_pxp_gsccs_end_arb_fw_session (struct intel_pxp *pxp,u32 arb_session_id); +bool intel_pxp_gsccs_is_ready_for_sessions (struct intel_pxp *pxp);#else static inline void intel_pxp_gsccs_fini (struct intel_pxp *pxp)
@@ -34,8 +35,11 @@ static inline int intel_pxp_gsccs_init(struct intel_pxp *pxp)return 0 ; } -#endif +static inline bool intel_pxp_gsccs_is_ready_for_sessions (struct intel_pxp *pxp) +{ +return false; +} -bool intel_pxp_gsccs_is_ready_for_sessions (struct intel_pxp *pxp); +#endif #endif /*__INTEL_PXP_GSCCS_H__ */
drivers/gpu/drm/meson/meson_vclk.c +3 -3
@@ -790,13 +790,13 @@ meson_vclk_vic_supported_freq(struct meson_drm *priv, unsigned int phy_freq, FREQ_1000_1001(params[i].pixel_freq));DRM_DEBUG_DRIVER ("i = %d phy_freq = %d alt = %d\n" , i, params[i].phy_freq, -FREQ_1000_1001 (params[i].phy_freq/1000 )*1000 ); +FREQ_1000_1001 (params[i].phy_freq/10 )*10 );/* Match strict frequency */ if (phy_freq == params[i].phy_freq && vclk_freq == params[i].vclk_freq)return MODE_OK ;/* Match 1000/1001 variant */ -if (phy_freq == (FREQ_1000_1001 (params[i].phy_freq/1000 )*1000 ) && +if (phy_freq == (FREQ_1000_1001 (params[i].phy_freq/10 )*10 ) && vclk_freq ==FREQ_1000_1001 (params[i].vclk_freq))return MODE_OK ; }
@@ -1070,7 +1070,7 @@ void meson_vclk_setup(struct meson_drm *priv, unsigned int target,for (freq =0 ; params[freq].pixel_freq ; ++freq) {if ((phy_freq == params[freq].phy_freq || - phy_freq ==FREQ_1000_1001 (params[freq].phy_freq/1000 )*1000 ) && + phy_freq ==FREQ_1000_1001 (params[freq].phy_freq/10 )*10 ) && (vclk_freq == params[freq].vclk_freq || vclk_freq ==FREQ_1000_1001 (params[freq].vclk_freq))) {if (vclk_freq != params[freq].vclk_freq)
drivers/gpu/drm/nouveau/nouveau_fence.c +1 -1
@@ -90,7 +90,7 @@ nouveau_fence_context_kill(struct nouveau_fence_chan *fctx, int error)while (!list_empty (&fctx->pending)) { fence =list_entry (fctx->pending.next,typeof (*fence), head); -if (error) +if (error && !dma_fence_is_signaled_locked (&fence->base))dma_fence_set_error (&fence->base, error);if (nouveau_fence_signal (fence))
drivers/gpu/drm/tests/drm_gem_shmem_test.c +3 -0
@@ -216,6 +216,9 @@ static void drm_gem_shmem_test_get_pages_sgt(struct kunit *test)KUNIT_ASSERT_NOT_ERR_OR_NULL (test, sgt);KUNIT_EXPECT_NULL (test, shmem->sgt); + ret =kunit_add_action_or_reset (test, kfree_wrapper, sgt); +KUNIT_ASSERT_EQ (test, ret,0 ); + ret =kunit_add_action_or_reset (test, sg_free_table_wrapper, sgt);KUNIT_ASSERT_EQ (test, ret,0 );
drivers/gpu/drm/xe/xe_hw_engine.c +6 -6
@@ -381,12 +381,6 @@ xe_hw_engine_setup_default_lrc_state(struct xe_hw_engine *hwe) blit_cctl_val, XE_RTP_ACTION_FLAG(ENGINE_BASE))) }, -/* Use Fixed slice CCS mode */ - {XE_RTP_NAME ("RCU_MODE_FIXED_SLICE_CCS_MODE" ), -XE_RTP_RULES (FUNC (xe_hw_engine_match_fixed_cslice_mode)), -XE_RTP_ACTIONS (FIELD_SET (RCU_MODE ,RCU_MODE_FIXED_SLICE_CCS_MODE , -RCU_MODE_FIXED_SLICE_CCS_MODE )) - },/* Disable WMTP if HW doesn't support it */ {XE_RTP_NAME ("DISABLE_WMTP_ON_UNSUPPORTED_HW" ), XE_RTP_RULES(FUNC(xe_rtp_cfeg_wmtp_disabled)),
@@ -454,6 +448,12 @@ hw_engine_setup_default_state(struct xe_hw_engine *hwe) XE_RTP_ACTIONS(SET(CSFE_CHICKEN1(0), CS_PRIORITY_MEM_READ, XE_RTP_ACTION_FLAG(ENGINE_BASE))) }, +/* Use Fixed slice CCS mode */ + {XE_RTP_NAME ("RCU_MODE_FIXED_SLICE_CCS_MODE" ), +XE_RTP_RULES (FUNC (xe_hw_engine_match_fixed_cslice_mode)), +XE_RTP_ACTIONS (FIELD_SET (RCU_MODE ,RCU_MODE_FIXED_SLICE_CCS_MODE , +RCU_MODE_FIXED_SLICE_CCS_MODE )) + }, {} };
drivers/i2c/busses/i2c-imx-lpi2c.c +2 -2
@@ -652,9 +652,9 @@ static int lpi2c_imx_probe(struct platform_device *pdev)return 0 ; rpm_disable: -pm_runtime_put (&pdev->dev); -pm_runtime_disable (&pdev->dev);pm_runtime_dont_use_autosuspend (&pdev->dev); +pm_runtime_put_sync (&pdev->dev); +pm_runtime_disable (&pdev->dev);return ret; }
drivers/iommu/amd/init.c +8 -0
@@ -3655,6 +3655,14 @@ static int __init parse_ivrs_acpihid(char *str)while (*uid =='0' && *(uid +1 )) uid++; +if (strlen (hid) >=ACPIHID_HID_LEN ) { +pr_err ("Invalid command line: hid is too long\n" ); +return 1 ; + }else if (strlen (uid) >=ACPIHID_UID_LEN ) { +pr_err ("Invalid command line: uid is too long\n" ); +return 1 ; + } + i = early_acpihid_map_size++;memcpy (early_acpihid_map[i].hid, hid,strlen (hid));memcpy (early_acpihid_map[i].uid, uid,strlen (uid));
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c +6 -0
@@ -397,6 +397,12 @@ struct iommu_domain *arm_smmu_sva_domain_alloc(struct device *dev,return ERR_CAST (smmu_domain); smmu_domain->domain.type =IOMMU_DOMAIN_SVA ; smmu_domain->domain.ops = &arm_smmu_sva_domain_ops; + +/* +* Choose page_size as the leaf page size for invalidation when +* ARM_SMMU_FEAT_RANGE_INV is present +*/ + smmu_domain->domain.pgsize_bitmap =PAGE_SIZE ; smmu_domain->smmu = smmu; ret = xa_alloc(&arm_smmu_asid_xa, &asid, smmu_domain,
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +15 -4
@@ -3220,6 +3220,7 @@ static int arm_smmu_insert_master(struct arm_smmu_device *smmu,mutex_lock (&smmu->streams_mutex);for (i =0 ; i < fwspec->num_ids; i++) {struct arm_smmu_stream *new_stream = &master->streams[i]; +struct rb_node *existing;u32 sid = fwspec->ids[i]; new_stream->id = sid;
@@ -3230,10 +3231,20 @@ static int arm_smmu_insert_master(struct arm_smmu_device *smmu,break ;/* Insert into SID tree */ -if (rb_find_add (&new_stream->node, &smmu->streams, - arm_smmu_streams_cmp_node)) { -dev_warn (master->dev,"stream %u already in tree\n" , - sid); + existing =rb_find_add (&new_stream->node, &smmu->streams, + arm_smmu_streams_cmp_node); +if (existing) { +struct arm_smmu_master *existing_master = + rb_entry(existing, struct arm_smmu_stream, node) + ->master; + +/* Bridged PCI devices may end up with duplicated IDs */ +if (existing_master == master) +continue ; + +dev_warn (master->dev, +"stream %u already in tree from dev %s\n" , sid, +dev_name (existing_master->dev)); ret = -EINVAL ;break ; }
drivers/iommu/intel/iommu.c +3 -1
@@ -4666,6 +4666,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x2e30, quirk_iommu_igfx);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e40 , quirk_iommu_igfx);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e90 , quirk_iommu_igfx); +/* QM57/QS57 integrated gfx malfunctions with dmar */ +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x0044 , quirk_iommu_igfx); +/* Broadwell igfx malfunctions with dmar */ DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x1606 , quirk_iommu_igfx);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x160B , quirk_iommu_igfx);
@@ -4743,7 +4746,6 @@ static void quirk_calpella_no_shadow_gtt(struct pci_dev *dev) } }DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x0040 , quirk_calpella_no_shadow_gtt); -DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x0044 , quirk_calpella_no_shadow_gtt);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x0062 , quirk_calpella_no_shadow_gtt);DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x006a , quirk_calpella_no_shadow_gtt);
drivers/irqchip/irq-qcom-mpm.c +3 -0
@@ -227,6 +227,9 @@ static int qcom_mpm_alloc(struct irq_domain *domain, unsigned int virq,if (ret)return ret; +if (pin ==GPIO_NO_WAKE_IRQ ) +return irq_domain_disconnect_hierarchy (domain, virq); + ret =irq_domain_set_hwirq_and_chip (domain, virq, pin, &qcom_mpm_chip, priv);if (ret)
drivers/md/dm-bufio.c +8 -1
@@ -68,6 +68,8 @@#define LIST_DIRTY 1#define LIST_SIZE 2 +#define SCAN_RESCHED_CYCLE 16 +/*--------------------------------------------------------------*/ /*
@@ -2414,7 +2416,12 @@ static void __scan(struct dm_bufio_client *c)atomic_long_dec (&c->need_shrink); freed++; -cond_resched (); + +if (unlikely (freed %SCAN_RESCHED_CYCLE ==0 )) { +dm_bufio_unlock (c); +cond_resched (); +dm_bufio_lock (c); + } } } }
drivers/md/dm-integrity.c +1 -1
@@ -5173,7 +5173,7 @@ static void dm_integrity_dtr(struct dm_target *ti)BUG_ON (!RB_EMPTY_ROOT (&ic->in_progress));BUG_ON (!list_empty (&ic->wait_list)); -if (ic->mode =='B' ) +if (ic->mode =='B' && ic->bitmap_flush_work.work.func)cancel_delayed_work_sync (&ic->bitmap_flush_work);if (ic->metadata_wq)destroy_workqueue (ic->metadata_wq);
drivers/md/dm-table.c +3 -2
@@ -523,8 +523,9 @@ static char **realloc_argv(unsigned int *size, char **old_argv) gfp =GFP_NOIO ; } argv =kmalloc_array (new_size,sizeof (*argv), gfp); -if (argv && old_argv) { -memcpy (argv, old_argv, *size *sizeof (*argv)); +if (argv) { +if (old_argv) +memcpy (argv, old_argv, *size *sizeof (*argv)); *size = new_size; }
drivers/mmc/host/renesas_sdhi_core.c +4 -6
@@ -1112,26 +1112,26 @@ int renesas_sdhi_probe(struct platform_device *pdev, num_irqs =platform_irq_count (pdev);if (num_irqs <0 ) { ret = num_irqs; - goto eirq; + goto edisclk; }/* There must be at least one IRQ source */ if (!num_irqs) { ret = -ENXIO ; - goto eirq; + goto edisclk; }for (i =0 ; i < num_irqs; i++) { irq =platform_get_irq (pdev, i);if (irq <0 ) { ret = irq; - goto eirq; + goto edisclk; } ret =devm_request_irq (&pdev->dev, irq, tmio_mmc_irq,0 ,dev_name (&pdev->dev), host);if (ret) - goto eirq; + goto edisclk; } ret =tmio_mmc_host_probe (host);
@@ -1143,8 +1143,6 @@ int renesas_sdhi_probe(struct platform_device *pdev,return ret; -eirq: -tmio_mmc_host_remove (host); edisclk:renesas_sdhi_clk_disable (host); efree:
drivers/net/dsa/ocelot/felix_vsc9959.c +4 -1
@@ -1543,7 +1543,7 @@ static void vsc9959_tas_clock_adjust(struct ocelot *ocelot)struct tc_taprio_qopt_offload *taprio;struct ocelot_port *ocelot_port;struct timespec64 base_ts; -int port; +int i, port;u32 val;mutex_lock (&ocelot->fwd_domain_lock);
@@ -1575,6 +1575,9 @@ static void vsc9959_tas_clock_adjust(struct ocelot *ocelot)QSYS_PARAM_CFG_REG_3_BASE_TIME_SEC_MSB_M , QSYS_PARAM_CFG_REG_3); +for (i =0 ; i < taprio->num_entries; i++) +vsc9959_tas_gcl_set (ocelot, i, &taprio->entries[i]); +ocelot_rmw (ocelot,QSYS_TAS_PARAM_CFG_CTRL_CONFIG_CHANGE ,QSYS_TAS_PARAM_CFG_CTRL_CONFIG_CHANGE ,QSYS_TAS_PARAM_CFG_CTRL );
drivers/net/ethernet/amd/pds_core/auxbus.c +16 -23
@@ -172,34 +172,31 @@ static struct pds_auxiliary_dev *pdsc_auxbus_dev_register(struct pdsc *cf,return padev; } -int pdsc_auxbus_dev_del (struct pdsc *cf,struct pdsc *pf) +void pdsc_auxbus_dev_del (struct pdsc *cf,struct pdsc *pf, +struct pds_auxiliary_dev **pd_ptr) {struct pds_auxiliary_dev *padev; -int err =0 ; -if (!cf) -return -ENODEV ; +if (!*pd_ptr) +return ;mutex_lock (&pf->config_lock); - padev = pf->vfs[cf->vf_id].padev; -if (padev) { -pds_client_unregister (pf, padev->client_id); -auxiliary_device_delete (&padev->aux_dev); -auxiliary_device_uninit (&padev->aux_dev); - padev->client_id =0 ; - } - pf->vfs[cf->vf_id].padev =NULL ; + padev = *pd_ptr; +pds_client_unregister (pf, padev->client_id); +auxiliary_device_delete (&padev->aux_dev); +auxiliary_device_uninit (&padev->aux_dev); + *pd_ptr =NULL ;mutex_unlock (&pf->config_lock); -return err; } -int pdsc_auxbus_dev_add (struct pdsc *cf,struct pdsc *pf) +int pdsc_auxbus_dev_add (struct pdsc *cf,struct pdsc *pf, +enum pds_core_vif_types vt, +struct pds_auxiliary_dev **pd_ptr) {struct pds_auxiliary_dev *padev;char devname[PDS_DEVNAME_LEN ]; -enum pds_core_vif_types vt;unsigned long mask;u16 vt_support;int client_id;
@@ -208,6 +205,9 @@ int pdsc_auxbus_dev_add(struct pdsc *cf, struct pdsc *pf)if (!cf)return -ENODEV ; +if (vt >=PDS_DEV_TYPE_MAX ) +return -EINVAL ; +mutex_lock (&pf->config_lock); mask = BIT_ULL(PDSC_S_FW_DEAD) |
@@ -219,17 +219,10 @@ int pdsc_auxbus_dev_add(struct pdsc *cf, struct pdsc *pf) goto out_unlock; } -/* We only support vDPA so far, so it is the only one to -* be verified that it is available in the Core device and -* enabled in the devlink param. In the future this might -* become a loop for several VIF types. -*/ -/* Verify that the type is supported and enabled. It is not * an error if there is no auxbus device support for this * VF, it just means something else needs to happen with it. */ - vt =PDS_DEV_TYPE_VDPA ; vt_support = !!le16_to_cpu (pf->dev_ident.vif_types[vt]); if (!(vt_support && pf->viftype_status[vt].supported &&
@@ -255,7 +248,7 @@ int pdsc_auxbus_dev_add(struct pdsc *cf, struct pdsc *pf) err =PTR_ERR (padev); goto out_unlock; } - pf->vfs[cf->vf_id].padev = padev; + *pd_ptr = padev; out_unlock:mutex_unlock (&pf->config_lock);
drivers/net/ethernet/amd/pds_core/core.h +5 -2
@@ -303,8 +303,11 @@ void pdsc_health_thread(struct work_struct *work);int pdsc_register_notify (struct notifier_block *nb);void pdsc_unregister_notify (struct notifier_block *nb);void pdsc_notify (unsigned long event,void *data); -int pdsc_auxbus_dev_add (struct pdsc *cf,struct pdsc *pf); -int pdsc_auxbus_dev_del (struct pdsc *cf,struct pdsc *pf); +int pdsc_auxbus_dev_add (struct pdsc *cf,struct pdsc *pf, +enum pds_core_vif_types vt, +struct pds_auxiliary_dev **pd_ptr); +void pdsc_auxbus_dev_del (struct pdsc *cf,struct pdsc *pf, +struct pds_auxiliary_dev **pd_ptr);void pdsc_process_adminq (struct pdsc_qcq *qcq);void pdsc_work_thread (struct work_struct *work);
drivers/net/ethernet/amd/pds_core/devlink.c +5 -2
@@ -56,8 +56,11 @@ int pdsc_dl_enable_set(struct devlink *dl, u32 id,for (vf_id =0 ; vf_id < pdsc->num_vfs; vf_id++) {struct pdsc *vf = pdsc->vfs[vf_id].vf; - err = ctx->val.vbool ?pdsc_auxbus_dev_add (vf, pdsc) : -pdsc_auxbus_dev_del (vf, pdsc); +if (ctx->val.vbool) + err =pdsc_auxbus_dev_add (vf, pdsc, vt_entry->vif_id, + &pdsc->vfs[vf_id].padev); +else +pdsc_auxbus_dev_del (vf, pdsc, &pdsc->vfs[vf_id].padev); }return err;
drivers/net/ethernet/amd/pds_core/main.c +7 -4
@@ -190,7 +190,8 @@ static int pdsc_init_vf(struct pdsc *vf)devl_unlock (dl); pf->vfs[vf->vf_id].vf = vf; - err =pdsc_auxbus_dev_add (vf, pf); + err =pdsc_auxbus_dev_add (vf, pf,PDS_DEV_TYPE_VDPA , + &pf->vfs[vf->vf_id].padev);if (err) {devl_lock (dl);devl_unregister (dl);
@@ -417,7 +418,7 @@ static void pdsc_remove(struct pci_dev *pdev) pf =pdsc_get_pf_struct (pdsc->pdev);if (!IS_ERR (pf)) { -pdsc_auxbus_dev_del (pdsc, pf); +pdsc_auxbus_dev_del (pdsc, pf, &pf->vfs[pdsc->vf_id].padev); pf->vfs[pdsc->vf_id].vf =NULL ; } }else {
@@ -482,7 +483,8 @@ static void pdsc_reset_prepare(struct pci_dev *pdev) pf =pdsc_get_pf_struct (pdsc->pdev);if (!IS_ERR (pf)) -pdsc_auxbus_dev_del (pdsc, pf); +pdsc_auxbus_dev_del (pdsc, pf, + &pf->vfs[pdsc->vf_id].padev); }pdsc_unmap_bars (pdsc);
@@ -527,7 +529,8 @@ static void pdsc_reset_done(struct pci_dev *pdev) pf =pdsc_get_pf_struct (pdsc->pdev);if (!IS_ERR (pf)) -pdsc_auxbus_dev_add (pdsc, pf); +pdsc_auxbus_dev_add (pdsc, pf,PDS_DEV_TYPE_VDPA , + &pf->vfs[pdsc->vf_id].padev); } }
drivers/net/ethernet/amd/xgbe/xgbe-desc.c +7 -2
@@ -373,8 +373,13 @@ static int xgbe_map_rx_buffer(struct xgbe_prv_data *pdata, }/* Set up the header page info */ -xgbe_set_buffer_data (&rdata->rx.hdr, &ring->rx_hdr_pa, -XGBE_SKB_ALLOC_SIZE ); +if (pdata->netdev->features &NETIF_F_RXCSUM ) { +xgbe_set_buffer_data (&rdata->rx.hdr, &ring->rx_hdr_pa, +XGBE_SKB_ALLOC_SIZE ); + }else { +xgbe_set_buffer_data (&rdata->rx.hdr, &ring->rx_hdr_pa, + pdata->rx_buf_size); + }/* Set up the buffer page info */ xgbe_set_buffer_data(&rdata->rx.buf, &ring->rx_buf_pa,
drivers/net/ethernet/amd/xgbe/xgbe-dev.c +22 -2
@@ -320,6 +320,18 @@ static void xgbe_config_sph_mode(struct xgbe_prv_data *pdata)XGMAC_IOWRITE_BITS (pdata,MAC_RCR ,HDSMS ,XGBE_SPH_HDSMS_SIZE ); } +static void xgbe_disable_sph_mode (struct xgbe_prv_data *pdata) +{ +unsigned int i; + +for (i =0 ; i < pdata->channel_count; i++) { +if (!pdata->channel[i]->rx_ring) +break ; + +XGMAC_DMA_IOWRITE_BITS (pdata->channel[i],DMA_CH_CR ,SPH ,0 ); + } +} +static int xgbe_write_rss_reg (struct xgbe_prv_data *pdata,unsigned int type,unsigned int index,unsigned int val) {
@@ -3545,8 +3557,12 @@ static int xgbe_init(struct xgbe_prv_data *pdata)xgbe_config_tx_coalesce (pdata);xgbe_config_rx_buffer_size (pdata);xgbe_config_tso_mode (pdata); -xgbe_config_sph_mode (pdata); -xgbe_config_rss (pdata); + +if (pdata->netdev->features &NETIF_F_RXCSUM ) { +xgbe_config_sph_mode (pdata); +xgbe_config_rss (pdata); + } + desc_if->wrapper_tx_desc_init (pdata); desc_if->wrapper_rx_desc_init (pdata);xgbe_enable_dma_interrupts (pdata);
@@ -3702,5 +3718,9 @@ void xgbe_init_function_ptrs_dev(struct xgbe_hw_if *hw_if) hw_if->disable_vxlan = xgbe_disable_vxlan; hw_if->set_vxlan_id = xgbe_set_vxlan_id; +/* For Split Header*/ + hw_if->enable_sph = xgbe_config_sph_mode; + hw_if->disable_sph = xgbe_disable_sph_mode; +DBGPR ("<--xgbe_init_function_ptrs\n" ); }
drivers/net/ethernet/amd/xgbe/xgbe-drv.c +9 -2
@@ -2257,10 +2257,17 @@ static int xgbe_set_features(struct net_device *netdev,if (ret)return ret; -if ((features &NETIF_F_RXCSUM ) && !rxcsum) +if ((features &NETIF_F_RXCSUM ) && !rxcsum) { + hw_if->enable_sph (pdata); + hw_if->enable_vxlan (pdata); hw_if->enable_rx_csum (pdata); -else if (!(features &NETIF_F_RXCSUM ) && rxcsum) +schedule_work (&pdata->restart_work); + }else if (!(features &NETIF_F_RXCSUM ) && rxcsum) { + hw_if->disable_sph (pdata); + hw_if->disable_vxlan (pdata); hw_if->disable_rx_csum (pdata); +schedule_work (&pdata->restart_work); + }if ((features &NETIF_F_HW_VLAN_CTAG_RX ) && !rxvlan) hw_if->enable_rx_vlan_stripping (pdata);
drivers/net/ethernet/amd/xgbe/xgbe.h +4 -0
@@ -865,6 +865,10 @@ struct xgbe_hw_if {void (*enable_vxlan)(struct xgbe_prv_data *);void (*disable_vxlan)(struct xgbe_prv_data *);void (*set_vxlan_id)(struct xgbe_prv_data *); + +/* For Split Header */ +void (*enable_sph)(struct xgbe_prv_data *pdata); +void (*disable_sph)(struct xgbe_prv_data *pdata); };/* This structure represents implementation specific routines for an
drivers/net/ethernet/broadcom/bnxt/bnxt.c +9 -9
@@ -1986,6 +1986,7 @@ static struct sk_buff *bnxt_rx_vlan(struct sk_buff *skb, u8 cmp_type, }return skb; vlan_err: +skb_mark_for_recycle (skb);dev_kfree_skb (skb);return NULL ; }
@@ -3320,6 +3321,9 @@ static void bnxt_free_tx_skbs(struct bnxt *bp) }netdev_tx_reset_queue (netdev_get_tx_queue (bp->dev, i)); } + +if (bp->ptp_cfg && !(bp->fw_cap &BNXT_FW_CAP_TX_TS_CMP )) +bnxt_ptp_free_txts_skbs (bp->ptp_cfg); }static void bnxt_free_one_rx_ring (struct bnxt *bp,struct bnxt_rx_ring_info *rxr)
@@ -11076,6 +11080,9 @@ static void bnxt_init_napi(struct bnxt *bp) poll_fn = bnxt_poll_p5; else if (BNXT_CHIP_TYPE_NITRO_A0(bp)) cp_nr_rings--; + + set_bit(BNXT_STATE_NAPI_DISABLED, &bp->state); +for (i =0 ; i < cp_nr_rings; i++) { bnapi = bp->bnapi[i];netif_napi_add (bp->dev, &bnapi->napi, poll_fn);
@@ -11844,13 +11851,8 @@ static int bnxt_hwrm_if_change(struct bnxt *bp, bool up)set_bit (BNXT_STATE_ABORT_ERR , &bp->state);return rc; } +/* IRQ will be initialized later in bnxt_request_irq()*/ bnxt_clear_int_mode (bp); - rc =bnxt_init_int_mode (bp); -if (rc) { -clear_bit (BNXT_STATE_FW_RESET_DET , &bp->state); -netdev_err (bp->dev,"init int mode failed\n" ); -return rc; - } } rc =bnxt_cancel_reservations (bp, fw_reset); }
@@ -12249,8 +12251,6 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)/* VF-reps may need to be re-opened after the PF is re-opened */ if (BNXT_PF (bp))bnxt_vf_reps_open (bp); -if (bp->ptp_cfg && !(bp->fw_cap &BNXT_FW_CAP_TX_TS_CMP )) -WRITE_ONCE (bp->ptp_cfg->tx_avail,BNXT_MAX_TX_TS );bnxt_ptp_init_rtc (bp, true);bnxt_ptp_cfg_tstamp_filters (bp);if (BNXT_SUPPORTS_MULTI_RSS_CTX (bp))
@@ -15421,8 +15421,8 @@ static void bnxt_remove_one(struct pci_dev *pdev)bnxt_rdma_aux_device_del (bp); -bnxt_ptp_clear (bp);unregister_netdev (dev); +bnxt_ptp_clear (bp);bnxt_rdma_aux_device_uninit (bp);
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c +15 -5
@@ -66,20 +66,30 @@ static int bnxt_hwrm_dbg_dma_data(struct bnxt *bp, void *msg, } } +if (cmn_req->req_type == +cpu_to_le16 (HWRM_DBG_COREDUMP_RETRIEVE )) + info->dest_buf_size += len; +if (info->dest_buf) {if ((info->seg_start + off + len) <=BNXT_COREDUMP_BUF_LEN (info->buf_len)) { -memcpy (info->dest_buf + off, dma_buf, len); +u16 copylen =min_t (u16, len, + info->dest_buf_size - off); + +memcpy (info->dest_buf + off, dma_buf, copylen); +if (copylen < len) +break ; }else { rc = -ENOBUFS ; +if (cmn_req->req_type == +cpu_to_le16 (HWRM_DBG_COREDUMP_LIST )) { +kfree (info->dest_buf); + info->dest_buf =NULL ; + }break ; } } -if (cmn_req->req_type == -cpu_to_le16 (HWRM_DBG_COREDUMP_RETRIEVE )) - info->dest_buf_size += len; -if (!(cmn_resp->flags &HWRM_DBG_CMN_FLAGS_MORE ))break ;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +33 -7
@@ -2041,6 +2041,17 @@ static int bnxt_get_regs_len(struct net_device *dev)return reg_len; } +#define BNXT_PCIE_32B_ENTRY (start, end) \ + { offsetof(struct pcie_ctx_hw_stats, start), \ + offsetof(struct pcie_ctx_hw_stats, end) } + +static const struct { +u16 start; +u16 end; +} bnxt_pcie_32b_entries[] = { +BNXT_PCIE_32B_ENTRY (pcie_ltssm_histogram[0 ], pcie_ltssm_histogram[3 ]), +}; +static void bnxt_get_regs (struct net_device *dev,struct ethtool_regs *regs,void *_p) {
@@ -2072,12 +2083,27 @@ static void bnxt_get_regs(struct net_device *dev, struct ethtool_regs *regs, req->pcie_stat_host_addr =cpu_to_le64 (hw_pcie_stats_addr); rc =hwrm_req_send (bp, req);if (!rc) { -__le64 *src = (__le64 *)hw_pcie_stats; -u64 *dst = (u64 *)(_p +BNXT_PXP_REG_LEN ); -int i; - -for (i =0 ; i <sizeof (*hw_pcie_stats) /sizeof (__le64); i++) - dst[i] =le64_to_cpu (src[i]); +u8 *dst = (u8 *)(_p +BNXT_PXP_REG_LEN ); +u8 *src = (u8 *)hw_pcie_stats; +int i, j; + +for (i =0 , j =0 ; i <sizeof (*hw_pcie_stats); ) { +if (i >= bnxt_pcie_32b_entries[j].start && + i <= bnxt_pcie_32b_entries[j].end) { +u32 *dst32 = (u32 *)(dst + i); + + *dst32 =le32_to_cpu (*(__le32 *)(src + i)); + i +=4 ; +if (i > bnxt_pcie_32b_entries[j].end && + j <ARRAY_SIZE (bnxt_pcie_32b_entries) -1 ) + j++; + }else { +u64 *dst64 = (u64 *)(dst + i); + + *dst64 =le64_to_cpu (*(__le64 *)(src + i)); + i +=8 ; + } + } }hwrm_req_drop (bp, req); }
@@ -4848,6 +4874,7 @@ static void bnxt_self_test(struct net_device *dev, struct ethtool_test *etest,if (!bp->num_tests || !BNXT_PF (bp))return ; +memset (buf,0 ,sizeof (u64) * bp->num_tests);if (etest->flags Ð_TEST_FL_OFFLINE &&bnxt_ulp_registered (bp->edev)) { etest->flags |=ETH_TEST_FL_FAILED ;
@@ -4855,7 +4882,6 @@ static void bnxt_self_test(struct net_device *dev, struct ethtool_test *etest,return ; } -memset (buf,0 ,sizeof (u64) * bp->num_tests);if (!netif_running (dev)) { etest->flags |=ETH_TEST_FL_FAILED ;return ;
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +21 -8
@@ -777,6 +777,27 @@ static long bnxt_ptp_ts_aux_work(struct ptp_clock_info *ptp_info)return HZ ; } +void bnxt_ptp_free_txts_skbs (struct bnxt_ptp_cfg *ptp) +{ +struct bnxt_ptp_tx_req *txts_req; +u16 cons = ptp->txts_cons; + +/* make sure ptp aux worker finished with +* possible BNXT_STATE_OPEN set +*/ +ptp_cancel_worker_sync (ptp->ptp_clock); + + ptp->tx_avail =BNXT_MAX_TX_TS ; +while (cons != ptp->txts_prod) { + txts_req = &ptp->txts_req[cons]; +if (!IS_ERR_OR_NULL (txts_req->tx_skb)) +dev_kfree_skb_any (txts_req->tx_skb); + cons =NEXT_TXTS (cons); + } + ptp->txts_cons = cons; +ptp_schedule_worker (ptp->ptp_clock,0 ); +} +int bnxt_ptp_get_txts_prod (struct bnxt_ptp_cfg *ptp,u16 *prod) {spin_lock_bh (&ptp->ptp_tx_lock);
@@ -1095,7 +1116,6 @@ int bnxt_ptp_init(struct bnxt *bp)void bnxt_ptp_clear (struct bnxt *bp) {struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; -int i;if (!ptp)return ;
@@ -1107,12 +1127,5 @@ void bnxt_ptp_clear(struct bnxt *bp)kfree (ptp->ptp_info.pin_config); ptp->ptp_info.pin_config =NULL ; -for (i =0 ; i <BNXT_MAX_TX_TS ; i++) { -if (ptp->txts_req[i].tx_skb) { -dev_kfree_skb_any (ptp->txts_req[i].tx_skb); - ptp->txts_req[i].tx_skb =NULL ; - } - } -bnxt_unmap_ptp_regs (bp); }
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h +1 -0
@@ -174,6 +174,7 @@ int bnxt_ptp_cfg_tstamp_filters(struct bnxt *bp);void bnxt_ptp_reapply_pps (struct bnxt *bp);int bnxt_hwtstamp_set (struct net_device *dev,struct ifreq *ifr);int bnxt_hwtstamp_get (struct net_device *dev,struct ifreq *ifr); +void bnxt_ptp_free_txts_skbs (struct bnxt_ptp_cfg *ptp);int bnxt_ptp_get_txts_prod (struct bnxt_ptp_cfg *ptp,u16 *prod);void bnxt_get_tx_ts_p5 (struct bnxt *bp,struct sk_buff *skb,u16 prod);int bnxt_get_rx_ts_p5 (struct bnxt *bp,u64 *ts,u32 pkt_ts);
drivers/net/ethernet/dlink/dl2k.c +1 -1
@@ -352,7 +352,7 @@ parse_eeprom (struct net_device *dev)eth_hw_addr_set (dev, psrom->mac_addr);if (np->chip_id ==CHIP_IP1000A ) { - np->led_mode = psrom->led_mode; + np->led_mode =le16_to_cpu (psrom->led_mode);return 0 ; }
drivers/net/ethernet/dlink/dl2k.h +1 -1
@@ -335,7 +335,7 @@ typedef struct t_SROM {u16 sub_system_id;/* 0x06 */ u16 pci_base_1;/* 0x08 (IP1000A only) */ u16 pci_base_2;/* 0x0a (IP1000A only) */ -u16 led_mode;/* 0x0c (IP1000A only) */ +__le16 led_mode;/* 0x0c (IP1000A only) */ u16 reserved1[9 ];/* 0x0e-0x1f */ u8 mac_addr[6 ];/* 0x20-0x25 */ u8 reserved2[10 ];/* 0x26-0x2f */
drivers/net/ethernet/freescale/fec_main.c +6 -1
@@ -714,7 +714,12 @@ static int fec_enet_txq_submit_skb(struct fec_enet_priv_tx_q *txq, txq->bd.cur = bdp;/* Trigger transmission start */ -writel (0 , txq->bd.reg_desc_active); +if (!(fep->quirks &FEC_QUIRK_ERR007885 ) || + !readl (txq->bd.reg_desc_active) || + !readl (txq->bd.reg_desc_active) || + !readl (txq->bd.reg_desc_active) || + !readl (txq->bd.reg_desc_active)) +writel (0 , txq->bd.reg_desc_active);return 0 ; }
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +1 -1
@@ -60,7 +60,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = { .name = "tm_qset", .cmd = HNAE3_DBG_CMD_TM_QSET, .dentry = HNS3_DBG_DENTRY_TM, - .buf_len = HNS3_DBG_READ_LEN, + .buf_len = HNS3_DBG_READ_LEN_1MB, .init = hns3_dbg_common_file_init, }, {
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +39 -43
147 lines not on this page · raw message
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c +7 -6
@@ -439,6 +439,13 @@ static int hclge_ptp_create_clock(struct hclge_dev *hdev) ptp->info.settime64 = hclge_ptp_settime; ptp->info.n_alarm =0 ; + +spin_lock_init (&ptp->lock); + ptp->io_base = hdev->hw.hw.io_base +HCLGE_PTP_REG_OFFSET ; + ptp->ts_cfg.rx_filter =HWTSTAMP_FILTER_NONE ; + ptp->ts_cfg.tx_type =HWTSTAMP_TX_OFF ; + hdev->ptp = ptp; + ptp->clock =ptp_clock_register (&ptp->info, &hdev->pdev->dev);if (IS_ERR (ptp->clock)) { dev_err(&hdev->pdev->dev,
@@ -450,12 +457,6 @@ static int hclge_ptp_create_clock(struct hclge_dev *hdev)return -ENODEV ; } -spin_lock_init (&ptp->lock); - ptp->io_base = hdev->hw.hw.io_base +HCLGE_PTP_REG_OFFSET ; - ptp->ts_cfg.rx_filter =HWTSTAMP_FILTER_NONE ; - ptp->ts_cfg.tx_type =HWTSTAMP_TX_OFF ; - hdev->ptp = ptp; -return 0 ; }
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +19 -6
@@ -1294,9 +1294,8 @@ static void hclgevf_sync_vlan_filter(struct hclgevf_dev *hdev)rtnl_unlock (); } -static int hclgevf_en_hw_strip_rxvtag (struct hnae3_handle *handle,bool enable) +static int hclgevf_en_hw_strip_rxvtag_cmd (struct hclgevf_dev *hdev,bool enable) { -struct hclgevf_dev *hdev =hclgevf_ae_get_hdev (handle);struct hclge_vf_to_pf_msg send_msg; hclgevf_build_send_msg(&send_msg, HCLGE_MBX_SET_VLAN,
@@ -1305,6 +1304,19 @@ static int hclgevf_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable)return hclgevf_send_mbx_msg (hdev, &send_msg, false,NULL ,0 ); } +static int hclgevf_en_hw_strip_rxvtag (struct hnae3_handle *handle,bool enable) +{ +struct hclgevf_dev *hdev =hclgevf_ae_get_hdev (handle); +int ret; + + ret =hclgevf_en_hw_strip_rxvtag_cmd (hdev, enable); +if (ret) +return ret; + + hdev->rxvtag_strip_en = enable; +return 0 ; +} +static int hclgevf_reset_tqp (struct hnae3_handle *handle) {#define HCLGEVF_RESET_ALL_QUEUE_DONE 1U
@@ -2206,12 +2218,13 @@ static int hclgevf_rss_init_hw(struct hclgevf_dev *hdev) tc_valid, tc_size); } -static int hclgevf_init_vlan_config (struct hclgevf_dev *hdev) +static int hclgevf_init_vlan_config (struct hclgevf_dev *hdev, +bool rxvtag_strip_en) {struct hnae3_handle *nic = &hdev->nic;int ret; - ret =hclgevf_en_hw_strip_rxvtag (nic, true); + ret =hclgevf_en_hw_strip_rxvtag (nic, rxvtag_strip_en);if (ret) {dev_err (&hdev->pdev->dev,"failed to enable rx vlan offload, ret = %d\n" , ret);
@@ -2881,7 +2894,7 @@ static int hclgevf_reset_hdev(struct hclgevf_dev *hdev)if (ret)return ret; - ret =hclgevf_init_vlan_config (hdev); + ret =hclgevf_init_vlan_config (hdev, hdev->rxvtag_strip_en);if (ret) {dev_err (&hdev->pdev->dev,"failed(%d) to initialize VLAN config\n" , ret);
@@ -2996,7 +3009,7 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev) goto err_config; } - ret =hclgevf_init_vlan_config (hdev); + ret =hclgevf_init_vlan_config (hdev, true);if (ret) {dev_err (&hdev->pdev->dev,"failed(%d) to initialize VLAN config\n" , ret);
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h +1 -0
@@ -253,6 +253,7 @@ struct hclgevf_dev {int *vector_irq;bool gro_en; +bool rxvtag_strip_en;unsigned long vlan_del_fail_bmap[BITS_TO_LONGS (VLAN_N_VID )];
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c +5 -0
@@ -2091,6 +2091,11 @@ int ice_vc_add_fdir_fltr(struct ice_vf *vf, u8 *msg) pf = vf->pf; dev =ice_pf_to_dev (pf);
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf.h +8 -10
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_lib.c +30 -46
76 lines not on this page · raw message
drivers/net/ethernet/intel/idpf/idpf_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_ptp.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeon_ep/octep_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/mtk_eth_soc.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/mtk_star_emac.c +7 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c +2 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c +29 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +1 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/rdma.c +6 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/rdma.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/lan743x_main.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/lan743x_main.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/rtase/rtase_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/vertexcom/mse102x.c +29 -7
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/iwl-csr.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/iwl-trans.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +20 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/internal.h +5 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +10 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/tx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/purelifi/plfxlc/mac.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/freescale/pinctrl-imx.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c +9 -4
Lines of this file are not shown. View the raw message.
drivers/ptp/ptp_ocp.c +50 -2
52 lines not on this page · raw message
include/linux/cpufreq.h +54 -29
83 lines not on this page · raw message
net/bluetooth/hci_conn.c +7 -182
189 lines not on this page · raw message
net/bluetooth/hci_sync.c +145 -5
150 lines not on this page · raw message
net/ipv4/udp_offload.c +60 -1
61 lines not on this page · 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.