Linux 6.6.9
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.9 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.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/ti/omap/am33xx.dtsi | 1 arch/arm/boot/dts/ti/omap/dra7.dtsi | 2 arch/arm/mach-omap2/id.c | 5 arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi | 3 arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts | 3 arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 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/s390/include/asm/fpu/api.h | 2 arch/x86/kernel/alternative.c | 14 - arch/x86/kernel/head_64.S | 16 + arch/x86/net/bpf_jit_comp.c | 46 +++ arch/x86/xen/Kconfig | 1 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/amdgpu/amdgpu_gem.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 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/drm_auth.c | 3 drivers/gpu/drm/drm_debugfs.c | 10 drivers/gpu/drm/drm_file.c | 40 ++ drivers/gpu/drm/drm_ioctl.c | 3 drivers/gpu/drm/i915/display/g4x_dp.c | 10 drivers/gpu/drm/i915/display/intel_crt.c | 2 drivers/gpu/drm/i915/display/intel_crtc_state_dump.c | 3 drivers/gpu/drm/i915/display/intel_cx0_phy.c | 3 drivers/gpu/drm/i915/display/intel_ddi.c | 22 - drivers/gpu/drm/i915/display/intel_display.c | 12 drivers/gpu/drm/i915/display/intel_display_types.h | 2 drivers/gpu/drm/i915/display/intel_dmc.c | 43 +++ drivers/gpu/drm/i915/display/intel_dp.c | 3 drivers/gpu/drm/i915/display/intel_dp_link_training.c | 35 +- drivers/gpu/drm/i915/i915_hwmon.c | 4 drivers/gpu/drm/nouveau/nouveau_drm.c | 5 drivers/gpu/drm/vmwgfx/vmwgfx_gem.c | 6 drivers/i2c/busses/i2c-aspeed.c | 48 ++- drivers/i2c/busses/i2c-qcom-geni.c | 8 drivers/iio/accel/kionix-kx022a.c | 37 +- drivers/iio/adc/imx93_adc.c | 4 drivers/iio/adc/meson_saradc.c | 16 + 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/adis16475.c | 117 +++++--- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 4 drivers/iio/magnetometer/tmag5273.c | 2 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-integrity.c | 11 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 5 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 11 drivers/net/ethernet/intel/ice/ice_ethtool.c | 4 drivers/net/ethernet/intel/ice/ice_lag.c | 2 drivers/net/ethernet/intel/ice/ice_lib.c | 7 drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c | 17 + drivers/net/ethernet/mediatek/mtk_wed_wo.c | 3 drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 12 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/act/mirred.c | 5 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 30 +- drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 4 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c | 2 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/en_tc.c | 10 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 31 +- drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c | 4 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 | 16 - drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c | 2 drivers/net/phy/phy_device.c | 6 drivers/net/usb/ax88179_178a.c | 23 + drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 4 drivers/net/wireless/mediatek/mt76/dma.c | 10 drivers/nvme/host/core.c | 3 drivers/nvmem/brcm_nvram.c | 134 +++++++--- drivers/pinctrl/pinctrl-at91-pio4.c | 8 drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 4 drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c | 4 drivers/platform/x86/intel/pmc/core.c | 2 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/spi/spi-atmel.c | 92 ++++++ drivers/spi/spi-cadence.c | 1 drivers/spi/spi-imx.c | 15 - drivers/thunderbolt/debugfs.c | 2 drivers/ufs/core/ufshcd.c | 3 drivers/ufs/host/ufs-qcom.c | 6 drivers/usb/fotg210/fotg210-hcd.c | 3 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 drivers/usb/typec/ucsi/ucsi_glink.c | 2 fs/afs/cell.c | 6 fs/afs/dynroot.c | 31 +- fs/afs/internal.h | 2 fs/afs/volume.c | 26 + fs/btrfs/disk-io.c | 28 ++ fs/btrfs/qgroup.c | 96 +++---- fs/btrfs/qgroup.h | 9 fs/btrfs/transaction.c | 2 fs/btrfs/transaction.h | 3 fs/nfsd/nfsctl.c | 9 fs/nfsd/nfsd.h | 1 fs/nfsd/nfssvc.c | 2 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 +- include/drm/drm_file.h | 13 include/linux/bpf.h | 3 include/linux/damon.h | 16 + include/linux/ieee80211.h | 3 include/linux/key-type.h | 1 include/net/bluetooth/hci_core.h | 9 include/net/ip6_fib.h | 64 ---- include/net/sock.h | 5 include/trace/events/9p.h | 11 kernel/bpf/arraymap.c | 58 ---- kernel/trace/ring_buffer.c | 130 ++------- kernel/trace/synth_event_gen_test.c | 11 lib/vsprintf.c | 11 mm/damon/core.c | 102 +++---- net/8021q/vlan_core.c | 9 net/9p/protocol.c | 17 - net/bluetooth/af_bluetooth.c | 7 net/bluetooth/hci_event.c | 30 +- net/bluetooth/l2cap_core.c | 21 + net/bluetooth/mgmt.c | 25 + net/bluetooth/smp.c | 7 net/core/dev.c | 3 net/core/skbuff.c | 2 net/core/sock_map.c | 2 net/core/stream.c | 2 net/dns_resolver/dns_key.c | 10 net/ife/ife.c | 1 net/ipv6/ip6_fib.c | 55 ---- net/ipv6/route.c | 6 net/mac80211/cfg.c | 4 net/mac80211/driver-ops.c | 6 net/mac80211/mesh_plink.c | 16 - net/mac80211/mlme.c | 4 net/rfkill/rfkill-gpio.c | 8 net/rose/af_rose.c | 39 ++ net/sunrpc/svc_xprt.c | 5 net/wireless/certs/wens.hex | 87 ++++++ 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/pci/hda/tas2781_hda_i2c.c | 4 sound/soc/codecs/hdmi-codec.c | 12 sound/soc/codecs/tas2781-fmwlib.c | 14 - sound/soc/fsl/fsl_sai.c | 3 sound/usb/quirks.c | 4 tools/testing/selftests/net/mptcp/mptcp_join.sh | 8 183 files changed, 1676 insertions(+), 906 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 Gospodarek (1):
bnxt_en: do not map packet buffers twice
Arnd Bergmann (2):
Bluetooth: hci_event: shut up a false-positive warning x86/xen: add CPU dependencies for 32-bit build
Benjamin Bigler (1):
spi: spi-imx: correctly configure burst length when using dma
Boris Burkov (1):
btrfs: free qgroup pertrans reserve on transaction abort
Can Guo (1):
scsi: ufs: core: Let the sq_lock protect sq_tail_slot access
Carolina Jubran (1):
net/mlx5e: XDP, Drop fragmented packets larger than MTU size
ChanWoo Lee (1):
scsi: ufs: qcom: Return ufs_qcom_clk_scale_*() errors in ufs_qcom_clk_scale_notify()
Chen-Yu Tsai (1):
wifi: cfg80211: Add my certificate
Chris Mi (1):
net/mlx5e: Decrease num_block_tc when unblock tc offload
Christoffer Sandberg (1):
Input: soc_button_array - add mapping for airplane mode button
Chuck Lever (1):
SUNRPC: Revert 5f7fc5d69f6e92ec0b38774c387f5cf7812c5806
Chukun Pan (1):
arm64: dts: allwinner: h616: update emac for Orange Pi Zero 3
Clément Villeret (1):
ALSA: hda/realtek: Add quirk for ASUS ROG GV302XA
Dan Carpenter (3):
net/mlx5e: Fix error code in mlx5e_tc_action_miss_mapping_get() net/mlx5e: Fix error codes in alloc_branch_attr()
usb: fotg210-hcd: delete an incorrect bounds test
Daniel Golle (1):
net: phy: skip LED triggers on PHYs on SFP modules
Dave Ertman (1):
ice: alter feature support check for SRIOV and LAG
David Ahern (1):
net/ipv6: Revert remove expired routes with a separated list of routes
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
Felix Fietkau (1):
wifi: mt76: fix crash with WED rx support enabled
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
George Stark (1):
iio: adc: meson: add separate config for axg SoC family
Gergo Koteles (2):
ALSA: hda/tas2781: select program 0, conf 0 by default
ASoC: tas2781: check the validity of prm_no/cfg_no
Greg Kroah-Hartman (1):
Linux 6.6.9
Haibo Chen (1):
iio: adc: imx93: add four channels for imx93 adc
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
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
Imre Deak (1):
drm/i915/mtl: Fix HDMI/DP PLL clock selection
JP Kobryn (1):
9p: prevent read overrun in protocol dump tracepoint
Jacob Keller (1):
ice: stop trashing VF VSI aggregator node ID information
Jani Nikula (1):
drm/i915/edp: don't write to DP_LINK_BW_SET when using rate select
Javier Carrasco (2):
iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table
iio: tmag5273: fix temperature offset
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
Jianbo Liu (1):
net/mlx5e: Fix overrun reported by coverity
Jiri Olsa (1):
bpf: Fix prog_array_map_poke_run map poke update
Johan Hovold (1):
usb: typec: ucsi: fix gpio-based orientation detection
Johannes Berg (7):
wifi: ieee80211: don't require protected vendor action frames
wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lock
wifi: mac80211: don't re-add debugfs during reconfig
wifi: mac80211: check defragmentation succeeded
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
John Fastabend (1):
bpf: syzkaller found null ptr deref in unix_bpf proto add
Jose Ignacio Tornos Martinez (1):
net: usb: ax88179_178a: avoid failed operations when device is disconnected
Karthik Poosa (1):
drm/i915/hwmon: Fix static analysis tool reported issues
Kent Gibson (1):
gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()
Konrad Dybcio (1):
interconnect: qcom: sm8250: Enable sync_state
Kunwu Chan (1):
ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
Lai Peter Jun Ann (1):
net: stmmac: fix incorrect flag check in timestamp interrupt
Larysa Zaremba (1):
ice: Fix PF with enabled XDP going no-carrier after reset
Lingkai Dong (1):
drm: Fix FD ownership check in drm_master_check_perm()
Liu Jian (1):
net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
Lorenzo Bianconi (1):
net: ethernet: mtk_wed: fix possible NULL pointer dereference in mtk_wed_wo_queue_tx_clean()
Louis Chauvet (1):
spi: atmel: Fix clock issue when using devices with different polarities
Luiz Augusto von Dentz (3):
Bluetooth: Fix not notifying when connection encryption changes
Bluetooth: hci_core: Fix hci_conn_hash_lookup_cis
Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
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
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"
Mathieu Desnoyers (1):
ring-buffer: Fix 32-bit rb_time_read() race with rb_time_cmpxchg()
Matti Vaittinen (1):
iio: kx022a: Fix acceleration value scaling
Maurizio Lombardi (1):
nvme-pci: fix sleeping function called from interrupt context
Michal Schmidt (1):
ice: fix theoretical out-of-bounds access in ethtool link modes
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()
Miquel Raynal (2):
spi: atmel: Do not cancel a transfer upon any signal
spi: atmel: Prevent spi transfers from being killed
Moshe Shemesh (1):
net/mlx5: Fix fw tracer first block check
Nam Cao (3):
pinctrl: starfive: jh7110: ignore disabled device tree nodes
pinctrl: starfive: jh7100: ignore disabled device tree nodes
spi: cadence: revert "Add SPI transfer delays"
NeilBrown (1):
nfsd: call nfsd_last_thread() before final nfsd_put()
Nuno Sa (1):
iio: imu: adis16475: add spi_device_id table
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()
Qu Wenruo (2):
btrfs: qgroup: iterate qgroups without memory allocation for qgroup_reserve()
btrfs: qgroup: use qgroup_iterator in qgroup_convert_meta()
Quan Nguyen (1):
i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
Rafał Miłecki (1):
nvmem: brcm_nvram: store a copy of NVRAM content
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
Rajvi Jingar (1):
platform/x86/intel/pmc: Fix hang in pmc_core_send_ltr_ignore()
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 (2):
mm/damon/core: use number of passed access sampling as a timer mm/damon/core: make damon_start() waits until kdamond_fn() starts
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) (3):
ring-buffer: Remove useless update to write_stamp in rb_try_to_discard()
ring-buffer: Fix slowpath of interrupted event
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
Tasos Sahanidis (1):
usb-storage: Add quirk for incorrect WP on Kingston DT Ultimate 3.0 G3
Thomas Gleixner (3):
x86/alternatives: Sync core before enabling interrupts x86/alternatives: Disable interrupts and sync when optimizing NOPs in place x86/smpboot/64: Handle X2APIC BIOS inconsistency gracefully
Thomas Weißschuh (1):
net: avoid build bug in skb extension length calculation
Tony Lindgren (2):
ARM: dts: Fix occasional boot hang for am3 usb
bus: ti-sysc: Flush posted write only after srst_udelay
Tvrtko Ursulin (1):
drm: Update file owner during use
Ville Syrjälä (4):
drm/i915: Fix FEC state dump
drm/i915: Introduce crtc_state->enhanced_framing drm/i915: Reject async flips with bigjoiner drm/i915/dmc: Don't enable any pipe DMC events
Vlad Buslov (3):
Revert "net/mlx5e: fix double free of encap_header in update funcs" Revert "net/mlx5e: fix double free of encap_header" net/mlx5: Refactor mlx5_flow_destination->rep pointer to vport num
Vladimir Oltean (2):
net: mscc: ocelot: fix eMAC TX RMON stats for bucket 256-511 and above
net: mscc: ocelot: fix pMAC 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
Yang Yingliang (1):
i2c: qcom-geni: fix missing clk_disable_unprepare() and geni_se_resources_off()
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
ZhenGuo Yin (1):
drm/amdgpu: re-create idle bo's PTE during VM state machine reset
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 reg: maxItems: 1
@@ -34,7 +36,7 @@ unevaluatedProperties: 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 = 6 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
arch/arm/boot/dts/ti/omap/am33xx.dtsi +1 -0
@@ -359,6 +359,7 @@ usb: target-module@47400000 { <SYSC_IDLE_NO>, <SYSC_IDLE_SMART>, <SYSC_IDLE_SMART_WKUP>; + ti,sysc-delay-us = <2>; clocks = <&l3s_clkctrl AM3_L3S_USB_OTG_HS_CLKCTRL 0>; clock-names = "fck"; #address-cells = <1>;
arch/arm/boot/dts/ti/omap/dra7.dtsi +1 -1
@@ -147,7 +147,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/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi +0 -3
@@ -68,10 +68,7 @@ &ehci1 { &emac0 { pinctrl-names = "default"; pinctrl-0 = <&ext_rgmii_pins>; - phy-mode = "rgmii"; phy-handle = <&ext_rgmii_phy>; - allwinner,rx-delay-ps = <3100>; - allwinner,tx-delay-ps = <700>; status = "okay"; };
arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts +3 -0
@@ -13,6 +13,9 @@ / { }; &emac0 { + allwinner,rx-delay-ps = <3100>; + allwinner,tx-delay-ps = <700>; + phy-mode = "rgmii"; phy-supply = <®_dcdce>; };
arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts +2 -0
@@ -13,6 +13,8 @@ / { }; &emac0 { + allwinner,tx-delay-ps = <700>; + phy-mode = "rgmii-rxid"; phy-supply = <®_dldo1>; };
arch/arm64/kvm/arm.c +1 -1
@@ -407,7 +407,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
@@ -241,6 +241,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/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 +12 -2
@@ -255,6 +255,16 @@ static void __init_or_module noinline optimize_nops(u8 *instr, size_t len) } } +static void __init_or_module noinline optimize_nops_inplace(u8 *instr, size_t len) +{ +unsigned long flags; + +local_irq_save (flags); +optimize_nops (instr, len); +sync_core (); +local_irq_restore (flags); +} +/* * In this context, "source" is where the instructions are placed in the * section .altinstr_replacement, for example during kernel build by the
@@ -438,7 +448,7 @@ void __init_or_module noinline apply_alternatives(struct alt_instr *start,* patch if feature is *NOT* present. */ if (!boot_cpu_has (a->cpuid) == !(a->flags &ALT_FLAG_NOT )) { -optimize_nops (instr, a->instrlen); +optimize_nops_inplace (instr, a->instrlen);continue ; }
@@ -1685,8 +1695,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/kernel/head_64.S +16 -0
@@ -256,6 +256,22 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL) testl $X2APIC_ENABLE, %eax jnz .Lread_apicid_msr +#ifdef CONFIG_X86_X2APIC + /* + * If system is in X2APIC mode then MMIO base might not be + * mapped causing the MMIO read below to fault. Faults can't + * be handled at that point. + */ + cmpl $0, x2apic_mode(%rip) + jz .Lread_apicid_mmio + + /* Force the AP into X2APIC mode. */ + orl $X2APIC_ENABLE, %eax + wrmsr + jmp .Lread_apicid_msr +#endif + +.Lread_apicid_mmio: /* Read the APIC ID from the fix-mapped MMIO space. */ movq apic_mmio_base(%rip), %rcx addq $APIC_ID, %rcx
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/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 ; }
@@ -464,7 +465,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
@@ -2158,13 +2158,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
@@ -2482,10 +2482,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;
@@ -2522,6 +2519,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/amdgpu/amdgpu_gem.c +4 -2
@@ -962,6 +962,7 @@ static int amdgpu_debugfs_gem_info_show(struct seq_file *m, void *unused)list_for_each_entry (file, &dev->filelist, lhead) {struct task_struct *task;struct drm_gem_object *gobj; +struct pid *pid;int id;/*
@@ -971,8 +972,9 @@ static int amdgpu_debugfs_gem_info_show(struct seq_file *m, void *unused)* Therefore, we need to protect this ->comm access using RCU. */ rcu_read_lock (); - task =pid_task (file->pid,PIDTYPE_TGID ); -seq_printf (m,"pid %8d command %s:\n" ,pid_nr (file->pid), + pid =rcu_dereference (file->pid); + task =pid_task (pid,PIDTYPE_TGID ); +seq_printf (m,"pid %8d command %s:\n" ,pid_nr (pid), task ? task->comm :"<unknown>" );rcu_read_unlock ();
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -0
@@ -285,6 +285,7 @@ static void amdgpu_vm_bo_reset_state_machine(struct amdgpu_vm *vm)list_for_each_entry_safe (vm_bo, tmp, &vm->idle, vm_status) {struct amdgpu_bo *bo = vm_bo->bo; + vm_bo->moved = true;if (!bo || bo->tbo.type != ttm_bo_type_kernel)list_move (&vm_bo->vm_status, &vm_bo->vm->moved);else if (bo->parent)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +3 -0
@@ -5170,6 +5170,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
@@ -3407,7 +3407,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/drm_auth.c +2 -1
@@ -235,7 +235,8 @@ static int drm_new_set_master(struct drm_device *dev, struct drm_file *fpriv)static int drm_master_check_perm (struct drm_device *dev,struct drm_file *file_priv) { -if (file_priv->pid ==task_pid (current) && file_priv->was_master) +if (file_priv->was_master && +rcu_access_pointer (file_priv->pid) ==task_tgid (current))return 0 ;if (!capable (CAP_SYS_ADMIN ))
drivers/gpu/drm/drm_debugfs.c +6 -4
@@ -92,15 +92,17 @@ static int drm_clients_info(struct seq_file *m, void *data)*/ mutex_lock (&dev->filelist_mutex);list_for_each_entry_reverse (priv, &dev->filelist, lhead) { -struct task_struct *task;bool is_current_master =drm_is_current_master (priv); +struct task_struct *task; +struct pid *pid; -rcu_read_lock ();/* locks pid_task()->comm */ - task =pid_task (priv->pid,PIDTYPE_TGID ); +rcu_read_lock ();/* Locks priv->pid and pid_task()->comm! */ + pid =rcu_dereference (priv->pid); + task =pid_task (pid,PIDTYPE_TGID ); uid = task ?__task_cred (task)->euid :GLOBAL_ROOT_UID ; seq_printf(m, "%20s %5d %3d %c %c %5d %10u\n", task ? task->comm : "<unknown>", - pid_vnr(priv->pid), + pid_vnr(pid), priv->minor->index, is_current_master ? 'y' : 'n', priv->authenticated ? 'y' : 'n',
drivers/gpu/drm/drm_file.c +37 -3
@@ -160,7 +160,7 @@ struct drm_file *drm_file_alloc(struct drm_minor *minor)/* Get a unique identifier for fdinfo: */ file->client_id =atomic64_inc_return (&ident); - file->pid =get_pid (task_tgid (current)); +rcu_assign_pointer (file->pid,get_pid (task_tgid (current))); file->minor = minor;/* for compatibility root is always authenticated */
@@ -200,7 +200,7 @@ struct drm_file *drm_file_alloc(struct drm_minor *minor)drm_syncobj_release (file);if (drm_core_check_feature (dev,DRIVER_GEM ))drm_gem_release (dev, file); -put_pid (file->pid); +put_pid (rcu_access_pointer (file->pid));kfree (file);return ERR_PTR (ret);
@@ -291,7 +291,7 @@ void drm_file_free(struct drm_file *file)WARN_ON (!list_empty (&file->event_list)); -put_pid (file->pid); +put_pid (rcu_access_pointer (file->pid));kfree (file); }
@@ -505,6 +505,40 @@ int drm_release(struct inode *inode, struct file *filp) }EXPORT_SYMBOL (drm_release); +void drm_file_update_pid (struct drm_file *filp) +{ +struct drm_device *dev; +struct pid *pid, *old; + +/* +* Master nodes need to keep the original ownership in order for +* drm_master_check_perm to keep working correctly. (See comment in +* drm_auth.c.) +*/ +if (filp->was_master) +return ; + + pid =task_tgid (current); + +/* +* Quick unlocked check since the model is a single handover followed by +* exclusive repeated use. +*/ +if (pid ==rcu_access_pointer (filp->pid)) +return ; + + dev = filp->minor->dev; +mutex_lock (&dev->filelist_mutex); + old =rcu_replace_pointer (filp->pid, pid,1 ); +mutex_unlock (&dev->filelist_mutex); + +if (pid != old) { +get_pid (pid); +synchronize_rcu (); +put_pid (old); + } +} +/** * drm_release_noglobal - release method for DRM file * @inode: device inode
drivers/gpu/drm/drm_ioctl.c +3 -0
@@ -776,6 +776,9 @@ long drm_ioctl_kernel(struct file *file, drm_ioctl_t *func, void *kdata,struct drm_device *dev = file_priv->minor->dev;int retcode; +/* Update drm_file owner if fd was passed along. */ +drm_file_update_pid (file_priv); +if (drm_dev_is_unplugged (dev))return -ENODEV ;
drivers/gpu/drm/i915/display/g4x_dp.c +8 -2
@@ -141,7 +141,7 @@ static void intel_dp_prepare(struct intel_encoder *encoder,intel_de_rmw (dev_priv,TRANS_DP_CTL (crtc->pipe),TRANS_DP_ENH_FRAMING , -drm_dp_enhanced_frame_cap (intel_dp->dpcd) ? + pipe_config->enhanced_framing ?TRANS_DP_ENH_FRAMING :0 ); }else {if (IS_G4X (dev_priv) && pipe_config->limited_color_range)
@@ -153,7 +153,7 @@ static void intel_dp_prepare(struct intel_encoder *encoder, intel_dp->DP |=DP_SYNC_VS_HIGH ; intel_dp->DP |=DP_LINK_TRAIN_OFF ; -if (drm_dp_enhanced_frame_cap (intel_dp->dpcd)) +if (pipe_config->enhanced_framing) intel_dp->DP |=DP_ENHANCED_FRAMING ;if (IS_CHERRYVIEW (dev_priv))
@@ -351,6 +351,9 @@ static void intel_dp_get_config(struct intel_encoder *encoder,u32 trans_dp =intel_de_read (dev_priv,TRANS_DP_CTL (crtc->pipe)); +if (trans_dp &TRANS_DP_ENH_FRAMING ) + pipe_config->enhanced_framing = true; +if (trans_dp &TRANS_DP_HSYNC_ACTIVE_HIGH ) flags |=DRM_MODE_FLAG_PHSYNC ;else
@@ -361,6 +364,9 @@ static void intel_dp_get_config(struct intel_encoder *encoder,else flags |=DRM_MODE_FLAG_NVSYNC ; }else { +if (tmp &DP_ENHANCED_FRAMING ) + pipe_config->enhanced_framing = true; +if (tmp &DP_SYNC_HS_HIGH ) flags |=DRM_MODE_FLAG_PHSYNC ;else
drivers/gpu/drm/i915/display/intel_crt.c +2 -0
@@ -456,6 +456,8 @@ static int hsw_crt_compute_config(struct intel_encoder *encoder,/* FDI must always be 2.7 GHz */ pipe_config->port_clock =135000 *2 ; + pipe_config->enhanced_framing = true; + adjusted_mode->crtc_clock =lpt_iclkip (pipe_config);return 0 ;
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c +3 -0
@@ -258,6 +258,9 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,intel_dump_m_n_config (pipe_config,"dp m2_n2" , pipe_config->lane_count, &pipe_config->dp_m2_n2); +drm_dbg_kms (&i915->drm,"fec: %s, enhanced framing: %s\n" , +str_enabled_disabled (pipe_config->fec_enable), +str_enabled_disabled (pipe_config->enhanced_framing)); } drm_dbg_kms(&i915->drm, "framestart delay: %d, MSA timing delay: %d\n",
drivers/gpu/drm/i915/display/intel_cx0_phy.c +2 -1
@@ -2420,7 +2420,8 @@ static void intel_program_port_clock_ctl(struct intel_encoder *encoder, val |=XELPDP_FORWARD_CLOCK_UNGATE ; -if (is_hdmi_frl (crtc_state->port_clock)) +if (intel_crtc_has_type (crtc_state,INTEL_OUTPUT_HDMI ) && +is_hdmi_frl (crtc_state->port_clock)) val |=XELPDP_DDI_CLOCK_SELECT (XELPDP_DDI_CLOCK_SELECT_DIV18CLK );else val |=XELPDP_DDI_CLOCK_SELECT (XELPDP_DDI_CLOCK_SELECT_MAXPCLK );
drivers/gpu/drm/i915/display/intel_ddi.c +11 -11
@@ -3432,7 +3432,7 @@ static void mtl_ddi_prepare_link_retrain(struct intel_dp *intel_dp, dp_tp_ctl |=DP_TP_CTL_MODE_MST ; }else { dp_tp_ctl |=DP_TP_CTL_MODE_SST ; -if (drm_dp_enhanced_frame_cap (intel_dp->dpcd)) +if (crtc_state->enhanced_framing) dp_tp_ctl |=DP_TP_CTL_ENHANCED_FRAME_ENABLE ; }intel_de_write (dev_priv,dp_tp_ctl_reg (encoder, crtc_state), dp_tp_ctl);
@@ -3489,7 +3489,7 @@ static void intel_ddi_prepare_link_retrain(struct intel_dp *intel_dp, dp_tp_ctl |=DP_TP_CTL_MODE_MST ; }else { dp_tp_ctl |=DP_TP_CTL_MODE_SST ; -if (drm_dp_enhanced_frame_cap (intel_dp->dpcd)) +if (crtc_state->enhanced_framing) dp_tp_ctl |=DP_TP_CTL_ENHANCED_FRAME_ENABLE ; }intel_de_write (dev_priv,dp_tp_ctl_reg (encoder, crtc_state), dp_tp_ctl);
@@ -3724,17 +3724,14 @@ static void intel_ddi_read_func_ctl(struct intel_encoder *encoder,intel_cpu_transcoder_get_m2_n2 (crtc, cpu_transcoder, &pipe_config->dp_m2_n2); -if (DISPLAY_VER (dev_priv) >=11 ) { -i915_reg_t dp_tp_ctl =dp_tp_ctl_reg (encoder, pipe_config); + pipe_config->enhanced_framing = +intel_de_read (dev_priv,dp_tp_ctl_reg (encoder, pipe_config)) & +DP_TP_CTL_ENHANCED_FRAME_ENABLE ; +if (DISPLAY_VER (dev_priv) >=11 ) pipe_config->fec_enable = -intel_de_read (dev_priv, dp_tp_ctl) &DP_TP_CTL_FEC_ENABLE ; - -drm_dbg_kms (&dev_priv->drm, -"[ENCODER:%d:%s] Fec status: %u\n" , - encoder->base.base.id, encoder->base.name, - pipe_config->fec_enable); - } +intel_de_read (dev_priv, +dp_tp_ctl_reg (encoder, pipe_config)) &DP_TP_CTL_FEC_ENABLE ;if (dig_port->lspcon.active &&intel_dp_has_hdmi_sink (&dig_port->dp)) pipe_config->infoframes.enable |=
@@ -3747,6 +3744,9 @@ static void intel_ddi_read_func_ctl(struct intel_encoder *encoder,if (!HAS_DP20 (dev_priv)) {/* FDI */ pipe_config->output_types |=BIT (INTEL_OUTPUT_ANALOG ); + pipe_config->enhanced_framing = +intel_de_read (dev_priv,dp_tp_ctl_reg (encoder, pipe_config)) & +DP_TP_CTL_ENHANCED_FRAME_ENABLE ;break ; } fallthrough;/* 128b/132b */
drivers/gpu/drm/i915/display/intel_display.c +12 -0
@@ -5255,6 +5255,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,PIPE_CONF_CHECK_BOOL (hdmi_scrambling);PIPE_CONF_CHECK_BOOL (hdmi_high_tmds_clock_ratio);PIPE_CONF_CHECK_BOOL (has_infoframe); +PIPE_CONF_CHECK_BOOL (enhanced_framing);PIPE_CONF_CHECK_BOOL (fec_enable);PIPE_CONF_CHECK_BOOL_INCOMPLETE (has_audio);
@@ -5976,6 +5977,17 @@ static int intel_async_flip_check_hw(struct intel_atomic_state *state, struct inreturn -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_display_types.h +2 -0
@@ -1362,6 +1362,8 @@ struct intel_crtc_state {u16 linetime;u16 ips_linetime; +bool enhanced_framing; +/* Forward Error correction State */ bool fec_enable;
drivers/gpu/drm/i915/display/intel_dmc.c +41 -2
61 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dp.c +3 -0
@@ -2312,6 +2312,9 @@ intel_dp_compute_config(struct intel_encoder *encoder, pipe_config->limited_color_range =intel_dp_limited_color_range (pipe_config, conn_state); + pipe_config->enhanced_framing = +drm_dp_enhanced_frame_cap (intel_dp->dpcd); +if (pipe_config->dsc.compression_enable) output_bpp = pipe_config->dsc.compressed_bpp;else
drivers/gpu/drm/i915/display/intel_dp_link_training.c +23 -12
@@ -650,19 +650,30 @@ intel_dp_update_link_bw_set(struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state, u8 link_bw, u8 rate_select) { - u8 link_config[2]; + u8 lane_count = crtc_state->lane_count; + +if (crtc_state->enhanced_framing) + lane_count |=DP_LANE_COUNT_ENHANCED_FRAME_EN ; -/* Write the link configuration data */ - link_config[0 ] = link_bw; - link_config[1 ] = crtc_state->lane_count; -if (drm_dp_enhanced_frame_cap (intel_dp->dpcd)) - link_config[1 ] |=DP_LANE_COUNT_ENHANCED_FRAME_EN ; -drm_dp_dpcd_write (&intel_dp->aux,DP_LINK_BW_SET , link_config,2 ); - -/* eDP 1.4 rate select method. */ -if (!link_bw) -drm_dp_dpcd_write (&intel_dp->aux,DP_LINK_RATE_SET , - &rate_select,1 ); +if (link_bw) { +/* DP and eDP v1.3 and earlier link bw set method. */ +u8 link_config[] = { link_bw, lane_count }; + +drm_dp_dpcd_write (&intel_dp->aux,DP_LINK_BW_SET , link_config, +ARRAY_SIZE (link_config)); + }else { +/* +* eDP v1.4 and later link rate set method. +* +* eDP v1.4x sinks shall ignore DP_LINK_RATE_SET if +* DP_LINK_BW_SET is set. Avoid writing DP_LINK_BW_SET. +* +* eDP v1.5 sinks allow choosing either, and the last choice +* shall be active. +*/ +drm_dp_dpcd_writeb (&intel_dp->aux,DP_LANE_COUNT_SET , lane_count); +drm_dp_dpcd_writeb (&intel_dp->aux,DP_LINK_RATE_SET , rate_select); + } }/*
drivers/gpu/drm/i915/i915_hwmon.c +2 -2
@@ -175,7 +175,7 @@ hwm_power1_max_interval_show(struct device *dev, struct device_attribute *attr,* tau4 = (4 | x) << y * but add 2 when doing the final right shift to account for units */ - tau4 = ((1 << x_w) | x) << y; + tau4 = (u64)((1 << x_w) | x) << y;/* val in hwmon interface units (millisec) */ out =mul_u64_u32_shr (tau4,SF_TIME , hwmon->scl_shift_time + x_w);
@@ -211,7 +211,7 @@ hwm_power1_max_interval_store(struct device *dev, r =FIELD_PREP (PKG_MAX_WIN ,PKG_MAX_WIN_DEFAULT ); x =REG_FIELD_GET (PKG_MAX_WIN_X , r); y =REG_FIELD_GET (PKG_MAX_WIN_Y , r); - tau4 = ((1 << x_w) | x) << y; + tau4 = (u64)((1 << x_w) | x) << y; max_win =mul_u64_u32_shr (tau4,SF_TIME , hwmon->scl_shift_time + x_w);if (val > max_win)
drivers/gpu/drm/nouveau/nouveau_drm.c +4 -1
@@ -1133,7 +1133,10 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) }get_task_comm (tmpname, current); -snprintf (name,sizeof (name),"%s[%d]" , tmpname,pid_nr (fpriv->pid)); +rcu_read_lock (); +snprintf (name,sizeof (name),"%s[%d]" , + tmpname,pid_nr (rcu_dereference (fpriv->pid))); +rcu_read_unlock ();if (!(cli =kzalloc (sizeof (*cli),GFP_KERNEL ))) { ret = -ENOMEM ;
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c +4 -2
@@ -244,6 +244,7 @@ static int vmw_debugfs_gem_info_show(struct seq_file *m, void *unused)list_for_each_entry (file, &dev->filelist, lhead) {struct task_struct *task;struct drm_gem_object *gobj; +struct pid *pid;int id;/*
@@ -253,8 +254,9 @@ static int vmw_debugfs_gem_info_show(struct seq_file *m, void *unused)* Therefore, we need to protect this ->comm access using RCU. */ rcu_read_lock (); - task =pid_task (file->pid,PIDTYPE_TGID ); -seq_printf (m,"pid %8d command %s:\n" ,pid_nr (file->pid), + pid =rcu_dereference (file->pid); + task =pid_task (pid,PIDTYPE_TGID ); +seq_printf (m,"pid %8d command %s:\n" ,pid_nr (pid), task ? task->comm :"<unknown>" );rcu_read_unlock ();
drivers/i2c/busses/i2c-aspeed.c +32 -16
75 lines not on this page · raw message
drivers/i2c/busses/i2c-qcom-geni.c +7 -1
@@ -857,6 +857,7 @@ static int geni_i2c_probe(struct platform_device *pdev) ret =geni_se_resources_on (&gi2c->se);if (ret) {dev_err (dev,"Error turning on resources %d\n" , ret); +clk_disable_unprepare (gi2c->core_clk);return ret; } proto =geni_se_read_proto (&gi2c->se);
@@ -876,8 +877,11 @@ static int geni_i2c_probe(struct platform_device *pdev)/* FIFO is disabled, so we can only use GPI DMA */ gi2c->gpi_mode = true; ret =setup_gpi_dma (gi2c); -if (ret) +if (ret) { +geni_se_resources_off (&gi2c->se); +clk_disable_unprepare (gi2c->core_clk);return dev_err_probe (dev, ret,"Failed to setup GPI DMA mode\n" ); + }dev_dbg (dev,"Using GPI DMA mode for I2C\n" ); }else {
@@ -890,6 +894,8 @@ static int geni_i2c_probe(struct platform_device *pdev)if (!tx_depth) {dev_err (dev,"Invalid TX FIFO depth\n" ); +geni_se_resources_off (&gi2c->se); +clk_disable_unprepare (gi2c->core_clk);return -EINVAL ; }
drivers/iio/accel/kionix-kx022a.c +26 -11
@@ -273,17 +273,17 @@ static const unsigned int kx022a_odrs[] = {* (range / 2^bits) * g = (range / 2^bits) * 9.80665 m/s^2 * => KX022A uses 16 bit (HiRes mode - assume the low 8 bits are zeroed * in low-power mode(?) ) -* => +/-2G => 4 / 2^16 * 9,80665 * 10^6 (to scale to micro) -* => +/-2G - 598.550415 -* +/-4G - 1197.10083 -* +/-8G - 2394.20166 -* +/-16G - 4788.40332 +* => +/-2G => 4 / 2^16 * 9,80665 +* => +/-2G - 0.000598550415 +* +/-4G - 0.00119710083 +* +/-8G - 0.00239420166 +* +/-16G - 0.00478840332 */ static const int kx022a_scale_table[][2 ] = { - {598 ,550415 }, - {1197 ,100830 }, - {2394 ,201660 }, - {4788 ,403320 }, + {0 ,598550 }, + {0 ,1197101 }, + {0 ,2394202 }, + {0 ,4788403 }, }; static int kx022a_read_avail(struct iio_dev *indio_dev,
@@ -302,7 +302,7 @@ static int kx022a_read_avail(struct iio_dev *indio_dev, *vals = (const int *)kx022a_scale_table; *length =ARRAY_SIZE (kx022a_scale_table) *ARRAY_SIZE (kx022a_scale_table[0 ]); - *type =IIO_VAL_INT_PLUS_MICRO ; + *type =IIO_VAL_INT_PLUS_NANO ;return IIO_AVAIL_LIST ;default :return -EINVAL ;
@@ -366,6 +366,20 @@ static int kx022a_turn_on_unlock(struct kx022a_data *data)return ret; } +static int kx022a_write_raw_get_fmt (struct iio_dev *idev, +struct iio_chan_spec const *chan, +long mask) +{ +switch (mask) { +case IIO_CHAN_INFO_SCALE : +return IIO_VAL_INT_PLUS_NANO ; +case IIO_CHAN_INFO_SAMP_FREQ : +return IIO_VAL_INT_PLUS_MICRO ; +default : +return -EINVAL ; + } +} +static int kx022a_write_raw (struct iio_dev *idev,struct iio_chan_spec const *chan,int val,int val2,long mask)
@@ -510,7 +524,7 @@ static int kx022a_read_raw(struct iio_dev *idev,kx022a_reg2scale (regval, val, val2); -return IIO_VAL_INT_PLUS_MICRO ; +return IIO_VAL_INT_PLUS_NANO ; }return -EINVAL ;
@@ -712,6 +726,7 @@ static int kx022a_fifo_flush(struct iio_dev *idev, unsigned int samples)static const struct iio_info kx022a_info = { .read_raw = &kx022a_read_raw, .write_raw = &kx022a_write_raw, + .write_raw_get_fmt = &kx022a_write_raw_get_fmt, .read_avail = &kx022a_read_avail, .validate_trigger = iio_validate_own_trigger,
drivers/iio/adc/imx93_adc.c +4 -0
@@ -93,6 +93,10 @@ static const struct iio_chan_spec imx93_adc_iio_channels[] = {IMX93_ADC_CHAN (1 ),IMX93_ADC_CHAN (2 ),IMX93_ADC_CHAN (3 ), +IMX93_ADC_CHAN (4 ), +IMX93_ADC_CHAN (5 ), +IMX93_ADC_CHAN (6 ), + IMX93_ADC_CHAN(7), };static void imx93_adc_power_down (struct imx93_adc *adc)
drivers/iio/adc/meson_saradc.c +15 -1
@@ -1239,6 +1239,20 @@ static const struct meson_sar_adc_param meson_sar_adc_gxl_param = { .cmv_select = 1, }; +static const struct meson_sar_adc_param meson_sar_adc_axg_param = { + .has_bl30_integration = true, + .clock_rate =1200000 , + .bandgap_reg =MESON_SAR_ADC_REG11 , + .regmap_config = &meson_sar_adc_regmap_config_gxbb, + .resolution =12 , + .disable_ring_counter =1 , + .has_reg11 = true, + .vref_volatge =1 , + .has_vref_select = true, + .vref_select =VREF_VDDA , + .cmv_select =1 , +}; +static const struct meson_sar_adc_param meson_sar_adc_g12a_param = { .has_bl30_integration = false, .clock_rate =1200000 ,
@@ -1283,7 +1297,7 @@ static const struct meson_sar_adc_data meson_sar_adc_gxm_data = { };static const struct meson_sar_adc_data meson_sar_adc_axg_data = { - .param = &meson_sar_adc_gxl_param, + .param = &meson_sar_adc_axg_param, .name ="meson-axg-saradc" , };
drivers/iio/adc/ti_am335x_adc.c +3 -1
@@ -670,8 +670,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/adis16475.c +72 -45
141 lines not on this page · raw message
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +2 -2
@@ -749,13 +749,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/iio/magnetometer/tmag5273.c +1 -1
@@ -356,7 +356,7 @@ static int tmag5273_read_raw(struct iio_dev *indio_dev,case IIO_CHAN_INFO_OFFSET :switch (chan->type) {case IIO_TEMP : - *val =-266314 ; + *val =-16005 ;return IIO_VAL_INT ;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
@@ -395,6 +395,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
@@ -1995,6 +1995,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-integrity.c +6 -5
@@ -1765,11 +1765,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 {
@@ -1778,7 +1779,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,
@@ -1803,9 +1804,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/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/broadcom/bnxt/bnxt_xdp.c +2 -9
@@ -59,7 +59,6 @@ struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp,for (i =0 ; i < num_frags ; i++) {skb_frag_t *frag = &sinfo->frags[i];struct bnxt_sw_tx_bd *frag_tx_buf; -struct pci_dev *pdev = bp->pdev;dma_addr_t frag_mapping;int frag_len;
@@ -73,16 +72,10 @@ struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp, txbd = &txr->tx_desc_ring[TX_RING (prod)][TX_IDX (prod)]; frag_len =skb_frag_size (frag); - frag_mapping =skb_frag_dma_map (&pdev->dev, frag,0 , - frag_len,DMA_TO_DEVICE ); - -if (unlikely (dma_mapping_error (&pdev->dev, frag_mapping))) -return NULL ; - -dma_unmap_addr_set (frag_tx_buf, mapping, frag_mapping); - flags = frag_len <<TX_BD_LEN_SHIFT ; txbd->tx_bd_len_flags_type =cpu_to_le32 (flags); + frag_mapping =page_pool_get_dma_addr (skb_frag_page (frag)) + +skb_frag_off (frag); txbd->tx_bd_haddr =cpu_to_le64 (frag_mapping); len = frag_len;
drivers/net/ethernet/intel/ice/ice_ethtool.c +2 -2
@@ -1757,14 +1757,14 @@ ice_phy_type_to_ethtool(struct net_device *netdev,linkmode_zero (ks->link_modes.supported);linkmode_zero (ks->link_modes.advertising); -for (i =0 ; i <BITS_PER_TYPE (u64); i++) { +for (i =0 ; i <ARRAY_SIZE (phy_type_low_lkup); i++) {if (phy_types_low &BIT_ULL (i))ice_linkmode_set_bit (&phy_type_low_lkup[i], ks, req_speeds, advert_phy_type_lo, i); } -for (i =0 ; i <BITS_PER_TYPE (u64); i++) { +for (i =0 ; i <ARRAY_SIZE (phy_type_high_lkup); i++) {if (phy_types_high &BIT_ULL (i)) ice_linkmode_set_bit(&phy_type_high_lkup[i], ks, req_speeds, advert_phy_type_hi,
drivers/net/ethernet/intel/ice/ice_lag.c +2 -0
@@ -1963,6 +1963,8 @@ int ice_init_lag(struct ice_pf *pf)int n, err;ice_lag_init_feature_support_flag (pf); +if (!ice_is_feature_supported (pf,ICE_F_SRIOV_LAG )) +return 0 ; pf->lag =kzalloc (sizeof (*lag),GFP_KERNEL );if (!pf->lag)
drivers/net/ethernet/intel/ice/ice_lib.c +3 -4
@@ -2384,6 +2384,9 @@ static int ice_vsi_cfg_tc_lan(struct ice_pf *pf, struct ice_vsi *vsi) }else { max_txqs[i] = vsi->alloc_txq; } + +if (vsi->type ==ICE_VSI_PF ) + max_txqs[i] += vsi->num_xdp_txq; }dev_dbg (dev,"vsi->tc_cfg.ena_tc = %d\n" , vsi->tc_cfg.ena_tc);
@@ -2633,10 +2636,6 @@ void ice_vsi_decfg(struct ice_vsi *vsi)if (vsi->type ==ICE_VSI_VF && vsi->agg_node && vsi->agg_node->valid) vsi->agg_node->num_vsis--; -if (vsi->agg_node) { - vsi->agg_node->valid = false; - vsi->agg_node->agg_id =0 ; - } }/**
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/mediatek/mtk_wed_wo.c +3 -0
@@ -291,6 +291,9 @@ mtk_wed_wo_queue_tx_clean(struct mtk_wed_wo *wo, struct mtk_wed_wo_queue *q)for (i =0 ; i < q->n_desc; i++) {struct mtk_wed_wo_queue_entry *entry = &q->entry[i]; +if (!entry->buf) +continue ; +dma_unmap_single (wo->hw->dev, entry->addr, entry->len,DMA_TO_DEVICE );skb_free_frag (entry->buf);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +7 -5
@@ -156,15 +156,18 @@ static u8 alloc_token(struct mlx5_cmd *cmd)return token; } -static int cmd_alloc_index (struct mlx5_cmd *cmd) +static int cmd_alloc_index (struct mlx5_cmd *cmd,struct mlx5_cmd_work_ent *ent) {unsigned long flags;int ret;spin_lock_irqsave (&cmd->alloc_lock, flags); ret =find_first_bit (&cmd->vars.bitmask, cmd->vars.max_reg_cmds); -if (ret < cmd->vars.max_reg_cmds) +if (ret < cmd->vars.max_reg_cmds) {clear_bit (ret, &cmd->vars.bitmask); + ent->idx = ret; + cmd->ent_arr[ent->idx] = ent; + }spin_unlock_irqrestore (&cmd->alloc_lock, flags);return ret < cmd->vars.max_reg_cmds ? ret : -ENOMEM ;
@@ -977,7 +980,7 @@ static void cmd_work_handler(struct work_struct *work) sem = ent->page_queue ? &cmd->vars.pages_sem : &cmd->vars.sem;down (sem);if (!ent->page_queue) { - alloc_ret =cmd_alloc_index (cmd); + alloc_ret =cmd_alloc_index (cmd, ent);if (alloc_ret <0 ) {mlx5_core_err_rl (dev,"failed to allocate command entry\n" );if (ent->callback) {
@@ -992,15 +995,14 @@ static void cmd_work_handler(struct work_struct *work)up (sem);return ; } - ent->idx = alloc_ret; }else { ent->idx = cmd->vars.max_reg_cmds;spin_lock_irqsave (&cmd->alloc_lock, flags);clear_bit (ent->idx, &cmd->vars.bitmask); + cmd->ent_arr[ent->idx] = ent;spin_unlock_irqrestore (&cmd->alloc_lock, flags); } - cmd->ent_arr[ent->idx] = ent; lay =get_inst (cmd, ent->idx); ent->lay = lay;memset (lay,0 ,sizeof (*lay));
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c +1 -1
@@ -718,7 +718,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/act/mirred.c +3 -2
@@ -197,7 +197,7 @@ parse_mirred_encap(struct mlx5e_tc_act_parse_state *parse_state, } esw_attr->dests[esw_attr->out_count].flags |=MLX5_ESW_DEST_ENCAP ; esw_attr->out_count++; -/* attr->dests[].rep is resolved when we handle encap */ +/* attr->dests[].vport is resolved when we handle encap */ return 0 ; }
@@ -270,7 +270,8 @@ parse_mirred(struct mlx5e_tc_act_parse_state *parse_state, out_priv =netdev_priv (out_dev); rpriv = out_priv->ppriv; - esw_attr->dests[esw_attr->out_count].rep = rpriv->rep; + esw_attr->dests[esw_attr->out_count].vport_valid = true; + esw_attr->dests[esw_attr->out_count].vport = rpriv->rep->vport; esw_attr->dests[esw_attr->out_count].mdev = out_priv->mdev; esw_attr->out_count++;
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/tc_tun_encap.c +2 -1
@@ -1064,7 +1064,8 @@ int mlx5e_tc_tun_encap_dests_set(struct mlx5e_priv *priv, out_priv =netdev_priv (encap_dev); rpriv = out_priv->ppriv; - esw_attr->dests[out_index].rep = rpriv->rep; + esw_attr->dests[out_index].vport_valid = true; + esw_attr->dests[out_index].vport = rpriv->rep->vport; esw_attr->dests[out_index].mdev = out_priv->mdev; }
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c +3 -1
@@ -493,6 +493,7 @@ mlx5e_xmit_xdp_frame(struct mlx5e_xdpsq *sq, struct mlx5e_xmit_data *xdptxd,dma_addr_t dma_addr = xdptxd->dma_addr;u32 dma_len = xdptxd->len;u16 ds_cnt, inline_hdr_sz; +unsigned int frags_size;u8 num_wqebbs =1 ;int num_frags =0 ;bool inline_ok;
@@ -503,8 +504,9 @@ mlx5e_xmit_xdp_frame(struct mlx5e_xdpsq *sq, struct mlx5e_xmit_data *xdptxd, inline_ok = sq->min_inline_mode ==MLX5_INLINE_MODE_NONE || dma_len >=MLX5E_XDP_MIN_INLINE ; + frags_size = xdptxd->has_frags ? xdptxdf->sinfo->xdp_frags_size :0 ; -if (unlikely (!inline_ok || sq->hw_mtu < dma_len)) { +if (unlikely (!inline_ok || sq->hw_mtu < dma_len + frags_size)) { stats->err++;return false; }
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c +1 -1
@@ -1866,7 +1866,7 @@ static int mlx5e_ipsec_block_tc_offload(struct mlx5_core_dev *mdev)static void mlx5e_ipsec_unblock_tc_offload (struct mlx5_core_dev *mdev) { - mdev->num_block_tc++; + mdev->num_block_tc--; }int mlx5e_accel_ipsec_fs_add_rule (struct mlx5e_ipsec_sa_entry *sa_entry)
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
@@ -78,7 +78,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/en_tc.c +7 -3
@@ -3776,7 +3776,8 @@ alloc_branch_attr(struct mlx5e_tc_flow *flow,break ;case FLOW_ACTION_ACCEPT :case FLOW_ACTION_PIPE : -if (set_branch_dest_ft (flow->priv, attr)) + err =set_branch_dest_ft (flow->priv, attr); +if (err) goto out_err;break ;case FLOW_ACTION_JUMP :
@@ -3786,7 +3787,8 @@ alloc_branch_attr(struct mlx5e_tc_flow *flow, goto out_err; } *jump_count = cond->extval; -if (set_branch_dest_ft (flow->priv, attr)) + err =set_branch_dest_ft (flow->priv, attr); +if (err) goto out_err;break ;default :
@@ -5734,8 +5736,10 @@ int mlx5e_tc_action_miss_mapping_get(struct mlx5e_priv *priv, struct mlx5_flow_a esw = priv->mdev->priv.eswitch; attr->act_id_restore_rule =esw_add_restore_rule (esw, *act_miss_mapping); -if (IS_ERR (attr->act_id_restore_rule)) +if (IS_ERR (attr->act_id_restore_rule)) { + err =PTR_ERR (attr->act_id_restore_rule); goto err_rule; + }return 0 ;
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +2 -1
@@ -526,7 +526,8 @@ struct mlx5_esw_flow_attr {u8 total_vlan;struct {u32 flags; -struct mlx5_eswitch_rep *rep; +bool vport_valid; +u16 vport;struct mlx5_pkt_reformat *pkt_reformat;struct mlx5_core_dev *mdev;struct mlx5_termtbl_handle *termtbl;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +19 -12
@@ -287,10 +287,9 @@ static void esw_put_dest_tables_loop(struct mlx5_eswitch *esw, struct mlx5_flow_for (i = from; i < to; i++)if (esw_attr->dests[i].flags &MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE )mlx5_chains_put_table (chains,0 ,1 ,0 ); -else if (mlx5_esw_indir_table_needed (esw, attr, esw_attr->dests[i].rep->vport, +else if (mlx5_esw_indir_table_needed (esw, attr, esw_attr->dests[i].vport, esw_attr->dests[i].mdev)) -mlx5_esw_indir_table_put (esw, esw_attr->dests[i].rep->vport, - false); +mlx5_esw_indir_table_put (esw, esw_attr->dests[i].vport, false); } static bool
@@ -358,8 +357,8 @@ esw_is_indir_table(struct mlx5_eswitch *esw, struct mlx5_flow_attr *attr)* this criteria. */ for (i = esw_attr->split_count; i < esw_attr->out_count; i++) { -if (esw_attr->dests[i].rep && -mlx5_esw_indir_table_needed (esw, attr, esw_attr->dests[i].rep->vport, +if (esw_attr->dests[i].vport_valid && +mlx5_esw_indir_table_needed (esw, attr, esw_attr->dests[i].vport, esw_attr->dests[i].mdev)) { result = true; }else {
@@ -388,7 +387,7 @@ esw_setup_indir_table(struct mlx5_flow_destination *dest, dest[*i].type =MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE ; dest[*i].ft =mlx5_esw_indir_table_get (esw, attr, - esw_attr->dests[j].rep->vport, false); + esw_attr->dests[j].vport, false);if (IS_ERR (dest[*i].ft)) { err =PTR_ERR (dest[*i].ft); goto err_indir_tbl_get;
@@ -432,11 +431,11 @@ static bool esw_setup_uplink_fwd_ipsec_needed(struct mlx5_eswitch *esw, int attr_idx) {if (esw->offloads.ft_ipsec_tx_pol && - esw_attr->dests[attr_idx].rep && - esw_attr->dests[attr_idx].rep->vport ==MLX5_VPORT_UPLINK && + esw_attr->dests[attr_idx].vport_valid && + esw_attr->dests[attr_idx].vport ==MLX5_VPORT_UPLINK &&/* To be aligned with software, encryption is needed only for tunnel device */ (esw_attr->dests[attr_idx].flags &MLX5_ESW_DEST_ENCAP_VALID ) && - esw_attr->dests[attr_idx].rep != esw_attr->in_rep && + esw_attr->dests[attr_idx].vport != esw_attr->in_rep->vport &&esw_same_vhca_id (esw_attr->dests[attr_idx].mdev, esw->dev))return true;
@@ -469,7 +468,7 @@ esw_setup_dest_fwd_vport(struct mlx5_flow_destination *dest, struct mlx5_flow_ac int attr_idx, int dest_idx, bool pkt_reformat) { dest[dest_idx].type = MLX5_FLOW_DESTINATION_TYPE_VPORT; - dest[dest_idx].vport.num = esw_attr->dests[attr_idx].rep->vport; + dest[dest_idx].vport.num = esw_attr->dests[attr_idx].vport;if (MLX5_CAP_ESW (esw->dev, merged_eswitch)) { dest[dest_idx].vport.vhca_id =MLX5_CAP_GEN (esw_attr->dests[attr_idx].mdev, vhca_id);
@@ -1177,9 +1176,9 @@ static int esw_add_fdb_peer_miss_rules(struct mlx5_eswitch *esw,struct mlx5_flow_handle *flow;struct mlx5_flow_spec *spec;struct mlx5_vport *vport; +int err, pfindex;unsigned long i;void *misc; -int err;if (!MLX5_VPORT_MANAGER (esw->dev) && !mlx5_core_is_ecpf_esw_manager (esw->dev))return 0 ;
@@ -1255,7 +1254,15 @@ static int esw_add_fdb_peer_miss_rules(struct mlx5_eswitch *esw, flows[vport->index] = flow; } } - esw->fdb_table.offloads.peer_miss_rules[mlx5_get_dev_index (peer_dev)] = flows; + + pfindex =mlx5_get_dev_index (peer_dev); +if (pfindex >=MLX5_MAX_PORTS ) { +esw_warn (esw->dev,"Peer dev index(%d) is over the max num defined(%d)\n" , + pfindex,MLX5_MAX_PORTS ); + err = -EINVAL ; + goto add_ec_vf_flow_err; + } + esw->fdb_table.offloads.peer_miss_rules[pfindex] = flows;kvfree (spec);return 0 ;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c +2 -2
@@ -233,8 +233,8 @@ mlx5_eswitch_termtbl_required(struct mlx5_eswitch *esw,/* hairpin */ for (i = esw_attr->split_count; i < esw_attr->out_count; i++) -if (!esw_attr->dest_int_port && esw_attr->dests[i].rep && - esw_attr->dests[i].rep->vport ==MLX5_VPORT_UPLINK ) +if (!esw_attr->dest_int_port && esw_attr->dests[i].vport_valid && + esw_attr->dests[i].vport ==MLX5_VPORT_UPLINK )return true;return false;
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
@@ -20,6 +20,7 @@ config MICROSOFT_MANA depends on PCI_MSI && X86_64 depends on PCI_HYPERV select AUXILIARY_BUS + 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 +8 -8
@@ -582,10 +582,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 ]; } static void ocelot_port_pmac_rmon_stats_cb(struct ocelot *ocelot, int port,
@@ -610,10 +610,10 @@ static void ocelot_port_pmac_rmon_stats_cb(struct ocelot *ocelot, int port, rmon_stats->hist_tx[0 ] = s[OCELOT_STAT_TX_PMAC_64 ]; rmon_stats->hist_tx[1 ] = s[OCELOT_STAT_TX_PMAC_65_127 ]; rmon_stats->hist_tx[2 ] = s[OCELOT_STAT_TX_PMAC_128_255 ]; - rmon_stats->hist_tx[3 ] = s[OCELOT_STAT_TX_PMAC_128_255 ]; - rmon_stats->hist_tx[4 ] = s[OCELOT_STAT_TX_PMAC_256_511 ]; - rmon_stats->hist_tx[5 ] = s[OCELOT_STAT_TX_PMAC_512_1023 ]; - rmon_stats->hist_tx[6 ] = s[OCELOT_STAT_TX_PMAC_1024_1526 ]; + rmon_stats->hist_tx[3 ] = s[OCELOT_STAT_TX_PMAC_256_511 ]; + rmon_stats->hist_tx[4 ] = s[OCELOT_STAT_TX_PMAC_512_1023 ]; + rmon_stats->hist_tx[5 ] = s[OCELOT_STAT_TX_PMAC_1024_1526 ]; + rmon_stats->hist_tx[6 ] = s[OCELOT_STAT_TX_PMAC_1527_MAX ]; } void ocelot_port_get_rmon_stats(struct ocelot *ocelot, int port,
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c +1 -1
@@ -237,7 +237,7 @@ static void timestamp_interrupt(struct stmmac_priv *priv)*/ ts_status =readl (priv->ioaddr +GMAC_TIMESTAMP_STATUS ); -if (priv->plat->flags &STMMAC_FLAG_EXT_SNAPSHOT_EN ) +if (!(priv->plat->flags &STMMAC_FLAG_EXT_SNAPSHOT_EN ))return ; num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >>
drivers/net/phy/phy_device.c +4 -2
@@ -1548,7 +1548,8 @@ int phy_attach_direct(struct net_device *dev, struct phy_device *phydev, goto error;phy_resume (phydev); -phy_led_triggers_register (phydev); +if (!phydev->is_on_sfp_module) +phy_led_triggers_register (phydev);/** * If the external phy used by current mac interface is managed by
@@ -1817,7 +1818,8 @@ void phy_detach(struct phy_device *phydev) } phydev->phylink =NULL ; -phy_led_triggers_unregister (phydev); +if (!phydev->is_on_sfp_module) +phy_led_triggers_unregister (phydev);if (phydev->mdio.dev.driver)module_put (phydev->mdio.dev.driver->owner);
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
@@ -3088,7 +3088,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 ;
@@ -3112,7 +3112,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/net/wireless/mediatek/mt76/dma.c +6 -4
@@ -776,7 +776,7 @@ mt76_dma_rx_reset(struct mt76_dev *dev, enum mt76_rxq_id qid)static void mt76_add_fragment (struct mt76_dev *dev,struct mt76_queue *q,void *data, -int len,bool more,u32 info) +int len,bool more,u32 info,bool allow_direct) {struct sk_buff *skb = q->rx_head;struct skb_shared_info *shinfo =skb_shinfo (skb);
@@ -788,7 +788,7 @@ mt76_add_fragment(struct mt76_dev *dev, struct mt76_queue *q, void *data,skb_add_rx_frag (skb, nr_frags, page, offset, len, q->buf_size); }else { -mt76_put_page_pool_buf (data, true); +mt76_put_page_pool_buf (data, allow_direct); }if (more)
@@ -808,6 +808,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget)struct sk_buff *skb;unsigned char *data;bool check_ddone = false; +bool allow_direct = !mt76_queue_is_wed_rx (q);bool more; if (IS_ENABLED(CONFIG_NET_MEDIATEK_SOC_WED) &&
@@ -848,7 +849,8 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) }if (q->rx_head) { -mt76_add_fragment (dev, q, data, len, more, info); +mt76_add_fragment (dev, q, data, len, more, info, + allow_direct);continue ; }
@@ -877,7 +879,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget)continue ; free_frag: -mt76_put_page_pool_buf (data, true); +mt76_put_page_pool_buf (data, allow_direct); }mt76_dma_rx_fill (dev, q, true);
drivers/nvme/host/core.c +2 -1
@@ -4100,6 +4100,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 );
@@ -4155,7 +4157,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/nvmem/brcm_nvram.c +94 -40
216 lines not on this page · raw message
drivers/pinctrl/pinctrl-at91-pio4.c +8 -0
@@ -1068,6 +1068,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;
@@ -1214,6 +1221,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
@@ -492,7 +492,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" );
@@ -527,7 +527,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/pinctrl/starfive/pinctrl-starfive-jh7110.c +2 -2
@@ -135,7 +135,7 @@ static int jh7110_dt_node_to_map(struct pinctrl_dev *pctldev,int ret; ngroups =0 ; -for_each_child_of_node (np, child) +for_each_available_child_of_node (np, child) ngroups +=1 ; nmaps =2 * ngroups;
@@ -150,7 +150,7 @@ static int jh7110_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 =of_property_count_u32_elems (child,"pinmux" );int *pins;u32 *pinmux;
drivers/platform/x86/intel/pmc/core.c +1 -1
@@ -472,7 +472,7 @@ int pmc_core_send_ltr_ignore(struct pmc_dev *pmcdev, u32 value)* is based on the contiguous indexes from ltr_show output. * pmc index and ltr index needs to be calculated from it. */ -for (pmc_index =0 ; pmc_index <ARRAY_SIZE (pmcdev->pmcs) && ltr_index >0 ; pmc_index++) { +for (pmc_index =0 ; pmc_index <ARRAY_SIZE (pmcdev->pmcs) && ltr_index >=0 ; pmc_index++) { pmc = pmcdev->pmcs[pmc_index];if (!pmc)
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>
@@ -505,15 +504,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
@@ -1498,7 +1488,6 @@ static const 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,
@@ -1786,8 +1775,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)
@@ -1919,7 +1906,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
@@ -1152,6 +1152,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
@@ -2459,6 +2460,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/spi/spi-atmel.c +85 -7
138 lines not on this page · raw message
drivers/spi/spi-cadence.c +0 -1
@@ -451,7 +451,6 @@ static int cdns_transfer_one(struct spi_controller *ctlr,udelay (10 );cdns_spi_process_fifo (xspi, xspi->tx_fifo_depth,0 ); -spi_transfer_delay_exec (transfer);cdns_spi_write (xspi,CDNS_SPI_IER ,CDNS_SPI_IXR_DEFAULT );return transfer->len;
drivers/spi/spi-imx.c +11 -4
@@ -659,11 +659,18 @@ static int mx51_ecspi_prepare_transfer(struct spi_imx_data *spi_imx, ctrl |= (spi_imx->target_burst *8 -1 ) <<MX51_ECSPI_CTRL_BL_OFFSET ; else { -if (spi_imx->count >=512 ) - ctrl |=0xFFF <<MX51_ECSPI_CTRL_BL_OFFSET ; -else - ctrl |= (spi_imx->count * spi_imx->bits_per_word -1 ) +if (spi_imx->usedma) { + ctrl |= (spi_imx->bits_per_word * +spi_imx_bytes_per_word (spi_imx->bits_per_word) -1 ) <<MX51_ECSPI_CTRL_BL_OFFSET ; + }else { +if (spi_imx->count >=MX51_ECSPI_CTRL_MAX_BURST ) + ctrl |= (MX51_ECSPI_CTRL_MAX_BURST -1 ) + <<MX51_ECSPI_CTRL_BL_OFFSET ; +else + ctrl |= (spi_imx->count * spi_imx->bits_per_word -1 ) + <<MX51_ECSPI_CTRL_BL_OFFSET ; + } }/* set clock speed */
drivers/thunderbolt/debugfs.c +1 -1
@@ -959,7 +959,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/ufs/core/ufshcd.c +2 -1
@@ -2172,9 +2172,10 @@ void ufshcd_send_command(struct ufs_hba *hba, unsigned int task_tag,if (is_mcq_enabled (hba)) {int utrd_size =sizeof (struct utp_transfer_req_desc );struct utp_transfer_req_desc *src = lrbp->utr_descriptor_ptr; -struct utp_transfer_req_desc *dest = hwq->sqe_base_addr + hwq->sq_tail_slot; +struct utp_transfer_req_desc *dest;spin_lock (&hwq->sq_lock); + dest = hwq->sqe_base_addr + hwq->sq_tail_slot;memcpy (dest, src, utrd_size);ufshcd_inc_sq_tail (hwq);spin_unlock (&hwq->sq_lock);
drivers/ufs/host/ufs-qcom.c +4 -2
@@ -1399,9 +1399,11 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba, err =ufs_qcom_clk_scale_up_pre_change (hba); else err =ufs_qcom_clk_scale_down_pre_change (hba); -if (err) -ufshcd_uic_hibern8_exit (hba); +if (err) { +ufshcd_uic_hibern8_exit (hba); +return err; + } }else {if (scale_up) err =ufs_qcom_clk_scale_up_post_change (hba);
drivers/usb/fotg210/fotg210-hcd.c +0 -3
@@ -428,8 +428,6 @@ static void qh_lines(struct fotg210_hcd *fotg210, struct fotg210_qh *qh, temp = size; size -= temp; next += temp; -if (temp == size) - goto done; } temp =snprintf (next, size,"\n" );
@@ -439,7 +437,6 @@ static void qh_lines(struct fotg210_hcd *fotg210, struct fotg210_qh *qh, size -= temp; next += temp; -done: *sizep = size; *nextp = next; }
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: -
drivers/usb/typec/ucsi/ucsi_glink.c +1 -1
@@ -228,7 +228,7 @@ static void pmic_glink_ucsi_notify(struct work_struct *work) con_num =UCSI_CCI_CONNECTOR (cci);if (con_num) { -if (con_num <PMIC_GLINK_MAX_PORTS && +if (con_num <=PMIC_GLINK_MAX_PORTS && ucsi->port_orientation[con_num -1 ]) {int orientation =gpiod_get_value (ucsi->port_orientation[con_num -1 ]);
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,
Lines of this file are not shown. View the raw message.
fs/btrfs/qgroup.c +41 -55
96 lines not on this page · raw message
include/net/ip6_fib.h +13 -51
64 lines not on this page · raw message
kernel/bpf/arraymap.c +10 -48
58 lines not on this page · raw message
kernel/trace/ring_buffer.c +37 -93
130 lines not on this page · raw message
mm/damon/core.c +53 -49
102 lines not on this page · raw message
net/ipv6/ip6_fib.c +6 -49
55 lines not on this page · raw message
net/wireless/certs/wens.hex new file +87 -0
87 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.