Linux 6.10.11
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.10.11 kernel.
All users of the 6.10 kernel series must upgrade.
The updated 6.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.10.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/netlink/specs/mptcp_pm.yaml | 1 Makefile | 2 arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts | 2 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 36 ++ arch/powerpc/kernel/setup-common.c | 1 arch/powerpc/mm/mem.c | 2 arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 6 arch/riscv/mm/cacheflush.c | 12 arch/s390/Kconfig | 13 + arch/s390/boot/startup.c | 3 arch/x86/hyperv/hv_init.c | 5 arch/x86/include/asm/mshyperv.h | 1 arch/x86/kernel/cpu/mshyperv.c | 20 + drivers/clk/sophgo/clk-cv18xx-ip.c | 2 drivers/clocksource/hyperv_timer.c | 16 + drivers/cxl/acpi.c | 40 +++ drivers/cxl/core/region.c | 23 + drivers/cxl/cxl.h | 3 drivers/cxl/cxlmem.h | 2 drivers/dma-buf/heaps/cma_heap.c | 2 drivers/firmware/qcom/qcom_qseecom_uefisecapp.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 5 drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c | 76 ++++++ drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.h | 11 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 63 ++++- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.h | 6 drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 2 drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 1 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 1 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.h | 1 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 57 ---- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.h | 7 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 1 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 3 drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 20 - drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 20 - drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_phy.c | 55 +--- drivers/gpu/drm/amd/include/atomfirmware.h | 4 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 drivers/gpu/drm/drm_syncobj.c | 17 + drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 4 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h | 2 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp102.c | 1 drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 2 drivers/gpu/drm/xe/xe_bo.c | 6 drivers/gpu/drm/xe/xe_drm_client.c | 45 +++ drivers/gpu/drm/xe/xe_gsc.c | 4 drivers/gpu/drm/xe/xe_wa.c | 10 drivers/hid/hid-asus.c | 3 drivers/hid/hid-ids.h | 3 drivers/hid/hid-multitouch.c | 33 ++ drivers/hwmon/pmbus/pmbus.h | 6 drivers/hwmon/pmbus/pmbus_core.c | 17 + drivers/input/mouse/synaptics.c | 1 drivers/input/serio/i8042-acpipnpio.h | 9 drivers/input/touchscreen/ads7846.c | 2 drivers/input/touchscreen/edt-ft5x06.c | 6 drivers/md/dm-integrity.c | 4 drivers/misc/eeprom/digsy_mtc_eeprom.c | 2 drivers/net/dsa/ocelot/felix_vsc9959.c | 11 drivers/net/ethernet/faraday/ftgmac100.h | 2 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 9 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 drivers/net/ethernet/intel/ice/ice_lib.c | 15 - drivers/net/ethernet/intel/ice/ice_switch.c | 4 drivers/net/ethernet/intel/igb/igb_main.c | 17 + drivers/net/ethernet/jme.c | 10 drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 3 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 59 +++- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 10 drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c | 4 drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c | 51 ++-- drivers/net/ethernet/mellanox/mlx5/core/main.c | 1 drivers/net/ethernet/mellanox/mlx5/core/qos.c | 7 drivers/net/ethernet/wangxun/libwx/wx_type.h | 6 drivers/net/phy/dp83822.c | 35 +- drivers/net/phy/vitesse.c | 14 - drivers/net/usb/ipheth.c | 18 - drivers/net/wireless/mediatek/mt76/mt7921/main.c | 2 drivers/perf/riscv_pmu_sbi.c | 7 drivers/pinctrl/intel/pinctrl-meteorlake.c | 1 drivers/platform/surface/surface_aggregator_registry.c | 58 ++++ drivers/platform/x86/asus-wmi.c | 16 + drivers/platform/x86/panasonic-laptop.c | 58 +++- drivers/soundwire/stream.c | 8 drivers/spi/spi-geni-qcom.c | 17 - drivers/spi/spi-nxp-fspi.c | 5 drivers/spi/spi-zynqmp-gqspi.c | 30 +- drivers/staging/media/atomisp/pci/sh_css_frac.h | 26 +- drivers/usb/typec/ucsi/ucsi.c | 44 ++- drivers/usb/typec/ucsi/ucsi.h | 1 fs/bcachefs/extents.c | 23 + fs/bcachefs/fs-io-buffered.c | 149 +++--------- fs/bcachefs/fs.c | 8 fs/bcachefs/fs.h | 7 fs/bcachefs/fsck.c | 18 + fs/btrfs/inode.c | 1 fs/nfs/delegation.c | 15 - fs/nfs/nfs4proc.c | 9 fs/nfs/pnfs.c | 5 fs/smb/client/cifsencrypt.c | 2 fs/smb/server/mgmt/share_config.c | 15 - fs/smb/server/mgmt/share_config.h | 4 fs/smb/server/mgmt/tree_connect.c | 9 fs/smb/server/mgmt/tree_connect.h | 4 fs/smb/server/smb2pdu.c | 11 fs/smb/server/smb_common.c | 9 fs/smb/server/smb_common.h | 2 include/linux/mlx5/mlx5_ifc.h | 12 include/linux/virtio_net.h | 3 kernel/cgroup/cpuset.c | 33 +- kernel/trace/trace_kprobe.c | 25 +- kernel/trace/trace_osnoise.c | 10 mm/memory.c | 27 +- net/hsr/hsr_device.c | 67 ++++- net/hsr/hsr_forward.c | 37 ++ net/hsr/hsr_framereg.c | 12 net/hsr/hsr_framereg.h | 2 net/hsr/hsr_main.h | 4 net/hsr/hsr_netlink.c | 1 net/ipv4/fou_core.c | 4 net/mptcp/pm_netlink.c | 13 - net/netfilter/nft_socket.c | 7 scripts/kconfig/merge_config.sh | 2 sound/soc/codecs/peb2466.c | 3 sound/soc/intel/common/soc-acpi-intel-lnl-match.c | 1 sound/soc/intel/common/soc-acpi-intel-mtl-match.c | 1 sound/soc/meson/axg-card.c | 3 tools/testing/selftests/bpf/prog_tests/sockmap_listen.c | 3 tools/testing/selftests/net/lib/csum.c | 16 + tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 134 files changed, 1308 insertions(+), 550 deletions(-)
Alex Deucher (1):
drm/amdgpu/atomfirmware: Silence UBSAN warning
Alexander Gordeev (1):
s390/mm: Pin identity mapping base to zero
Alexandre Ghiti (1):
drivers: perf: Fix smp_processor_id() use in preemptible code
Alison Schofield (1):
cxl: Restore XOR'd position bits during address translation
Anders Roxell (1):
scripts: kconfig: merge_config: config files: add a trailing newline
Andy Shevchenko (1):
eeprom: digsy_mtc: Fix 93xx46 driver probe failure
AngeloGioacchino Del Regno (1):
drm/mediatek: Set sensible cursor width/height values to fix crash
Anirudh Rayabharam (Microsoft) (1):
x86/hyperv: fix kexec crash due to VP assist page corruption
Arseniy Krasnov (1):
ASoC: meson: axg-card: fix 'use-after-free'
Asbjørn Sloth Tønnesen (1):
netlink: specs: mptcp: fix port endianness
Bard Liao (2):
ASoC: Intel: soc-acpi-intel-lnl-match: add missing empty item
ASoC: Intel: soc-acpi-intel-mtl-match: add missing empty item
Ben Skeggs (1):
drm/nouveau/fb: restore init() for ramgp102
Benjamin Poirier (1):
net/mlx5: Fix bridge mode operations when there are no VFs
Bert Karwatzki (1):
wifi: mt76: mt7921: fix NULL pointer access in mt7921_ipv6_addr_change
Bouke Sybren Haarsma (2):
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
drm: panel-orientation-quirks: Add quirk for Ayn Loki Max
Carolina Jubran (3):
net/mlx5: Explicitly set scheduling element and TSAR type net/mlx5: Add missing masks and QoS bit masks for scheduling elements net/mlx5: Verify support for scheduling element and TSAR type
Charlie Jenkins (1):
riscv: Disable preemption while handling PR_RISCV_CTX_SW_FENCEI_OFF
ChenXiaoSong (1):
smb/server: fix return value of smb2_open()
Christophe Leroy (1):
powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL
Cosmin Ratiu (1):
net/mlx5: Correct TASR typo into TSAR
Cruise (1):
drm/amd/display: Disable error correction if it's not supported
Dan Carpenter (1):
firmware: qcom: uefisecapp: Fix deadlock in qcuefi_acquire()
Daniele Ceraolo Spurio (2):
drm/xe: fix WA 14018094691
drm/xe: use devm instead of drmm for managed bo
David (Ming Qiang) Wu (2):
drm/amd/amdgpu: apply command submission parser for JPEG v1 drm/amd/amdgpu: apply command submission parser for JPEG v2+
David Howells (1):
cifs: Fix signature miscalculation
Dexuan Cui (1):
clocksource: hyper-v: Use lapic timer in a TDX VM without paravisor
Dmitry Savin (1):
HID: multitouch: Add support for GT7868Q
Edward Adam Davis (1):
mptcp: pm: Fix uaf in __timer_delete_sync
FUKAUMI Naoki (1):
arm64: dts: rockchip: fix PMIC interrupt pin in pinctrl for ROCK Pi E
Felix Kaechele (1):
Input: edt-ft5x06 - add support for FocalTech FT8201
Florian Westphal (1):
netfilter: nft_socket: fix sk refcount leaks
Foster Snowhill (4):
usbnet: ipheth: remove extraneous rx URB length check
usbnet: ipheth: drop RX URBs with no payload
usbnet: ipheth: do not stop RX on failing RX callback
usbnet: ipheth: fix carrier detection in modes 1 and 4
Greg Kroah-Hartman (1):
Linux 6.10.11
Han Xu (1):
spi: nxp-fspi: fix the KASAN report out-of-bounds bug
Hans de Goede (2):
platform/x86: panasonic-laptop: Fix SINF array out of bounds accesses platform/x86: panasonic-laptop: Allocate 1 entry extra in the sinf array
Heikki Krogerus (1):
usb: typec: ucsi: Fix cable registration
Ilya Bakoulin (1):
drm/amd/display: Fix FEC_READY write on DP LT
Jacky Chou (1):
net: ftgmac100: Enable TX interrupt to avoid TX timeout
Jacob Keller (1):
ice: fix accounting for filters shared by multiple VSIs
Jameson Thies (2):
usb: typec: ucsi: Always set number of alternate modes
usb: typec: ucsi: Only set number of plug altmodes after registration
Jani Nikula (1):
drm/xe/display: fix compat IS_DISPLAY_STEP() range end
Jeff Layton (1):
btrfs: update target inode's ctime on unlink
Jeongjun Park (1):
net: hsr: prevent NULL pointer dereference in hsr_proxy_announce()
Jiawen Wu (1):
net: libwx: fix number of Rx and Tx descriptors
Jinjie Ruan (2):
spi: geni-qcom: Undo runtime PM changes at driver exit time
spi: geni-qcom: Fix incorrect free_irq() sequence
Jonathan Denose (1):
Input: synaptics - enable SMBus for HP Elitebook 840 G2
Kent Overstreet (3):
bcachefs: Fix bch2_extents_match() false positive
bcachefs: Revert lockless buffered IO path
bcachefs: Don't delete open files in online fsck
Krzysztof Kozlowski (1):
soundwire: stream: Revert "soundwire: stream: fix programming slave ports for non-continous port maps"
Li Qiang (1):
clk/sophgo: Using BUG() instead of unreachable() in mmux_get_parent_id()
Linus Torvalds (1):
mm: avoid leaving partial pfn mappings around in error case
Lorenzo Stoakes (1):
minmax: reduce min/max macro expansion in atomisp driver
Lukasz Majewski (1):
net: hsr: Send supervisory frames to HSR network with ProxyNodeTable data
Luke D. Jones (2):
hid-asus: add ROG Ally X prod ID to quirk list platform/x86: asus-wmi: Add quirk for ROG Ally X
Maher Sanalla (1):
net/mlx5: Update the list of the PCI supported devices
Marek Vasut (1):
Input: ads7846 - ratelimit the spi_sync error message
Martyna Szapar-Mudlaw (1):
ice: Fix lldp packets dropping after changing the number of channels
Masami Hiramatsu (Google) (1):
tracing/kprobes: Fix build error when find_module() is not available
Matthew Auld (2):
drm/xe/client: fix deadlock in show_meminfo() drm/xe/client: add missing bo locking in show_meminfo()
Matthieu Baerts (NGI0) (1):
selftests: mptcp: join: restrict fullmesh endp on 1st sf
Maximilian Luz (5):
platform/surface: aggregator_registry: Add Support for Surface Pro 10 platform/surface: aggregator_registry: Add support for Surface Laptop Go 3 platform/surface: aggregator_registry: Add support for Surface Laptop Studio 2 platform/surface: aggregator_registry: Add fan and thermal sensor support for Surface Laptop 5 platform/surface: aggregator_registry: Add support for Surface Laptop 6
Michal Luczaj (1):
selftests/bpf: Support SOCK_STREAM in unix_inet_redir_to_connected()
Michal Schmidt (1):
ice: fix VSI lists confusion when adding VLANs
Mika Westerberg (1):
pinctrl: meteorlake: Add Arrow Lake-H/U ACPI ID
Mikulas Patocka (1):
dm-integrity: fix a race condition when accessing recalc_sector
Moon Yeounsu (1):
net: ethernet: use ip_hdrlen() instead of bit shift
Muhammad Usama Anjum (1):
fou: fix initialization of grc
Namjae Jeon (2):
ksmbd: override fsids for share path check
ksmbd: override fsids for smb2_query_info()
Naveen Mamindlapalli (1):
octeontx2-af: Modify SMQ flush sequence to drop packets
Ngai-Mint Kwan (1):
drm/xe/xe2lpm: Extend Wa_16021639441
Nikita Zhandarovich (1):
drm/i915/guc: prevent a possible int overflow in wq offsets
Patryk Biel (1):
hwmon: (pmbus) Conditionally clear individual status bits for pmbus rev >= 1.2
Pawel Dembicki (1):
net: phy: vitesse: repair vsc73xx autonegotiation
Peiyang Wang (1):
net: hns3: use correct release function during uninitialization
Quentin Schulz (2):
arm64: dts: rockchip: fix eMMC/SPI corruption when audio has been used on RK3399 Puma
arm64: dts: rockchip: override BIOS_DISABLE signal via GPIO hog on RK3399 Puma
Rob Clark (1):
drm/msm/adreno: Fix error return if missing firmware-name
Sean Anderson (3):
spi: zynqmp-gqspi: Scale timeout by data size
selftests: net: csum: Fix checksums for packets with non-zero padding
net: dpaa: Pad packets to ETH_ZLEN
Shahar Shitrit (2):
net/mlx5e: Add missing link modes to ptys2ethtool_map net/mlx5e: Add missing link mode to ptys2ext_ethtool_map
Sriram Yagnaraman (1):
igb: Always call igb_xdp_ring_update_tail() under Tx lock
Steven Rostedt (1):
tracing/osnoise: Fix build when timerlat is not enabled
Su Hui (1):
ASoC: codecs: avoid possible garbage value in peb2466_reg_read()
T.J. Mercier (2):
drm/syncobj: Fix syncobj leak in drm_syncobj_eventfd_ioctl
dma-buf: heaps: Fix off-by-one in CMA heap fault handler
Takashi Iwai (1):
Input: i8042 - add Fujitsu Lifebook E756 to i8042 quirk table
Tobias Jakobi (2):
drm/amd/display: Avoid race between dcn10_set_drr() and dc_state_destruct() drm/amd/display: Avoid race between dcn35_set_drr() and dc_state_destruct()
Tomas Paukrt (1):
net: phy: dp83822: Fix NULL pointer dereference on DP83825 devices
Trond Myklebust (2):
NFSv4: Fix clearing of layout segments in layoutreturn
NFS: Avoid unnecessary rescanning of the per-server delegation list
Waiman Long (1):
cgroup/cpuset: Eliminate unncessary sched domains rebuilds in hotplug
Willem de Bruijn (1):
net: tighten bad gso csum offset check in virtio_net_hdr
Xiaoliang Yang (1):
net: dsa: felix: ignore pending status of TAS module when it's disabled
Xingyu Wu (1):
riscv: dts: starfive: jh7110-common: Fix lower rate of CPUfreq by setting PLL0 rate to 1.5GHz
Yinjie Yao (1):
drm/amdgpu: Update kmd_fw_shared for VCN5
peng guo (1):
cxl/core: Fix incorrect vendor debug UUID define
Greg Kroah-Hartman
maintainerDocumentation/netlink/specs/mptcp_pm.yaml +0 -1
@@ -109,7 +109,6 @@ attribute-sets: - name: port type: u16 - byte-order: big-endian - name: flags type: u32
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 10 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts +1 -1
@@ -387,7 +387,7 @@ led_pin: led-pin { pmic { pmic_int_l: pmic-int-l { - rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; + rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; }; };
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +33 -3
@@ -154,6 +154,22 @@ bios-disable-hog { }; }; +&gpio3 { + /* + * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module + * eMMC and SPI flash powered-down initially (in fact it keeps the + * reset signal asserted). BIOS_DISABLE_OVERRIDE pin allows to override + * that signal so that eMMC and SPI can be used regardless of the state + * of the signal. + */ + bios-disable-override-hog { + gpios = <RK_PD5 GPIO_ACTIVE_LOW>; + gpio-hog; + line-name = "bios_disable_override"; + output-high; + }; +}; + &gmac { assigned-clocks = <&cru SCLK_RMII_SRC>; assigned-clock-parents = <&clkin_gmac>;
@@ -409,6 +425,7 @@ vdd_cpu_b: regulator@60 { &i2s0 { pinctrl-0 = <&i2s0_2ch_bus>; + pinctrl-1 = <&i2s0_2ch_bus_bclk_off>; rockchip,playback-channels = <2>; rockchip,capture-channels = <2>; status = "okay";
@@ -417,8 +434,8 @@ &i2s0 { /* * As Q7 does not specify neither a global nor a RX clock for I2S these * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO. - * Therefore we have to redefine the i2s0_2ch_bus definition to prevent - * conflicts. + * Therefore we have to redefine the i2s0_2ch_bus and i2s0_2ch_bus_bclk_off + * definitions to prevent conflicts. */ &i2s0_2ch_bus { rockchip,pins =
@@ -428,6 +445,14 @@ &i2s0_2ch_bus { <3 RK_PD7 1 &pcfg_pull_none>; }; +&i2s0_2ch_bus_bclk_off { + rockchip,pins = + <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>, + <3 RK_PD2 1 &pcfg_pull_none>, + <3 RK_PD3 1 &pcfg_pull_none>, + <3 RK_PD7 1 &pcfg_pull_none>; +}; + &io_domains { status = "okay"; bt656-supply = <&vcc_1v8>;
@@ -449,9 +474,14 @@ &pcie_clkreqn_cpm { &pinctrl { pinctrl-names = "default"; - pinctrl-0 = <&q7_thermal_pin>; + pinctrl-0 = <&q7_thermal_pin &bios_disable_override_hog_pin>; gpios { + bios_disable_override_hog_pin: bios-disable-override-hog-pin { + rockchip,pins = + <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>; + }; + q7_thermal_pin: q7-thermal-pin { rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
arch/powerpc/kernel/setup-common.c +1 -0
@@ -959,6 +959,7 @@ void __init setup_arch(char **cmdline_p)mem_topology_setup ();/* Set max_mapnr before paging_init() */ set_max_mapnr (max_pfn); + high_memory = (void *)__va (max_low_pfn *PAGE_SIZE );/* * Release secondary cpus out of their spinloops at 0x60 now that
arch/powerpc/mm/mem.c +0 -2
@@ -290,8 +290,6 @@ void __init mem_init(void)swiotlb_init (ppc_swiotlb_enable, ppc_swiotlb_flags);#endif - high_memory = (void *)__va (max_low_pfn *PAGE_SIZE ); -kasan_late_init ();memblock_free_all ();
arch/riscv/boot/dts/starfive/jh7110-common.dtsi +6 -0
@@ -354,6 +354,12 @@ spi_dev0: spi@0 { }; }; +&syscrg { + assigned-clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>, + <&pllclk JH7110_PLLCLK_PLL0_OUT>; + assigned-clock-rates = <500000000>, <1500000000>; +}; + &sysgpio { i2c0_pins: i2c0-0 { i2c-pins {
arch/riscv/mm/cacheflush.c +6 -6
@@ -158,6 +158,7 @@ void __init riscv_init_cbo_blocksizes(void)#ifdef CONFIG_SMP static void set_icache_stale_mask (void ) { +int cpu =get_cpu ();cpumask_t *mask;bool stale_cpu;
@@ -168,10 +169,11 @@ static void set_icache_stale_mask(void)* concurrently on different harts. */ mask = ¤t->mm->context.icache_stale_mask; - stale_cpu =cpumask_test_cpu (smp_processor_id (), mask); + stale_cpu =cpumask_test_cpu (cpu, mask);cpumask_setall (mask); - cpumask_assign_cpu(smp_processor_id(), mask, stale_cpu); +cpumask_assign_cpu (cpu, mask, stale_cpu); + put_cpu(); }#endif
@@ -239,14 +241,12 @@ int riscv_set_icache_flush_ctx(unsigned long ctx, unsigned long scope)case PR_RISCV_CTX_SW_FENCEI_OFF :switch (scope) {case PR_RISCV_SCOPE_PER_PROCESS : - current->mm->context.force_icache_flush = false; -set_icache_stale_mask (); + current->mm->context.force_icache_flush = false;break ;case PR_RISCV_SCOPE_PER_THREAD : - current->thread.force_icache_flush = false; -set_icache_stale_mask (); + current->thread.force_icache_flush = false;break ;default :return -EINVAL ;
arch/s390/Kconfig +13 -0
@@ -602,6 +602,19 @@ config RANDOMIZE_BASE as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals. +config RANDOMIZE_IDENTITY_BASE + bool "Randomize the address of the identity mapping base" + depends on RANDOMIZE_BASE + default DEBUG_VM + help + The identity mapping base address is pinned to zero by default. + Allow randomization of that base to expose otherwise missed + notion of physical and virtual addresses of data structures. + That does not have any impact on the base address at which the + kernel image is loaded. + + If unsure, say N + config KERNEL_IMAGE_BASE hex "Kernel image base address" range 0x100000 0x1FFFFFE0000000 if !KASAN
arch/s390/boot/startup.c +2 -1
@@ -333,7 +333,8 @@ static unsigned long setup_kernel_memory_layout(unsigned long kernel_size)BUILD_BUG_ON (MAX_DCSS_ADDR > (1UL <<MAX_PHYSMEM_BITS )); max_mappable =max (ident_map_size,MAX_DCSS_ADDR ); max_mappable =min (max_mappable, vmemmap_start); - __identity_base =round_down (vmemmap_start - max_mappable, rte_size); +if (IS_ENABLED (CONFIG_RANDOMIZE_IDENTITY_BASE )) + __identity_base =round_down (vmemmap_start - max_mappable, rte_size);return asce_limit; }
arch/x86/hyperv/hv_init.c +1 -4
@@ -35,7 +35,6 @@#include <clocksource/hyperv_timer.h> #include <linux/highmem.h> -int hyperv_init_cpuhp;u64 hv_current_partition_id = ~0ull ;EXPORT_SYMBOL_GPL (hv_current_partition_id);
@@ -607,8 +606,6 @@ void __init hyperv_init(void)register_syscore_ops (&hv_syscore_ops); - hyperv_init_cpuhp = cpuhp; -if (cpuid_ebx (HYPERV_CPUID_FEATURES ) &HV_ACCESS_PARTITION_ID )hv_get_partition_id ();
@@ -637,7 +634,7 @@ void __init hyperv_init(void) clean_guest_os_id:wrmsrl (HV_X64_MSR_GUEST_OS_ID ,0 );hv_ivm_msr_write (HV_X64_MSR_GUEST_OS_ID ,0 ); -cpuhp_remove_state (cpuhp); +cpuhp_remove_state (CPUHP_AP_HYPERV_ONLINE ); free_ghcb_page:free_percpu (hv_ghcb_pg); free_vp_assist_page:
arch/x86/include/asm/mshyperv.h +0 -1
@@ -40,7 +40,6 @@ static inline unsigned char hv_get_nmi_reason(void) }#if IS_ENABLED (CONFIG_HYPERV ) -extern int hyperv_init_cpuhp;extern bool hyperv_paravisor_present;extern void *hv_hypercall_pg;
arch/x86/kernel/cpu/mshyperv.c +17 -3
@@ -199,8 +199,8 @@ static void hv_machine_shutdown(void)* Call hv_cpu_die() on all the CPUs, otherwise later the hypervisor * corrupts the old VP Assist Pages and can crash the kexec kernel. */ -if (kexec_in_progress && hyperv_init_cpuhp >0 ) -cpuhp_remove_state (hyperv_init_cpuhp); +if (kexec_in_progress) +cpuhp_remove_state (CPUHP_AP_HYPERV_ONLINE );/* The function calls stop_other_cpus(). */ native_machine_shutdown ();
@@ -449,9 +449,23 @@ static void __init ms_hyperv_init_platform(void) ms_hyperv.hints &= ~HV_X64_APIC_ACCESS_RECOMMENDED ;if (!ms_hyperv.paravisor_present) { -/* To be supported: more work is required. */ +/* +* Mark the Hyper-V TSC page feature as disabled +* in a TDX VM without paravisor so that the +* Invariant TSC, which is a better clocksource +* anyway, is used instead. +*/ ms_hyperv.features &= ~HV_MSR_REFERENCE_TSC_AVAILABLE ; +/* +* The Invariant TSC is expected to be available +* in a TDX VM without paravisor, but if not, +* print a warning message. The slower Hyper-V MSR-based +* Ref Counter should end up being the clocksource. +*/ +if (!(ms_hyperv.features &HV_ACCESS_TSC_INVARIANT )) +pr_warn ("Hyper-V: Invariant TSC is unavailable\n" ); +/* HV_MSR_CRASH_CTL is unsupported. */ ms_hyperv.misc_features &= ~HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE ;
drivers/clk/sophgo/clk-cv18xx-ip.c +1 -1
@@ -613,7 +613,7 @@ static u8 mmux_get_parent_id(struct cv1800_clk_mmux *mmux)return i; } -unreachable (); +BUG (); }static int mmux_enable (struct clk_hw *hw)
drivers/clocksource/hyperv_timer.c +15 -1
@@ -137,7 +137,21 @@ static int hv_stimer_init(unsigned int cpu) ce->name ="Hyper-V clockevent" ; ce->features =CLOCK_EVT_FEAT_ONESHOT ; ce->cpumask =cpumask_of (cpu); - ce->rating =1000 ; + +/* +* Lower the rating of the Hyper-V timer in a TDX VM without paravisor, +* so the local APIC timer (lapic_clockevent) is the default timer in +* such a VM. The Hyper-V timer is not preferred in such a VM because +* it depends on the slow VM Reference Counter MSR (the Hyper-V TSC +* page is not enbled in such a VM because the VM uses Invariant TSC +* as a better clocksource and it's challenging to mark the Hyper-V +* TSC page shared in very early boot). +*/ +if (!ms_hyperv.paravisor_present &&hv_isolation_type_tdx ()) + ce->rating =90 ; +else + ce->rating =1000 ; + ce->set_state_shutdown = hv_ce_shutdown; ce->set_state_oneshot = hv_ce_set_oneshot; ce->set_next_event = hv_ce_set_next_event;
drivers/cxl/acpi.c +40 -0
@@ -74,6 +74,43 @@ static struct cxl_dport *cxl_hb_xor(struct cxl_root_decoder *cxlrd, int pos)return cxlrd->cxlsd.target[n]; } +static u64 cxl_xor_hpa_to_spa (struct cxl_root_decoder *cxlrd,u64 hpa) +{ +struct cxl_cxims_data *cximsd = cxlrd->platform_data; +int hbiw = cxlrd->cxlsd.nr_targets; +u64 val; +int pos; + +/* No xormaps for host bridge interleave ways of 1 or 3 */ +if (hbiw ==1 || hbiw ==3 ) +return hpa; + +/* +* For root decoders using xormaps (hbiw: 2,4,6,8,12,16) restore +* the position bit to its value before the xormap was applied at +* HPA->DPA translation. +* +* pos is the lowest set bit in an XORMAP +* val is the XORALLBITS(HPA & XORMAP) +* +* XORALLBITS: The CXL spec (3.1 Table 9-22) defines XORALLBITS +* as an operation that outputs a single bit by XORing all the +* bits in the input (hpa & xormap). Implement XORALLBITS using +* hweight64(). If the hamming weight is even the XOR of those +* bits results in val==0, if odd the XOR result is val==1. +*/ + +for (int i =0 ; i < cximsd->nr_maps; i++) { +if (!cximsd->xormaps[i]) +continue ; + pos =__ffs (cximsd->xormaps[i]); + val = (hweight64 (hpa & cximsd->xormaps[i]) &1 ); + hpa = (hpa & ~(1ULL << pos)) | (val << pos); + } + +return hpa; +} +struct cxl_cxims_context {struct device *dev;struct cxl_root_decoder *cxlrd;
@@ -434,6 +471,9 @@ static int __cxl_parse_cfmws(struct acpi_cedt_cfmws *cfmws, cxlrd->qos_class = cfmws->qtg_id; +if (cfmws->interleave_arithmetic ==ACPI_CEDT_CFMWS_ARITHMETIC_XOR ) + cxlrd->hpa_to_spa = cxl_xor_hpa_to_spa; + rc =cxl_decoder_add (cxld, target_map);if (rc)return rc;
drivers/cxl/core/region.c +14 -9
@@ -2830,20 +2830,13 @@ struct cxl_region *cxl_dpa_to_region(const struct cxl_memdev *cxlmd, u64 dpa)return ctx.cxlr; } -static bool cxl_is_hpa_in_range (u64 hpa,struct cxl_region *cxlr,int pos) +static bool cxl_is_hpa_in_chunk (u64 hpa,struct cxl_region *cxlr,int pos) {struct cxl_region_params *p = &cxlr->params;int gran = p->interleave_granularity;int ways = p->interleave_ways;u64 offset; -/* Is the hpa within this region at all */ -if (hpa < p->res->start || hpa > p->res->end) { -dev_dbg (&cxlr->dev, -"Addr trans fail: hpa 0x%llx not in region\n" , hpa); -return false; - } -/* Is the hpa in an expected chunk for its pos(-ition) */ offset = hpa - p->res->start; offset =do_div (offset, gran * ways);
@@ -2859,6 +2852,7 @@ static bool cxl_is_hpa_in_range(u64 hpa, struct cxl_region *cxlr, int pos)static u64 cxl_dpa_to_hpa (u64 dpa,struct cxl_region *cxlr,struct cxl_endpoint_decoder *cxled) { +struct cxl_root_decoder *cxlrd =to_cxl_root_decoder (cxlr->dev.parent);u64 dpa_offset, hpa_offset, bits_upper, mask_upper, hpa;struct cxl_region_params *p = &cxlr->params;int pos = cxled->pos;
@@ -2898,7 +2892,18 @@ static u64 cxl_dpa_to_hpa(u64 dpa, struct cxl_region *cxlr,/* Apply the hpa_offset to the region base address */ hpa = hpa_offset + p->res->start; -if (!cxl_is_hpa_in_range (hpa, cxlr, cxled->pos)) +/* Root decoder translation overrides typical modulo decode */ +if (cxlrd->hpa_to_spa) + hpa = cxlrd->hpa_to_spa (cxlrd, hpa); + +if (hpa < p->res->start || hpa > p->res->end) { +dev_dbg (&cxlr->dev, +"Addr trans fail: hpa 0x%llx not in region\n" , hpa); +return ULLONG_MAX ; + } + +/* Simple chunk check, by pos & gran, only applies to modulo decodes */ +if (!cxlrd->hpa_to_spa && (!cxl_is_hpa_in_chunk (hpa, cxlr, pos)))return ULLONG_MAX ;return hpa;
drivers/cxl/cxl.h +3 -0
@@ -436,12 +436,14 @@ struct cxl_switch_decoder {struct cxl_root_decoder ;typedef struct cxl_dport *(*cxl_calc_hb_fn )(struct cxl_root_decoder *cxlrd,int pos); +typedef u64 (*cxl_hpa_to_spa_fn )(struct cxl_root_decoder *cxlrd,u64 hpa);/** * struct cxl_root_decoder - Static platform CXL address decoder * @res: host / parent resource for region allocations * @region_id: region id for next region provisioning event * @calc_hb: which host bridge covers the n'th position by granularity +* @hpa_to_spa: translate CXL host-physical-address to Platform system-physical-address * @platform_data: platform specific configuration data * @range_lock: sync region autodiscovery by address range * @qos_class: QoS performance class cookie
@@ -451,6 +453,7 @@ struct cxl_root_decoder {struct resource *res;atomic_t region_id;cxl_calc_hb_fn calc_hb; +cxl_hpa_to_spa_fn hpa_to_spa;void *platform_data;struct mutex range_lock;int qos_class;
drivers/cxl/cxlmem.h +1 -1
@@ -563,7 +563,7 @@ enum cxl_opcode { 0x3b, 0x3f, 0x17)#define DEFINE_CXL_VENDOR_DEBUG_UUID \ - UUID_INIT(0xe1819d9, 0x11a9, 0x400c, 0x81, 0x1f, 0xd6, 0x07, 0x19, \ + UUID_INIT(0x5e1819d9, 0x11a9, 0x400c, 0x81, 0x1f, 0xd6, 0x07, 0x19, \ 0x40, 0x3d, 0x86)struct cxl_mbox_get_supported_logs {
drivers/dma-buf/heaps/cma_heap.c +1 -1
@@ -165,7 +165,7 @@ static vm_fault_t cma_heap_vm_fault(struct vm_fault *vmf)struct vm_area_struct *vma = vmf->vma;struct cma_heap_buffer *buffer = vma->vm_private_data; -if (vmf->pgoff > buffer->pagecount) +if (vmf->pgoff >= buffer->pagecount)return VM_FAULT_SIGBUS ;return vmf_insert_pfn (vma, vmf->address,page_to_pfn (buffer->pages[vmf->pgoff]));
drivers/firmware/qcom/qcom_qseecom_uefisecapp.c +4 -0
@@ -786,6 +786,10 @@ static int qcuefi_set_reference(struct qcuefi_client *qcuefi)static struct qcuefi_client *qcuefi_acquire (void ) {mutex_lock (&__qcuefi_lock); +if (!__qcuefi) { +mutex_unlock (&__qcuefi_lock); +return NULL ; + }return __qcuefi; }
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +4 -1
@@ -461,8 +461,11 @@ struct amdgpu_vcn5_fw_shared {struct amdgpu_fw_shared_unified_queue_struct sq;uint8_t pad1[8 ];struct amdgpu_fw_shared_fw_logging fw_log; +uint8_t pad2[20 ];struct amdgpu_fw_shared_rb_setup rb_setup; -uint8_t pad2[4 ]; +struct amdgpu_fw_shared_smu_interface_info smu_dpm_interface; +struct amdgpu_fw_shared_drm_key_wa drm_key_wa; +uint8_t pad3[9 ]; };#define VCN_BLOCK_ENCODE_DISABLE_MASK 0x80
drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c +75 -1
103 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.h +11 -0
@@ -29,4 +29,15 @@ int jpeg_v1_0_sw_init(void *handle);void jpeg_v1_0_sw_fini (void *handle);void jpeg_v1_0_start (struct amdgpu_device *adev,int mode); +#define JPEG_V1_REG_RANGE_START 0x8000 +#define JPEG_V1_REG_RANGE_END 0x803f + +#define JPEG_V1_LMI_JPEG_WRITE_64BIT_BAR_HIGH 0x8238 +#define JPEG_V1_LMI_JPEG_WRITE_64BIT_BAR_LOW 0x8239 +#define JPEG_V1_LMI_JPEG_READ_64BIT_BAR_HIGH 0x825a +#define JPEG_V1_LMI_JPEG_READ_64BIT_BAR_LOW 0x825b +#define JPEG_V1_REG_CTX_INDEX 0x8328 +#define JPEG_V1_REG_CTX_DATA 0x8329 +#define JPEG_V1_REG_SOFT_RESET 0x83a0 +#endif /*__JPEG_V1_0_H__*/
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c +62 -1
84 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.h +6 -0
@@ -45,6 +45,9 @@#define JRBC_DEC_EXTERNAL_REG_WRITE_ADDR 0x18000 +#define JPEG_REG_RANGE_START 0x4000 +#define JPEG_REG_RANGE_END 0x41c2 +void jpeg_v2_0_dec_ring_insert_start (struct amdgpu_ring *ring);void jpeg_v2_0_dec_ring_insert_end (struct amdgpu_ring *ring); void jpeg_v2_0_dec_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 seq,
@@ -57,6 +60,9 @@ void jpeg_v2_0_dec_ring_emit_vm_flush(struct amdgpu_ring *ring, unsigned vmid, uint64_t pd_addr);void jpeg_v2_0_dec_ring_emit_wreg (struct amdgpu_ring *ring,uint32_t reg,uint32_t val);void jpeg_v2_0_dec_ring_nop (struct amdgpu_ring *ring,uint32_t count); +int jpeg_v2_dec_ring_parse_cs (struct amdgpu_cs_parser *parser, +struct amdgpu_job *job, +struct amdgpu_ib *ib);extern const struct amdgpu_ip_block_version jpeg_v2_0_ip_block;
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c +2 -0
@@ -664,6 +664,7 @@ static const struct amdgpu_ring_funcs jpeg_v2_5_dec_ring_vm_funcs = { .get_rptr = jpeg_v2_5_dec_ring_get_rptr, .get_wptr = jpeg_v2_5_dec_ring_get_wptr, .set_wptr = jpeg_v2_5_dec_ring_set_wptr, + .parse_cs = jpeg_v2_dec_ring_parse_cs, .emit_frame_size =SOC15_FLUSH_GPU_TLB_NUM_WREG *6 + SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
@@ -693,6 +694,7 @@ static const struct amdgpu_ring_funcs jpeg_v2_6_dec_ring_vm_funcs = { .get_rptr = jpeg_v2_5_dec_ring_get_rptr, .get_wptr = jpeg_v2_5_dec_ring_get_wptr, .set_wptr = jpeg_v2_5_dec_ring_set_wptr, + .parse_cs = jpeg_v2_dec_ring_parse_cs, .emit_frame_size =SOC15_FLUSH_GPU_TLB_NUM_WREG *6 + SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c +1 -0
@@ -567,6 +567,7 @@ static const struct amdgpu_ring_funcs jpeg_v3_0_dec_ring_vm_funcs = { .get_rptr = jpeg_v3_0_dec_ring_get_rptr, .get_wptr = jpeg_v3_0_dec_ring_get_wptr, .set_wptr = jpeg_v3_0_dec_ring_set_wptr, + .parse_cs = jpeg_v2_dec_ring_parse_cs, .emit_frame_size =SOC15_FLUSH_GPU_TLB_NUM_WREG *6 + SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c +1 -0
@@ -729,6 +729,7 @@ static const struct amdgpu_ring_funcs jpeg_v4_0_dec_ring_vm_funcs = { .get_rptr = jpeg_v4_0_dec_ring_get_rptr, .get_wptr = jpeg_v4_0_dec_ring_get_wptr, .set_wptr = jpeg_v4_0_dec_ring_set_wptr, + .parse_cs = jpeg_v2_dec_ring_parse_cs, .emit_frame_size =SOC15_FLUSH_GPU_TLB_NUM_WREG *6 + SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.h +0 -1
@@ -32,5 +32,4 @@ enum amdgpu_jpeg_v4_0_sub_block { };extern const struct amdgpu_ip_block_version jpeg_v4_0_ip_block; -#endif /* __JPEG_V4_0_H__ */
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +2 -55
74 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.h +1 -6
@@ -46,9 +46,6 @@#define JRBC_DEC_EXTERNAL_REG_WRITE_ADDR 0x18000 -#define JPEG_REG_RANGE_START 0x4000 -#define JPEG_REG_RANGE_END 0x41c2 -extern const struct amdgpu_ip_block_version jpeg_v4_0_3_ip_block; void jpeg_v4_0_3_dec_ring_emit_ib(struct amdgpu_ring *ring,
@@ -65,7 +62,5 @@ void jpeg_v4_0_3_dec_ring_insert_end(struct amdgpu_ring *ring);void jpeg_v4_0_3_dec_ring_emit_wreg (struct amdgpu_ring *ring,uint32_t reg,uint32_t val);void jpeg_v4_0_3_dec_ring_emit_reg_wait (struct amdgpu_ring *ring,uint32_t reg,uint32_t val,uint32_t mask); -int jpeg_v4_0_3_dec_ring_parse_cs (struct amdgpu_cs_parser *parser, -struct amdgpu_job *job, -struct amdgpu_ib *ib); +#endif /* __JPEG_V4_0_3_H__ */
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c +1 -0
@@ -772,6 +772,7 @@ static const struct amdgpu_ring_funcs jpeg_v4_0_5_dec_ring_vm_funcs = { .get_rptr = jpeg_v4_0_5_dec_ring_get_rptr, .get_wptr = jpeg_v4_0_5_dec_ring_get_wptr, .set_wptr = jpeg_v4_0_5_dec_ring_set_wptr, + .parse_cs = jpeg_v2_dec_ring_parse_cs, .emit_frame_size =SOC15_FLUSH_GPU_TLB_NUM_WREG *6 + SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c +2 -1
@@ -26,6 +26,7 @@#include "amdgpu_pm.h" #include "soc15.h" #include "soc15d.h" +#include "jpeg_v2_0.h" #include "jpeg_v4_0_3.h" #include "vcn/vcn_5_0_0_offset.h"
@@ -523,7 +524,7 @@ static const struct amdgpu_ring_funcs jpeg_v5_0_0_dec_ring_vm_funcs = { .get_rptr = jpeg_v5_0_0_dec_ring_get_rptr, .get_wptr = jpeg_v5_0_0_dec_ring_get_wptr, .set_wptr = jpeg_v5_0_0_dec_ring_set_wptr, - .parse_cs = jpeg_v4_0_3_dec_ring_parse_cs, + .parse_cs = jpeg_v2_dec_ring_parse_cs, .emit_frame_size =SOC15_FLUSH_GPU_TLB_NUM_WREG *6 + SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +12 -8
@@ -3223,15 +3223,19 @@ void dcn10_set_drr(struct pipe_ctx **pipe_ctx,* as well. */ for (i =0 ; i < num_pipes; i++) { -if ((pipe_ctx[i]->stream_res.tg !=NULL ) && pipe_ctx[i]->stream_res.tg->funcs) { -if (pipe_ctx[i]->stream_res.tg->funcs->set_drr) - pipe_ctx[i]->stream_res.tg->funcs->set_drr ( - pipe_ctx[i]->stream_res.tg, ¶ms); +/* dc_state_destruct() might null the stream resources, so fetch tg +* here first to avoid a race condition. The lifetime of the pointee +* itself (the timing_generator object) is not a problem here. +*/ +struct timing_generator *tg = pipe_ctx[i]->stream_res.tg; + +if ((tg !=NULL ) && tg->funcs) { +if (tg->funcs->set_drr) + tg->funcs->set_drr (tg, ¶ms);if (adjust.v_total_max !=0 && adjust.v_total_min !=0 ) -if (pipe_ctx[i]->stream_res.tg->funcs->set_static_screen_control) - pipe_ctx[i]->stream_res.tg->funcs->set_static_screen_control ( - pipe_ctx[i]->stream_res.tg, - event_triggers, num_frames); +if (tg->funcs->set_static_screen_control) + tg->funcs->set_static_screen_control ( + tg, event_triggers, num_frames); } } }
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c +12 -8
@@ -1371,7 +1371,13 @@ void dcn35_set_drr(struct pipe_ctx **pipe_ctx, params.vertical_total_mid_frame_num = adjust.v_total_mid_frame_num;for (i =0 ; i < num_pipes; i++) { -if ((pipe_ctx[i]->stream_res.tg !=NULL ) && pipe_ctx[i]->stream_res.tg->funcs) { +/* dc_state_destruct() might null the stream resources, so fetch tg +* here first to avoid a race condition. The lifetime of the pointee +* itself (the timing_generator object) is not a problem here. +*/ +struct timing_generator *tg = pipe_ctx[i]->stream_res.tg; + +if ((tg !=NULL ) && tg->funcs) {struct dc_crtc_timing *timing = &pipe_ctx[i]->stream->timing;struct dc *dc = pipe_ctx[i]->stream->ctx->dc;
@@ -1384,14 +1390,12 @@ void dcn35_set_drr(struct pipe_ctx **pipe_ctx, num_frames =2 * (frame_rate %60 ); } } -if (pipe_ctx[i]->stream_res.tg->funcs->set_drr) - pipe_ctx[i]->stream_res.tg->funcs->set_drr ( - pipe_ctx[i]->stream_res.tg, ¶ms); +if (tg->funcs->set_drr) + tg->funcs->set_drr (tg, ¶ms);if (adjust.v_total_max !=0 && adjust.v_total_min !=0 ) -if (pipe_ctx[i]->stream_res.tg->funcs->set_static_screen_control) - pipe_ctx[i]->stream_res.tg->funcs->set_static_screen_control ( - pipe_ctx[i]->stream_res.tg, - event_triggers, num_frames); +if (tg->funcs->set_static_screen_control) + tg->funcs->set_static_screen_control ( + tg, event_triggers, num_frames); } } }
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_phy.c +24 -31
77 lines not on this page · raw message
drivers/gpu/drm/amd/include/atomfirmware.h +2 -2
@@ -1038,7 +1038,7 @@ struct display_object_info_table_v1_4uint16_t supporteddevices;uint8_t number_of_path;uint8_t reserved; -struct atom_display_object_path_v2 display_path[8 ];//the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path +struct atom_display_object_path_v2 display_path[];//the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path };struct display_object_info_table_v1_5 {
@@ -1048,7 +1048,7 @@ struct display_object_info_table_v1_5 {uint8_t reserved;// the real number of this included in the structure is calculated by using the // (whole structure size - the header size- number_of_path)/size of atom_display_object_path -struct atom_display_object_path_v3 display_path[8 ]; +struct atom_display_object_path_v3 display_path[]; };/*
drivers/gpu/drm/drm_panel_orientation_quirks.c +12 -0
@@ -208,6 +208,18 @@ static const struct dmi_system_id orientation_data[] = { DMI_MATCH(DMI_BOARD_NAME, "KUN"), }, .driver_data = (void *)&lcd1600x2560_rightside_up, + }, { /* AYN Loki Max */ + .matches = { +DMI_EXACT_MATCH (DMI_SYS_VENDOR ,"ayn" ), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Loki Max"), + }, + .driver_data = (void *)&lcd1080x1920_leftside_up, + }, { /* AYN Loki Zero */ + .matches = { +DMI_EXACT_MATCH (DMI_SYS_VENDOR ,"ayn" ), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Loki Zero"), + }, + .driver_data = (void *)&lcd1080x1920_leftside_up, }, { /* Chuwi HiBook (CWI514) */ .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
drivers/gpu/drm/drm_syncobj.c +13 -4
@@ -1464,6 +1464,7 @@ drm_syncobj_eventfd_ioctl(struct drm_device *dev, void *data,struct drm_syncobj *syncobj;struct eventfd_ctx *ev_fd_ctx;struct syncobj_eventfd_entry *entry; +int ret;if (!drm_core_check_feature (dev,DRIVER_SYNCOBJ_TIMELINE ))return -EOPNOTSUPP ;
@@ -1479,13 +1480,15 @@ drm_syncobj_eventfd_ioctl(struct drm_device *dev, void *data,return -ENOENT ; ev_fd_ctx =eventfd_ctx_fdget (args->fd); -if (IS_ERR (ev_fd_ctx)) -return PTR_ERR (ev_fd_ctx); +if (IS_ERR (ev_fd_ctx)) { + ret =PTR_ERR (ev_fd_ctx); + goto err_fdget; + } entry =kzalloc (sizeof (*entry),GFP_KERNEL );if (!entry) { -eventfd_ctx_put (ev_fd_ctx); -return -ENOMEM ; + ret = -ENOMEM ; + goto err_kzalloc; } entry->syncobj = syncobj; entry->ev_fd_ctx = ev_fd_ctx;
@@ -1496,6 +1499,12 @@ drm_syncobj_eventfd_ioctl(struct drm_device *dev, void *data,drm_syncobj_put (syncobj);return 0 ; + +err_kzalloc: +eventfd_ctx_put (ev_fd_ctx); +err_fdget: +drm_syncobj_put (syncobj); +return ret; }int
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2 -2
@@ -2842,9 +2842,9 @@ static void prepare_context_registration_info_v70(struct intel_context *ce, ce->parallel.guc.wqi_tail =0 ; ce->parallel.guc.wqi_head =0 ; - wq_desc_offset =i915_ggtt_offset (ce->state) + + wq_desc_offset = (u64 )i915_ggtt_offset (ce->state) +__get_parent_scratch_offset (ce); - wq_base_offset =i915_ggtt_offset (ce->state) + + wq_base_offset = (u64 )i915_ggtt_offset (ce->state) +__get_wq_offset (ce); info->wq_desc_lo =lower_32_bits (wq_desc_offset); info->wq_desc_hi =upper_32_bits (wq_desc_offset);
drivers/gpu/drm/mediatek/mtk_drm_drv.c +2 -2
@@ -539,8 +539,8 @@ static int mtk_drm_kms_init(struct drm_device *drm) }/* IGT will check if the cursor size is configured */ - drm->mode_config.cursor_width = drm->mode_config.max_width; - drm->mode_config.cursor_height = drm->mode_config.max_height; + drm->mode_config.cursor_width =512 ; + drm->mode_config.cursor_height =512 ;/* Use OVL device for all DMA memory allocations */ crtc =drm_crtc_from_index (drm,0 );
drivers/gpu/drm/msm/adreno/adreno_gpu.c +1 -1
@@ -99,7 +99,7 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname,* was a bad idea, and is only provided for backwards * compatibility for older targets. */ -return -ENODEV ; +return -ENOENT ; }if (IS_ERR (fw)) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.h +2 -0
@@ -46,6 +46,8 @@ u32 gm107_ram_probe_fbp(const struct nvkm_ram_func *,u32 gm200_ram_probe_fbp_amount (const struct nvkm_ram_func *,u32 ,struct nvkm_device *,int ,int *); +int gp100_ram_init (struct nvkm_ram *); +/* RAM type-specific MR calculation routines */ int nvkm_sddr2_calc (struct nvkm_ram *);int nvkm_sddr3_calc (struct nvkm_ram *);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c +1 -1
@@ -27,7 +27,7 @@#include <subdev/bios/init.h> #include <subdev/bios/rammap.h> -static int +int gp100_ram_init (struct nvkm_ram *ram) {struct nvkm_subdev *subdev = &ram->fb->subdev;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp102.c +1 -0
@@ -5,6 +5,7 @@static const struct nvkm_ram_func gp102_ram = { + .init = gp100_ram_init, };int
drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h +1 -1
@@ -96,7 +96,7 @@ static inline struct drm_i915_private *kdev_to_i915(struct device *kdev)#define HAS_GMD_ID (xe) GRAPHICS_VERx100(xe) >= 1270/* Workarounds not handled yet */ -#define IS_DISPLAY_STEP (xe, first, last) ({u8 __step = (xe)->info.step.display; first <= __step && __step <= last; }) +#define IS_DISPLAY_STEP (xe, first, last) ({u8 __step = (xe)->info.step.display; first <= __step && __step < last; })#define IS_LP (xe) (0)#define IS_GEN9_LP (xe) (0)
drivers/gpu/drm/xe/xe_bo.c +3 -3
@@ -1539,7 +1539,7 @@ struct xe_bo *xe_bo_create_from_data(struct xe_device *xe, struct xe_tile *tile,return bo; } -static void __xe_bo_unpin_map_no_vm (struct drm_device *drm,void *arg) +static void __xe_bo_unpin_map_no_vm (void *arg) {xe_bo_unpin_map_no_vm (arg); }
@@ -1554,7 +1554,7 @@ struct xe_bo *xe_managed_bo_create_pin_map(struct xe_device *xe, struct xe_tileif (IS_ERR (bo))return bo; - ret =drmm_add_action_or_reset (&xe->drm, __xe_bo_unpin_map_no_vm, bo); + ret =devm_add_action_or_reset (xe->drm.dev, __xe_bo_unpin_map_no_vm, bo);if (ret)return ERR_PTR (ret);
@@ -1602,7 +1602,7 @@ int xe_managed_bo_reinit_in_vram(struct xe_device *xe, struct xe_tile *tile, strif (IS_ERR (bo))return PTR_ERR (bo); -drmm_release_action (&xe->drm, __xe_bo_unpin_map_no_vm, *src); +devm_release_action (xe->drm.dev, __xe_bo_unpin_map_no_vm, *src); *src = bo;return 0 ;
drivers/gpu/drm/xe/xe_drm_client.c +41 -4
87 lines not on this page · raw message
drivers/gpu/drm/xe/xe_gsc.c +2 -2
@@ -256,7 +256,7 @@ static int gsc_upload_and_init(struct xe_gsc *gsc)struct xe_tile *tile =gt_to_tile (gt);int ret; -if (XE_WA (gt,14018094691 )) { +if (XE_WA (tile->primary_gt,14018094691 )) { ret =xe_force_wake_get (gt_to_fw (tile->primary_gt),XE_FORCEWAKE_ALL );/*
@@ -274,7 +274,7 @@ static int gsc_upload_and_init(struct xe_gsc *gsc) ret =gsc_upload (gsc); -if (XE_WA (gt,14018094691 )) +if (XE_WA (tile->primary_gt,14018094691 ))xe_force_wake_put (gt_to_fw (tile->primary_gt),XE_FORCEWAKE_ALL );if (ret)
drivers/gpu/drm/xe/xe_wa.c +10 -0
@@ -542,6 +542,16 @@ static const struct xe_rtp_entry_sr engine_was[] = {XE_RTP_ACTIONS (SET (HALF_SLICE_CHICKEN7 ,CLEAR_OPTIMIZATION_DISABLE )) }, +/* Xe2_LPM */ + + { XE_RTP_NAME("16021639441"), +XE_RTP_RULES (MEDIA_VERSION (2000 )), +XE_RTP_ACTIONS (SET (CSFE_CHICKEN1 (0 ), +GHWSP_CSB_REPORT_DIS | +PPHWSP_CSB_AND_TIMESTAMP_REPORT_DIS , +XE_RTP_ACTION_FLAG (ENGINE_BASE ))) + }, +/* Xe2_HPM */ { XE_RTP_NAME("16021639441"),
drivers/hid/hid-asus.c +3 -0
@@ -1248,6 +1248,9 @@ static const struct hid_device_id asus_devices[] = { {HID_USB_DEVICE (USB_VENDOR_ID_ASUSTEK ,USB_DEVICE_ID_ASUSTEK_ROG_NKEY_ALLY ), QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD }, + { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, +USB_DEVICE_ID_ASUSTEK_ROG_NKEY_ALLY_X ), + QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD }, { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK,USB_DEVICE_ID_ASUSTEK_ROG_CLAYMORE_II_KEYBOARD ), QUIRK_ROG_CLAYMORE_II_KEYBOARD },
drivers/hid/hid-ids.h +3 -0
@@ -210,6 +210,7 @@#define USB_DEVICE_ID_ASUSTEK_ROG_NKEY_KEYBOARD3 0x1a30#define USB_DEVICE_ID_ASUSTEK_ROG_Z13_LIGHTBAR 0x18c6#define USB_DEVICE_ID_ASUSTEK_ROG_NKEY_ALLY 0x1abe +#define USB_DEVICE_ID_ASUSTEK_ROG_NKEY_ALLY_X 0x1b4c#define USB_DEVICE_ID_ASUSTEK_ROG_CLAYMORE_II_KEYBOARD 0x196b#define USB_DEVICE_ID_ASUSTEK_FX503VD_KEYBOARD 0x1869
@@ -520,6 +521,8 @@#define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100#define I2C_VENDOR_ID_GOODIX 0x27c6 +#define I2C_DEVICE_ID_GOODIX_01E8 0x01e8 +#define I2C_DEVICE_ID_GOODIX_01E9 0x01e9#define I2C_DEVICE_ID_GOODIX_01F0 0x01f0#define USB_VENDOR_ID_GOODTOUCH 0x1aad
drivers/hid/hid-multitouch.c +33 -0
@@ -1441,6 +1441,30 @@ static int mt_event(struct hid_device *hid, struct hid_field *field,return 0 ; } +static __u8 *mt_report_fixup (struct hid_device *hdev,__u8 *rdesc, +unsigned int *size) +{ +if (hdev->vendor ==I2C_VENDOR_ID_GOODIX && + (hdev->product ==I2C_DEVICE_ID_GOODIX_01E8 || + hdev->product ==I2C_DEVICE_ID_GOODIX_01E9 )) { +if (rdesc[607 ] ==0x15 ) { + rdesc[607 ] =0x25 ; +dev_info ( + &hdev->dev, +"GT7868Q report descriptor fixup is applied.\n" ); + }else { +dev_info ( + &hdev->dev, +"The byte is not expected for fixing the report descriptor. \ +It's possible that the touchpad firmware is not suitable for applying the fix. \ +got: %x\n" , + rdesc[607 ]); + } + } + +return rdesc; +} +static void mt_report (struct hid_device *hid,struct hid_report *report) {struct mt_device *td =hid_get_drvdata (hid);
@@ -2035,6 +2059,14 @@ static const struct hid_device_id mt_devices[] = { MT_BT_DEVICE(USB_VENDOR_ID_FRUCTEL, USB_DEVICE_ID_GAMETEL_MT_MODE) }, +/* Goodix GT7868Q devices */ + { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU, +HID_DEVICE (BUS_I2C ,HID_GROUP_ANY ,I2C_VENDOR_ID_GOODIX , + I2C_DEVICE_ID_GOODIX_01E8) }, + { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU, +HID_DEVICE (BUS_I2C ,HID_GROUP_ANY ,I2C_VENDOR_ID_GOODIX , + I2C_DEVICE_ID_GOODIX_01E8) }, + /* GoodTouch panels */ { .driver_data = MT_CLS_NSMU, MT_USB_DEVICE(USB_VENDOR_ID_GOODTOUCH,
@@ -2270,6 +2302,7 @@ static struct hid_driver mt_driver = { .feature_mapping = mt_feature_mapping, .usage_table = mt_grabbed_usages, .event = mt_event, + .report_fixup = mt_report_fixup, .report = mt_report, .suspend = pm_ptr(mt_suspend), .reset_resume = pm_ptr(mt_reset_resume),
drivers/hwmon/pmbus/pmbus.h +6 -0
@@ -418,6 +418,12 @@ enum pmbus_sensor_classes {enum pmbus_data_format { linear =0 , ieee754, direct, vid };enum vrm_version { vr11 =0 , vr12, vr13, imvp9, amd625mv }; +/* PMBus revision identifiers */ +#define PMBUS_REV_10 0x00/* PMBus revision 1.0 */ +#define PMBUS_REV_11 0x11/* PMBus revision 1.1 */ +#define PMBUS_REV_12 0x22/* PMBus revision 1.2 */ +#define PMBUS_REV_13 0x33/* PMBus revision 1.3 */ +struct pmbus_driver_info {int pages;/* Total number of pages */ u8 phases[PMBUS_PAGES ];/* Number of phases per page */
drivers/hwmon/pmbus/pmbus_core.c +14 -3
@@ -85,6 +85,8 @@ struct pmbus_data {u32 flags;/* from platform data */ +u8 revision;/* The PMBus revision the device is compliant with */ +int exponent[PMBUS_PAGES ];/* linear mode: exponent for output voltages */
@@ -1095,9 +1097,14 @@ static int pmbus_get_boolean(struct i2c_client *client, struct pmbus_boolean *b, regval = status & mask;if (regval) { - ret =_pmbus_write_byte_data (client, page, reg, regval); -if (ret) - goto unlock; +if (data->revision >=PMBUS_REV_12 ) { + ret =_pmbus_write_byte_data (client, page, reg, regval); +if (ret) + goto unlock; + }else { +pmbus_clear_fault_page (client, page); + } + }if (s1 && s2) {s64 v1, v2;
@@ -2640,6 +2647,10 @@ static int pmbus_init_common(struct i2c_client *client, struct pmbus_data *data, data->flags |=PMBUS_WRITE_PROTECTED |PMBUS_SKIP_STATUS_CHECK ; } + ret =i2c_smbus_read_byte_data (client,PMBUS_REVISION ); +if (ret >=0 ) + data->revision = ret; +if (data->info->pages)pmbus_clear_faults (client);else
drivers/input/mouse/synaptics.c +1 -0
@@ -189,6 +189,7 @@ static const char * const smbus_pnp_ids[] = {"LEN2054" ,/* E480 */ "LEN2055" ,/* E580 */ "LEN2068" ,/* T14 Gen 1 */ +"SYN3015" ,/* HP EliteBook 840 G2 */ "SYN3052" ,/* HP EliteBook 840 G4 */ "SYN3221" ,/* HP 15-ay000 */ "SYN323d", /* HP Spectre X360 13-w013dx */
drivers/input/serio/i8042-acpipnpio.h +9 -0
@@ -627,6 +627,15 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = { }, .driver_data = (void *)(SERIO_QUIRK_NOMUX) }, + { +/* Fujitsu Lifebook E756 */ +/* https://bugzilla.suse.com/show_bug.cgi?id=1229056 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"FUJITSU" ), + DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E756"), + }, + .driver_data = (void *)(SERIO_QUIRK_NOMUX ) + }, {/* Fujitsu Lifebook E5411 */ .matches = {
drivers/input/touchscreen/ads7846.c +1 -1
@@ -805,7 +805,7 @@ static void ads7846_read_state(struct ads7846 *ts) m = &ts->msg[msg_idx]; error =spi_sync (ts->spi, m);if (error) { -dev_err (&ts->spi->dev,"spi_sync --> %d\n" , error); +dev_err_ratelimited (&ts->spi->dev,"spi_sync --> %d\n" , error); packet->ignore = true;return ; }
drivers/input/touchscreen/edt-ft5x06.c +6 -0
@@ -1474,6 +1474,10 @@ static const struct edt_i2c_chip_data edt_ft6236_data = { .max_support_points = 2, }; +static const struct edt_i2c_chip_data edt_ft8201_data = { + .max_support_points =10 , +}; +static const struct edt_i2c_chip_data edt_ft8719_data = { .max_support_points =10 , };
@@ -1485,6 +1489,7 @@ static const struct i2c_device_id edt_ft5x06_ts_id[] = { { .name = "ft5452", .driver_data = (long)&edt_ft5452_data }, /* Note no edt- prefix for compatibility with the ft6236.c driver */ { .name = "ft6236", .driver_data = (long)&edt_ft6236_data }, + { .name = "ft8201", .driver_data = (long)&edt_ft8201_data }, { .name = "ft8719", .driver_data = (long)&edt_ft8719_data }, {/* sentinel */ } };
@@ -1499,6 +1504,7 @@ static const struct of_device_id edt_ft5x06_of_match[] = { { .compatible = "focaltech,ft5452", .data = &edt_ft5452_data }, /* Note focaltech vendor prefix for compatibility with ft6236.c */ { .compatible = "focaltech,ft6236", .data = &edt_ft6236_data }, + { .compatible = "focaltech,ft8201", .data = &edt_ft8201_data }, { .compatible = "focaltech,ft8719", .data = &edt_ft8719_data }, {/* sentinel */ } };
drivers/md/dm-integrity.c +3 -1
@@ -2173,6 +2173,7 @@ static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_mapstruct bio *bio =dm_bio_from_per_bio_data (dio,sizeof (struct dm_integrity_io ));unsigned int journal_section, journal_entry;unsigned int journal_read_pos; +sector_t recalc_sector;struct completion read_comp;bool discard_retried = false;bool need_sync_io = ic->internal_hash && dio->op ==REQ_OP_READ ;
@@ -2313,6 +2314,7 @@ static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_map goto lock_retry; } } + recalc_sector =le64_to_cpu (ic->sb->recalc_sector);spin_unlock_irq (&ic->endio_wait.lock);if (unlikely (journal_read_pos !=NOT_FOUND )) {
@@ -2367,7 +2369,7 @@ static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_map if (need_sync_io) { wait_for_completion_io(&read_comp); if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING) && - dio->range.logical_sector + dio->range.n_sectors > le64_to_cpu(ic->sb->recalc_sector)) + dio->range.logical_sector + dio->range.n_sectors > recalc_sector) goto skip_check; if (ic->mode == 'B') { if (!block_bitmap_op(ic, ic->recalc_bitmap, dio->range.logical_sector,
drivers/misc/eeprom/digsy_mtc_eeprom.c +1 -1
@@ -42,7 +42,7 @@ static void digsy_mtc_op_finish(void *p) }struct eeprom_93xx46_platform_data digsy_mtc_eeprom_data = { - .flags =EE_ADDR8 , + .flags =EE_ADDR8 |EE_SIZE1K , .prepare = digsy_mtc_op_prepare, .finish = digsy_mtc_op_finish, };
drivers/net/dsa/ocelot/felix_vsc9959.c +7 -4
@@ -1474,10 +1474,13 @@ static int vsc9959_qos_port_tas_set(struct ocelot *ocelot, int port,/* Hardware errata - Admin config could not be overwritten if * config is pending, need reset the TAS module */ - val =ocelot_read (ocelot,QSYS_PARAM_STATUS_REG_8 ); -if (val &QSYS_PARAM_STATUS_REG_8_CONFIG_PENDING ) { - ret = -EBUSY ; - goto err_reset_tc; + val =ocelot_read_rix (ocelot,QSYS_TAG_CONFIG , port); +if (val &QSYS_TAG_CONFIG_ENABLE ) { + val =ocelot_read (ocelot,QSYS_PARAM_STATUS_REG_8 ); +if (val &QSYS_PARAM_STATUS_REG_8_CONFIG_PENDING ) { + ret = -EBUSY ; + goto err_reset_tc; + } } ocelot_rmw_rix(ocelot,
drivers/net/ethernet/faraday/ftgmac100.h +1 -1
@@ -84,7 +84,7 @@ FTGMAC100_INT_RPKT_BUF)/* All the interrupts we care about */ -#define FTGMAC100_INT_ALL (FTGMAC100_INT_RPKT_BUF | \ +#define FTGMAC100_INT_ALL (FTGMAC100_INT_RXTX | \ FTGMAC100_INT_BAD)/*
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +8 -1
@@ -2285,12 +2285,12 @@ static netdev_tx_t dpaa_start_xmit(struct sk_buff *skb, struct net_device *net_dev) { const int queue_mapping = skb_get_queue_mapping(skb); -bool nonlinear =skb_is_nonlinear (skb);struct rtnl_link_stats64 *percpu_stats;struct dpaa_percpu_priv *percpu_priv;struct netdev_queue *txq;struct dpaa_priv *priv;struct qm_fd fd; +bool nonlinear;int offset =0 ;int err =0 ;
@@ -2300,6 +2300,13 @@ dpaa_start_xmit(struct sk_buff *skb, struct net_device *net_dev)qm_fd_clear_fd (&fd); +/* Packet data is always read as 32-bit words, so zero out any part of +* the skb which might be sent if we have to pad the packet +*/ +if (__skb_put_padto (skb,ETH_ZLEN , false)) + goto enomem; + + nonlinear =skb_is_nonlinear (skb);if (!nonlinear) {/* We're going to store the skb backpointer at the beginning * of the data buffer, so we need a privately owned skb
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +1 -1
@@ -11456,7 +11456,7 @@ static void hclge_pci_uninit(struct hclge_dev *hdev)pcim_iounmap (pdev, hdev->hw.hw.io_base);pci_free_irq_vectors (pdev); -pci_release_mem_regions (pdev); +pci_release_regions (pdev);pci_disable_device (pdev); }
drivers/net/ethernet/intel/ice/ice_lib.c +8 -7
@@ -2413,13 +2413,6 @@ void ice_vsi_decfg(struct ice_vsi *vsi)struct ice_pf *pf = vsi->back;int err; -/* The Rx rule will only exist to remove if the LLDP FW -* engine is currently stopped -*/ -if (!ice_is_safe_mode (pf) && vsi->type ==ICE_VSI_PF && - !test_bit (ICE_FLAG_FW_LLDP_AGENT , pf->flags)) -ice_cfg_sw_lldp (vsi, false, false); -ice_rm_vsi_lan_cfg (vsi->port_info, vsi->idx); err =ice_rm_vsi_rdma_cfg (vsi->port_info, vsi->idx);if (err)
@@ -2764,6 +2757,14 @@ int ice_vsi_release(struct ice_vsi *vsi)ice_rss_clean (vsi);ice_vsi_close (vsi); + +/* The Rx rule will only exist to remove if the LLDP FW +* engine is currently stopped +*/ +if (!ice_is_safe_mode (pf) && vsi->type ==ICE_VSI_PF && + !test_bit (ICE_FLAG_FW_LLDP_AGENT , pf->flags)) +ice_cfg_sw_lldp (vsi, false, false); +ice_vsi_decfg (vsi);/* retain SW VSI data structure since it is needed to unregister and
drivers/net/ethernet/intel/ice/ice_switch.c +2 -2
@@ -3219,7 +3219,7 @@ ice_add_update_vsi_list(struct ice_hw *hw,/* A rule already exists with the new VSI being added */ if (test_bit (vsi_handle, m_entry->vsi_list_info->vsi_map)) -return 0 ; +return -EEXIST ;/* Update the previously created VSI list set with * the new VSI ID passed in
@@ -3289,7 +3289,7 @@ ice_find_vsi_list_entry(struct ice_hw *hw, u8 recp_id, u16 vsi_handle, list_head = &sw->recp_list[recp_id].filt_rules;list_for_each_entry (list_itr, list_head, list_entry) { -if (list_itr->vsi_list_info) { +if (list_itr->vsi_count ==1 && list_itr->vsi_list_info) { map_info = list_itr->vsi_list_info;if (test_bit (vsi_handle, map_info->vsi_map)) { *vsi_list_id = map_info->vsi_list_id;
drivers/net/ethernet/intel/igb/igb_main.c +13 -4
@@ -33,6 +33,7 @@#include <linux/bpf_trace.h> #include <linux/pm_runtime.h> #include <linux/etherdevice.h> +#include <linux/lockdep.h> #ifdef CONFIG_IGB_DCA #include <linux/dca.h> #endif
@@ -2915,8 +2916,11 @@ static int igb_xdp(struct net_device *dev, struct netdev_bpf *xdp) } } +/* This function assumes __netif_tx_lock is held by the caller. */ static void igb_xdp_ring_update_tail (struct igb_ring *ring) { +lockdep_assert_held (&txring_txq (ring)->_xmit_lock); +/* Force memory writes to complete before letting h/w know there * are new descriptors to fetch. */
@@ -3001,11 +3005,11 @@ static int igb_xdp_xmit(struct net_device *dev, int n, nxmit++; } -__netif_tx_unlock (nq); -if (unlikely (flags &XDP_XMIT_FLUSH ))igb_xdp_ring_update_tail (tx_ring); +__netif_tx_unlock (nq); +return nxmit; }
@@ -8865,12 +8869,14 @@ static void igb_put_rx_buffer(struct igb_ring *rx_ring,static int igb_clean_rx_irq (struct igb_q_vector *q_vector,const int budget) { +unsigned int total_bytes =0 , total_packets =0 ;struct igb_adapter *adapter = q_vector->adapter;struct igb_ring *rx_ring = q_vector->rx.ring; -struct sk_buff *skb = rx_ring->skb; -unsigned int total_bytes =0 , total_packets =0 ;u16 cleaned_count =igb_desc_unused (rx_ring); +struct sk_buff *skb = rx_ring->skb; +int cpu =smp_processor_id ();unsigned int xdp_xmit =0 ; +struct netdev_queue *nq;struct xdp_buff xdp;u32 frame_sz =0 ;int rx_buf_pgcnt;
@@ -8998,7 +9004,10 @@ static int igb_clean_rx_irq(struct igb_q_vector *q_vector, const int budget)if (xdp_xmit &IGB_XDP_TX ) {struct igb_ring *tx_ring =igb_xdp_tx_queue_mapping (adapter); + nq =txring_txq (tx_ring); +__netif_tx_lock (nq, cpu);igb_xdp_ring_update_tail (tx_ring); +__netif_tx_unlock (nq); }u64_stats_update_begin (&rx_ring->rx_syncp);
drivers/net/ethernet/jme.c +4 -6
@@ -946,15 +946,13 @@ jme_udpsum(struct sk_buff *skb)if (skb->protocol !=htons (ETH_P_IP ))return csum;skb_set_network_header (skb,ETH_HLEN ); -if ((ip_hdr (skb)->protocol !=IPPROTO_UDP ) || - (skb->len < (ETH_HLEN + - (ip_hdr (skb)->ihl <<2 ) + -sizeof (struct udphdr )))) { + +if (ip_hdr (skb)->protocol !=IPPROTO_UDP || + skb->len < (ETH_HLEN +ip_hdrlen (skb) +sizeof (struct udphdr ))) {skb_reset_network_header (skb);return csum; } -skb_set_transport_header (skb, -ETH_HLEN + (ip_hdr (skb)->ihl <<2 )); +skb_set_transport_header (skb,ETH_HLEN +ip_hdrlen (skb)); csum =udp_hdr (skb)->check;skb_reset_transport_header (skb);skb_reset_network_header (skb);
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +1 -2
@@ -318,6 +318,7 @@ struct nix_mark_format {/* smq(flush) to tl1 cir/pir info */ struct nix_smq_tree_ctx { +u16 schq;u64 cir_off;u64 cir_val;u64 pir_off;
@@ -327,8 +328,6 @@ struct nix_smq_tree_ctx {/* smq flush context */ struct nix_smq_flush_ctx {int smq; -u16 tl1_schq; -u16 tl2_schq;struct nix_smq_tree_ctx smq_tree_ctx[NIX_TXSCH_LVL_CNT ]; };
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +47 -12
117 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +10 -0
@@ -139,6 +139,10 @@ void mlx5e_build_ptys2ethtool_map(void) ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT);MLX5_BUILD_PTYS2ETHTOOL_CONFIG (MLX5E_100GBASE_LR4 , legacy, ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT); +MLX5_BUILD_PTYS2ETHTOOL_CONFIG (MLX5E_100BASE_TX , legacy, + ETHTOOL_LINK_MODE_100baseT_Full_BIT); +MLX5_BUILD_PTYS2ETHTOOL_CONFIG (MLX5E_1000BASE_T , legacy, + ETHTOOL_LINK_MODE_1000baseT_Full_BIT);MLX5_BUILD_PTYS2ETHTOOL_CONFIG (MLX5E_10GBASE_T , legacy, ETHTOOL_LINK_MODE_10000baseT_Full_BIT); MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_25GBASE_CR, legacy,
@@ -204,6 +208,12 @@ void mlx5e_build_ptys2ethtool_map(void) ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT, ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT, ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT); +MLX5_BUILD_PTYS2ETHTOOL_CONFIG (MLX5E_400GAUI_8_400GBASE_CR8 , ext, + ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT, + ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT, + ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT, + ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT, + ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT); MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_100GAUI_1_100GBASE_CR_KR, ext, ETHTOOL_LINK_MODE_100000baseKR_Full_BIT, ETHTOOL_LINK_MODE_100000baseSR_Full_BIT,
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c +2 -2
@@ -319,7 +319,7 @@ int mlx5_eswitch_set_vepa(struct mlx5_eswitch *esw, u8 setting)return -EPERM ;mutex_lock (&esw->state_lock); -if (esw->mode !=MLX5_ESWITCH_LEGACY ) { +if (esw->mode !=MLX5_ESWITCH_LEGACY || !mlx5_esw_is_fdb_created (esw)) { err = -EOPNOTSUPP ; goto out; }
@@ -339,7 +339,7 @@ int mlx5_eswitch_get_vepa(struct mlx5_eswitch *esw, u8 *setting)if (!mlx5_esw_allowed (esw))return -EPERM ; -if (esw->mode !=MLX5_ESWITCH_LEGACY ) +if (esw->mode !=MLX5_ESWITCH_LEGACY || !mlx5_esw_is_fdb_created (esw))return -EOPNOTSUPP ; *setting = esw->fdb_table.legacy.vepa_uplink_rule ?1 :0 ;
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c +31 -20
87 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/main.c +1 -0
@@ -2215,6 +2215,7 @@ static const struct pci_device_id mlx5_core_pci_table[] = { { PCI_VDEVICE(MELLANOX, 0x101f) }, /* ConnectX-6 LX */ { PCI_VDEVICE(MELLANOX, 0x1021) }, /* ConnectX-7 */ { PCI_VDEVICE(MELLANOX, 0x1023) }, /* ConnectX-8 */ + { PCI_VDEVICE(MELLANOX, 0x1025) }, /* ConnectX-9 */ { PCI_VDEVICE(MELLANOX, 0xa2d2) }, /* BlueField integrated ConnectX-5 network controller */ { PCI_VDEVICE(MELLANOX, 0xa2d3), MLX5_PCI_DEV_IS_VF}, /* BlueField integrated ConnectX-5 network controller VF */ { PCI_VDEVICE(MELLANOX, 0xa2d6) }, /* BlueField-2 integrated ConnectX-6 Dx network controller */
drivers/net/ethernet/mellanox/mlx5/core/qos.c +7 -0
@@ -28,6 +28,9 @@ int mlx5_qos_create_leaf_node(struct mlx5_core_dev *mdev, u32 parent_id, {u32 sched_ctx[MLX5_ST_SZ_DW (scheduling_context)] = {0 }; +if (!(MLX5_CAP_QOS (mdev, nic_element_type) &ELEMENT_TYPE_CAP_MASK_QUEUE_GROUP )) +return -EOPNOTSUPP ; +MLX5_SET (scheduling_context, sched_ctx, parent_element_id, parent_id);MLX5_SET (scheduling_context, sched_ctx, element_type,SCHEDULING_CONTEXT_ELEMENT_TYPE_QUEUE_GROUP );
@@ -44,6 +47,10 @@ int mlx5_qos_create_inner_node(struct mlx5_core_dev *mdev, u32 parent_id,u32 sched_ctx[MLX5_ST_SZ_DW (scheduling_context)] = {0 };void *attr; +if (!(MLX5_CAP_QOS (mdev, nic_element_type) &ELEMENT_TYPE_CAP_MASK_TSAR ) || + !(MLX5_CAP_QOS (mdev, nic_tsar_type) &TSAR_TYPE_CAP_MASK_DWRR )) +return -EOPNOTSUPP ; +MLX5_SET (scheduling_context, sched_ctx, parent_element_id, parent_id);MLX5_SET (scheduling_context, sched_ctx, element_type,SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR );
drivers/net/ethernet/wangxun/libwx/wx_type.h +3 -3
@@ -424,9 +424,9 @@ enum WX_MSCA_CMD_value {#define WX_MIN_RXD 128#define WX_MIN_TXD 128 -/* Number of Transmit and Receive Descriptors must be a multiple of 8 */ -#define WX_REQ_RX_DESCRIPTOR_MULTIPLE 8 -#define WX_REQ_TX_DESCRIPTOR_MULTIPLE 8 +/* Number of Transmit and Receive Descriptors must be a multiple of 128 */ +#define WX_REQ_RX_DESCRIPTOR_MULTIPLE 128 +#define WX_REQ_TX_DESCRIPTOR_MULTIPLE 128#define WX_MAX_JUMBO_FRAME_SIZE 9432/* max payload 9414 */ #define VMDQ_P (p) p
drivers/net/phy/dp83822.c +22 -13
@@ -271,8 +271,7 @@ static int dp83822_config_intr(struct phy_device *phydev)DP83822_ENERGY_DET_INT_EN | DP83822_LINK_QUAL_INT_EN); -/* Private data pointer is NULL on DP83825 */ -if (!dp83822 || !dp83822->fx_enabled) +if (!dp83822->fx_enabled) misr_status |=DP83822_ANEG_COMPLETE_INT_EN |DP83822_DUP_MODE_CHANGE_INT_EN |DP83822_SPEED_CHANGED_INT_EN ;
@@ -292,8 +291,7 @@ static int dp83822_config_intr(struct phy_device *phydev)DP83822_PAGE_RX_INT_EN | DP83822_EEE_ERROR_CHANGE_INT_EN); -/* Private data pointer is NULL on DP83825 */ -if (!dp83822 || !dp83822->fx_enabled) +if (!dp83822->fx_enabled) misr_status |=DP83822_ANEG_ERR_INT_EN |DP83822_WOL_PKT_INT_EN ;
@@ -691,10 +689,9 @@ static int dp83822_read_straps(struct phy_device *phydev)return 0 ; } -static int dp83822_probe (struct phy_device *phydev) +static int dp8382x_probe (struct phy_device *phydev) {struct dp83822_private *dp83822; -int ret; dp83822 =devm_kzalloc (&phydev->mdio.dev,sizeof (*dp83822),GFP_KERNEL );
@@ -703,6 +700,20 @@ static int dp83822_probe(struct phy_device *phydev) phydev->priv = dp83822; +return 0 ; +} + +static int dp83822_probe (struct phy_device *phydev) +{ +struct dp83822_private *dp83822; +int ret; + + ret =dp8382x_probe (phydev); +if (ret) +return ret; + + dp83822 = phydev->priv; + ret =dp83822_read_straps (phydev);if (ret)return ret;
@@ -717,14 +728,11 @@ static int dp83822_probe(struct phy_device *phydev)static int dp83826_probe (struct phy_device *phydev) { -struct dp83822_private *dp83822; - - dp83822 =devm_kzalloc (&phydev->mdio.dev,sizeof (*dp83822), -GFP_KERNEL ); -if (!dp83822) -return -ENOMEM ; +int ret; - phydev->priv = dp83822; + ret =dp8382x_probe (phydev); +if (ret) +return ret;dp83826_of_init (phydev);
@@ -795,6 +803,7 @@ static int dp83822_resume(struct phy_device *phydev)PHY_ID_MATCH_MODEL (_id), \ .name = (_name), \/* PHY_BASIC_FEATURES */ \ + .probe = dp8382x_probe, \ .soft_reset = dp83822_phy_reset, \ .config_init = dp8382x_config_init, \ .get_wol = dp83822_get_wol, \
drivers/net/phy/vitesse.c +0 -14
@@ -237,16 +237,6 @@ static int vsc739x_config_init(struct phy_device *phydev)return 0 ; } -static int vsc73xx_config_aneg (struct phy_device *phydev) -{ -/* The VSC73xx switches does not like to be instructed to -* do autonegotiation in any way, it prefers that you just go -* with the power-on/reset defaults. Writing some registers will -* just make autonegotiation permanently fail. -*/ -return 0 ; -} -/* This adds a skew for both TX and RX clocks, so the skew should only be * applied to "rgmii-id" interfaces. It may not work as expected * on "rgmii-txid", "rgmii-rxid" or "rgmii" interfaces.
@@ -444,7 +434,6 @@ static struct phy_driver vsc82xx_driver[] = { .phy_id_mask = 0x000ffff0, /* PHY_GBIT_FEATURES */ .config_init = vsc738x_config_init, - .config_aneg = vsc73xx_config_aneg, .read_page = vsc73xx_read_page, .write_page = vsc73xx_write_page, }, {
@@ -453,7 +442,6 @@ static struct phy_driver vsc82xx_driver[] = { .phy_id_mask = 0x000ffff0, /* PHY_GBIT_FEATURES */ .config_init = vsc738x_config_init, - .config_aneg = vsc73xx_config_aneg, .read_page = vsc73xx_read_page, .write_page = vsc73xx_write_page, }, {
@@ -462,7 +450,6 @@ static struct phy_driver vsc82xx_driver[] = { .phy_id_mask = 0x000ffff0, /* PHY_GBIT_FEATURES */ .config_init = vsc739x_config_init, - .config_aneg = vsc73xx_config_aneg, .read_page = vsc73xx_read_page, .write_page = vsc73xx_write_page, }, {
@@ -471,7 +458,6 @@ static struct phy_driver vsc82xx_driver[] = { .phy_id_mask = 0x000ffff0, /* PHY_GBIT_FEATURES */ .config_init = vsc739x_config_init, - .config_aneg = vsc73xx_config_aneg, .read_page = vsc73xx_read_page, .write_page = vsc73xx_write_page, }, {
drivers/net/usb/ipheth.c +10 -8
@@ -286,10 +286,11 @@ static void ipheth_rcvbulk_callback(struct urb *urb)return ; } -if (urb->actual_length <=IPHETH_IP_ALIGN ) { - dev->net->stats.rx_length_errors++; -return ; - } +/* iPhone may periodically send URBs with no payload +* on the "bulk in" endpoint. It is safe to ignore them. +*/ +if (urb->actual_length ==0 ) + goto rx_submit;/* RX URBs starting with 0x00 0x01 do not encapsulate Ethernet frames, * but rather are control frames. Their purpose is not documented, and
@@ -298,7 +299,8 @@ static void ipheth_rcvbulk_callback(struct urb *urb)* URB received from the bulk IN endpoint. */ if (unlikely - (((char *)urb->transfer_buffer)[0 ] ==0 && + (urb->actual_length ==4 && + ((char *)urb->transfer_buffer)[0 ] ==0 && ((char *)urb->transfer_buffer)[1 ] ==1 )) goto rx_submit;
@@ -306,7 +308,6 @@ static void ipheth_rcvbulk_callback(struct urb *urb)if (retval !=0 ) {dev_err (&dev->intf->dev,"%s: callback retval: %d\n" , __func__, retval); -return ; } rx_submit:
@@ -354,13 +355,14 @@ static int ipheth_carrier_set(struct ipheth_device *dev)0x02 ,/* index */ dev->ctrl_buf,IPHETH_CTRL_BUF_SIZE , IPHETH_CTRL_TIMEOUT); -if (retval <0 ) { +if (retval <=0 ) {dev_err (&dev->intf->dev,"%s: usb_control_msg: %d\n" , __func__, retval);return retval; } -if (dev->ctrl_buf[0 ] ==IPHETH_CARRIER_ON ) { +if ((retval ==1 && dev->ctrl_buf[0 ] ==IPHETH_CARRIER_ON ) || + (retval >=2 && dev->ctrl_buf[1 ] ==IPHETH_CARRIER_ON )) {netif_carrier_on (dev->net);if (dev->tx_urb->status != -EINPROGRESS )netif_wake_queue (dev->net);
drivers/net/wireless/mediatek/mt76/mt7921/main.c +1 -1
@@ -1182,7 +1182,7 @@ static void mt7921_ipv6_addr_change(struct ieee80211_hw *hw, struct inet6_dev *idev) {struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv; -struct mt792x_dev *dev = mvif->phy->dev; +struct mt792x_dev *dev =mt792x_hw_dev (hw);struct inet6_ifaddr *ifa;struct in6_addr ns_addrs[IEEE80211_BSS_ARP_ADDR_LIST_LEN ];struct sk_buff *skb;
drivers/perf/riscv_pmu_sbi.c +6 -1
@@ -1368,11 +1368,15 @@ static int pmu_sbi_device_probe(struct platform_device *pdev)/* SBI PMU Snapsphot is only available in SBI v2.0 */ if (sbi_v2_available) { +int cpu; + ret =pmu_sbi_snapshot_alloc (pmu);if (ret) goto out_unregister; - ret =pmu_sbi_snapshot_setup (pmu,smp_processor_id ()); + cpu =get_cpu (); + + ret =pmu_sbi_snapshot_setup (pmu, cpu);if (ret) {/* Snapshot is an optional feature. Continue if not available */ pmu_sbi_snapshot_free (pmu);
@@ -1386,6 +1390,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev)*/ static_branch_enable (&sbi_pmu_snapshot_available); } +put_cpu (); }register_sysctl ("kernel" , sbi_pmu_sysctl_table);
drivers/pinctrl/intel/pinctrl-meteorlake.c +1 -0
@@ -584,6 +584,7 @@ static const struct intel_pinctrl_soc_data mtls_soc_data = { };static const struct acpi_device_id mtl_pinctrl_acpi_match[] = { + {"INTC105E" , (kernel_ulong_t)&mtlp_soc_data }, {"INTC1083" , (kernel_ulong_t)&mtlp_soc_data }, {"INTC1082" , (kernel_ulong_t)&mtls_soc_data }, { }
drivers/platform/surface/surface_aggregator_registry.c +52 -6
101 lines not on this page · raw message
drivers/platform/x86/asus-wmi.c +15 -1
@@ -146,6 +146,20 @@ static const char * const ashs_ids[] = { "ATK4001", "ATK4002", NULL };static int throttle_thermal_policy_write (struct asus_wmi *); +static const struct dmi_system_id asus_ally_mcu_quirk[] = { + { + .matches = { +DMI_MATCH (DMI_BOARD_NAME ,"RC71L" ), + }, + }, + { + .matches = { +DMI_MATCH (DMI_BOARD_NAME ,"RC72L" ), + }, + }, + { }, +}; +static bool ashs_present (void ) {int i =0 ;
@@ -4650,7 +4664,7 @@ static int asus_wmi_add(struct platform_device *pdev) asus->dgpu_disable_available =asus_wmi_dev_is_present (asus,ASUS_WMI_DEVID_DGPU ); asus->kbd_rgb_state_available =asus_wmi_dev_is_present (asus,ASUS_WMI_DEVID_TUF_RGB_STATE ); asus->ally_mcu_usb_switch =acpi_has_method (NULL ,ASUS_USB0_PWR_EC0_CSEE ) - &&dmi_match (DMI_BOARD_NAME ,"RC71L" ); + &&dmi_check_system (asus_ally_mcu_quirk);if (asus_wmi_dev_is_present (asus,ASUS_WMI_DEVID_MINI_LED_MODE )) asus->mini_led_dev_id =ASUS_WMI_DEVID_MINI_LED_MODE ;
drivers/platform/x86/panasonic-laptop.c +47 -11
102 lines not on this page · raw message
drivers/soundwire/stream.c +4 -4
@@ -1286,18 +1286,18 @@ struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave, unsigned int port_num) {struct sdw_dpn_prop *dpn_prop; -unsigned long mask; +u8 num_ports;int i;if (direction ==SDW_DATA_DIR_TX ) { - mask = slave->prop.source_ports; + num_ports =hweight32 (slave->prop.source_ports); dpn_prop = slave->prop.src_dpn_prop; }else { - mask = slave->prop.sink_ports; + num_ports =hweight32 (slave->prop.sink_ports); dpn_prop = slave->prop.sink_dpn_prop; } -for_each_set_bit (i, &mask,32 ) { +for (i =0 ; i < num_ports; i++) {if (dpn_prop[i].num == port_num)return &dpn_prop[i]; }
drivers/spi/spi-geni-qcom.c +8 -9
@@ -1110,25 +1110,27 @@ static int spi_geni_probe(struct platform_device *pdev)spin_lock_init (&mas->lock);pm_runtime_use_autosuspend (&pdev->dev);pm_runtime_set_autosuspend_delay (&pdev->dev,250 ); -pm_runtime_enable (dev); + ret =devm_pm_runtime_enable (dev); +if (ret) +return ret;if (device_property_read_bool (&pdev->dev,"spi-slave" )) spi->target = true; ret =geni_icc_get (&mas->se,NULL );if (ret) - goto spi_geni_probe_runtime_disable; +return ret;/* Set the bus quota to a reasonable value for register access */ mas->se.icc_paths[GENI_TO_CORE ].avg_bw =Bps_to_icc (CORE_2X_50_MHZ ); mas->se.icc_paths[CPU_TO_GENI ].avg_bw =GENI_DEFAULT_BW ; ret =geni_icc_set_bw (&mas->se);if (ret) - goto spi_geni_probe_runtime_disable; +return ret; ret =spi_geni_init (mas);if (ret) - goto spi_geni_probe_runtime_disable; +return ret;/* * check the mode supported and set_cs for fifo mode only
@@ -1157,8 +1159,6 @@ static int spi_geni_probe(struct platform_device *pdev)free_irq (mas->irq, spi); spi_geni_release_dma:spi_geni_release_dma_chan (mas); -spi_geni_probe_runtime_disable: -pm_runtime_disable (dev);return ret; }
@@ -1170,10 +1170,9 @@ static void spi_geni_remove(struct platform_device *pdev)/* Unregister _before_ disabling pm_runtime() so we stop transfers */ spi_unregister_controller (spi); -spi_geni_release_dma_chan (mas); -free_irq (mas->irq, spi); -pm_runtime_disable (&pdev->dev); + +spi_geni_release_dma_chan (mas); }static int __maybe_unused spi_geni_runtime_suspend (struct device *dev)
drivers/spi/spi-nxp-fspi.c +3 -2
@@ -805,14 +805,15 @@ static void nxp_fspi_fill_txfifo(struct nxp_fspi *f,if (i < op->data.nbytes) {u32 data =0 ;int j; +int remaining = op->data.nbytes - i;/* Wait for TXFIFO empty */ ret =fspi_readl_poll_tout (f, f->iobase +FSPI_INTR ,FSPI_INTR_IPTXWE ,0 ,POLL_TOUT , true);WARN_ON (ret); -for (j =0 ; j <ALIGN (op->data.nbytes - i,4 ); j +=4 ) { -memcpy (&data, buf + i + j,4 ); +for (j =0 ; j <ALIGN (remaining,4 ); j +=4 ) { +memcpy (&data, buf + i + j,min_t (int,4 , remaining - j));fspi_writel (f, data, base +FSPI_TFDR + j); }fspi_writel (f,FSPI_INTR_IPTXWE , base +FSPI_INTR );
drivers/spi/spi-zynqmp-gqspi.c +24 -6
@@ -1033,6 +1033,18 @@ static int __maybe_unused zynqmp_runtime_resume(struct device *dev)return 0 ; } +static unsigned long zynqmp_qspi_timeout (struct zynqmp_qspi *xqspi,u8 bits, +unsigned long bytes) +{ +unsigned long timeout; + +/* Assume we are at most 2x slower than the nominal bus speed */ + timeout =mult_frac (bytes,2 *8 *MSEC_PER_SEC , + bits * xqspi->speed_hz); +/* And add 100 ms for scheduling delays */ +return msecs_to_jiffies (timeout +100 ); +} +/** * zynqmp_qspi_exec_op() - Initiates the QSPI transfer * @mem: The SPI memory
@@ -1049,6 +1061,7 @@ static int zynqmp_qspi_exec_op(struct spi_mem *mem, {struct zynqmp_qspi *xqspi =spi_controller_get_devdata (mem->spi->controller); +unsigned long timeout;int err =0 , i;u32 genfifoentry =0 ;u16 opcode = op->cmd.opcode;
@@ -1077,8 +1090,10 @@ static int zynqmp_qspi_exec_op(struct spi_mem *mem,zynqmp_gqspi_write (xqspi,GQSPI_IER_OFST ,GQSPI_IER_GENFIFOEMPTY_MASK |GQSPI_IER_TXNOT_FULL_MASK ); -if (!wait_for_completion_timeout - (&xqspi->data_completion,msecs_to_jiffies (1000 ))) { + timeout =zynqmp_qspi_timeout (xqspi, op->cmd.buswidth, + op->cmd.nbytes); +if (!wait_for_completion_timeout (&xqspi->data_completion, + timeout)) { err = -ETIMEDOUT ; goto return_err; }
@@ -1104,8 +1119,10 @@ static int zynqmp_qspi_exec_op(struct spi_mem *mem,GQSPI_IER_TXEMPTY_MASK |GQSPI_IER_GENFIFOEMPTY_MASK | GQSPI_IER_TXNOT_FULL_MASK); -if (!wait_for_completion_timeout - (&xqspi->data_completion,msecs_to_jiffies (1000 ))) { + timeout =zynqmp_qspi_timeout (xqspi, op->addr.buswidth, + op->addr.nbytes); +if (!wait_for_completion_timeout (&xqspi->data_completion, + timeout)) { err = -ETIMEDOUT ; goto return_err; }
@@ -1173,8 +1190,9 @@ static int zynqmp_qspi_exec_op(struct spi_mem *mem, GQSPI_IER_RXEMPTY_MASK); } } -if (!wait_for_completion_timeout - (&xqspi->data_completion,msecs_to_jiffies (1000 ))) + timeout =zynqmp_qspi_timeout (xqspi, op->data.buswidth, + op->data.nbytes); +if (!wait_for_completion_timeout (&xqspi->data_completion, timeout)) err = -ETIMEDOUT ; }
drivers/staging/media/atomisp/pci/sh_css_frac.h +19 -7
@@ -30,12 +30,24 @@#define uISP_VAL_MAX ((unsigned int)((1 << uISP_REG_BIT) - 1))/* a:fraction bits for 16bit precision, b:fraction bits for ISP precision */ -#define sDIGIT_FITTING (v, a, b) \ - min_t(int, max_t(int, (((v) >> sSHIFT) >> max(sFRACTION_BITS_FITTING(a) - (b), 0)), \ - sISP_VAL_MIN), sISP_VAL_MAX) -#define uDIGIT_FITTING (v, a, b) \ - min((unsigned int)max((unsigned)(((v) >> uSHIFT) \ - >> max((int)(uFRACTION_BITS_FITTING(a) - (b)), 0)), \ - uISP_VAL_MIN), uISP_VAL_MAX) +static inline int sDIGIT_FITTING (int v,int a,int b) +{ +int fit_shift =sFRACTION_BITS_FITTING (a) - b; + + v >>= sSHIFT; + v >>= fit_shift >0 ? fit_shift :0 ; + +return clamp_t (int, v, sISP_VAL_MIN, sISP_VAL_MAX); +} + +static inline unsigned int uDIGIT_FITTING (unsigned int v,int a,int b) +{ +int fit_shift =uFRACTION_BITS_FITTING (a) - b; + + v >>= uSHIFT; + v >>= fit_shift >0 ? fit_shift :0 ; + + return clamp_t(unsigned int, v, uISP_VAL_MIN, uISP_VAL_MAX); +}#endif /* __SH_CSS_FRAC_H */
drivers/usb/typec/ucsi/ucsi.c +26 -18
83 lines not on this page · raw message
drivers/usb/typec/ucsi/ucsi.h +0 -1
@@ -444,7 +444,6 @@ struct ucsi_connector {struct ucsi_connector_status status;struct ucsi_connector_capability cap; -struct ucsi_cable_property cable_prop;struct power_supply *psy;struct power_supply_desc psy_desc;u32 rdo;
fs/bcachefs/extents.c +22 -1
@@ -932,8 +932,29 @@ bool bch2_extents_match(struct bkey_s_c k1, struct bkey_s_c k2)bkey_for_each_ptr_decode (k2.k, ptrs2, p2, entry2)if (p1.ptr.dev == p2.ptr.dev && p1.ptr.gen == p2.ptr.gen && + +/* +* This checks that the two pointers point +* to the same region on disk - adjusting +* for the difference in where the extents +* start, since one may have been trimmed: +*/ (s64 ) p1.ptr.offset + p1.crc.offset -bkey_start_offset (k1.k) == - (s64 ) p2.ptr.offset + p2.crc.offset -bkey_start_offset (k2.k)) + (s64 ) p2.ptr.offset + p2.crc.offset -bkey_start_offset (k2.k) && + +/* +* This additionally checks that the +* extents overlap on disk, since the +* previous check may trigger spuriously +* when one extent is immediately partially +* overwritten with another extent (so that +* on disk they are adjacent) and +* compression is in use: +*/ + ((p1.ptr.offset >= p2.ptr.offset && + p1.ptr.offset < p2.ptr.offset + p2.crc.compressed_size) || + (p2.ptr.offset >= p1.ptr.offset && + p2.ptr.offset < p1.ptr.offset + p1.crc.compressed_size)))return true;return false;
fs/bcachefs/fs-io-buffered.c +40 -109
204 lines not on this page · raw message
fs/bcachefs/fs.c +8 -0
@@ -177,6 +177,14 @@ static unsigned bch2_inode_hash(subvol_inum inum)return jhash_3words (inum.subvol, inum.inum >>32 , inum.inum,JHASH_INITVAL ); } +struct bch_inode_info *__bch2_inode_hash_find (struct bch_fs *c,subvol_inum inum) +{ +return to_bch_ei (ilookup5_nowait (c->vfs_sb, +bch2_inode_hash (inum), + bch2_iget5_test, + &inum)); +} +static struct bch_inode_info *bch2_inode_insert (struct bch_fs *c,struct bch_inode_info *inode) {subvol_inum inum =inode_inum (inode);
fs/bcachefs/fs.h +7 -0
@@ -56,6 +56,8 @@ static inline subvol_inum inode_inum(struct bch_inode_info *inode) }; } +struct bch_inode_info *__bch2_inode_hash_find (struct bch_fs *,subvol_inum ); +/* * Set if we've gotten a btree error for this inode, and thus the vfs inode and * btree inode may be inconsistent:
@@ -194,6 +196,11 @@ int bch2_vfs_init(void);#define bch2_inode_update_after_write (_trans, _inode, _inode_u, _fields) ({ do {} while (0); }) +static inline struct bch_inode_info *__bch2_inode_hash_find (struct bch_fs *c,subvol_inum inum) +{ +return NULL ; +} +static inline void bch2_evict_subvolume_inodes (struct bch_fs *c,snapshot_id_list *s) {}static inline void bch2_vfs_exit (void ) {}
fs/bcachefs/fsck.c +18 -0
@@ -8,6 +8,7 @@#include "darray.h" #include "dirent.h" #include "error.h" +#include "fs.h" #include "fs-common.h" #include "fsck.h" #include "inode.h"
@@ -948,6 +949,22 @@ static int check_inode_dirent_inode(struct btree_trans *trans, struct bkey_s_c ireturn ret; } +static bool bch2_inode_open (struct bch_fs *c,struct bpos p) +{ +subvol_inum inum = { + .subvol =snapshot_t (c, p.snapshot)->subvol, + .inum = p.offset, + }; + +/* snapshot tree corruption, can't safely delete */ +if (!inum.subvol) { +bch_err_ratelimited (c,"%s(): snapshot %u has no subvol" , __func__, p.snapshot); +return true; + } + +return __bch2_inode_hash_find (c, inum) !=NULL ; +} + static int check_inode(struct btree_trans *trans, struct btree_iter *iter, struct bkey_s_c k,
@@ -1025,6 +1042,7 @@ static int check_inode(struct btree_trans *trans, } if (u.bi_flags & BCH_INODE_unlinked && + !bch2_inode_open(c, k.k->p) && (!c->sb.clean || fsck_err(c, inode_unlinked_but_clean, "filesystem marked clean, but inode %llu unlinked",
fs/btrfs/inode.c +1 -0
@@ -4213,6 +4213,7 @@ static int __btrfs_unlink_inode(struct btrfs_trans_handle *trans,btrfs_i_size_write (dir, dir->vfs_inode.i_size - name->len *2 );inode_inc_iversion (&inode->vfs_inode); +inode_set_ctime_current (&inode->vfs_inode);inode_inc_iversion (&dir->vfs_inode);inode_set_mtime_to_ts (&dir->vfs_inode,inode_set_ctime_current (&dir->vfs_inode)); ret =btrfs_update_inode (trans, dir);
fs/nfs/delegation.c +5 -10
@@ -624,6 +624,9 @@ static int nfs_server_return_marked_delegations(struct nfs_server *server, prev = delegation;continue ; } + inode =nfs_delegation_grab_inode (delegation); +if (inode ==NULL ) +continue ;if (prev) {struct inode *tmp =nfs_delegation_grab_inode (prev);
@@ -634,12 +637,6 @@ static int nfs_server_return_marked_delegations(struct nfs_server *server, } } - inode =nfs_delegation_grab_inode (delegation); -if (inode ==NULL ) { -rcu_read_unlock (); -iput (to_put); - goto restart; - } delegation =nfs_start_delegation_return_locked (NFS_I (inode));rcu_read_unlock ();
@@ -1161,7 +1158,6 @@ static int nfs_server_reap_unclaimed_delegations(struct nfs_server *server,struct inode *inode; restart:rcu_read_lock (); -restart_locked:list_for_each_entry_rcu (delegation, &server->delegations, super_list) { if (test_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags) ||
@@ -1172,7 +1168,7 @@ static int nfs_server_reap_unclaimed_delegations(struct nfs_server *server,continue ; inode =nfs_delegation_grab_inode (delegation);if (inode ==NULL ) - goto restart_locked; +continue ; delegation =nfs_start_delegation_return_locked (NFS_I (inode));rcu_read_unlock ();if (delegation !=NULL ) {
@@ -1295,7 +1291,6 @@ static int nfs_server_reap_expired_delegations(struct nfs_server *server, restart:rcu_read_lock (); -restart_locked:list_for_each_entry_rcu (delegation, &server->delegations, super_list) { if (test_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags) ||
@@ -1307,7 +1302,7 @@ static int nfs_server_reap_expired_delegations(struct nfs_server *server,continue ; inode =nfs_delegation_grab_inode (delegation);if (inode ==NULL ) - goto restart_locked; +continue ;spin_lock (&delegation->lock); cred =get_cred_rcu (delegation->cred);nfs4_stateid_copy (&stateid, &delegation->stateid);
fs/nfs/nfs4proc.c +6 -3
@@ -9873,13 +9873,16 @@ static void nfs4_layoutreturn_done(struct rpc_task *task, void *calldata) fallthrough;default : task->tk_status =0 ; + lrp->res.lrs_present =0 ; fallthrough;case 0 :break ;case -NFS4ERR_DELAY : -if (nfs4_async_handle_error (task, server,NULL ,NULL ) != -EAGAIN ) -break ; - goto out_restart; +if (nfs4_async_handle_error (task, server,NULL ,NULL ) == + -EAGAIN ) + goto out_restart; + lrp->res.lrs_present =0 ; +break ; }return ; out_restart:
fs/nfs/pnfs.c +2 -3
@@ -1172,10 +1172,9 @@ void pnfs_layoutreturn_free_lsegs(struct pnfs_layout_hdr *lo,LIST_HEAD (freeme);spin_lock (&inode->i_lock); -if (!pnfs_layout_is_valid (lo) || - !nfs4_stateid_match_other (&lo->plh_stateid, arg_stateid)) +if (!nfs4_stateid_match_other (&lo->plh_stateid, arg_stateid)) goto out_unlock; -if (stateid) { +if (stateid &&pnfs_layout_is_valid (lo)) {u32 seq =be32_to_cpu (arg_stateid->seqid);pnfs_mark_matching_lsegs_invalid (lo, &freeme, range, seq);
fs/smb/client/cifsencrypt.c +1 -1
@@ -129,7 +129,7 @@ static ssize_t cifs_shash_xarray(const struct iov_iter *iter, ssize_t maxsize,for (j = foffset /PAGE_SIZE ; j < npages; j++) { len =min_t (size_t, maxsize,PAGE_SIZE - offset); p =kmap_local_page (folio_page (folio, j)); - ret =crypto_shash_update (shash, p, len); + ret =crypto_shash_update (shash, p + offset, len);kunmap_local (p);if (ret <0 )return ret;
fs/smb/server/mgmt/share_config.c +12 -3
@@ -15,6 +15,7 @@#include "share_config.h" #include "user_config.h" #include "user_session.h" +#include "../connection.h"
Lines of this file are not shown. View the raw message.
net/hsr/hsr_device.c +56 -11
67 lines not on this page · raw message
sound/soc/intel/common/soc-acpi-intel-lnl-match.c +1 -0
Lines of this file are not shown. View the raw message.
sound/soc/intel/common/soc-acpi-intel-mtl-match.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c +1 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/lib/csum.c +14 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/mptcp/mptcp_join.sh +3 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.