Linux 6.1.70
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.70 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml | 10 Makefile | 2 arch/arm/boot/dts/dra7.dtsi | 2 arch/arm/mach-omap2/id.c | 5 arch/arm64/kvm/arm.c | 2 arch/arm64/kvm/vgic/vgic-init.c | 47 +- arch/arm64/kvm/vgic/vgic-mmio-v3.c | 2 arch/arm64/kvm/vgic/vgic.h | 1 arch/riscv/include/asm/signal.h | 2 arch/s390/include/asm/fpu/api.h | 2 arch/x86/kernel/alternative.c | 2 arch/x86/net/bpf_jit_comp.c | 46 ++ arch/x86/xen/Kconfig | 1 drivers/block/loop.c | 40 + drivers/block/ublk_drv.c | 40 + drivers/bluetooth/hci_vhci.c | 10 drivers/bus/ti-sysc.c | 18 drivers/gpio/gpio-dwapb.c | 12 drivers/gpio/gpiolib-cdev.c | 16 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 1 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 3 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 12 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 3 drivers/gpu/drm/i915/display/intel_atomic.c | 193 --------- drivers/gpu/drm/i915/display/intel_atomic.h | 4 drivers/gpu/drm/i915/display/intel_display.c | 11 drivers/gpu/drm/i915/display/intel_fb.c | 10 drivers/gpu/drm/i915/display/skl_scaler.c | 257 ++++++++++++ drivers/gpu/drm/i915/display/skl_scaler.h | 10 drivers/hid/i2c-hid/i2c-hid-acpi.c | 15 drivers/i2c/busses/i2c-aspeed.c | 48 +- drivers/iio/adc/ti_am335x_adc.c | 4 drivers/iio/buffer/industrialio-triggered-buffer.c | 10 drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 4 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 4 drivers/input/keyboard/ipaq-micro-keys.c | 3 drivers/input/misc/soc_button_array.c | 5 drivers/interconnect/core.c | 3 drivers/interconnect/qcom/sm8250.c | 1 drivers/md/dm-bufio.c | 7 drivers/md/dm-integrity.c | 11 drivers/md/dm-thin-metadata.c | 58 +- drivers/md/persistent-data/dm-block-manager.c | 6 drivers/md/persistent-data/dm-block-manager.h | 1 drivers/md/persistent-data/dm-space-map.h | 3 drivers/md/persistent-data/dm-transaction-manager.c | 3 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 5 drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c | 17 drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 216 +++++----- drivers/net/ethernet/mellanox/mlx5/core/debugfs.c | 4 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c | 1 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 30 - drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 drivers/net/ethernet/micrel/ks8851.h | 3 drivers/net/ethernet/micrel/ks8851_common.c | 20 drivers/net/ethernet/micrel/ks8851_spi.c | 42 + drivers/net/ethernet/microsoft/Kconfig | 1 drivers/net/ethernet/mscc/ocelot_stats.c | 8 drivers/net/usb/ax88179_178a.c | 23 - drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 4 drivers/nvme/host/core.c | 3 drivers/pinctrl/pinctrl-at91-pio4.c | 8 drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 4 drivers/reset/core.c | 8 drivers/scsi/aacraid/aacraid.h | 1 drivers/scsi/aacraid/commsup.c | 6 drivers/scsi/aacraid/linit.c | 14 drivers/scsi/aacraid/src.c | 25 - drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 drivers/scsi/scsi_error.c | 2 drivers/thunderbolt/debugfs.c | 2 drivers/usb/serial/ftdi_sio.c | 6 drivers/usb/serial/ftdi_sio_ids.h | 6 drivers/usb/serial/option.c | 5 drivers/usb/storage/unusual_devs.h | 11 fs/afs/cell.c | 6 fs/afs/dynroot.c | 31 - fs/afs/internal.h | 2 fs/afs/volume.c | 26 + fs/btrfs/free-space-cache.c | 8 fs/btrfs/zoned.c | 26 - fs/fuse/fuse_i.h | 15 fs/fuse/inode.c | 75 +++ fs/smb/client/cifs_debug.c | 12 fs/smb/client/cifsglob.h | 3 fs/smb/client/connect.c | 7 fs/smb/client/misc.c | 4 fs/smb/client/smb2ops.c | 19 fs/smb/client/smb2pdu.c | 29 + fs/ubifs/tnc.c | 1 include/linux/bpf.h | 3 include/linux/damon.h | 3 include/linux/dm-bufio.h | 2 include/linux/kasan.h | 6 include/linux/key-type.h | 1 include/linux/mlx5/driver.h | 20 include/net/bluetooth/hci_core.h | 5 include/trace/events/9p.h | 11 kernel/bpf/arraymap.c | 58 -- kernel/trace/synth_event_gen_test.c | 11 lib/vsprintf.c | 11 mm/damon/core.c | 7 mm/kasan/report.c | 4 net/8021q/vlan_core.c | 9 net/9p/protocol.c | 17 net/bluetooth/af_bluetooth.c | 7 net/bluetooth/hci_event.c | 22 - net/bluetooth/l2cap_core.c | 21 net/bluetooth/mgmt.c | 25 - net/bluetooth/smp.c | 7 net/core/dev.c | 3 net/core/stream.c | 2 net/dns_resolver/dns_key.c | 10 net/ife/ife.c | 1 net/mac80211/cfg.c | 4 net/mac80211/mesh_plink.c | 16 net/rfkill/rfkill-gpio.c | 8 net/rose/af_rose.c | 39 + net/wireless/certs/wens.hex | 87 ++++ net/wireless/core.h | 1 net/wireless/nl80211.c | 56 +- security/keys/gc.c | 31 - security/keys/internal.h | 11 security/keys/key.c | 15 security/keys/proc.c | 2 sound/pci/hda/patch_realtek.c | 1 sound/soc/codecs/hdmi-codec.c | 12 sound/soc/fsl/fsl_sai.c | 3 sound/usb/quirks.c | 4 tools/testing/selftests/net/mptcp/mptcp_join.sh | 8 134 files changed, 1497 insertions(+), 776 deletions(-)
Alex Lu (1):
Bluetooth: Add more enc key size check
Alexander Atanasov (1):
scsi: core: Always send batch on reset or error handling command
Alexis Lothoré (1):
pinctrl: at91-pio4: use dedicated lock class for IRQ
Alper Ak (1):
USB: serial: option: add Quectel EG912Y module support
Andrew Davis (1):
ARM: dts: dra7: Fix DRA7 L3 NoC node register size
Andy Shevchenko (1):
HID: i2c-hid: acpi: Unify ACPI ID tables format
Aric Cyr (1):
Revert "drm/amd/display: Do not set DRR on pipe commit"
Arnd Bergmann (3):
kasan: disable kasan_non_canonical_hook() for HW tags
Bluetooth: hci_event: shut up a false-positive warning x86/xen: add CPU dependencies for 32-bit build
Chen-Yu Tsai (1):
wifi: cfg80211: Add my certificate
Christoffer Sandberg (1):
Input: soc_button_array - add mapping for airplane mode button
Clint Taylor (1):
drm/i915/mtl: Add MTL for remapping CCS FBs
Clément Villeret (1):
ALSA: hda/realtek: Add quirk for ASUS ROG GV302XA
David Howells (5):
afs: Fix the dynamic root's d_delete to always delete unused dentries
afs: Fix dynamic root lookup DNS check
keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
afs: Fix overwriting of result of DNS query
afs: Fix use-after-free due to get/remove race in volume tree
David Lechner (1):
iio: triggered-buffer: prevent possible freeing of wrong buffer
Dinghao Liu (1):
net/mlx5e: fix a potential double-free in fs_udp_create_groups
Edward Adam Davis (1):
wifi: mac80211: check if the existing link config remains unchanged
Eric Dumazet (3):
net: sched: ife: fix potential use-after-free net/rose: fix races in rose_kill_by_device()
net: check dev->gso_max_size in gso_features_check()
Fabio Estevam (1):
dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotp
Fedor Pchelkin (1):
net: 9p: avoid freeing uninit memory in p9pdu_vreadf
Frédéric Danis (1):
Bluetooth: L2CAP: Send reject on command corrupted request
Geert Uytterhoeven (1):
reset: Fix crash when freeing non-existent optional resets
Geliang Tang (1):
selftests: mptcp: join: fix subflow_send_ack lookup
Greg Kroah-Hartman (1):
Linux 6.1.70
Hamza Mahfooz (1):
drm/amd/display: fix hw rotated modes when PSR-SU is enabled
Haoran Liu (1):
Input: ipaq-micro-keys - add error handling for devm_kmemdup
Heiko Carstens (1):
s390/vx: fix save/restore of fpu kernel context
Heiko Stuebner (1):
RISC-V: Fix do_notify_resume / do_work_pending prototype
Herve Codina (1):
lib/vsprintf: Fix %pfwf when current node refcount == 0
Hyunwoo Kim (1):
Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg
JP Kobryn (1):
9p: prevent read overrun in protocol dump tracepoint
Javier Carrasco (1):
iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table
Jeremie Knuesel (1):
ALSA: usb-audio: Increase delay in MOTU M quirk
Jerome Brunet (1):
ASoC: hdmi-codec: fix missing report for jack initial status
Jiri Olsa (1):
bpf: Fix prog_array_map_poke_run map poke update
Johannes Berg (5):
wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lock
wifi: mac80211: mesh: check element parsing succeeded
wifi: mac80211: mesh_plink: fix matches_local logic
wifi: cfg80211: fix certs build to not depend on file order
wifi: cfg80211: fix CQM for non-range use
Jose Ignacio Tornos Martinez (1):
net: usb: ax88179_178a: avoid failed operations when device is disconnected
Kent Gibson (1):
gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()
Konrad Dybcio (1):
interconnect: qcom: sm8250: Enable sync_state
Konstantin Meskhidze (1):
ubifs: fix possible dereference after free
Krister Johansen (1):
fuse: share lookup state between submount and its parent
Kunwu Chan (1):
ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
Li Lingfeng (1):
dm thin metadata: Fix ABBA deadlock by resetting dm_bufio_client
Liu Jian (1):
net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
Luca Coelho (1):
drm/i915/mtl: limit second scaler vertical scaling in ver >= 14
Luiz Augusto von Dentz (1):
Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
Léo Lam (1):
wifi: nl80211: fix deadlock in nl80211_set_cqm_rssi (6.6.x)
Marc Zyngier (3):
KVM: arm64: vgic: Simplify kvm_vgic_destroy()
KVM: arm64: vgic: Add a non-locking primitive for kvm_vgic_vcpu_destroy()
KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
Mario Limonciello (1):
HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[]
Mark Glover (1):
USB: serial: ftdi_sio: update Actisense PIDs constant names
Martin K. Petersen (1):
Revert "scsi: aacraid: Reply queue mapping to CPUs based on IRQ affinity"
Mauricio Faria de Oliveira (2):
loop: do not enforce max_loop hard limit by (new) default
loop: deprecate autoloading callback loop_probe()
Maurizio Lombardi (1):
nvme-pci: fix sleeping function called from interrupt context
Mike Tipton (1):
interconnect: Treat xlate() returning NULL node as an error
Mikulas Patocka (1):
dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata()
Ming Lei (1):
ublk: move ublk_cancel_dev() out of ub->mutex
Moshe Shemesh (1):
net/mlx5: Fix fw tracer first block check
Nam Cao (1):
pinctrl: starfive: jh7100: ignore disabled device tree nodes
Naohiro Aota (1):
btrfs: zoned: no longer count fresh BG region as zone unusable
Paulo Alcantara (4):
smb: client: fix OOB in cifsd when receiving compounded resps
smb: client: fix potential OOB in cifs_dump_detail()
smb: client: fix OOB in SMB2_query_info_init()
smb: client: fix OOB in smbCalcSize()
Quan Nguyen (1):
i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
Rahul Rameshbabu (2):
net/mlx5e: Correct snprintf truncation handling for fw_version buffer net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors
Reinhard Speyerer (1):
USB: serial: option: add Quectel RM500Q R13 firmware support
Ronald Wahl (1):
net: ks8851: Fix TX stall caused by TX buffer overrun
Rouven Czerwinski (1):
net: rfkill: gpio: set GPIO direction
SeongJae Park (1):
mm/damon/core: make damon_start() waits until kdamond_fn() starts
Shay Drory (1):
net/mlx5: Re-organize mlx5_cmd struct
Shengjiu Wang (1):
ASoC: fsl_sai: Fix channel swap issue on i.MX8MP
Shifeng Li (2):
net/mlx5e: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list() net/mlx5e: Fix a race in command alloc flow
Shigeru Yoshida (1):
net: Return error from sk_stream_wait_connect() if sk_wait_event() fails
Slark Xiao (1):
USB: serial: option: add Foxconn T99W265 with new baseline
Steven Rostedt (Google) (1):
tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
Su Hui (1):
iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
Suman Ghosh (1):
octeontx2-pf: Fix graceful exit during PFC configuration failure
Tariq Toukan (2):
net/mlx5: Introduce and use opcode getter in command interface net/mlx5: Prevent high-rate FW commands from populating all slots
Tasos Sahanidis (1):
usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3
Thomas Gleixner (1):
x86/alternatives: Sync core before enabling interrupts
Tony Lindgren (1):
bus: ti-sysc: Flush posted write only after srst_udelay
Ville Syrjälä (5):
drm/i915: Relocate intel_atomic_setup_scalers()
drm/i915: Fix intel_atomic_setup_scalers() plane_state handling drm/i915/dpt: Only do the POT stride remap when using DPT
drm/i915: Fix ADL+ tiled plane stride when the POT stride is smaller than the original drm/i915: Reject async flips with bigjoiner
Vlad Buslov (2):
Revert "net/mlx5e: fix double free of encap_header in update funcs" Revert "net/mlx5e: fix double free of encap_header"
Vladimir Oltean (1):
net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above
Wadim Egorov (1):
iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma()
Wei Yongjun (1):
scsi: bnx2fc: Fix skb double free in bnx2fc_rcv()
Xiao Yao (1):
Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE
Yaxiong Tian (1):
thunderbolt: Fix memory leak in margining_port_remove()
Ying Hsu (1):
Bluetooth: Fix deadlock in vhci_send_frame
Yury Norov (1):
net: mana: select PAGE_POOL
Zhipeng Lu (1):
ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
xiongxin (1):
gpio: dwapb: mask/unmask IRQ when disable/enale it
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/nvmem/mxs-ocotp.yaml +6 -4
@@ -14,9 +14,11 @@ allOf: properties: compatible: - enum: - - fsl,imx23-ocotp - - fsl,imx28-ocotp + items: + - enum: + - fsl,imx23-ocotp + - fsl,imx28-ocotp + - const: fsl,ocotp "#address-cells": const: 1
@@ -40,7 +42,7 @@ additionalProperties: false examples: - | ocotp: efuse@8002c000 { - compatible = "fsl,imx28-ocotp"; + compatible = "fsl,imx28-ocotp", "fsl,ocotp"; #address-cells = <1>; #size-cells = <1>; reg = <0x8002c000 0x2000>;
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 69 +SUBLEVEL = 70 EXTRAVERSION = NAME = Curry Ramen
arch/arm/boot/dts/dra7.dtsi +1 -1
@@ -144,7 +144,7 @@ ocp: ocp { l3-noc@44000000 { compatible = "ti,dra7-l3-noc"; - reg = <0x44000000 0x1000>, + reg = <0x44000000 0x1000000>, <0x45000000 0x1000>; interrupts-extended = <&crossbar_mpu GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, <&wakeupgen GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/mach-omap2/id.c +5 -0
@@ -793,11 +793,16 @@ void __init omap_soc_device_init(void) soc_dev_attr->machine = soc_name; soc_dev_attr->family =omap_get_family (); +if (!soc_dev_attr->family) { +kfree (soc_dev_attr); +return ; + } soc_dev_attr->revision = soc_rev; soc_dev_attr->custom_attr_group = omap_soc_groups[0 ]; soc_dev =soc_device_register (soc_dev_attr);if (IS_ERR (soc_dev)) { +kfree (soc_dev_attr->family);kfree (soc_dev_attr);return ; }
arch/arm64/kvm/arm.c +1 -1
@@ -386,7 +386,7 @@ void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)kvm_mmu_free_memory_cache (&vcpu->arch.mmu_page_cache);kvm_timer_vcpu_terminate (vcpu);kvm_pmu_vcpu_destroy (vcpu); - +kvm_vgic_vcpu_destroy (vcpu);kvm_arm_vcpu_destroy (vcpu); }
arch/arm64/kvm/vgic/vgic-init.c +29 -18
90 lines not on this page · raw message
arch/arm64/kvm/vgic/vgic-mmio-v3.c +1 -1
@@ -820,7 +820,7 @@ int vgic_register_redist_iodev(struct kvm_vcpu *vcpu)return ret; } -static void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu) +void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu) {struct vgic_io_device *rd_dev = &vcpu->arch.vgic_cpu.rd_iodev;
arch/arm64/kvm/vgic/vgic.h +1 -0
@@ -229,6 +229,7 @@ int vgic_v3_lpi_sync_pending_status(struct kvm *kvm, struct vgic_irq *irq);int vgic_v3_save_pending_tables (struct kvm *kvm);int vgic_v3_set_redist_base (struct kvm *kvm,u32 index,u64 addr,u32 count);int vgic_register_redist_iodev (struct kvm_vcpu *vcpu); +void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu);bool vgic_v3_check_base (struct kvm *kvm);void vgic_v3_load (struct kvm_vcpu *vcpu);
arch/riscv/include/asm/signal.h +1 -1
@@ -7,6 +7,6 @@#include <uapi/asm/ptrace.h> asmlinkage __visible -void do_notify_resume (struct pt_regs *regs,unsigned long thread_info_flags); +void do_work_pending (struct pt_regs *regs,unsigned long thread_info_flags);#endif
arch/s390/include/asm/fpu/api.h +1 -1
@@ -79,7 +79,7 @@ static inline int test_fp_ctl(u32 fpc)#define KERNEL_VXR_HIGH (KERNEL_VXR_V16V23|KERNEL_VXR_V24V31)#define KERNEL_VXR (KERNEL_VXR_LOW|KERNEL_VXR_HIGH) -#define KERNEL_FPR (KERNEL_FPC|KERNEL_VXR_V0V7) +#define KERNEL_FPR (KERNEL_FPC|KERNEL_VXR_LOW)struct kernel_fpu ;
arch/x86/kernel/alternative.c +1 -1
@@ -1015,8 +1015,8 @@ void __init_or_module text_poke_early(void *addr, const void *opcode, }else {local_irq_save (flags);memcpy (addr, opcode, len); -local_irq_restore (flags);sync_core (); +local_irq_restore (flags);/* * Could also do a CLFLUSH here to speed up CPU recovery; but
arch/x86/net/bpf_jit_comp.c +46 -0
49 lines not on this page · raw message
arch/x86/xen/Kconfig +1 -0
@@ -9,6 +9,7 @@ config XEN select PARAVIRT_CLOCK select X86_HV_CALLBACK_VECTOR depends on X86_64 || (X86_32 && X86_PAE) + depends on X86_64 || (X86_GENERIC || MPENTIUM4 || MCORE2 || MATOM || MK8) depends on X86_LOCAL_APIC && X86_TSC help This is the Linux Xen port. Enabling this will allow the
drivers/block/loop.c +38 -2
@@ -1777,14 +1777,43 @@ static const struct block_device_operations lo_fops = {/* * If max_loop is specified, create that many devices upfront. * This also becomes a hard limit. If max_loop is not specified, +* the default isn't a hard limit (as before commit 85c50197716c +* changed the default value from 0 for max_loop=0 reasons), just * create CONFIG_BLK_DEV_LOOP_MIN_COUNT loop devices at module * init time. Loop devices can be requested on-demand with the * /dev/loop-control interface, or be instantiated by accessing * a 'dead' device node. */ static int max_loop =CONFIG_BLK_DEV_LOOP_MIN_COUNT ; -module_param (max_loop, int,0444 ); + +#ifdef CONFIG_BLOCK_LEGACY_AUTOLOAD +static bool max_loop_specified; + +static int max_loop_param_set_int (const char *val, +const struct kernel_param *kp) +{ +int ret; + + ret =param_set_int (val, kp); +if (ret <0 ) +return ret; + + max_loop_specified = true; +return 0 ; +} + +static const struct kernel_param_ops max_loop_param_ops = { + .set = max_loop_param_set_int, + .get = param_get_int, +}; + +module_param_cb (max_loop, &max_loop_param_ops, &max_loop,0444 );MODULE_PARM_DESC (max_loop,"Maximum number of loop devices" ); +#else +module_param (max_loop, int,0444 ); +MODULE_PARM_DESC (max_loop,"Initial number of loop devices" ); +#endif +module_param (max_part, int,0444 );MODULE_PARM_DESC (max_part,"Maximum number of partitions per loop device" );
@@ -2089,14 +2118,18 @@ static void loop_remove(struct loop_device *lo)put_disk (lo->lo_disk); } +#ifdef CONFIG_BLOCK_LEGACY_AUTOLOAD static void loop_probe (dev_t dev) {int idx =MINOR (dev) >> part_shift; -if (max_loop && idx >= max_loop) +if (max_loop_specified && max_loop && idx >= max_loop)return ;loop_add (idx); } +#else +#define loop_probe NULL +#endif /* !CONFIG_BLOCK_LEGACY_AUTOLOAD */ static int loop_control_remove (int idx) {
@@ -2277,6 +2310,9 @@ module_exit(loop_exit);static int __init max_loop_setup (char *str) { max_loop =simple_strtol (str,NULL ,0 ); +#ifdef CONFIG_BLOCK_LEGACY_AUTOLOAD + max_loop_specified = true; +#endif return 1 ; }
drivers/block/ublk_drv.c +23 -17
@@ -103,6 +103,9 @@ struct ublk_uring_cmd_pdu {*/ #define UBLK_IO_FLAG_NEED_GET_DATA 0x08 +/* atomic RW with ubq->cancel_lock */ +#define UBLK_IO_FLAG_CANCELED 0x80000000 +struct ublk_io {/* userspace buffer address from io cmd */ __u64 addr;
@@ -126,6 +129,7 @@ struct ublk_queue {unsigned int max_io_sz;bool force_abort;unsigned short nr_io_ready;/* how many ios setup */ +spinlock_t cancel_lock;struct ublk_device *dev;struct ublk_io ios[]; };
@@ -1045,28 +1049,28 @@ static inline bool ublk_queue_ready(struct ublk_queue *ubq)return ubq->nr_io_ready == ubq->q_depth; } -static void ublk_cmd_cancel_cb (struct io_uring_cmd *cmd,unsigned issue_flags) -{ -io_uring_cmd_done (cmd,UBLK_IO_RES_ABORT ,0 , issue_flags); -} -static void ublk_cancel_queue (struct ublk_queue *ubq) {int i; -if (!ublk_queue_ready (ubq)) -return ; -for (i =0 ; i < ubq->q_depth; i++) {struct ublk_io *io = &ubq->ios[i]; -if (io->flags &UBLK_IO_FLAG_ACTIVE ) -io_uring_cmd_complete_in_task (io->cmd, - ublk_cmd_cancel_cb); - } +if (io->flags &UBLK_IO_FLAG_ACTIVE ) { +bool done; -/* all io commands are canceled */ - ubq->nr_io_ready =0 ; +spin_lock (&ubq->cancel_lock); + done = !!(io->flags &UBLK_IO_FLAG_CANCELED ); +if (!done) + io->flags |=UBLK_IO_FLAG_CANCELED ; +spin_unlock (&ubq->cancel_lock); + +if (!done) +io_uring_cmd_done (io->cmd, +UBLK_IO_RES_ABORT ,0 , +IO_URING_F_UNLOCKED ); + } + } }/* Cancel all pending commands, must be called after del_gendisk() returns */
@@ -1113,7 +1117,6 @@ static void __ublk_quiesce_dev(struct ublk_device *ub)blk_mq_quiesce_queue (ub->ub_disk->queue);ublk_wait_tagset_rqs_idle (ub); ub->dev_info.state =UBLK_S_DEV_QUIESCED ; -ublk_cancel_dev (ub);/* we are going to release task_struct of ubq_daemon and resets * ->ubq_daemon to NULL. So in monitor_work, check on ubq_daemon causes UAF. * Besides, monitor_work is not necessary in QUIESCED state since we have
@@ -1136,6 +1139,7 @@ static void ublk_quiesce_work_fn(struct work_struct *work)__ublk_quiesce_dev (ub); unlock:mutex_unlock (&ub->mutex); +ublk_cancel_dev (ub); }static void ublk_unquiesce_dev (struct ublk_device *ub)
@@ -1175,8 +1179,8 @@ static void ublk_stop_dev(struct ublk_device *ub)put_disk (ub->ub_disk); ub->ub_disk =NULL ; unlock: -ublk_cancel_dev (ub);mutex_unlock (&ub->mutex); +ublk_cancel_dev (ub);cancel_delayed_work_sync (&ub->monitor_work); }
@@ -1353,6 +1357,7 @@ static int ublk_init_queue(struct ublk_device *ub, int q_id)void *ptr;int size; +spin_lock_init (&ubq->cancel_lock); ubq->flags = ub->dev_info.flags; ubq->q_id = q_id; ubq->q_depth = ub->dev_info.queue_depth;
@@ -1882,8 +1887,9 @@ static void ublk_queue_reinit(struct ublk_device *ub, struct ublk_queue *ubq)int i;WARN_ON_ONCE (!(ubq->ubq_daemon &&ubq_daemon_is_dying (ubq))); +/* All old ioucmds have to be completed */ -WARN_ON_ONCE (ubq->nr_io_ready); + ubq->nr_io_ready =0 ;/* old daemon is PF_EXITING, put it now */ put_task_struct (ubq->ubq_daemon);/* We have to reset it to NULL, otherwise ub won't accept new FETCH_REQ */
drivers/bluetooth/hci_vhci.c +6 -4
@@ -11,6 +11,7 @@#include <linux/module.h> #include <asm/unaligned.h> +#include <linux/atomic.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/slab.h>
@@ -44,6 +45,7 @@ struct vhci_data {bool wakeup;__u16 msft_opcode;bool aosp_capable; +atomic_t initialized; };static int vhci_open_dev (struct hci_dev *hdev)
@@ -75,11 +77,10 @@ static int vhci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)memcpy (skb_push (skb,1 ), &hci_skb_pkt_type (skb),1 ); -mutex_lock (&data->open_mutex);skb_queue_tail (&data->readq, skb); -mutex_unlock (&data->open_mutex); -wake_up_interruptible (&data->read_wait); +if (atomic_read (&data->initialized)) +wake_up_interruptible (&data->read_wait);return 0 ; }
@@ -363,7 +364,8 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode)skb_put_u8 (skb,0xff );skb_put_u8 (skb, opcode);put_unaligned_le16 (hdev->id,skb_put (skb,2 )); -skb_queue_tail (&data->readq, skb); +skb_queue_head (&data->readq, skb); +atomic_inc (&data->initialized);wake_up_interruptible (&data->read_wait);return 0 ;
drivers/bus/ti-sysc.c +14 -4
@@ -2174,13 +2174,23 @@ static int sysc_reset(struct sysc *ddata) sysc_val =sysc_read_sysconfig (ddata); sysc_val |= sysc_mask;sysc_write (ddata, sysc_offset, sysc_val); -/* Flush posted write */ + +/* +* Some devices need a delay before reading registers +* after reset. Presumably a srst_udelay is not needed +* for devices that use a rstctrl register reset. +*/ +if (ddata->cfg.srst_udelay) +fsleep (ddata->cfg.srst_udelay); + +/* +* Flush posted write. For devices needing srst_udelay +* this should trigger an interconnect error if the +* srst_udelay value is needed but not configured. +*/ sysc_val =sysc_read_sysconfig (ddata); } -if (ddata->cfg.srst_udelay) -fsleep (ddata->cfg.srst_udelay); -if (ddata->post_reset_quirk) ddata->post_reset_quirk (ddata);
drivers/gpio/gpio-dwapb.c +8 -4
@@ -283,13 +283,15 @@ static void dwapb_irq_enable(struct irq_data *d) {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct dwapb_gpio *gpio =to_dwapb_gpio (gc); +irq_hw_number_t hwirq =irqd_to_hwirq (d);unsigned long flags;u32 val;raw_spin_lock_irqsave (&gc->bgpio_lock, flags); - val =dwapb_read (gpio,GPIO_INTEN ); - val |=BIT (irqd_to_hwirq (d)); + val =dwapb_read (gpio,GPIO_INTEN ) |BIT (hwirq);dwapb_write (gpio,GPIO_INTEN , val); + val =dwapb_read (gpio,GPIO_INTMASK ) & ~BIT (hwirq); +dwapb_write (gpio,GPIO_INTMASK , val);raw_spin_unlock_irqrestore (&gc->bgpio_lock, flags); }
@@ -297,12 +299,14 @@ static void dwapb_irq_disable(struct irq_data *d) {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct dwapb_gpio *gpio =to_dwapb_gpio (gc); +irq_hw_number_t hwirq =irqd_to_hwirq (d);unsigned long flags;u32 val;raw_spin_lock_irqsave (&gc->bgpio_lock, flags); - val =dwapb_read (gpio,GPIO_INTEN ); - val &= ~BIT (irqd_to_hwirq (d)); + val =dwapb_read (gpio,GPIO_INTMASK ) |BIT (hwirq); +dwapb_write (gpio,GPIO_INTMASK , val); + val =dwapb_read (gpio,GPIO_INTEN ) & ~BIT (hwirq);dwapb_write (gpio,GPIO_INTEN , val);raw_spin_unlock_irqrestore (&gc->bgpio_lock, flags); }
drivers/gpio/gpiolib-cdev.c +12 -4
@@ -2444,10 +2444,7 @@ static int lineinfo_unwatch(struct gpio_chardev_data *cdev, void __user *ip)return 0 ; } -/* -* gpio_ioctl() - ioctl handler for the GPIO chardev -*/ -static long gpio_ioctl (struct file *file,unsigned int cmd,unsigned long arg) +static long gpio_ioctl_unlocked (struct file *file,unsigned int cmd,unsigned long arg) {struct gpio_chardev_data *cdev = file->private_data;struct gpio_device *gdev = cdev->gdev;
@@ -2484,6 +2481,17 @@ static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) } } +/* +* gpio_ioctl() - ioctl handler for the GPIO chardev +*/ +static long gpio_ioctl (struct file *file,unsigned int cmd,unsigned long arg) +{ +struct gpio_chardev_data *cdev = file->private_data; + +return call_ioctl_locked (file, cmd, arg, cdev->gdev, + gpio_ioctl_unlocked); +} +#ifdef CONFIG_COMPAT static long gpio_ioctl_compat (struct file *file,unsigned int cmd,unsigned long arg)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +3 -0
@@ -5104,6 +5104,9 @@ static void fill_dc_dirty_rects(struct drm_plane *plane,if (plane->type ==DRM_PLANE_TYPE_CURSOR )return ; +if (new_plane_state->rotation !=DRM_MODE_ROTATE_0 ) + goto ffu; + num_clips =drm_plane_get_damage_clips_count (new_plane_state); clips =drm_plane_get_damage_clips (new_plane_state);
drivers/gpu/drm/amd/display/dc/dc_hw_types.h +1 -0
@@ -465,6 +465,7 @@ struct dc_cursor_mi_param {struct fixed31_32 v_scale_ratio;enum dc_rotation_angle rotation;bool mirror; +struct dc_stream_state *stream; };/* IPP related types */
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +2 -1
@@ -3427,7 +3427,8 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx) .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, .v_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.vert, .rotation = pipe_ctx->plane_state->rotation, - .mirror = pipe_ctx->plane_state->horizontal_mirror + .mirror = pipe_ctx->plane_state->horizontal_mirror, + .stream = pipe_ctx->stream, };bool pipe_split_on = false; bool odm_combine_on = (pipe_ctx->next_odm_pipe != NULL) ||
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c +10 -2
@@ -1075,8 +1075,16 @@ void hubp2_cursor_set_position(if (src_y_offset <0 ) src_y_offset =0 ;/* Save necessary cursor info x, y position. w, h is saved in attribute func. */ - hubp->cur_rect.x = src_x_offset + param->viewport.x; - hubp->cur_rect.y = src_y_offset + param->viewport.y; +if (param->stream->link->psr_settings.psr_version >=DC_PSR_VERSION_SU_1 && + param->rotation !=ROTATION_ANGLE_0 ) { + hubp->cur_rect.x =0 ; + hubp->cur_rect.y =0 ; + hubp->cur_rect.w = param->stream->timing.h_addressable; + hubp->cur_rect.h = param->stream->timing.v_addressable; + }else { + hubp->cur_rect.x = src_x_offset + param->viewport.x; + hubp->cur_rect.y = src_y_offset + param->viewport.y; + } }void hubp2_clk_cntl (struct hubp *hubp,bool enable)
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c +3 -0
@@ -994,5 +994,8 @@ void dcn30_prepare_bandwidth(struct dc *dc, dc->clk_mgr->funcs->set_max_memclk (dc->clk_mgr, dc->clk_mgr->bw_params->clk_table.entries[dc->clk_mgr->bw_params->clk_table.num_entries -1 ].memclk_mhz);dcn20_prepare_bandwidth (dc, context); + +dc_dmub_srv_p_state_delegate (dc, + context->bw_ctx.bw.dcn.clk.fw_based_mclk_switching, context); }
drivers/gpu/drm/i915/display/intel_atomic.c +1 -192
205 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_atomic.h +0 -4
@@ -52,8 +52,4 @@ struct intel_crtc_state * intel_atomic_get_crtc_state(struct drm_atomic_state *state, struct intel_crtc *crtc); -int intel_atomic_setup_scalers (struct drm_i915_private *dev_priv, -struct intel_crtc *intel_crtc, -struct intel_crtc_state *crtc_state); -#endif /* __INTEL_ATOMIC_H__ */
drivers/gpu/drm/i915/display/intel_display.c +11 -0
@@ -6481,6 +6481,17 @@ static int intel_async_flip_check_uapi(struct intel_atomic_state *state,return -EINVAL ; } +/* +* FIXME: Bigjoiner+async flip is busted currently. +* Remove this check once the issues are fixed. +*/ +if (new_crtc_state->bigjoiner_pipes) { +drm_dbg_kms (&i915->drm, +"[CRTC:%d:%s] async flip disallowed with bigjoiner\n" , + crtc->base.base.id, crtc->base.name); +return -EINVAL ; + } +for_each_oldnew_intel_plane_in_state (state, plane, old_plane_state, new_plane_state, i) {if (plane->pipe != crtc->pipe)
drivers/gpu/drm/i915/display/intel_fb.c +7 -3
@@ -1176,7 +1176,8 @@ bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb) {struct drm_i915_private *i915 =to_i915 (fb->base.dev); -return IS_ALDERLAKE_P (i915) && fb->base.modifier !=DRM_FORMAT_MOD_LINEAR ; +return (IS_ALDERLAKE_P (i915) ||DISPLAY_VER (i915) >=14 ) && +intel_fb_uses_dpt (&fb->base); }static int intel_fb_pitch (const struct intel_framebuffer *fb,int color_plane,unsigned int rotation)
@@ -1312,9 +1313,11 @@ plane_view_scanout_stride(const struct intel_framebuffer *fb, int color_plane,unsigned int tile_width, unsigned int src_stride_tiles, unsigned int dst_stride_tiles) { + struct drm_i915_private *i915 = to_i915(fb->base.dev);unsigned int stride_tiles; -if (IS_ALDERLAKE_P (to_i915 (fb->base.dev))) +if ((IS_ALDERLAKE_P (i915) ||DISPLAY_VER (i915) >=14 ) && + src_stride_tiles < dst_stride_tiles) stride_tiles = src_stride_tiles;else stride_tiles = dst_stride_tiles;
@@ -1520,7 +1523,8 @@ static void intel_fb_view_init(struct drm_i915_private *i915, struct intel_fb_vimemset (view,0 ,sizeof (*view)); view->gtt.type = view_type; -if (view_type ==I915_GTT_VIEW_REMAPPED &&IS_ALDERLAKE_P (i915)) +if (view_type ==I915_GTT_VIEW_REMAPPED && + (IS_ALDERLAKE_P (i915) ||DISPLAY_VER (i915) >=14 )) view->gtt.remapped.plane_alignment =SZ_2M /PAGE_SIZE ; }
drivers/gpu/drm/i915/display/skl_scaler.c +257 -0
263 lines not on this page · raw message
drivers/gpu/drm/i915/display/skl_scaler.h +8 -2
@@ -8,17 +8,22 @@#include <linux/types.h> enum drm_scaling_filter ; +enum pipe ;struct drm_i915_private ; +struct intel_crtc ;struct intel_crtc_state ; -struct intel_plane_state ;struct intel_plane ; -enum pipe ; +struct intel_plane_state ;int skl_update_scaler_crtc (struct intel_crtc_state *crtc_state);int skl_update_scaler_plane (struct intel_crtc_state *crtc_state,struct intel_plane_state *plane_state); +int intel_atomic_setup_scalers (struct drm_i915_private *dev_priv, +struct intel_crtc *intel_crtc, +struct intel_crtc_state *crtc_state); +void skl_pfit_enable (const struct intel_crtc_state *crtc_state); void skl_program_plane_scaler(struct intel_plane *plane,
@@ -26,4 +31,5 @@ void skl_program_plane_scaler(struct intel_plane *plane, const struct intel_plane_state *plane_state);void skl_detach_scalers (const struct intel_crtc_state *crtc_state);void skl_scaler_disable (const struct intel_crtc_state *old_crtc_state); +#endif
drivers/hid/i2c-hid/i2c-hid-acpi.c +10 -5
@@ -39,8 +39,13 @@ static const struct acpi_device_id i2c_hid_acpi_blacklist[] = {* The CHPN0001 ACPI device, which is used to describe the Chipone * ICN8505 controller, has a _CID of PNP0C50 but is not HID compatible. */ - {"CHPN0001", 0 }, - { }, + { "CHPN0001" }, +/* +* The IDEA5002 ACPI device causes high interrupt usage and spurious +* wakeups from suspend. +*/ + { "IDEA5002" }, + { } };/* HID I²C Device: 3cdff6f7-4267-4555-ad05-b30a3d8938de */
@@ -115,9 +120,9 @@ static int i2c_hid_acpi_probe(struct i2c_client *client) }static const struct acpi_device_id i2c_hid_acpi_match[] = { - {"ACPI0C50" ,0 }, - {"PNP0C50" ,0 }, - { }, + {"ACPI0C50" }, + {"PNP0C50" }, + { } };MODULE_DEVICE_TABLE (acpi, i2c_hid_acpi_match);
drivers/i2c/busses/i2c-aspeed.c +32 -16
75 lines not on this page · raw message
drivers/iio/adc/ti_am335x_adc.c +3 -1
@@ -671,8 +671,10 @@ static int tiadc_probe(struct platform_device *pdev)platform_set_drvdata (pdev, indio_dev); err =tiadc_request_dma (pdev, adc_dev); -if (err && err == -EPROBE_DEFER ) +if (err && err != -ENODEV ) { +dev_err_probe (&pdev->dev, err,"DMA request failed\n" ); goto err_dma; + }return 0 ;
drivers/iio/buffer/industrialio-triggered-buffer.c +10 -0
@@ -46,6 +46,16 @@ int iio_triggered_buffer_setup_ext(struct iio_dev *indio_dev,struct iio_buffer *buffer;int ret; +/* +* iio_triggered_buffer_cleanup() assumes that the buffer allocated here +* is assigned to indio_dev->buffer but this is only the case if this +* function is the first caller to iio_device_attach_buffer(). If +* indio_dev->buffer is already set then we can't proceed otherwise the +* cleanup function will try to free a buffer that was not allocated here. +*/ +if (indio_dev->buffer) +return -EADDRINUSE ; + buffer =iio_kfifo_allocate ();if (!buffer) { ret = -ENOMEM ;
drivers/iio/common/ms_sensors/ms_sensors_i2c.c +2 -2
@@ -15,8 +15,8 @@/* Conversion times in us */ static const u16 ms_sensors_ht_t_conversion_time[] = {50000 ,25000 ,13000 ,7000 }; -static const u16 ms_sensors_ht_h_conversion_time[] = {16000 ,3000 , -5000 ,8000 }; +static const u16 ms_sensors_ht_h_conversion_time[] = {16000 ,5000 , +3000 ,8000 };static const u16 ms_sensors_tp_conversion_time[] = {500 ,1100 ,2100 ,4100 ,8220 ,16440 };
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +2 -2
@@ -736,13 +736,13 @@ inv_mpu6050_read_raw(struct iio_dev *indio_dev, ret =inv_mpu6050_sensor_show (st, st->reg->gyro_offset, chan->channel2, val);mutex_unlock (&st->lock); -return IIO_VAL_INT ; +return ret;case IIO_ACCEL :mutex_lock (&st->lock); ret =inv_mpu6050_sensor_show (st, st->reg->accl_offset, chan->channel2, val);mutex_unlock (&st->lock); -return IIO_VAL_INT ; +return ret;default :return -EINVAL ;
drivers/input/keyboard/ipaq-micro-keys.c +3 -0
@@ -105,6 +105,9 @@ static int micro_key_probe(struct platform_device *pdev) keys->codes =devm_kmemdup (&pdev->dev, micro_keycodes, keys->input->keycodesize * keys->input->keycodemax,GFP_KERNEL ); +if (!keys->codes) +return -ENOMEM ; + keys->input->keycode = keys->codes;__set_bit (EV_KEY , keys->input->evbit);
drivers/input/misc/soc_button_array.c +5 -0
@@ -299,6 +299,11 @@ static int soc_button_parse_btn_desc(struct device *dev, info->name ="power" ; info->event_code =KEY_POWER ; info->wakeup = true; + }else if (upage ==0x01 && usage ==0xc6 ) { + info->name ="airplane mode switch" ; + info->event_type =EV_SW ; + info->event_code =SW_RFKILL_ALL ; + info->active_low = false; }else if (upage ==0x01 && usage ==0xca ) { info->name ="rotation lock switch" ; info->event_type =EV_SW ;
drivers/interconnect/core.c +3 -0
@@ -381,6 +381,9 @@ struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec) }mutex_unlock (&icc_lock); +if (!node) +return ERR_PTR (-EINVAL ); +if (IS_ERR (node))return ERR_CAST (node);
drivers/interconnect/qcom/sm8250.c +1 -0
@@ -551,6 +551,7 @@ static struct platform_driver qnoc_driver = { .driver = { .name = "qnoc-sm8250", .of_match_table = qnoc_of_match, + .sync_state = icc_sync_state, }, };module_platform_driver (qnoc_driver);
drivers/md/dm-bufio.c +7 -0
@@ -1914,6 +1914,13 @@ void dm_bufio_client_destroy(struct dm_bufio_client *c) }EXPORT_SYMBOL_GPL (dm_bufio_client_destroy); +void dm_bufio_client_reset (struct dm_bufio_client *c) +{ +drop_buffers (c); +flush_work (&c->shrink_work); +} +EXPORT_SYMBOL_GPL (dm_bufio_client_reset); +void dm_bufio_set_sector_offset (struct dm_bufio_client *c,sector_t start) { c->start = start;
drivers/md/dm-integrity.c +6 -5
@@ -1763,11 +1763,12 @@ static void integrity_metadata(struct work_struct *w) sectors_to_process = dio->range.n_sectors;__bio_for_each_segment (bv, bio, iter, dio->bio_details.bi_iter) { +struct bio_vec bv_copy = bv;unsigned int pos;char *mem, *checksums_ptr; again: - mem =bvec_kmap_local (&bv); + mem =bvec_kmap_local (&bv_copy); pos =0 ; checksums_ptr = checksums; do {
@@ -1776,7 +1777,7 @@ static void integrity_metadata(struct work_struct *w) sectors_to_process -= ic->sectors_per_block; pos += ic->sectors_per_block <<SECTOR_SHIFT ; sector += ic->sectors_per_block; - }while (pos < bv.bv_len && sectors_to_process && checksums != checksums_onstack); + }while (pos < bv_copy.bv_len && sectors_to_process && checksums != checksums_onstack);kunmap_local (mem); r = dm_integrity_rw_tag(ic, checksums, &dio->metadata_block, &dio->metadata_offset,
@@ -1801,9 +1802,9 @@ static void integrity_metadata(struct work_struct *w)if (!sectors_to_process)break ; -if (unlikely (pos < bv.bv_len)) { - bv.bv_offset += pos; - bv.bv_len -= pos; +if (unlikely (pos < bv_copy.bv_len)) { + bv_copy.bv_offset += pos; + bv_copy.bv_len -= pos; goto again; } }
drivers/md/dm-thin-metadata.c +25 -33
139 lines not on this page · raw message
drivers/md/persistent-data/dm-block-manager.c +6 -0
@@ -415,6 +415,12 @@ void dm_block_manager_destroy(struct dm_block_manager *bm) }EXPORT_SYMBOL_GPL (dm_block_manager_destroy); +void dm_block_manager_reset (struct dm_block_manager *bm) +{ +dm_bufio_client_reset (bm->bufio); +} +EXPORT_SYMBOL_GPL (dm_block_manager_reset); +unsigned int dm_bm_block_size (struct dm_block_manager *bm) {return dm_bufio_get_block_size (bm->bufio);
drivers/md/persistent-data/dm-block-manager.h +1 -0
@@ -35,6 +35,7 @@ struct dm_block_manager *dm_block_manager_create( struct block_device *bdev, unsigned int block_size, unsigned int max_held_per_thread);void dm_block_manager_destroy (struct dm_block_manager *bm); +void dm_block_manager_reset (struct dm_block_manager *bm);unsigned int dm_bm_block_size (struct dm_block_manager *bm);dm_block_t dm_bm_nr_blocks (struct dm_block_manager *bm);
drivers/md/persistent-data/dm-space-map.h +2 -1
@@ -76,7 +76,8 @@ struct dm_space_map {static inline void dm_sm_destroy (struct dm_space_map *sm) { - sm->destroy (sm); +if (sm) + sm->destroy (sm); }static inline int dm_sm_extend (struct dm_space_map *sm,dm_block_t extra_blocks)
drivers/md/persistent-data/dm-transaction-manager.c +3 -0
@@ -197,6 +197,9 @@ EXPORT_SYMBOL_GPL(dm_tm_create_non_blocking_clone);void dm_tm_destroy (struct dm_transaction_manager *tm) { +if (!tm) +return ; +if (!tm->is_clone)wipe_shadow_table (tm);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +4 -1
@@ -866,10 +866,13 @@ static int atl1e_setup_ring_resources(struct atl1e_adapter *adapter)netdev_err (adapter->netdev,"offset(%d) > ring size(%d) !!\n" , offset, adapter->ring_size); err =-1 ; - goto failed; + goto free_buffer; }return 0 ; +free_buffer: +kfree (tx_ring->tx_buffer); + tx_ring->tx_buffer =NULL ; failed:if (adapter->ring_vir_addr !=NULL ) { dma_free_coherent(&pdev->dev, adapter->ring_size,
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c +14 -3
@@ -399,9 +399,10 @@ static int otx2_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc)static int otx2_dcbnl_ieee_setpfc (struct net_device *dev,struct ieee_pfc *pfc) {struct otx2_nic *pfvf =netdev_priv (dev); +u8 old_pfc_en;int err; -/* Save PFC configuration to interface */ + old_pfc_en = pfvf->pfc_en; pfvf->pfc_en = pfc->pfc_en;if (pfvf->hw.tx_queues >=NIX_PF_PFC_PRIO_MAX )
@@ -411,13 +412,17 @@ static int otx2_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc)* supported by the tx queue configuration */ err =otx2_check_pfc_config (pfvf); -if (err) +if (err) { + pfvf->pfc_en = old_pfc_en;return err; + } process_pfc: err =otx2_config_priority_flow_ctrl (pfvf); -if (err) +if (err) { + pfvf->pfc_en = old_pfc_en;return err; + }/* Request Per channel Bpids */ if (pfc->pfc_en)
@@ -425,6 +430,12 @@ static int otx2_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) err =otx2_pfc_txschq_update (pfvf);if (err) { +if (pfc->pfc_en) +otx2_nix_config_bp (pfvf, false); + +otx2_pfc_txschq_stop (pfvf); + pfvf->pfc_en = old_pfc_en; +otx2_config_priority_flow_ctrl (pfvf);dev_err (pfvf->dev,"%s failed to update TX schedulers\n" , __func__);return err; }
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +121 -95
500 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c +2 -2
@@ -176,8 +176,8 @@ static ssize_t slots_read(struct file *filp, char __user *buf, size_t count,int ret; cmd = filp->private_data; - weight =bitmap_weight (&cmd->bitmask, cmd->max_reg_cmds); - field = cmd->max_reg_cmds - weight; + weight =bitmap_weight (&cmd->vars.bitmask, cmd->vars.max_reg_cmds); + field = cmd->vars.max_reg_cmds - weight; ret =snprintf (tbuf,sizeof (tbuf),"%d\n" , field);return simple_read_from_buffer (buf, count, pos, tbuf, ret); }
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c +1 -1
@@ -691,7 +691,7 @@ static void mlx5_fw_tracer_handle_traces(struct work_struct *work)while (block_timestamp > tracer->last_timestamp) {/* Check block override if it's not the first block */ -if (!tracer->last_timestamp) { +if (tracer->last_timestamp) {u64 *ts_event;/* To avoid block override be the HW in case of buffer * wraparound, the time stamp of the previous block
drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c +1 -0
@@ -154,6 +154,7 @@ static int fs_udp_create_groups(struct mlx5e_flow_table *ft, enum fs_udp_type ty in =kvzalloc (inlen,GFP_KERNEL );if (!in || !ft->g) {kfree (ft->g); + ft->g =NULL ;kvfree (in);return -ENOMEM ; }
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c +16 -14
@@ -300,6 +300,9 @@ int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv,if (err) goto destroy_neigh_entry; + e->encap_size = ipv4_encap_size; + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event
@@ -319,8 +322,6 @@ int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv, goto destroy_neigh_entry; } - e->encap_size = ipv4_encap_size; - e->encap_header = encap_header; e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv4_put (&attr);
@@ -403,12 +404,16 @@ int mlx5e_tc_tun_update_header_ipv4(struct mlx5e_priv *priv,if (err) goto free_encap; + e->encap_size = ipv4_encap_size; +kfree (e->encap_header); + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event * and not used before that. */ - goto free_encap; + goto release_neigh; }memset (&reformat_params,0 ,sizeof (reformat_params));
@@ -422,10 +427,6 @@ int mlx5e_tc_tun_update_header_ipv4(struct mlx5e_priv *priv, goto free_encap; } - e->encap_size = ipv4_encap_size; -kfree (e->encap_header); - e->encap_header = encap_header; - e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv4_put (&attr);
@@ -567,6 +568,9 @@ int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,if (err) goto destroy_neigh_entry; + e->encap_size = ipv6_encap_size; + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event
@@ -586,8 +590,6 @@ int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, goto destroy_neigh_entry; } - e->encap_size = ipv6_encap_size; - e->encap_header = encap_header; e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv6_put (&attr);
@@ -669,12 +671,16 @@ int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,if (err) goto free_encap; + e->encap_size = ipv6_encap_size; +kfree (e->encap_header); + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event * and not used before that. */ - goto free_encap; + goto release_neigh; }memset (&reformat_params,0 ,sizeof (reformat_params));
@@ -688,10 +694,6 @@ int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv, goto free_encap; } - e->encap_size = ipv6_encap_size; -kfree (e->encap_header); - e->encap_header = encap_header; - e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv6_put (&attr);
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +1 -1
@@ -49,7 +49,7 @@ void mlx5e_ethtool_get_drvinfo(struct mlx5e_priv *priv, count =snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version),"%d.%d.%04d (%.16s)" ,fw_rev_maj (mdev),fw_rev_min (mdev),fw_rev_sub (mdev), mdev->board_id); -if (count ==sizeof (drvinfo->fw_version)) +if (count >=sizeof (drvinfo->fw_version))snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version),"%d.%d.%04d" ,fw_rev_maj (mdev),fw_rev_min (mdev),fw_rev_sub (mdev));
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +1 -1
@@ -76,7 +76,7 @@ static void mlx5e_rep_get_drvinfo(struct net_device *dev, count =snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version),"%d.%d.%04d (%.16s)" ,fw_rev_maj (mdev),fw_rev_min (mdev),fw_rev_sub (mdev), mdev->board_id); -if (count ==sizeof (drvinfo->fw_version)) +if (count >=sizeof (drvinfo->fw_version))snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version),"%d.%d.%04d" ,fw_rev_maj (mdev),fw_rev_min (mdev),fw_rev_sub (mdev));
drivers/net/ethernet/mellanox/mlx5/core/vport.c +1 -1
@@ -277,7 +277,7 @@ int mlx5_query_nic_vport_mac_list(struct mlx5_core_dev *dev, req_list_size = max_list_size; } - out_sz =MLX5_ST_SZ_BYTES (query_nic_vport_context_in) + + out_sz =MLX5_ST_SZ_BYTES (query_nic_vport_context_out) + req_list_size *MLX5_ST_SZ_BYTES (mac_address_layout); out =kvzalloc (out_sz,GFP_KERNEL );
drivers/net/ethernet/micrel/ks8851.h +3 -0
@@ -350,6 +350,8 @@ union ks8851_tx_hdr {* @rxd: Space for receiving SPI data, in DMA-able space. * @txd: Space for transmitting SPI data, in DMA-able space. * @msg_enable: The message flags controlling driver output (see ethtool). +* @tx_space: Free space in the hardware TX buffer (cached copy of KS_TXMIR). +* @queued_len: Space required in hardware TX buffer for queued packets in txq. * @fid: Incrementing frame id tag. * @rc_ier: Cached copy of KS_IER. * @rc_ccr: Cached copy of KS_CCR.
@@ -399,6 +401,7 @@ struct ks8851_net {struct work_struct rxctrl_work;struct sk_buff_head txq; +unsigned int queued_len;struct eeprom_93cx6 eeprom;struct regulator *vdd_reg;
drivers/net/ethernet/micrel/ks8851_common.c +10 -10
@@ -362,16 +362,18 @@ static irqreturn_t ks8851_irq(int irq, void *_ks) handled |=IRQ_RXPSI ;if (status &IRQ_TXI ) { - handled |=IRQ_TXI ; +unsigned short tx_space =ks8851_rdreg16 (ks,KS_TXMIR ); -/* no lock here, tx queue should have been stopped */ +netif_dbg (ks, intr, ks->netdev, +"%s: txspace %d\n" , __func__, tx_space); -/* update our idea of how much tx space is available to the -* system */ - ks->tx_space =ks8851_rdreg16 (ks,KS_TXMIR ); +spin_lock (&ks->statelock); + ks->tx_space = tx_space; +if (netif_queue_stopped (ks->netdev)) +netif_wake_queue (ks->netdev); +spin_unlock (&ks->statelock); -netif_dbg (ks, intr, ks->netdev, -"%s: txspace %d\n" , __func__, ks->tx_space); + handled |=IRQ_TXI ; }if (status &IRQ_RXI )
@@ -414,9 +416,6 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)if (status &IRQ_LCI )mii_check_link (&ks->mii); -if (status &IRQ_TXI ) -netif_wake_queue (ks->netdev); -return IRQ_HANDLED ; }
@@ -500,6 +499,7 @@ static int ks8851_net_open(struct net_device *dev)ks8851_wrreg16 (ks,KS_ISR , ks->rc_ier);ks8851_wrreg16 (ks,KS_IER , ks->rc_ier); + ks->queued_len =0 ;netif_start_queue (ks->netdev);netif_dbg (ks, ifup, ks->netdev,"network device up\n" );
drivers/net/ethernet/micrel/ks8851_spi.c +27 -15
86 lines not on this page · raw message
drivers/net/ethernet/microsoft/Kconfig +1 -0
@@ -19,6 +19,7 @@ config MICROSOFT_MANA tristate "Microsoft Azure Network Adapter (MANA) support" depends on PCI_MSI && X86_64 depends on PCI_HYPERV + select PAGE_POOL help This driver supports Microsoft Azure Network Adapter (MANA). So far, the driver is only supported on X86_64.
drivers/net/ethernet/mscc/ocelot_stats.c +4 -4
@@ -216,10 +216,10 @@ static void ocelot_port_rmon_stats_cb(struct ocelot *ocelot, int port, void *pri rmon_stats->hist_tx[0 ] = s[OCELOT_STAT_TX_64 ]; rmon_stats->hist_tx[1 ] = s[OCELOT_STAT_TX_65_127 ]; rmon_stats->hist_tx[2 ] = s[OCELOT_STAT_TX_128_255 ]; - rmon_stats->hist_tx[3 ] = s[OCELOT_STAT_TX_128_255 ]; - rmon_stats->hist_tx[4 ] = s[OCELOT_STAT_TX_256_511 ]; - rmon_stats->hist_tx[5 ] = s[OCELOT_STAT_TX_512_1023 ]; - rmon_stats->hist_tx[6 ] = s[OCELOT_STAT_TX_1024_1526 ]; + rmon_stats->hist_tx[3 ] = s[OCELOT_STAT_TX_256_511 ]; + rmon_stats->hist_tx[4 ] = s[OCELOT_STAT_TX_512_1023 ]; + rmon_stats->hist_tx[5 ] = s[OCELOT_STAT_TX_1024_1526 ]; + rmon_stats->hist_tx[6 ] = s[OCELOT_STAT_TX_1527_MAX ]; } void ocelot_port_get_rmon_stats(struct ocelot *ocelot, int port,
drivers/net/usb/ax88179_178a.c +20 -3
@@ -173,6 +173,7 @@ struct ax88179_data {u8 in_pm;u32 wol_supported;u32 wolopts; +u8 disconnecting; };struct ax88179_int_data {
@@ -208,6 +209,7 @@ static int __ax88179_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, {int ret;int (*fn)(struct usbnet *,u8 ,u8 ,u16 ,u16 ,void *,u16 ); +struct ax88179_data *ax179_data = dev->driver_priv;BUG_ON (!dev);
@@ -219,7 +221,7 @@ static int __ax88179_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, ret =fn (dev, cmd,USB_DIR_IN |USB_TYPE_VENDOR |USB_RECIP_DEVICE , value, index, data, size); -if (unlikely (ret <0 )) +if (unlikely ((ret <0 ) && !(ret == -ENODEV && ax179_data->disconnecting)))netdev_warn (dev->net,"Failed to read reg index 0x%04x: %d\n" , index, ret);
@@ -231,6 +233,7 @@ static int __ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, {int ret;int (*fn)(struct usbnet *,u8 ,u8 ,u16 ,u16 ,const void *,u16 ); +struct ax88179_data *ax179_data = dev->driver_priv;BUG_ON (!dev);
@@ -242,7 +245,7 @@ static int __ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, ret =fn (dev, cmd,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_DEVICE , value, index, data, size); -if (unlikely (ret <0 )) +if (unlikely ((ret <0 ) && !(ret == -ENODEV && ax179_data->disconnecting)))netdev_warn (dev->net,"Failed to write reg index 0x%04x: %d\n" , index, ret);
@@ -492,6 +495,20 @@ static int ax88179_resume(struct usb_interface *intf)return usbnet_resume (intf); } +static void ax88179_disconnect (struct usb_interface *intf) +{ +struct usbnet *dev =usb_get_intfdata (intf); +struct ax88179_data *ax179_data; + +if (!dev) +return ; + + ax179_data = dev->driver_priv; + ax179_data->disconnecting =1 ; + +usbnet_disconnect (intf); +} +static void ax88179_get_wol (struct net_device *net,struct ethtool_wolinfo *wolinfo) {
@@ -1906,7 +1923,7 @@ static struct usb_driver ax88179_178a_driver = { .suspend = ax88179_suspend, .resume = ax88179_resume, .reset_resume = ax88179_resume, - .disconnect = usbnet_disconnect, + .disconnect = ax88179_disconnect, .supports_autosuspend = 1, .disable_hub_initiated_lpm = 1, };
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +2 -2
@@ -3034,7 +3034,7 @@ static u32 iwl_trans_pcie_dump_rbs(struct iwl_trans *trans,struct iwl_rxq *rxq = &trans_pcie->rxq[0 ];u32 i, r, j, rb_len =0 ; -spin_lock (&rxq->lock); +spin_lock_bh (&rxq->lock); r =le16_to_cpu (iwl_get_closed_rb_stts (trans, rxq)) &0x0FFF ;
@@ -3058,7 +3058,7 @@ static u32 iwl_trans_pcie_dump_rbs(struct iwl_trans *trans, *data =iwl_fw_error_next_data (*data); } -spin_unlock (&rxq->lock); +spin_unlock_bh (&rxq->lock);return rb_len; }
drivers/nvme/host/core.c +2 -1
@@ -4835,6 +4835,8 @@ static void nvme_fw_act_work(struct work_struct *work) struct nvme_ctrl, fw_act_work);unsigned long fw_act_timeout; +nvme_auth_stop (ctrl); +if (ctrl->mtfa) fw_act_timeout = jiffies +msecs_to_jiffies (ctrl->mtfa *100 );
@@ -4890,7 +4892,6 @@ static bool nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result)* firmware activation. */ if (nvme_change_ctrl_state (ctrl,NVME_CTRL_RESETTING )) { -nvme_auth_stop (ctrl); requeue = false;queue_work (nvme_wq, &ctrl->fw_act_work); }
drivers/pinctrl/pinctrl-at91-pio4.c +8 -0
@@ -1033,6 +1033,13 @@ static const struct of_device_id atmel_pctrl_of_match[] = { } }; +/* +* This lock class allows to tell lockdep that parent IRQ and children IRQ do +* not share the same class so it does not raise false positive +*/ +static struct lock_class_key atmel_lock_key; +static struct lock_class_key atmel_request_key; +static int atmel_pinctrl_probe (struct platform_device *pdev) {struct device *dev = &pdev->dev;
@@ -1185,6 +1192,7 @@ static int atmel_pinctrl_probe(struct platform_device *pdev)irq_set_chip_and_handler (irq, &atmel_gpio_irq_chip, handle_simple_irq);irq_set_chip_data (irq, atmel_pioctrl); +irq_set_lockdep_class (irq, &atmel_lock_key, &atmel_request_key);dev_dbg (dev,"atmel gpio irq domain: hwirq: %d, linux irq: %d\n" , i, irq);
drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c +2 -2
@@ -489,7 +489,7 @@ static int starfive_dt_node_to_map(struct pinctrl_dev *pctldev, nmaps =0 ; ngroups =0 ; -for_each_child_of_node (np, child) { +for_each_available_child_of_node (np, child) {int npinmux =of_property_count_u32_elems (child,"pinmux" );int npins =of_property_count_u32_elems (child,"pins" );
@@ -524,7 +524,7 @@ static int starfive_dt_node_to_map(struct pinctrl_dev *pctldev, nmaps =0 ; ngroups =0 ;mutex_lock (&sfp->mutex); -for_each_child_of_node (np, child) { +for_each_available_child_of_node (np, child) {int npins;int i;
drivers/reset/core.c +4 -4
@@ -807,6 +807,9 @@ static void __reset_control_put_internal(struct reset_control *rstc) {lockdep_assert_held (&reset_list_mutex); +if (IS_ERR_OR_NULL (rstc)) +return ; +kref_put (&rstc->refcnt, __reset_control_release); }
@@ -1017,11 +1020,8 @@ EXPORT_SYMBOL_GPL(reset_control_put);void reset_control_bulk_put (int num_rstcs,struct reset_control_bulk_data *rstcs) {mutex_lock (&reset_list_mutex); -while (num_rstcs--) { -if (IS_ERR_OR_NULL (rstcs[num_rstcs].rstc)) -continue ; +while (num_rstcs--)__reset_control_put_internal (rstcs[num_rstcs].rstc); - }mutex_unlock (&reset_list_mutex); }EXPORT_SYMBOL_GPL (reset_control_bulk_put);
drivers/scsi/aacraid/aacraid.h +0 -1
@@ -1678,7 +1678,6 @@ struct aac_devu32 handle_pci_error;bool init_reset;u8 soft_reset_support; -u8 use_map_queue; };#define aac_adapter_interrupt (dev) \
drivers/scsi/aacraid/commsup.c +1 -5
@@ -223,12 +223,8 @@ int aac_fib_setup(struct aac_dev * dev)struct fib *aac_fib_alloc_tag (struct aac_dev *dev,struct scsi_cmnd *scmd) {struct fib *fibptr; -u32 blk_tag; -int i; - blk_tag =blk_mq_unique_tag (scsi_cmd_to_rq (scmd)); - i =blk_mq_unique_tag_to_tag (blk_tag); - fibptr = &dev->fibs[i]; + fibptr = &dev->fibs[scsi_cmd_to_rq (scmd)->tag];/* * Null out fields that depend on being zero at the start of * each I/O
drivers/scsi/aacraid/linit.c +0 -14
@@ -19,7 +19,6 @@#include <linux/compat.h> #include <linux/blkdev.h> -#include <linux/blk-mq-pci.h> #include <linux/completion.h> #include <linux/init.h> #include <linux/interrupt.h>
@@ -506,15 +505,6 @@ static int aac_slave_configure(struct scsi_device *sdev)return 0 ; } -static void aac_map_queues (struct Scsi_Host *shost) -{ -struct aac_dev *aac = (struct aac_dev *)shost->hostdata; - -blk_mq_pci_map_queues (&shost->tag_set.map[HCTX_TYPE_DEFAULT ], - aac->pdev,0 ); - aac->use_map_queue = true; -} -/** * aac_change_queue_depth - alter queue depths * @sdev: SCSI device we are considering
@@ -1499,7 +1489,6 @@ static struct scsi_host_template aac_driver_template = { .bios_param = aac_biosparm, .shost_groups = aac_host_groups, .slave_configure = aac_slave_configure, - .map_queues = aac_map_queues, .change_queue_depth = aac_change_queue_depth, .sdev_groups = aac_dev_groups, .eh_abort_handler = aac_eh_abort,
@@ -1787,8 +1776,6 @@ static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) shost->max_lun =AAC_MAX_LUN ;pci_set_drvdata (pdev, shost); - shost->nr_hw_queues = aac->max_msix; - shost->host_tagset =1 ; error =scsi_add_host (shost, &pdev->dev);if (error)
@@ -1921,7 +1908,6 @@ static void aac_remove_one(struct pci_dev *pdev)struct aac_dev *aac = (struct aac_dev *)shost->hostdata;aac_cancel_rescan_worker (aac); - aac->use_map_queue = false;scsi_remove_host (shost);__aac_shutdown (aac);
drivers/scsi/aacraid/src.c +2 -23
@@ -493,10 +493,6 @@ static int aac_src_deliver_message(struct fib *fib)#endif u16 vector_no; -struct scsi_cmnd *scmd; -u32 blk_tag; -struct Scsi_Host *shost = dev->scsi_host_ptr; -struct blk_mq_queue_map *qmap;atomic_inc (&q->numpending);
@@ -509,25 +505,8 @@ static int aac_src_deliver_message(struct fib *fib)if ((dev->comm_interface ==AAC_COMM_MESSAGE_TYPE3 ) && dev->sa_firmware) vector_no =aac_get_vector (dev); -else { -if (!fib->vector_no || !fib->callback_data) { -if (shost && dev->use_map_queue) { - qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT ]; - vector_no = qmap->mq_map[raw_smp_processor_id ()]; - } -/* -* We hardcode the vector_no for -* reserved commands as a valid shost is -* absent during the init -*/ -else - vector_no =0 ; - }else { - scmd = (struct scsi_cmnd *)fib->callback_data; - blk_tag =blk_mq_unique_tag (scsi_cmd_to_rq (scmd)); - vector_no =blk_mq_unique_tag_to_hwq (blk_tag); - } - } +else + vector_no = fib->vector_no;if (native_hba) {if (fib->flags &FIB_CONTEXT_FLAG_NATIVE_HBA_TMF ) {
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +3 -6
@@ -429,7 +429,6 @@ static int bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev,struct fcoe_ctlr *ctlr;struct fcoe_rcv_info *fr;struct fcoe_percpu_s *bg; -struct sk_buff *tmp_skb; interface = container_of(ptype, struct bnx2fc_interface, fcoe_packet_type);
@@ -441,11 +440,9 @@ static int bnx2fc_rcv(struct sk_buff *skb, struct net_device *dev, goto err; } - tmp_skb =skb_share_check (skb,GFP_ATOMIC ); -if (!tmp_skb) - goto err; - - skb = tmp_skb; + skb =skb_share_check (skb,GFP_ATOMIC ); +if (!skb) +return -1 ;if (unlikely (eth_hdr (skb)->h_proto !=htons (ETH_P_FCOE ))) { printk(KERN_ERR PFX "bnx2fc_rcv: Wrong FC type frame\n");
drivers/scsi/scsi_error.c +2 -0
@@ -1108,6 +1108,7 @@ static enum scsi_disposition scsi_send_eh_cmnd(struct scsi_cmnd *scmd,scsi_log_send (scmd); scmd->submitter =SUBMITTED_BY_SCSI_ERROR_HANDLER ; + scmd->flags |=SCMD_LAST ;/* * Lock sdev->state_mutex to avoid that scsi_device_quiesce() can
@@ -2402,6 +2403,7 @@ scsi_ioctl_reset(struct scsi_device *dev, int __user *arg)scsi_init_command (dev, scmd); scmd->submitter =SUBMITTED_BY_SCSI_RESET_IOCTL ; + scmd->flags |=SCMD_LAST ;memset (&scmd->sdb,0 ,sizeof (scmd->sdb)); scmd->cmd_len =0 ;
drivers/thunderbolt/debugfs.c +1 -1
@@ -943,7 +943,7 @@ static void margining_port_remove(struct tb_port *port)snprintf (dir_name,sizeof (dir_name),"port%d" , port->port); parent =debugfs_lookup (dir_name, port->sw->debugfs_dir);if (parent) -debugfs_remove_recursive (debugfs_lookup ("margining" , parent)); +debugfs_lookup_and_remove ("margining" , parent);kfree (port->usb4->margining); port->usb4->margining =NULL ;
drivers/usb/serial/ftdi_sio.c +3 -3
@@ -1033,9 +1033,9 @@ static const struct usb_device_id id_table_combined[] = { { USB_DEVICE(FTDI_VID, ACTISENSE_USG_PID) }, { USB_DEVICE(FTDI_VID, ACTISENSE_NGT_PID) }, { USB_DEVICE(FTDI_VID, ACTISENSE_NGW_PID) }, - { USB_DEVICE(FTDI_VID, ACTISENSE_D9AC_PID) }, - { USB_DEVICE(FTDI_VID, ACTISENSE_D9AD_PID) }, - { USB_DEVICE(FTDI_VID, ACTISENSE_D9AE_PID) }, + { USB_DEVICE(FTDI_VID, ACTISENSE_UID_PID) }, + { USB_DEVICE(FTDI_VID, ACTISENSE_USA_PID) }, + { USB_DEVICE(FTDI_VID, ACTISENSE_NGX_PID) }, { USB_DEVICE(FTDI_VID, ACTISENSE_D9AF_PID) }, { USB_DEVICE(FTDI_VID, CHETCO_SEAGAUGE_PID) }, { USB_DEVICE(FTDI_VID, CHETCO_SEASWITCH_PID) },
drivers/usb/serial/ftdi_sio_ids.h +3 -3
@@ -1568,9 +1568,9 @@#define ACTISENSE_USG_PID 0xD9A9/* USG USB Serial Adapter */ #define ACTISENSE_NGT_PID 0xD9AA/* NGT NMEA2000 Interface */ #define ACTISENSE_NGW_PID 0xD9AB/* NGW NMEA2000 Gateway */ -#define ACTISENSE_D9AC_PID 0xD9AC/* Actisense Reserved */ -#define ACTISENSE_D9AD_PID 0xD9AD/* Actisense Reserved */ -#define ACTISENSE_D9AE_PID 0xD9AE/* Actisense Reserved */ +#define ACTISENSE_UID_PID 0xD9AC/* USB Isolating Device */ +#define ACTISENSE_USA_PID 0xD9AD/* USB to Serial Adapter */ +#define ACTISENSE_NGX_PID 0xD9AE/* NGX NMEA2000 Gateway */ #define ACTISENSE_D9AF_PID 0xD9AF/* Actisense Reserved */ #define CHETCO_SEAGAUGE_PID 0xA548/* SeaGauge USB Adapter */ #define CHETCO_SEASWITCH_PID 0xA549/* SeaSwitch USB Adapter */
drivers/usb/serial/option.c +5 -0
@@ -272,6 +272,7 @@ static void option_instat_callback(struct urb *urb);#define QUECTEL_PRODUCT_RM500Q 0x0800#define QUECTEL_PRODUCT_RM520N 0x0801#define QUECTEL_PRODUCT_EC200U 0x0901 +#define QUECTEL_PRODUCT_EG912Y 0x6001#define QUECTEL_PRODUCT_EC200S_CN 0x6002#define QUECTEL_PRODUCT_EC200A 0x6005#define QUECTEL_PRODUCT_EM061K_LWW 0x6008
@@ -1232,6 +1233,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, 0x0700, 0xff), /* BG95 */ .driver_info = RSVD(3) | ZLP }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0xff, 0x30) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0, 0x40) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0xff, 0x10), .driver_info = ZLP },
@@ -1244,6 +1246,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200U, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200S_CN, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200T, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG912Y, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500K, 0xff, 0x00, 0x00) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) },
@@ -2242,6 +2245,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, { USB_DEVICE(0x0489, 0xe0b5), /* Foxconn T77W968 ESIM */ .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, + { USB_DEVICE_INTERFACE_CLASS(0x0489, 0xe0da, 0xff), /* Foxconn T99W265 MBIM variant */ + .driver_info = RSVD(3) | RSVD(5) }, { USB_DEVICE_INTERFACE_CLASS(0x0489, 0xe0db, 0xff), /* Foxconn T99W265 MBIM */ .driver_info = RSVD(3) }, { USB_DEVICE_INTERFACE_CLASS(0x0489, 0xe0ee, 0xff), /* Foxconn T99W368 MBIM */
drivers/usb/storage/unusual_devs.h +11 -0
@@ -1305,6 +1305,17 @@ UNUSUAL_DEV( 0x090c, 0x6000, 0x0100, 0x0100, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_INITIAL_READ10 ), +/* +* Patch by Tasos Sahanidis <[email protected]> +* This flash drive always shows up with write protect enabled +* during the first mode sense. +*/ +UNUSUAL_DEV (0x0951 ,0x1697 ,0x0100 ,0x0100 , +"Kingston" , +"DT Ultimate G3" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , + US_FL_NO_WP_DETECT), +/* * This Pentax still camera is not conformant * to the USB storage specification: -
fs/afs/cell.c +4 -2
@@ -409,10 +409,12 @@ static int afs_update_cell(struct afs_cell *cell)if (ret == -ENOMEM ) goto out_wake; - ret = -ENOMEM ; vllist =afs_alloc_vlserver_list (0 ); -if (!vllist) +if (!vllist) { +if (ret >=0 ) + ret = -ENOMEM ; goto out_wake; + }switch (ret) {case -ENODATA :
fs/afs/dynroot.c +17 -14
@@ -114,6 +114,7 @@ static int afs_probe_cell_name(struct dentry *dentry)struct afs_net *net =afs_d2net (dentry);const char *name = dentry->d_name.name;size_t len = dentry->d_name.len; +char *result =NULL ;int ret;/* Names prefixed with a dot are R/W mounts. */
@@ -131,9 +132,22 @@ static int afs_probe_cell_name(struct dentry *dentry) } ret =dns_query (net->net,"afsdb" , name, len,"srv=1" , -NULL ,NULL , false); -if (ret == -ENODATA || ret == -ENOKEY ) + &result,NULL , false); +if (ret == -ENODATA || ret == -ENOKEY || ret ==0 ) ret = -ENOENT ; +if (ret >0 && ret >=sizeof (struct dns_server_list_v1_header )) { +struct dns_server_list_v1_header *v1 = (void *)result; + +if (v1->hdr.zero ==0 && + v1->hdr.content ==DNS_PAYLOAD_IS_SERVER_LIST && + v1->hdr.version ==1 && + (v1->status !=DNS_LOOKUP_GOOD && + v1->status !=DNS_LOOKUP_GOOD_WITH_BAD )) +return -ENOENT ; + + } + +kfree (result);return ret; }
@@ -252,20 +266,9 @@ static int afs_dynroot_d_revalidate(struct dentry *dentry, unsigned int flags)return 1 ; } -/* -* Allow the VFS to enquire as to whether a dentry should be unhashed (mustn't -* sleep) -* - called from dput() when d_count is going to 0. -* - return 1 to request dentry be unhashed, 0 otherwise -*/ -static int afs_dynroot_d_delete (const struct dentry *dentry) -{ -return d_really_is_positive (dentry); -} -const struct dentry_operations afs_dynroot_dentry_operations = { .d_revalidate = afs_dynroot_d_revalidate, - .d_delete = afs_dynroot_d_delete, + .d_delete = always_delete_dentry, .d_release = afs_d_release, .d_automount = afs_d_automount, };
fs/afs/internal.h +2 -0
@@ -585,6 +585,7 @@ struct afs_volume {#define AFS_VOLUME_OFFLINE 4/* - T if volume offline notice given */ #define AFS_VOLUME_BUSY 5/* - T if volume busy notice given */ #define AFS_VOLUME_MAYBE_NO_IBULK 6/* - T if some servers don't have InlineBulkStatus */ +#define AFS_VOLUME_RM_TREE 7/* - Set if volume removed from cell->volumes */ #ifdef CONFIG_AFS_FSCACHE struct fscache_volume *cache;/* Caching cookie */ #endif
@@ -1517,6 +1518,7 @@ extern struct afs_vlserver_list *afs_extract_vlserver_list(struct afs_cell *,extern struct afs_volume *afs_create_volume (struct afs_fs_context *);extern int afs_activate_volume (struct afs_volume *);extern void afs_deactivate_volume (struct afs_volume *); +bool afs_try_get_volume (struct afs_volume *volume,enum afs_volume_trace reason);extern struct afs_volume *afs_get_volume (struct afs_volume *,enum afs_volume_trace );extern void afs_put_volume (struct afs_net *,struct afs_volume *,enum afs_volume_trace );extern int afs_check_volume_status (struct afs_volume *,struct afs_operation *);
fs/afs/volume.c +23 -3
@@ -32,8 +32,13 @@ static struct afs_volume *afs_insert_volume_into_cell(struct afs_cell *cell, }else if (p->vid > volume->vid) { pp = &(*pp)->rb_right; }else { - volume =afs_get_volume (p, afs_volume_trace_get_cell_insert); - goto found; +if (afs_try_get_volume (p, afs_volume_trace_get_cell_insert)) { + volume = p; + goto found; + } + +set_bit (AFS_VOLUME_RM_TREE , &volume->flags); +rb_replace_node_rcu (&p->cell_node, &volume->cell_node, &cell->volumes); } }
@@ -56,7 +61,8 @@ static void afs_remove_volume_from_cell(struct afs_volume *volume) afs_volume_trace_remove);write_seqlock (&cell->volume_lock);hlist_del_rcu (&volume->proc_link); -rb_erase (&volume->cell_node, &cell->volumes); +if (!test_and_set_bit (AFS_VOLUME_RM_TREE , &volume->flags)) +rb_erase (&volume->cell_node, &cell->volumes);write_sequnlock (&cell->volume_lock); } }
@@ -235,6 +241,20 @@ static void afs_destroy_volume(struct afs_net *net, struct afs_volume *volume)_leave (" [destroyed]" ); } +/* +* Try to get a reference on a volume record. +*/ +bool afs_try_get_volume (struct afs_volume *volume,enum afs_volume_trace reason) +{ +int r; + +if (__refcount_inc_not_zero (&volume->ref, &r)) { +trace_afs_volume (volume->vid, r +1 , reason); +return true; + } +return false; +} +/* * Get a reference on a volume record. */
fs/btrfs/free-space-cache.c +1 -7
@@ -2685,13 +2685,8 @@ static int __btrfs_add_free_space_zoned(struct btrfs_block_group *block_group, bg_reclaim_threshold =READ_ONCE (sinfo->bg_reclaim_threshold);spin_lock (&ctl->tree_lock); -/* Count initial region as zone_unusable until it gets activated. */ if (!used) to_free = size; -else if (initial && -test_bit (BTRFS_FS_ACTIVE_ZONE_TRACKING , &block_group->fs_info->flags) && - (block_group->flags & (BTRFS_BLOCK_GROUP_METADATA |BTRFS_BLOCK_GROUP_SYSTEM ))) - to_free =0 ;else if (initial) to_free = block_group->zone_capacity;else if (offset >= block_group->alloc_offset)
@@ -2719,8 +2714,7 @@ static int __btrfs_add_free_space_zoned(struct btrfs_block_group *block_group, reclaimable_unusable = block_group->zone_unusable - (block_group->length - block_group->zone_capacity);/* All the region is now unusable. Mark it as unused and reclaim */ -if (block_group->zone_unusable == block_group->length && - block_group->alloc_offset) { +if (block_group->zone_unusable == block_group->length) {btrfs_mark_bg_unused (block_group); }else if (bg_reclaim_threshold && reclaimable_unusable >=
fs/btrfs/zoned.c +3 -23
@@ -1574,19 +1574,9 @@ void btrfs_calc_zone_unusable(struct btrfs_block_group *cache)return ;WARN_ON (cache->bytes_super !=0 ); - -/* Check for block groups never get activated */ -if (test_bit (BTRFS_FS_ACTIVE_ZONE_TRACKING , &cache->fs_info->flags) && - cache->flags & (BTRFS_BLOCK_GROUP_METADATA |BTRFS_BLOCK_GROUP_SYSTEM ) && - !test_bit (BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE , &cache->runtime_flags) && - cache->alloc_offset ==0 ) { - unusable = cache->length; - free =0 ; - }else { - unusable = (cache->alloc_offset - cache->used) + - (cache->length - cache->zone_capacity); - free = cache->zone_capacity - cache->alloc_offset; - } + unusable = (cache->alloc_offset - cache->used) + + (cache->length - cache->zone_capacity); + free = cache->zone_capacity - cache->alloc_offset;/* We only need ->free_space in ALLOC_SEQ block groups */ cache->cached =BTRFS_CACHE_FINISHED ;
@@ -1882,7 +1872,6 @@ struct btrfs_device *btrfs_zoned_get_device(struct btrfs_fs_info *fs_info,bool btrfs_zone_activate (struct btrfs_block_group *block_group) {struct btrfs_fs_info *fs_info = block_group->fs_info; -struct btrfs_space_info *space_info = block_group->space_info;struct map_lookup *map;struct btrfs_device *device;u64 physical;
@@ -1894,7 +1883,6 @@ bool btrfs_zone_activate(struct btrfs_block_group *block_group) map = block_group->physical_map; -spin_lock (&space_info->lock);spin_lock (&block_group->lock);if (test_bit (BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE , &block_group->runtime_flags)) { ret = true;
@@ -1923,14 +1911,7 @@ bool btrfs_zone_activate(struct btrfs_block_group *block_group)/* Successfully activated all the zones */ set_bit (BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE , &block_group->runtime_flags); -WARN_ON (block_group->alloc_offset !=0 ); -if (block_group->zone_unusable == block_group->length) { - block_group->zone_unusable = block_group->length - block_group->zone_capacity; - space_info->bytes_zone_unusable -= block_group->zone_capacity; - }spin_unlock (&block_group->lock); -btrfs_try_granting_tickets (fs_info, space_info); -spin_unlock (&space_info->lock);/* For the active block group list */ btrfs_get_block_group (block_group);
@@ -1943,7 +1924,6 @@ bool btrfs_zone_activate(struct btrfs_block_group *block_group) out_unlock:spin_unlock (&block_group->lock); -spin_unlock (&space_info->lock);return ret; }
fs/fuse/fuse_i.h +15 -0
@@ -63,6 +63,19 @@ struct fuse_forget_link {struct fuse_forget_link *next; }; +/* Submount lookup tracking */ +struct fuse_submount_lookup { +/** Refcount */ +refcount_t count; + +/** Unique ID, which identifies the inode between userspace +* and kernel */ +u64 nodeid; + +/** The request used for sending the FORGET message */ +struct fuse_forget_link *forget; +}; +/** FUSE inode */ struct fuse_inode {
Lines of this file are not shown. View the raw message.
fs/fuse/inode.c +72 -3
75 lines not on this page · raw message
kernel/bpf/arraymap.c +10 -48
58 lines not on this page · raw message
net/wireless/certs/wens.hex new file +87 -0
87 lines not on this page · raw message
net/wireless/nl80211.c +37 -19
56 lines not on this page · raw message
tools/testing/selftests/net/mptcp/mptcp_join.sh +4 -4
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.