Skip to contentSkip to conversation

6.0.16-rc1 review

PATCH In review Greg Kroah-Hartman 14 participants 1,086 messages Dec 28, 2022 – Dec 30, 2022 Page 1 of 8

Subsystems (13)
lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

cover 6.0.16-rc1 review

This is the start of the stable review cycle for the 6.0.16 release. There are 1073 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Fri, 30 Dec 2022 14:41:34 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.0.16-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.0.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>

    Linux 6.0.16-rc1

ChenXiaoSong <[email protected]>
cifs: fix use-after-free on the link name

Paulo Alcantara <[email protected]>
cifs: fix memory leaks in session setup

Zhang Xiaoxu <[email protected]>
cifs: Fix xid leak in cifs_get_file_info_unix()

Paulo Alcantara <[email protected]>
cifs: fix double-fault crash during ntlmssp

Yassine Oudjana <[email protected]>
extcon: usbc-tusb320: Call the Type-C IRQ handler only if a port is registered

Geert Uytterhoeven <[email protected]>
clk: renesas: r8a779f0: Fix SD0H clock name

Martin Leung <[email protected]>
drm/amd/display: revert Disable DRR actions during state commit

Lin Ma <[email protected]>
media: dvbdev: fix refcnt bug

Lin Ma <[email protected]>
media: dvbdev: fix build warning due to comments

Gaosheng Cui <[email protected]>
net: stmmac: fix errno when create_singlethread_workqueue() fails

Pavel Begunkov <[email protected]>
io_uring: remove iopoll spinlock

Pavel Begunkov <[email protected]>
io_uring: protect cq_timeouts with timeout_lock

Pavel Begunkov <[email protected]>
io_uring/net: fix cleanup after recycle

Pavel Begunkov <[email protected]>
io_uring: improve io_double_lock_ctx fail handling

Pavel Begunkov <[email protected]>
io_uring: add completion locking for iopoll

Arun Easi <[email protected]>
scsi: qla2xxx: Fix crash when I/O abort times out

David Hildenbrand <[email protected]>
mm/gup: disallow FOLL_FORCE|FOLL_WRITE on hugetlb mappings

Filipe Manana <[email protected]>
btrfs: do not BUG_ON() on ENOMEM when dropping extent items for a range

Chen Zhongjin <[email protected]>
ovl: fix use inode directly in rcu-walk mode

Tetsuo Handa <[email protected]>
fbdev: fbcon: release buffer when fbcon_do_set_font() failed

Rickard x Andersson <[email protected]>
gcov: add support for checksum field

Yuan Can <[email protected]>
floppy: Fix memory leak in do_floppy_init()

Johan Hovold <[email protected]>
regulator: core: fix deadlock on regulator enable

Rasmus Villemoes <[email protected]>
iio: addac: ad74413r: fix integer promotion bug in ad74413_get_input_current_offset()

Rasmus Villemoes <[email protected]>
iio: adc128s052: add proper .data members in adc128_of_match table

Nuno Sá <[email protected]>
iio: adc: ad_sigma_delta: do not use internal iio_dev lock

Zeng Heng <[email protected]>
iio: fix memory leak in iio_device_register_eventset()

Roberto Sassu <[email protected]>
reiserfs: Add missing calls to reiserfs_security_free()

Nathan Chancellor <[email protected]>
security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6

Schspa Shi <[email protected]>
9p: set req refcount to zero to avoid uninitialized usage

Isaac J. Manjarres <[email protected]>
loop: Fix the max_loop commandline argument treatment when it is set to 0

Enrik Berkhan <[email protected]>
HID: mcp2221: don't connect hidraw

Jason Gerecke <[email protected]>
HID: wacom: Ensure bootloader PID is usable in hidraw mode

Mathias Nyman <[email protected]>
xhci: Prevent infinite loop in transaction errors recovery for streams

Ferry Toth <[email protected]>
usb: dwc3: core: defer probe on ulpi_read_id timeout

Sven Peter <[email protected]>
usb: dwc3: Fix race between dwc3_set_mode and __dwc3_set_mode

Li Jun <[email protected]>
clk: imx: imx8mp: add shared clk gate for usb suspend clk

Li Jun <[email protected]>
dt-bindings: clocks: imx8mp: Add ID for usb suspend clock

Johan Hovold <[email protected]>
arm64: dts: qcom: sm8250: fix USB-DP PHY registers

Johan Hovold <[email protected]>
arm64: dts: qcom: sm6350: fix USB-DP PHY registers

Chunfeng Yun <[email protected]>
usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq

Pawel Laszczak <[email protected]>
usb: cdnsp: fix lack of ZLP for ep0

Bastien Nocera <[email protected]>
HID: logitech-hidpp: Guard FF init code against non-USB devices

Jiao Zhou <[email protected]>

    ALSA: hda/hdmi: Add HP Device 0x8711 to force connect list

Edward Pacman <[email protected]>
ALSA: hda/realtek: Add quirk for Lenovo TianYi510Pro-14IOB

wangdicheng <[email protected]>
ALSA: usb-audio: add the quirk for KT0206 device

Jeff LaBundy <[email protected]>

    Input: iqs7222 - add support for IQS7222A v1.13+

Jeff LaBundy <[email protected]>
Input: iqs7222 - trim force communication command

Jeff LaBundy <[email protected]>

    dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+

Jeff LaBundy <[email protected]>
dt-bindings: input: iqs7222: Correct minimum slider size

Jeff LaBundy <[email protected]>
dt-bindings: input: iqs7222: Reduce 'linux,code' to optional

Jeff LaBundy <[email protected]>
Input: iqs7222 - avoid sending empty SYN_REPORT events

GUO Zihua <[email protected]>
ima: Simplify ima_lsm_copy_rule

John Stultz <[email protected]>
pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES

David Howells <[email protected]>
afs: Fix lost servers_outstanding count

Michael Petlan <[email protected]>
perf test: Fix "all PMU test" to skip parametrized events

Sergio Paracuellos <[email protected]>
MIPS: ralink: mt7621: avoid to init common ralink reset controller

Yang Jihong <[email protected]>
perf debug: Set debug_peo_args and redirect_to_stderr variable to correct values in perf_quiet_option()

Arnd Bergmann <[email protected]>
drm/amd/pm: avoid large variable on kernel stack

John Stultz <[email protected]>
pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion

Kristina Martsenko <[email protected]>
lkdtm: cfi: Make PAC test work with GCC 7 and 8

Kees Cook <[email protected]>
LoadPin: Ignore the "contents" argument of the LSM hooks

Khaled Almahallawy <[email protected]>
drm/i915/display: Don't disable DDI/Transcoder when setting phy test pattern

Hans de Goede <[email protected]>
ASoC: rt5670: Remove unbalanced pm_runtime_put()

Wang Jingjin <[email protected]>
ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()

Marek Szyprowski <[email protected]>
ASoC: wm8994: Fix potential deadlock

Kai Vehmanen <[email protected]>
ALSA: hda/hdmi: fix stream-id config keep-alive for rt suspend

Jaroslav Kysela <[email protected]>
ALSA: hda/hdmi: Use only dynamic PCM device allocation

Kai Vehmanen <[email protected]>
ALSA: hda/hdmi: set default audio parameters for KAE silent-stream

Kai Vehmanen <[email protected]>
ALSA: hda/hdmi: fix i915 silent stream programming flow

Wang Yufen <[email protected]>

    ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe()

Wang Jingjin <[email protected]>
ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume()

Wang Yufen <[email protected]>
ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()

Wang Yufen <[email protected]>

    ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe()

Cezary Rojewski <[email protected]>
ASoC: Intel: Skylake: Fix driver hang during shutdown

Pierre-Louis Bossart <[email protected]>
ALSA: hda: add snd_hdac_stop_streams() helper

Yang Yingliang <[email protected]>
ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()

Yang Yingliang <[email protected]>
hwmon: (jc42) Fix missing unlock on error in jc42_write()

Wolfram Sang <[email protected]>
clk: renesas: r8a779f0: Add TMU and parent SASYNC clocks

Wolfram Sang <[email protected]>
clk: renesas: r8a779f0: Add SDH0 clock

Zhang Xiaoxu <[email protected]>
orangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()

Zhang Xiaoxu <[email protected]>
orangefs: Fix kmemleak in orangefs_sysfs_init()

Zhang Xiaoxu <[email protected]>
orangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()

Maurizio Lombardi <[email protected]>
scsi: target: iscsi: Fix a race condition between login_work and the login thread

Nathan Chancellor <[email protected]>
drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()

Nathan Chancellor <[email protected]>
drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()

Kumar Meiyappan <[email protected]>
scsi: smartpqi: Correct device removal for multi-actuator devices

Mike McGowen <[email protected]>
scsi: smartpqi: Add new controller PCI IDs

Hawkins Jiawei <[email protected]>
hugetlbfs: fix null-ptr-deref in hugetlbfs_parse_param()

Nathan Chancellor <[email protected]>
scsi: elx: libefc: Fix second parameter type in state callbacks

Bjorn Helgaas <[email protected]>
Revert "PCI: Clear PCI_STATUS when setting up device"

Kai Ye <[email protected]>
crypto: hisilicon/qm - increase the memory of local variables

Bart Van Assche <[email protected]>
scsi: ufs: Reduce the START STOP UNIT timeout

Justin Tee <[email protected]>
scsi: lpfc: Fix hard lockup when reading the rx_monitor from debugfs

Zhiqi Song <[email protected]>
crypto: hisilicon/hpre - fix resource leak in remove process

ChiYuan Huang <[email protected]>
regulator: core: Fix resolve supply lookup issue

Sven Peter <[email protected]>
Bluetooth: Add quirk to disable MWS Transport Configuration

Sven Peter <[email protected]>
Bluetooth: Add quirk to disable extended scanning

Marek Vasut <[email protected]>
Bluetooth: hci_bcm: Add CYW4373A0 support

ChiYuan Huang <[email protected]>
regulator: core: Use different devices for resource allocation and DT lookup

Xiu Jianfeng <[email protected]>
clk: st: Fix memory leak in st_of_quadfs_setup()

Shigeru Yoshida <[email protected]>

    media: si470x: Fix use-after-free in si470x_int_in_callback()

Wolfram Sang <[email protected]>
mmc: renesas_sdhi: better reset from HS400 mode

Wolfram Sang <[email protected]>
mmc: renesas_sdhi: add quirk for broken register layout

Kunihiko Hayashi <[email protected]>
mmc: f-sdh30: Add quirks for broken timeout clock capability

Hawkins Jiawei <[email protected]>
nfs: fix possible null-ptr-deref when parsing param

James Hilliard <[email protected]>
selftests/bpf: Fix conflicts with built-in functions in bpf_iter_ksym

Denis Pauk <[email protected]>
hwmon: (nct6775) add ASUS CROSSHAIR VIII/TUF/ProArt B550M

Lorenzo Bianconi <[email protected]>
wifi: mt76: do not run mt76u_status_worker if the device is not running

Rui Zhang <[email protected]>
regulator: core: fix use_count leakage when handling boot-on

Andrii Nakryiko <[email protected]>
libbpf: Avoid enum forward-declarations in public API in C++ mode

Artem Lukyanov <[email protected]>
ASoC: amd: yc: Add Xiaomi Redmi Book Pro 14 2022 into DMI table

Alvin Lee <[email protected]>
drm/amd/display: Fix DTBCLK disable requests and SRC_SEL programming

Wesley Chalmers <[email protected]>
drm/amd/display: Use the largest vready_offset in pipe group

Ye Bin <[email protected]>
blk-mq: fix possible memleak when register 'hctx' failed

Yunfei Dong <[email protected]>
media: mediatek: vcodec: Can't set dst buffer to done when lat decode error

Mazin Al Haddad <[email protected]>
media: dvb-usb: fix memory leak in dvb_usb_adapter_init()

Lin Ma <[email protected]>
media: dvbdev: adopts refcnt to avoid UAF

Yan Lei <[email protected]>
media: dvb-frontends: fix leak of memory fw

Maxim Korotkov <[email protected]>
ethtool: avoiding integer overflow in ethtool_phys_id()

Stanislav Fomichev <[email protected]>
bpf: Prevent decl_tag from being referenced in func_proto arg

Yonghong Song <[email protected]>
bpf: Fix a BTF_ID_LIST bug with CONFIG_DEBUG_INFO_BTF not set

Stanislav Fomichev <[email protected]>
ppp: associate skb with a device at tx

Felix Fietkau <[email protected]>
net: ethernet: mtk_eth_soc: drop packets to WDMA if the ring is full

Schspa Shi <[email protected]>
mrp: introduce active flags to prevent UAF when applicant uninit

Eric Dumazet <[email protected]>
ipv6/sit: use DEV_STATS_INC() to avoid data-races

Eric Dumazet <[email protected]>
net: add atomic_long_t to net_device_stats fields

Sagi Grimberg <[email protected]>
nvme-auth: don't override ctrl keys before validation

Aurabindo Pillai <[email protected]>
drm/amd/display: fix array index out of bound error in bios parser

George Shen <[email protected]>
drm/amd/display: Workaround to increase phantom pipe vactive in pipesplit

Jiang Li <[email protected]>
md/raid1: stop mdx_raid1 thread when raid1 array run failed

Xiao Ni <[email protected]>
md/raid0, raid10: Don't set discard sectors for request queue

Li Zhong <[email protected]>
drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()

Nathan Chancellor <[email protected]>
drm/mediatek: Fix return type of mtk_hdmi_bridge_mode_valid()

Ville Syrjälä <[email protected]>
drm/sti: Use drm_mode_copy()

Ville Syrjälä <[email protected]>
drm/rockchip: Use drm_mode_copy()

Ville Syrjälä <[email protected]>
drm/msm: Use drm_mode_copy()

Wesley Chalmers <[email protected]>
drm/amd/display: Disable DRR actions during state commit

Nathan Chancellor <[email protected]>
s390/lcs: Fix return type of lcs_start_xmit()

Nathan Chancellor <[email protected]>
s390/netiucv: Fix return type of netiucv_tx()

Nathan Chancellor <[email protected]>
s390/ctcm: Fix return type of ctc{mp,}m_tx()

Nathan Chancellor <[email protected]>
drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback

Nathan Chancellor <[email protected]>
drm/amdgpu: Fix type of second parameter in trans_msg() callback

Kees Cook <[email protected]>
igb: Do not free q_vector unless new one was allocated

José Expósito <[email protected]>
HID: input: do not query XP-PEN Deco LW battery

Minsuk Kang <[email protected]>
wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request()

Nathan Chancellor <[email protected]>
hamradio: baycom_epp: Fix return type of baycom_send_packet()

Nathan Chancellor <[email protected]>
net: ethernet: ti: Fix return type of netcp_ndo_start_xmit()

Stanislav Fomichev <[email protected]>

    bpf: make sure skb->len != 0 when redirecting to a tunneling device

Nathan Chancellor <[email protected]>
drm/meson: Fix return type of meson_encoder_cvbs_mode_valid()

Jiri Slaby (SUSE) <[email protected]>
qed (gcc13): use u16 for fid to be big enough

Rahul Bhattacharjee <[email protected]>
wifi: ath11k: Fix qmi_msg_handler data structure initialization

Kerem Karabay <[email protected]>
HID: apple: enable APPLE_ISO_TILDE_QUIRK for the keyboards of Macs with the T2 chip

Kerem Karabay <[email protected]>
HID: apple: fix key translations where multiple quirks attempt to translate the same key

David Jeffery <[email protected]>

    blk-mq: avoid double ->queue_rq() because of early timeout

Yuan Can <[email protected]>
drm/rockchip: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()

Hamza Mahfooz <[email protected]>
Revert "drm/amd/display: Limit max DSC target bpp for specific monitors"

Hamza Mahfooz <[email protected]>
drm/edid: add a quirk for two LG monitors to get them to work on 10bpc

gehao <[email protected]>
drm/amd/display: prevent memory leak

Youghandhar Chintala <[email protected]>
wifi: ath10k: Delay the unmapping of the buffer

Zhang Yuchen <[email protected]>
ipmi: fix memleak when unload ipmi driver

Amadeusz Sławiński <[email protected]>
ASoC: Intel: avs: Add quirk for KBL-R RVP platform

Amadeusz Sławiński <[email protected]>
ASoC: codecs: rt298: Add quirk for KBL-R RVP platform

Shigeru Yoshida <[email protected]>

    wifi: ar5523: Fix use-after-free on ar5523_cmd() timed out

Fedor Pchelkin <[email protected]>
wifi: ath9k: verify the expected usb_endpoints are present

Wright Feng <[email protected]>
brcmfmac: return error when getting invalid max_flowrings from dongle

Ming Qian <[email protected]>
media: imx-jpeg: Disable useless interrupt to avoid kernel panic

Doug Brown <[email protected]>
drm/etnaviv: add missing quirks for GC300

ZhangPeng <[email protected]>
hfs: fix OOB Read in __hfs_brec_find

Hans de Goede <[email protected]>
ACPI: x86: Add skip i2c clients quirk for Medion Lifetab S10346

Hans de Goede <[email protected]>
ACPI: x86: Add skip i2c clients quirk for Lenovo Yoga Tab 3 Pro (YT3-X90F)

Mateusz Jończyk <[email protected]>
x86/apic: Handle no CONFIG_X86_X2APIC on systems with x2APIC enabled by BIOS

Zheng Yejian <[email protected]>
acct: fix potential integer overflow in encode_comp_t()

Ryusuke Konishi <[email protected]>
nilfs2: fix shift-out-of-bounds due to too large exponent of block size

Ryusuke Konishi <[email protected]>
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()

Rafael J. Wysocki <[email protected]>
ACPICA: Fix error code path in acpi_ds_call_control_method()

Mia Kanashi <[email protected]>
ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur

Li Zhong <[email protected]>
ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value

Hoi Pok Wu <[email protected]>
fs: jfs: fix shift-out-of-bounds in dbDiscardAG

Dr. David Alan Gilbert <[email protected]>
jfs: Fix fortify moan in symlink

Shigeru Yoshida <[email protected]>
udf: Avoid double brelse() in udf_rename()

Dongliang Mu <[email protected]>
fs: jfs: fix shift-out-of-bounds in dbAllocAG

Marijn Suijten <[email protected]>
arm64: dts: qcom: sm6350: Add apps_smmu with streamID to SDHCI 1/2 nodes

Liu Shixin <[email protected]>
binfmt_misc: fix shift-out-of-bounds in check_special_flags

Gaurav Kohli <[email protected]>
x86/hyperv: Remove unregister syscore call from Hyper-V cleanup

Guilherme G. Piccoli <[email protected]>
video: hyperv_fb: Avoid taking busy spinlock on panic path

Adriana Kobylak <[email protected]>
ARM: dts: aspeed: rainier,everest: Move reserved memory regions

Mark Rutland <[email protected]>
arm64: make is_ttbrX_addr() noinstr-safe

Zqiang <[email protected]>
rcu: Fix __this_cpu_read() lockdep warning in rcu_force_quiescent_state()

Jiasheng Jiang <[email protected]>
HID: amd_sfh: Add missing check for dma_alloc_coherent

Matt Johnston <[email protected]>
mctp: Remove device type check at unregister

Jeremy Kerr <[email protected]>
mctp: serial: Fix starting value for frame check sequence

Eric Dumazet <[email protected]>
net: stream: purge sk_error_queue in sk_stream_kill_queues()

Christophe JAILLET <[email protected]>
myri10ge: Fix an error handling path in myri10ge_probe()

David Howells <[email protected]>
rxrpc: Fix missing unlock in rxrpc_do_sendmsg()

Cong Wang <[email protected]>
net_sched: reject TCF_EM_SIMPLE case for complex ematch module

Yang Yingliang <[email protected]>
mailbox: zynq-ipi: fix error handling while device_register() fails

Yang Yingliang <[email protected]>
mailbox: arm_mhuv2: Fix return value check in mhuv2_probe()

Conor Dooley <[email protected]>
mailbox: mpfs: read the system controller's status

Subash Abhinov Kasiviswanathan <[email protected]>
skbuff: Account for tail adjustment during pull operations

Jakub Kicinski <[email protected]>
devlink: protect devlink dump by the instance lock

Chen-Yu Tsai <[email protected]>
arm64: dts: mt8183: Fix Mali GPU clock

Chun-Jie Chen <[email protected]>
soc: mediatek: pm-domains: Fix the power glitch issue

Eelco Chaudron <[email protected]>
openvswitch: Fix flow lookup to use unmasked key

Jakub Kicinski <[email protected]>
selftests: devlink: fix the fd redirect in dummy_reporter_test

Jakub Kicinski <[email protected]>
devlink: hold region lock when flushing snapshots

GUO Zihua <[email protected]>
rtc: mxc_v2: Add missing clk_disable_unprepare()

Tan Tee Min <[email protected]>
igc: Set Qbv start_time and end_time to end_time if not being configured in GCL

Tan Tee Min <[email protected]>
igc: recalculate Qbv end_time by considering cycle time

Tan Tee Min <[email protected]>
igc: allow BaseTime 0 enrollment for Qbv

Muhammad Husaini Zulkifli <[email protected]>
igc: Add checking for basetime less than zero

Vinicius Costa Gomes <[email protected]>
igc: Use strict cycles for Qbv scheduling

Vinicius Costa Gomes <[email protected]>
igc: Enhance Qbv scheduling by using first flag bit

Vladimir Oltean <[email protected]>
net: dsa: mv88e6xxx: avoid reg_lock deadlock in mv88e6xxx_setup_port()

Ming Lei <[email protected]>

    block: fix use-after-free of q->q_usage_counter

Christoph Hellwig <[email protected]>
block: mark blk_put_queue as potentially blocking

Christoph Hellwig <[email protected]>
block: untangle request_queue refcounting from sysfs

Christoph Hellwig <[email protected]>
block: fix error unwinding in blk_register_queue

Christoph Hellwig <[email protected]>
block: factor out a blk_debugfs_remove helper

Christoph Hellwig <[email protected]>
blk-crypto: pass a gendisk to blk_crypto_sysfs_{,un}register

Christoph Hellwig <[email protected]>
blk-mq: move the srcu_struct used for quiescing to the tagset

Christoph Hellwig <[email protected]>
blk-iocost: simplify ioc_name

Li Zetao <[email protected]>
r6040: Fix kmemleak in probe and remove

Kirill Tkhai <[email protected]>
unix: Fix race in SOCK_SEQPACKET's unix_dgram_sendmsg()

Minsuk Kang <[email protected]>
nfc: pn533: Clear nfc_target before being used

Vladimir Oltean <[email protected]>
net: enetc: avoid buffer leaks on xdp_do_redirect() failure

Hans Verkuil <[email protected]>

    media: v4l2-ctrls-api.c: add back dropped ctrl->is_new = 1

Milan Landaverde <[email protected]>
bpf: prevent leak of lsm program after failed attach

Song Liu <[email protected]>
selftests/bpf: Select CONFIG_FUNCTION_ERROR_INJECTION

Yu Kuai <[email protected]>

    block, bfq: fix possible uaf for 'bfqq->bic'

Yang Yingliang <[email protected]>
mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()

Hangbin Liu <[email protected]>
bonding: do failover when high prio link up

Hangbin Liu <[email protected]>
bonding: add missed __rcu annotation for curr_active_slave

Emeel Hakim <[email protected]>
net: macsec: fix net device access prior to holding a lock

Dan Aloni <[email protected]>
nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure

Dan Carpenter <[email protected]>
iommu/mediatek: Fix forever loop in error handling

Alexandre Belloni <[email protected]>

    rtc: pcf85063: fix pcf85063_clkout_control

Gaosheng Cui <[email protected]>
rtc: pic32: Move devm_rtc_allocate_device earlier in pic32_rtc_probe()

Gaosheng Cui <[email protected]>
rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()

Qingfang DENG <[email protected]>
netfilter: flowtable: really fix NAT IPv6 offload

Yang Yingliang <[email protected]>
mfd: pm8008: Fix return value check in pm8008_probe()

Christophe JAILLET <[email protected]>
mfd: qcom_rpm: Fix an error handling path in qcom_rpm_probe()

Matti Vaittinen <[email protected]>
mfd: bd957x: Fix Kconfig dependency on REGMAP_IRQ

Samuel Holland <[email protected]>

    mfd: axp20x: Do not sleep in the power off handler

Bryan O'Donoghue <[email protected]>
dt-bindings: mfd: qcom,spmi-pmic: Drop PWM reg dependency

Nathan Lynch <[email protected]>
powerpc/pseries/eeh: use correct API for error log size

Shang XiaoJing <[email protected]>
remoteproc: qcom: q6v5: Fix missing clk_disable_unprepare() in q6v5_wcss_qcs404_power_on()

Yuan Can <[email protected]>
remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()

Luca Weiss <[email protected]>
remoteproc: qcom_q6v5_pas: detach power domains on remove

Luca Weiss <[email protected]>
remoteproc: qcom_q6v5_pas: disable wakeup on probe fail or remove

Shang XiaoJing <[email protected]>
remoteproc: qcom: q6v5: Fix potential null-ptr-deref in q6v5_wcss_init_mmio()

Gaosheng Cui <[email protected]>
remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()

Anup Patel <[email protected]>
RISC-V: KVM: Fix reg_val check in kvm_riscv_vcpu_set_reg_config()

Daniel Golle <[email protected]>
pwm: mediatek: always use bus clock for PWM on MT7622

xinlei lee <[email protected]>
pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm

Uwe Kleine-König <[email protected]>
pwm: sifive: Call pwm_sifive_update_clock() while mutex is held

Jason Gunthorpe <[email protected]>
iommu/sun50i: Remove IOMMU_DOMAIN_IDENTITY

Guenter Roeck <[email protected]>
iommu/mediatek: Validate number of phandles associated with "mediatek,larbs"

Yong Wu <[email protected]>
iommu/mediatek: Add error path for loop of mm_dts_parse

Yong Wu <[email protected]>
iommu/mediatek: Use component_match_add

Yong Wu <[email protected]>
iommu/mediatek: Add platform_device_put for recovering the device refcnt

Miaoqian Lin <[email protected]>
selftests/powerpc: Fix resource leaks

Kajol Jain <[email protected]>
powerpc/hv-gpci: Fix hv_gpci event list

Yang Yingliang <[email protected]>
powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()

Nicholas Piggin <[email protected]>
powerpc/perf: callchain validate kernel stack pointer bounds

Pali Rohár <[email protected]>
powerpc: dts: turris1x.dts: Add channel labels for temperature sensor

Li Huafei <[email protected]>
kprobes: Fix check for probe enabled in kill_kprobe()

Nayna Jain <[email protected]>
powerpc/pseries: fix plpks_read_var() code for different consumers

Nayna Jain <[email protected]>
powerpc/pseries: Return -EIO instead of -EINTR for H_ABORTED error

Nayna Jain <[email protected]>
powerpc/pseries: Fix the H_CALL error code in PLPKS driver

Nayna Jain <[email protected]>
powerpc/pseries: fix the object owners enum value in plpks driver

Yang Yingliang <[email protected]>
powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()

Gustavo A. R. Silva <[email protected]>
powerpc/xmon: Fix -Wswitch-unreachable warning in bpt_cmds

Miaoqian Lin <[email protected]>
cxl: Fix refcount leak in cxl_calc_capp_routing

Christophe JAILLET <[email protected]>
powerpc/52xx: Fix a resource leak in an error handling path

Xie Shaowen <[email protected]>
macintosh/macio-adb: check the return value of ioremap()

Yang Yingliang <[email protected]>
macintosh: fix possible memory leak in macio_add_one_device()

Yuan Can <[email protected]>
iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()

Yang Yingliang <[email protected]>
iommu/amd: Fix pci device refcount leak in ppr_notifier()

Yang Yingliang <[email protected]>
iommu/mediatek: Check return value after calling platform_get_resource()

Alexander Stein <[email protected]>
rtc: pcf85063: Fix reading alarm

Stefan Eichenberger <[email protected]>
rtc: snvs: Allow a time difference on clock register read

Rafael J. Wysocki <[email protected]>
rtc: cmos: Disable ACPI RTC event on removal

Rafael J. Wysocki <[email protected]>
rtc: cmos: Rename ACPI-related functions

Rafael J. Wysocki <[email protected]>
rtc: cmos: Eliminate forward declarations of some functions

Rafael J. Wysocki <[email protected]>
rtc: cmos: Call rtc_wake_setup() from cmos_do_probe()

Rafael J. Wysocki <[email protected]>
rtc: cmos: Call cmos_wake_setup() from cmos_do_probe()

Shang XiaoJing <[email protected]>
rtc: class: Fix potential memleak in devm_rtc_allocate_device()

Yushan Zhou <[email protected]>
rtc: rzn1: Check return value in rzn1_rtc_probe

Fenghua Yu <[email protected]>
dmaengine: idxd: Fix crc_val field for completion record

Abdun Nihaal <[email protected]>
fs/ntfs3: Fix slab-out-of-bounds read in ntfs_trim_fs

Manivannan Sadhasivam <[email protected]>

    phy: qcom-qmp-pcie: Fix sm8450_qmp_gen4x2_pcie_pcs_tbl[] register names

Jon Hunter <[email protected]>
pwm: tegra: Ensure the clock rate is not less than needed

Jon Hunter <[email protected]>
pwm: tegra: Improve required rate calculation

Matt Redfearn <[email protected]>
include/uapi/linux/swab: Fix potentially missing __always_inline

Justin Chen <[email protected]>
phy: usb: Fix clock imbalance for suspend/resume

Justin Chen <[email protected]>
phy: usb: Use slow clock for wake enabled suspend

Al Cooper <[email protected]>

    phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices

Michael Riesch <[email protected]>
iommu/rockchip: fix permission bits in page table entries v2

Jernej Skrabec <[email protected]>
iommu/sun50i: Implement .iotlb_sync_map

Jernej Skrabec <[email protected]>
iommu/sun50i: Fix flush size

Jernej Skrabec <[email protected]>
iommu/sun50i: Fix R/W permission check

Jernej Skrabec <[email protected]>
iommu/sun50i: Consider all fault sources for reset

Jernej Skrabec <[email protected]>
iommu/sun50i: Fix reset release

Niklas Schnelle <[email protected]>
iommu/s390: Fix duplicate domain attachments

Johan Hovold <[email protected]>
phy: qcom-qmp-pcie: fix ipq8074-gen3 initialisation

Martin Povišer <[email protected]>
dmaengine: apple-admac: Allocate cache SRAM to channels

Martin Povišer <[email protected]>
dmaengine: apple-admac: Do not use devres for IRQs

Johan Hovold <[email protected]>
phy: qcom-qmp-pcie: drop bogus register update

Pali Rohár <[email protected]>
phy: marvell: phy-mvebu-a3700-comphy: Reset COMPHY registers before USB 3.0 power on

Dan Carpenter <[email protected]>
fs/ntfs3: Harden against integer overflows

Shigeru Yoshida <[email protected]>
fs/ntfs3: Avoid UBSAN error on true_sectors_per_clst()

Arnd Bergmann <[email protected]>
RDMA/siw: Fix pointer cast warning

Namhyung Kim <[email protected]>
perf stat: Do not delay the workload with --delay

Ard Biesheuvel <[email protected]>
ftrace: Allow WITH_ARGS flavour of graph tracer with shadow call stack

Namhyung Kim <[email protected]>
perf off_cpu: Fix a typo in BTF tracepoint name, it should be 'btf_trace_sched_switch'

Luca Weiss <[email protected]>

    leds: is31fl319x: Fix setting current limit for is31fl319{0,1,3}

ruanjinjie <[email protected]>
power: supply: fix null pointer dereferencing in power_supply_get_battery_info

Hans de Goede <[email protected]>
power: supply: bq25890: Ensure pump_express_work is cancelled on remove

Uwe Kleine-König <[email protected]>

    power: supply: bq25890: Convert to i2c's .probe_new()

Marek Vasut <[email protected]>
power: supply: bq25890: Factor out regulator registration code

Yuan Can <[email protected]>
power: supply: ab8500: Fix error handling in ab8500_charger_init()

Yuan Can <[email protected]>
HSI: omap_ssi_core: Fix error handling in ssi_init()

Shang XiaoJing <[email protected]>
power: supply: cw2015: Fix potential null-ptr-deref in cw_bat_probe()

Zheyu Ma <[email protected]>
power: supply: cw2015: Use device managed API to simplify the code

Zhang Qilong <[email protected]>
power: supply: z2_battery: Fix possible memleak in z2_batt_probe()

Ajay Kaher <[email protected]>
perf symbol: correction while adjusting symbol

Leo Yan <[email protected]>
perf trace: Handle failure when trace point folder is missed

Leo Yan <[email protected]>
perf trace: Use macro RAW_SYSCALL_ARGS_NUM to replace number

Leo Yan <[email protected]>
perf trace: Return error if a system call doesn't exist

Mika Westerberg <[email protected]>
watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running

Zeng Heng <[email protected]>
power: supply: fix residue sysfs file in error handle route of __power_supply_register()

Yang Yingliang <[email protected]>
HSI: omap_ssi_core: fix possible memory leak in ssi_probe()

Yang Yingliang <[email protected]>
HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()

Dmitry Baryshkov <[email protected]>
led: qcom-lpg: Fix sleeping in atomic

Christophe JAILLET <[email protected]>
fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()

Randy Dunlap <[email protected]>
fbdev: uvesafb: don't build on UML

Randy Dunlap <[email protected]>
fbdev: geode: don't build on UML

Gaosheng Cui <[email protected]>
fbdev: ep93xx-fb: Add missing clk_disable_unprepare in ep93xxfb_probe()

Xiongfeng Wang <[email protected]>
fbdev: vermilion: decrease reference count in error path

Shang XiaoJing <[email protected]>
fbdev: via: Fix error in via_core_init()

Yang Yingliang <[email protected]>
fbdev: pm2fb: fix missing pci_disable_device()

Andy Shevchenko <[email protected]>
fbdev: ssd1307fb: Drop optional dependency

Bjorn Andersson <[email protected]>
thermal/drivers/qcom/lmh: Fix irq handler return value

Luca Weiss <[email protected]>
thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2

Keerthy <[email protected]>
thermal/drivers/k3_j72xx_bandgap: Fix the debug print message

Marcus Folkesson <[email protected]>
thermal/drivers/imx8mm_thermal: Validate temperature range

Shang XiaoJing <[email protected]>
samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()

Xiu Jianfeng <[email protected]>
ksmbd: Fix resource leak in ksmbd_session_rpc_open()

Zheng Yejian <[email protected]>
tracing/hist: Fix issue of losting command info in error_log

Yang Yingliang <[email protected]>
usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe()

Jiasheng Jiang <[email protected]>
usb: storage: Add check for kcalloc

Zheyu Ma <[email protected]>
i2c: ismt: Fix an out-of-bounds bug in ismt_access()

Yang Yingliang <[email protected]>
i2c: mux: reg: check return value after calling platform_get_resource()

Bartosz Golaszewski <[email protected]>
gpiolib: protect the GPIO device against being dropped while in use by user-space

Bartosz Golaszewski <[email protected]>
gpiolib: cdev: fix NULL-pointer dereferences

Chen Zhongjin <[email protected]>
vme: Fix error not catched in fake_init()

YueHaibing <[email protected]>
staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()

Dan Carpenter <[email protected]>

    staging: rtl8192u: Fix use after free in ieee80211_rx()

Hui Tang <[email protected]>
i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe

Yang Yingliang <[email protected]>
chardev: fix error handling in cdev_device_add()

Yang Yingliang <[email protected]>
mcb: mcb-parse: fix error handing in chameleon_parse_gdd()

Zhengchao Shao <[email protected]>
drivers: mcb: fix resource leak in mcb_probe()

John Keeping <[email protected]>
usb: gadget: f_hid: fix refcount leak on error path

John Keeping <[email protected]>
usb: gadget: f_hid: fix f_hidg lifetime vs cdev

Yang Yingliang <[email protected]>
usb: core: hcd: Fix return value check in usb_hcd_setup_local_mem()

Yang Yingliang <[email protected]>
usb: roles: fix of node refcount leak in usb_role_switch_is_parent()

Beau Belgrave <[email protected]>
tracing/user_events: Fix call print_fmt leak

Yang Shen <[email protected]>
coresight: trbe: remove cpuhp instance node before remove cpuhp state

Fabrice Gasnier <[email protected]>
counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update

Ramona Bolboaca <[email protected]>
iio: adis: add '__adis_enable_irq()' implementation

Cosmin Tanislav <[email protected]>
iio: temperature: ltc2983: make bulk write buffer DMA-safe

Yang Yingliang <[email protected]>
cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()

Yang Yingliang <[email protected]>
cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()

Yang Yingliang <[email protected]>
firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()

Zheng Wang <[email protected]>
misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os

ruanjinjie <[email protected]>
misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()

Yang Yingliang <[email protected]>
ocxl: fix pci device refcount leak when calling get_function_0()

Yang Yingliang <[email protected]>
misc: ocxl: fix possible name leak in ocxl_file_register_afu()

Zhengchao Shao <[email protected]>
test_firmware: fix memory leak in test_firmware_init()

Yuan Can <[email protected]>
serial: sunsab: Fix error handling in sunsab_init()

Gabriel Somlo <[email protected]>
serial: altera_uart: fix locking in polling mode

Jiri Slaby <[email protected]>
tty: serial: altera_uart_{r,t}x_chars() need only uart_port

Jiri Slaby <[email protected]>
tty: serial: clean up stop-tx part in altera_uart_tx_chars()

Xiongfeng Wang <[email protected]>
serial: pch: Fix PCI device refcount leak in pch_request_dma()

Valentin Caron <[email protected]>
serial: stm32: move dma_request_chan() before clk_prepare_enable()

delisun <[email protected]>
serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.

Jiamei Xie <[email protected]>
serial: amba-pl011: avoid SBSA UART accessing DMACR register

Jiantao Zhang <[email protected]>
USB: gadget: Fix use-after-free during usb config switch

Marek Vasut <[email protected]>
extcon: usbc-tusb320: Update state on probe even if no IRQ pending

Marek Vasut <[email protected]>
extcon: usbc-tusb320: Add USB TYPE-C support

Marek Vasut <[email protected]>
extcon: usbc-tusb320: Factor out extcon into dedicated functions

Tony Lindgren <[email protected]>
usb: musb: omap2430: Fix probe regression for missing resources

Sven Peter <[email protected]>
usb: typec: tipd: Fix typec_unregister_port error paths

Sven Peter <[email protected]>
usb: typec: tipd: Fix spurious fwnode_handle_put in error path

Sven Peter <[email protected]>
usb: typec: tipd: Cleanup resources if devm_tps6598_psy_register fails

Yang Yingliang <[email protected]>
usb: typec: tcpci: fix of node refcount leak in tcpci_register_port()

Sven Peter <[email protected]>

    usb: typec: Check for ops->exit instead of ops->enter in altmode_exit

Gaosheng Cui <[email protected]>
staging: vme_user: Fix possible UAF in tsi148_dma_list_add

Krzysztof Kozlowski <[email protected]>
interconnect: qcom: sc7180: fix dropped const of qcom_icc_bcm

Linus Walleij <[email protected]>
usb: fotg210-udc: Fix ages old endianness issues

Rafael Mendonca <[email protected]>
uio: uio_dmem_genirq: Fix deadlock between irq config and handling

Rafael Mendonca <[email protected]>
uio: uio_dmem_genirq: Fix missing unlock in irq configuration

Rafael Mendonca <[email protected]>
vfio: platform: Do not pass return buffer to ACPI _RST method

Yang Yingliang <[email protected]>
class: fix possible memory leak in __class_register()

Duoming Zhou <[email protected]>
drivers: staging: r8188eu: Fix sleep-in-atomic-context bug in rtw_join_timeout_handler

Yuan Can <[email protected]>
serial: 8250_bcm7271: Fix error handling in brcmuart_init()

Kartik <[email protected]>
serial: tegra: Read DMA status before terminating

Yang Yingliang <[email protected]>
drivers: dio: fix possible memory leak in dio_init()

Alexandre Ghiti <[email protected]>
riscv: Fix P4D_SHIFT definition for 3-level page table mode

Yangtao Li <[email protected]>
f2fs: fix iostat parameter for discard

Palmer Dabbelt <[email protected]>
RISC-V: Align the shadow stack

Dragos Tatulea <[email protected]>
IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces

Xiongfeng Wang <[email protected]>
hwrng: geode - Fix PCI device refcount leak

Xiongfeng Wang <[email protected]>
hwrng: amd - Fix PCI device refcount leak

Gaosheng Cui <[email protected]>

    crypto: img-hash - Fix variable dereferenced before check 'hdev->req'

Samuel Holland <[email protected]>
riscv: Fix crash during early errata patching

Anup Patel <[email protected]>
RISC-V: Fix MEMREMAP_WB for systems with Svpbmt

Andrew Bresticker <[email protected]>
RISC-V: Fix unannoted hardirqs-on in return to userspace slow-path

Chengchang Tang <[email protected]>
RDMA/hns: Fix XRC caps on HIP08

Chengchang Tang <[email protected]>
RDMA/hns: Fix error code of CMD

Chengchang Tang <[email protected]>
RDMA/hns: Fix page size cap from firmware

Chengchang Tang <[email protected]>
RDMA/hns: Fix PBL page MTR find

Chengchang Tang <[email protected]>
RDMA/hns: Fix AH attr queried by query_qp

Yixing Liu <[email protected]>
RDMA/hns: Fix the gid problem caused by free mr

Wenpeng Liang <[email protected]>
RDMA/hns: Remove redundant DFX file and DFX ops structure

Zhang Xiaoxu <[email protected]>
orangefs: Fix sysfs not cleanup when dev init failed

Francisco Munoz <[email protected]>
PCI: vmd: Fix secondary bus reset for Intel bridges

Wang Yufen <[email protected]>
RDMA/srp: Fix error return code in srp_parse_options()

Wang Yufen <[email protected]>
RDMA/hfi1: Fix error return code in parse_platform_config()

Randy Dunlap <[email protected]>
RDMA: Disable IB HW for UML

Tong Tiangen <[email protected]>
riscv/mm: add arch hook arch_clear_hugepage_flags

Shang XiaoJing <[email protected]>
crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe()

Christophe JAILLET <[email protected]>
crypto: amlogic - Remove kcalloc without check

Wang Yufen <[email protected]>
crypto: qat - fix error return code in adf_probe

Mark Zhang <[email protected]>
RDMA/nldev: Fix failure to send large messages

Yonggil Song <[email protected]>
f2fs: avoid victim selection from previous victim section

Sheng Yong <[email protected]>
f2fs: fix to enable compress for newly created file if extension matches

Sheng Yong <[email protected]>
f2fs: set zstd compress level correctly

Yuan Can <[email protected]>
RDMA/nldev: Add checks for nla_nest_start() in fill_stat_counter_qps()

Bart Van Assche <[email protected]>
scsi: ufs: core: Fix the polling implementation

Jie Zhan <[email protected]>
scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset

Jie Zhan <[email protected]>
scsi: libsas: Add smp_ata_check_ready_type()

Gaosheng Cui <[email protected]>
scsi: snic: Fix possible UAF in snic_tgt_create()

Chen Zhongjin <[email protected]>
scsi: fcoe: Fix transport not deattached when fcoe_if_init() fails

Shang XiaoJing <[email protected]>
scsi: ipr: Fix WARNING in ipr_init()

Yang Yingliang <[email protected]>
scsi: scsi_debug: Fix possible name leak in sdebug_add_host_helper()

Yang Yingliang <[email protected]>
scsi: fcoe: Fix possible name leak when device_register() fails

Harshit Mogalapalli <[email protected]>
scsi: scsi_debug: Fix a warning in resp_report_zones()

Harshit Mogalapalli <[email protected]>
scsi: scsi_debug: Fix a warning in resp_verify()

Chen Zhongjin <[email protected]>
scsi: efct: Fix possible memleak in efct_device_init()

Yang Yingliang <[email protected]>
scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()

Yang Yingliang <[email protected]>
scsi: hpsa: Fix error handling in hpsa_add_sas_host()

Yang Yingliang <[email protected]>
scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()

Daniel Jordan <[email protected]>
padata: Fix list iterator in padata_do_serial()

Daniel Jordan <[email protected]>

    padata: Always leave BHs disabled when running ->parallel()

Zhang Yiqun <[email protected]>
crypto: tcrypt - Fix multibuffer skcipher speed test mem leak

Yuan Can <[email protected]>
scsi: hpsa: Fix possible memory leak in hpsa_init_one()

Frank Li <[email protected]>
PCI: endpoint: pci-epf-vntb: Fix call pci_epc_mem_free_addr() in error path

Serge Semin <[email protected]>
dt-bindings: visconti-pcie: Fix interrupts array max constraints

Serge Semin <[email protected]>
dt-bindings: imx6q-pcie: Fix clock names for imx6sx and imx8mq

Zhang Xiaoxu <[email protected]>
RDMA/rxe: Fix NULL-ptr-deref in rxe_qp_do_cleanup() when socket create failed

Zhengchao Shao <[email protected]>
RDMA/hns: fix memory leak in hns_roce_alloc_mr()

Mustafa Ismail <[email protected]>
RDMA/irdma: Initialize net_type before checking it

Uwe Kleine-König <[email protected]>
crypto: ccree - Make cc_debugfs_global_fini() available for module init function

Xiongfeng Wang <[email protected]>
RDMA/hfi: Decrease PCI device reference count in error path

Zeng Heng <[email protected]>
PCI: Check for alloc failure in pci_request_irq()

Luoyouming <[email protected]>
RDMA/hns: Fix incorrect sge nums calculation

Luoyouming <[email protected]>
RDMA/hns: Fix ext_sge num error when post send

Luoyouming <[email protected]>
RDMA/hns: Repacing 'dseg_len' by macros in fill_ext_sge_inl_data()

Li Zhijian <[email protected]>

    RDMA/rxe: Fix mr->map double free

Xiongfeng Wang <[email protected]>
crypto: hisilicon/qm - add missing pci_dev_put() in q_num_set()

Herbert Xu <[email protected]>
crypto: cryptd - Use request context instead of stack for sub-request

Gaosheng Cui <[email protected]>
crypto: ccree - Remove debugfs when platform_driver_register failed

Harshit Mogalapalli <[email protected]>
scsi: scsi_debug: Fix a warning in resp_write_scat()

Mustafa Ismail <[email protected]>
RDMA/irdma: Do not request 2-level PBLEs for CQ alloc

Mustafa Ismail <[email protected]>
RDMA/irdma: Fix RQ completion opcode

Mustafa Ismail <[email protected]>
RDMA/irdma: Fix inline for multiple SGE's

Bernard Metzler <[email protected]>
RDMA/siw: Set defined status for work completion with undefined status

Mark Zhang <[email protected]>
RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port

Mark Zhang <[email protected]>
RDMA/core: Make sure "ib_port" is valid when access sysfs node

Mark Zhang <[email protected]>
RDMA/restrack: Release MR restrack when delete

Sascha Hauer <[email protected]>
PCI: imx6: Initialize PHY before deasserting core reset

Nirmal Patel <[email protected]>
PCI: vmd: Disable MSI remapping after suspend

Leonid Ravich <[email protected]>
IB/mad: Don't call to function that might sleep while in atomic context

Bernard Metzler <[email protected]>
RDMA/siw: Fix immediate work request flush to completion queue

Bart Van Assche <[email protected]>
scsi: qla2xxx: Fix set-but-not-used variable warnings

Shiraz Saleem <[email protected]>
RDMA/irdma: Report the correct link speed

Chao Yu <[email protected]>

    f2fs: fix to destroy sbi->post_read_wq in error path of f2fs_fill_super()

Mukesh Ojha <[email protected]>
f2fs: fix the assign logic of iocb

Jaegeuk Kim <[email protected]>
f2fs: allow to set compression for inlined file

Dongdong Zhang <[email protected]>
f2fs: fix normal discard process

Chao Yu <[email protected]>

    f2fs: fix to invalidate dcc->f2fs_issue_discard in error path

Kees Cook <[email protected]>
fortify: Do not cast to "unsigned char"

Kees Cook <[email protected]>
fortify: Use SIZE_MAX instead of (size_t)-1

Xiu Jianfeng <[email protected]>
apparmor: Fix memleak in alloc_ns()

Corentin Labbe <[email protected]>
crypto: rockchip - rework by using crypto_engine

Corentin Labbe <[email protected]>
crypto: rockchip - remove non-aligned handling

Corentin Labbe <[email protected]>
crypto: rockchip - better handle cipher key

Corentin Labbe <[email protected]>
crypto: rockchip - add fallback for ahash

Corentin Labbe <[email protected]>
crypto: rockchip - add fallback for cipher

Corentin Labbe <[email protected]>
crypto: rockchip - do not store mode globally

Corentin Labbe <[email protected]>
crypto: rockchip - do not do custom power management

Zhang Qilong <[email protected]>
f2fs: Fix the race condition of resize flag between resizefs

Kunihiko Hayashi <[email protected]>
PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled

Leon Romanovsky <[email protected]>
RDMA/core: Fix order of nldev_exit call

Vidya Sagar <[email protected]>

    PCI: dwc: Fix n_fts[] array overrun

Xiu Jianfeng <[email protected]>
apparmor: Use pointer to struct aa_label for lbs_cred

Bart Van Assche <[email protected]>
scsi: core: Fix a race between scsi_done() and scsi_timeout()

Robert Elliott <[email protected]>
crypto: tcrypt - fix return value for multiple subtests

Natalia Petrova <[email protected]>
crypto: nitrox - avoid double free on error path in nitrox_sriov_init()

Corentin Labbe <[email protected]>
crypto: sun8i-ss - use dma_addr instead u32

Weili Qian <[email protected]>
crypto: hisilicon/qm - re-enable communicate interrupt before notifying PF

Weili Qian <[email protected]>
crypto: hisilicon/qm - get hardware features from hardware registers

Weili Qian <[email protected]>
crypto: hisilicon/qm - fix missing destroy qp_idr

John Johansen <[email protected]>
apparmor: Fix regression in stacking due to label flags

John Johansen <[email protected]>
apparmor: Fix abi check to include v8 abi

John Johansen <[email protected]>
apparmor: fix lockdep warning when removing a namespace

Gaosheng Cui <[email protected]>
apparmor: fix a memleak in multi_transaction_new()

Vladimir Oltean <[email protected]>
net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path

Bartosz Staszewski <[email protected]>
i40e: Fix the inability to attach XDP program on downed interface

Piergiorgio Beruto <[email protected]>
stmmac: fix potential division by 0

Yang Yingliang <[email protected]>
Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
Bluetooth: hci_core: don't call kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
Bluetooth: hci_ll: don't call kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()

Wang ShaoBo <[email protected]>
Bluetooth: btintel: Fix missing free skb in btintel_setup_combined()

Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_conn: Fix crash on hci_create_cis_sync

Christophe JAILLET <[email protected]>
Bluetooth: Fix EALREADY and ELOOP cases in bt_status()

Inga Stotland <[email protected]>
Bluetooth: MGMT: Fix error report for ADD_EXT_ADV_PARAMS

Yang Yingliang <[email protected]>
Bluetooth: hci_core: fix error handling in hci_register_dev()

Firo Yang <[email protected]>
sctp: sysctl: make extra pointers netns aware

Eric Pilmore <[email protected]>
ntb_netdev: Use dev_kfree_skb_any() in interrupt context

Jerry Ray <[email protected]>
net: lan9303: Fix read error execution path

Roger Quadros <[email protected]>
net: ethernet: ti: am65-cpsw: Fix PM runtime leakage in am65_cpsw_nuss_ndo_slave_open()

Markus Schneider-Pargmann <[email protected]>
can: tcan4x5x: Fix use of register error status mask

Vivek Yadav <[email protected]>
can: m_can: Call the RAM init directly from m_can_chip_config

Markus Schneider-Pargmann <[email protected]>
can: tcan4x5x: Remove invalid write in clear_interrupts

Tom Lendacky <[email protected]>
net: amd-xgbe: Check only the minimum speed for active/passive cables

Tom Lendacky <[email protected]>
net: amd-xgbe: Fix logic around active and passive cables

Yang Yingliang <[email protected]>
af_unix: call proto_unregister() in the error path in af_unix_init()

Richard Gobert <[email protected]>
net: setsockopt: fix IPV6_UNICAST_IF option for connected sockets

Yang Yingliang <[email protected]>
net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
hamradio: don't call dev_kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave()

Yang Yingliang <[email protected]>
net: apple: mace: don't call dev_kfree_skb() under spin_lock_irqsave()

Hangbin Liu <[email protected]>
net/tunnel: wait until all sk_user_data reader finish before releasing the sock

Li Zetao <[email protected]>
net: farsync: Fix kmemleak when rmmods farsync

Yang Yingliang <[email protected]>
ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave()

ruanjinjie <[email protected]>
of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()

Julian Anastasov <[email protected]>
ipvs: use u64_stats_t for the per-cpu counters

Thomas Gleixner <[email protected]>
net: Remove the obsolte u64_stats_fetch_*_irq() users (net).

Yuan Can <[email protected]>
drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()

Gaosheng Cui <[email protected]>
net: stmmac: fix possible memory leak in stmmac_dvr_probe()

Zhang Changzhong <[email protected]>
net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()

Yongqiang Liu <[email protected]>
net: defxx: Fix missing err handling in dfx_init()

Artem Chernyshev <[email protected]>
net: vmw_vsock: vmci: Check memcpy_from_msg()

Xiu Jianfeng <[email protected]>
clk: socfpga: Fix memory leak in socfpga_gate_init()

Björn Töpel <[email protected]>
bpf: Do not zero-extend kfunc return values

Yang Jihong <[email protected]>
blktrace: Fix output non-blktrace event when blk_classic option enabled

Wang Yufen <[email protected]>
wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()

Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Fix the channel width reporting

Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h

Kris Bahnsen <[email protected]>
spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode

Xiu Jianfeng <[email protected]>
clk: samsung: Fix memory leak in _samsung_clk_register_pll()

Geert Uytterhoeven <[email protected]>
media: staging: stkwebcam: Restore MEDIA_{USB,CAMERA}_SUPPORT dependencies

Jiasheng Jiang <[email protected]>
media: coda: Add check for kmalloc

Jiasheng Jiang <[email protected]>
media: coda: Add check for dcoda_iram_alloc

Liang He <[email protected]>
media: c8sectpfe: Add of_node_put() when breaking out of loop

Yuan Can <[email protected]>
regulator: qcom-labibb: Fix missing of_node_put() in qcom_labibb_regulator_probe()

Zhen Lei <[email protected]>
mmc: core: Normalize the error handling branch in sd_read_ext_regs()

Jiasheng Jiang <[email protected]>
memstick/ms_block: Add check for alloc_ordered_workqueue

Wolfram Sang <[email protected]>
mmc: renesas_sdhi: alway populate SCC pointer

Yang Yingliang <[email protected]>
mmc: mmci: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: wbsd: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: via-sdmmc: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: meson-gx: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: omap_hsmmc: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: atmel-mci: fix return value check of mmc_add_host()

Gabriel Somlo <[email protected]>

    mmc: litex_mmc: ensure `host->irq == 0` if polling

Yang Yingliang <[email protected]>
mmc: wmt-sdmmc: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: vub300: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: toshsd: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: rtsx_pci: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: pxamci: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: mxcmmc: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: moxart: fix return value check of mmc_add_host()

Yang Yingliang <[email protected]>
mmc: alcor: fix return value check of mmc_add_host()

Miaoqian Lin <[email protected]>
bpftool: Fix memory leak in do_build_table_cb

Pu Lehui <[email protected]>
riscv, bpf: Emit fixed-length instructions for BPF_PSEUDO_FUNC

Trond Myklebust <[email protected]>
NFSv4.x: Fail client initialisation if state manager thread can't run

Anna Schumaker <[email protected]>
NFS: Allow very small rsize & wsize again

Anna Schumaker <[email protected]>
NFSv4.2: Set the correct size scratch buffer for decoding READ_PLUS

Wang ShaoBo <[email protected]>
SUNRPC: Fix missing release socket in rpc_sockname()

Zhang Xiaoxu <[email protected]>
xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()

Gaosheng Cui <[email protected]>
pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()

Gaosheng Cui <[email protected]>
ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt

Guoniu.zhou <[email protected]>
media: ov5640: set correct default link frequency

Liu Shixin <[email protected]>
media: saa7164: fix missing pci_disable_device()

Takashi Iwai <[email protected]>
ALSA: pcm: Set missing stop_operating flag at undoing trigger start

Eric Dumazet <[email protected]>
bpf, sockmap: fix race in sock_map_free()

Martin Blumenstingl <[email protected]>
hwmon: (jc42) Restore the min/max/critical temperatures on resume

Martin Blumenstingl <[email protected]>
hwmon: (jc42) Convert register access and caching to regmap/regcache

Yang Yingliang <[email protected]>
regulator: core: fix resource leak in regulator_register()

Chen Zhongjin <[email protected]>
configfs: fix possible memory leak in configfs_create_dir()

Sebastian Andrzej Siewior <[email protected]>
hsr: Synchronize sequence number updates.

Sebastian Andrzej Siewior <[email protected]>
hsr: Synchronize sending frames to have always incremented outgoing seq nr.

Sebastian Andrzej Siewior <[email protected]>
hsr: Disable netpoll.

Sebastian Andrzej Siewior <[email protected]>
hsr: Avoid double remove of a node.

Sebastian Andrzej Siewior <[email protected]>
hsr: Add a rcu-read lock to hsr_forward_skb().

Sebastian Andrzej Siewior <[email protected]>
Revert "net: hsr: use hlist_head instead of list_head for mac addresses"

Christian Marangi <[email protected]>
clk: qcom: clk-krait: fix wrong div2 functions

Douglas Anderson <[email protected]>
clk: qcom: lpass-sc7180: Fix pm_runtime usage

Douglas Anderson <[email protected]>
clk: qcom: lpass-sc7280: Fix pm_runtime usage

Taniya Das <[email protected]>
clk: qcom: lpass: Add support for resets & external mclk for SC7280

Taniya Das <[email protected]>
clk: qcom: lpass: Handle the regmap overlap of lpasscc and lpass_aon

Taniya Das <[email protected]>
dt-bindings: clock: Add support for external MCLKs for LPASS on SC7280

Taniya Das <[email protected]>
dt-bindings: clock: Add resets for LPASS audio clock controller for SC7280

Yang Yingliang <[email protected]>
regulator: core: fix module refcount leak in set_supply()

Xiongfeng Wang <[email protected]>

    mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2()

Deren Wu <[email protected]>
wifi: mt76: fix coverity overrun-call in mt76_get_txpower()

Nicolas Cavallari <[email protected]>
wifi: mt76: mt7915: Fix chainmask calculation on mt7915 DBDC

Shayne Chen <[email protected]>
wifi: mt76: mt7915: rework eeprom tx paths and streams init

Lorenzo Bianconi <[email protected]>
wifi: mt76: mt7921: fix reporting of TX AGGR histogram

Lorenzo Bianconi <[email protected]>
wifi: mt76: mt7915: fix reporting of TX AGGR histogram

Ryder Lee <[email protected]>

    wifi: mt76: mt7915: fix mt7915_mac_set_timing()

Sean Wang <[email protected]>
wifi: mt76: mt7921: fix antenna signal are way off in monitor mode

Chen Zhongjin <[email protected]>
wifi: cfg80211: Fix not unregister reg_pdev when load_builtin_regdb_keys() fails

Íñigo Huguet <[email protected]>
wifi: mac80211: fix maybe-unused warning

Zhengchao Shao <[email protected]>

    wifi: mac80211: fix memory leak in ieee80211_if_add()

Yuan Can <[email protected]>

    wifi: nl80211: Add checks for nla_nest_start() in nl80211_send_iface()

Alexander Sverdlin <[email protected]>
spi: spidev: mask SPI_CS_HIGH in SPI_IOC_RD_MODE

Dan Carpenter <[email protected]>
bonding: uninitialized variable in bond_miimon_inspect()

Pengcheng Yang <[email protected]>
bpf, sockmap: Fix data loss caused by using apply_bytes on ingress redirect

Pengcheng Yang <[email protected]>
bpf, sockmap: Fix missing BPF_F_INGRESS flag when using apply_bytes

Pengcheng Yang <[email protected]>
bpf, sockmap: Fix repeated calls to sock_put() when msg has more_data

Randy Dunlap <[email protected]>
Input: wistron_btns - disable on UML

Florian Westphal <[email protected]>
netfilter: conntrack: set icmpv6 redirects as RELATED

Xiu Jianfeng <[email protected]>
clk: visconti: Fix memory leak in visconti_register_pll()

Zhang Qilong <[email protected]>
ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe

Xia Fukun <[email protected]>
drm/i915/bios: fix a memory leak in generate_lfp_data_ptrs

Konstantin Meskhidze <[email protected]>
drm/amdkfd: Fix memory leakage

Xiongfeng Wang <[email protected]>
drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()

Xiongfeng Wang <[email protected]>
drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()

Veerabadhran Gopalakrishnan <[email protected]>
amdgpu/nv.c: Corrected typo in the video capabilities resolution

Guchun Chen <[email protected]>
drm/amd/pm/smu11: BACO is supported when it's in BACO state

Daniel Golle <[email protected]>
clk: mediatek: fix dependency of MT7986 ADC clocks

Ricardo Ribalda <[email protected]>
ASoC: mediatek: mt8173: Enable IRQ when pdata is ready

zhichao.liu <[email protected]>
spi: mt65xx: Add dma max segment size declaration

Ben Greear <[email protected]>
wifi: iwlwifi: mvm: fix double free on tx path.

Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Fix use after rcu_read_unlock in rtl8xxxu_bss_info_changed

Ziyang Xuan <[email protected]>
wifi: plfxlc: fix potential memory leak in __lf_x_usb_enable_rx()

Liu Shixin <[email protected]>
ALSA: asihpi: fix missing pci_disable_device()

Trond Myklebust <[email protected]>
NFS: Fix an Oops in nfs_d_automount()

Trond Myklebust <[email protected]>
NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn

Trond Myklebust <[email protected]>
NFSv4: Fix a credential leak in _nfs4_discover_trunking()

Trond Myklebust <[email protected]>
NFSv4.2: Fix initialisation of struct nfs4_label

Trond Myklebust <[email protected]>
NFSv4.2: Fix a memory stomp in decode_attr_security_label

Trond Myklebust <[email protected]>
NFSv4.2: Always decode the security label

Trond Myklebust <[email protected]>
NFSv4.2: Clear FATTR4_WORD2_SECURITY_LABEL when done decoding

Dmitry Baryshkov <[email protected]>
drm/msm/mdp5: fix reading hw revision on db410c platform

Jiasheng Jiang <[email protected]>
ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd

Dmitry Torokhov <[email protected]>
ASoC: dt-bindings: wcd9335: fix reset line polarity in example

Zhang Zekun <[email protected]>
drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()

Aakarsh Jain <[email protected]>
media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC

Yunfei Dong <[email protected]>
media: mediatek: vcodec: Core thread depends on core_list

Yunfei Dong <[email protected]>
media: mediatek: vcodec: Setting lat buf to lat_list when lat decode error

Yunfei Dong <[email protected]>
media: mediatek: vcodec: Fix h264 set lat buffer error

Yunfei Dong <[email protected]>
media: mediatek: vcodec: Fix getting NULL pointer for dst buffer

Ming Qian <[email protected]>
media: amphion: lock and check m2m_ctx in event handler

Ming Qian <[email protected]>
media: amphion: cancel vpu before release instance

Ming Qian <[email protected]>
media: amphion: try to wakeup vpu core to avoid failure

Paul Kocialkowski <[email protected]>
media: sun8i-a83t-mipi-csi2: Register async subdev with no sensor attached

Paul Kocialkowski <[email protected]>
media: sun6i-mipi-csi2: Register async subdev with no sensor attached

Paul Kocialkowski <[email protected]>
media: sun8i-a83t-mipi-csi2: Require both pads to be connected for streaming

Paul Kocialkowski <[email protected]>
media: sun6i-mipi-csi2: Require both pads to be connected for streaming

Juergen Gross <[email protected]>
x86/boot: Skip realmode init code when running as Xen PV guest

Baisong Zhong <[email protected]>

    media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()

Chen Zhongjin <[email protected]>
media: dvb-core: Fix ignored return value in dvb_register_frontend()

ZhangPeng <[email protected]>
pinctrl: pinconf-generic: add missing of_node_put()

Dario Binacchi <[email protected]>
clk: imx8mn: fix imx8mn_enet_phy_sels clocks list

Dario Binacchi <[email protected]>
clk: imx8mn: fix imx8mn_sai2_sels clocks list

Dario Binacchi <[email protected]>
clk: imx: rename video_pll1 to video_pll

Dario Binacchi <[email protected]>
clk: imx: replace osc_hdmi with dummy

Dario Binacchi <[email protected]>
clk: imx8mn: rename vpu_pll to m7_alt_pll

Marek Vasut <[email protected]>

    media: mt9p031: Drop bogus v4l2_subdev_get_try_crop() call from mt9p031_init_cfg()

Laurent Pinchart <[email protected]>
media: imx: imx7-media-csi: Clear BIT_MIPI_DOUBLE_CMPNT for <16b formats

Gautam Menghani <[email protected]>
media: imon: fix a race condition in send_packet()

Chen Zhongjin <[email protected]>
media: vimc: Fix wrong function called when vimc_init() fails

Yuan Can <[email protected]>
ASoC: qcom: Add checks for devm_kcalloc

Wang ShaoBo <[email protected]>
drbd: destroy workqueue when drbd device was freed

Wang ShaoBo <[email protected]>
drbd: remove call to memset before free device/resource/connection

Zheng Yongjun <[email protected]>
mtd: maps: pxa2xx-flash: fix memory leak in probe

Shang XiaoJing <[email protected]>
mtd: core: Fix refcount error in del_mtd_device()

Jonathan Toppins <[email protected]>
bonding: fix link recovery in mode 2 when updelay is nonzero

Stanislav Fomichev <[email protected]>
selftests/bpf: Mount debugfs in setns_by_fd

Stanislav Fomichev <[email protected]>
selftests/bpf: Make sure zero-len skbs aren't redirectable

Jani Nikula <[email protected]>
drm/i915/guc: make default_lists const data

Yang Yingliang <[email protected]>
drm/amdgpu: fix pci device refcount leak

Xiu Jianfeng <[email protected]>
clk: rockchip: Fix memory leak in rockchip_clk_register_pll()

Wang ShaoBo <[email protected]>
regulator: core: use kfree_const() to free space conditionally

Baisong Zhong <[email protected]>
ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENT

Baisong Zhong <[email protected]>
ALSA: pcm: fix undefined behavior in bit shift for SNDRV_PCM_RATE_KNOT

Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Lock substream before snd_pcm_stop()

Zong-Zhe Yang <[email protected]>
wifi: rtw89: fix physts IE page check

ZhangPeng <[email protected]>

    pinctrl: k210: call of_node_put()

Giulio Benetti <[email protected]>
clk: imx: imxrt1050: fix IMXRT1050_CLK_LCDIF_APB offsets

Marcus Folkesson <[email protected]>
HID: hid-sensor-custom: set fixed size for custom attributes

Stanislav Fomichev <[email protected]>

    bpf: Move skb->len == 0 checks into __bpf_redirect

Peng Fan <[email protected]>
clk: imx93: correct enet clock

Peng Fan <[email protected]>
clk: imx93: unmap anatop base in error handling path

Dmitry Torokhov <[email protected]>
HID: i2c: let RMI devices decide what constitutes wakeup event

Haibo Chen <[email protected]>
clk: imx93: correct the flexspi1 clock setting

Allen-KH Cheng <[email protected]>
mtd: spi-nor: Fix the number of bytes for the dummy cycles

Michael Walle <[email protected]>
mtd: spi-nor: hide jedec_id sysfs attribute if not present

Kuniyuki Iwashima <[email protected]>

    net: Return errno in sk->sk_prot->get_port().

Kuniyuki Iwashima <[email protected]>
udp: Clean up some functions.

Lorenzo Bianconi <[email protected]>
net: ethernet: mtk_eth_soc: fix RSTCTRL_PPE{0,1} definitions

Christoph Hellwig <[email protected]>
media: videobuf-dma-contig: use dma_mmap_coherent

Yuan Can <[email protected]>
media: amphion: Fix error handling in vpu_driver_init()

Yuan Can <[email protected]>
media: platform: exynos4-is: Fix error handling in fimc_md_init()

Yang Yingliang <[email protected]>
media: solo6x10: fix possible memory leak in solo_sysfs_init()

Chen Zhongjin <[email protected]>
media: vidtv: Fix use-after-free in vidtv_bridge_dvb_init()

Ming Qian <[email protected]>
media: amphion: apply vb2_queue_error instead of setting manually

Ming Qian <[email protected]>
media: amphion: add lock around vdec_g_fmt

Lorenzo Bianconi <[email protected]>
net: ethernet: mtk_eth_soc: do not overwrite mtu configuration running reset routine

Douglas Anderson <[email protected]>
Input: elants_i2c - properly handle the reset GPIO when power is off

Hui Tang <[email protected]>
mtd: lpddr2_nvm: Fix possible null-ptr-deref

Rob Clark <[email protected]>
drm/msm/a6xx: Fix speed-bin detection vs probe-defer

Xiu Jianfeng <[email protected]>
wifi: ath10k: Fix return value in ath10k_pci_init()

Wang Yufen <[email protected]>
selftests/bpf: fix memory leak of lsm_cgroup

Christoph Hellwig <[email protected]>
dm: track per-add_disk holder relations in DM

Yu Kuai <[email protected]>
dm: make sure create and remove dm device won't race with open and close table

Christoph Hellwig <[email protected]>
dm: cleanup close_table_device

Christoph Hellwig <[email protected]>
dm: cleanup open_table_device

Christoph Hellwig <[email protected]>

    block: clear ->slave_dir when dropping the main slave_dir reference

Xiu Jianfeng <[email protected]>
ima: Fix misuse of dereference of pointer in template_desc_init_fields()

GUO Zihua <[email protected]>
integrity: Fix memory leakage in keyring allocation error path

Brian Starkey <[email protected]>
drm/fourcc: Fix vsub/hsub for Q410 and Q401

Konrad Dybcio <[email protected]>
regulator: qcom-rpmh: Fix PMR735a S3 regulator spec

Christophe JAILLET <[email protected]>
wifi: rtw89: Fix some error handling path in rtw89_core_sta_assoc()

Joel Granados <[email protected]>
nvme: return err on nvme_init_non_mdts_limits fail

Dan Carpenter <[email protected]>
amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()

Yang Yingliang <[email protected]>
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()

Christoph Hellwig <[email protected]>
nvmet: only allocate a single slab for bvecs

Zeng Heng <[email protected]>
ASoC: pxa: fix null-pointer dereference in filter()

Xinlei Lee <[email protected]>
drm/mediatek: Modify dpi power on/off sequence.

Yang Jihong <[email protected]>
selftests/bpf: Fix xdp_synproxy compilation failure in 32-bit arch

Randy Dunlap <[email protected]>
ASoC: codecs: wsa883x: use correct header file

Krzysztof Kozlowski <[email protected]>
ASoC: codecs: wsa883x: Use proper shutdown GPIO polarity

Miaoqian Lin <[email protected]>
module: Fix NULL vs IS_ERR checking for module_get_next_page

Johannes Berg <[email protected]>
wifi: iwlwifi: mei: fix potential NULL-ptr deref after clone

Avraham Stern <[email protected]>
wifi: iwlwifi: mei: avoid blocking sap messages handling due to rtnl lock

Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: mei: fix tx DHCP packet for devices with new Tx API

Emmanuel Grumbach <[email protected]>
wifi: iwlwifi: mei: don't send SAP commands if AMT is disabled

Avraham Stern <[email protected]>
wifi: iwlwifi: mei: make sure ownership confirmed message is sent

Sam Shih <[email protected]>
pinctrl: mediatek: fix the pinconf register offset of some pins

Frank Wunderlich <[email protected]>
dt-bindings: pinctrl: update uart/mmc bindings for MT7986 SoC

Hanjun Guo <[email protected]>
drm/radeon: Add the missed acpi_put_table() to fix memory leak

Khazhismel Kumykov <[email protected]>
bfq: fix waker_bfqq inconsistency crash

Christoph Böhmwalder <[email protected]>
drbd: use blk_queue_max_discard_sectors helper

Yassine Oudjana <[email protected]>
regmap-irq: Use the new num_config_regs property in regmap_add_irq_chip_fwnode

Laurent Pinchart <[email protected]>
drm: rcar-du: Drop leftovers dependencies from Kconfig

Ping-Ke Shih <[email protected]>
wifi: rtw89: use u32_encode_bits() to fill MAC quota value

Marek Vasut <[email protected]>
drm: lcdif: Set and enable FIFO Panic threshold

David Howells <[email protected]>
rxrpc: Fix ack.bufferSize to be 0 when generating an ack

David Howells <[email protected]>
net, proc: Provide PROC_FS=n fallback for proc_create_net_single_write()

Cole Robinson <[email protected]>
virt/sev-guest: Add a MODULE_ALIAS

Wolfram Sang <[email protected]>
clk: renesas: r8a779f0: Fix SCIF parent clocks

Wolfram Sang <[email protected]>
clk: renesas: r8a779f0: Fix HSCIF parent clocks

Vladimir Zapolskiy <[email protected]>
media: camss: Do not attach an already attached power domain on MSM8916 platform

Vladimir Zapolskiy <[email protected]>
media: camss: Clean up received buffers on failed start of streaming

Marek Vasut <[email protected]>
wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port

Randy Dunlap <[email protected]>
Input: joystick - fix Kconfig warning for JOYSTICK_ADC

Gaosheng Cui <[email protected]>
mtd: core: fix possible resource leak in init_mtd()

Zhang Xiaoxu <[email protected]>
mtd: Fix device name leak when register device failed in add_mtd_device()

Manivannan Sadhasivam <[email protected]>
clk: qcom: gcc-sm8250: Use retention mode for USB GDSCs

Konrad Dybcio <[email protected]>
clk: qcom: dispcc-sm6350: Add CLK_OPS_PARENT_ENABLE to pixel&byte src

Dmitry Baryshkov <[email protected]>
clk: qcom: gcc-ipq806x: use parent_data for the last remaining entry

Andrii Nakryiko <[email protected]>
bpf: propagate precision across all frames, not just the last one

Andrii Nakryiko <[email protected]>
bpf: propagate precision in ALU/ALU64 operations

Yang Yingliang <[email protected]>
media: platform: exynos4-is: fix return value check in fimc_md_probe()

Liu Shixin <[email protected]>
media: vivid: fix compose size exceed boundary

Andrzej Pietrasiewicz <[email protected]>
media: rkvdec: Add required padding

Marijn Suijten <[email protected]>
drm/msm/dsi: Prevent signed BPG offsets from bleeding into adjacent bits

Marijn Suijten <[email protected]>
drm/msm/dsi: Disallow 8 BPC DSC configuration for alternative BPC values

Marijn Suijten <[email protected]>
drm/msm/dsi: Account for DSC's bits_per_pixel having 4 fractional bits

Marijn Suijten <[email protected]>
drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters()

Marijn Suijten <[email protected]>

    drm/msm/dsi: Appropriately set dsc->mux_word_size based on bpc

Marijn Suijten <[email protected]>

    drm/msm/dsi: Reuse earlier computed dsc->slice_chunk_size

Marijn Suijten <[email protected]>
drm/msm/dsi: Use DIV_ROUND_UP instead of conditional increment on modulo

Marijn Suijten <[email protected]>
drm/msm/dsi: Remove repeated calculation of slice_per_intf

Marijn Suijten <[email protected]>
drm/msm/dsi: Remove useless math in DSC calculations

Dmitry Baryshkov <[email protected]>
drm/msm/dsi: use drm_dsc_config instead of msm_display_dsc_config

Marijn Suijten <[email protected]>
drm/msm/dpu1: Account for DSC's bits_per_pixel having 4 fractional bits

Dmitry Baryshkov <[email protected]>
drm/msm/dpu: use drm_dsc_config instead of msm_display_dsc_config

Kumar Kartikeya Dwivedi <[email protected]>
bpf: Fix slot type check in check_stack_write_var_off

Kumar Kartikeya Dwivedi <[email protected]>
bpf: Clobber stack slot when writing over spilled PTR_TO_BTF_ID

Dmitry Baryshkov <[email protected]>
drm/msm/hdmi: use devres helper for runtime PM management

GUO Zihua <[email protected]>
ima: Handle -ESTALE returned by ima_filter_rule_match()

Dmitry Baryshkov <[email protected]>
drm/msm/mdp5: stop overriding drvdata

Gaosheng Cui <[email protected]>
drm/ttm: fix undefined behavior in bit shift for TTM_TT_FLAG_PRIV_POPULATED

Marek Vasut <[email protected]>
drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure

Jonathan Neuschäfer <[email protected]>
spi: Update reference to struct spi_controller

Marco Felsch <[email protected]>
drm: lcdif: change burst size to 256B

Marek Vasut <[email protected]>
clk: renesas: r9a06g032: Repair grave increment error

Zhang Qilong <[email protected]>
drm/rockchip: lvds: fix PM usage counter unbalance in poweron

Haiyi Zhou <[email protected]>
drm/amd/display: wait for vblank during pipe programming

Sakari Ailus <[email protected]>
dw9768: Enable low-power probe on ACPI

Alan Previn <[email protected]>
drm/i915/guc: Fix GuC error capture sizing estimation and reporting

Alan Previn <[email protected]>
drm/i915/guc: Add error-capture init warnings when needed

John Harrison <[email protected]>
drm/i915/guc: Make GuC log sizes runtime configurable

John Harrison <[email protected]>
drm/i915/guc: Fix capture size warning and bump the size

Alan Previn <[email protected]>
drm/i915/guc: Add a helper for log buffer size

Nícolas F. R. A. Prado <[email protected]>
ASoC: dt-bindings: rt5682: Set sound-dai-cells to 1

Wolfram Sang <[email protected]>
clk: renesas: r8a779a0: Fix SD0H clock name

Jimmy Assarsson <[email protected]>
can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming

Jimmy Assarsson <[email protected]>
can: kvaser_usb: Add struct kvaser_usb_busparams

Anssi Hannula <[email protected]>
can: kvaser_usb_leaf: Fix bogus restart events

Anssi Hannula <[email protected]>
can: kvaser_usb_leaf: Fix wrong CAN state after stopping

Anssi Hannula <[email protected]>
can: kvaser_usb_leaf: Fix improved state not being reported

Anssi Hannula <[email protected]>
can: kvaser_usb_leaf: Set Warning state even without bus errors

Jimmy Assarsson <[email protected]>
can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT

Jimmy Assarsson <[email protected]>
can: kvaser_usb: kvaser_usb_leaf: Rename {leaf,usbcan}_cmd_error_event to {leaf,usbcan}_cmd_can_error_event

Jimmy Assarsson <[email protected]>
can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device

Alan Maguire <[email protected]>
libbpf: Btf dedup identical struct test needs check for nested structs/arrays

Marek Szyprowski <[email protected]>
media: exynos4-is: don't rely on the v4l2_async_subdev internals

Rafael Mendonca <[email protected]>
media: i2c: ov5648: Free V4L2 fwnode data on unbind

Kuniyuki Iwashima <[email protected]>
soreuseport: Fix socket selection for SO_INCOMING_CPU.

Tang Bin <[email protected]>
venus: pm_helpers: Fix error check in vcodec_domains_get()

Ricardo Ribalda <[email protected]>
media: i2c: ad5820: Fix error path

Rafael Mendonca <[email protected]>

    media: i2c: hi846: Fix memory leak in hi846_parse_dt()

John Harrison <[email protected]>
drm/i915: Fix compute pre-emption w/a to apply to compute engines

John Harrison <[email protected]>
drm/i915/guc: Limit scheduling properties to avoid overflow

Yunfei Dong <[email protected]>
media: mediatek: vcodec: fix h264 cavlc bitstream fail

Jernej Skrabec <[email protected]>
media: cedrus: hevc: Fix offset adjustments

Jernej Skrabec <[email protected]>
media: v4l2-ioctl.c: Unify YCbCr/YUV terms in format descriptions

Niklas Söderlund <[email protected]>
media: adv748x: afe: Select input port when initializing AFE

Ming Qian <[email protected]>
media: amphion: reset instance if it's aborted before codec header parsed

Jiasheng Jiang <[email protected]>
media: coda: jpeg: Add check for kmalloc

Laurent Pinchart <[email protected]>
media: v4l2-ctrls: Fix off-by-one error in integer menu control check

Jeff LaBundy <[email protected]>
Input: iqs7222 - protect against undefined slider size

Jeff LaBundy <[email protected]>
Input: iqs7222 - report malformed properties

Jeff LaBundy <[email protected]>
Input: iqs7222 - drop unused device node references

Jeff LaBundy <[email protected]>
Input: iqs7222 - set all ULP entry masks by default

Pin-yen Lin <[email protected]>
drm/bridge: it6505: Initialize AUX channel in it6505_i2c_probe

Gerhard Engleder <[email protected]>
samples/bpf: Fix MAC address swapping in xdp2_kern

Gerhard Engleder <[email protected]>
samples/bpf: Fix map iteration in xdp1_user

Sean Anderson <[email protected]>
powerpc: dts: t208x: Mark MAC1 and MAC2 as 10G

Rafael Mendonca <[email protected]>
drm/amdgpu/powerplay/psm: Fix memory leak in power state init

Andrew Jeffery <[email protected]>
ipmi: kcs: Poll OBF briefly to reduce OBE latency

Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Fix potential RX buffer overflow

Cezary Rojewski <[email protected]>
ASoC: Intel: avs: Fix DMA mask assignment

Yang Yingliang <[email protected]>
pinctrl: ocelot: add missing destroy_workqueue() in error path in ocelot_pinctrl_probe()

Niklas Cassel <[email protected]>
ata: libata: fix NCQ autosense logic

Laurent Pinchart <[email protected]>
drm: lcdif: Switch to limited range for RGB to YUV conversion

Shung-Hsi Yu <[email protected]>
libbpf: Fix null-pointer dereference in find_prog_by_sec_insn()

Shung-Hsi Yu <[email protected]>
libbpf: Deal with section with no data gracefully

Shung-Hsi Yu <[email protected]>
libbpf: Use elf_getshdrnum() instead of e_shnum

Andrii Nakryiko <[email protected]>
libbpf: Reject legacy 'maps' ELF section

Xu Kuohai <[email protected]>
selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c

Xu Kuohai <[email protected]>
selftests/bpf: Fix error failure of case test_xdp_adjust_tail_grow

Xu Kuohai <[email protected]>
selftest/bpf: Fix memory leak in kprobe_multi_test

Xu Kuohai <[email protected]>
selftests/bpf: Fix memory leak caused by not destroying skeleton

Yonghong Song <[email protected]>
selftests/bpf: Add struct argument tests with fentry/fexit programs.

Xu Kuohai <[email protected]>
libbpf: Fix memory leak in parse_usdt_arg()

Xu Kuohai <[email protected]>
libbpf: Fix use-after-free in btf_dump_name_dups

Abhinav Kumar <[email protected]>
drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge

Aditya Kumar Singh <[email protected]>
wifi: ath11k: fix firmware assert during bandwidth change for peer sta

Aditya Kumar Singh <[email protected]>
wifi: ath11k: move firmware stats out of debugfs

Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Fix reading the vendor of combo chips

Fedor Pchelkin <[email protected]>
wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()

Fedor Pchelkin <[email protected]>
wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs()

Thomas Zimmermann <[email protected]>
drm/atomic-helper: Don't allocate new plane state in CRTC check

Johannes Berg <[email protected]>
wifi: mac80211: fix ifdef symbol name

Johannes Berg <[email protected]>
wifi: mac80211: check link ID in auth/assoc continuation

Johannes Berg <[email protected]>
wifi: mac80211: mlme: fix null-ptr deref on failed assoc

Johannes Berg <[email protected]>
wifi: fix multi-link element subelement iteration

James Hurley <[email protected]>
platform/mellanox: mlxbf-pmc: Fix event typo

Zhengchao Shao <[email protected]>
ipc: fix memory leak in init_mqueue_fs()

Cai Xinchen <[email protected]>
rapidio: devices: fix missing put_device in mport_cdev_open

ZhangPeng <[email protected]>
hfs: Fix OOB Write in hfs_asc2mac

Gavrilov Ilia <[email protected]>
relay: fix type mismatch when allocating memory in relay_create_buf()

Zhang Qilong <[email protected]>
eventfd: change int to __u64 in eventfd_signal() ifndef CONFIG_EVENTFD

Wang Weiyang <[email protected]>
rapidio: fix possible UAF when kfifo_alloc() fails

Chen Zhongjin <[email protected]>
fs: sysv: Fix sysv_nblocks() returns wrong value

Brian Foster <[email protected]>
NFSD: pass range end to vfs_fsync_range() instead of count

Jeff Layton <[email protected]>
nfsd: return error if nfs4_setacl fails

Trond Myklebust <[email protected]>
lockd: set other missing fields when unlocking files

Ladislav Michl <[email protected]>
MIPS: OCTEON: warn only once if deprecated link status is being used

Anastasia Belova <[email protected]>
MIPS: BCM63xx: Add check for NULL for clk in clk_enable

Yang Yingliang <[email protected]>
platform/x86: intel_scu_ipc: fix possible name leak in __intel_scu_ipc_register()

Yu Liao <[email protected]>
platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]()

Victor Ding <[email protected]>
platform/chrome: cros_ec_typec: zero out stale pointers

Prashant Malani <[email protected]>
platform/chrome: cros_ec_typec: Get retimer handle

Prashant Malani <[email protected]>
platform/chrome: cros_ec_typec: Cleanup switch handle return paths

Gao Xiang <[email protected]>
erofs: validate the extent length for uncompressed pclusters

Yue Hu <[email protected]>
erofs: support interlaced uncompressed data for compressed files

Gao Xiang <[email protected]>
erofs: fix missing unmap if z_erofs_get_extent_compressedlen() fails

Chen Zhongjin <[email protected]>
erofs: Fix pcluster memleak when its block address is zero

Rafael J. Wysocki <[email protected]>
PM: runtime: Do not call __rpm_callback() from rpm_idle()

Harshit Mogalapalli <[email protected]>
xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()

Xiu Jianfeng <[email protected]>
x86/xen: Fix memory leak in xen_init_lock_cpu()

Xiu Jianfeng <[email protected]>
x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()

Oleg Nesterov <[email protected]>

    uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix

Li Zetao <[email protected]>
ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()

Yang Yingliang <[email protected]>
clocksource/drivers/timer-ti-dm: Fix missing clk_disable_unprepare in dmtimer_systimer_init_clock()

Tony Lindgren <[email protected]>
clocksource/drivers/timer-ti-dm: Fix warning for omap_timer_match

Vincent Donnefort <[email protected]>
cpu/hotplug: Do not bail-out in DYING/STARTING sections

Phil Auld <[email protected]>

    cpu/hotplug: Make target_store() a nop when target == state

Alexey Izbyshev <[email protected]>
futex: Resend potentially swallowed owner death notification

John Thomson <[email protected]>
mips: ralink: mt7621: do not use kzalloc too early

John Thomson <[email protected]>
mips: ralink: mt7621: soc queries and tests as functions

John Thomson <[email protected]>

    mips: ralink: mt7621: define MT7621_SYSC_BASE with __iomem

Wolfram Sang <[email protected]>
clocksource/drivers/sh_cmt: Access registers according to spec

Yang Yingliang <[email protected]>
rapidio: rio: fix possible name leak in rio_register_mport()

Yang Yingliang <[email protected]>
rapidio: fix possible name leaks when rio_add_device() fails

Li Zetao <[email protected]>
ocfs2: fix memory leak in ocfs2_mount_volume()

Akinobu Mita <[email protected]>
debugfs: fix error when writing negative value to atomic_t debugfs file

Akinobu Mita <[email protected]>
lib/notifier-error-inject: fix error when writing -errno to debugfs file

Akinobu Mita <[email protected]>
libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value

Xiongfeng Wang <[email protected]>
cpufreq: amd_freq_sensitivity: Add missing pci_dev_put()

Yang Yingliang <[email protected]>
genirq/irqdesc: Don't try to remove non-existing sysfs files

Jeff Layton <[email protected]>
nfsd: don't call nfsd_file_put from client states seqfile display

Chuck Lever <[email protected]>
NFSD: Finish converting the NFSv3 GETACL result encoder

Chuck Lever <[email protected]>
NFSD: Finish converting the NFSv2 GETACL result encoder

Yang Yingliang <[email protected]>
EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()

Liu Peibao <[email protected]>
irqchip/loongson-liointc: Fix improper error handling in liointc_init()

Wei Yongjun <[email protected]>
irqchip/wpcm450: Fix memory leak in wpcm450_aic_of_init()

Shang XiaoJing <[email protected]>
irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()

Jianmin Lv <[email protected]>
irqchip/loongson-pch-pic: Fix translate callback for DT path

Yang Yingliang <[email protected]>
thermal: core: fix some possible name leaks in error paths

Yuan Can <[email protected]>
platform/chrome: cros_usbpd_notify: Fix error handling in cros_usbpd_notify_init()

Xiongfeng Wang <[email protected]>
perf/x86/intel/uncore: Fix reference count leak in __uncore_imc_init_box()

Xiongfeng Wang <[email protected]>
perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map()

Xiongfeng Wang <[email protected]>
perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()

Xiongfeng Wang <[email protected]>
perf/x86/intel/uncore: Fix reference count leak in sad_cfg_iio_topology()

Wang ShaoBo <[email protected]>
ACPI: pfr_update: use ACPI_FREE() to free acpi_object

Wang ShaoBo <[email protected]>
ACPI: pfr_telemetry: use ACPI_FREE() to free acpi_object

Huisong Li <[email protected]>
mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure

Yang Yingliang <[email protected]>
PNP: fix name memory leak in pnp_alloc_dev()

Zhao Gongyi <[email protected]>
selftests/efivarfs: Add checking of the test return value

Yang Yingliang <[email protected]>
MIPS: vpe-cmp: fix possible memory leak while module exiting

Yang Yingliang <[email protected]>
MIPS: vpe-mt: fix possible memory leak while module exiting

Manivannan Sadhasivam <[email protected]>

    cpufreq: qcom-hw: Fix the frequency returned by cpufreq_driver->get()

YueHaibing <[email protected]>
selftests: cgroup: fix unsigned comparison with less than zero

Shang XiaoJing <[email protected]>
ocfs2: fix memory leak in ocfs2_stack_glue_init()

Gaosheng Cui <[email protected]>
lib/fonts: fix undefined behavior in bit shift for get_default_font

Alexey Dobriyan <[email protected]>
proc: fixup uptime selftest

Barnabás Pőcze <[email protected]>
timerqueue: Use rb_entry_safe() in timerqueue_getnext()

Barnabás Pőcze <[email protected]>
platform/x86: huawei-wmi: fix return value calculation

wuchi <[email protected]>
lib/debugobjects: fix stat count and optimize debug_objects_mem_init

Chen Zhongjin <[email protected]>
perf: Fix possible memleak in pmu_dev_alloc()

Yipeng Zou <[email protected]>
selftests/ftrace: event_triggers: wait longer for test_event_enable

Xiongfeng Wang <[email protected]>
ACPI: irq: Fix some kernel-doc issues

Guilherme G. Piccoli <[email protected]>
x86/split_lock: Add sysctl to control the misery mode

Chen Hui <[email protected]>
cpufreq: qcom-hw: Fix memory leak in qcom_cpufreq_hw_read_lut()

Ondrej Mosnacek <[email protected]>
fs: don't audit the capability check in simple_xattr_list()

xiongxin <[email protected]>
PM: hibernate: Fix mistake in kerneldoc comment

Reinette Chatre <[email protected]>
x86/sgx: Reduce delay and interference of enclave release

Hao Lee <[email protected]>
sched/psi: Fix possible missing or delayed pending event

Al Viro <[email protected]>
alpha: fix syscall entry in !AUDUT_SYSCALL case

Al Viro <[email protected]>
alpha: fix TIF_NOTIFY_SIGNAL handling

Ulf Hansson <[email protected]>
cpuidle: dt: Return the correct numbers of parsed idle states

Qais Yousef <[email protected]>
sched/uclamp: Cater for uclamp in find_energy_efficient_cpu()'s early exit condition

Qais Yousef <[email protected]>
sched/uclamp: Make cpu_overutilized() use util_fits_cpu()

Qais Yousef <[email protected]>
sched/uclamp: Make asym_fits_capacity() use util_fits_cpu()

Dietmar Eggemann <[email protected]>
sched/core: Introduce sched_asym_cpucap_active()

Qais Yousef <[email protected]>
sched/uclamp: Make select_idle_capacity() use util_fits_cpu()

Qais Yousef <[email protected]>
sched/uclamp: Fix fits_capacity() check in feec()

Qais Yousef <[email protected]>
sched/uclamp: Make task_fits_capacity() use util_fits_cpu()

Qais Yousef <[email protected]>
sched/uclamp: Fix relationship between uclamp and migration margin

Amir Goldstein <[email protected]>
ovl: remove privs in ovl_fallocate()

Amir Goldstein <[email protected]>
ovl: remove privs in ovl_copyfile()

Michael Kelley <[email protected]>
tpm/tpm_crb: Fix error message in __crb_relinquish_locality()

Yuan Can <[email protected]>
tpm/tpm_ftpm_tee: Fix error handling in ftpm_mod_init()

Eddie James <[email protected]>
tpm: Add flag to use default cancellation policy

Eddie James <[email protected]>
tpm: tis_i2c: Fix sanity check interrupt enable mask

Janne Grunau <[email protected]>
arch: arm64: apple: t8103: Use standard "iommu" node name

Stephen Boyd <[email protected]>
pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP

Doug Brown <[email protected]>
ARM: mmp: fix timer_read delay

Wang Yufen <[email protected]>
pstore/ram: Fix error return code in ramoops_probe()

Kuniyuki Iwashima <[email protected]>
seccomp: Move copy_seccomp() to no failure path.

Yicong Yang <[email protected]>
drivers/perf: hisi: Fix some event id for hisi-pcie-pmu

Sven Peter <[email protected]>
soc: apple: rtkit: Stop casting function pointer signatures

Sven Peter <[email protected]>
soc: apple: sart: Stop casting function pointer signatures

Pali Rohár <[email protected]>
arm64: dts: armada-3720-turris-mox: Add missing interrupt for RTC

Pali Rohár <[email protected]>
ARM: dts: armada-39x: Fix compatible string for gpios

Pali Rohár <[email protected]>
ARM: dts: armada-38x: Fix compatible string for gpios

Pali Rohár <[email protected]>
ARM: dts: turris-omnia: Add switch port 6 node

Pali Rohár <[email protected]>
ARM: dts: turris-omnia: Add ethernet aliases

Pali Rohár <[email protected]>
ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port

Pali Rohár <[email protected]>
ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port

Pali Rohár <[email protected]>
ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port

Pali Rohár <[email protected]>
ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port

Pali Rohár <[email protected]>
ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port

Pali Rohár <[email protected]>
ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mediatek: pumpkin-common: Fix devicetree warnings

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mt2712-evb: Fix usb vbus regulators unit names

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mt2712-evb: Fix vproc fixed regulators unit names

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mt2712e: Fix unit address for pinctrl node

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mt2712e: Fix unit_address_vs_reg warning for oscillators

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mt6779: Fix devicetree build warnings

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mt7896a: Fix unit_address_vs_reg warning for oscillator

AngeloGioacchino Del Regno <[email protected]>
arm64: dts: mediatek: mt8195: Fix CPUs capacity-dmips-mhz

Jonathan Neuschäfer <[email protected]>
ARM: dts: nuvoton: Remove bogus unit addresses from fixed-partition nodes

Keerthy <[email protected]>
arm64: dts: ti: k3-j721s2: Fix the interrupt ranges property for main & wkup gpio intr

Jayesh Choudhary <[email protected]>
arm64: dts: ti: k3-j721e-main: Drop dma-coherent in crypto node

Jayesh Choudhary <[email protected]>
arm64: dts: ti: k3-am65-main: Drop dma-coherent in crypto node

Shang XiaoJing <[email protected]>
perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()

Shang XiaoJing <[email protected]>
perf/arm_dmc620: Fix hotplug callback leak in dmc620_pmu_init()

Yuan Can <[email protected]>
drivers: perf: marvell_cn10k: Fix hotplug callback leak in tad_pmu_init()

Yuan Can <[email protected]>
perf: arm_dsu: Fix hotplug callback leak in dsu_pmu_init()

Mark Rutland <[email protected]>
arm64: mm: kfence: only handle translation faults

Zhang Qilong <[email protected]>
soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe

Zhang Qilong <[email protected]>
soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe

Kory Maincent <[email protected]>
arm: dts: spear600: Fix clcd interrupt

Frank Wunderlich <[email protected]>
arm64: dts: mt7986: fix trng node name

Conor Dooley <[email protected]>
dt-bindings: pwm: fix microchip corePWM's pwm-cells

Fabrizio Castro <[email protected]>
arm64: dts: renesas: r9a09g011: Fix unit address format error

Wolfram Sang <[email protected]>

    arm64: dts: renesas: r8a779f0: Fix SCIF "brg_int" clock

Wolfram Sang <[email protected]>
arm64: dts: renesas: r8a779f0: Fix HSCIF "brg_int" clock

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm6125: fix SDHCI CQE reg names

Marijn Suijten <[email protected]>
arm64: dts: qcom: pm6350: Include header for KEY_POWER

Jiasheng Jiang <[email protected]>
soc: qcom: apr: Add check for idr_alloc and of_property_read_string_index

Johan Hovold <[email protected]>
arm64: dts: qcom: sm6350: drop bogus DP PHY clock

Johan Hovold <[email protected]>
arm64: dts: qcom: sm8250: drop bogus DP PHY clock

Dmitry Torokhov <[email protected]>
arm64: dts: qcom: sm8250-mtp: fix reset line polarity

Dmitry Torokhov <[email protected]>
arm64: dts: qcom: msm8996: fix sound card reset line polarity

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: use GPIO flags for tlmm

Johan Hovold <[email protected]>
arm64: dts: qcom: sm8450: fix UFS PHY registers

Johan Hovold <[email protected]>
arm64: dts: qcom: sm8350: fix UFS PHY registers

Johan Hovold <[email protected]>
arm64: dts: qcom: sm8250: fix UFS PHY registers

Johan Hovold <[email protected]>
arm64: dts: qcom: sm8150: fix UFS PHY registers

Luca Weiss <[email protected]>
soc: qcom: llcc: make irq truly optional

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc7180-trogdor-homestar: fully configure secondary I2S pins

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm8250: correct LPASS pin pull down

Marijn Suijten <[email protected]>
arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name

Georgi Vlaev <[email protected]>
firmware: ti_sci: Fix polled mode during system suspend

Chen Jiahao <[email protected]>
drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static

Marek Vasut <[email protected]>
ARM: dts: stm32: Fix AV96 WLAN regulator gpio property

Marek Vasut <[email protected]>
ARM: dts: stm32: Drop stm32mp15xc.dtsi from Avenger96

Marco Elver <[email protected]>
objtool, kcsan: Add volatile read/write instrumentation to whitelist

Cong Dang <[email protected]>
memory: renesas-rpc-if: Clear HS bit during hardware initialization

Padmanabhan Rajanbabu <[email protected]>
arm64: dts: fsd: fix drive strength values as per FSD HW UM

Padmanabhan Rajanbabu <[email protected]>
arm64: dts: fsd: fix drive strength macros as per FSD HW UM

Stephan Gerhold <[email protected]>
arm64: dts: qcom: msm8916: Drop MSS fallback compatible

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sdm845-cheza: fix AP suspend pin bias

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sdm630: fix UART1 pin bias

Luca Weiss <[email protected]>
ARM: dts: qcom: apq8064: fix coresight compatible

Dmitry Baryshkov <[email protected]>
arm64: dts: qcom: msm8996: fix GPU OPP table

Dmitry Baryshkov <[email protected]>
arm64: dts: qcom: msm8996: fix supported-hw in cpufreq OPP tables

Yassine Oudjana <[email protected]>

    arm64: dts: qcom: msm8996: Add MSM8996 Pro support

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-polaris: fix codec pin conf name

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm8250-sony-xperia-edo: fix touchscreen bias-disable

Krzysztof Kozlowski <[email protected]>

    arm64: dts: qcom: ipq6018-cp01-c1: use BLSPI1 pins

Geert Uytterhoeven <[email protected]>

    arm64: dts: renesas: r8a779g0: Fix HSCIF0 "brg_int" clock

Paulo Alcantara <[email protected]>
cifs: fix oops during encryption

Paulo Alcantara <[email protected]>
cifs: improve symlink handling for smb2+

Enzo Matsumiya <[email protected]>
cifs: replace kfree() with kfree_sensitive() for sensitive data

Ivaylo Dimitrov <[email protected]>
usb: musb: remove extra check in musb_gadget_vbus_draw

Martin Kaiser <[email protected]>
staging: r8188eu: fix led register settings

Martin Kaiser <[email protected]>
staging: r8188eu: don't check bSurpriseRemoved in SwLedOff

Martin Kaiser <[email protected]>
staging: r8188eu: remove duplicate bSurpriseRemoved check

-------------

Diffstat:

 .../ABI/testing/sysfs-bus-spi-devices-spi-nor      |   3 +
 Documentation/admin-guide/sysctl/kernel.rst        |  23 +
 .../bindings/clock/qcom,sc7280-lpasscorecc.yaml    |  19 +-
 .../devicetree/bindings/input/azoteq,iqs7222.yaml  |  25 +-
 .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml    |   8 +-
 .../devicetree/bindings/pci/fsl,imx6q-pcie.yaml    |  46 +-
 .../bindings/pci/toshiba,visconti-pcie.yaml        |   7 +-
 .../bindings/pinctrl/mediatek,mt7986-pinctrl.yaml  |  46 +-
 .../devicetree/bindings/pwm/microchip,corepwm.yaml |   4 +-
 .../devicetree/bindings/sound/qcom,wcd9335.txt     |   2 +-
 Documentation/devicetree/bindings/sound/rt5682.txt |   2 +-
 Documentation/driver-api/spi.rst                   |   4 +-
 Documentation/fault-injection/fault-injection.rst  |  10 +-
 Makefile                                           |   4 +-
 arch/Kconfig                                       |   2 +-
 arch/alpha/include/asm/thread_info.h               |   2 +-
 arch/alpha/kernel/entry.S                          |   4 +-
 arch/arm/boot/dts/armada-370.dtsi                  |   2 +-
 arch/arm/boot/dts/armada-375.dtsi                  |   2 +-
 arch/arm/boot/dts/armada-380.dtsi                  |   4 +-
 arch/arm/boot/dts/armada-385-turris-omnia.dts      |  18 +-
 arch/arm/boot/dts/armada-385.dtsi                  |   6 +-
 arch/arm/boot/dts/armada-38x.dtsi                  |   4 +-
 arch/arm/boot/dts/armada-39x.dtsi                  |  10 +-
 arch/arm/boot/dts/armada-xp-mv78230.dtsi           |   8 +-
 arch/arm/boot/dts/armada-xp-mv78260.dtsi           |  16 +-
 arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts       |  17 +-
 arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts       |  16 +-
 arch/arm/boot/dts/dove.dtsi                        |   2 +-
 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts          |   2 +-
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts          |   2 +-
 arch/arm/boot/dts/nuvoton-npcm730-kudo.dts         |   6 +-
 arch/arm/boot/dts/nuvoton-npcm750-evb.dts          |   4 +-
 .../boot/dts/nuvoton-npcm750-runbmc-olympus.dts    |   6 +-
 arch/arm/boot/dts/qcom-apq8064.dtsi                |   2 +-
 arch/arm/boot/dts/spear600.dtsi                    |   2 +-
 arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts  |   1 -
 arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi |   2 +-
 arch/arm/mach-mmp/time.c                           |  11 +-
 arch/arm64/boot/dts/apple/t8103.dtsi               |   6 +-
 .../boot/dts/marvell/armada-3720-turris-mox.dts    |   3 +
 arch/arm64/boot/dts/mediatek/mt2712-evb.dts        |  12 +-
 arch/arm64/boot/dts/mediatek/mt2712e.dtsi          |  22 +-
 arch/arm64/boot/dts/mediatek/mt6779.dtsi           |   8 +-
 arch/arm64/boot/dts/mediatek/mt6797.dtsi           |   2 +-
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi          |   4 +-
 arch/arm64/boot/dts/mediatek/mt8183.dtsi           |   2 +-
 arch/arm64/boot/dts/mediatek/mt8195.dtsi           |   8 +-
 arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi   |   6 +-
 arch/arm64/boot/dts/qcom/apq8096-ifc6640.dts       |   2 +-
 arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts       |   2 +
 arch/arm64/boot/dts/qcom/msm8916.dtsi              |   2 +-
 .../dts/qcom/msm8994-sony-xperia-kitakami.dtsi     |   2 +-
 arch/arm64/boot/dts/qcom/msm8994.dtsi              |   3 +-
 arch/arm64/boot/dts/qcom/msm8996.dtsi              | 115 +++--
 arch/arm64/boot/dts/qcom/msm8996pro.dtsi           | 266 +++++++++++
 arch/arm64/boot/dts/qcom/pm6350.dtsi               |   1 +
 arch/arm64/boot/dts/qcom/pm660.dtsi                |   2 +-
 .../boot/dts/qcom/sc7180-trogdor-homestar.dtsi     |   6 +
 arch/arm64/boot/dts/qcom/sdm630.dtsi               |   2 +-
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi         |   4 +-
 arch/arm64/boot/dts/qcom/sdm845-db845c.dts         |   4 +-
 .../boot/dts/qcom/sdm845-xiaomi-beryllium.dts      |   2 +-
 arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts |   6 +-
 .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts      |   2 +-
 arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts   |   2 +-
 arch/arm64/boot/dts/qcom/sm6125.dtsi               |   2 +-
 arch/arm64/boot/dts/qcom/sm6350.dtsi               |  10 +-
 arch/arm64/boot/dts/qcom/sm8150.dtsi               |  10 +-
 arch/arm64/boot/dts/qcom/sm8250-mtp.dts            |   2 +-
 .../boot/dts/qcom/sm8250-sony-xperia-edo.dtsi      |   2 +-
 arch/arm64/boot/dts/qcom/sm8250.dtsi               |  20 +-
 arch/arm64/boot/dts/qcom/sm8350.dtsi               |  10 +-
 arch/arm64/boot/dts/qcom/sm8450.dtsi               |  10 +-
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi          |  16 +-
 arch/arm64/boot/dts/renesas/r8a779g0.dtsi          |   2 +-
 arch/arm64/boot/dts/renesas/r9a09g011.dtsi         |   2 +-
 arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi         |  34 +-
 arch/arm64/boot/dts/tesla/fsd-pinctrl.h            |   6 +-
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi           |   1 -
 arch/arm64/boot/dts/ti/k3-j721e-main.dtsi          |   1 -
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi         |   2 +-
 arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi   |   2 +-
 arch/arm64/include/asm/processor.h                 |   4 +-
 arch/arm64/mm/fault.c                              |   8 +-
 arch/mips/bcm63xx/clk.c                            |   2 +
 .../cavium-octeon/executive/cvmx-helper-board.c    |   2 +-
 arch/mips/cavium-octeon/executive/cvmx-helper.c    |   2 +-
 arch/mips/include/asm/mach-ralink/mt7621.h         |   4 +-
 arch/mips/kernel/vpe-cmp.c                         |   4 +-
 arch/mips/kernel/vpe-mt.c                          |   4 +-
 arch/mips/ralink/mt7621.c                          |  97 ++--
 arch/mips/ralink/of.c                              |   4 +-
 arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-2.dtsi |  44 ++
 arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-3.dtsi |  44 ++
 arch/powerpc/boot/dts/fsl/t2081si-post.dtsi        |   4 +-
 arch/powerpc/boot/dts/turris1x.dts                 |  14 +
 arch/powerpc/include/asm/hvcall.h                  |   3 +-
 arch/powerpc/perf/callchain.c                      |   1 +
 arch/powerpc/perf/hv-gpci-requests.h               |   4 +
 arch/powerpc/perf/hv-gpci.c                        |  35 +-
 arch/powerpc/perf/hv-gpci.h                        |   1 +
 arch/powerpc/perf/req-gen/perf.h                   |  20 +
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c      |   1 +
 arch/powerpc/platforms/83xx/mpc832x_rdb.c          |   2 +-
 arch/powerpc/platforms/pseries/eeh_pseries.c       |  11 +-
 arch/powerpc/platforms/pseries/plpks.c             |  32 +-
 arch/powerpc/platforms/pseries/plpks.h             |   2 +-
 arch/powerpc/sysdev/xive/spapr.c                   |   1 +
 arch/powerpc/xmon/xmon.c                           |   7 +-
 arch/riscv/include/asm/hugetlb.h                   |   6 +
 arch/riscv/include/asm/io.h                        |   5 +
 arch/riscv/include/asm/pgtable-64.h                |   6 +-
 arch/riscv/kernel/entry.S                          |  18 +-
 arch/riscv/kernel/signal.c                         |  34 +-
 arch/riscv/kernel/traps.c                          |   2 +-
 arch/riscv/kvm/vcpu.c                              |  11 +-
 arch/riscv/mm/physaddr.c                           |   2 +-
 arch/riscv/net/bpf_jit_comp64.c                    |  29 +-
 arch/x86/Kconfig                                   |   4 +-
 arch/x86/events/intel/uncore_snb.c                 |   3 +
 arch/x86/events/intel/uncore_snbep.c               |   5 +
 arch/x86/hyperv/hv_init.c                          |   2 -
 arch/x86/include/asm/apic.h                        |   3 +-
 arch/x86/include/asm/realmode.h                    |   1 +
 arch/x86/include/asm/x86_init.h                    |   4 +
 arch/x86/kernel/apic/apic.c                        |  13 +-
 arch/x86/kernel/cpu/intel.c                        |  63 ++-
 arch/x86/kernel/cpu/sgx/encl.c                     |  23 +-
 arch/x86/kernel/setup.c                            |   2 +-
 arch/x86/kernel/uprobes.c                          |   4 +-
 arch/x86/kernel/x86_init.c                         |   3 +
 arch/x86/realmode/init.c                           |   8 +-
 arch/x86/xen/enlighten_pv.c                        |   2 +
 arch/x86/xen/smp.c                                 |  24 +-
 arch/x86/xen/smp_pv.c                              |  12 +-
 arch/x86/xen/spinlock.c                            |   6 +-
 block/bfq-iosched.c                                |  16 +-
 block/blk-core.c                                   |  72 +--
 block/blk-crypto-internal.h                        |  10 +-
 block/blk-crypto-sysfs.c                           |  11 +-
 block/blk-ia-ranges.c                              |   3 +-
 block/blk-iocost.c                                 |  14 +-
 block/blk-mq-sysfs.c                               |  11 +-
 block/blk-mq.c                                     |  89 +++-
 block/blk-mq.h                                     |  14 +-
 block/blk-sysfs.c                                  | 134 ++----
 block/blk.h                                        |  13 +-
 block/bsg.c                                        |  11 +-
 block/elevator.c                                   |   2 +-
 block/genhd.c                                      |   4 +-
 crypto/cryptd.c                                    |  36 +-
 crypto/tcrypt.c                                    | 265 +++++------
 drivers/acpi/acpica/dsmethod.c                     |  10 +-
 drivers/acpi/acpica/utcopy.c                       |   7 -
 drivers/acpi/ec.c                                  |  10 +
 drivers/acpi/irq.c                                 |   5 +-
 drivers/acpi/pfr_telemetry.c                       |   6 +-
 drivers/acpi/pfr_update.c                          |   6 +-
 drivers/acpi/processor_idle.c                      |   3 +
 drivers/acpi/x86/utils.c                           |  24 +-
 drivers/ata/libata-sata.c                          |  11 +-
 drivers/base/class.c                               |   5 +
 drivers/base/power/runtime.c                       |  12 +-
 drivers/base/regmap/regmap-irq.c                   |  15 +-
 drivers/block/drbd/drbd_main.c                     |   9 +-
 drivers/block/drbd/drbd_nl.c                       |  10 +-
 drivers/block/floppy.c                             |   4 +-
 drivers/block/loop.c                               |  28 +-
 drivers/bluetooth/btintel.c                        |   5 +-
 drivers/bluetooth/btusb.c                          |   6 +-
 drivers/bluetooth/hci_bcm.c                        |  13 +-
 drivers/bluetooth/hci_bcsp.c                       |   2 +-
 drivers/bluetooth/hci_h5.c                         |   2 +-
 drivers/bluetooth/hci_ll.c                         |   2 +-
 drivers/bluetooth/hci_qca.c                        |   2 +-
 drivers/char/hw_random/amd-rng.c                   |  18 +-
 drivers/char/hw_random/geode-rng.c                 |  36 +-
 drivers/char/ipmi/ipmi_msghandler.c                |   8 +-
 drivers/char/ipmi/kcs_bmc_aspeed.c                 |  24 +-
 drivers/char/tpm/tpm_crb.c                         |   2 +-
 drivers/char/tpm/tpm_ftpm_tee.c                    |   8 +-
 drivers/char/tpm/tpm_tis_core.c                    |  20 +-
 drivers/char/tpm/tpm_tis_core.h                    |   1 +
 drivers/char/tpm/tpm_tis_i2c.c                     |   3 +-
 drivers/clk/imx/clk-imx8mn.c                       | 116 ++---
 drivers/clk/imx/clk-imx8mp.c                       |   4 +-
 drivers/clk/imx/clk-imx93.c                        |  19 +-
 drivers/clk/imx/clk-imxrt1050.c                    |   2 +-
 drivers/clk/mediatek/clk-mt7986-infracfg.c         |   2 +-
 drivers/clk/qcom/clk-krait.c                       |   2 +
 drivers/clk/qcom/dispcc-sm6350.c                   |   4 +-
 drivers/clk/qcom/gcc-ipq806x.c                     |   4 +-
 drivers/clk/qcom/gcc-sm8250.c                      |   4 +-
 drivers/clk/qcom/lpassaudiocc-sc7280.c             | 117 +++--
 drivers/clk/qcom/lpasscc-sc7280.c                  |  44 --
 drivers/clk/qcom/lpasscorecc-sc7180.c              |  24 +-
 drivers/clk/qcom/lpasscorecc-sc7280.c              |  33 ++
 drivers/clk/renesas/r8a779a0-cpg-mssr.c            |   2 +-
 drivers/clk/renesas/r8a779f0-cpg-mssr.c            |  29 +-
 drivers/clk/renesas/r9a06g032-clocks.c             |   3 +-
 drivers/clk/rockchip/clk-pll.c                     |   1 +
 drivers/clk/samsung/clk-pll.c                      |   1 +
 drivers/clk/socfpga/clk-gate.c                     |   5 +-
 drivers/clk/st/clkgen-fsyn.c                       |   5 +-
 drivers/clk/visconti/pll.c                         |   1 +
 drivers/clocksource/sh_cmt.c                       |  88 ++--
 drivers/clocksource/timer-ti-dm-systimer.c         |   4 +-
 drivers/clocksource/timer-ti-dm.c                  |   2 +-
 drivers/counter/stm32-lptimer-cnt.c                |   2 +-
 drivers/cpufreq/amd_freq_sensitivity.c             |   2 +
 drivers/cpufreq/qcom-cpufreq-hw.c                  |  43 +-
 drivers/cpuidle/dt_idle_states.c                   |   2 +-
 drivers/crypto/Kconfig                             |   5 +
 .../crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c    |   2 +-
 drivers/crypto/amlogic/amlogic-gxl-core.c          |   1 -
 drivers/crypto/amlogic/amlogic-gxl.h               |   2 +-
 drivers/crypto/cavium/nitrox/nitrox_mbx.c          |   1 +
 drivers/crypto/ccree/cc_debugfs.c                  |   2 +-
 drivers/crypto/ccree/cc_driver.c                   |  10 +-
 drivers/crypto/hisilicon/hpre/hpre_main.c          |  14 +-
 drivers/crypto/hisilicon/qm.c                      | 208 ++++++---
 drivers/crypto/hisilicon/sec2/sec_main.c           |   4 +-
 drivers/crypto/hisilicon/zip/zip_main.c            |   4 +-
 drivers/crypto/img-hash.c                          |   8 +-
 drivers/crypto/omap-sham.c                         |   2 +-
 drivers/crypto/qat/qat_4xxx/adf_drv.c              |   1 +
 drivers/crypto/rockchip/rk3288_crypto.c            | 193 +-------
 drivers/crypto/rockchip/rk3288_crypto.h            |  53 +--
 drivers/crypto/rockchip/rk3288_crypto_ahash.c      | 197 ++++----
 drivers/crypto/rockchip/rk3288_crypto_skcipher.c   | 413 +++++++++-------
 drivers/dio/dio.c                                  |   8 +
 drivers/dma/apple-admac.c                          | 129 ++++-
 drivers/edac/i10nm_base.c                          |   3 +-
 drivers/extcon/Kconfig                             |   2 +-
 drivers/extcon/extcon-usbc-tusb320.c               | 247 ++++++++--
 drivers/firmware/raspberrypi.c                     |   1 +
 drivers/firmware/ti_sci.c                          |   5 +-
 drivers/gpio/gpiolib-cdev.c                        | 204 +++++++-
 drivers/gpio/gpiolib.c                             |   4 +
 drivers/gpio/gpiolib.h                             |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c           |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c         |   4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h           |   5 +-
 drivers/gpu/drm/amd/amdgpu/nv.c                    |  28 +-
 drivers/gpu/drm/amd/amdgpu/soc15.c                 |  24 +-
 drivers/gpu/drm/amd/amdgpu/soc21.c                 |   2 +-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c  |  35 --
 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c |  16 +-
 .../amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c   |   2 +-
 .../gpu/drm/amd/display/dc/dce60/dce60_resource.c  |   3 +
 .../gpu/drm/amd/display/dc/dce80/dce80_resource.c  |   2 +
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  |  30 +-
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c |  35 +-
 drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c  |   6 +-
 .../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c   |   7 +
 drivers/gpu/drm/amd/include/kgd_pp_interface.h     |   3 +-
 drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c   |   3 +-
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c    |   2 +
 .../gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c  |   3 +-
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c     |   4 +
 .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c   |  21 +-
 drivers/gpu/drm/bridge/adv7511/adv7511.h           |   3 +-
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c       |  18 +-
 drivers/gpu/drm/bridge/adv7511/adv7533.c           |  25 +-
 drivers/gpu/drm/bridge/ite-it6505.c                |   8 +-
 drivers/gpu/drm/drm_atomic_helper.c                |  10 +-
 drivers/gpu/drm/drm_edid.c                         |  12 +
 drivers/gpu/drm/drm_fourcc.c                       |   8 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c              |  11 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c          |   5 +-
 drivers/gpu/drm/i915/display/intel_bios.c          |   2 +-
 drivers/gpu/drm/i915/display/intel_dp.c            |  59 ---
 drivers/gpu/drm/i915/gt/intel_engine.h             |   6 +
 drivers/gpu/drm/i915/gt/intel_engine_cs.c          |  91 +++-
 drivers/gpu/drm/i915/gt/sysfs_engines.c            |  25 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc.c             |  53 +--
 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c     | 147 ++++--
 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h     |   1 -
 drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h        |  21 +
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c         | 227 +++++++--
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h         |  42 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c  |   8 +
 drivers/gpu/drm/i915/i915_params.c                 |  12 +
 drivers/gpu/drm/i915/i915_params.h                 |   3 +
 drivers/gpu/drm/mediatek/mtk_dpi.c                 |  12 +-
 drivers/gpu/drm/mediatek/mtk_hdmi.c                |   7 +-
 drivers/gpu/drm/meson/meson_encoder_cvbs.c         |   7 +-
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c              |  12 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c        |  25 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h        |   2 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c         |  79 ++--
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.h         |   4 +-
 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c           |  27 +-
 drivers/gpu/drm/msm/dp/dp_display.c                |   2 +-
 drivers/gpu/drm/msm/dsi/dsi.c                      |   2 +-
 drivers/gpu/drm/msm/dsi/dsi.h                      |   2 +-
 drivers/gpu/drm/msm/dsi/dsi_host.c                 | 204 +++-----
 drivers/gpu/drm/msm/hdmi/hdmi.c                    |   2 +-
 drivers/gpu/drm/msm/msm_drv.h                      |   9 +-
 drivers/gpu/drm/mxsfb/lcdif_kms.c                  |  48 +-
 drivers/gpu/drm/mxsfb/lcdif_regs.h                 |   5 +
 drivers/gpu/drm/panel/panel-sitronix-st7701.c      |  10 +-
 drivers/gpu/drm/radeon/radeon_bios.c               |  19 +-
 drivers/gpu/drm/rcar-du/Kconfig                    |   2 -
 drivers/gpu/drm/rockchip/cdn-dp-core.c             |   2 +-
 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c    |   2 +-
 drivers/gpu/drm/rockchip/inno_hdmi.c               |   2 +-
 drivers/gpu/drm/rockchip/rk3066_hdmi.c             |   2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c        |   4 +-
 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c       |   2 +-
 drivers/gpu/drm/rockchip/rockchip_lvds.c           |  10 +-
 drivers/gpu/drm/sti/sti_dvo.c                      |   7 +-
 drivers/gpu/drm/sti/sti_hda.c                      |   7 +-
 drivers/gpu/drm/sti/sti_hdmi.c                     |   7 +-
 drivers/gpu/drm/tegra/dc.c                         |   4 +-
 drivers/hid/amd-sfh-hid/amd_sfh_client.c           |   4 +
 drivers/hid/hid-apple.c                            | 118 +++--
 drivers/hid/hid-input.c                            |   6 +
 drivers/hid/hid-logitech-hidpp.c                   |  11 +-
 drivers/hid/hid-mcp2221.c                          |  12 +-
 drivers/hid/hid-rmi.c                              |   2 +
 drivers/hid/hid-sensor-custom.c                    |   2 +-
 drivers/hid/i2c-hid/i2c-hid-core.c                 |   3 +-
 drivers/hid/wacom_sys.c                            |   8 +
 drivers/hid/wacom_wac.c                            |   4 +
 drivers/hid/wacom_wac.h                            |   1 +
 drivers/hsi/controllers/omap_ssi_core.c            |  14 +-
 drivers/hv/ring_buffer.c                           |  13 +
 drivers/hwmon/Kconfig                              |   1 +
 drivers/hwmon/jc42.c                               | 243 ++++++----
 drivers/hwmon/nct6775-platform.c                   |   7 +
 drivers/hwtracing/coresight/coresight-trbe.c       |   1 +
 drivers/i2c/busses/i2c-ismt.c                      |   3 +
 drivers/i2c/busses/i2c-pxa-pci.c                   |  10 +-
 drivers/i2c/muxes/i2c-mux-reg.c                    |   5 +-
 drivers/iio/adc/ad_sigma_delta.c                   |   8 +-
 drivers/iio/adc/ti-adc128s052.c                    |  14 +-
 drivers/iio/addac/ad74413r.c                       |   2 +-
 drivers/iio/imu/adis.c                             |  28 +-
 drivers/iio/industrialio-event.c                   |   4 +-
 drivers/iio/temperature/ltc2983.c                  |  10 +-
 drivers/infiniband/Kconfig                         |   2 +
 drivers/infiniband/core/device.c                   |   2 +-
 drivers/infiniband/core/mad.c                      |   5 -
 drivers/infiniband/core/nldev.c                    |   6 +-
 drivers/infiniband/core/restrack.c                 |   2 -
 drivers/infiniband/core/sysfs.c                    |  17 +-
 drivers/infiniband/hw/hfi1/affinity.c              |   2 +
 drivers/infiniband/hw/hfi1/firmware.c              |   6 +
 drivers/infiniband/hw/hns/Makefile                 |   2 +-
 drivers/infiniband/hw/hns/hns_roce_device.h        |  13 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c         | 257 +++++++---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h         |  14 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v2_dfx.c     |  34 --
 drivers/infiniband/hw/hns/hns_roce_main.c          |  24 +-
 drivers/infiniband/hw/hns/hns_roce_mr.c            |   4 +-
 drivers/infiniband/hw/hns/hns_roce_qp.c            | 107 ++++-
 drivers/infiniband/hw/hns/hns_roce_restrack.c      |  35 +-
 drivers/infiniband/hw/irdma/uk.c                   | 170 ++++---
 drivers/infiniband/hw/irdma/user.h                 |  20 +-
 drivers/infiniband/hw/irdma/utils.c                |   2 +
 drivers/infiniband/hw/irdma/verbs.c                | 145 ++----
 drivers/infiniband/hw/irdma/verbs.h                |  53 +++
 drivers/infiniband/sw/rxe/rxe_mr.c                 |   9 +-
 drivers/infiniband/sw/rxe/rxe_qp.c                 |   6 +-
 drivers/infiniband/sw/siw/siw_cq.c                 |  24 +-
 drivers/infiniband/sw/siw/siw_qp_tx.c              |   2 +-
 drivers/infiniband/sw/siw/siw_verbs.c              |  40 +-
 drivers/infiniband/ulp/ipoib/ipoib_netlink.c       |   7 +
 drivers/infiniband/ulp/srp/ib_srp.c                |  96 +++-
 drivers/input/joystick/Kconfig                     |   1 +
 drivers/input/misc/Kconfig                         |   2 +-
 drivers/input/misc/iqs7222.c                       | 520 ++++++++++++---------
 drivers/input/touchscreen/elants_i2c.c             |   9 +-
 drivers/interconnect/qcom/sc7180.c                 |   2 +-
 drivers/iommu/amd/iommu_v2.c                       |   1 +
 drivers/iommu/fsl_pamu.c                           |   2 +-
 drivers/iommu/mtk_iommu.c                          |  53 ++-
 drivers/iommu/rockchip-iommu.c                     |  10 +-
 drivers/iommu/s390-iommu.c                         | 106 ++---
 drivers/iommu/sun50i-iommu.c                       |  89 +++-
 drivers/irqchip/irq-gic-pm.c                       |   2 +-
 drivers/irqchip/irq-loongson-liointc.c             |   5 +-
 drivers/irqchip/irq-loongson-pch-pic.c             |   3 +
 drivers/irqchip/irq-wpcm450-aic.c                  |   1 +
 drivers/isdn/hardware/mISDN/hfcmulti.c             |  19 +-
 drivers/isdn/hardware/mISDN/hfcpci.c               |  13 +-
 drivers/isdn/hardware/mISDN/hfcsusb.c              |  12 +-
 drivers/leds/leds-is31fl319x.c                     |   3 +-
 drivers/leds/rgb/leds-qcom-lpg.c                   |  18 +-
 drivers/macintosh/macio-adb.c                      |   4 +
 drivers/macintosh/macio_asic.c                     |   2 +-
 drivers/mailbox/arm_mhuv2.c                        |   4 +-
 drivers/mailbox/mailbox-mpfs.c                     |  31 +-
 drivers/mailbox/pcc.c                              |   1 +
 drivers/mailbox/zynqmp-ipi-mailbox.c               |   4 +-
 drivers/mcb/mcb-core.c                             |   4 +-
 drivers/mcb/mcb-parse.c                            |   2 +-
 drivers/md/dm.c                                    | 123 +++--
 drivers/md/md-bitmap.c                             |  27 +-
 drivers/md/raid0.c                                 |   1 -
 drivers/md/raid1.c                                 |   1 +
 drivers/md/raid10.c                                |   2 -
 drivers/media/dvb-core/dvb_ca_en50221.c            |   2 +-
 drivers/media/dvb-core/dvb_frontend.c              |  10 +-
 drivers/media/dvb-core/dvbdev.c                    |  32 +-
 drivers/media/dvb-frontends/bcm3510.c              |   1 +
 drivers/media/i2c/ad5820.c                         |  10 +-
 drivers/media/i2c/adv748x/adv748x-afe.c            |   4 +
 drivers/media/i2c/dw9768.c                         |  33 +-
 drivers/media/i2c/hi846.c                          |  14 +-
 drivers/media/i2c/mt9p031.c                        |   1 -
 drivers/media/i2c/ov5640.c                         |   3 +-
 drivers/media/i2c/ov5648.c                         |   1 +
 drivers/media/pci/saa7164/saa7164-core.c           |   4 +-
 drivers/media/pci/solo6x10/solo6x10-core.c         |   1 +
 drivers/media/platform/amphion/vdec.c              |  15 +-
 drivers/media/platform/amphion/vpu.h               |   1 +
 drivers/media/platform/amphion/vpu_cmds.c          |  39 +-
 drivers/media/platform/amphion/vpu_drv.c           |   6 +-
 drivers/media/platform/amphion/vpu_malone.c        |   1 +
 drivers/media/platform/amphion/vpu_msgs.c          |   2 +
 drivers/media/platform/amphion/vpu_v4l2.c          |  30 +-
 drivers/media/platform/amphion/vpu_windsor.c       |   1 +
 drivers/media/platform/chips-media/coda-bit.c      |  14 +-
 drivers/media/platform/chips-media/coda-jpeg.c     |  10 +-
 .../mediatek/vcodec/mtk_vcodec_dec_stateless.c     |  13 +-
 .../mediatek/vcodec/vdec/vdec_h264_req_multi_if.c  |  60 ++-
 .../mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c     |  15 +-
 .../platform/mediatek/vcodec/vdec_msg_queue.c      |   2 +-
 drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c  |   4 +-
 drivers/media/platform/qcom/camss/camss-video.c    |   3 +-
 drivers/media/platform/qcom/camss/camss.c          |  11 +
 drivers/media/platform/qcom/venus/pm_helpers.c     |   4 +-
 .../media/platform/samsung/exynos4-is/fimc-core.c  |   2 +-
 .../media/platform/samsung/exynos4-is/media-dev.c  |  12 +-
 drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c   |  17 +-
 .../platform/st/sti/c8sectpfe/c8sectpfe-core.c     |   1 +
 .../sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c        |  23 +-
 .../sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c    |  23 +-
 drivers/media/radio/si470x/radio-si470x-usb.c      |   4 +-
 drivers/media/rc/imon.c                            |   6 +-
 drivers/media/test-drivers/vidtv/vidtv_bridge.c    |  22 +-
 drivers/media/test-drivers/vimc/vimc-core.c        |   2 +-
 drivers/media/test-drivers/vivid/vivid-vid-cap.c   |   1 +
 drivers/media/usb/dvb-usb/az6027.c                 |   4 +
 drivers/media/usb/dvb-usb/dvb-usb-init.c           |   4 +-
 drivers/media/v4l2-core/v4l2-ctrls-api.c           |   1 +
 drivers/media/v4l2-core/v4l2-ctrls-core.c          |   2 +-
 drivers/media/v4l2-core/v4l2-ioctl.c               |  34 +-
 drivers/media/v4l2-core/videobuf-dma-contig.c      |  22 +-
 drivers/memory/renesas-rpc-if.c                    |   3 +
 drivers/memstick/core/ms_block.c                   |   9 +-
 drivers/mfd/Kconfig                                |   1 +
 drivers/mfd/axp20x.c                               |   2 +-
 drivers/mfd/qcom-pm8008.c                          |   4 +-
 drivers/mfd/qcom_rpm.c                             |   4 +-
 drivers/misc/cxl/guest.c                           |  24 +-
 drivers/misc/cxl/pci.c                             |  21 +-
 drivers/misc/lkdtm/cfi.c                           |   6 +-
 drivers/misc/ocxl/config.c                         |  20 +-
 drivers/misc/ocxl/file.c                           |   7 +-
 drivers/misc/sgi-gru/grufault.c                    |  13 +-
 drivers/misc/sgi-gru/grumain.c                     |  22 +-
 drivers/misc/sgi-gru/grutables.h                   |   2 +-
 drivers/misc/tifm_7xx1.c                           |   2 +-
 drivers/mmc/core/sd.c                              |  11 +-
 drivers/mmc/host/alcor.c                           |   5 +-
 drivers/mmc/host/atmel-mci.c                       |   9 +-
 drivers/mmc/host/litex_mmc.c                       |   1 +
 drivers/mmc/host/meson-gx-mmc.c                    |   4 +-
 drivers/mmc/host/mmci.c                            |   4 +-
 drivers/mmc/host/moxart-mmc.c                      |   4 +-
 drivers/mmc/host/mxcmmc.c                          |   4 +-
 drivers/mmc/host/omap_hsmmc.c                      |   4 +-
 drivers/mmc/host/pxamci.c                          |   7 +-
 drivers/mmc/host/renesas_sdhi.h                    |   1 +
 drivers/mmc/host/renesas_sdhi_core.c               |  14 +-
 drivers/mmc/host/renesas_sdhi_internal_dmac.c      |   4 +-
 drivers/mmc/host/rtsx_pci_sdmmc.c                  |   9 +-
 drivers/mmc/host/rtsx_usb_sdmmc.c                  |  11 +-
 drivers/mmc/host/sdhci_f_sdh30.c                   |   3 +
 drivers/mmc/host/toshsd.c                          |   6 +-
 drivers/mmc/host/via-sdmmc.c                       |   4 +-
 drivers/mmc/host/vub300.c                          |  11 +-
 drivers/mmc/host/wbsd.c                            |  12 +-
 drivers/mmc/host/wmt-sdmmc.c                       |   6 +-
 drivers/mtd/lpddr/lpddr2_nvm.c                     |   2 +
 drivers/mtd/maps/pxa2xx-flash.c                    |   2 +
 drivers/mtd/mtdcore.c                              |   9 +-
 drivers/mtd/spi-nor/core.c                         |   3 +-
 drivers/mtd/spi-nor/sysfs.c                        |  14 +
 drivers/net/bonding/bond_main.c                    |  37 +-
 drivers/net/can/m_can/m_can.c                      |  32 +-
 drivers/net/can/m_can/m_can_platform.c             |   4 -
 drivers/net/can/m_can/tcan4x5x-core.c              |  18 +-
 drivers/net/can/usb/kvaser_usb/kvaser_usb.h        |  30 +-
 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c   | 115 ++++-
 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c  | 160 +++++--
 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c   | 437 +++++++++++++++--
 drivers/net/dsa/lan9303-core.c                     |   4 +-
 drivers/net/dsa/mv88e6xxx/chip.c                   |   9 +-
 drivers/net/ethernet/amd/atarilance.c              |   2 +-
 drivers/net/ethernet/amd/lance.c                   |   2 +-
 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c        |  23 +-
 drivers/net/ethernet/apple/bmac.c                  |   2 +-
 drivers/net/ethernet/apple/mace.c                  |   2 +-
 drivers/net/ethernet/dnet.c                        |   4 +-
 drivers/net/ethernet/freescale/enetc/enetc.c       |  35 +-
 drivers/net/ethernet/intel/i40e/i40e_main.c        |  36 +-
 drivers/net/ethernet/intel/igb/igb_main.c          |   8 +-
 drivers/net/ethernet/intel/igc/igc.h               |   3 +
 drivers/net/ethernet/intel/igc/igc_defines.h       |   2 +
 drivers/net/ethernet/intel/igc/igc_main.c          | 210 +++++++--
 drivers/net/ethernet/intel/igc/igc_tsn.c           |  13 +-
 drivers/net/ethernet/mediatek/mtk_eth_soc.c        |  71 +--
 drivers/net/ethernet/mediatek/mtk_eth_soc.h        |  11 +-
 drivers/net/ethernet/myricom/myri10ge/myri10ge.c   |   1 +
 drivers/net/ethernet/neterion/s2io.c               |   2 +-
 drivers/net/ethernet/qlogic/qed/qed_debug.c        |   3 +-
 .../ethernet/qlogic/qlcnic/qlcnic_sriov_common.c   |   2 +
 drivers/net/ethernet/rdc/r6040.c                   |   5 +-
 .../net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c  |   3 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  |   4 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h   |   2 +-
 .../net/ethernet/stmicro/stmmac/stmmac_selftests.c |   8 +-
 drivers/net/ethernet/ti/am65-cpsw-nuss.c           |  10 +-
 drivers/net/ethernet/ti/netcp_core.c               |   2 +-
 drivers/net/ethernet/xilinx/xilinx_emaclite.c      |   2 +-
 drivers/net/fddi/defxx.c                           |  22 +-
 drivers/net/hamradio/baycom_epp.c                  |   2 +-
 drivers/net/hamradio/scc.c                         |   6 +-
 drivers/net/macsec.c                               |  34 +-
 drivers/net/mctp/mctp-serial.c                     |   6 +-
 drivers/net/ntb_netdev.c                           |   4 +-
 drivers/net/ppp/ppp_generic.c                      |   2 +
 drivers/net/wan/farsync.c                          |   2 +
 drivers/net/wireless/ath/ar5523/ar5523.c           |   6 +
 drivers/net/wireless/ath/ath10k/core.c             |  16 +
 drivers/net/wireless/ath/ath10k/htc.c              |   9 +
 drivers/net/wireless/ath/ath10k/hw.h               |   2 +
 drivers/net/wireless/ath/ath10k/pci.c              |  20 +-
 drivers/net/wireless/ath/ath11k/core.c             |  46 ++
 drivers/net/wireless/ath/ath11k/core.h             |  14 +-
 drivers/net/wireless/ath/ath11k/debugfs.c          | 139 ++----
 drivers/net/wireless/ath/ath11k/debugfs.h          |   6 +-
 drivers/net/wireless/ath/ath11k/mac.c              | 122 +++--
 drivers/net/wireless/ath/ath11k/qmi.c              |   3 +
 drivers/net/wireless/ath/ath11k/wmi.c              |  48 +-
 drivers/net/wireless/ath/ath9k/hif_usb.c           |  46 +-
 .../broadcom/brcm80211/brcmfmac/firmware.c         |   5 +
 .../wireless/broadcom/brcm80211/brcmfmac/pcie.c    |   6 +-
 .../wireless/broadcom/brcm80211/brcmfmac/sdio.c    |   1 +
 drivers/net/wireless/intel/iwlwifi/mei/iwl-mei.h   |   7 +-
 drivers/net/wireless/intel/iwlwifi/mei/main.c      | 172 ++++---
 drivers/net/wireless/intel/iwlwifi/mei/net.c       |  10 +-
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c        |   2 +
 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h       |   4 +-
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c       |   2 +-
 drivers/net/wireless/intel/iwlwifi/mvm/tx.c        |  20 +-
 drivers/net/wireless/mediatek/mt76/mt76.h          |   3 +-
 drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c |  58 +--
 drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h |   5 -
 drivers/net/wireless/mediatek/mt76/mt7915/mac.c    |  23 +-
 drivers/net/wireless/mediatek/mt76/mt7915/pci.c    |  13 +-
 drivers/net/wireless/mediatek/mt76/mt7921/mac.c    |  34 +-
 drivers/net/wireless/mediatek/mt76/usb.c           |  11 +-
 drivers/net/wireless/purelifi/plfxlc/usb.c         |   1 +
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h   |   2 +-
 .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c  |  28 +-
 drivers/net/wireless/realtek/rtw89/core.c          |   2 +-
 drivers/net/wireless/realtek/rtw89/mac.c           |   6 +-
 drivers/net/wireless/realtek/rtw89/phy.c           |   2 +-
 drivers/net/wireless/rsi/rsi_91x_core.c            |   4 +-
 drivers/net/wireless/rsi/rsi_91x_hal.c             |   6 +-
 drivers/nfc/pn533/pn533.c                          |   4 +
 drivers/nvme/host/core.c                           |  14 +-
 drivers/nvme/target/core.c                         |  22 +-
 drivers/nvme/target/io-cmd-file.c                  |  16 +-
 drivers/nvme/target/nvmet.h                        |   3 +-
 drivers/of/overlay.c                               |   4 +-
 drivers/pci/controller/dwc/pci-imx6.c              |  13 +-
 drivers/pci/controller/dwc/pcie-designware.c       |   2 +-
 drivers/pci/controller/vmd.c                       |  27 +-
 drivers/pci/endpoint/functions/pci-epf-test.c      |   2 +-
 drivers/pci/endpoint/functions/pci-epf-vntb.c      |   2 +-
 drivers/pci/irq.c                                  |   2 +
 drivers/pci/probe.c                                |   3 -
 drivers/perf/arm_dmc620_pmu.c                      |   8 +-
 drivers/perf/arm_dsu_pmu.c                         |   6 +-
 drivers/perf/arm_smmuv3_pmu.c                      |   8 +-
 drivers/perf/hisilicon/hisi_pcie_pmu.c             |   8 +-
 drivers/perf/marvell_cn10k_tad_pmu.c               |   6 +-
 drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c  |   9 +-
 drivers/phy/broadcom/phy-brcm-usb-init.h           |   1 -
 drivers/phy/broadcom/phy-brcm-usb.c                |  14 +-
 drivers/phy/marvell/phy-mvebu-a3700-comphy.c       |   3 +
 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c           |  15 +-
 drivers/phy/qualcomm/phy-qcom-qmp-pcs-v5_20.h      |  14 +
 drivers/phy/qualcomm/phy-qcom-qmp.h                |   1 +
 drivers/pinctrl/mediatek/pinctrl-mt7986.c          |  24 +-
 drivers/pinctrl/pinconf-generic.c                  |   4 +-
 drivers/pinctrl/pinctrl-k210.c                     |   4 +-
 drivers/pinctrl/pinctrl-ocelot.c                   |  20 +-
 drivers/pinctrl/pinctrl-thunderbay.c               |   8 +-
 drivers/platform/chrome/cros_ec_typec.c            |  53 ++-
 drivers/platform/chrome/cros_usbpd_notify.c        |   6 +-
 drivers/platform/mellanox/mlxbf-pmc.c              |   2 +-
 drivers/platform/x86/huawei-wmi.c                  |  20 +-
 .../platform/x86/intel/int3472/clk_and_regulator.c |   3 +-
 drivers/platform/x86/intel_scu_ipc.c               |   2 +-
 drivers/platform/x86/mxm-wmi.c                     |   8 +-
 drivers/pnp/core.c                                 |   4 +-
 drivers/power/supply/ab8500_charger.c              |   9 +-
 drivers/power/supply/bq25890_charger.c             |  71 ++-
 drivers/power/supply/cw2015_battery.c              |  17 +-
 drivers/power/supply/power_supply_core.c           |   7 +-
 drivers/power/supply/z2_battery.c                  |   6 +-
 drivers/pwm/pwm-mediatek.c                         |   2 +-
 drivers/pwm/pwm-mtk-disp.c                         |   5 +-
 drivers/pwm/pwm-sifive.c                           |   5 +-
 drivers/pwm/pwm-tegra.c                            |  15 +-
 drivers/rapidio/devices/rio_mport_cdev.c           |  15 +-
 drivers/rapidio/rio-scan.c                         |   8 +-
 drivers/rapidio/rio.c                              |   9 +-
 drivers/regulator/core.c                           |  25 +-
 drivers/regulator/devres.c                         |   2 +-
 drivers/regulator/of_regulator.c                   |   2 +-
 drivers/regulator/qcom-labibb-regulator.c          |   1 +
 drivers/regulator/qcom-rpmh-regulator.c            |   2 +-
 drivers/regulator/stm32-vrefbuf.c                  |   2 +-
 drivers/remoteproc/qcom_q6v5_pas.c                 |   4 +
 drivers/remoteproc/qcom_q6v5_wcss.c                |   6 +-
 drivers/remoteproc/qcom_sysmon.c                   |   5 +-
 drivers/rtc/class.c                                |   4 +-
 drivers/rtc/rtc-cmos.c                             | 378 +++++++--------
 drivers/rtc/rtc-mxc_v2.c                           |   4 +-
 drivers/rtc/rtc-pcf85063.c                         |  10 +-
 drivers/rtc/rtc-pic32.c                            |   8 +-
 drivers/rtc/rtc-rzn1.c                             |   4 +-
 drivers/rtc/rtc-snvs.c                             |  16 +-
 drivers/rtc/rtc-st-lpc.c                           |   1 +
 drivers/s390/net/ctcm_main.c                       |  11 +-
 drivers/s390/net/lcs.c                             |   8 +-
 drivers/s390/net/netiucv.c                         |   9 +-
 drivers/scsi/elx/efct/efct_driver.c                |   1 +
 drivers/scsi/elx/libefc/efclib.h                   |   6 +-
 drivers/scsi/fcoe/fcoe.c                           |   1 +
 drivers/scsi/fcoe/fcoe_sysfs.c                     |  19 +-
 drivers/scsi/hisi_sas/hisi_sas_main.c              |   8 +-
 drivers/scsi/hpsa.c                                |   9 +-
 drivers/scsi/ipr.c                                 |  10 +-
 drivers/scsi/libsas/sas_ata.c                      |  25 +
 drivers/scsi/libsas/sas_expander.c                 |   4 +-
 drivers/scsi/libsas/sas_internal.h                 |   2 +
 drivers/scsi/lpfc/lpfc_sli.c                       |   6 +-
 drivers/scsi/mpt3sas/mpt3sas_transport.c           |   2 +
 drivers/scsi/qla2xxx/qla_def.h                     |  22 +-
 drivers/scsi/qla2xxx/qla_init.c                    |  20 +-
 drivers/scsi/qla2xxx/qla_inline.h                  |   4 +-
 drivers/scsi/qla2xxx/qla_os.c                      |   4 +-
 drivers/scsi/scsi_debug.c                          |  11 +-
 drivers/scsi/scsi_error.c                          |  14 +-
 drivers/scsi/smartpqi/smartpqi.h                   |   2 +-
 drivers/scsi/smartpqi/smartpqi_init.c              |  77 ++-
 drivers/scsi/snic/snic_disc.c                      |   3 +
 drivers/soc/apple/rtkit.c                          |   7 +-
 drivers/soc/apple/sart.c                           |   7 +-
 drivers/soc/mediatek/mtk-pm-domains.c              |   2 +-
 drivers/soc/qcom/apr.c                             |  15 +-
 drivers/soc/qcom/llcc-qcom.c                       |   2 +-
 drivers/soc/ti/knav_qmss_queue.c                   |   3 +-
 drivers/soc/ti/smartreflex.c                       |   1 +
 drivers/spi/spi-gpio.c                             |  16 +-
 drivers/spi/spi-mt65xx.c                           |   5 +
 drivers/spi/spidev.c                               |  21 +-
 drivers/staging/media/imx/imx7-media-csi.c         |   6 +-
 drivers/staging/media/rkvdec/rkvdec-vp9.c          |   3 +
 drivers/staging/media/stkwebcam/Kconfig            |   2 +-
 drivers/staging/media/sunxi/cedrus/cedrus_h265.c   |  25 +-
 drivers/staging/media/sunxi/cedrus/cedrus_regs.h   |   2 +
 drivers/staging/r8188eu/core/rtw_led.c             |  29 +-
 drivers/staging/r8188eu/core/rtw_pwrctrl.c         |   2 +-
 drivers/staging/rtl8192e/rtllib_rx.c               |   2 +-
 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c  |   4 +-
 drivers/staging/vme_user/vme_fake.c                |   2 +
 drivers/staging/vme_user/vme_tsi148.c              |   1 +
 drivers/target/iscsi/iscsi_target_nego.c           |  12 +-
 drivers/thermal/imx8mm_thermal.c                   |   8 +-
 drivers/thermal/k3_j72xx_bandgap.c                 |   2 +-
 drivers/thermal/qcom/lmh.c                         |   2 +-
 drivers/thermal/qcom/qcom-spmi-temp-alarm.c        |   3 +-
 drivers/thermal/thermal_core.c                     |  18 +-
 drivers/tty/serial/8250/8250_bcm7271.c             |  10 +-
 drivers/tty/serial/altera_uart.c                   |  21 +-
 drivers/tty/serial/amba-pl011.c                    |  14 +-
 drivers/tty/serial/pch_uart.c                      |   4 +
 drivers/tty/serial/serial-tegra.c                  |   6 +-
 drivers/tty/serial/stm32-usart.c                   |  47 +-
 drivers/tty/serial/sunsab.c                        |   8 +-
 drivers/ufs/core/ufshcd.c                          |  37 +-
 drivers/uio/uio_dmem_genirq.c                      |  13 +-
 drivers/usb/cdns3/cdnsp-ring.c                     |  42 +-
 drivers/usb/core/hcd.c                             |   6 +-
 drivers/usb/dwc3/core.c                            |  23 +-
 drivers/usb/gadget/function/f_hid.c                |  53 ++-
 drivers/usb/gadget/udc/core.c                      |  12 +-
 drivers/usb/gadget/udc/fotg210-udc.c               |  12 +-
 drivers/usb/host/xhci-mtk.c                        |   1 -
 drivers/usb/host/xhci-ring.c                       |  14 +-
 drivers/usb/host/xhci.h                            |   2 +-
 drivers/usb/musb/musb_gadget.c                     |   2 -
 drivers/usb/musb/omap2430.c                        |  54 +++
 drivers/usb/roles/class.c                          |   5 +-
 drivers/usb/storage/alauda.c                       |   2 +
 drivers/usb/typec/bus.c                            |   2 +-
 drivers/usb/typec/tcpm/tcpci.c                     |   5 +-
 drivers/usb/typec/tipd/core.c                      |  11 +-
 drivers/usb/typec/wusb3801.c                       |   2 +-
 drivers/vfio/platform/vfio_platform_common.c       |   3 +-
 drivers/video/fbdev/Kconfig                        |   2 +-
 drivers/video/fbdev/core/fbcon.c                   |   3 +-
 drivers/video/fbdev/ep93xx-fb.c                    |   4 +-
 drivers/video/fbdev/geode/Kconfig                  |   1 +
 drivers/video/fbdev/hyperv_fb.c                    |   8 +-
 drivers/video/fbdev/pm2fb.c                        |   9 +-
 drivers/video/fbdev/uvesafb.c                      |   1 +
 drivers/video/fbdev/vermilion/vermilion.c          |   4 +-
 drivers/video/fbdev/via/via-core.c                 |   9 +-
 drivers/virt/coco/sev-guest/sev-guest.c            |   1 +
 drivers/watchdog/iTCO_wdt.c                        |  21 +-
 drivers/xen/privcmd.c                              |   2 +-
 fs/afs/fs_probe.c                                  |   5 +-
 fs/binfmt_misc.c                                   |   8 +-
 fs/btrfs/file.c                                    |  10 +-
 fs/char_dev.c                                      |   2 +-
 fs/cifs/cifsencrypt.c                              |  12 +-
 fs/cifs/cifsfs.c                                   |  31 +-
 fs/cifs/cifsglob.h                                 | 114 ++++-
 fs/cifs/cifsproto.h                                |  17 +-
 fs/cifs/connect.c                                  |   6 +-
 fs/cifs/dir.c                                      |  30 +-
 fs/cifs/file.c                                     |  41 +-
 fs/cifs/fs_context.c                               |  12 +-
 fs/cifs/inode.c                                    | 167 ++++---
 fs/cifs/link.c                                     | 107 +----
 fs/cifs/misc.c                                     |   6 +-
 fs/cifs/readdir.c                                  |   2 +
 fs/cifs/sess.c                                     |  30 +-
 fs/cifs/smb1ops.c                                  |  56 ++-
 fs/cifs/smb2file.c                                 | 127 ++++-
 fs/cifs/smb2inode.c                                | 169 +++----
 fs/cifs/smb2ops.c                                  | 252 ++++------
 fs/cifs/smb2pdu.c                                  |  20 +-
 fs/cifs/smb2pdu.h                                  |   3 +
 fs/cifs/smb2proto.h                                |  22 +-
 fs/configfs/dir.c                                  |   2 +
 fs/debugfs/file.c                                  |  28 +-
 fs/erofs/decompressor.c                            |  47 +-
 fs/erofs/erofs_fs.h                                |   2 +
 fs/erofs/internal.h                                |   1 +
 fs/erofs/zdata.c                                   |   3 +-
 fs/erofs/zmap.c                                    |  25 +-
 fs/f2fs/compress.c                                 |   2 +-
 fs/f2fs/f2fs.h                                     |   2 +-
 fs/f2fs/file.c                                     |   4 +
 fs/f2fs/gc.c                                       |  10 +-
 fs/f2fs/namei.c                                    | 329 +++++++------
 fs/f2fs/segment.c                                  |   8 +-
 fs/f2fs/super.c                                    |   2 +-
 fs/hfs/inode.c                                     |   2 +
 fs/hfs/trans.c                                     |   2 +-
 fs/hugetlbfs/inode.c                               |   6 +-
 fs/jfs/jfs_dmap.c                                  |  27 +-
 fs/jfs/namei.c                                     |   2 +-
 fs/ksmbd/mgmt/user_session.c                       |   8 +-
 fs/libfs.c                                         |  22 +-
 fs/lockd/svcsubs.c                                 |  17 +-
 fs/nfs/fs_context.c                                |   6 +
 fs/nfs/internal.h                                  |   6 +-
 fs/nfs/namespace.c                                 |   2 +-
 fs/nfs/nfs42xdr.c                                  |   2 +-
 fs/nfs/nfs4proc.c                                  |  38 +-
 fs/nfs/nfs4state.c                                 |   2 +
 fs/nfs/nfs4xdr.c                                   |  22 +-
 fs/nfsd/nfs2acl.c                                  |  10 -
 fs/nfsd/nfs3acl.c                                  |  30 +-
 fs/nfsd/nfs4callback.c                             |   4 +-
 fs/nfsd/nfs4proc.c                                 |   7 +-
 fs/nfsd/nfs4state.c                                |  51 +-
 fs/nilfs2/the_nilfs.c                              |  73 ++-
 fs/ntfs3/bitmap.c                                  |   2 +-
 fs/ntfs3/super.c                                   |   2 +-
 fs/ntfs3/xattr.c                                   |   2 +-
 fs/ocfs2/journal.c                                 |   2 +-
 fs/ocfs2/journal.h                                 |   1 +
 fs/ocfs2/stackglue.c                               |   8 +-
 fs/ocfs2/super.c                                   |   5 +-
 fs/orangefs/orangefs-debugfs.c                     |  29 +-
 fs/orangefs/orangefs-mod.c                         |   8 +-
 fs/orangefs/orangefs-sysfs.c                       |  71 ++-
 fs/overlayfs/file.c                                |  28 +-
 fs/overlayfs/super.c                               |   7 +-
 fs/pstore/Kconfig                                  |   1 +
 fs/pstore/pmsg.c                                   |   7 +-
 fs/pstore/ram.c                                    |   2 +
 fs/pstore/ram_core.c                               |   6 +-
 fs/reiserfs/namei.c                                |   4 +
 fs/reiserfs/xattr_security.c                       |   2 +-
 fs/sysv/itree.c                                    |   2 +-
 fs/udf/namei.c                                     |   8 +-
 fs/xattr.c                                         |   2 +-
 include/drm/drm_connector.h                        |   6 +
 include/drm/ttm/ttm_tt.h                           |   2 +-
 include/dt-bindings/clock/imx8mn-clock.h           |  24 +-
 include/dt-bindings/clock/imx8mp-clock.h           |   3 +-
 .../dt-bindings/clock/qcom,lpassaudiocc-sc7280.h   |   5 +
 .../dt-bindings/clock/qcom,lpasscorecc-sc7280.h    |   2 +
 include/linux/blk-mq.h                             |   4 +
 include/linux/blkdev.h                             |  15 +-
 include/linux/btf_ids.h                            |   2 +-
 include/linux/debugfs.h                            |  19 +-
 include/linux/eventfd.h                            |   2 +-
 include/linux/fortify-string.h                     |  31 +-
 include/linux/fs.h                                 |  12 +-
 include/linux/hisi_acc_qm.h                        |  37 +-
 include/linux/hyperv.h                             |   2 +
 include/linux/ieee80211.h                          |   2 +-
 include/linux/iio/imu/adis.h                       |  13 +-
 include/linux/netdevice.h                          |  58 ++-
 include/linux/proc_fs.h                            |   2 +
 include/linux/regulator/driver.h                   |   3 +-
 include/linux/skmsg.h                              |   1 +
 include/linux/timerqueue.h                         |   2 +-
 include/media/dvbdev.h                             |  32 +-
 include/net/bluetooth/hci.h                        |  20 +
 include/net/bluetooth/hci_core.h                   |   7 +-
 include/net/dst.h                                  |   5 +-
 include/net/ip_vs.h                                |  10 +-
 include/net/mrp.h                                  |   1 +
 include/net/sock_reuseport.h                       |   2 +
 include/net/tcp.h                                  |   4 +-
 include/scsi/sas_ata.h                             |   6 +
 include/sound/hda_codec.h                          |   2 +-
 include/sound/hdaudio.h                            |   1 +
 include/sound/pcm.h                                |  36 +-
 include/trace/events/f2fs.h                        |  34 +-
 include/trace/events/ib_mad.h                      |  13 +-
 include/uapi/linux/idxd.h                          |   2 +-
 include/uapi/linux/swab.h                          |   2 +-
 include/uapi/rdma/hns-abi.h                        |  15 +
 include/uapi/sound/asequencer.h                    |   8 +-
 io_uring/msg_ring.c                                |   2 +
 io_uring/net.c                                     |   2 +-
 io_uring/timeout.c                                 |   4 +-
 ipc/mqueue.c                                       |   6 +-
 kernel/acct.c                                      |   2 +
 kernel/bpf/btf.c                                   |   5 +
 kernel/bpf/syscall.c                               |   6 +-
 kernel/bpf/verifier.c                              | 108 +++--
 kernel/cpu.c                                       |  60 ++-
 kernel/events/core.c                               |   8 +-
 kernel/fork.c                                      |  17 +-
 kernel/futex/core.c                                |  26 +-
 kernel/gcov/gcc_4_7.c                              |   5 +
 kernel/irq/internals.h                             |   2 +
 kernel/irq/irqdesc.c                               |  15 +-
 kernel/kprobes.c                                   |  16 +-
 kernel/module/decompress.c                         |   8 +-
 kernel/padata.c                                    |  15 +-
 kernel/power/snapshot.c                            |   4 +-
 kernel/rcu/tree.c                                  |   2 +-
 kernel/relay.c                                     |   4 +-
 kernel/sched/core.c                                |  10 +-
 kernel/sched/cpudeadline.c                         |   2 +-
 kernel/sched/deadline.c                            |   4 +-
 kernel/sched/fair.c                                | 231 +++++++--
 kernel/sched/psi.c                                 |   8 +-
 kernel/sched/rt.c                                  |   4 +-
 kernel/sched/sched.h                               |  56 ++-
 kernel/trace/blktrace.c                            |   3 +-
 kernel/trace/trace_events_hist.c                   |   2 +-
 kernel/trace/trace_events_user.c                   |   1 +
 lib/debugobjects.c                                 |  10 +
 lib/fonts/fonts.c                                  |   4 +-
 lib/notifier-error-inject.c                        |   2 +-
 lib/test_firmware.c                                |   1 +
 mm/gup.c                                           |   3 +
 net/802/mrp.c                                      |  18 +-
 net/8021q/vlan_dev.c                               |   4 +-
 net/9p/client.c                                    |   5 +
 net/bluetooth/hci_conn.c                           |   2 +-
 net/bluetooth/hci_core.c                           |   4 +-
 net/bluetooth/hci_sync.c                           |   2 +-
 net/bluetooth/lib.c                                |   4 +-
 net/bluetooth/mgmt.c                               |   2 +-
 net/bluetooth/rfcomm/core.c                        |   2 +-
 net/bpf/test_run.c                                 |   3 -
 net/bridge/br_multicast.c                          |   4 +-
 net/bridge/br_vlan.c                               |   4 +-
 net/core/dev.c                                     |  18 +-
 net/core/devlink.c                                 |   9 +-
 net/core/drop_monitor.c                            |   8 +-
 net/core/filter.c                                  |  11 +-
 net/core/gen_stats.c                               |  16 +-
 net/core/skbuff.c                                  |   3 +
 net/core/skmsg.c                                   |   9 +-
 net/core/sock.c                                    |   2 +-
 net/core/sock_map.c                                |   2 +
 net/core/sock_reuseport.c                          |  94 +++-
 net/core/stream.c                                  |   6 +
 net/dsa/slave.c                                    |   4 +-
 net/dsa/tag_8021q.c                                |  11 +-
 net/ethtool/ioctl.c                                |   3 +-
 net/hsr/hsr_debugfs.c                              |  40 +-
 net/hsr/hsr_device.c                               |  32 +-
 net/hsr/hsr_forward.c                              |  14 +-
 net/hsr/hsr_framereg.c                             | 222 ++++-----
 net/hsr/hsr_framereg.h                             |  17 +-
 net/hsr/hsr_main.h                                 |   9 +-
 net/hsr/hsr_netlink.c                              |   4 +-
 net/ipv4/af_inet.c                                 |   8 +-
 net/ipv4/inet_connection_sock.c                    |   5 +-
 net/ipv4/ping.c                                    |   2 +-
 net/ipv4/tcp_bpf.c                                 |  19 +-
 net/ipv4/udp.c                                     |  39 +-
 net/ipv4/udp_tunnel_core.c                         |   1 +
 net/ipv6/af_inet6.c                                |   4 +-
 net/ipv6/datagram.c                                |  15 +-
 net/ipv6/seg6_local.c                              |   4 +-
 net/ipv6/sit.c                                     |  22 +-
 net/ipv6/udp.c                                     |  12 +-
 net/mac80211/cfg.c                                 |   2 +-
 net/mac80211/ieee80211_i.h                         |   1 +
 net/mac80211/iface.c                               |   1 +
 net/mac80211/mlme.c                                |  15 +-
 net/mac80211/sta_info.c                            |   8 +-
 net/mac80211/tx.c                                  |   2 +-
 net/mctp/device.c                                  |  14 +-
 net/mpls/af_mpls.c                                 |   4 +-
 net/netfilter/ipvs/ip_vs_core.c                    |  30 +-
 net/netfilter/ipvs/ip_vs_ctl.c                     |  14 +-
 net/netfilter/ipvs/ip_vs_est.c                     |  20 +-
 net/netfilter/nf_conntrack_proto_icmpv6.c          |  53 +++
 net/netfilter/nf_flow_table_offload.c              |   6 +-
 net/netfilter/nf_tables_api.c                      |   4 +-
 net/openvswitch/datapath.c                         |  29 +-
 net/openvswitch/flow_table.c                       |   9 +-
 net/rxrpc/output.c                                 |   2 +-
 net/rxrpc/sendmsg.c                                |   2 +-
 net/sched/ematch.c                                 |   2 +
 net/sctp/sysctl.c                                  |  73 +--
 net/sunrpc/clnt.c                                  |   2 +-
 net/sunrpc/xprtrdma/verbs.c                        |   2 +-
 net/tls/tls_sw.c                                   |   6 +-
 net/unix/af_unix.c                                 |  12 +-
 net/vmw_vsock/vmci_transport.c                     |   6 +-
 net/wireless/nl80211.c                             |   3 +
 net/wireless/reg.c                                 |   4 +-
 samples/bpf/xdp1_user.c                            |   2 +-
 samples/bpf/xdp2_kern.c                            |   4 +
 samples/vfio-mdev/mdpy-fb.c                        |   8 +-
 security/Kconfig.hardening                         |   3 +
 security/apparmor/apparmorfs.c                     |   4 +-
 security/apparmor/label.c                          |  12 +-
 security/apparmor/lsm.c                            |   4 +-
 security/apparmor/policy.c                         |   2 +-
 security/apparmor/policy_ns.c                      |   2 +-
 security/apparmor/policy_unpack.c                  |   2 +-
 security/integrity/digsig.c                        |   6 +-
 security/integrity/ima/ima_policy.c                |  51 +-
 security/integrity/ima/ima_template.c              |   4 +-
 security/loadpin/loadpin.c                         |  30 +-
 sound/core/pcm_native.c                            |   4 +-
 sound/drivers/mts64.c                              |   3 +
 sound/hda/hdac_stream.c                            |  17 +-
 sound/pci/asihpi/hpioctl.c                         |   2 +-
 sound/pci/hda/hda_codec.c                          |   3 +-
 sound/pci/hda/hda_controller.c                     |   4 +-
 sound/pci/hda/patch_hdmi.c                         | 273 ++++++-----
 sound/pci/hda/patch_realtek.c                      |  27 ++
 sound/soc/amd/yc/acp6x-mach.c                      |   7 +
 sound/soc/codecs/hda.c                             |   3 -
 sound/soc/codecs/hdac_hda.c                        |   3 -
 sound/soc/codecs/pcm512x.c                         |   8 +-
 sound/soc/codecs/rt298.c                           |   7 +
 sound/soc/codecs/rt5670.c                          |   2 -
 sound/soc/codecs/wm8994.c                          |   5 +
 sound/soc/codecs/wsa883x.c                         |   6 +-
 sound/soc/generic/audio-graph-card.c               |   4 +-
 sound/soc/intel/avs/boards/rt298.c                 |  24 +-
 sound/soc/intel/avs/core.c                         |   2 +-
 sound/soc/intel/avs/ipc.c                          |   6 +-
 sound/soc/intel/boards/sof_es8336.c                |   2 +-
 sound/soc/intel/skylake/skl.c                      |   5 +-
 sound/soc/mediatek/common/mtk-btcvsd.c             |   6 +-
 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c         |  20 +-
 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c   |   7 +-
 .../mt8183/mt8183-mt6358-ts3a227-max98357.c        |  14 +-
 sound/soc/pxa/mmp-pcm.c                            |   2 +-
 sound/soc/qcom/lpass-sc7180.c                      |   3 +
 sound/soc/rockchip/rockchip_pdm.c                  |   1 +
 sound/soc/rockchip/rockchip_spdif.c                |   1 +
 sound/usb/quirks-table.h                           |   2 +
 tools/bpf/bpftool/common.c                         |   1 +
 tools/lib/bpf/bpf.h                                |   7 +
 tools/lib/bpf/btf.c                                |   8 +-
 tools/lib/bpf/btf_dump.c                           |  29 +-
 tools/lib/bpf/libbpf.c                             |  30 +-
 tools/lib/bpf/usdt.c                               |  11 +-
 tools/objtool/check.c                              |  10 +
 tools/perf/builtin-stat.c                          |  33 +-
 tools/perf/builtin-trace.c                         |  32 +-
 tools/perf/tests/shell/stat_all_pmu.sh             |  13 +-
 tools/perf/util/bpf_off_cpu.c                      |   2 +-
 tools/perf/util/debug.c                            |   4 +
 tools/perf/util/symbol-elf.c                       |   2 +-
 .../selftests/bpf/bpf_testmod/bpf_testmod.c        |  48 ++
 tools/testing/selftests/bpf/config                 |   1 +
 tools/testing/selftests/bpf/network_helpers.c      |   4 +
 tools/testing/selftests/bpf/prog_tests/empty_skb.c | 146 ++++++
 .../selftests/bpf/prog_tests/kprobe_multi_test.c   |  26 +-
 .../testing/selftests/bpf/prog_tests/lsm_cgroup.c  |  17 +-
 tools/testing/selftests/bpf/prog_tests/map_kptr.c  |   3 +-
 .../selftests/bpf/prog_tests/tracing_struct.c      |  64 +++
 .../selftests/bpf/prog_tests/xdp_adjust_tail.c     |   7 +-
 .../selftests/bpf/prog_tests/xdp_do_redirect.c     |   2 +-
 .../selftests/bpf/prog_tests/xdp_synproxy.c        |   2 +-
 tools/testing/selftests/bpf/progs/bpf_iter_ksym.c  |   6 +-
 tools/testing/selftests/bpf/progs/empty_skb.c      |  37 ++
 tools/testing/selftests/bpf/progs/lsm_cgroup.c     |   8 +
 tools/testing/selftests/bpf/progs/tracing_struct.c | 120 +++++
 tools/testing/selftests/bpf/xdp_synproxy.c         |   5 +-
 tools/testing/selftests/cgroup/cgroup_util.c       |   5 +-
 .../selftests/drivers/net/netdevsim/devlink.sh     |   4 +-
 tools/testing/selftests/efivarfs/efivarfs.sh       |   5 +
 .../ftrace/test.d/ftrace/func_event_triggers.tc    |  15 +-
 .../selftests/netfilter/conntrack_icmp_related.sh  |  36 +-
 .../selftests/powerpc/dscr/dscr_sysfs_test.c       |   5 +-
 tools/testing/selftests/proc/proc-uptime-002.c     |   3 +-
 1042 files changed, 13129 insertions(+), 6952 deletions(-)
author maintainer
#1 lore raw

PATCH 1/1073 staging: r8188eu: remove duplicate bSurpriseRemoved check

From: Martin Kaiser <[email protected]>

[ Upstream commit 8f60cb9534e459d66f6888038951ffd74351ef25 ]

We don't have to check bSurpriseRemoved in the SwLedOn function.

SwLedOn calls rtw_read8 which in turn calls usb_read. This function checks bSurpriseRemoved for us.

Stable-dep-of: 12c6223fc180 ("staging: r8188eu: fix led register settings")

---
 drivers/staging/r8188eu/core/rtw_led.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/r8188eu/core/rtw_led.c +1 -1
index d5c6c5e29621..e889e7861706 100644
@@ -37,7 +37,7 @@ static void SwLedOn(struct adapter *padapter, struct led_priv *pLed)
 	u8	LedCfg;
 	int res;
 
-	if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
+	if (padapter->bDriverStopped)
 		return;
 
 	res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);
Signature · 1 line
2.35.1
author maintainer
#2 lore raw

PATCH 2/1073 staging: r8188eu: dont check bSurpriseRemoved in SwLedOff

In reply to Greg Kroah-Hartman

From: Martin Kaiser <[email protected]>

[ Upstream commit 647085006beb2cc41bef27a24f249f4dec3c1e15 ]

The SwLedOff function calls rtw_read8 which in turn calls usb_read.

bSurpriseRemoved is checked in usb_read. We don't have to check it again in SwLedOff.

Stable-dep-of: 12c6223fc180 ("staging: r8188eu: fix led register settings")

---
 drivers/staging/r8188eu/core/rtw_led.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/r8188eu/core/rtw_led.c +1 -1
index e889e7861706..42e35953fd7b 100644
@@ -53,7 +53,7 @@ static void SwLedOff(struct adapter *padapter, struct led_priv *pLed)
 	u8	LedCfg;
 	int res;
 
-	if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
+	if (padapter->bDriverStopped)
 		goto exit;
 
 	res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);/* 0x4E */
Signature · 1 line
2.35.1
author maintainer
#3 lore raw

PATCH 3/1073 staging: r8188eu: fix led register settings

In reply to Greg Kroah-Hartman

From: Martin Kaiser <[email protected]>

[ Upstream commit 12c6223fc1804fd9295dc50d358294539b4a4184 ]

Using an InterTech DMG-02 dongle, the led remains on when the system goes into standby mode. After wakeup, it's no longer possible to control the led.

It turned out that the register settings to enable or disable the led were not correct. They worked for some dongles like the Edimax V2 but not for others like the InterTech DMG-02.

This patch fixes the register settings. Bit 3 in the led_cfg2 register controls the led status, bit 5 must always be set to be able to control the led, bit 6 has no influence on the led. Setting the mac_pinmux_cfg register is not necessary.

These settings were tested with Edimax V2 and InterTech DMG-02.

---
 drivers/staging/r8188eu/core/rtw_led.c | 25 ++-----------------------
 1 file changed, 2 insertions(+), 23 deletions(-)
drivers/staging/r8188eu/core/rtw_led.c +2 -23
index 42e35953fd7b..1993c3993b3d 100644
@@ -34,40 +34,19 @@ static void ResetLedStatus(struct led_priv *pLed)
 
 static void SwLedOn(struct adapter *padapter, struct led_priv *pLed)
 {
-	u8	LedCfg;
-	int res;
-
 	if (padapter->bDriverStopped)
 		return;
 
-	res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);
-	if (res)
-		return;
-
-	rtw_write8(padapter, REG_LEDCFG2, (LedCfg & 0xf0) | BIT(5) | BIT(6)); /*  SW control led0 on. */
+	rtw_write8(padapter, REG_LEDCFG2, BIT(5)); /*  SW control led0 on. */
 	pLed->bLedOn = true;
 }
 
 static void SwLedOff(struct adapter *padapter, struct led_priv *pLed)
 {
-	u8	LedCfg;
-	int res;
-
 	if (padapter->bDriverStopped)
 		goto exit;
 
-	res = rtw_read8(padapter, REG_LEDCFG2, &LedCfg);/* 0x4E */
-	if (res)
-		goto exit;
-
-	LedCfg &= 0x90; /*  Set to software control. */
-	rtw_write8(padapter, REG_LEDCFG2, (LedCfg | BIT(3)));
-	res = rtw_read8(padapter, REG_MAC_PINMUX_CFG, &LedCfg);
-	if (res)
-		goto exit;
-
-	LedCfg &= 0xFE;
-	rtw_write8(padapter, REG_MAC_PINMUX_CFG, LedCfg);
+	rtw_write8(padapter, REG_LEDCFG2, BIT(5) | BIT(3));
 exit:
 	pLed->bLedOn = false;
 }
Signature · 1 line
2.35.1
author maintainer
#4 lore raw

PATCH 4/1073 usb: musb: remove extra check in musb_gadget_vbus_draw

In reply to Greg Kroah-Hartman

From: Ivaylo Dimitrov <[email protected]>

[ Upstream commit ecec4b20d29c3d6922dafe7d2555254a454272d2 ]

The checks for musb->xceiv and musb->xceiv->set_power duplicate those in usb_phy_set_power(), so there is no need of them. Moreover, not calling usb_phy_set_power() results in usb_phy_set_charger_current() not being called, so current USB config max current is not propagated through USB charger framework and charger drivers may try to draw more current than allowed or possible.

Fix that by removing those extra checks and calling usb_phy_set_power() directly.

Tested on Motorola Droid4 and Nokia N900

---
 drivers/usb/musb/musb_gadget.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/musb/musb_gadget.c +0 -2
index 6704a62a1665..ba20272d2221 100644
@@ -1628,8 +1628,6 @@ static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA)
 {
 	struct musb	*musb = gadget_to_musb(gadget);
 
-	if (!musb->xceiv->set_power)
-		return -EOPNOTSUPP;
 	return usb_phy_set_power(musb->xceiv, mA);
 }
 
Signature · 1 line
2.35.1
author maintainer
#5 lore raw

PATCH 5/1073 cifs: replace kfree() with kfree_sensitive() for sensitive data

In reply to Greg Kroah-Hartman

From: Enzo Matsumiya <[email protected]>

[ Upstream commit a4e430c8c8ba96be8c6ec4f2eb108bb8bcbee069 ]

Replace kfree with kfree_sensitive, or prepend memzero_explicit() in other cases, when freeing sensitive material that could still be left in memory.

Stable-dep-of: f7f291e14dde ("cifs: fix oops during encryption")

---
 fs/cifs/cifsencrypt.c | 12 ++++++------
 fs/cifs/connect.c     |  6 +++---
 fs/cifs/fs_context.c  | 12 ++++++++++--
 fs/cifs/misc.c        |  2 +-
 fs/cifs/sess.c        | 24 +++++++++++++++---------
 fs/cifs/smb2ops.c     |  6 +++---
 fs/cifs/smb2pdu.c     | 19 ++++++++++++++-----
 7 files changed, 52 insertions(+), 29 deletions(-)
fs/cifs/cifsencrypt.c +6 -6
index 46f5718754f9..d848bc0aac27 100644
@@ -679,7 +679,7 @@ setup_ntlmv2_rsp(struct cifs_ses *ses, const struct nls_table *nls_cp)
 unlock:
 	cifs_server_unlock(ses->server);
 setup_ntlmv2_rsp_ret:
-	kfree(tiblob);
+	kfree_sensitive(tiblob);
 
 	return rc;
 }
@@ -753,14 +753,14 @@ cifs_crypto_secmech_release(struct TCP_Server_Info *server)
 		server->secmech.ccmaesdecrypt = NULL;
 	}
 
-	kfree(server->secmech.sdesccmacaes);
+	kfree_sensitive(server->secmech.sdesccmacaes);
 	server->secmech.sdesccmacaes = NULL;
-	kfree(server->secmech.sdeschmacsha256);
+	kfree_sensitive(server->secmech.sdeschmacsha256);
 	server->secmech.sdeschmacsha256 = NULL;
-	kfree(server->secmech.sdeschmacmd5);
+	kfree_sensitive(server->secmech.sdeschmacmd5);
 	server->secmech.sdeschmacmd5 = NULL;
-	kfree(server->secmech.sdescmd5);
+	kfree_sensitive(server->secmech.sdescmd5);
 	server->secmech.sdescmd5 = NULL;
-	kfree(server->secmech.sdescsha512);
+	kfree_sensitive(server->secmech.sdescsha512);
 	server->secmech.sdescsha512 = NULL;
 }
fs/cifs/connect.c +3 -3
index 317ca1be9c4c..816161f51b29 100644
@@ -311,7 +311,7 @@ cifs_abort_connection(struct TCP_Server_Info *server)
 	}
 	server->sequence_number = 0;
 	server->session_estab = false;
-	kfree(server->session_key.response);
+	kfree_sensitive(server->session_key.response);
 	server->session_key.response = NULL;
 	server->session_key.len = 0;
 	server->lstrp = jiffies;
@@ -1580,7 +1580,7 @@ cifs_put_tcp_session(struct TCP_Server_Info *server, int from_reconnect)
 
 	cifs_crypto_secmech_release(server);
 
-	kfree(server->session_key.response);
+	kfree_sensitive(server->session_key.response);
 	server->session_key.response = NULL;
 	server->session_key.len = 0;
 	kfree(server->hostname);
@@ -4141,7 +4141,7 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
 		if (ses->auth_key.response) {
 			cifs_dbg(FYI, "Free previous auth_key.response = %p\n",
 				 ses->auth_key.response);
-			kfree(ses->auth_key.response);
+			kfree_sensitive(ses->auth_key.response);
 			ses->auth_key.response = NULL;
 			ses->auth_key.len = 0;
 		}
fs/cifs/fs_context.c +10 -2
index 0e13dec86b25..45119597c765 100644
@@ -791,6 +791,13 @@ do {									\
 	cifs_sb->ctx->field = NULL;					\
 } while (0)
 
+#define STEAL_STRING_SENSITIVE(cifs_sb, ctx, field)			\
+do {									\
+	kfree_sensitive(ctx->field);					\
+	ctx->field = cifs_sb->ctx->field;				\
+	cifs_sb->ctx->field = NULL;					\
+} while (0)
+
 static int smb3_reconfigure(struct fs_context *fc)
 {
 	struct smb3_fs_context *ctx = smb3_fc2context(fc);
@@ -811,7 +818,7 @@ static int smb3_reconfigure(struct fs_context *fc)
 	STEAL_STRING(cifs_sb, ctx, UNC);
 	STEAL_STRING(cifs_sb, ctx, source);
 	STEAL_STRING(cifs_sb, ctx, username);
-	STEAL_STRING(cifs_sb, ctx, password);
+	STEAL_STRING_SENSITIVE(cifs_sb, ctx, password);
 	STEAL_STRING(cifs_sb, ctx, domainname);
 	STEAL_STRING(cifs_sb, ctx, nodename);
 	STEAL_STRING(cifs_sb, ctx, iocharset);
@@ -1162,7 +1169,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
 		}
 		break;
 	case Opt_pass:
-		kfree(ctx->password);
+		kfree_sensitive(ctx->password);
 		ctx->password = NULL;
 		if (strlen(param->string) == 0)
 			break;
@@ -1470,6 +1477,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
 	return 0;
 
  cifs_parse_mount_err:
+	kfree_sensitive(ctx->password);
 	return -EINVAL;
 }
 
fs/cifs/misc.c +1 -1
index 35085fa86636..3a117e2269a0 100644
@@ -1123,7 +1123,7 @@ cifs_alloc_hash(const char *name,
 void
 cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc)
 {
-	kfree(*sdesc);
+	kfree_sensitive(*sdesc);
 	*sdesc = NULL;
 	if (*shash)
 		crypto_free_shash(*shash);
fs/cifs/sess.c +15 -9
index 6a85136da27c..22e281bc65ad 100644
@@ -1214,6 +1214,12 @@ sess_alloc_buffer(struct sess_data *sess_data, int wct)
 static void
 sess_free_buffer(struct sess_data *sess_data)
 {
+	int i;
+
+	/* zero the session data before freeing, as it might contain sensitive info (keys, etc) */
+	for (i = 0; i < 3; i++)
+		if (sess_data->iov[i].iov_base)
+			memzero_explicit(sess_data->iov[i].iov_base, sess_data->iov[i].iov_len);
 
 	free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base);
 	sess_data->buf0_type = CIFS_NO_BUFFER;
@@ -1375,7 +1381,7 @@ sess_auth_ntlmv2(struct sess_data *sess_data)
 	sess_data->result = rc;
 	sess_data->func = NULL;
 	sess_free_buffer(sess_data);
-	kfree(ses->auth_key.response);
+	kfree_sensitive(ses->auth_key.response);
 	ses->auth_key.response = NULL;
 }
 
@@ -1514,7 +1520,7 @@ sess_auth_kerberos(struct sess_data *sess_data)
 	sess_data->result = rc;
 	sess_data->func = NULL;
 	sess_free_buffer(sess_data);
-	kfree(ses->auth_key.response);
+	kfree_sensitive(ses->auth_key.response);
 	ses->auth_key.response = NULL;
 }
 
@@ -1649,7 +1655,7 @@ sess_auth_rawntlmssp_negotiate(struct sess_data *sess_data)
 	rc = decode_ntlmssp_challenge(bcc_ptr, blob_len, ses);
 
 out_free_ntlmsspblob:
-	kfree(ntlmsspblob);
+	kfree_sensitive(ntlmsspblob);
 out:
 	sess_free_buffer(sess_data);
 
@@ -1659,9 +1665,9 @@ sess_auth_rawntlmssp_negotiate(struct sess_data *sess_data)
 	}
 
 	/* Else error. Cleanup */
-	kfree(ses->auth_key.response);
+	kfree_sensitive(ses->auth_key.response);
 	ses->auth_key.response = NULL;
-	kfree(ses->ntlmssp);
+	kfree_sensitive(ses->ntlmssp);
 	ses->ntlmssp = NULL;
 
 	sess_data->func = NULL;
@@ -1760,7 +1766,7 @@ sess_auth_rawntlmssp_authenticate(struct sess_data *sess_data)
 	}
 
 out_free_ntlmsspblob:
-	kfree(ntlmsspblob);
+	kfree_sensitive(ntlmsspblob);
 out:
 	sess_free_buffer(sess_data);
 
@@ -1768,9 +1774,9 @@ sess_auth_rawntlmssp_authenticate(struct sess_data *sess_data)
 		rc = sess_establish_session(sess_data);
 
 	/* Cleanup */
-	kfree(ses->auth_key.response);
+	kfree_sensitive(ses->auth_key.response);
 	ses->auth_key.response = NULL;
-	kfree(ses->ntlmssp);
+	kfree_sensitive(ses->ntlmssp);
 	ses->ntlmssp = NULL;
 
 	sess_data->func = NULL;
@@ -1846,7 +1852,7 @@ int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
 	rc = sess_data->result;
 
 out:
-	kfree(sess_data);
+	kfree_sensitive(sess_data);
 	return rc;
 }
 #endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
fs/cifs/smb2ops.c +3 -3
index b724bf42b540..2a0eb9b7dd7a 100644
@@ -4432,11 +4432,11 @@ crypt_message(struct TCP_Server_Info *server, int num_rqst,
 	if (!rc && enc)
 		memcpy(&tr_hdr->Signature, sign, SMB2_SIGNATURE_SIZE);
 
-	kfree(iv);
+	kfree_sensitive(iv);
 free_sg:
-	kfree(sg);
+	kfree_sensitive(sg);
 free_req:
-	kfree(req);
+	kfree_sensitive(req);
 	return rc;
 }
 
fs/cifs/smb2pdu.c +14 -5
index 92a1d0695ebd..dd1aeb2316ac 100644
@@ -1345,6 +1345,13 @@ SMB2_sess_alloc_buffer(struct SMB2_sess_data *sess_data)
 static void
 SMB2_sess_free_buffer(struct SMB2_sess_data *sess_data)
 {
+	int i;
+
+	/* zero the session data before freeing, as it might contain sensitive info (keys, etc) */
+	for (i = 0; i < 2; i++)
+		if (sess_data->iov[i].iov_base)
+			memzero_explicit(sess_data->iov[i].iov_base, sess_data->iov[i].iov_len);
+
 	free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base);
 	sess_data->buf0_type = CIFS_NO_BUFFER;
 }
@@ -1477,6 +1484,8 @@ SMB2_auth_kerberos(struct SMB2_sess_data *sess_data)
 out_put_spnego_key:
 	key_invalidate(spnego_key);
 	key_put(spnego_key);
+	if (rc)
+		kfree_sensitive(ses->auth_key.response);
 out:
 	sess_data->result = rc;
 	sess_data->func = NULL;
@@ -1573,7 +1582,7 @@ SMB2_sess_auth_rawntlmssp_negotiate(struct SMB2_sess_data *sess_data)
 	}
 
 out:
-	kfree(ntlmssp_blob);
+	memzero_explicit(ntlmssp_blob, blob_length);
 	SMB2_sess_free_buffer(sess_data);
 	if (!rc) {
 		sess_data->result = 0;
@@ -1581,7 +1590,7 @@ SMB2_sess_auth_rawntlmssp_negotiate(struct SMB2_sess_data *sess_data)
 		return;
 	}
 out_err:
-	kfree(ses->ntlmssp);
+	kfree_sensitive(ses->ntlmssp);
 	ses->ntlmssp = NULL;
 	sess_data->result = rc;
 	sess_data->func = NULL;
@@ -1657,9 +1666,9 @@ SMB2_sess_auth_rawntlmssp_authenticate(struct SMB2_sess_data *sess_data)
 	}
 #endif
 out:
-	kfree(ntlmssp_blob);
+	memzero_explicit(ntlmssp_blob, blob_length);
 	SMB2_sess_free_buffer(sess_data);
-	kfree(ses->ntlmssp);
+	kfree_sensitive(ses->ntlmssp);
 	ses->ntlmssp = NULL;
 	sess_data->result = rc;
 	sess_data->func = NULL;
@@ -1737,7 +1746,7 @@ SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,
 		cifs_server_dbg(VFS, "signing requested but authenticated as guest\n");
 	rc = sess_data->result;
 out:
-	kfree(sess_data);
+	kfree_sensitive(sess_data);
 	return rc;
 }
 
Signature · 1 line
2.35.1
author maintainer
#6 lore raw

PATCH 6/1073 cifs: improve symlink handling for smb2+

In reply to Greg Kroah-Hartman

From: Paulo Alcantara <[email protected]>

[ Upstream commit 76894f3e2f71177747b8b4763fb180e800279585 ]

When creating inode for symlink, the client used to send below requests to fill it in:

* create+query_info+close (STATUS_STOPPED_ON_SYMLINK)
* create(+reparse_flag)+query_info+close (set file attrs)
* create+ioctl(get_reparse)+close (query reparse tag)

and then for every access to the symlink dentry, the ->link() method would send another:

* create+ioctl(get_reparse)+close (parse symlink)

So, in order to improve:

(i) Get rid of unnecessary roundtrips and then resolve symlinks as follows:

* create+query_info+close (STATUS_STOPPED_ON_SYMLINK + parse symlink + get reparse tag)
* create(+reparse_flag)+query_info+close (set file attrs)

(ii) Set the resolved symlink target directly in inode->i_link and
use simple_get_link() for ->link() to simply return it.

Stable-dep-of: f7f291e14dde ("cifs: fix oops during encryption")

---
 fs/cifs/cifsfs.c    |   9 ++-
 fs/cifs/cifsglob.h  |  46 +++++++++---
 fs/cifs/cifsproto.h |  13 ++--
 fs/cifs/dir.c       |  30 +++-----
 fs/cifs/file.c      |  41 ++++++-----
 fs/cifs/inode.c     | 170 ++++++++++++++++++++++++++------------------
 fs/cifs/link.c      | 107 +---------------------------
 fs/cifs/readdir.c   |   2 +
 fs/cifs/smb1ops.c   |  56 +++++++++------
 fs/cifs/smb2file.c  | 127 +++++++++++++++++++++++++++------
 fs/cifs/smb2inode.c | 169 ++++++++++++++++++++++---------------------
 fs/cifs/smb2ops.c   | 109 ++++++----------------------
 fs/cifs/smb2pdu.h   |   3 +
 fs/cifs/smb2proto.h |  22 +++---
 14 files changed, 451 insertions(+), 453 deletions(-)
fs/cifs/cifsfs.c +7 -2
index ccad85feb24e..ad683048e5ce 100644
@@ -396,6 +396,7 @@ cifs_alloc_inode(struct super_block *sb)
 	cifs_inode->epoch = 0;
 	spin_lock_init(&cifs_inode->open_file_lock);
 	generate_random_uuid(cifs_inode->lease_key);
+	cifs_inode->symlink_target = NULL;
 
 	/*
 	 * Can not set i_flags here - they get immediately overwritten to zero
@@ -412,7 +413,11 @@ cifs_alloc_inode(struct super_block *sb)
 static void
 cifs_free_inode(struct inode *inode)
 {
-	kmem_cache_free(cifs_inode_cachep, CIFS_I(inode));
+	struct cifsInodeInfo *cinode = CIFS_I(inode);
+
+	if (S_ISLNK(inode->i_mode))
+		kfree(cinode->symlink_target);
+	kmem_cache_free(cifs_inode_cachep, cinode);
 }
 
 static void
@@ -1139,7 +1144,7 @@ const struct inode_operations cifs_file_inode_ops = {
 };
 
 const struct inode_operations cifs_symlink_inode_ops = {
-	.get_link = cifs_get_link,
+	.get_link = simple_get_link,
 	.permission = cifs_permission,
 	.listxattr = cifs_listxattr,
 };
fs/cifs/cifsglob.h +36 -10

92 lines not on this page · raw message

fs/cifs/cifsproto.h +6 -7
index 71386978858e..372ff64a285b 100644
@@ -182,10 +182,9 @@ extern int cifs_unlock_range(struct cifsFileInfo *cfile,
 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
 
 extern void cifs_down_write(struct rw_semaphore *sem);
-extern struct cifsFileInfo *cifs_new_fileinfo(struct cifs_fid *fid,
-					      struct file *file,
-					      struct tcon_link *tlink,
-					      __u32 oplock);
+struct cifsFileInfo *cifs_new_fileinfo(struct cifs_fid *fid, struct file *file,
+				       struct tcon_link *tlink, __u32 oplock,
+				       const char *symlink_target);
 extern int cifs_posix_open(const char *full_path, struct inode **inode,
 			   struct super_block *sb, int mode,
 			   unsigned int f_flags, __u32 *oplock, __u16 *netfid,
@@ -200,9 +199,9 @@ extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr);
 extern struct inode *cifs_iget(struct super_block *sb,
 			       struct cifs_fattr *fattr);
 
-extern int cifs_get_inode_info(struct inode **inode, const char *full_path,
-			       FILE_ALL_INFO *data, struct super_block *sb,
-			       int xid, const struct cifs_fid *fid);
+int cifs_get_inode_info(struct inode **inode, const char *full_path,
+			struct cifs_open_info_data *data, struct super_block *sb, int xid,
+			const struct cifs_fid *fid);
 extern int smb311_posix_get_inode_info(struct inode **pinode, const char *search_path,
 			struct super_block *sb, unsigned int xid);
 extern int cifs_get_inode_info_unix(struct inode **pinode,
fs/cifs/dir.c +11 -19
index 05c78a18ade0..c85816cf2d9b 100644
@@ -165,10 +165,9 @@ check_name(struct dentry *direntry, struct cifs_tcon *tcon)
 
 /* Inode operations in similar order to how they appear in Linux file fs.h */
 
-static int
-cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
-	       struct tcon_link *tlink, unsigned oflags, umode_t mode,
-	       __u32 *oplock, struct cifs_fid *fid)
+static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
+			  struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock,
+			  struct cifs_fid *fid, struct cifs_open_info_data *buf)
 {
 	int rc = -ENOENT;
 	int create_options = CREATE_NOT_DIR;
@@ -177,7 +176,6 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
 	struct cifs_tcon *tcon = tlink_tcon(tlink);
 	const char *full_path;
 	void *page = alloc_dentry_path();
-	FILE_ALL_INFO *buf = NULL;
 	struct inode *newinode = NULL;
 	int disposition;
 	struct TCP_Server_Info *server = tcon->ses->server;
@@ -290,12 +288,6 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
 		goto out;
 	}
 
-	buf = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
-	if (buf == NULL) {
-		rc = -ENOMEM;
-		goto out;
-	}
-
 	/*
 	 * if we're not using unix extensions, see if we need to set
 	 * ATTR_READONLY on the create call
@@ -364,8 +356,7 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
 	{
 #endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
 		/* TODO: Add support for calling POSIX query info here, but passing in fid */
-		rc = cifs_get_inode_info(&newinode, full_path, buf, inode->i_sb,
-					 xid, fid);
+		rc = cifs_get_inode_info(&newinode, full_path, buf, inode->i_sb, xid, fid);
 		if (newinode) {
 			if (server->ops->set_lease_key)
 				server->ops->set_lease_key(newinode, fid);
@@ -402,7 +393,6 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
 	d_add(direntry, newinode);
 
 out:
-	kfree(buf);
 	free_dentry_path(page);
 	return rc;
 
@@ -427,6 +417,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
 	struct cifs_pending_open open;
 	__u32 oplock;
 	struct cifsFileInfo *file_info;
+	struct cifs_open_info_data buf = {};
 
 	if (unlikely(cifs_forced_shutdown(CIFS_SB(inode->i_sb))))
 		return -EIO;
@@ -484,8 +475,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
 	cifs_add_pending_open(&fid, tlink, &open);
 
 	rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode,
-			    &oplock, &fid);
-
+			    &oplock, &fid, &buf);
 	if (rc) {
 		cifs_del_pending_open(&open);
 		goto out;
@@ -510,7 +500,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
 			file->f_op = &cifs_file_direct_ops;
 		}
 
-	file_info = cifs_new_fileinfo(&fid, file, tlink, oplock);
+	file_info = cifs_new_fileinfo(&fid, file, tlink, oplock, buf.symlink_target);
 	if (file_info == NULL) {
 		if (server->ops->close)
 			server->ops->close(xid, tcon, &fid);
@@ -526,6 +516,7 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry,
 	cifs_put_tlink(tlink);
 out_free_xid:
 	free_xid(xid);
+	cifs_free_open_info(&buf);
 	return rc;
 }
 
@@ -547,6 +538,7 @@ int cifs_create(struct user_namespace *mnt_userns, struct inode *inode,
 	struct TCP_Server_Info *server;
 	struct cifs_fid fid;
 	__u32 oplock;
+	struct cifs_open_info_data buf = {};
 
 	cifs_dbg(FYI, "cifs_create parent inode = 0x%p name is: %pd and dentry = 0x%p\n",
 		 inode, direntry, direntry);
@@ -567,11 +559,11 @@ int cifs_create(struct user_namespace *mnt_userns, struct inode *inode,
 	if (server->ops->new_lease_key)
 		server->ops->new_lease_key(&fid);
 
-	rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode,
-			    &oplock, &fid);
+	rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, &oplock, &fid, &buf);
 	if (!rc && server->ops->close)
 		server->ops->close(xid, tcon, &fid);
 
+	cifs_free_open_info(&buf);
 	cifs_put_tlink(tlink);
 out_free_xid:
 	free_xid(xid);
fs/cifs/file.c +22 -19

113 lines not on this page · raw message

fs/cifs/inode.c +102 -68

363 lines not on this page · raw message

fs/cifs/link.c +3 -104

137 lines not on this page · raw message

fs/cifs/readdir.c +2 -0
index 8e060c00c969..6a78bcc51e81 100644
@@ -994,6 +994,8 @@ static int cifs_filldir(char *find_entry, struct file *file,
 		cifs_unix_basic_to_fattr(&fattr,
 					 &((FILE_UNIX_INFO *)find_entry)->basic,
 					 cifs_sb);
+		if (S_ISLNK(fattr.cf_mode))
+			fattr.cf_flags |= CIFS_FATTR_NEED_REVAL;
 		break;
 	case SMB_FIND_FILE_INFO_STANDARD:
 		cifs_std_info_to_fattr(&fattr,
fs/cifs/smb1ops.c +34 -22

105 lines not on this page · raw message

fs/cifs/smb2file.c +106 -21

165 lines not on this page · raw message

fs/cifs/smb2inode.c +87 -82

322 lines not on this page · raw message

fs/cifs/smb2ops.c +23 -86

184 lines not on this page · raw message

fs/cifs/smb2pdu.h +3 -0
index f57881b8464f..1237bb86e93a 100644
@@ -56,6 +56,9 @@ struct smb2_rdma_crypto_transform {
 
 #define COMPOUND_FID 0xFFFFFFFFFFFFFFFFULL
 
+#define SMB2_SYMLINK_STRUCT_SIZE \
+	(sizeof(struct smb2_err_rsp) - 1 + sizeof(struct smb2_symlink_err_rsp))
+
 #define SYMLINK_ERROR_TAG 0x4c4d5953
 
 struct smb2_symlink_err_rsp {
fs/cifs/smb2proto.h +9 -13
index 3f740f24b96a..7818d0b83567 100644
@@ -53,16 +53,12 @@ extern bool smb2_is_valid_oplock_break(char *buffer,
 				       struct TCP_Server_Info *srv);
 extern int smb3_handle_read_data(struct TCP_Server_Info *server,
 				 struct mid_q_entry *mid);
-
-extern void move_smb2_info_to_cifs(FILE_ALL_INFO *dst,
-				   struct smb2_file_all_info *src);
 extern int smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
 				struct cifs_sb_info *cifs_sb, const char *path,
 				__u32 *reparse_tag);
-extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
-				struct cifs_sb_info *cifs_sb,
-				const char *full_path, FILE_ALL_INFO *data,
-				bool *adjust_tz, bool *symlink);
+int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
+			 struct cifs_sb_info *cifs_sb, const char *full_path,
+			 struct cifs_open_info_data *data, bool *adjust_tz, bool *reparse);
 extern int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
 			      const char *full_path, __u64 size,
 			      struct cifs_sb_info *cifs_sb, bool set_alloc);
@@ -95,9 +91,9 @@ extern int smb3_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
 			  struct cifs_sb_info *cifs_sb,
 			  const unsigned char *path, char *pbuf,
 			  unsigned int *pbytes_read);
-extern int smb2_open_file(const unsigned int xid,
-			  struct cifs_open_parms *oparms,
-			  __u32 *oplock, FILE_ALL_INFO *buf);
+int smb2_parse_symlink_response(struct cifs_sb_info *cifs_sb, const struct kvec *iov, char **path);
+int smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
+		   void *buf);
 extern int smb2_unlock_range(struct cifsFileInfo *cfile,
 			     struct file_lock *flock, const unsigned int xid);
 extern int smb2_push_mandatory_locks(struct cifsFileInfo *cfile);
@@ -278,9 +274,9 @@ extern int smb2_query_info_compound(const unsigned int xid,
 				    struct kvec *rsp, int *buftype,
 				    struct cifs_sb_info *cifs_sb);
 /* query path info from the server using SMB311 POSIX extensions*/
-extern int smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
-			struct cifs_sb_info *sb, const char *path, struct smb311_posix_qinfo *qinf,
-			bool *adjust_tx, bool *symlink);
+int smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
+				 struct cifs_sb_info *cifs_sb, const char *full_path,
+				 struct cifs_open_info_data *data, bool *adjust_tz, bool *reparse);
 int posix_info_parse(const void *beg, const void *end,
 		     struct smb2_posix_info_parsed *out);
 int posix_info_sid_size(const void *beg, const void *end);
Signature · 1 line
2.35.1
author maintainer
#7 lore raw

PATCH 7/1073 cifs: fix oops during encryption

In reply to Greg Kroah-Hartman

From: Paulo Alcantara <[email protected]>

[ Upstream commit f7f291e14dde32a07b1f0aa06921d28f875a7b54 ]

When running xfstests against Azure the following oops occurred on an arm64 system

  Unable to handle kernel write to read-only memory at virtual address
  ffff0001221cf000
  Mem abort info:
    ESR = 0x9600004f
    EC = 0x25: DABT (current EL), IL = 32 bits
    SET = 0, FnV = 0
    EA = 0, S1PTW = 0
    FSC = 0x0f: level 3 permission fault
  Data abort info:
    ISV = 0, ISS = 0x0000004f
    CM = 0, WnR = 1
  swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000294f3000
  [ffff0001221cf000] pgd=18000001ffff8003, p4d=18000001ffff8003,
  pud=18000001ff82e003, pmd=18000001ff71d003, pte=00600001221cf787
  Internal error: Oops: 9600004f [#1] PREEMPT SMP
  ...
  pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)
  pc : __memcpy+0x40/0x230
  lr : scatterwalk_copychunks+0xe0/0x200
  sp : ffff800014e92de0
  x29: ffff800014e92de0 x28: ffff000114f9de80 x27: 0000000000000008
  x26: 0000000000000008 x25: ffff800014e92e78 x24: 0000000000000008
  x23: 0000000000000001 x22: 0000040000000000 x21: ffff000000000000
  x20: 0000000000000001 x19: ffff0001037c4488 x18: 0000000000000014
  x17: 235e1c0d6efa9661 x16: a435f9576b6edd6c x15: 0000000000000058
  x14: 0000000000000001 x13: 0000000000000008 x12: ffff000114f2e590
  x11: ffffffffffffffff x10: 0000040000000000 x9 : ffff8000105c3580
  x8 : 2e9413b10000001a x7 : 534b4410fb86b005 x6 : 534b4410fb86b005
  x5 : ffff0001221cf008 x4 : ffff0001037c4490 x3 : 0000000000000001
  x2 : 0000000000000008 x1 : ffff0001037c4488 x0 : ffff0001221cf000
  Call trace:
   __memcpy+0x40/0x230
   scatterwalk_map_and_copy+0x98/0x100
   crypto_ccm_encrypt+0x150/0x180
   crypto_aead_encrypt+0x2c/0x40
   crypt_message+0x750/0x880
   smb3_init_transform_rq+0x298/0x340
   smb_send_rqst.part.11+0xd8/0x180
   smb_send_rqst+0x3c/0x100
   compound_send_recv+0x534/0xbc0
   smb2_query_info_compound+0x32c/0x440
   smb2_set_ea+0x438/0x4c0
   cifs_xattr_set+0x5d4/0x7c0

This is because in scatterwalk_copychunks(), we attempted to write to a buffer (@sign) that was allocated in the stack (vmalloc area) by crypt_message() and thus accessing its remaining 8 (x2) bytes ended up crossing a page boundary.

To simply fix it, we could just pass @sign kmalloc'd from crypt_message() and then we're done. Luckily, we don't seem to pass any other vmalloc'd buffers in smb_rqst::rq_iov...

Instead, let's map the correct pages and offsets from vmalloc buffers as well in cifs_sg_set_buf() and then avoiding such oopses.

---
 fs/cifs/cifsglob.h  |  68 +++++++++++++++++++++
 fs/cifs/cifsproto.h |   4 +-
 fs/cifs/misc.c      |   4 +-
 fs/cifs/smb2ops.c   | 143 +++++++++++++++++++++-----------------------
 4 files changed, 140 insertions(+), 79 deletions(-)
fs/cifs/cifsglob.h +68 -0
index 333022028bb0..b52dca800eac 100644
@@ -13,6 +13,8 @@
 #include <linux/in6.h>
 #include <linux/inet.h>
 #include <linux/slab.h>
+#include <linux/scatterlist.h>
+#include <linux/mm.h>
 #include <linux/mempool.h>
 #include <linux/workqueue.h>
 #include <linux/utsname.h>
@@ -2147,4 +2149,70 @@ static inline void move_cifs_info_to_smb2(struct smb2_file_all_info *dst, const
 	dst->FileNameLength = src->FileNameLength;
 }
 
+static inline unsigned int cifs_get_num_sgs(const struct smb_rqst *rqst,
+					    int num_rqst,
+					    const u8 *sig)
+{
+	unsigned int len, skip;
+	unsigned int nents = 0;
+	unsigned long addr;
+	int i, j;
+
+	/* Assumes the first rqst has a transform header as the first iov.
+	 * I.e.
+	 * rqst[0].rq_iov[0]  is transform header
+	 * rqst[0].rq_iov[1+] data to be encrypted/decrypted
+	 * rqst[1+].rq_iov[0+] data to be encrypted/decrypted
+	 */
+	for (i = 0; i < num_rqst; i++) {
+		/*
+		 * The first rqst has a transform header where the
+		 * first 20 bytes are not part of the encrypted blob.
+		 */
+		for (j = 0; j < rqst[i].rq_nvec; j++) {
+			struct kvec *iov = &rqst[i].rq_iov[j];
+
+			skip = (i == 0) && (j == 0) ? 20 : 0;
+			addr = (unsigned long)iov->iov_base + skip;
+			if (unlikely(is_vmalloc_addr((void *)addr))) {
+				len = iov->iov_len - skip;
+				nents += DIV_ROUND_UP(offset_in_page(addr) + len,
+						      PAGE_SIZE);
+			} else {
+				nents++;
+			}
+		}
+		nents += rqst[i].rq_npages;
+	}
+	nents += DIV_ROUND_UP(offset_in_page(sig) + SMB2_SIGNATURE_SIZE, PAGE_SIZE);
+	return nents;
+}
+
+/* We can not use the normal sg_set_buf() as we will sometimes pass a
+ * stack object as buf.
+ */
+static inline struct scatterlist *cifs_sg_set_buf(struct scatterlist *sg,
+						  const void *buf,
+						  unsigned int buflen)
+{
+	unsigned long addr = (unsigned long)buf;
+	unsigned int off = offset_in_page(addr);
+
+	addr &= PAGE_MASK;
+	if (unlikely(is_vmalloc_addr((void *)addr))) {
+		do {
+			unsigned int len = min_t(unsigned int, buflen, PAGE_SIZE - off);
+
+			sg_set_page(sg++, vmalloc_to_page((void *)addr), len, off);
+
+			off = 0;
+			addr += PAGE_SIZE;
+			buflen -= len;
+		} while (buflen);
+	} else {
+		sg_set_page(sg++, virt_to_page(addr), buflen, off);
+	}
+	return sg;
+}
+
 #endif	/* _CIFS_GLOB_H */
fs/cifs/cifsproto.h +2 -2
index 372ff64a285b..edf6f18ec8b7 100644
@@ -601,8 +601,8 @@ int cifs_alloc_hash(const char *name, struct crypto_shash **shash,
 		    struct sdesc **sdesc);
 void cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc);
 
-extern void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
-				unsigned int *len, unsigned int *offset);
+void rqst_page_get_length(const struct smb_rqst *rqst, unsigned int page,
+			  unsigned int *len, unsigned int *offset);
 struct cifs_chan *
 cifs_ses_find_chan(struct cifs_ses *ses, struct TCP_Server_Info *server);
 int cifs_try_adding_channels(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses);
fs/cifs/misc.c +2 -2
index 3a117e2269a0..1efb5ca9fd80 100644
@@ -1137,8 +1137,8 @@ cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc)
  * @len: Where to store the length for this page:
  * @offset: Where to store the offset for this page
  */
-void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
-				unsigned int *len, unsigned int *offset)
+void rqst_page_get_length(const struct smb_rqst *rqst, unsigned int page,
+			  unsigned int *len, unsigned int *offset)
 {
 	*len = rqst->rq_pagesz;
 	*offset = (page == 0) ? rqst->rq_offset : 0;
fs/cifs/smb2ops.c +68 -75

197 lines not on this page · raw message

Signature · 1 line
2.35.1
author maintainer
#8 lore raw

PATCH 8/1073 arm64: dts: renesas: r8a779g0: Fix HSCIF0 "brg_int" clock

In reply to Greg Kroah-Hartman

From: Geert Uytterhoeven <[email protected]>

[ Upstream commit a4290d407aa9fd174d8053878783d466d3124e38 ]

As serial communication requires a clock signal, the High Speed Serial Communication Interfaces with FIFO (HSCIF) are clocked by a clock that is not affected by Spread Spectrum or Fractional Multiplication.

Hence change the clock input for the HSCIF0 Baud Rate Generator internal clock from the S0D3_PER clock to the SASYNCPERD1 clock (which has the same clock rate), cfr. R-Car V4H Hardware User's Manual rev. 0.54.

---
 arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a779g0.dtsi +1 -1
index 1c15726cff8b..4bd3cb107b38 100644
@@ -87,7 +87,7 @@ hscif0: serial@e6540000 {
 			reg = <0 0xe6540000 0 96>;
 			interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 514>,
-				 <&cpg CPG_CORE R8A779G0_CLK_S0D3_PER>,
+				 <&cpg CPG_CORE R8A779G0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
Signature · 1 line
2.35.1
author maintainer
#9 lore raw

PATCH 9/1073 arm64: dts: qcom: ipq6018-cp01-c1: use BLSPI1 pins

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 4871d3c38893c8a585e3e96364b7fb91cda8322e ]

When BLSPI1 (originally SPI0, later renamed in commit f82c48d46852 ("arm64: dts: qcom: ipq6018: correct QUP peripheral labels")) was added, the device node lacked respective pin configuration assignment.

---
 arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts +2 -0
index 1ba2eca33c7b..6a716c83e5f1 100644
@@ -37,6 +37,8 @@ &blsp1_i2c3 {
 
 &blsp1_spi1 {
 	cs-select = <0>;
+	pinctrl-0 = <&spi_0_pins>;
+	pinctrl-names = "default";
 	status = "okay";
 
 	flash@0 {
Signature · 1 line
2.35.1
author maintainer
#10 lore raw

PATCH 10/1073 arm64: dts: qcom: sm8250-sony-xperia-edo: fix touchscreen bias-disable

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 7ff4a646fae3697b039c6b684786a1e309e8445c ]

The property to disable bias is "bias-disable".

Fixes e76c7e1f15fe ("arm64: dts: qcom: sm8250-edo: Add Samsung touchscreen")
---
 arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi +1 -1
index 5428aab3058d..e4769dcfaad7 100644
@@ -619,7 +619,7 @@ ts_int_default: ts-int-default {
 		pins = "gpio39";
 		function = "gpio";
 		drive-strength = <2>;
-		bias-disabled;
+		bias-disable;
 		input-enable;
 	};
 
Signature · 1 line
2.35.1
author maintainer
#11 lore raw

PATCH 11/1073 arm64: dts: qcom: sdm845-xiaomi-polaris: fix codec pin conf name

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 58c4a0b6f4bdf8c3c2b4aad7f980e4019cc0fc83 ]

Fix typo in the codec's pin name to be configured. Mismatched name caused the pin configuration to be ignored.

---
 arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts +1 -1
index dba7c2693ff5..2611a5c40ba3 100644
@@ -628,7 +628,7 @@ sde_dsi_suspend: sde-dsi-suspend {
 	};
 
 	wcd_intr_default: wcd-intr-default {
-		pins = "goui54";
+		pins = "gpio54";
 		function = "gpio";
 		input-enable;
 		bias-pull-down;
Signature · 1 line
2.35.1
author maintainer
#12 lore raw

PATCH 12/1073 arm64: dts: qcom: msm8996: Add MSM8996 Pro support

In reply to Greg Kroah-Hartman

From: Yassine Oudjana <[email protected]>

[ Upstream commit 8898c9748a872866f8c2973e719b26bf7c6ab64e ]

Qualcomm MSM8996 Pro is a variant of MSM8996 with higher frequencies supported both on CPU and GPU. There are other minor hardware differencies in the CPU and GPU regulators and bus fabrics.

However this results in significant differences between 8996 and 8996 Pro CPU OPP tables. Judging from msm-3.18 there are only few common frequencies supported by both msm8996 and msm8996pro. Rather than hacking the tables for msm8996, split msm8996pro support into a separate file. Later this would allow having additional customizations for the CBF, CPR, retulators, etc.

[DB: dropped all non-CPU-OPP changes]

Fixes 90173a954a22 ("arm64: dts: qcom: msm8996: Add CPU opps")
[DB: Realigned supported-hw to keep compat with current cpufreq driver]
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi    |  82 +++----
 arch/arm64/boot/dts/qcom/msm8996pro.dtsi | 266 +++++++++++++++++++++++
 2 files changed, 307 insertions(+), 41 deletions(-)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8996pro.dtsi
arch/arm64/boot/dts/qcom/msm8996.dtsi +41 -41
index 742eac4ce9b3..41c09895268e 100644
@@ -143,82 +143,82 @@ cluster0_opp: opp-table-cluster0 {
 		/* Nominal fmax for now */
 		opp-307200000 {
 			opp-hz = /bits/ 64 <307200000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-422400000 {
 			opp-hz = /bits/ 64 <422400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-480000000 {
 			opp-hz = /bits/ 64 <480000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-556800000 {
 			opp-hz = /bits/ 64 <556800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-652800000 {
 			opp-hz = /bits/ 64 <652800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-729600000 {
 			opp-hz = /bits/ 64 <729600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-844800000 {
 			opp-hz = /bits/ 64 <844800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-960000000 {
 			opp-hz = /bits/ 64 <960000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1036800000 {
 			opp-hz = /bits/ 64 <1036800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1113600000 {
 			opp-hz = /bits/ 64 <1113600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1190400000 {
 			opp-hz = /bits/ 64 <1190400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1228800000 {
 			opp-hz = /bits/ 64 <1228800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1324800000 {
 			opp-hz = /bits/ 64 <1324800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1401600000 {
 			opp-hz = /bits/ 64 <1401600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1478400000 {
 			opp-hz = /bits/ 64 <1478400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1593600000 {
 			opp-hz = /bits/ 64 <1593600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 	};
@@ -231,127 +231,127 @@ cluster1_opp: opp-table-cluster1 {
 		/* Nominal fmax for now */
 		opp-307200000 {
 			opp-hz = /bits/ 64 <307200000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-403200000 {
 			opp-hz = /bits/ 64 <403200000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-480000000 {
 			opp-hz = /bits/ 64 <480000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-556800000 {
 			opp-hz = /bits/ 64 <556800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-652800000 {
 			opp-hz = /bits/ 64 <652800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-729600000 {
 			opp-hz = /bits/ 64 <729600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-806400000 {
 			opp-hz = /bits/ 64 <806400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-883200000 {
 			opp-hz = /bits/ 64 <883200000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-940800000 {
 			opp-hz = /bits/ 64 <940800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1036800000 {
 			opp-hz = /bits/ 64 <1036800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1113600000 {
 			opp-hz = /bits/ 64 <1113600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1190400000 {
 			opp-hz = /bits/ 64 <1190400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1248000000 {
 			opp-hz = /bits/ 64 <1248000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1324800000 {
 			opp-hz = /bits/ 64 <1324800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1401600000 {
 			opp-hz = /bits/ 64 <1401600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1478400000 {
 			opp-hz = /bits/ 64 <1478400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1555200000 {
 			opp-hz = /bits/ 64 <1555200000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1632000000 {
 			opp-hz = /bits/ 64 <1632000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1708800000 {
 			opp-hz = /bits/ 64 <1708800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1785600000 {
 			opp-hz = /bits/ 64 <1785600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1824000000 {
 			opp-hz = /bits/ 64 <1824000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1920000000 {
 			opp-hz = /bits/ 64 <1920000000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1996800000 {
 			opp-hz = /bits/ 64 <1996800000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-2073600000 {
 			opp-hz = /bits/ 64 <2073600000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 		opp-2150400000 {
 			opp-hz = /bits/ 64 <2150400000>;
-			opp-supported-hw = <0x77>;
+			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
 	};
arch/arm64/boot/dts/qcom/msm8996pro.dtsi new file +266 -0

266 lines not on this page · raw message

Signature · 1 line
2.35.1
author maintainer
#13 lore raw

PATCH 13/1073 arm64: dts: qcom: msm8996: fix supported-hw in cpufreq OPP tables

In reply to Greg Kroah-Hartman

From: Dmitry Baryshkov <[email protected]>

[ Upstream commit 0154caaa2b748e7414a4ec3c6ee60e8f483b2d4f ]

Adjust MSM8996 cpufreq tables according to tables in msm-3.18. Some of the frequencies are not supported on speed bins other than 0. Also other speed bins support intermediate topmost frequencies, not supported on speed bin 0. Implement all these differencies.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 38 ++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 9 deletions(-)
arch/arm64/boot/dts/qcom/msm8996.dtsi +29 -9
index 41c09895268e..24791ed436c5 100644
@@ -203,22 +203,32 @@ opp-1228800000 {
 		};
 		opp-1324800000 {
 			opp-hz = /bits/ 64 <1324800000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x5>;
+			clock-latency-ns = <200000>;
+		};
+		opp-1363200000 {
+			opp-hz = /bits/ 64 <1363200000>;
+			opp-supported-hw = <0x2>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1401600000 {
 			opp-hz = /bits/ 64 <1401600000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x5>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1478400000 {
 			opp-hz = /bits/ 64 <1478400000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
+			clock-latency-ns = <200000>;
+		};
+		opp-1497600000 {
+			opp-hz = /bits/ 64 <1497600000>;
+			opp-supported-hw = <0x04>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1593600000 {
 			opp-hz = /bits/ 64 <1593600000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
 			clock-latency-ns = <200000>;
 		};
 	};
@@ -329,29 +339,39 @@ opp-1785600000 {
 			opp-supported-hw = <0x7>;
 			clock-latency-ns = <200000>;
 		};
+		opp-1804800000 {
+			opp-hz = /bits/ 64 <1804800000>;
+			opp-supported-hw = <0x6>;
+			clock-latency-ns = <200000>;
+		};
 		opp-1824000000 {
 			opp-hz = /bits/ 64 <1824000000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
+			clock-latency-ns = <200000>;
+		};
+		opp-1900800000 {
+			opp-hz = /bits/ 64 <1900800000>;
+			opp-supported-hw = <0x4>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1920000000 {
 			opp-hz = /bits/ 64 <1920000000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
 			clock-latency-ns = <200000>;
 		};
 		opp-1996800000 {
 			opp-hz = /bits/ 64 <1996800000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
 			clock-latency-ns = <200000>;
 		};
 		opp-2073600000 {
 			opp-hz = /bits/ 64 <2073600000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
 			clock-latency-ns = <200000>;
 		};
 		opp-2150400000 {
 			opp-hz = /bits/ 64 <2150400000>;
-			opp-supported-hw = <0x7>;
+			opp-supported-hw = <0x1>;
 			clock-latency-ns = <200000>;
 		};
 	};
Signature · 1 line
2.35.1
author maintainer
#14 lore raw

PATCH 14/1073 arm64: dts: qcom: msm8996: fix GPU OPP table

In reply to Greg Kroah-Hartman

From: Dmitry Baryshkov <[email protected]>

[ Upstream commit 0d440d811e6e2f37093e54db55bc27fe66678170 ]

Fix Adreno OPP table according to the msm-3.18. Enable 624 MHz for the speed bin 3 and 560 MHz for bins 2 and 3.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/qcom/msm8996.dtsi +5 -5
index 24791ed436c5..c8b9d7d60774 100644
@@ -1228,17 +1228,17 @@ gpu_opp_table: opp-table {
 				compatible = "operating-points-v2";
 
 				/*
-				 * 624Mhz and 560Mhz are only available on speed
-				 * bin (1 << 0). All the rest are available on
-				 * all bins of the hardware
+				 * 624Mhz is only available on speed bins 0 and 3.
+				 * 560Mhz is only available on speed bins 0, 2 and 3.
+				 * All the rest are available on all bins of the hardware.
 				 */
 				opp-624000000 {
 					opp-hz = /bits/ 64 <624000000>;
-					opp-supported-hw = <0x01>;
+					opp-supported-hw = <0x09>;
 				};
 				opp-560000000 {
 					opp-hz = /bits/ 64 <560000000>;
-					opp-supported-hw = <0x01>;
+					opp-supported-hw = <0x0d>;
 				};
 				opp-510000000 {
 					opp-hz = /bits/ 64 <510000000>;
Signature · 1 line
2.35.1
author maintainer
#15 lore raw

PATCH 15/1073 ARM: dts: qcom: apq8064: fix coresight compatible

In reply to Greg Kroah-Hartman

From: Luca Weiss <[email protected]>

[ Upstream commit a42b1ee868361f1cb0492f1bdaefb43e0751e468 ]

There's a typo missing the arm, prefix of arm,coresight-etb10. Fix it to make devicetree validation happier.

---
 arch/arm/boot/dts/qcom-apq8064.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom-apq8064.dtsi +1 -1
index ada4c828bf2f..095849423de1 100644
@@ -1580,7 +1580,7 @@ wifi {
 		};
 
 		etb@1a01000 {
-			compatible = "coresight-etb10", "arm,primecell";
+			compatible = "arm,coresight-etb10", "arm,primecell";
 			reg = <0x1a01000 0x1000>;
 
 			clocks = <&rpmcc RPM_QDSS_CLK>;
Signature · 1 line
2.35.1
author maintainer
#16 lore raw

PATCH 16/1073 arm64: dts: qcom: sdm630: fix UART1 pin bias

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 780f836fe071a9e8703fe6a05ae00129acf83391 ]

There is no "bias-no-pull" property. Assume intentions were disabling bias.

---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm630.dtsi +1 -1
index 1bc9091cad2a..12f01815230b 100644
@@ -773,7 +773,7 @@ rx-cts-rts {
 					pins = "gpio17", "gpio18", "gpio19";
 					function = "gpio";
 					drive-strength = <2>;
-					bias-no-pull;
+					bias-disable;
 				};
 			};
 
Signature · 1 line
2.35.1
author maintainer
#17 lore raw

PATCH 17/1073 arm64: dts: qcom: sdm845-cheza: fix AP suspend pin bias

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 9bce41fab14da8f21027dc9847535ef5e22cbe8b ]

There is no "bias-no-pull" property. Assume intentions were disabling bias.

Fixes 79e7739f7b87 ("arm64: dts: qcom: sdm845-cheza: add initial cheza dt")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +2 -2
index b5eb8f7eca1d..b5f11fbcc300 100644
@@ -1436,7 +1436,7 @@ ap_suspend_l_assert: ap_suspend_l_assert {
 		config {
 			pins = "gpio126";
 			function = "gpio";
-			bias-no-pull;
+			bias-disable;
 			drive-strength = <2>;
 			output-low;
 		};
@@ -1446,7 +1446,7 @@ ap_suspend_l_deassert: ap_suspend_l_deassert {
 		config {
 			pins = "gpio126";
 			function = "gpio";
-			bias-no-pull;
+			bias-disable;
 			drive-strength = <2>;
 			output-high;
 		};
Signature · 1 line
2.35.1
author maintainer
#18 lore raw

PATCH 18/1073 arm64: dts: qcom: msm8916: Drop MSS fallback compatible

In reply to Greg Kroah-Hartman

From: Stephan Gerhold <[email protected]>

[ Upstream commit ff02ac621634e82c0c34d02a79d402ae700cdfd0 ]

MSM8916 was originally using the "qcom,q6v5-pil" compatible for the MSS remoteproc. Later it was decided to use SoC-specific compatibles instead, so "qcom,msm8916-mss-pil" is now the preferred compatible.

Commit 60a05ed059a0 ("arm64: dts: qcom: msm8916: Add MSM8916-specific compatibles to SCM/MSS") updated the MSM8916 device tree to make use of the new compatible but still kept the old "qcom,q6v5-pil" as fallback.

This is inconsistent with other SoCs and conflicts with the description in the binding documentation (which says that only one compatible should be present). Also, it has no functional advantage since older kernels could not handle this DT anyway (e.g. "power-domains" in the MSS node is only supported by kernels that also support "qcom,msm8916-mss-pil").

Make this consistent with other SoCs by using only the "qcom,msm8916-mss-pil" compatible.

Fixes 60a05ed059a0 ("arm64: dts: qcom: msm8916: Add MSM8916-specific compatibles to SCM/MSS")
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8916.dtsi +1 -1
index 48bc2e09128d..863a60b63641 100644
@@ -1331,7 +1331,7 @@ bam_dmux_dma: dma-controller@4044000 {
 		};
 
 		mpss: remoteproc@4080000 {
-			compatible = "qcom,msm8916-mss-pil", "qcom,q6v5-pil";
+			compatible = "qcom,msm8916-mss-pil";
 			reg = <0x04080000 0x100>,
 			      <0x04020000 0x040>;
 
Signature · 1 line
2.35.1
author maintainer
#19 lore raw

PATCH 19/1073 arm64: dts: fsd: fix drive strength macros as per FSD HW UM

In reply to Greg Kroah-Hartman

From: Padmanabhan Rajanbabu <[email protected]>

[ Upstream commit 574d6c59daefb51729b0640465f007f6c9600358 ]

Drive strength macros defined for FSD platform is not reflecting actual names and values as per HW UM. FSD SoC pinctrl has following four levels of drive-strength and their corresponding values:
Level-1 <-> 0
Level-2 <-> 1
Level-4 <-> 2
Level-6 <-> 3

The commit 684dac402f21 ("arm64: dts: fsd: Add initial pinctrl support") used drive strength macros defined for Exynos4 SoC family. For some IPs the macros values of Exynos4 matched and worked well, but Exynos4 SoC family drive-strength (names and values) is not exactly matching with FSD SoC.

Fix the drive strength macros to reflect actual names and values given in FSD HW UM.

---
 arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 8 ++++----
 arch/arm64/boot/dts/tesla/fsd-pinctrl.h    | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +4 -4
index d0abb9aa0e9e..4e151d419909 100644
@@ -55,14 +55,14 @@ ufs_rst_n: ufs-rst-n-pins {
 		samsung,pins = "gpf5-0";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_NONE>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV2>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	ufs_refclk_out: ufs-refclk-out-pins {
 		samsung,pins = "gpf5-1";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_NONE>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV2>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 };
 
@@ -239,14 +239,14 @@ pwm0_out: pwm0-out-pins {
 		samsung,pins = "gpb6-1";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV2>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	pwm1_out: pwm1-out-pins {
 		samsung,pins = "gpb6-5";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV2>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c0_bus: hs-i2c0-bus-pins {
arch/arm64/boot/dts/tesla/fsd-pinctrl.h +3 -3
index 6ffbda362493..c397d02208a0 100644
@@ -16,9 +16,9 @@
 #define FSD_PIN_PULL_UP			3
 
 #define FSD_PIN_DRV_LV1			0
-#define FSD_PIN_DRV_LV2			2
-#define FSD_PIN_DRV_LV3			1
-#define FSD_PIN_DRV_LV4			3
+#define FSD_PIN_DRV_LV2			1
+#define FSD_PIN_DRV_LV4			2
+#define FSD_PIN_DRV_LV6			3
 
 #define FSD_PIN_FUNC_INPUT		0
 #define FSD_PIN_FUNC_OUTPUT		1
Signature · 1 line
2.35.1
author maintainer
#20 lore raw

PATCH 20/1073 arm64: dts: fsd: fix drive strength values as per FSD HW UM

In reply to Greg Kroah-Hartman

From: Padmanabhan Rajanbabu <[email protected]>

[ Upstream commit 21f6546e8bf68a847601e2710378e2224bf49704 ]

Drive strength values used for HSI2C, SPI and UART are not reflecting the default values recommended by FSD HW UM.

---
 arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +13 -13
index 4e151d419909..e3852c946352 100644
@@ -253,91 +253,91 @@ hs_i2c0_bus: hs-i2c0-bus-pins {
 		samsung,pins = "gpb0-0", "gpb0-1";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c1_bus: hs-i2c1-bus-pins {
 		samsung,pins = "gpb0-2", "gpb0-3";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c2_bus: hs-i2c2-bus-pins {
 		samsung,pins = "gpb0-4", "gpb0-5";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c3_bus: hs-i2c3-bus-pins {
 		samsung,pins = "gpb0-6", "gpb0-7";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c4_bus: hs-i2c4-bus-pins {
 		samsung,pins = "gpb1-0", "gpb1-1";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c5_bus: hs-i2c5-bus-pins {
 		samsung,pins = "gpb1-2", "gpb1-3";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c6_bus: hs-i2c6-bus-pins {
 		samsung,pins = "gpb1-4", "gpb1-5";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	hs_i2c7_bus: hs-i2c7-bus-pins {
 		samsung,pins = "gpb1-6", "gpb1-7";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	uart0_data: uart0-data-pins {
 		samsung,pins = "gpb7-0", "gpb7-1";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_NONE>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	uart1_data: uart1-data-pins {
 		samsung,pins = "gpb7-4", "gpb7-5";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_NONE>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	spi0_bus: spi0-bus-pins {
 		samsung,pins = "gpb4-0", "gpb4-2", "gpb4-3";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	spi1_bus: spi1-bus-pins {
 		samsung,pins = "gpb4-4", "gpb4-6", "gpb4-7";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 
 	spi2_bus: spi2-bus-pins {
 		samsung,pins = "gpb5-0", "gpb5-2", "gpb5-3";
 		samsung,pin-function = <FSD_PIN_FUNC_2>;
 		samsung,pin-pud = <FSD_PIN_PULL_UP>;
-		samsung,pin-drv = <FSD_PIN_DRV_LV1>;
+		samsung,pin-drv = <FSD_PIN_DRV_LV4>;
 	};
 };
 
Signature · 1 line
2.35.1
author maintainer
#21 lore raw

PATCH 21/1073 memory: renesas-rpc-if: Clear HS bit during hardware initialization

In reply to Greg Kroah-Hartman

From: Cong Dang <[email protected]>

[ Upstream commit 5192481f908e576be42bd39ec12979b79e11f7e0 ]

According to the datasheet, HS bit should be specified to 1 when using DMA transfer. As DMA transfer is not supported, it should be cleared to 0.

Previously, the driver relied on the HS bit being cleared by prior firmware but this is not always the case.

Fix this by ensuring the bit is cleared during hardware initialization.

---
 drivers/memory/renesas-rpc-if.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/memory/renesas-rpc-if.c +3 -0
index 4316988d791a..61c288d40375 100644
@@ -317,6 +317,9 @@ int rpcif_hw_init(struct rpcif *rpc, bool hyperflash)
 	regmap_update_bits(rpc->regmap, RPCIF_PHYCNT, RPCIF_PHYCNT_PHYMEM_MASK,
 			   RPCIF_PHYCNT_PHYMEM(hyperflash ? 3 : 0));
 
+	/* DMA Transfer is not supported */
+	regmap_update_bits(rpc->regmap, RPCIF_PHYCNT, RPCIF_PHYCNT_HS, 0);
+
 	if (rpc->type == RPCIF_RCAR_GEN3)
 		regmap_update_bits(rpc->regmap, RPCIF_PHYCNT,
 				   RPCIF_PHYCNT_STRTIM(7), RPCIF_PHYCNT_STRTIM(7));
Signature · 1 line
2.35.1
author maintainer
#22 lore raw

PATCH 22/1073 objtool, kcsan: Add volatile read/write instrumentation to whitelist

In reply to Greg Kroah-Hartman

From: Marco Elver <[email protected]>

[ Upstream commit 63646fcba5bb4b59a19031c21913f94e46a3d0d4 ]

Adds KCSAN's volatile instrumentation to objtool's uaccess whitelist.

Recent kernel change have shown that this was missing from the uaccess whitelist (since the first upstreamed version of KCSAN):

mm/gup.o: warning: objtool: fault_in_readable+0x101: call to __tsan_volatile_write1() with UACCESS enabled

Fixes 75d75b7a4d54 ("kcsan: Support distinguishing volatile accesses")
---
 tools/objtool/check.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
tools/objtool/check.c +10 -0
index e55fdf952a3a..67afdce3421f 100644
@@ -999,6 +999,16 @@ static const char *uaccess_safe_builtin[] = {
 	"__tsan_read_write4",
 	"__tsan_read_write8",
 	"__tsan_read_write16",
+	"__tsan_volatile_read1",
+	"__tsan_volatile_read2",
+	"__tsan_volatile_read4",
+	"__tsan_volatile_read8",
+	"__tsan_volatile_read16",
+	"__tsan_volatile_write1",
+	"__tsan_volatile_write2",
+	"__tsan_volatile_write4",
+	"__tsan_volatile_write8",
+	"__tsan_volatile_write16",
 	"__tsan_atomic8_load",
 	"__tsan_atomic16_load",
 	"__tsan_atomic32_load",
Signature · 1 line
2.35.1
author maintainer
#23 lore raw

PATCH 23/1073 ARM: dts: stm32: Drop stm32mp15xc.dtsi from Avenger96

In reply to Greg Kroah-Hartman

From: Marek Vasut <[email protected]>

[ Upstream commit 3b835f1b8acef53c8882b25f40f48d7f5982c938 ]

The Avenger96 is populated with STM32MP157A DHCOR SoM, drop the stm32mp15xc.dtsi which should only be included in DTs of devices which are populated with STM32MP15xC/F SoC as the stm32mp15xc.dtsi enables CRYP block not present in the STM32MP15xA/D SoC .

Fixes 7e76f82acd9e1 ("ARM: dts: stm32: Split Avenger96 into DHCOR SoM and Avenger96 board")
---
 arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/stm32mp157a-dhcor-avenger96.dts +0 -1
index 2e3c9fbb4eb3..275167f26fd9 100644
@@ -13,7 +13,6 @@
 /dts-v1/;
 
 #include "stm32mp157.dtsi"
-#include "stm32mp15xc.dtsi"
 #include "stm32mp15xx-dhcor-som.dtsi"
 #include "stm32mp15xx-dhcor-avenger96.dtsi"
 
Signature · 1 line
2.35.1
author maintainer
#24 lore raw

PATCH 24/1073 ARM: dts: stm32: Fix AV96 WLAN regulator gpio property

In reply to Greg Kroah-Hartman

From: Marek Vasut <[email protected]>

[ Upstream commit d5d577e3d50713ad11d98dbdaa48bb494346c26d ]

The WLAN regulator uses 'gpios' property instead of 'gpio' to specify regulator enable GPIO. While the former is also currently handled by the Linux kernel regulator-fixed driver, the later is the correct one per DT bindings. Update the DT to use the later.

Fixes 7dd5cbba42c93 ("ARM: dts: stm32: Enable WiFi on AV96")
---
 arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi +1 -1
index 90933077d66d..b6957cbdeff5 100644
@@ -100,7 +100,7 @@ wlan_pwr: regulator-wlan {
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 
-		gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>;
+		gpio = <&gpioz 3 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
 	};
 };
Signature · 1 line
2.35.1
author maintainer
#25 lore raw

PATCH 25/1073 drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static

In reply to Greg Kroah-Hartman

From: Chen Jiahao <[email protected]>

[ Upstream commit adf85adc2a7199b41e7a4da083bd17274a3d6969 ]

There is a sparse warning shown below:

drivers/soc/ti/knav_qmss_queue.c:70:12: warning: symbol 'knav_acc_firmwares' was not declared. Should it be static?

Since 'knav_acc_firmwares' is only called within knav_qmss_queue.c, mark it as static to fix the warning.

Fixes 96ee19becc3b ("soc: ti: add firmware file name as part of the driver")
---
 drivers/soc/ti/knav_qmss_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +1 -1
index 92af7d1b6f5b..16a6d530a0d4 100644
@@ -67,7 +67,7 @@ static DEFINE_MUTEX(knav_dev_lock);
  * Newest followed by older ones. Search is done from start of the array
  * until a firmware file is found.
  */
-const char *knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"};
+static const char * const knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"};
 
 static bool device_ready;
 bool knav_qmss_device_ready(void)
Signature · 1 line
2.35.1
author maintainer
#26 lore raw

PATCH 26/1073 firmware: ti_sci: Fix polled mode during system suspend

In reply to Greg Kroah-Hartman

From: Georgi Vlaev <[email protected]>

[ Upstream commit b13b2c3e0e4d0854228b5217fa34e145f3ace8ac ]

Commit b9e8a7d950ff ("firmware: ti_sci: Switch transport to polled mode during system suspend") uses read_poll_timeout_atomic() macro in ti_sci_do_xfer() to wait for completion when the system is suspending. The break condition of the macro is set to "true" which will cause it break immediately when evaluated, likely before the TISCI xfer is completed, and always return 0. We want to poll here until "done_state == true".

1) Change the break condition of read_poll_timeout_atomic() to the bool variable "done_state".

2) The read_poll_timeout_atomic() returns 0 if the break condition is met or -ETIMEDOUT if not. Since our break condition has changed to "done_state", we also don't have to check for "!done_state" when evaluating the return value.

Fixes b9e8a7d950ff ("firmware: ti_sci: Switch transport to polled mode during system suspend")
---
 drivers/firmware/ti_sci.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/firmware/ti_sci.c +2 -3
index ebc32bbd9b83..6281e7153b47 100644
@@ -429,15 +429,14 @@ static inline int ti_sci_do_xfer(struct ti_sci_info *info,
 		 * during noirq phase, so we must manually poll the completion.
 		 */
 		ret = read_poll_timeout_atomic(try_wait_for_completion, done_state,
-					       true, 1,
+					       done_state, 1,
 					       info->desc->max_rx_timeout_ms * 1000,
 					       false, &xfer->done);
 	}
 
-	if (ret == -ETIMEDOUT || !done_state) {
+	if (ret == -ETIMEDOUT)
 		dev_err(dev, "Mbox timedout in resp(caller: %pS)\n",
 			(void *)_RET_IP_);
-	}
 
 	/*
 	 * NOTE: we might prefer not to need the mailbox ticker to manage the
Signature · 1 line
2.35.1
author maintainer
#27 lore raw

PATCH 27/1073 arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name

In reply to Greg Kroah-Hartman

From: Marijn Suijten <[email protected]>

[ Upstream commit 02549ba5de0a09a27616496c3512db5af4ad7862 ]

The register address in the node name is shadowing vph_pwr@83, whereas the ADC5_VCOIN register resolves to 0x85. Fix this copy-paste discrepancy.

Fixes 4bf097540506 ("arm64: dts: qcom: pm660: Add VADC and temp alarm nodes")
---
 arch/arm64/boot/dts/qcom/pm660.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/pm660.dtsi +1 -1
index d0eefbb51663..d8c9ece20cd9 100644
@@ -163,7 +163,7 @@ vadc_vph_pwr: vph_pwr@83 {
 				qcom,pre-scaling = <1 3>;
 			};
 
-			vcoin: vcoin@83 {
+			vcoin: vcoin@85 {
 				reg = <ADC5_VCOIN>;
 				qcom,decimation = <1024>;
 				qcom,pre-scaling = <1 3>;
Signature · 1 line
2.35.1
author maintainer
#28 lore raw

PATCH 28/1073 arm64: dts: qcom: sm8250: correct LPASS pin pull down

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 195a0a11d66d6c696cbcf398d6bc3f3a3a462f7c ]

The pull-down property is actually bias-pull-down.

Fixes 3160c1b894d9 ("arm64: dts: qcom: sm8250: add lpass lpi pin controller node")
---
 arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +1 -1
index 052b4dbc1ee4..f4abca3a0843 100644
@@ -2447,7 +2447,7 @@ data {
 					pins = "gpio7";
 					function = "dmic1_data";
 					drive-strength = <2>;
-					pull-down;
+					bias-pull-down;
 					input-enable;
 				};
 			};
Signature · 1 line
2.35.1
author maintainer
#29 lore raw

PATCH 29/1073 arm64: dts: qcom: sc7180-trogdor-homestar: fully configure secondary I2S pins

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 59e787935cfe6f562fbb9117e2df4076eaf810d8 ]

The Trogdor Homestar DTSI adds additional GPIO52 pin to secondary I2S pins ("sec_mi2s_active") and configures it to "mi2s_1" function.

The Trogdor DTSI (which is included by Homestar) configures drive strength and bias for all "sec_mi2s_active" pins, thus the intention was to apply this configuration also to GPIO52 on Homestar.

---
 arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi +6 -0
index 1bd6c7dcd9e9..bfab67f4a7c9 100644
@@ -194,6 +194,12 @@ pinmux {
 		pins = "gpio49", "gpio50", "gpio51", "gpio52";
 		function = "mi2s_1";
 	};
+
+	pinconf {
+		pins = "gpio49", "gpio50", "gpio51", "gpio52";
+		drive-strength = <2>;
+		bias-pull-down;
+	};
 };
 
 &ts_reset_l {
Signature · 1 line
2.35.1
author maintainer
#30 lore raw

PATCH 30/1073 soc: qcom: llcc: make irq truly optional

In reply to Greg Kroah-Hartman

From: Luca Weiss <[email protected]>

[ Upstream commit c882c899ead3545102a4d71b5fbe73b9e4bc2657 ]

The function platform_get_irq prints an error message into the kernel log when the irq isn't found.

Since the interrupt is actually optional and not provided by some SoCs, use platform_get_irq_optional which does not print an error message.

Fixes c081f3060fab ("soc: qcom: Add support to register LLCC EDAC driver")
---
 drivers/soc/qcom/llcc-qcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/llcc-qcom.c +1 -1
index 38d7296315a2..5942417c7c20 100644
@@ -781,7 +781,7 @@ static int qcom_llcc_probe(struct platform_device *pdev)
 	if (ret)
 		goto err;
 
-	drv_data->ecc_irq = platform_get_irq(pdev, 0);
+	drv_data->ecc_irq = platform_get_irq_optional(pdev, 0);
 	if (drv_data->ecc_irq >= 0) {
 		llcc_edac = platform_device_register_data(&pdev->dev,
 						"qcom_llcc_edac", -1, drv_data,
Signature · 1 line
2.35.1
author maintainer
#31 lore raw

PATCH 31/1073 arm64: dts: qcom: sm8150: fix UFS PHY registers

In reply to Greg Kroah-Hartman

From: Johan Hovold <[email protected]>

[ Upstream commit 36a31b3a8d9ba1707a23de8d8dc1ceaef4eda695 ]

The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver.

As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver.

Fixes 3834a2e92229 ("arm64: dts: qcom: sm8150: Add ufs nodes")
---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/qcom/sm8150.dtsi +5 -5
index 916f12b799b7..3df80dde9249 100644
@@ -2038,11 +2038,11 @@ ufs_mem_phy: phy@1d87000 {
 			status = "disabled";
 
 			ufs_mem_phy_lanes: phy@1d87400 {
-				reg = <0 0x01d87400 0 0x108>,
-				      <0 0x01d87600 0 0x1e0>,
-				      <0 0x01d87c00 0 0x1dc>,
-				      <0 0x01d87800 0 0x108>,
-				      <0 0x01d87a00 0 0x1e0>;
+				reg = <0 0x01d87400 0 0x16c>,
+				      <0 0x01d87600 0 0x200>,
+				      <0 0x01d87c00 0 0x200>,
+				      <0 0x01d87800 0 0x16c>,
+				      <0 0x01d87a00 0 0x200>;
 				#phy-cells = <0>;
 			};
 		};
Signature · 1 line
2.35.1
author maintainer
#32 lore raw

PATCH 32/1073 arm64: dts: qcom: sm8250: fix UFS PHY registers

In reply to Greg Kroah-Hartman

From: Johan Hovold <[email protected]>

[ Upstream commit 7f8b37dd4e7bf50160529530d9789b846153df71 ]

The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver.

As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver.

Fixes b7e2fba06622 ("arm64: dts: qcom: sm8250: Add UFS controller and PHY")
---
 arch/arm64/boot/dts/qcom/sm8250.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +5 -5
index f4abca3a0843..7df2abd40525 100644
@@ -2172,11 +2172,11 @@ ufs_mem_phy: phy@1d87000 {
 			status = "disabled";
 
 			ufs_mem_phy_lanes: phy@1d87400 {
-				reg = <0 0x01d87400 0 0x108>,
-				      <0 0x01d87600 0 0x1e0>,
-				      <0 0x01d87c00 0 0x1dc>,
-				      <0 0x01d87800 0 0x108>,
-				      <0 0x01d87a00 0 0x1e0>;
+				reg = <0 0x01d87400 0 0x16c>,
+				      <0 0x01d87600 0 0x200>,
+				      <0 0x01d87c00 0 0x200>,
+				      <0 0x01d87800 0 0x16c>,
+				      <0 0x01d87a00 0 0x200>;
 				#phy-cells = <0>;
 			};
 		};
Signature · 1 line
2.35.1
author maintainer
#33 lore raw

PATCH 33/1073 arm64: dts: qcom: sm8350: fix UFS PHY registers

In reply to Greg Kroah-Hartman

From: Johan Hovold <[email protected]>

[ Upstream commit b3c7839b698cc617e97dd2e4f1eeb4adc280fe58 ]

The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver.

As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver.

Fixes 59c7cf814783 ("arm64: dts: qcom: sm8350: Add UFS nodes")
---
 arch/arm64/boot/dts/qcom/sm8350.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/qcom/sm8350.dtsi +5 -5
index d9b08dfc2980..eace5b2ee381 100644
@@ -2142,11 +2142,11 @@ ufs_mem_phy: phy@1d87000 {
 			status = "disabled";
 
 			ufs_mem_phy_lanes: phy@1d87400 {
-				reg = <0 0x01d87400 0 0x108>,
-				      <0 0x01d87600 0 0x1e0>,
-				      <0 0x01d87c00 0 0x1dc>,
-				      <0 0x01d87800 0 0x108>,
-				      <0 0x01d87a00 0 0x1e0>;
+				reg = <0 0x01d87400 0 0x188>,
+				      <0 0x01d87600 0 0x200>,
+				      <0 0x01d87c00 0 0x200>,
+				      <0 0x01d87800 0 0x188>,
+				      <0 0x01d87a00 0 0x200>;
 				#phy-cells = <0>;
 			};
 		};
Signature · 1 line
2.35.1
author maintainer
#34 lore raw

PATCH 34/1073 arm64: dts: qcom: sm8450: fix UFS PHY registers

In reply to Greg Kroah-Hartman

From: Johan Hovold <[email protected]>

[ Upstream commit 7af949211a0554bbc06163b081fc2cb516674880 ]

The sizes of the UFS PHY register regions are too small and does specifically not cover all registers used by the Linux driver.

As Linux maps these regions as full pages this is currently not an issue on Linux, but let's update the sizes to match the vendor driver.

Fixes 07fa917a335e ("arm64: dts: qcom: sm8450: add ufs nodes")
---
 arch/arm64/boot/dts/qcom/sm8450.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/qcom/sm8450.dtsi +5 -5
index 8a6c0f3e7bb7..ed3e1eff4f58 100644
@@ -3131,11 +3131,11 @@ ufs_mem_phy: phy@1d87000 {
 			status = "disabled";
 
 			ufs_mem_phy_lanes: phy@1d87400 {
-				reg = <0 0x01d87400 0 0x108>,
-				      <0 0x01d87600 0 0x1e0>,
-				      <0 0x01d87c00 0 0x1dc>,
-				      <0 0x01d87800 0 0x108>,
-				      <0 0x01d87a00 0 0x1e0>;
+				reg = <0 0x01d87400 0 0x188>,
+				      <0 0x01d87600 0 0x200>,
+				      <0 0x01d87c00 0 0x200>,
+				      <0 0x01d87800 0 0x188>,
+				      <0 0x01d87a00 0 0x200>;
 				#phy-cells = <0>;
 			};
 		};
Signature · 1 line
2.35.1
author maintainer
#35 lore raw

PATCH 35/1073 arm64: dts: qcom: use GPIO flags for tlmm

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 36c9d012f193747d42af80b634217addd974c522 ]

Use respective GPIO_ACTIVE_LOW/HIGH flags for tlmm GPIOs. Include gpio.h header if this is first usage of that flag.

Stable-dep-of: 76d21ffc5d42 ("arm64: dts: qcom: msm8996: fix sound card reset line polarity")

---
 arch/arm64/boot/dts/qcom/apq8096-ifc6640.dts               | 2 +-
 arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/msm8994.dtsi                      | 3 ++-
 arch/arm64/boot/dts/qcom/msm8996.dtsi                      | 3 ++-
 arch/arm64/boot/dts/qcom/sdm845-db845c.dts                 | 4 ++--
 arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts       | 2 +-
 arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts         | 4 ++--
 arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts       | 2 +-
 arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts           | 2 +-
 arch/arm64/boot/dts/qcom/sm8250-mtp.dts                    | 2 +-
 10 files changed, 14 insertions(+), 12 deletions(-)
arch/arm64/boot/dts/qcom/apq8096-ifc6640.dts +1 -1
index 567b33106556..92f264891d84 100644
@@ -368,7 +368,7 @@ &sdhc2 {
 
 	bus-width = <4>;
 
-	cd-gpios = <&tlmm 38 0x1>;
+	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
 
 	vmmc-supply = <&vreg_l21a_2p95>;
 	vqmmc-supply = <&vreg_l13a_2p95>;
arch/arm64/boot/dts/qcom/msm8994-sony-xperia-kitakami.dtsi +1 -1
index f430d797196f..ff60b7004d26 100644
@@ -471,7 +471,7 @@ &sdhc1 {
 &sdhc2 {
 	status = "okay";
 
-	cd-gpios = <&tlmm 100 0>;
+	cd-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
 	vmmc-supply = <&pm8994_l21>;
 	vqmmc-supply = <&pm8994_l13>;
 };
arch/arm64/boot/dts/qcom/msm8994.dtsi +2 -1
index 8bc6c070e306..86ef0091caff 100644
@@ -6,6 +6,7 @@
 #include <dt-bindings/clock/qcom,gcc-msm8994.h>
 #include <dt-bindings/clock/qcom,mmcc-msm8994.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/power/qcom-rpmpd.h>
 
 / {
@@ -502,7 +503,7 @@ sdhc2: mmc@f98a4900 {
 			pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
 			pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
 
-			cd-gpios = <&tlmm 100 0>;
+			cd-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
 			bus-width = <4>;
 			status = "disabled";
 		};
arch/arm64/boot/dts/qcom/msm8996.dtsi +2 -1
index c8b9d7d60774..d3cf0677ea28 100644
@@ -7,6 +7,7 @@
 #include <dt-bindings/clock/qcom,mmcc-msm8996.h>
 #include <dt-bindings/clock/qcom,rpmcc.h>
 #include <dt-bindings/interconnect/qcom,msm8996.h>
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/power/qcom-rpmpd.h>
 #include <dt-bindings/soc/qcom,apr.h>
 #include <dt-bindings/thermal/thermal.h>
@@ -3357,7 +3358,7 @@ wcd9335: codec@1{
 					interrupt-names = "intr1", "intr2";
 					interrupt-controller;
 					#interrupt-cells = <1>;
-					reset-gpios = <&tlmm 64 0>;
+					reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
 
 					slim-ifc-dev = <&tasha_ifd>;
 
arch/arm64/boot/dts/qcom/sdm845-db845c.dts +2 -2
index c6e2c571b452..b2eddcd87506 100644
@@ -1081,7 +1081,7 @@ &wcd9340{
 	pinctrl-names = "default";
 	clock-names = "extclk";
 	clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
-	reset-gpios = <&tlmm 64 0>;
+	reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
 	vdd-buck-supply = <&vreg_s4a_1p8>;
 	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
 	vdd-tx-supply = <&vreg_s4a_1p8>;
@@ -1255,7 +1255,7 @@ camera@60 {
 		reg = <0x60>;
 
 		// CAM3_RST_N
-		enable-gpios = <&tlmm 21 0>;
+		enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&cam3_default>;
 		gpios = <&tlmm 16 0>,
arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts +1 -1
index 82c27f90d300..0f470cf1ed1c 100644
@@ -546,7 +546,7 @@ &wcd9340{
 	pinctrl-names = "default";
 	clock-names = "extclk";
 	clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
-	reset-gpios = <&tlmm 64 0>;
+	reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
 	vdd-buck-supply = <&vreg_s4a_1p8>;
 	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
 	vdd-tx-supply = <&vreg_s4a_1p8>;
arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts +2 -2
index 2611a5c40ba3..1cc477c30945 100644
@@ -126,7 +126,7 @@ vreg_tp_vddio: vreg-tp-vddio {
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 
-		gpio = <&tlmm 23 0>;
+		gpio = <&tlmm 23 GPIO_ACTIVE_HIGH>;
 		regulator-always-on;
 		regulator-boot-on;
 		enable-active-high;
@@ -712,7 +712,7 @@ &wcd9340 {
 	pinctrl-names = "default";
 	clock-names = "extclk";
 	clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
-	reset-gpios = <&tlmm 64 0>;
+	reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
 	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
 	vdd-buck-supply = <&vreg_s4a_1p8>;
 	vdd-tx-supply = <&vreg_s4a_1p8>;
arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +1 -1
index a7af1bed4312..be59a8ba9c1f 100644
@@ -772,7 +772,7 @@ &wcd9340{
 	pinctrl-names = "default";
 	clock-names = "extclk";
 	clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
-	reset-gpios = <&tlmm 64 0>;
+	reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
 	vdd-buck-supply = <&vreg_s4a_1p8>;
 	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
 	vdd-tx-supply = <&vreg_s4a_1p8>;
arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts +1 -1
index b0315eeb1320..f954fe5cb61a 100644
@@ -704,7 +704,7 @@ &wcd9340{
 	pinctrl-names = "default";
 	clock-names = "extclk";
 	clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
-	reset-gpios = <&tlmm 64 0>;
+	reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
 	vdd-buck-supply = <&vreg_s4a_1p8>;
 	vdd-buck-sido-supply = <&vreg_s4a_1p8>;
 	vdd-tx-supply = <&vreg_s4a_1p8>;
arch/arm64/boot/dts/qcom/sm8250-mtp.dts +1 -1
index 7ab3627cc347..a102aa5efa32 100644
@@ -635,7 +635,7 @@ &soc {
 	wcd938x: codec {
 		compatible = "qcom,wcd9380-codec";
 		#sound-dai-cells = <1>;
-		reset-gpios = <&tlmm 32 0>;
+		reset-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
 		vdd-buck-supply = <&vreg_s4a_1p8>;
 		vdd-rxtx-supply = <&vreg_s4a_1p8>;
 		vdd-io-supply = <&vreg_s4a_1p8>;
Signature · 1 line
2.35.1
author maintainer
#36 lore raw

PATCH 36/1073 arm64: dts: qcom: msm8996: fix sound card reset line polarity

In reply to Greg Kroah-Hartman

From: Dmitry Torokhov <[email protected]>

[ Upstream commit 76d21ffc5d425bf7ea9888652c49d7dbda15f356 ]

When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low". It will become important when wcd9335 driver will be converted to gpiod API that respects declared line polarities.

Fixes f3eb39a55a1f ("arm64: dts: db820c: Add sound card support")
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -1
index d3cf0677ea28..5cf04c350a62 100644
@@ -3358,7 +3358,7 @@ wcd9335: codec@1{
 					interrupt-names = "intr1", "intr2";
 					interrupt-controller;
 					#interrupt-cells = <1>;
-					reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
+					reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
 
 					slim-ifc-dev = <&tasha_ifd>;
 
Signature · 1 line
2.35.1
author maintainer
#37 lore raw

PATCH 37/1073 arm64: dts: qcom: sm8250-mtp: fix reset line polarity

In reply to Greg Kroah-Hartman

From: Dmitry Torokhov <[email protected]>

[ Upstream commit 15d9fcbb3e6e8420c7d1ae331405780c5d9c1c25 ]

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly.

Fixes 36c9d012f193 ("arm64: dts: qcom: use GPIO flags for tlmm")
Fixes 5a263cf629a8 ("arm64: dts: qcom: sm8250-mtp: Add wcd9380 audio codec node")
---
 arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8250-mtp.dts +1 -1
index a102aa5efa32..a05fe468e0b4 100644
@@ -635,7 +635,7 @@ &soc {
 	wcd938x: codec {
 		compatible = "qcom,wcd9380-codec";
 		#sound-dai-cells = <1>;
-		reset-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
 		vdd-buck-supply = <&vreg_s4a_1p8>;
 		vdd-rxtx-supply = <&vreg_s4a_1p8>;
 		vdd-io-supply = <&vreg_s4a_1p8>;
Signature · 1 line
2.35.1
author maintainer
#38 lore raw

PATCH 38/1073 arm64: dts: qcom: sm8250: drop bogus DP PHY clock

In reply to Greg Kroah-Hartman

From: Johan Hovold <[email protected]>

[ Upstream commit bb9f23e46ddcebe1bc68a43a0f7acfc1865a6472 ]

The QMP pipe clock is used by the USB part of the PHY so drop the corresponding properties from the DP child node.

Fixes 5aa0d1becd5b ("arm64: dts: qcom: sm8250: switch usb1 qmp phy to USB3+DP mode")
---
 arch/arm64/boot/dts/qcom/sm8250.dtsi | 3 ---
 1 file changed, 3 deletions(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +0 -3
index 7df2abd40525..ab6c4c354338 100644
@@ -2890,9 +2890,6 @@ dp_phy: dp-phy@88ea200 {
 				      <0 0x088eaa00 0 0x100>;
 				#phy-cells = <0>;
 				#clock-cells = <1>;
-				clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
-				clock-names = "pipe0";
-				clock-output-names = "usb3_phy_pipe_clk_src";
 			};
 		};
 
Signature · 1 line
2.35.1
author maintainer
#39 lore raw

PATCH 39/1073 arm64: dts: qcom: sm6350: drop bogus DP PHY clock

In reply to Greg Kroah-Hartman

From: Johan Hovold <[email protected]>

[ Upstream commit 95fade4016cbd57ee050ab226c8f0483af1753c4 ]

The QMP pipe clock is used by the USB part of the PHY so drop the corresponding properties from the DP child node.

Fixes 23737b9557fe ("arm64: dts: qcom: sm6350: Add USB1 nodes")
---
 arch/arm64/boot/dts/qcom/sm6350.dtsi | 3 ---
 1 file changed, 3 deletions(-)
arch/arm64/boot/dts/qcom/sm6350.dtsi +0 -3
index d06aefdf3d9e..ec64b6a12e20 100644
@@ -1011,9 +1011,6 @@ dp_phy: dp-phy@88ea200 {
 				      <0 0x088eaa00 0 0x100>;
 				#phy-cells = <0>;
 				#clock-cells = <1>;
-				clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
-				clock-names = "pipe0";
-				clock-output-names = "usb3_phy_pipe_clk_src";
 			};
 		};
 
Signature · 1 line
2.35.1
author maintainer
#40 lore raw

PATCH 40/1073 soc: qcom: apr: Add check for idr_alloc and of_property_read_string_index

In reply to Greg Kroah-Hartman

From: Jiasheng Jiang <[email protected]>

[ Upstream commit 6d7860f5750d73da2fa1a1f6c9405058a593fa32 ]

As idr_alloc() and of_property_read_string_index() can return negative numbers, it should be better to check the return value and deal with the exception.
Therefore, it should be better to use goto statement to stop and return error.

---
 drivers/soc/qcom/apr.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/soc/qcom/apr.c +12 -3
index b4046f393575..cd44f17dad3d 100644
@@ -454,11 +454,19 @@ static int apr_add_device(struct device *dev, struct device_node *np,
 	adev->dev.driver = NULL;
 
 	spin_lock(&apr->svcs_lock);
-	idr_alloc(&apr->svcs_idr, svc, svc_id, svc_id + 1, GFP_ATOMIC);
+	ret = idr_alloc(&apr->svcs_idr, svc, svc_id, svc_id + 1, GFP_ATOMIC);
 	spin_unlock(&apr->svcs_lock);
+	if (ret < 0) {
+		dev_err(dev, "idr_alloc failed: %d\n", ret);
+		goto out;
+	}
 
-	of_property_read_string_index(np, "qcom,protection-domain",
-				      1, &adev->service_path);
+	ret = of_property_read_string_index(np, "qcom,protection-domain",
+					    1, &adev->service_path);
+	if (ret < 0) {
+		dev_err(dev, "Failed to read second value of qcom,protection-domain\n");
+		goto out;
+	}
 
 	dev_info(dev, "Adding APR/GPR dev: %s\n", dev_name(&adev->dev));
 
@@ -468,6 +476,7 @@ static int apr_add_device(struct device *dev, struct device_node *np,
 		put_device(&adev->dev);
 	}
 
+out:
 	return ret;
 }
 
Signature · 1 line
2.35.1
author maintainer
#41 lore raw

PATCH 41/1073 arm64: dts: qcom: pm6350: Include header for KEY_POWER

In reply to Greg Kroah-Hartman

From: Marijn Suijten <[email protected]>

[ Upstream commit f6e2d6914c7c095660a9c7c503328eebab1e2557 ]

Make pm6350.dtsi self-contained by including input.h, needed for the KEY_POWER constant used to define the power key.

---
 arch/arm64/boot/dts/qcom/pm6350.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/pm6350.dtsi +1 -0
index ecf9b9919182..68245d78d2b9 100644
@@ -3,6 +3,7 @@
  * Copyright (c) 2021, Luca Weiss <[email protected]>
  */
 
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/spmi/spmi.h>
 
 &spmi_bus {
Signature · 1 line
2.35.1
author maintainer
#42 lore raw

PATCH 42/1073 arm64: dts: qcom: sm6125: fix SDHCI CQE reg names

In reply to Greg Kroah-Hartman

From: Krzysztof Kozlowski <[email protected]>

[ Upstream commit 3de1172624b3c4ca65730bc34333ab493510b3e1 ]

SM6125 comes with SDCC (SDHCI controller) v5, so the second range of registers is cqhci, not core.

---
 arch/arm64/boot/dts/qcom/sm6125.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm6125.dtsi +1 -1
index 8c582a9e4ada..012722408682 100644
@@ -458,7 +458,7 @@ rpm_msg_ram: sram@45f0000 {
 		sdhc_1: mmc@4744000 {
 			compatible = "qcom,sm6125-sdhci", "qcom,sdhci-msm-v5";
 			reg = <0x04744000 0x1000>, <0x04745000 0x1000>;
-			reg-names = "hc", "core";
+			reg-names = "hc", "cqhci";
 
 			interrupts = <GIC_SPI 348 IRQ_TYPE_LEVEL_HIGH>,
 				     <GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.35.1
author maintainer
#43 lore raw

PATCH 43/1073 arm64: dts: renesas: r8a779f0: Fix HSCIF "brg_int" clock

In reply to Greg Kroah-Hartman

From: Wolfram Sang <[email protected]>

[ Upstream commit a5101ef18b4d0751588f61d939694bad183cc240 ]

As serial communication requires a clean clock signal, the High Speed Serial Communication Interfaces with FIFO (HSCIF) are clocked by a clock that is not affected by Spread Spectrum or Fractional Multiplication.

Hence change the clock input for the HSCIF Baud Rate Generator internal clock from the S0D3_PER clock to the SASYNCPERD1 clock (which has the same clock rate), cfr. R-Car S4-8 Hardware User's Manual rev. 0.81.

---
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/renesas/r8a779f0.dtsi +4 -4
index 384817ffa4de..6ee5f0a54b13 100644
@@ -442,7 +442,7 @@ hscif0: serial@e6540000 {
 			reg = <0 0xe6540000 0 0x60>;
 			interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 514>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x31>, <&dmac0 0x30>,
@@ -459,7 +459,7 @@ hscif1: serial@e6550000 {
 			reg = <0 0xe6550000 0 0x60>;
 			interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 515>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x33>, <&dmac0 0x32>,
@@ -476,7 +476,7 @@ hscif2: serial@e6560000 {
 			reg = <0 0xe6560000 0 0x60>;
 			interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 516>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x35>, <&dmac0 0x34>,
@@ -493,7 +493,7 @@ hscif3: serial@e66a0000 {
 			reg = <0 0xe66a0000 0 0x60>;
 			interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 517>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x37>, <&dmac0 0x36>,
Signature · 1 line
2.35.1
author maintainer
#44 lore raw

PATCH 44/1073 arm64: dts: renesas: r8a779f0: Fix SCIF "brg_int" clock

In reply to Greg Kroah-Hartman

From: Wolfram Sang <[email protected]>

[ Upstream commit 64416ef0b0c4d73349035d1b3206eed3d2047ee0 ]

As serial communication requires a clean clock signal, the Serial Communication Interfaces with FIFO (SCIF) are clocked by a clock that is not affected by Spread Spectrum or Fractional Multiplication.

Hence change the clock input for the SCIF Baud Rate Generator internal clock from the S0D3_PER clock to the SASYNCPERD1 clock (which has the same clock rate), cfr. R-Car S4-8 Hardware User's Manual rev. 0.81.

Fixes c62331e8222f ("arm64: dts: renesas: Add Renesas R8A779F0 SoC support")
Fixes 40753144256b ("arm64: dts: renesas: r8a779f0: Add SCIF nodes")
---
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/renesas/r8a779f0.dtsi +4 -4
index 6ee5f0a54b13..d4f3ebfe841a 100644
@@ -522,7 +522,7 @@ scif0: serial@e6e60000 {
 			reg = <0 0xe6e60000 0 64>;
 			interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 702>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3_PER>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x51>, <&dmac0 0x50>,
@@ -539,7 +539,7 @@ scif1: serial@e6e68000 {
 			reg = <0 0xe6e68000 0 64>;
 			interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 703>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3_PER>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x53>, <&dmac0 0x52>,
@@ -556,7 +556,7 @@ scif3: serial@e6c50000 {
 			reg = <0 0xe6c50000 0 64>;
 			interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 704>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3_PER>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x57>, <&dmac0 0x56>,
@@ -573,7 +573,7 @@ scif4: serial@e6c40000 {
 			reg = <0 0xe6c40000 0 64>;
 			interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 705>,
-				 <&cpg CPG_CORE R8A779F0_CLK_S0D3_PER>,
+				 <&cpg CPG_CORE R8A779F0_CLK_SASYNCPERD1>,
 				 <&scif_clk>;
 			clock-names = "fck", "brg_int", "scif_clk";
 			dmas = <&dmac0 0x59>, <&dmac0 0x58>,
Signature · 1 line
2.35.1
author maintainer
#45 lore raw

PATCH 45/1073 arm64: dts: renesas: r9a09g011: Fix unit address format error

In reply to Greg Kroah-Hartman

From: Fabrizio Castro <[email protected]>

[ Upstream commit 278f5015a3deaa2ea0db6070bbc2a8edf2455643 ]

Although the HW User Manual for RZ/V2M states in the "Address Map" section that the interrupt controller is assigned addresses starting from 0x82000000, the memory locations from 0x82000000 0x0x8200FFFF are marked as reserved in the "Interrupt Controller (GIC)" section and are currently not used by the device tree, leading to the below warning:

arch/arm64/boot/dts/renesas/r9a09g011.dtsi:51.38-63.5: Warning (simple_bus_reg): /soc/interrupt-controller@82000000: simple-bus unit address format error, expected "82010000"

Fix the unit address accordingly.

Fixes fb1929b98f2e ("arm64: dts: renesas: Add initial DTSI for RZ/V2M SoC")
---
 arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r9a09g011.dtsi +1 -1
index d4cc5459fbb7..4ce0f3944649 100644
@@ -48,7 +48,7 @@ soc: soc {
 		#size-cells = <2>;
 		ranges;
 
-		gic: interrupt-controller@82000000 {
+		gic: interrupt-controller@82010000 {
 			compatible = "arm,gic-400";
 			#interrupt-cells = <3>;
 			#address-cells = <0>;
Signature · 1 line
2.35.1
author maintainer
#46 lore raw

PATCH 46/1073 dt-bindings: pwm: fix microchip corePWMs pwm-cells

In reply to Greg Kroah-Hartman

From: Conor Dooley <[email protected]>

[ Upstream commit a62d196e89887c029d5aef409135f9a2a8667268 ]

corePWM is capable of inverted operation but the binding requires \#pwm-cells of 2. Expand the binding to support setting the polarity.

Fixes df77f7735786 ("dt-bindings: pwm: add microchip corepwm binding")
---
 Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml +3 -1
index a7fae1772a81..cd8e9a8907f8 100644
@@ -30,7 +30,9 @@ properties:
     maxItems: 1
 
   "#pwm-cells":
-    const: 2
+    enum: [2, 3]
+    description:
+      The only flag supported by the controller is PWM_POLARITY_INVERTED.
 
   microchip,sync-update-mask:
     description: |
Signature · 1 line
2.35.1
author maintainer
#47 lore raw

PATCH 47/1073 arm64: dts: mt7986: fix trng node name

In reply to Greg Kroah-Hartman

From: Frank Wunderlich <[email protected]>

[ Upstream commit 07ce611c705217507c2a036bba8695cbd82c9e36 ]

Binding requires node name to be rng not trng:

trng@1020f000: $nodename:0: 'trng@1020f000' does not match '^rng@[0-9a-f]+$'

---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +1 -1
index e3a407d03551..12c259ec042e 100644
@@ -162,7 +162,7 @@ sgmiisys1: syscon@10070000 {
 			#clock-cells = <1>;
 		};
 
-		trng: trng@1020f000 {
+		trng: rng@1020f000 {
 			compatible = "mediatek,mt7986-rng",
 				     "mediatek,mt7623-rng";
 			reg = <0 0x1020f000 0 0x100>;
Signature · 1 line
2.35.1
author maintainer
#48 lore raw

PATCH 48/1073 arm: dts: spear600: Fix clcd interrupt

In reply to Greg Kroah-Hartman

From: Kory Maincent <[email protected]>

[ Upstream commit 0336e2ce34e7a89832b6c214f924eb7bc58940be ]

Interrupt 12 of the Interrupt controller belongs to the SMI controller, the right one for the display controller is the interrupt 13.

Fixes 8113ba917dfa ("ARM: SPEAr: DT: Update device nodes")
---
 arch/arm/boot/dts/spear600.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/spear600.dtsi +1 -1
index fd41243a0b2c..9d5a04a46b14 100644
@@ -47,7 +47,7 @@ clcd: clcd@fc200000 {
 			compatible = "arm,pl110", "arm,primecell";
 			reg = <0xfc200000 0x1000>;
 			interrupt-parent = <&vic1>;
-			interrupts = <12>;
+			interrupts = <13>;
 			status = "disabled";
 		};
 
Signature · 1 line
2.35.1
author maintainer
#49 lore raw

PATCH 49/1073 soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe

In reply to Greg Kroah-Hartman

From: Zhang Qilong <[email protected]>

[ Upstream commit e961c0f19450fd4a26bd043dd2979990bf12caf6 ]

The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context.

Fixes 41f93af900a2 ("soc: ti: add Keystone Navigator QMSS driver")
---
 drivers/soc/ti/knav_qmss_queue.c | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/ti/knav_qmss_queue.c +1 -0
index 16a6d530a0d4..8fb76908be70 100644
@@ -1785,6 +1785,7 @@ static int knav_queue_probe(struct platform_device *pdev)
 	pm_runtime_enable(&pdev->dev);
 	ret = pm_runtime_resume_and_get(&pdev->dev);
 	if (ret < 0) {
+		pm_runtime_disable(&pdev->dev);
 		dev_err(dev, "Failed to enable QMSS\n");
 		return ret;
 	}
Signature · 1 line
2.35.1
author maintainer
#50 lore raw

PATCH 50/1073 soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe

In reply to Greg Kroah-Hartman

From: Zhang Qilong <[email protected]>

[ Upstream commit 69460e68eb662064ab4188d4e129ff31c1f23ed9 ]

The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context.

Fixes 984aa6dbf4ca ("OMAP3: PM: Adding smartreflex driver support.")
---
 drivers/soc/ti/smartreflex.c | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/ti/smartreflex.c +1 -0
index ad2bb72e640c..6a389a6444f3 100644
@@ -932,6 +932,7 @@ static int omap_sr_probe(struct platform_device *pdev)
 err_debugfs:
 	debugfs_remove_recursive(sr_info->dbg_dir);
 err_list_del:
+	pm_runtime_disable(&pdev->dev);
 	list_del(&sr_info->node);
 	clk_unprepare(sr_info->fck);
 
Signature · 1 line
2.35.1
author maintainer
#51 lore raw

PATCH 51/1073 arm64: mm: kfence: only handle translation faults

In reply to Greg Kroah-Hartman

From: Mark Rutland <[email protected]>

[ Upstream commit 0bb1fbffc631064db567ccaeb9ed6b6df6342b66 ]

Alexander noted that KFENCE only expects to handle faults from invalid page table entries (i.e. translation faults), but arm64's fault handling logic will call kfence_handle_page_fault() for other types of faults, including alignment faults caused by unaligned atomics. This has the unfortunate property of causing those other faults to be reported as "KFENCE: use-after-free", which is misleading and hinders debugging.

Fix this by only forwarding unhandled translation faults to the KFENCE code, similar to what x86 does already.

Alexander has verified that this passes all the tests in the KFENCE test suite and avoids bogus reports on misaligned atomics.

---
 arch/arm64/mm/fault.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm64/mm/fault.c +7 -1
index c33f1fad2745..89628bd370d9 100644
@@ -353,6 +353,11 @@ static bool is_el1_mte_sync_tag_check_fault(unsigned long esr)
 	return false;
 }
 
+static bool is_translation_fault(unsigned long esr)
+{
+	return (esr & ESR_ELx_FSC_TYPE) == ESR_ELx_FSC_FAULT;
+}
+
 static void __do_kernel_fault(unsigned long addr, unsigned long esr,
 			      struct pt_regs *regs)
 {
@@ -385,7 +390,8 @@ static void __do_kernel_fault(unsigned long addr, unsigned long esr,
 	} else if (addr < PAGE_SIZE) {
 		msg = "NULL pointer dereference";
 	} else {
-		if (kfence_handle_page_fault(addr, esr & ESR_ELx_WNR, regs))
+		if (is_translation_fault(esr) &&
+		    kfence_handle_page_fault(addr, esr & ESR_ELx_WNR, regs))
 			return;
 
 		msg = "paging request";
Signature · 1 line
2.35.1
author maintainer
#52 lore raw

PATCH 52/1073 perf: arm_dsu: Fix hotplug callback leak in dsu_pmu_init()

In reply to Greg Kroah-Hartman

From: Yuan Can <[email protected]>

[ Upstream commit facafab7611f7b872c6b9eeaff53461ef11f482e ]

dsu_pmu_init() won't remove the callback added by cpuhp_setup_state_multi() when platform_driver_register() failed. Remove the callback by cpuhp_remove_multi_state() in fail path.

Similar to the handling of arm_ccn_init() in commit 26242b330093 ("bus:
arm-ccn: Prevent hotplug callback leak")

---
 drivers/perf/arm_dsu_pmu.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/perf/arm_dsu_pmu.c +5 -1
index a36698a90d2f..54b8ba032c78 100644
@@ -858,7 +858,11 @@ static int __init dsu_pmu_init(void)
 	if (ret < 0)
 		return ret;
 	dsu_pmu_cpuhp_state = ret;
-	return platform_driver_register(&dsu_pmu_driver);
+	ret = platform_driver_register(&dsu_pmu_driver);
+	if (ret)
+		cpuhp_remove_multi_state(dsu_pmu_cpuhp_state);
+
+	return ret;
 }
 
 static void __exit dsu_pmu_exit(void)
Signature · 1 line
2.35.1
author maintainer
#53 lore raw

PATCH 53/1073 drivers: perf: marvell_cn10k: Fix hotplug callback leak in tad_pmu_init()

In reply to Greg Kroah-Hartman

From: Yuan Can <[email protected]>

[ Upstream commit 973ae93d80d9d262f695eb485a1902b74c4b9098 ]

tad_pmu_init() won't remove the callback added by cpuhp_setup_state_multi() when platform_driver_register() failed. Remove the callback by cpuhp_remove_multi_state() in fail path.

Similar to the handling of arm_ccn_init() in commit 26242b330093 ("bus:
arm-ccn: Prevent hotplug callback leak")

Fixes 036a7584bede ("drivers: perf: Add LLC-TAD perf counter support")
---
 drivers/perf/marvell_cn10k_tad_pmu.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/perf/marvell_cn10k_tad_pmu.c +5 -1
index 69c3050a4348..a1166afb3702 100644
@@ -408,7 +408,11 @@ static int __init tad_pmu_init(void)
 	if (ret < 0)
 		return ret;
 	tad_pmu_cpuhp_state = ret;
-	return platform_driver_register(&tad_pmu_driver);
+	ret = platform_driver_register(&tad_pmu_driver);
+	if (ret)
+		cpuhp_remove_multi_state(tad_pmu_cpuhp_state);
+
+	return ret;
 }
 
 static void __exit tad_pmu_exit(void)
Signature · 1 line
2.35.1
author maintainer
#54 lore raw

PATCH 54/1073 perf/arm_dmc620: Fix hotplug callback leak in dmc620_pmu_init()

In reply to Greg Kroah-Hartman

From: Shang XiaoJing <[email protected]>

[ Upstream commit d9f564c966e63925aac4ba273a9319d7fb6f4b4e ]

dmc620_pmu_init() won't remove the callback added by cpuhp_setup_state_multi() when platform_driver_register() failed. Remove the callback by cpuhp_remove_multi_state() in fail path.

Similar to the handling of arm_ccn_init() in commit 26242b330093 ("bus:
arm-ccn: Prevent hotplug callback leak")

Fixes 53c218da220c ("driver/perf: Add PMU driver for the ARM DMC-620 memory controller")
---
 drivers/perf/arm_dmc620_pmu.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/perf/arm_dmc620_pmu.c +7 -1
index 280a6ae3e27c..54aa4658fb36 100644
@@ -725,6 +725,8 @@ static struct platform_driver dmc620_pmu_driver = {
 
 static int __init dmc620_pmu_init(void)
 {
+	int ret;
+
 	cpuhp_state_num = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN,
 				      DMC620_DRVNAME,
 				      NULL,
@@ -732,7 +734,11 @@ static int __init dmc620_pmu_init(void)
 	if (cpuhp_state_num < 0)
 		return cpuhp_state_num;
 
-	return platform_driver_register(&dmc620_pmu_driver);
+	ret = platform_driver_register(&dmc620_pmu_driver);
+	if (ret)
+		cpuhp_remove_multi_state(cpuhp_state_num);
+
+	return ret;
 }
 
 static void __exit dmc620_pmu_exit(void)
Signature · 1 line
2.35.1
author maintainer
#55 lore raw

PATCH 55/1073 perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()

In reply to Greg Kroah-Hartman

From: Shang XiaoJing <[email protected]>

[ Upstream commit 6f2d566b46436a50a80d6445e82879686b89588c ]

arm_smmu_pmu_init() won't remove the callback added by cpuhp_setup_state_multi() when platform_driver_register() failed. Remove the callback by cpuhp_remove_multi_state() in fail path.

Similar to the handling of arm_ccn_init() in commit 26242b330093 ("bus:
arm-ccn: Prevent hotplug callback leak")

---
 drivers/perf/arm_smmuv3_pmu.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/perf/arm_smmuv3_pmu.c +7 -1
index 00d4c45a8017..25a269d431e4 100644
@@ -959,6 +959,8 @@ static struct platform_driver smmu_pmu_driver = {
 
 static int __init arm_smmu_pmu_init(void)
 {
+	int ret;
+
 	cpuhp_state_num = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN,
 						  "perf/arm/pmcg:online",
 						  NULL,
@@ -966,7 +968,11 @@ static int __init arm_smmu_pmu_init(void)
 	if (cpuhp_state_num < 0)
 		return cpuhp_state_num;
 
-	return platform_driver_register(&smmu_pmu_driver);
+	ret = platform_driver_register(&smmu_pmu_driver);
+	if (ret)
+		cpuhp_remove_multi_state(cpuhp_state_num);
+
+	return ret;
 }
 module_init(arm_smmu_pmu_init);
 
Signature · 1 line
2.35.1
author maintainer
#56 lore raw

PATCH 56/1073 arm64: dts: ti: k3-am65-main: Drop dma-coherent in crypto node

In reply to Greg Kroah-Hartman

From: Jayesh Choudhary <[email protected]>

[ Upstream commit b86833ab3653dbb0dc453eec4eef8615e63de4e2 ]

crypto driver itself is not dma-coherent. So drop it.

Fixes b366b2409c97 ("arm64: dts: ti: k3-am6: Add crypto accelarator node")
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/ti/k3-am65-main.dtsi +0 -1
index 8919fede3cd7..ef960386c62c 100644
@@ -120,7 +120,6 @@ crypto: crypto@4e00000 {
 		dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>,
 				<&main_udmap 0x4001>;
 		dma-names = "tx", "rx1", "rx2";
-		dma-coherent;
 
 		rng: rng@4e10000 {
 			compatible = "inside-secure,safexcel-eip76";
Signature · 1 line
2.35.1
author maintainer
#57 lore raw

PATCH 57/1073 arm64: dts: ti: k3-j721e-main: Drop dma-coherent in crypto node

In reply to Greg Kroah-Hartman

From: Jayesh Choudhary <[email protected]>

[ Upstream commit 26c5012403f3f1fd3bf8f7d3389ee539ae5cc162 ]

crypto driver itself is not dma-coherent. So drop it.

Fixes 8ebcaaae8017 ("arm64: dts: ti: k3-j721e-main: Add crypto accelerator node")
---
 arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi +0 -1
index 43b6cf5791ee..75789c0f82bd 100644
@@ -337,7 +337,6 @@ main_crypto: crypto@4e00000 {
 		dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>,
 				<&main_udmap 0x4001>;
 		dma-names = "tx", "rx1", "rx2";
-		dma-coherent;
 
 		rng: rng@4e10000 {
 			compatible = "inside-secure,safexcel-eip76";
Signature · 1 line
2.35.1
author maintainer
#58 lore raw

PATCH 58/1073 arm64: dts: ti: k3-j721s2: Fix the interrupt ranges property for main & wkup gpio intr

In reply to Greg Kroah-Hartman

From: Keerthy <[email protected]>

[ Upstream commit b8aa36c22da7d64c5a5d89ccb4a2abb9aeaab2e3 ]

The parent's input irq number is wrongly subtracted with 32 instead of using the exact numbers in:

https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j721s2/interrupt_cfg.html

The GPIO interrupts are not working because of that. The toggling works fine but interrupts are not firing. Fix the parent's input irq that specifies the base for parent irq.

Tested for MAIN_GPIO0_6 interrupt on the j721s2 EVM.

Fixes b8545f9d3a54 ("arm64: dts: ti: Add initial support for J721S2 SoC")
---
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi       | 2 +-
 arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +1 -1
index 34e7d577ae13..c89f28235812 100644
@@ -60,7 +60,7 @@ main_gpio_intr: interrupt-controller@a00000 {
 		#interrupt-cells = <1>;
 		ti,sci = <&sms>;
 		ti,sci-dev-id = <148>;
-		ti,interrupt-ranges = <8 360 56>;
+		ti,interrupt-ranges = <8 392 56>;
 	};
 
 	main_pmx0: pinctrl@11c000 {
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +1 -1
index 4d1bfabd1313..f0644851602c 100644
@@ -65,7 +65,7 @@ wkup_gpio_intr: interrupt-controller@42200000 {
 		#interrupt-cells = <1>;
 		ti,sci = <&sms>;
 		ti,sci-dev-id = <125>;
-		ti,interrupt-ranges = <16 928 16>;
+		ti,interrupt-ranges = <16 960 16>;
 	};
 
 	mcu_conf: syscon@40f00000 {
Signature · 1 line
2.35.1
author maintainer
#59 lore raw

PATCH 59/1073 ARM: dts: nuvoton: Remove bogus unit addresses from fixed-partition nodes

In reply to Greg Kroah-Hartman

From: Jonathan Neuschäfer <[email protected]>

[ Upstream commit ea3ce4cf076ba11bb591c8013c5315136cae52c8 ]

The unit addresses do not correspond to the nodes' reg properties, because they don't have any.

Fixes e42b650f828d ("ARM: dts: nuvoton: Add new device nodes to NPCM750 EVB")
Fixes ee33e2fb3d70 ("ARM: dts: nuvoton: Add Quanta GBS BMC Device Tree")
Fixes 59f5abe09f0a ("ARM: dts: nuvoton: Add Quanta GSJ BMC")
Fixes 14579c76f5ca ("ARM: dts: nuvoton: Add Fii Kudo system")
---
 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts            | 2 +-
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts            | 2 +-
 arch/arm/boot/dts/nuvoton-npcm730-kudo.dts           | 6 +++---
 arch/arm/boot/dts/nuvoton-npcm750-evb.dts            | 4 ++--
 arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts | 6 +++---
 5 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts +1 -1
index d10669fcd527..9e9eba8bad5e 100644
@@ -366,7 +366,7 @@ flash@0 {
 		spi-max-frequency = <20000000>;
 		spi-rx-bus-width = <2>;
 		label = "bmc";
-		partitions@80000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +1 -1
index 491606c4f044..2a394cc15284 100644
@@ -142,7 +142,7 @@ flash@0 {
 		reg = <0>;
 		spi-rx-bus-width = <2>;
 
-		partitions@80000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
arch/arm/boot/dts/nuvoton-npcm730-kudo.dts +3 -3
index a0c2d7652625..f7b38bee039b 100644
@@ -388,7 +388,7 @@ flash@0 {
 		spi-max-frequency = <5000000>;
 		spi-rx-bus-width = <2>;
 		label = "bmc";
-		partitions@80000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -422,7 +422,7 @@ flash@1 {
 		reg = <1>;
 		spi-max-frequency = <5000000>;
 		spi-rx-bus-width = <2>;
-		partitions@88000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -447,7 +447,7 @@ flash@0 {
 		reg = <0>;
 		spi-max-frequency = <5000000>;
 		spi-rx-bus-width = <2>;
-		partitions@A0000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
arch/arm/boot/dts/nuvoton-npcm750-evb.dts +2 -2
index 3dad32834e5e..f53d45fa1de8 100644
@@ -74,7 +74,7 @@ flash@0 {
 		spi-rx-bus-width = <2>;
 		reg = <0>;
 		spi-max-frequency = <5000000>;
-		partitions@80000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -135,7 +135,7 @@ flash@0 {
 		spi-rx-bus-width = <2>;
 		reg = <0>;
 		spi-max-frequency = <5000000>;
-		partitions@A0000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts +3 -3
index 132e702281fc..87359ab05db3 100644
@@ -107,7 +107,7 @@ flash@0 {
 		reg = <0>;
 		spi-rx-bus-width = <2>;
 
-		partitions@80000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -146,7 +146,7 @@ flash@1 {
 		reg = <1>;
 		npcm,fiu-rx-bus-width = <2>;
 
-		partitions@88000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -173,7 +173,7 @@ flash@0 {
 		reg = <0>;
 		spi-rx-bus-width = <2>;
 
-		partitions@A0000000 {
+		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
Signature · 1 line
2.35.1
author maintainer
#60 lore raw

PATCH 60/1073 arm64: dts: mediatek: mt8195: Fix CPUs capacity-dmips-mhz

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 513c43328b189874fdfee3ae99cac81e5502e7f7 ]

The capacity-dmips-mhz parameter was miscalculated: this SoC runs the first (Cortex-A55) cluster at a maximum of 2000MHz and the second (Cortex-A78) cluster at a maximum of 3000MHz.

In order to calculate the right capacity-dmips-mhz, the following test was performed:
1. CPUFREQ governor was set to 'performance' on both clusters
2. Ran dhrystone with 500000000 iterations for 10 times on each cluster
3. Calculate the mean result for each cluster
4. Calculate DMIPS/MHz: dmips_mhz = dmips_per_second / cpu_mhz
5. Scale results to 1024:
result_c0 = (dmips_mhz_c0 - min_dmips_mhz(c0, c1)) /

               (max_dmips_mhz(c0, c1) - min_dmips_mhz(c0, c1)) * 1024

The mean results for this SoC are:
Cluster 0 (LITTLE): 11990400 Dhry/s
Cluster 1 (BIG): 59809036 Dhry/s

The calculated scaled results are:
Cluster 0: 307,934312801831 (rounded to 308)
Cluster 1: 1024

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +4 -4
index 066c14989708..e694ddb74f7d 100644
@@ -27,7 +27,7 @@ cpu0: cpu@0 {
 			reg = <0x000>;
 			enable-method = "psci";
 			clock-frequency = <1701000000>;
-			capacity-dmips-mhz = <578>;
+			capacity-dmips-mhz = <308>;
 			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
 			next-level-cache = <&l2_0>;
 			#cooling-cells = <2>;
@@ -39,7 +39,7 @@ cpu1: cpu@100 {
 			reg = <0x100>;
 			enable-method = "psci";
 			clock-frequency = <1701000000>;
-			capacity-dmips-mhz = <578>;
+			capacity-dmips-mhz = <308>;
 			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
 			next-level-cache = <&l2_0>;
 			#cooling-cells = <2>;
@@ -51,7 +51,7 @@ cpu2: cpu@200 {
 			reg = <0x200>;
 			enable-method = "psci";
 			clock-frequency = <1701000000>;
-			capacity-dmips-mhz = <578>;
+			capacity-dmips-mhz = <308>;
 			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
 			next-level-cache = <&l2_0>;
 			#cooling-cells = <2>;
@@ -63,7 +63,7 @@ cpu3: cpu@300 {
 			reg = <0x300>;
 			enable-method = "psci";
 			clock-frequency = <1701000000>;
-			capacity-dmips-mhz = <578>;
+			capacity-dmips-mhz = <308>;
 			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
 			next-level-cache = <&l2_0>;
 			#cooling-cells = <2>;
Signature · 1 line
2.35.1
author maintainer
#61 lore raw

PATCH 61/1073 arm64: dts: mt7896a: Fix unit_address_vs_reg warning for oscillator

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 7898d047b1eb2bec2622668cd70181442a580c6d ]

Rename the oscillator fixed-clock to oscillator-40m and remove the unit address to fix warnings.

arch/arm64/boot/dts/mediatek/mt7986a.dtsi:17.23-22.4: Warning (unit_address_vs_reg): /oscillator@0: node has a unit name, but no reg or ranges property

Fixes 1f9986b258c2 ("arm64: dts: mediatek: add clock support for mt7986a")
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +1 -1
index 12c259ec042e..25b297bbb1b0 100644
@@ -13,7 +13,7 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
-	clk40m: oscillator@0 {
+	clk40m: oscillator-40m {
 		compatible = "fixed-clock";
 		clock-frequency = <40000000>;
 		#clock-cells = <0>;
Signature · 1 line
2.35.1
author maintainer
#62 lore raw

PATCH 62/1073 arm64: dts: mt6779: Fix devicetree build warnings

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 4d759c524c15dc4151e40b9e3f368147fda7b789 ]

Rename fixed-clock oscillators to oscillator-26m and oscillator-32k and remove the unit address to fix the unit_address_vs_reg warning; fix the unit address for interrupt and intpol controllers by removing a leading zero in their unit address.

This commit fixes the following warnings:

(unit_address_vs_reg): /oscillator@0: node has a unit name, but no reg or ranges property
(unit_address_vs_reg): /oscillator@1: node has a unit name, but no reg or ranges property
(simple_bus_reg): /soc/interrupt-controller@0c000000: simple-bus unit address format error, expected "c000000" (simple_bus_reg): /soc/intpol-controller@0c53a650: simple-bus unit address format error, expected "c53a650"

---
 arch/arm64/boot/dts/mediatek/mt6779.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/mediatek/mt6779.dtsi +4 -4
index 9bdf5145966c..dde9ce137b4f 100644
@@ -88,14 +88,14 @@ pmu {
 		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW 0>;
 	};
 
-	clk26m: oscillator@0 {
+	clk26m: oscillator-26m {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <26000000>;
 		clock-output-names = "clk26m";
 	};
 
-	clk32k: oscillator@1 {
+	clk32k: oscillator-32k {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <32768>;
@@ -117,7 +117,7 @@ soc {
 		compatible = "simple-bus";
 		ranges;
 
-		gic: interrupt-controller@0c000000 {
+		gic: interrupt-controller@c000000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <4>;
 			interrupt-parent = <&gic>;
@@ -138,7 +138,7 @@ ppi_cluster1: interrupt-partition-1 {
 
 		};
 
-		sysirq: intpol-controller@0c53a650 {
+		sysirq: intpol-controller@c53a650 {
 			compatible = "mediatek,mt6779-sysirq",
 				     "mediatek,mt6577-sysirq";
 			interrupt-controller;
Signature · 1 line
2.35.1
author maintainer
#63 lore raw

PATCH 63/1073 arm64: dts: mt2712e: Fix unit_address_vs_reg warning for oscillators

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit e4495a0a8b3d84816c9a46edf3ce060bbf267475 ]

Rename the fixed-clock oscillators to remove the unit address.

This solves unit_address_vs_reg warnings.

Fixes 5d4839709c8e ("arm64: dts: mt2712: Add clock controller device nodes")
---
 arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
arch/arm64/boot/dts/mediatek/mt2712e.dtsi +10 -10
index 4797537cb368..dcd3df8eb4da 100644
@@ -160,70 +160,70 @@ sys_clk: dummyclk {
 		#clock-cells = <0>;
 	};
 
-	clk26m: oscillator@0 {
+	clk26m: oscillator-26m {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <26000000>;
 		clock-output-names = "clk26m";
 	};
 
-	clk32k: oscillator@1 {
+	clk32k: oscillator-32k {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <32768>;
 		clock-output-names = "clk32k";
 	};
 
-	clkfpc: oscillator@2 {
+	clkfpc: oscillator-50m {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <50000000>;
 		clock-output-names = "clkfpc";
 	};
 
-	clkaud_ext_i_0: oscillator@3 {
+	clkaud_ext_i_0: oscillator-aud0 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <6500000>;
 		clock-output-names = "clkaud_ext_i_0";
 	};
 
-	clkaud_ext_i_1: oscillator@4 {
+	clkaud_ext_i_1: oscillator-aud1 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <196608000>;
 		clock-output-names = "clkaud_ext_i_1";
 	};
 
-	clkaud_ext_i_2: oscillator@5 {
+	clkaud_ext_i_2: oscillator-aud2 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <180633600>;
 		clock-output-names = "clkaud_ext_i_2";
 	};
 
-	clki2si0_mck_i: oscillator@6 {
+	clki2si0_mck_i: oscillator-i2s0 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <30000000>;
 		clock-output-names = "clki2si0_mck_i";
 	};
 
-	clki2si1_mck_i: oscillator@7 {
+	clki2si1_mck_i: oscillator-i2s1 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <30000000>;
 		clock-output-names = "clki2si1_mck_i";
 	};
 
-	clki2si2_mck_i: oscillator@8 {
+	clki2si2_mck_i: oscillator-i2s2 {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <30000000>;
 		clock-output-names = "clki2si2_mck_i";
 	};
 
-	clktdmin_mclk_i: oscillator@9 {
+	clktdmin_mclk_i: oscillator-mclk {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <30000000>;
Signature · 1 line
2.35.1
author maintainer
#64 lore raw

PATCH 64/1073 arm64: dts: mt2712e: Fix unit address for pinctrl node

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 1d4516f53a611b362db7ba7a8889923d469f57e1 ]

The unit address for the pinctrl node is (0x)1000b000 and not (0x)10005000, which is the syscfg_pctl_a address instead.

This fixes the following warning:
arch/arm64/boot/dts/mediatek/mt2712e.dtsi:264.40-267.4: Warning (unique_unit_address): /syscfg_pctl_a@10005000: duplicate unit-address (also used in node /pinctrl@10005000)

Fixes f0c64340b748 ("arm64: dts: mt2712: add pintcrl device node.")
---
 arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt2712e.dtsi +1 -1
index dcd3df8eb4da..2ebefd144d6f 100644
@@ -266,7 +266,7 @@ syscfg_pctl_a: syscfg_pctl_a@10005000 {
 		reg = <0 0x10005000 0 0x1000>;
 	};
 
-	pio: pinctrl@10005000 {
+	pio: pinctrl@1000b000 {
 		compatible = "mediatek,mt2712-pinctrl";
 		reg = <0 0x1000b000 0 0x1000>;
 		mediatek,pctl-regmap = <&syscfg_pctl_a>;
Signature · 1 line
2.35.1
author maintainer
#65 lore raw

PATCH 65/1073 arm64: dts: mt2712-evb: Fix vproc fixed regulators unit names

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 377063156893bf6c088309ac799fe5c6dce2822d ]

Update the names to regulator-vproc-buck{0,1} to fix unit_addres_vs_reg warnings for those.

Fixes f75dd8bdd344 ("arm64: dts: mediatek: add mt2712 cpufreq related device nodes")
---
 arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt2712-evb.dts +2 -2
index 9b1af9c80130..638908773706 100644
@@ -26,14 +26,14 @@ chosen {
 		stdout-path = "serial0:921600n8";
 	};
 
-	cpus_fixed_vproc0: fixedregulator@0 {
+	cpus_fixed_vproc0: regulator-vproc-buck0 {
 		compatible = "regulator-fixed";
 		regulator-name = "vproc_buck0";
 		regulator-min-microvolt = <1000000>;
 		regulator-max-microvolt = <1000000>;
 	};
 
-	cpus_fixed_vproc1: fixedregulator@1 {
+	cpus_fixed_vproc1: regulator-vproc-buck1 {
 		compatible = "regulator-fixed";
 		regulator-name = "vproc_buck1";
 		regulator-min-microvolt = <1000000>;
Signature · 1 line
2.35.1
author maintainer
#66 lore raw

PATCH 66/1073 arm64: dts: mt2712-evb: Fix usb vbus regulators unit names

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit ec1ae39a8d25cfb067b5459fac7c5b7b9bce6f6a ]

Update the names to regulator-usb-p{0-3}-vbus to fix unit_address_vs_reg warnings for those.

Fixes 1724f4cc5133 ("arm64: dts: Add USB3 related nodes for MT2712")
---
 arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/mediatek/mt2712-evb.dts +4 -4
index 638908773706..d31a194124c9 100644
@@ -50,7 +50,7 @@ extcon_usb1: extcon_iddig1 {
 		id-gpio = <&pio 14 GPIO_ACTIVE_HIGH>;
 	};
 
-	usb_p0_vbus: regulator@2 {
+	usb_p0_vbus: regulator-usb-p0-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "p0_vbus";
 		regulator-min-microvolt = <5000000>;
@@ -59,7 +59,7 @@ usb_p0_vbus: regulator@2 {
 		enable-active-high;
 	};
 
-	usb_p1_vbus: regulator@3 {
+	usb_p1_vbus: regulator-usb-p1-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "p1_vbus";
 		regulator-min-microvolt = <5000000>;
@@ -68,7 +68,7 @@ usb_p1_vbus: regulator@3 {
 		enable-active-high;
 	};
 
-	usb_p2_vbus: regulator@4 {
+	usb_p2_vbus: regulator-usb-p2-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "p2_vbus";
 		regulator-min-microvolt = <5000000>;
@@ -77,7 +77,7 @@ usb_p2_vbus: regulator@4 {
 		enable-active-high;
 	};
 
-	usb_p3_vbus: regulator@5 {
+	usb_p3_vbus: regulator-usb-p3-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "p3_vbus";
 		regulator-min-microvolt = <5000000>;
Signature · 1 line
2.35.1
author maintainer
#67 lore raw

PATCH 67/1073 arm64: dts: mediatek: pumpkin-common: Fix devicetree warnings

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 509438336ce75c8b4e6ce8e8d507dc77d0783bdd ]

Fix the pinctrl submodes and optee node to remove unneeded unit address, fixing all unit_address_vs_reg warnings.

Fixes 9983822c8cf9 ("arm64: dts: mediatek: add pumpkin board dts")
---
 arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi +3 -3
index 8ee1529683a3..ec8dfb3d1c6d 100644
@@ -17,7 +17,7 @@ chosen {
 	};
 
 	firmware {
-		optee: optee@4fd00000 {
+		optee: optee {
 			compatible = "linaro,optee-tz";
 			method = "smc";
 		};
@@ -209,7 +209,7 @@ pins_cmd_dat {
 		};
 	};
 
-	i2c0_pins_a: i2c0@0 {
+	i2c0_pins_a: i2c0 {
 		pins1 {
 			pinmux = <MT8516_PIN_58_SDA0__FUNC_SDA0_0>,
 				 <MT8516_PIN_59_SCL0__FUNC_SCL0_0>;
@@ -217,7 +217,7 @@ pins1 {
 		};
 	};
 
-	i2c2_pins_a: i2c2@0 {
+	i2c2_pins_a: i2c2 {
 		pins1 {
 			pinmux = <MT8516_PIN_60_SDA2__FUNC_SDA2_0>,
 				 <MT8516_PIN_61_SCL2__FUNC_SCL2_0>;
Signature · 1 line
2.35.1
author maintainer
#68 lore raw

PATCH 68/1073 arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name

In reply to Greg Kroah-Hartman

From: AngeloGioacchino Del Regno <[email protected]>

[ Upstream commit 5f535cc583759c9c60d4cc9b8d221762e2d75387 ]

Update its unit name to oscillator-26m and remove the unneeded unit address to fix a unit_address_vs_reg warning.

---
 arch/arm64/boot/dts/mediatek/mt6797.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt6797.dtsi +1 -1
index 15616231022a..c3677d77e0a4 100644
@@ -95,7 +95,7 @@ cpu9: cpu@201 {
 		};
 	};
 
-	clk26m: oscillator@0 {
+	clk26m: oscillator-26m {
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <26000000>;
Signature · 1 line
2.35.1
author maintainer
#69 lore raw

PATCH 69/1073 ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit dcc7d8c72b64a479b8017e4332d99179deb8802d ]

BDF of resource in DT assigned-addresses property of Marvell PCIe Root Port (PCI-to-PCI bridge) should match BDF in address part in that DT node name as specified resource belongs to Marvell PCIe Root Port itself.

Fixes 74ecaa403a74 ("ARM: dove: add PCIe controllers to SoC DT")
---
 arch/arm/boot/dts/dove.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/dove.dtsi +1 -1
index 89e0bdaf3a85..726d353eda68 100644
@@ -129,7 +129,7 @@ pcie0: pcie@1 {
 			pcie1: pcie@2 {
 				device_type = "pci";
 				status = "disabled";
-				assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				clocks = <&gate_clk 5>;
 				marvell,pcie-port = <1>;
Signature · 1 line
2.35.1
author maintainer
#70 lore raw

PATCH 70/1073 ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit d9208b0fa2e803d16b28d91bf1d46b7ee9ea13c6 ]

BDF of resource in DT assigned-addresses property of Marvell PCIe Root Port (PCI-to-PCI bridge) should match BDF in address part in that DT node name as specified resource belongs to Marvell PCIe Root Port itself.

Fixes a09a0b7c6ff1 ("arm: mvebu: add PCIe Device Tree informations for Armada 370")
---
 arch/arm/boot/dts/armada-370.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/armada-370.dtsi +1 -1
index 46e6d3ed8f35..c042c416a94a 100644
@@ -74,7 +74,7 @@ pcie0: pcie@1,0 {
 
 			pcie2: pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
Signature · 1 line
2.35.1
author maintainer
#71 lore raw

PATCH 71/1073 ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit eab276787f456cbea89fabea110fe0728673d308 ]

BDF of resource in DT assigned-addresses property of Marvell PCIe Root Port (PCI-to-PCI bridge) should match BDF in address part in that DT node name as specified resource belongs to Marvell PCIe Root Port itself.

Fixes 9d8f44f02d4a ("arm: mvebu: add PCIe Device Tree informations for Armada XP")
Fixes 12b69a599745 ("ARM: mvebu: second PCIe unit of Armada XP mv78230 is only x1 capable")
Fixes 2163e61c92d9 ("ARM: mvebu: fix second and third PCIe unit of Armada XP mv78260")
---
 arch/arm/boot/dts/armada-xp-mv78230.dtsi |  8 ++++----
 arch/arm/boot/dts/armada-xp-mv78260.dtsi | 16 ++++++++--------
 2 files changed, 12 insertions(+), 12 deletions(-)
arch/arm/boot/dts/armada-xp-mv78230.dtsi +4 -4
index 8558bf6bb54c..d55fe162fc7f 100644
@@ -97,7 +97,7 @@ pcie1: pcie@1,0 {
 
 			pcie2: pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -115,7 +115,7 @@ pcie2: pcie@2,0 {
 
 			pcie3: pcie@3,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
+				assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
 				reg = <0x1800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -133,7 +133,7 @@ pcie3: pcie@3,0 {
 
 			pcie4: pcie@4,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
+				assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
 				reg = <0x2000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -151,7 +151,7 @@ pcie4: pcie@4,0 {
 
 			pcie5: pcie@5,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
+				assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
 				reg = <0x2800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
arch/arm/boot/dts/armada-xp-mv78260.dtsi +8 -8
index 2d85fe8ac327..fdcc81819940 100644
@@ -112,7 +112,7 @@ pcie1: pcie@1,0 {
 
 			pcie2: pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -130,7 +130,7 @@ pcie2: pcie@2,0 {
 
 			pcie3: pcie@3,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
+				assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
 				reg = <0x1800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -148,7 +148,7 @@ pcie3: pcie@3,0 {
 
 			pcie4: pcie@4,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
+				assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
 				reg = <0x2000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -166,7 +166,7 @@ pcie4: pcie@4,0 {
 
 			pcie5: pcie@5,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
+				assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
 				reg = <0x2800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -184,7 +184,7 @@ pcie5: pcie@5,0 {
 
 			pcie6: pcie@6,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
+				assigned-addresses = <0x82003000 0 0x84000 0 0x2000>;
 				reg = <0x3000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -202,7 +202,7 @@ pcie6: pcie@6,0 {
 
 			pcie7: pcie@7,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
+				assigned-addresses = <0x82003800 0 0x88000 0 0x2000>;
 				reg = <0x3800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -220,7 +220,7 @@ pcie7: pcie@7,0 {
 
 			pcie8: pcie@8,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
+				assigned-addresses = <0x82004000 0 0x8c000 0 0x2000>;
 				reg = <0x4000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -238,7 +238,7 @@ pcie8: pcie@8,0 {
 
 			pcie9: pcie@9,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
+				assigned-addresses = <0x82004800 0 0x42000 0 0x2000>;
 				reg = <0x4800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
Signature · 1 line
2.35.1
author maintainer
#72 lore raw

PATCH 72/1073 ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit 823956d2436f70ced74c0fe8ab99facd8abfc060 ]

BDF of resource in DT assigned-addresses property of Marvell PCIe Root Port (PCI-to-PCI bridge) should match BDF in address part in that DT node name as specified resource belongs to Marvell PCIe Root Port itself.

Fixes 4de59085091f ("ARM: mvebu: add Device Tree description of the Armada 375 SoC")
---
 arch/arm/boot/dts/armada-375.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/armada-375.dtsi +1 -1
index 7f2f24a29e6c..352a2f7ba311 100644
@@ -582,7 +582,7 @@ pcie0: pcie@1,0 {
 
 			pcie1: pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
Signature · 1 line
2.35.1
author maintainer
#73 lore raw

PATCH 73/1073 ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit 44f47b7a8fa4678ce4c38ea74837e4996b9df6d6 ]

BDF of resource in DT assigned-addresses property of Marvell PCIe Root Port (PCI-to-PCI bridge) should match BDF in address part in that DT node name as specified resource belongs to Marvell PCIe Root Port itself.

Fixes 0d3d96ab0059 ("ARM: mvebu: add Device Tree description of the Armada 380/385 SoCs")
---
 arch/arm/boot/dts/armada-380.dtsi | 4 ++--
 arch/arm/boot/dts/armada-385.dtsi | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/armada-380.dtsi +2 -2
index cff1269f3fbf..7146cc8f082a 100644
@@ -79,7 +79,7 @@ pcie@1,0 {
 			/* x1 port */
 			pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -98,7 +98,7 @@ pcie@2,0 {
 			/* x1 port */
 			pcie@3,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
+				assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
 				reg = <0x1800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
arch/arm/boot/dts/armada-385.dtsi +3 -3
index 83392b92dae2..be8d607c59b2 100644
@@ -93,7 +93,7 @@ pcie1_intc: interrupt-controller {
 			/* x1 port */
 			pcie2: pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -121,7 +121,7 @@ pcie2_intc: interrupt-controller {
 			/* x1 port */
 			pcie3: pcie@3,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
+				assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
 				reg = <0x1800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -152,7 +152,7 @@ pcie3_intc: interrupt-controller {
 			 */
 			pcie4: pcie@4,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
+				assigned-addresses = <0x82002000 0 0x48000 0 0x2000>;
 				reg = <0x2000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
Signature · 1 line
2.35.1
author maintainer
#74 lore raw

PATCH 74/1073 ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit 69236d2391b4d7324b11c3252921571577892e7b ]

BDF of resource in DT assigned-addresses property of Marvell PCIe Root Port (PCI-to-PCI bridge) should match BDF in address part in that DT node name as specified resource belongs to Marvell PCIe Root Port itself.

Fixes 538da83ddbea ("ARM: mvebu: add Device Tree files for Armada 39x SoC and board")
---
 arch/arm/boot/dts/armada-39x.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/armada-39x.dtsi +3 -3
index e0b7c2099831..9525e7b7f436 100644
@@ -453,7 +453,7 @@ pcie@1,0 {
 			/* x1 port */
 			pcie@2,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
+				assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
 				reg = <0x1000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -472,7 +472,7 @@ pcie@2,0 {
 			/* x1 port */
 			pcie@3,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
+				assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
 				reg = <0x1800 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
@@ -494,7 +494,7 @@ pcie@3,0 {
 			 */
 			pcie@4,0 {
 				device_type = "pci";
-				assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
+				assigned-addresses = <0x82002000 0 0x48000 0 0x2000>;
 				reg = <0x2000 0 0 0 0>;
 				#address-cells = <3>;
 				#size-cells = <2>;
Signature · 1 line
2.35.1
author maintainer
#75 lore raw

PATCH 75/1073 ARM: dts: turris-omnia: Add ethernet aliases

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit f1f3e530c59a7e8c5f06172f4c28b945a6b4bfb8 ]

This allows bootloader to correctly pass MAC addresses used by bootloader to individual interfaces into kernel device tree.

Fixes 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia")
---
 arch/arm/boot/dts/armada-385-turris-omnia.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/armada-385-turris-omnia.dts +6 -0
index a41902e3815c..96bd40351c3b 100644
@@ -23,6 +23,12 @@ chosen {
 		stdout-path = &uart0;
 	};
 
+	aliases {
+		ethernet0 = &eth0;
+		ethernet1 = &eth1;
+		ethernet2 = &eth2;
+	};
+
 	memory {
 		device_type = "memory";
 		reg = <0x00000000 0x40000000>; /* 1024 MB */
Signature · 1 line
2.35.1
author maintainer
#76 lore raw

PATCH 76/1073 ARM: dts: turris-omnia: Add switch port 6 node

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit f87db2005f73876602211af0ee156817019b6bda ]

Switch port 6 is connected to eth0, so add appropriate device tree node for it.

Fixes 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia")
---
 arch/arm/boot/dts/armada-385-turris-omnia.dts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/armada-385-turris-omnia.dts +11 -1
index 96bd40351c3b..0b64d7505dca 100644
@@ -461,7 +461,17 @@ fixed-link {
 				};
 			};
 
-			/* port 6 is connected to eth0 */
+			ports@6 {
+				reg = <6>;
+				label = "cpu";
+				ethernet = <&eth0>;
+				phy-mode = "rgmii-id";
+
+				fixed-link {
+					speed = <1000>;
+					full-duplex;
+				};
+			};
 		};
 	};
 };
Signature · 1 line
2.35.1
author maintainer
#77 lore raw

PATCH 77/1073 ARM: dts: armada-38x: Fix compatible string for gpios

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit c4de4667f15d04ef5920bacf41e514ec7d1ef03d ]

Armada 38x supports per CPU interrupts for gpios, like Armada XP. Pre-XP variants like Armada 370 do not support per CPU interrupts for gpios.

So change compatible string for Armada 38x from "marvell,armada-370-gpio" which indicates pre-XP variant to "marvell,armadaxp-gpio" which indicates XP variant or new.

Driver gpio-mvebu.c which handles both pre-XP and XP variants already provides support for per CPU interrupts on XP and newer variants.

Fixes 7cb2acb3fbae ("ARM: dts: mvebu: Add PWM properties for armada-38x")
---
 arch/arm/boot/dts/armada-38x.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/armada-38x.dtsi +2 -2
index df3c8d1d8f64..9343de6947b3 100644
@@ -292,7 +292,7 @@ sata3_pins: sata-pins-3 {
 			};
 
 			gpio0: gpio@18100 {
-				compatible = "marvell,armada-370-gpio",
+				compatible = "marvell,armadaxp-gpio",
 					     "marvell,orion-gpio";
 				reg = <0x18100 0x40>, <0x181c0 0x08>;
 				reg-names = "gpio", "pwm";
@@ -310,7 +310,7 @@ gpio0: gpio@18100 {
 			};
 
 			gpio1: gpio@18140 {
-				compatible = "marvell,armada-370-gpio",
+				compatible = "marvell,armadaxp-gpio",
 					     "marvell,orion-gpio";
 				reg = <0x18140 0x40>, <0x181c8 0x08>;
 				reg-names = "gpio", "pwm";
Signature · 1 line
2.35.1
author maintainer
#78 lore raw

PATCH 78/1073 ARM: dts: armada-39x: Fix compatible string for gpios

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit d10886a4e6f85ee18d47a1066a52168461370ded ]

Armada 39x supports per CPU interrupts for gpios, like Armada XP.

So add compatible string "marvell,armadaxp-gpio" for Armada 39x GPIO nodes.

Driver gpio-mvebu.c which handles both pre-XP and XP variants already provides support for per CPU interrupts on XP and newer variants.

Fixes d81a914fc630 ("ARM: dts: mvebu: armada-39x: add missing nodes describing GPIO's")
---
 arch/arm/boot/dts/armada-39x.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/armada-39x.dtsi +2 -2
index 9525e7b7f436..9aad10fd3823 100644
@@ -213,7 +213,7 @@ nand_pins: nand-pins {
 			};
 
 			gpio0: gpio@18100 {
-				compatible = "marvell,orion-gpio";
+				compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio";
 				reg = <0x18100 0x40>;
 				ngpios = <32>;
 				gpio-controller;
@@ -227,7 +227,7 @@ gpio0: gpio@18100 {
 			};
 
 			gpio1: gpio@18140 {
-				compatible = "marvell,orion-gpio";
+				compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio";
 				reg = <0x18140 0x40>;
 				ngpios = <28>;
 				gpio-controller;
Signature · 1 line
2.35.1
author maintainer
#79 lore raw

PATCH 79/1073 arm64: dts: armada-3720-turris-mox: Add missing interrupt for RTC

In reply to Greg Kroah-Hartman

From: Pali Rohár <[email protected]>

[ Upstream commit 21aad8ba615e9c39cee6c5d0b76726f63791926c ]

MCP7940MT-I/MNY RTC has connected interrupt line to GPIO2_5.

Fixes 7109d817db2e ("arm64: dts: marvell: add DTS for Turris Mox")
---
 arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts +3 -0
index ada164d423f3..200f97e1c4c9 100644
@@ -125,9 +125,12 @@ &i2c0 {
 	/delete-property/ mrvl,i2c-fast-mode;
 	status = "okay";
 
+	/* MCP7940MT-I/MNY RTC */
 	rtc@6f {
 		compatible = "microchip,mcp7940x";
 		reg = <0x6f>;
+		interrupt-parent = <&gpiosb>;
+		interrupts = <5 0>; /* GPIO2_5 */
 	};
 };
 
Signature · 1 line
2.35.1
author maintainer
#80 lore raw

PATCH 80/1073 soc: apple: sart: Stop casting function pointer signatures

In reply to Greg Kroah-Hartman

From: Sven Peter <[email protected]>

[ Upstream commit 422d0b860dc223b5dfc6d083697cae258bb5a4a1 ]

Fixes b170143ae111 ("soc: apple: Add SART driver")
---
 drivers/soc/apple/sart.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/soc/apple/sart.c +6 -1
index 83804b16ad03..afa111736899 100644
@@ -164,6 +164,11 @@ static int apple_sart_probe(struct platform_device *pdev)
 	return 0;
 }
 
+static void apple_sart_put_device(void *dev)
+{
+	put_device(dev);
+}
+
 struct apple_sart *devm_apple_sart_get(struct device *dev)
 {
 	struct device_node *sart_node;
@@ -187,7 +192,7 @@ struct apple_sart *devm_apple_sart_get(struct device *dev)
 		return ERR_PTR(-EPROBE_DEFER);
 	}
 
-	ret = devm_add_action_or_reset(dev, (void (*)(void *))put_device,
+	ret = devm_add_action_or_reset(dev, apple_sart_put_device,
 				       &sart_pdev->dev);
 	if (ret)
 		return ERR_PTR(ret);
Signature · 1 line
2.35.1
author maintainer
#81 lore raw

PATCH 81/1073 soc: apple: rtkit: Stop casting function pointer signatures

In reply to Greg Kroah-Hartman

From: Sven Peter <[email protected]>

[ Upstream commit 5acf07ff25f0c1c44105e6b8ebf88c55a0a04d2f ]

Fixes 9bd1d9a0d8bb ("soc: apple: Add RTKit IPC library")
---
 drivers/soc/apple/rtkit.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/soc/apple/rtkit.c +4 -3
index cf1129e9f76b..d9329b4d8e1b 100644
@@ -920,8 +920,10 @@ int apple_rtkit_wake(struct apple_rtkit *rtk)
 }
 EXPORT_SYMBOL_GPL(apple_rtkit_wake);
 
-static void apple_rtkit_free(struct apple_rtkit *rtk)
+static void apple_rtkit_free(void *data)
 {
+	struct apple_rtkit *rtk = data;
+
 	mbox_free_channel(rtk->mbox_chan);
 	destroy_workqueue(rtk->wq);
 
@@ -944,8 +946,7 @@ struct apple_rtkit *devm_apple_rtkit_init(struct device *dev, void *cookie,
 	if (IS_ERR(rtk))
 		return rtk;
 
-	ret = devm_add_action_or_reset(dev, (void (*)(void *))apple_rtkit_free,
-				       rtk);
+	ret = devm_add_action_or_reset(dev, apple_rtkit_free, rtk);
 	if (ret)
 		return ERR_PTR(ret);
 
Signature · 1 line
2.35.1
author maintainer
#82 lore raw

PATCH 82/1073 drivers/perf: hisi: Fix some event id for hisi-pcie-pmu

In reply to Greg Kroah-Hartman

From: Yicong Yang <[email protected]>

[ Upstream commit 6b4bb4f38dbfe85247f006f06135ba46450d5bf0 ]

Some event id of hisi-pcie-pmu is incorrect, fix them.

Fixes 8404b0fbc7fb ("drivers/perf: hisi: Add driver for HiSilicon PCIe PMU")
---
 drivers/perf/hisilicon/hisi_pcie_pmu.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/perf/hisilicon/hisi_pcie_pmu.c +4 -4
index 21771708597d..071e63d9a9ac 100644
@@ -693,10 +693,10 @@ static struct attribute *hisi_pcie_pmu_events_attr[] = {
 	HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_cnt, 0x10210),
 	HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_latency, 0x0011),
 	HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_cnt, 0x10011),
-	HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_flux, 0x1005),
-	HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_time, 0x11005),
-	HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_flux, 0x2004),
-	HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_time, 0x12004),
+	HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_flux, 0x0804),
+	HISI_PCIE_PMU_EVENT_ATTR(rx_mrd_time, 0x10804),
+	HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_flux, 0x0405),
+	HISI_PCIE_PMU_EVENT_ATTR(tx_mrd_time, 0x10405),
 	NULL
 };
 
Signature · 1 line
2.35.1
author maintainer
#83 lore raw

PATCH 83/1073 seccomp: Move copy_seccomp() to no failure path.

In reply to Greg Kroah-Hartman

From: Kuniyuki Iwashima <[email protected]>

[ Upstream commit a1140cb215fa13dcec06d12ba0c3ee105633b7c4 ]

Our syzbot instance reported memory leaks in do_seccomp() [0], similar to the report [1]. It shows that we miss freeing struct seccomp_filter and some objects included in it.

We can reproduce the issue with the program below [2] which calls one seccomp() and two clone() syscalls.

The first clone()d child exits earlier than its parent and sends a signal to kill it during the second clone(), more precisely before the fatal_signal_pending() test in copy_process(). When the parent receives the signal, it has to destroy the embryonic process and return -EINTR to user space. In the failure path, we have to call seccomp_filter_release() to decrement the filter's refcount.

Initially, we called it in free_task() called from the failure path, but the commit 3a15fb6ed92c ("seccomp: release filter after task is fully dead") moved it to release_task() to notify user space as early as possible that the filter is no longer used.

To keep the change and current seccomp refcount semantics, let's move copy_seccomp() just after the signal check and add a WARN_ON_ONCE() in free_task() for future debugging.

[0]:
unreferenced object 0xffff8880063add00 (size 256):
comm "repro_seccomp", pid 230, jiffies 4294687090 (age 9.914s) hex dump (first 32 bytes):
01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................ ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
backtrace:

    do_seccomp (./include/linux/slab.h:600 ./include/linux/slab.h:733 kernel/seccomp.c:666 kernel/seccomp.c:708 kernel/seccomp.c:1871 kernel/seccomp.c:1991)
    do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120)
unreferenced object 0xffffc90000035000 (size 4096):
  comm "repro_seccomp", pid 230, jiffies 4294687090 (age 9.915s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    __vmalloc_node_range (mm/vmalloc.c:3226)
    __vmalloc_node (mm/vmalloc.c:3261 (discriminator 4))
    bpf_prog_alloc_no_stats (kernel/bpf/core.c:91)
    bpf_prog_alloc (kernel/bpf/core.c:129)
    bpf_prog_create_from_user (net/core/filter.c:1414)
    do_seccomp (kernel/seccomp.c:671 kernel/seccomp.c:708 kernel/seccomp.c:1871 kernel/seccomp.c:1991)
    do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120)
unreferenced object 0xffff888003fa1000 (size 1024):
  comm "repro_seccomp", pid 230, jiffies 4294687090 (age 9.915s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    bpf_prog_alloc_no_stats (./include/linux/slab.h:600 ./include/linux/slab.h:733 kernel/bpf/core.c:95)
    bpf_prog_alloc (kernel/bpf/core.c:129)
    bpf_prog_create_from_user (net/core/filter.c:1414)
    do_seccomp (kernel/seccomp.c:671 kernel/seccomp.c:708 kernel/seccomp.c:1871 kernel/seccomp.c:1991)
    do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120)
unreferenced object 0xffff888006360240 (size 16):
  comm "repro_seccomp", pid 230, jiffies 4294687090 (age 9.915s)
  hex dump (first 16 bytes):
    01 00 37 00 76 65 72 6c e0 83 01 06 80 88 ff ff  ..7.verl........
  backtrace:
    bpf_prog_store_orig_filter (net/core/filter.c:1137)
    bpf_prog_create_from_user (net/core/filter.c:1428)
    do_seccomp (kernel/seccomp.c:671 kernel/seccomp.c:708 kernel/seccomp.c:1871 kernel/seccomp.c:1991)
    do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120)
unreferenced object 0xffff8880060183e0 (size 8):
  comm "repro_seccomp", pid 230, jiffies 4294687090 (age 9.915s)
  hex dump (first 8 bytes):
    06 00 00 00 00 00 ff 7f                          ........
  backtrace:
    kmemdup (mm/util.c:129)
    bpf_prog_store_orig_filter (net/core/filter.c:1144)
    bpf_prog_create_from_user (net/core/filter.c:1428)
    do_seccomp (kernel/seccomp.c:671 kernel/seccomp.c:708 kernel/seccomp.c:1871 kernel/seccomp.c:1991)
    do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120)

[1]: https://syzkaller.appspot.com/bug?id=2809bb0ac77ad9aa3f4afe42d6a610aba594a987

[2]:
#define _GNU_SOURCE
#include <sched.h>
#include <signal.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/filter.h>
#include <linux/seccomp.h>

void main(void)

{
	struct sock_filter filter[] = {
		BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),
	};
	struct sock_fprog fprog = {
		.len = sizeof(filter) / sizeof(filter[0]),
		.filter = filter,
	};
	long i, pid;

	syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, &fprog);

	for (i = 0; i < 2; i++) {
		pid = syscall(__NR_clone, CLONE_NEWNET | SIGKILL, NULL, NULL, 0);
		if (pid == 0)
			return;
	}
}
---
 kernel/fork.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
kernel/fork.c +11 -6
index 2b6bd511c6ed..f925d2b96e0a 100644
@@ -537,6 +537,9 @@ void put_task_stack(struct task_struct *tsk)
 
 void free_task(struct task_struct *tsk)
 {
+#ifdef CONFIG_SECCOMP
+	WARN_ON_ONCE(tsk->seccomp.filter);
+#endif
 	release_user_cpus_ptr(tsk);
 	scs_release(tsk);
 
@@ -2407,12 +2410,6 @@ static __latent_entropy struct task_struct *copy_process(
 
 	spin_lock(&current->sighand->siglock);
 
-	/*
-	 * Copy seccomp details explicitly here, in case they were changed
-	 * before holding sighand lock.
-	 */
-	copy_seccomp(p);
-
 	rv_task_fork(p);
 
 	rseq_fork(p, clone_flags);
@@ -2429,6 +2426,14 @@ static __latent_entropy struct task_struct *copy_process(
 		goto bad_fork_cancel_cgroup;
 	}
 
+	/* No more failure paths after this point. */
+
+	/*
+	 * Copy seccomp details explicitly here, in case they were changed
+	 * before holding sighand lock.
+	 */
+	copy_seccomp(p);
+
 	init_task_pid_links(p);
 	if (likely(p->pid)) {
 		ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace);
Signature · 1 line
2.35.1
author maintainer
#84 lore raw

PATCH 84/1073 pstore/ram: Fix error return code in ramoops_probe()

In reply to Greg Kroah-Hartman

From: Wang Yufen <[email protected]>

[ Upstream commit e1fce564900f8734edf15b87f028c57e14f6e28d ]

In the if (dev_of_node(dev) && !pdata) path, the "err" may be assigned a value of 0, so the error return code -EINVAL may be incorrectly set to 0. To fix set valid return code before calling to goto.

Fixes 35da60941e44 ("pstore/ram: add Device Tree bindings")
---
 fs/pstore/ram.c | 2 ++
 1 file changed, 2 insertions(+)
fs/pstore/ram.c +2 -0
index fefe3d391d3a..74e4d93f3e08 100644
@@ -735,6 +735,7 @@ static int ramoops_probe(struct platform_device *pdev)
 	/* Make sure we didn't get bogus platform data pointer. */
 	if (!pdata) {
 		pr_err("NULL platform data\n");
+		err = -EINVAL;
 		goto fail_out;
 	}
 
@@ -742,6 +743,7 @@ static int ramoops_probe(struct platform_device *pdev)
 			!pdata->ftrace_size && !pdata->pmsg_size)) {
 		pr_err("The memory size and the record/console size must be "
 			"non-zero\n");
+		err = -EINVAL;
 		goto fail_out;
 	}
 
Signature · 1 line
2.35.1
author maintainer
#85 lore raw

PATCH 85/1073 ARM: mmp: fix timer_read delay

In reply to Greg Kroah-Hartman

From: Doug Brown <[email protected]>

[ Upstream commit e348b4014c31041e13ff370669ba3348c4d385e3 ]

timer_read() was using an empty 100-iteration loop to wait for the TMR_CVWR register to capture the latest timer counter value. The delay wasn't long enough. This resulted in CPU idle time being extremely underreported on PXA168 with CONFIG_NO_HZ_IDLE=y.

Switch to the approach used in the vendor kernel, which implements the capture delay by reading TMR_CVWR a few times instead.

Fixes 49cbe78637eb ("[ARM] pxa: add base support for Marvell's PXA168 processor line")
---
 arch/arm/mach-mmp/time.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
arch/arm/mach-mmp/time.c +7 -4
index 41b2e8abc9e6..708816caf859 100644
@@ -43,18 +43,21 @@
 static void __iomem *mmp_timer_base = TIMERS_VIRT_BASE;
 
 /*
- * FIXME: the timer needs some delay to stablize the counter capture
+ * Read the timer through the CVWR register. Delay is required after requesting
+ * a read. The CR register cannot be directly read due to metastability issues
+ * documented in the PXA168 software manual.
  */
 static inline uint32_t timer_read(void)
 {
-	int delay = 100;
+	uint32_t val;
+	int delay = 3;
 
 	__raw_writel(1, mmp_timer_base + TMR_CVWR(1));
 
 	while (delay--)
-		cpu_relax();
+		val = __raw_readl(mmp_timer_base + TMR_CVWR(1));
 
-	return __raw_readl(mmp_timer_base + TMR_CVWR(1));
+	return val;
 }
 
 static u64 notrace mmp_read_sched_clock(void)
Signature · 1 line
2.35.1
author maintainer
#86 lore raw

PATCH 86/1073 pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP

In reply to Greg Kroah-Hartman

From: Stephen Boyd <[email protected]>

[ Upstream commit e6b842741b4f39007215fd7e545cb55aa3d358a2 ]

An oops can be induced by running 'cat /proc/kcore > /dev/null' on devices using pstore with the ram backend because kmap_atomic() assumes lowmem pages are accessible with __va().

 Unable to handle kernel paging request at virtual address ffffff807ff2b000
 Mem abort info:
 ESR = 0x96000006
 EC = 0x25: DABT (current EL), IL = 32 bits
 SET = 0, FnV = 0
 EA = 0, S1PTW = 0
 FSC = 0x06: level 2 translation fault
 Data abort info:
 ISV = 0, ISS = 0x00000006
 CM = 0, WnR = 0
 swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000081d87000
 [ffffff807ff2b000] pgd=180000017fe18003, p4d=180000017fe18003, pud=180000017fe18003, pmd=0000000000000000
 Internal error: Oops: 96000006 [#1] PREEMPT SMP
 Modules linked in: dm_integrity
 CPU: 7 PID: 21179 Comm: perf Not tainted 5.15.67-10882-ge4eb2eb988cd #1 baa443fb8e8477896a370b31a821eb2009f9bfba
 Hardware name: Google Lazor (rev3 - 8) (DT)
 pstate: a0400009 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
 pc : __memcpy+0x110/0x260
 lr : vread+0x194/0x294
 sp : ffffffc013ee39d0
 x29: ffffffc013ee39f0 x28: 0000000000001000 x27: ffffff807ff2b000
 x26: 0000000000001000 x25: ffffffc0085a2000 x24: ffffff802d4b3000
 x23: ffffff80f8a60000 x22: ffffff802d4b3000 x21: ffffffc0085a2000
 x20: ffffff8080b7bc68 x19: 0000000000001000 x18: 0000000000000000
 x17: 0000000000000000 x16: 0000000000000000 x15: ffffffd3073f2e60
 x14: ffffffffad588000 x13: 0000000000000000 x12: 0000000000000001
 x11: 00000000000001a2 x10: 00680000fff2bf0b x9 : 03fffffff807ff2b
 x8 : 0000000000000001 x7 : 0000000000000000 x6 : 0000000000000000
 x5 : ffffff802d4b4000 x4 : ffffff807ff2c000 x3 : ffffffc013ee3a78
 x2 : 0000000000001000 x1 : ffffff807ff2b000 x0 : ffffff802d4b3000
 Call trace:
 __memcpy+0x110/0x260
 read_kcore+0x584/0x778
 proc_reg_read+0xb4/0xe4

During early boot, memblock reserves the pages for the ramoops reserved memory node in DT that would otherwise be part of the direct lowmem mapping. Pstore's ram backend reuses those reserved pages to change the memory type (writeback or non-cached) by passing the pages to vmap() (see pfn_to_page() usage in persistent_ram_vmap() for more details) with specific flags. When read_kcore() starts iterating over the vmalloc region, it runs over the virtual address that vmap() returned for ramoops. In aligned_vread() the virtual address is passed to vmalloc_to_page() which returns the page struct for the reserved lowmem area. That lowmem page is passed to kmap_atomic(), which effectively calls page_to_virt() that assumes a lowmem page struct must be directly accessible with __va() and friends. These pages are mapped via vmap() though, and the lowmem mapping was never made, so accessing them via the lowmem virtual address oopses like above.

Let's side-step this problem by passing VM_IOREMAP to vmap(). This will tell vread() to not include the ramoops region in the kcore. Instead the area will look like a bunch of zeros. The alternative is to teach kmap() about vmalloc areas that intersect with lowmem. Presumably such a change isn't a one-liner, and there isn't much interest in inspecting the ramoops region in kcore files anyway, so the most expedient route is taken for now.

Cc Brian Geffon <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Andrew Morton <[email protected]>
Fixes 404a6043385d ("staging: android: persistent_ram: handle reserving and mapping memory")
---
 fs/pstore/ram_core.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
fs/pstore/ram_core.c +5 -1
index a89e33719fcf..8bf09886e7e6 100644
@@ -439,7 +439,11 @@ static void *persistent_ram_vmap(phys_addr_t start, size_t size,
 		phys_addr_t addr = page_start + i * PAGE_SIZE;
 		pages[i] = pfn_to_page(addr >> PAGE_SHIFT);
 	}
-	vaddr = vmap(pages, page_count, VM_MAP, prot);
+	/*
+	 * VM_IOREMAP used here to bypass this region during vread()
+	 * and kmap_atomic() (i.e. kcore) to avoid __va() failures.
+	 */
+	vaddr = vmap(pages, page_count, VM_MAP | VM_IOREMAP, prot);
 	kfree(pages);
 
 	/*
Signature · 1 line
2.35.1
author maintainer
#87 lore raw

PATCH 87/1073 arch: arm64: apple: t8103: Use standard "iommu" node name

In reply to Greg Kroah-Hartman

From: Janne Grunau <[email protected]>

[ Upstream commit 56d32c51dffac8a431b472a4c31efb8563b048d1 ]

The PCIe iommu nodes use "dart" as node names. Replace it with the the standard "iommu" node name as all other iommu nodes.

Fixes 3c866bb79577 ("arm64: dts: apple: t8103: Add PCIe DARTs")
---
 arch/arm64/boot/dts/apple/t8103.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/apple/t8103.dtsi +3 -3
index 51a63b29d404..a4d195e9eb8c 100644
@@ -412,7 +412,7 @@ nvme@27bcc0000 {
 			resets = <&ps_ans2>;
 		};
 
-		pcie0_dart_0: dart@681008000 {
+		pcie0_dart_0: iommu@681008000 {
 			compatible = "apple,t8103-dart";
 			reg = <0x6 0x81008000 0x0 0x4000>;
 			#iommu-cells = <1>;
@@ -421,7 +421,7 @@ pcie0_dart_0: dart@681008000 {
 			power-domains = <&ps_apcie_gp>;
 		};
 
-		pcie0_dart_1: dart@682008000 {
+		pcie0_dart_1: iommu@682008000 {
 			compatible = "apple,t8103-dart";
 			reg = <0x6 0x82008000 0x0 0x4000>;
 			#iommu-cells = <1>;
@@ -430,7 +430,7 @@ pcie0_dart_1: dart@682008000 {
 			power-domains = <&ps_apcie_gp>;
 		};
 
-		pcie0_dart_2: dart@683008000 {
+		pcie0_dart_2: iommu@683008000 {
 			compatible = "apple,t8103-dart";
 			reg = <0x6 0x83008000 0x0 0x4000>;
 			#iommu-cells = <1>;
Signature · 1 line
2.35.1
author maintainer
#88 lore raw

PATCH 88/1073 tpm: tis_i2c: Fix sanity check interrupt enable mask

In reply to Greg Kroah-Hartman

From: Eddie James <[email protected]>

[ Upstream commit 561d6ef75628db9cce433e573aa3cdb6b3bba903 ]

The sanity check mask for TPM_INT_ENABLE register was off by 8 bits, resulting in failure to probe if the TPM_INT_ENABLE register was a valid value.

Fixes bbc23a07b072 ("tpm: Add tpm_tis_i2c backend for tpm_tis_core")
---
 drivers/char/tpm/tpm_tis_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_tis_i2c.c +1 -1
index ba0911b1d1ff..29f0db41c0b7 100644
@@ -49,7 +49,7 @@
 
 /* Masks with bits that must be read zero */
 #define TPM_ACCESS_READ_ZERO 0x48
-#define TPM_INT_ENABLE_ZERO 0x7FFFFF6
+#define TPM_INT_ENABLE_ZERO 0x7FFFFF60
 #define TPM_STS_READ_ZERO 0x23
 #define TPM_INTF_CAPABILITY_ZERO 0x0FFFF000
 #define TPM_I2C_INTERFACE_CAPABILITY_ZERO 0x80000000
Signature · 1 line
2.35.1
author maintainer
#89 lore raw

PATCH 89/1073 tpm: Add flag to use default cancellation policy

In reply to Greg Kroah-Hartman

From: Eddie James <[email protected]>

[ Upstream commit 7bfda9c73fa9710a842a7d6f89b024351c80c19c ]

The check for cancelled request depends on the VID of the chip, but some chips share VID which shouldn't share their cancellation behavior. This is the case for the Nuvoton NPCT75X, which should use the default cancellation check, not the Winbond one.
To avoid changing the existing behavior, add a new flag to indicate that the chip should use the default cancellation check and set it for the I2C TPM2 TIS driver.

Fixes bbc23a07b072 ("tpm: Add tpm_tis_i2c backend for tpm_tis_core")
---
 drivers/char/tpm/tpm_tis_core.c | 20 ++++++++++++--------
 drivers/char/tpm/tpm_tis_core.h |  1 +
 drivers/char/tpm/tpm_tis_i2c.c  |  1 +
 3 files changed, 14 insertions(+), 8 deletions(-)
drivers/char/tpm/tpm_tis_core.c +12 -8
index 757623bacfd5..3f98e587b3e8 100644
@@ -682,15 +682,19 @@ static bool tpm_tis_req_canceled(struct tpm_chip *chip, u8 status)
 {
 	struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev);
 
-	switch (priv->manufacturer_id) {
-	case TPM_VID_WINBOND:
-		return ((status == TPM_STS_VALID) ||
-			(status == (TPM_STS_VALID | TPM_STS_COMMAND_READY)));
-	case TPM_VID_STM:
-		return (status == (TPM_STS_VALID | TPM_STS_COMMAND_READY));
-	default:
-		return (status == TPM_STS_COMMAND_READY);
+	if (!test_bit(TPM_TIS_DEFAULT_CANCELLATION, &priv->flags)) {
+		switch (priv->manufacturer_id) {
+		case TPM_VID_WINBOND:
+			return ((status == TPM_STS_VALID) ||
+				(status == (TPM_STS_VALID | TPM_STS_COMMAND_READY)));
+		case TPM_VID_STM:
+			return (status == (TPM_STS_VALID | TPM_STS_COMMAND_READY));
+		default:
+			break;
+		}
 	}
+
+	return status == TPM_STS_COMMAND_READY;
 }
 
 static irqreturn_t tis_int_handler(int dummy, void *dev_id)
drivers/char/tpm/tpm_tis_core.h +1 -0
index 66a5a13cd1df..b68479e0de10 100644
@@ -86,6 +86,7 @@ enum tis_defaults {
 enum tpm_tis_flags {
 	TPM_TIS_ITPM_WORKAROUND		= BIT(0),
 	TPM_TIS_INVALID_STATUS		= BIT(1),
+	TPM_TIS_DEFAULT_CANCELLATION	= BIT(2),
 };
 
 struct tpm_tis_data {
drivers/char/tpm/tpm_tis_i2c.c +1 -0
index 29f0db41c0b7..e728a61659f8 100644
@@ -329,6 +329,7 @@ static int tpm_tis_i2c_probe(struct i2c_client *dev,
 	if (!phy->io_buf)
 		return -ENOMEM;
 
+	set_bit(TPM_TIS_DEFAULT_CANCELLATION, &phy->priv.flags);
 	phy->i2c_client = dev;
 
 	/* must precede all communication with the tpm */
Signature · 1 line
2.35.1
author maintainer
#90 lore raw

PATCH 90/1073 tpm/tpm_ftpm_tee: Fix error handling in ftpm_mod_init()

In reply to Greg Kroah-Hartman

From: Yuan Can <[email protected]>

[ Upstream commit 2b7d07f7acaac2c7750e420dcf4414588ede6d03 ]

The ftpm_mod_init() returns the driver_register() directly without checking its return value, if driver_register() failed, the ftpm_tee_plat_driver is not unregistered.

Fix by unregister ftpm_tee_plat_driver when driver_register() failed.

Fixes 9f1944c23c8c ("tpm_ftpm_tee: register driver on TEE bus")
---
 drivers/char/tpm/tpm_ftpm_tee.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/char/tpm/tpm_ftpm_tee.c +7 -1
index 5c233423c56f..deff23bb54bf 100644
@@ -397,7 +397,13 @@ static int __init ftpm_mod_init(void)
 	if (rc)
 		return rc;
 
-	return driver_register(&ftpm_tee_driver.driver);
+	rc = driver_register(&ftpm_tee_driver.driver);
+	if (rc) {
+		platform_driver_unregister(&ftpm_tee_plat_driver);
+		return rc;
+	}
+
+	return 0;
 }
 
 static void __exit ftpm_mod_exit(void)
Signature · 1 line
2.35.1
author maintainer
#91 lore raw

PATCH 91/1073 tpm/tpm_crb: Fix error message in __crb_relinquish_locality()

In reply to Greg Kroah-Hartman

From: Michael Kelley <[email protected]>

[ Upstream commit f5264068071964b56dc02c9dab3d11574aaca6ff ]

The error message in __crb_relinquish_locality() mentions requestAccess instead of Relinquish. Fix it.

Fixes 888d867df441 ("tpm: cmd_ready command can be issued only after granting locality")
---
 drivers/char/tpm/tpm_crb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_crb.c +1 -1
index 18606651d1aa..65f8f179a27f 100644
@@ -252,7 +252,7 @@ static int __crb_relinquish_locality(struct device *dev,
 	iowrite32(CRB_LOC_CTRL_RELINQUISH, &priv->regs_h->loc_ctrl);
 	if (!crb_wait_for_reg_32(&priv->regs_h->loc_state, mask, value,
 				 TPM2_TIMEOUT_C)) {
-		dev_warn(dev, "TPM_LOC_STATE_x.requestAccess timed out\n");
+		dev_warn(dev, "TPM_LOC_STATE_x.Relinquish timed out\n");
 		return -ETIME;
 	}
 
Signature · 1 line
2.35.1
author maintainer
#92 lore raw

PATCH 92/1073 ovl: remove privs in ovl_copyfile()

In reply to Greg Kroah-Hartman

From: Amir Goldstein <[email protected]>

[ Upstream commit b306e90ffabdaa7e3b3350dbcd19b7663e71ab17 ]

Underlying fs doesn't remove privs because copy_range/remap_range are called with privileged mounter credentials.

This fixes some failures in fstest generic/673.

Fixes 8ede205541ff ("ovl: add reflink/copyfile/dedup support")
---
 fs/overlayfs/file.c | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
fs/overlayfs/file.c +14 -2
index daff601b5c41..362a4eed92b5 100644
@@ -567,14 +567,23 @@ static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in,
 	const struct cred *old_cred;
 	loff_t ret;
 
+	inode_lock(inode_out);
+	if (op != OVL_DEDUPE) {
+		/* Update mode */
+		ovl_copyattr(inode_out);
+		ret = file_remove_privs(file_out);
+		if (ret)
+			goto out_unlock;
+	}
+
 	ret = ovl_real_fdget(file_out, &real_out);
 	if (ret)
-		return ret;
+		goto out_unlock;
 
 	ret = ovl_real_fdget(file_in, &real_in);
 	if (ret) {
 		fdput(real_out);
-		return ret;
+		goto out_unlock;
 	}
 
 	old_cred = ovl_override_creds(file_inode(file_out)->i_sb);
@@ -603,6 +612,9 @@ static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in,
 	fdput(real_in);
 	fdput(real_out);
 
+out_unlock:
+	inode_unlock(inode_out);
+
 	return ret;
 }
 
Signature · 1 line
2.35.1
author maintainer
#93 lore raw

PATCH 93/1073 ovl: remove privs in ovl_fallocate()

In reply to Greg Kroah-Hartman

From: Amir Goldstein <[email protected]>

[ Upstream commit 23a8ce16419a3066829ad4a8b7032a75817af65b ]

Underlying fs doesn't remove privs because fallocate is called with privileged mounter credentials.

This fixes some failure in fstests generic/683..687.

---
 fs/overlayfs/file.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
fs/overlayfs/file.c +11 -1
index 362a4eed92b5..a34f8042724c 100644
@@ -517,9 +517,16 @@ static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len
 	const struct cred *old_cred;
 	int ret;
 
+	inode_lock(inode);
+	/* Update mode */
+	ovl_copyattr(inode);
+	ret = file_remove_privs(file);
+	if (ret)
+		goto out_unlock;
+
 	ret = ovl_real_fdget(file, &real);
 	if (ret)
-		return ret;
+		goto out_unlock;
 
 	old_cred = ovl_override_creds(file_inode(file)->i_sb);
 	ret = vfs_fallocate(real.file, mode, offset, len);
@@ -530,6 +537,9 @@ static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len
 
 	fdput(real);
 
+out_unlock:
+	inode_unlock(inode);
+
 	return ret;
 }
 
Signature · 1 line
2.35.1
author maintainer
#94 lore raw

PATCH 94/1073 sched/uclamp: Fix relationship between uclamp and migration margin

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit 48d5e9daa8b767e75ed9421665b037a49ce4bc04 ]

fits_capacity() verifies that a util is within 20% margin of the capacity of a CPU, which is an attempt to speed up upmigration.

But when uclamp is used, this 20% margin is problematic because for example if a task is boosted to 1024, then it will not fit on any CPU according to fits_capacity() logic.

Or if a task is boosted to capacity_orig_of(medium_cpu). The task will end up on big instead on the desired medium CPU.

Similar corner cases exist for uclamp and usage of capacity_of(). Slightest irq pressure on biggest CPU for example will make a 1024 boosted task look like it can't fit.

What we really want is for uclamp comparisons to ignore the migration margin and capacity pressure, yet retain them for when checking the _actual_ util signal.

For example, task p:

	p->util_avg = 300
	p->uclamp[UCLAMP_MIN] = 1024

Will fit a big CPU. But

	p->util_avg = 900
	p->uclamp[UCLAMP_MIN] = 1024

will not, this should trigger overutilized state because the big CPU is now *actually* being saturated.

Similar reasoning applies to capping tasks with UCLAMP_MAX. For example:

	p->util_avg = 1024
	p->uclamp[UCLAMP_MAX] = capacity_orig_of(medium_cpu)

Should fit the task on medium cpus without triggering overutilized state.

Inlined comments expand more on desired behavior in more scenarios.

Introduce new util_fits_cpu() function which encapsulates the new logic. The new function is not used anywhere yet, but will be used to update various users of fits_capacity() in later patches.

Fixes af24bde8df202 ("sched/uclamp: Add uclamp support to energy_compute()")
---
 kernel/sched/fair.c | 123 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 123 insertions(+)
kernel/sched/fair.c +123 -0
index 914096c5b1ae..4ccd21e9a29f 100644
@@ -4254,6 +4254,129 @@ static inline void util_est_update(struct cfs_rq *cfs_rq,
 	trace_sched_util_est_se_tp(&p->se);
 }
 
+static inline int util_fits_cpu(unsigned long util,
+				unsigned long uclamp_min,
+				unsigned long uclamp_max,
+				int cpu)
+{
+	unsigned long capacity_orig, capacity_orig_thermal;
+	unsigned long capacity = capacity_of(cpu);
+	bool fits, uclamp_max_fits;
+
+	/*
+	 * Check if the real util fits without any uclamp boost/cap applied.
+	 */
+	fits = fits_capacity(util, capacity);
+
+	if (!uclamp_is_used())
+		return fits;
+
+	/*
+	 * We must use capacity_orig_of() for comparing against uclamp_min and
+	 * uclamp_max. We only care about capacity pressure (by using
+	 * capacity_of()) for comparing against the real util.
+	 *
+	 * If a task is boosted to 1024 for example, we don't want a tiny
+	 * pressure to skew the check whether it fits a CPU or not.
+	 *
+	 * Similarly if a task is capped to capacity_orig_of(little_cpu), it
+	 * should fit a little cpu even if there's some pressure.
+	 *
+	 * Only exception is for thermal pressure since it has a direct impact
+	 * on available OPP of the system.
+	 *
+	 * We honour it for uclamp_min only as a drop in performance level
+	 * could result in not getting the requested minimum performance level.
+	 *
+	 * For uclamp_max, we can tolerate a drop in performance level as the
+	 * goal is to cap the task. So it's okay if it's getting less.
+	 *
+	 * In case of capacity inversion, which is not handled yet, we should
+	 * honour the inverted capacity for both uclamp_min and uclamp_max all
+	 * the time.
+	 */
+	capacity_orig = capacity_orig_of(cpu);
+	capacity_orig_thermal = capacity_orig - arch_scale_thermal_pressure(cpu);
+
+	/*
+	 * We want to force a task to fit a cpu as implied by uclamp_max.
+	 * But we do have some corner cases to cater for..
+	 *
+	 *
+	 *                                 C=z
+	 *   |                             ___
+	 *   |                  C=y       |   |
+	 *   |_ _ _ _ _ _ _ _ _ ___ _ _ _ | _ | _ _ _ _ _  uclamp_max
+	 *   |      C=x        |   |      |   |
+	 *   |      ___        |   |      |   |
+	 *   |     |   |       |   |      |   |    (util somewhere in this region)
+	 *   |     |   |       |   |      |   |
+	 *   |     |   |       |   |      |   |
+	 *   +----------------------------------------
+	 *         cpu0        cpu1       cpu2
+	 *
+	 *   In the above example if a task is capped to a specific performance
+	 *   point, y, then when:
+	 *
+	 *   * util = 80% of x then it does not fit on cpu0 and should migrate
+	 *     to cpu1
+	 *   * util = 80% of y then it is forced to fit on cpu1 to honour
+	 *     uclamp_max request.
+	 *
+	 *   which is what we're enforcing here. A task always fits if
+	 *   uclamp_max <= capacity_orig. But when uclamp_max > capacity_orig,
+	 *   the normal upmigration rules should withhold still.
+	 *
+	 *   Only exception is when we are on max capacity, then we need to be
+	 *   careful not to block overutilized state. This is so because:
+	 *
+	 *     1. There's no concept of capping at max_capacity! We can't go
+	 *        beyond this performance level anyway.
+	 *     2. The system is being saturated when we're operating near
+	 *        max capacity, it doesn't make sense to block overutilized.
+	 */
+	uclamp_max_fits = (capacity_orig == SCHED_CAPACITY_SCALE) && (uclamp_max == SCHED_CAPACITY_SCALE);
+	uclamp_max_fits = !uclamp_max_fits && (uclamp_max <= capacity_orig);
+	fits = fits || uclamp_max_fits;
+
+	/*
+	 *
+	 *                                 C=z
+	 *   |                             ___       (region a, capped, util >= uclamp_max)
+	 *   |                  C=y       |   |
+	 *   |_ _ _ _ _ _ _ _ _ ___ _ _ _ | _ | _ _ _ _ _ uclamp_max
+	 *   |      C=x        |   |      |   |
+	 *   |      ___        |   |      |   |      (region b, uclamp_min <= util <= uclamp_max)
+	 *   |_ _ _|_ _|_ _ _ _| _ | _ _ _| _ | _ _ _ _ _ uclamp_min
+	 *   |     |   |       |   |      |   |
+	 *   |     |   |       |   |      |   |      (region c, boosted, util < uclamp_min)
+	 *   +----------------------------------------
+	 *         cpu0        cpu1       cpu2
+	 *
+	 * a) If util > uclamp_max, then we're capped, we don't care about
+	 *    actual fitness value here. We only care if uclamp_max fits
+	 *    capacity without taking margin/pressure into account.
+	 *    See comment above.
+	 *
+	 * b) If uclamp_min <= util <= uclamp_max, then the normal
+	 *    fits_capacity() rules apply. Except we need to ensure that we
+	 *    enforce we remain within uclamp_max, see comment above.
+	 *
+	 * c) If util < uclamp_min, then we are boosted. Same as (b) but we
+	 *    need to take into account the boosted value fits the CPU without
+	 *    taking margin/pressure into account.
+	 *
+	 * Cases (a) and (b) are handled in the 'fits' variable already. We
+	 * just need to consider an extra check for case (c) after ensuring we
+	 * handle the case uclamp_min > uclamp_max.
+	 */
+	uclamp_min = min(uclamp_min, uclamp_max);
+	if (util < uclamp_min && capacity_orig != SCHED_CAPACITY_SCALE)
+		fits = fits && (uclamp_min <= capacity_orig_thermal);
+
+	return fits;
+}
+
 static inline int task_fits_capacity(struct task_struct *p,
 				     unsigned long capacity)
 {
Signature · 1 line
2.35.1
author maintainer
#95 lore raw

PATCH 95/1073 sched/uclamp: Make task_fits_capacity() use util_fits_cpu()

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit b48e16a69792b5dc4a09d6807369d11b2970cc36 ]

So that the new uclamp rules in regard to migration margin and capacity pressure are taken into account correctly.

Fixes a7008c07a568 ("sched/fair: Make task_fits_capacity() consider uclamp restrictions")
---
 kernel/sched/fair.c  | 26 ++++++++++++++++----------
 kernel/sched/sched.h |  9 +++++++++
 2 files changed, 25 insertions(+), 10 deletions(-)
kernel/sched/fair.c +16 -10
index 4ccd21e9a29f..fd0eb93e1bbb 100644
@@ -4377,10 +4377,12 @@ static inline int util_fits_cpu(unsigned long util,
 	return fits;
 }
 
-static inline int task_fits_capacity(struct task_struct *p,
-				     unsigned long capacity)
+static inline int task_fits_cpu(struct task_struct *p, int cpu)
 {
-	return fits_capacity(uclamp_task_util(p), capacity);
+	unsigned long uclamp_min = uclamp_eff_value(p, UCLAMP_MIN);
+	unsigned long uclamp_max = uclamp_eff_value(p, UCLAMP_MAX);
+	unsigned long util = task_util_est(p);
+	return util_fits_cpu(util, uclamp_min, uclamp_max, cpu);
 }
 
 static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
@@ -4393,7 +4395,7 @@ static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
 		return;
 	}
 
-	if (task_fits_capacity(p, capacity_of(cpu_of(rq)))) {
+	if (task_fits_cpu(p, cpu_of(rq))) {
 		rq->misfit_task_load = 0;
 		return;
 	}
@@ -8231,7 +8233,7 @@ static int detach_tasks(struct lb_env *env)
 
 		case migrate_misfit:
 			/* This is not a misfit task */
-			if (task_fits_capacity(p, capacity_of(env->src_cpu)))
+			if (task_fits_cpu(p, env->src_cpu))
 				goto next;
 
 			env->imbalance = 0;
@@ -9236,6 +9238,10 @@ static inline void update_sg_wakeup_stats(struct sched_domain *sd,
 
 	memset(sgs, 0, sizeof(*sgs));
 
+	/* Assume that task can't fit any CPU of the group */
+	if (sd->flags & SD_ASYM_CPUCAPACITY)
+		sgs->group_misfit_task_load = 1;
+
 	for_each_cpu(i, sched_group_span(group)) {
 		struct rq *rq = cpu_rq(i);
 		unsigned int local;
@@ -9255,12 +9261,12 @@ static inline void update_sg_wakeup_stats(struct sched_domain *sd,
 		if (!nr_running && idle_cpu_without(i, p))
 			sgs->idle_cpus++;
 
-	}
+		/* Check if task fits in the CPU */
+		if (sd->flags & SD_ASYM_CPUCAPACITY &&
+		    sgs->group_misfit_task_load &&
+		    task_fits_cpu(p, i))
+			sgs->group_misfit_task_load = 0;
 
-	/* Check if task fits in the group */
-	if (sd->flags & SD_ASYM_CPUCAPACITY &&
-	    !task_fits_capacity(p, group->sgc->max_capacity)) {
-		sgs->group_misfit_task_load = 1;
 	}
 
 	sgs->group_capacity = group->sgc->capacity;
kernel/sched/sched.h +9 -0
index f34b489636ff..1b8a5d791907 100644
@@ -3044,6 +3044,15 @@ static inline bool uclamp_is_used(void)
 	return static_branch_likely(&sched_uclamp_used);
 }
 #else /* CONFIG_UCLAMP_TASK */
+static inline unsigned long uclamp_eff_value(struct task_struct *p,
+					     enum uclamp_id clamp_id)
+{
+	if (clamp_id == UCLAMP_MIN)
+		return 0;
+
+	return SCHED_CAPACITY_SCALE;
+}
+
 static inline
 unsigned long uclamp_rq_util_with(struct rq *rq, unsigned long util,
 				  struct task_struct *p)
Signature · 1 line
2.35.1
author maintainer
#96 lore raw

PATCH 96/1073 sched/uclamp: Fix fits_capacity() check in feec()

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit 244226035a1f9b2b6c326e55ae5188fab4f428cb ]

As reported by Yun Hsiang [1], if a task has its uclamp_min >= 0.8 * 1024, it'll always pick the previous CPU because fits_capacity() will always return false in this case.

The new util_fits_cpu() logic should handle this correctly for us beside more corner cases where similar failures could occur, like when using UCLAMP_MAX.

We open code uclamp_rq_util_with() except for the clamp() part, util_fits_cpu() needs the 'raw' values to be passed to it.

Also introduce uclamp_rq_{set, get}() shorthand accessors to get uclamp value for the rq. Makes the code more readable and ensures the right rules (use READ_ONCE/WRITE_ONCE) are respected transparently.

[1] https://lists.linaro.org/pipermail/eas-dev/2020-July/001488.html

Fixes 1d42509e475c ("sched/fair: Make EAS wakeup placement consider uclamp restrictions")
---
 kernel/sched/core.c  | 10 +++++-----
 kernel/sched/fair.c  | 26 ++++++++++++++++++++++++--
 kernel/sched/sched.h | 42 +++++++++++++++++++++++++++++++++++++++---
 3 files changed, 68 insertions(+), 10 deletions(-)
kernel/sched/core.c +5 -5
index ee28253c9ac0..cb9d8ae7c4db 100644
@@ -1398,7 +1398,7 @@ static inline void uclamp_idle_reset(struct rq *rq, enum uclamp_id clamp_id,
 	if (!(rq->uclamp_flags & UCLAMP_FLAG_IDLE))
 		return;
 
-	WRITE_ONCE(rq->uclamp[clamp_id].value, clamp_value);
+	uclamp_rq_set(rq, clamp_id, clamp_value);
 }
 
 static inline
@@ -1549,8 +1549,8 @@ static inline void uclamp_rq_inc_id(struct rq *rq, struct task_struct *p,
 	if (bucket->tasks == 1 || uc_se->value > bucket->value)
 		bucket->value = uc_se->value;
 
-	if (uc_se->value > READ_ONCE(uc_rq->value))
-		WRITE_ONCE(uc_rq->value, uc_se->value);
+	if (uc_se->value > uclamp_rq_get(rq, clamp_id))
+		uclamp_rq_set(rq, clamp_id, uc_se->value);
 }
 
 /*
@@ -1616,7 +1616,7 @@ static inline void uclamp_rq_dec_id(struct rq *rq, struct task_struct *p,
 	if (likely(bucket->tasks))
 		return;
 
-	rq_clamp = READ_ONCE(uc_rq->value);
+	rq_clamp = uclamp_rq_get(rq, clamp_id);
 	/*
 	 * Defensive programming: this should never happen. If it happens,
 	 * e.g. due to future modification, warn and fixup the expected value.
@@ -1624,7 +1624,7 @@ static inline void uclamp_rq_dec_id(struct rq *rq, struct task_struct *p,
 	SCHED_WARN_ON(bucket->value > rq_clamp);
 	if (bucket->value >= rq_clamp) {
 		bkt_clamp = uclamp_rq_max_value(rq, clamp_id, uc_se->value);
-		WRITE_ONCE(uc_rq->value, bkt_clamp);
+		uclamp_rq_set(rq, clamp_id, bkt_clamp);
 	}
 }
 
kernel/sched/fair.c +24 -2
index fd0eb93e1bbb..abe0e6baaa2e 100644
@@ -6993,6 +6993,8 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu)
 {
 	struct cpumask *cpus = this_cpu_cpumask_var_ptr(select_rq_mask);
 	unsigned long prev_delta = ULONG_MAX, best_delta = ULONG_MAX;
+	unsigned long p_util_min = uclamp_is_used() ? uclamp_eff_value(p, UCLAMP_MIN) : 0;
+	unsigned long p_util_max = uclamp_is_used() ? uclamp_eff_value(p, UCLAMP_MAX) : 1024;
 	struct root_domain *rd = this_rq()->rd;
 	int cpu, best_energy_cpu, target = -1;
 	struct sched_domain *sd;
@@ -7025,6 +7027,8 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu)
 	for (; pd; pd = pd->next) {
 		unsigned long cpu_cap, cpu_thermal_cap, util;
 		unsigned long cur_delta, max_spare_cap = 0;
+		unsigned long rq_util_min, rq_util_max;
+		unsigned long util_min, util_max;
 		bool compute_prev_delta = false;
 		int max_spare_cap_cpu = -1;
 		unsigned long base_energy;
@@ -7061,8 +7065,26 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu)
 			 * much capacity we can get out of the CPU; this is
 			 * aligned with sched_cpu_util().
 			 */
-			util = uclamp_rq_util_with(cpu_rq(cpu), util, p);
-			if (!fits_capacity(util, cpu_cap))
+			if (uclamp_is_used()) {
+				if (uclamp_rq_is_idle(cpu_rq(cpu))) {
+					util_min = p_util_min;
+					util_max = p_util_max;
+				} else {
+					/*
+					 * Open code uclamp_rq_util_with() except for
+					 * the clamp() part. Ie: apply max aggregation
+					 * only. util_fits_cpu() logic requires to
+					 * operate on non clamped util but must use the
+					 * max-aggregated uclamp_{min, max}.
+					 */
+					rq_util_min = uclamp_rq_get(cpu_rq(cpu), UCLAMP_MIN);
+					rq_util_max = uclamp_rq_get(cpu_rq(cpu), UCLAMP_MAX);
+
+					util_min = max(rq_util_min, p_util_min);
+					util_max = max(rq_util_max, p_util_max);
+				}
+			}
+			if (!util_fits_cpu(util, util_min, util_max, cpu))
 				continue;
 
 			lsub_positive(&cpu_cap, util);
kernel/sched/sched.h +39 -3

63 lines not on this page · raw message

Signature · 1 line
2.35.1
author maintainer
#97 lore raw

PATCH 97/1073 sched/uclamp: Make select_idle_capacity() use util_fits_cpu()

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit b759caa1d9f667b94727b2ad12589cbc4ce13a82 ]

Use the new util_fits_cpu() to ensure migration margin and capacity pressure are taken into account correctly when uclamp is being used otherwise we will fail to consider CPUs as fitting in scenarios where they should.

Fixes b4c9c9f15649 ("sched/fair: Prefer prev cpu in asymmetric wakeup path")
---
 kernel/sched/fair.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
kernel/sched/fair.c +5 -3
index abe0e6baaa2e..892ea83864a7 100644
@@ -6603,21 +6603,23 @@ static int select_idle_cpu(struct task_struct *p, struct sched_domain *sd, bool
 static int
 select_idle_capacity(struct task_struct *p, struct sched_domain *sd, int target)
 {
-	unsigned long task_util, best_cap = 0;
+	unsigned long task_util, util_min, util_max, best_cap = 0;
 	int cpu, best_cpu = -1;
 	struct cpumask *cpus;
 
 	cpus = this_cpu_cpumask_var_ptr(select_rq_mask);
 	cpumask_and(cpus, sched_domain_span(sd), p->cpus_ptr);
 
-	task_util = uclamp_task_util(p);
+	task_util = task_util_est(p);
+	util_min = uclamp_eff_value(p, UCLAMP_MIN);
+	util_max = uclamp_eff_value(p, UCLAMP_MAX);
 
 	for_each_cpu_wrap(cpu, cpus, target) {
 		unsigned long cpu_cap = capacity_of(cpu);
 
 		if (!available_idle_cpu(cpu) && !sched_idle_cpu(cpu))
 			continue;
-		if (fits_capacity(task_util, cpu_cap))
+		if (util_fits_cpu(task_util, util_min, util_max, cpu))
 			return cpu;
 
 		if (cpu_cap > best_cap) {
Signature · 1 line
2.35.1
author maintainer
#98 lore raw

PATCH 98/1073 sched/core: Introduce sched_asym_cpucap_active()

In reply to Greg Kroah-Hartman

From: Dietmar Eggemann <[email protected]>

[ Upstream commit 740cf8a760b73e8375bfb4bedcbe9746183350f9 ]

Create an inline helper for conditional code to be only executed on asymmetric CPU capacity systems. This makes these (currently ~10 and future) conditions a lot more readable.

Stable-dep-of: a2e7f03ed28f ("sched/uclamp: Make asym_fits_capacity() use util_fits_cpu()")

---
 kernel/sched/cpudeadline.c | 2 +-
 kernel/sched/deadline.c    | 4 ++--
 kernel/sched/fair.c        | 8 ++++----
 kernel/sched/rt.c          | 4 ++--
 kernel/sched/sched.h       | 5 +++++
 5 files changed, 14 insertions(+), 9 deletions(-)
kernel/sched/cpudeadline.c +1 -1
index 02d970a879ed..57c92d751bcd 100644
@@ -123,7 +123,7 @@ int cpudl_find(struct cpudl *cp, struct task_struct *p,
 		unsigned long cap, max_cap = 0;
 		int cpu, max_cpu = -1;
 
-		if (!static_branch_unlikely(&sched_asym_cpucapacity))
+		if (!sched_asym_cpucap_active())
 			return 1;
 
 		/* Ensure the capacity of the CPUs fits the task. */
kernel/sched/deadline.c +2 -2
index 0ab79d819a0d..8bebc36a1b71 100644
@@ -144,7 +144,7 @@ static inline unsigned long __dl_bw_capacity(int i)
  */
 static inline unsigned long dl_bw_capacity(int i)
 {
-	if (!static_branch_unlikely(&sched_asym_cpucapacity) &&
+	if (!sched_asym_cpucap_active() &&
 	    capacity_orig_of(i) == SCHED_CAPACITY_SCALE) {
 		return dl_bw_cpus(i) << SCHED_CAPACITY_SHIFT;
 	} else {
@@ -1849,7 +1849,7 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags)
 	 * Take the capacity of the CPU into account to
 	 * ensure it fits the requirement of the task.
 	 */
-	if (static_branch_unlikely(&sched_asym_cpucapacity))
+	if (sched_asym_cpucap_active())
 		select_rq |= !dl_task_fits_capacity(p, cpu);
 
 	if (select_rq) {
kernel/sched/fair.c +4 -4
index 892ea83864a7..1fe3f3b96251 100644
@@ -4387,7 +4387,7 @@ static inline int task_fits_cpu(struct task_struct *p, int cpu)
 
 static inline void update_misfit_status(struct task_struct *p, struct rq *rq)
 {
-	if (!static_branch_unlikely(&sched_asym_cpucapacity))
+	if (!sched_asym_cpucap_active())
 		return;
 
 	if (!p || p->nr_cpus_allowed == 1) {
@@ -6633,7 +6633,7 @@ select_idle_capacity(struct task_struct *p, struct sched_domain *sd, int target)
 
 static inline bool asym_fits_capacity(unsigned long task_util, int cpu)
 {
-	if (static_branch_unlikely(&sched_asym_cpucapacity))
+	if (sched_asym_cpucap_active())
 		return fits_capacity(task_util, capacity_of(cpu));
 
 	return true;
@@ -6653,7 +6653,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	 * On asymmetric system, update task utilization because we will check
 	 * that the task fits with cpu's capacity.
 	 */
-	if (static_branch_unlikely(&sched_asym_cpucapacity)) {
+	if (sched_asym_cpucap_active()) {
 		sync_entity_load_avg(&p->se);
 		task_util = uclamp_task_util(p);
 	}
@@ -6707,7 +6707,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	 * For asymmetric CPU capacity systems, our domain of interest is
 	 * sd_asym_cpucapacity rather than sd_llc.
 	 */
-	if (static_branch_unlikely(&sched_asym_cpucapacity)) {
+	if (sched_asym_cpucap_active()) {
 		sd = rcu_dereference(per_cpu(sd_asym_cpucapacity, target));
 		/*
 		 * On an asymmetric CPU capacity system where an exclusive
kernel/sched/rt.c +2 -2
index 55f39c8f4203..054b6711e961 100644
@@ -509,7 +509,7 @@ static inline bool rt_task_fits_capacity(struct task_struct *p, int cpu)
 	unsigned int cpu_cap;
 
 	/* Only heterogeneous systems can benefit from this check */
-	if (!static_branch_unlikely(&sched_asym_cpucapacity))
+	if (!sched_asym_cpucap_active())
 		return true;
 
 	min_cap = uclamp_eff_value(p, UCLAMP_MIN);
@@ -1897,7 +1897,7 @@ static int find_lowest_rq(struct task_struct *task)
 	 * If we're on asym system ensure we consider the different capacities
 	 * of the CPUs when searching for the lowest_mask.
 	 */
-	if (static_branch_unlikely(&sched_asym_cpucapacity)) {
+	if (sched_asym_cpucap_active()) {
 
 		ret = cpupri_find_fitness(&task_rq(task)->rd->cpupri,
 					  task, lowest_mask,
kernel/sched/sched.h +5 -0
index 0dfcd12e184a..2fcb7eb56c01 100644
@@ -1815,6 +1815,11 @@ DECLARE_PER_CPU(struct sched_domain __rcu *, sd_asym_packing);
 DECLARE_PER_CPU(struct sched_domain __rcu *, sd_asym_cpucapacity);
 extern struct static_key_false sched_asym_cpucapacity;
 
+static __always_inline bool sched_asym_cpucap_active(void)
+{
+	return static_branch_unlikely(&sched_asym_cpucapacity);
+}
+
 struct sched_group_capacity {
 	atomic_t		ref;
 	/*
Signature · 1 line
2.35.1
author maintainer
#99 lore raw

PATCH 99/1073 sched/uclamp: Make asym_fits_capacity() use util_fits_cpu()

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit a2e7f03ed28fce26c78b985f87913b6ce3accf9d ]

Use the new util_fits_cpu() to ensure migration margin and capacity pressure are taken into account correctly when uclamp is being used otherwise we will fail to consider CPUs as fitting in scenarios where they should.

s/asym_fits_capacity/asym_fits_cpu/ to better reflect what it does now.

Fixes b4c9c9f15649 ("sched/fair: Prefer prev cpu in asymmetric wakeup path")
---
 kernel/sched/fair.c | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)
kernel/sched/fair.c +13 -8
index 1fe3f3b96251..cb4d47441a41 100644
@@ -6631,10 +6631,13 @@ select_idle_capacity(struct task_struct *p, struct sched_domain *sd, int target)
 	return best_cpu;
 }
 
-static inline bool asym_fits_capacity(unsigned long task_util, int cpu)
+static inline bool asym_fits_cpu(unsigned long util,
+				 unsigned long util_min,
+				 unsigned long util_max,
+				 int cpu)
 {
 	if (sched_asym_cpucap_active())
-		return fits_capacity(task_util, capacity_of(cpu));
+		return util_fits_cpu(util, util_min, util_max, cpu);
 
 	return true;
 }
@@ -6646,7 +6649,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 {
 	bool has_idle_core = false;
 	struct sched_domain *sd;
-	unsigned long task_util;
+	unsigned long task_util, util_min, util_max;
 	int i, recent_used_cpu;
 
 	/*
@@ -6655,7 +6658,9 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	 */
 	if (sched_asym_cpucap_active()) {
 		sync_entity_load_avg(&p->se);
-		task_util = uclamp_task_util(p);
+		task_util = task_util_est(p);
+		util_min = uclamp_eff_value(p, UCLAMP_MIN);
+		util_max = uclamp_eff_value(p, UCLAMP_MAX);
 	}
 
 	/*
@@ -6664,7 +6669,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	lockdep_assert_irqs_disabled();
 
 	if ((available_idle_cpu(target) || sched_idle_cpu(target)) &&
-	    asym_fits_capacity(task_util, target))
+	    asym_fits_cpu(task_util, util_min, util_max, target))
 		return target;
 
 	/*
@@ -6672,7 +6677,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	 */
 	if (prev != target && cpus_share_cache(prev, target) &&
 	    (available_idle_cpu(prev) || sched_idle_cpu(prev)) &&
-	    asym_fits_capacity(task_util, prev))
+	    asym_fits_cpu(task_util, util_min, util_max, prev))
 		return prev;
 
 	/*
@@ -6687,7 +6692,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	    in_task() &&
 	    prev == smp_processor_id() &&
 	    this_rq()->nr_running <= 1 &&
-	    asym_fits_capacity(task_util, prev)) {
+	    asym_fits_cpu(task_util, util_min, util_max, prev)) {
 		return prev;
 	}
 
@@ -6699,7 +6704,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	    cpus_share_cache(recent_used_cpu, target) &&
 	    (available_idle_cpu(recent_used_cpu) || sched_idle_cpu(recent_used_cpu)) &&
 	    cpumask_test_cpu(p->recent_used_cpu, p->cpus_ptr) &&
-	    asym_fits_capacity(task_util, recent_used_cpu)) {
+	    asym_fits_cpu(task_util, util_min, util_max, recent_used_cpu)) {
 		return recent_used_cpu;
 	}
 
Signature · 1 line
2.35.1
author maintainer
#100 lore raw

PATCH 100/1073 sched/uclamp: Make cpu_overutilized() use util_fits_cpu()

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit c56ab1b3506ba0e7a872509964b100912bde165d ]

So that it is now uclamp aware.

This fixes a major problem of busy tasks capped with UCLAMP_MAX keeping the system in overutilized state which disables EAS and leads to wasting energy in the long run.

Without this patch running a busy background activity like JIT compilation on Pixel 6 causes the system to be in overutilized state 74.5% of the time.

With this patch this goes down to 9.79%.

It also fixes another problem when long running tasks that have their UCLAMP_MIN changed while running such that they need to upmigrate to honour the new UCLAMP_MIN value. The upmigration doesn't get triggered because overutilized state never gets set in this state, hence misfit migration never happens at tick in this case until the task wakes up again.

Fixes af24bde8df202 ("sched/uclamp: Add uclamp support to energy_compute()")
---
 kernel/sched/fair.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
kernel/sched/fair.c +4 -1
index cb4d47441a41..2e782d79e80f 100644
@@ -5807,7 +5807,10 @@ static inline void hrtick_update(struct rq *rq)
 #ifdef CONFIG_SMP
 static inline bool cpu_overutilized(int cpu)
 {
-	return !fits_capacity(cpu_util_cfs(cpu), capacity_of(cpu));
+	unsigned long rq_util_min = uclamp_rq_get(cpu_rq(cpu), UCLAMP_MIN);
+	unsigned long rq_util_max = uclamp_rq_get(cpu_rq(cpu), UCLAMP_MAX);
+
+	return !util_fits_cpu(cpu_util_cfs(cpu), rq_util_min, rq_util_max, cpu);
 }
 
 static inline void update_overutilized_status(struct rq *rq)
Signature · 1 line
2.35.1
author maintainer
#101 lore raw

PATCH 101/1073 sched/uclamp: Cater for uclamp in find_energy_efficient_cpu()s early exit condition

In reply to Greg Kroah-Hartman

From: Qais Yousef <[email protected]>

[ Upstream commit d81304bc6193554014d4372a01debdf65e1e9a4d ]

If the utilization of the woken up task is 0, we skip the energy calculation because it has no impact.

But if the task is boosted (uclamp_min != 0) will have an impact on task placement and frequency selection. Only skip if the util is truly 0 after applying uclamp values.

Change uclamp_task_cpu() signature to avoid unnecessary additional calls to uclamp_eff_get(). feec() is the only user now.

Fixes 732cd75b8c920 ("sched/fair: Select an energy-efficient CPU on task wake-up")
---
 kernel/sched/fair.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
kernel/sched/fair.c +8 -6
index 2e782d79e80f..532e6cdf706d 100644
@@ -4108,14 +4108,16 @@ static inline unsigned long task_util_est(struct task_struct *p)
 }
 
 #ifdef CONFIG_UCLAMP_TASK
-static inline unsigned long uclamp_task_util(struct task_struct *p)
+static inline unsigned long uclamp_task_util(struct task_struct *p,
+					     unsigned long uclamp_min,
+					     unsigned long uclamp_max)
 {
-	return clamp(task_util_est(p),
-		     uclamp_eff_value(p, UCLAMP_MIN),
-		     uclamp_eff_value(p, UCLAMP_MAX));
+	return clamp(task_util_est(p), uclamp_min, uclamp_max);
 }
 #else
-static inline unsigned long uclamp_task_util(struct task_struct *p)
+static inline unsigned long uclamp_task_util(struct task_struct *p,
+					     unsigned long uclamp_min,
+					     unsigned long uclamp_max)
 {
 	return task_util_est(p);
 }
@@ -7029,7 +7031,7 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu)
 	target = prev_cpu;
 
 	sync_entity_load_avg(&p->se);
-	if (!task_util_est(p))
+	if (!uclamp_task_util(p, p_util_min, p_util_max))
 		goto unlock;
 
 	eenv_task_busy_time(&eenv, p, prev_cpu);
Signature · 1 line
2.35.1
author maintainer
#102 lore raw

PATCH 102/1073 cpuidle: dt: Return the correct numbers of parsed idle states

In reply to Greg Kroah-Hartman

From: Ulf Hansson <[email protected]>

[ Upstream commit ee3c2c8ad6ba6785f14a60e4081d7c82e88162a2 ]

While we correctly skips to initialize an idle state from a disabled idle state node in DT, the returned value from dt_init_idle_driver() don't get adjusted accordingly. Instead the number of found idle state nodes are returned, while the callers are expecting the number of successfully initialized idle states from DT.

This leads to cpuidle drivers unnecessarily continues to initialize their idle state specific data. Moreover, in the case when all idle states have been disabled in DT, we would end up registering a cpuidle driver, rather than relying on the default arch specific idle call.

Fixes 9f14da345599 ("drivers: cpuidle: implement DT based idle states infrastructure")
---
 drivers/cpuidle/dt_idle_states.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpuidle/dt_idle_states.c +1 -1
index 252f2a9686a6..448bc796b0b4 100644
@@ -223,6 +223,6 @@ int dt_init_idle_driver(struct cpuidle_driver *drv,
 	 * also be 0 on platforms with missing DT idle states or legacy DT
 	 * configuration predating the DT idle states bindings.
 	 */
-	return i;
+	return state_idx - start_idx;
 }
 EXPORT_SYMBOL_GPL(dt_init_idle_driver);
Signature · 1 line
2.35.1
author maintainer
#103 lore raw

PATCH 103/1073 alpha: fix TIF_NOTIFY_SIGNAL handling

In reply to Greg Kroah-Hartman

From: Al Viro <[email protected]>

[ Upstream commit e2c7554cc6d85f95e3c6635f270ec839ab9fe05e ]

it needs to be added to _TIF_WORK_MASK, or we might not reach do_work_pending() in the first place...

Fixes 5a9a8897c253a "alpha: add support for TIF_NOTIFY_SIGNAL"
---
 arch/alpha/include/asm/thread_info.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/alpha/include/asm/thread_info.h +1 -1
index fdc485d7787a..084c27cb0c70 100644
@@ -75,7 +75,7 @@ register struct thread_info *__current_thread_info __asm__("$8");
 
 /* Work to do on interrupt/exception return.  */
 #define _TIF_WORK_MASK		(_TIF_SIGPENDING | _TIF_NEED_RESCHED | \
-				 _TIF_NOTIFY_RESUME)
+				 _TIF_NOTIFY_RESUME | _TIF_NOTIFY_SIGNAL)
 
 /* Work to do on any return to userspace.  */
 #define _TIF_ALLWORK_MASK	(_TIF_WORK_MASK		\
Signature · 1 line
2.35.1
author maintainer
#104 lore raw

PATCH 104/1073 alpha: fix syscall entry in !AUDUT_SYSCALL case

In reply to Greg Kroah-Hartman

From: Al Viro <[email protected]>

[ Upstream commit f7b2431a6d22f7a91c567708e071dfcd6d66db14 ]

We only want to take the slow path if SYSCALL_TRACE or SYSCALL_AUDIT is set; on !AUDIT_SYSCALL configs the current tree hits it whenever _any_ thread flag (including NEED_RESCHED, NOTIFY_SIGNAL, etc.) happens to be set.

Fixes a9302e843944 "alpha: Enable system-call auditing support"
---
 arch/alpha/kernel/entry.S | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/alpha/kernel/entry.S +3 -1
index e227f3a29a43..c41a5a9c3b9f 100644
@@ -469,8 +469,10 @@ entSys:
 #ifdef CONFIG_AUDITSYSCALL
 	lda     $6, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
 	and     $3, $6, $3
-#endif
 	bne     $3, strace
+#else
+	blbs    $3, strace		/* check for SYSCALL_TRACE in disguise */
+#endif
 	beq	$4, 1f
 	ldq	$27, 0($5)
 1:	jsr	$26, ($27), sys_ni_syscall
Signature · 1 line
2.35.1
author maintainer
#105 lore raw

PATCH 105/1073 sched/psi: Fix possible missing or delayed pending event

In reply to Greg Kroah-Hartman

From: Hao Lee <[email protected]>

[ Upstream commit e38f89af6a13e895805febd3a329a13ab7e66fa4 ]

When a pending event exists and growth is less than the threshold, the current logic is to skip this trigger without generating event. However, from e6df4ead85d9 ("psi: fix possible trigger missing in the window"), our purpose is to generate event as long as pending event exists and the rate meets the limit, no matter what growth is.
This patch handles this case properly.

---
 kernel/sched/psi.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
kernel/sched/psi.c +5 -3
index ecb4b4ff4ce0..559416a27c0e 100644
@@ -537,10 +537,12 @@ static u64 update_triggers(struct psi_group *group, u64 now)
 
 			/* Calculate growth since last update */
 			growth = window_update(&t->win, now, total[t->state]);
-			if (growth < t->threshold)
-				continue;
+			if (!t->pending_event) {
+				if (growth < t->threshold)
+					continue;
 
-			t->pending_event = true;
+				t->pending_event = true;
+			}
 		}
 		/* Limit event signaling to once per window */
 		if (now < t->last_event_time + t->win.size)
Signature · 1 line
2.35.1
author maintainer
#106 lore raw

PATCH 106/1073 x86/sgx: Reduce delay and interference of enclave release

In reply to Greg Kroah-Hartman

From: Reinette Chatre <[email protected]>

[ Upstream commit 7b72c823ddf8aaaec4e9fb28e6fbe4d511e7dad1 ]

commit 8795359e35bc ("x86/sgx: Silence softlockup detection when releasing large enclaves") introduced a cond_resched() during enclave release where the EREMOVE instruction is applied to every 4k enclave page. Giving other tasks an opportunity to run while tearing down a large enclave placates the soft lockup detector but Iqbal found that the fix causes a 25% performance degradation of a workload run using Gramine.

Gramine maintains a 1:1 mapping between processes and SGX enclaves. That means if a workload in an enclave creates a subprocess then Gramine creates a duplicate enclave for that subprocess to run in. The consequence is that the release of the enclave used to run the subprocess can impact the performance of the workload that is run in the original enclave, especially in large enclaves when SGX2 is not in use.

The workload run by Iqbal behaves as follows:
Create enclave (enclave "A")
/* Initialize workload in enclave "A" */
Create enclave (enclave "B")
/* Run subprocess in enclave "B" and send result to enclave "A" */ Release enclave (enclave "B")
/* Run workload in enclave "A" */
Release enclave (enclave "A")

The performance impact of releasing enclave "B" in the above scenario is amplified when there is a lot of SGX memory and the enclave size matches the SGX memory. When there is 128GB SGX memory and an enclave size of 128GB, from the time enclave "B" starts the 128GB SGX memory is oversubscribed with a combined demand for 256GB from the two enclaves.

Before commit 8795359e35bc ("x86/sgx: Silence softlockup detection when releasing large enclaves") enclave release was done in a tight loop without giving other tasks a chance to run. Even though the system experienced soft lockups the workload (run in enclave "A") obtained good performance numbers because when the workload started running there was no interference.

Commit 8795359e35bc ("x86/sgx: Silence softlockup detection when releasing large enclaves") gave other tasks opportunity to run while an enclave is released. The impact of this in this scenario is that while enclave "B" is released and needing to access each page that belongs to it in order to run the SGX EREMOVE instruction on it, enclave "A" is attempting to run the workload needing to access the enclave pages that belong to it. This causes a lot of swapping due to the demand for the oversubscribed SGX memory. Longer latencies are experienced by the workload in enclave "A" while enclave "B" is released.

Improve the performance of enclave release while still avoiding the soft lockup detector with two enhancements:
- Only call cond_resched() after XA_CHECK_SCHED iterations.
- Use the xarray advanced API to keep the xarray locked for XA_CHECK_SCHED iterations instead of locking and unlocking at every iteration.

This batching solution is copied from sgx_encl_may_map() that also iterates through all enclave pages using this technique.

With this enhancement the workload experiences a 5% performance degradation when compared to a kernel without commit 8795359e35bc ("x86/sgx: Silence softlockup detection when releasing large enclaves"), an improvement to the reported 25% degradation, while still placating the soft lockup detector.

Scenarios with poor performance are still possible even with these enhancements. For example, short workloads creating sub processes while running in large enclaves. Further performance improvements are pursued in user space through avoiding to create duplicate enclaves for certain sub processes, and using SGX2 that will do lazy allocation of pages as needed so enclaves created for sub processes start quickly and release quickly.

---
 arch/x86/kernel/cpu/sgx/encl.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
arch/x86/kernel/cpu/sgx/encl.c +19 -4
index 8bdeae2fc309..6942a3d8b578 100644
@@ -677,11 +677,15 @@ const struct vm_operations_struct sgx_vm_ops = {
 void sgx_encl_release(struct kref *ref)
 {
 	struct sgx_encl *encl = container_of(ref, struct sgx_encl, refcount);
+	unsigned long max_page_index = PFN_DOWN(encl->base + encl->size - 1);
 	struct sgx_va_page *va_page;
 	struct sgx_encl_page *entry;
-	unsigned long index;
+	unsigned long count = 0;
+
+	XA_STATE(xas, &encl->page_array, PFN_DOWN(encl->base));
 
-	xa_for_each(&encl->page_array, index, entry) {
+	xas_lock(&xas);
+	xas_for_each(&xas, entry, max_page_index) {
 		if (entry->epc_page) {
 			/*
 			 * The page and its radix tree entry cannot be freed
@@ -696,9 +700,20 @@ void sgx_encl_release(struct kref *ref)
 		}
 
 		kfree(entry);
-		/* Invoke scheduler to prevent soft lockups. */
-		cond_resched();
+		/*
+		 * Invoke scheduler on every XA_CHECK_SCHED iteration
+		 * to prevent soft lockups.
+		 */
+		if (!(++count % XA_CHECK_SCHED)) {
+			xas_pause(&xas);
+			xas_unlock(&xas);
+
+			cond_resched();
+
+			xas_lock(&xas);
+		}
 	}
+	xas_unlock(&xas);
 
 	xa_destroy(&encl->page_array);
 
Signature · 1 line
2.35.1
author maintainer
#107 lore raw

PATCH 107/1073 PM: hibernate: Fix mistake in kerneldoc comment

In reply to Greg Kroah-Hartman

From: xiongxin <[email protected]>

[ Upstream commit 6e5d7300cbe7c3541bc31f16db3e9266e6027b4b ]

The actual maximum image size formula in hibernate_preallocate_memory() is as follows:

max_size = (count - (size + PAGES_FOR_IO)) / 2
- 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE);

but the one in the kerneldoc comment of the function is different and incorrect.

Fixes ddeb64870810 ("PM / Hibernate: Add sysfs knob to control size of memory for drivers")
[ rjw: Subject and changelog rewrite ]
---
 kernel/power/snapshot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/power/snapshot.c +2 -2
index 2a406753af90..c20ca5fb9adc 100644
@@ -1723,8 +1723,8 @@ static unsigned long minimum_image_size(unsigned long saveable)
  * /sys/power/reserved_size, respectively).  To make this happen, we compute the
  * total number of available page frames and allocate at least
  *
- * ([page frames total] + PAGES_FOR_IO + [metadata pages]) / 2
- *  + 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE)
+ * ([page frames total] - PAGES_FOR_IO - [metadata pages]) / 2
+ *  - 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE)
  *
  * of them, which corresponds to the maximum size of a hibernation image.
  *
Signature · 1 line
2.35.1
author maintainer
#108 lore raw

PATCH 108/1073 fs: dont audit the capability check in simple_xattr_list()

In reply to Greg Kroah-Hartman

From: Ondrej Mosnacek <[email protected]>

[ Upstream commit e7eda157c4071cd1e69f4b1687b0fbe1ae5e6f46 ]

The check being unconditional may lead to unwanted denials reported by LSMs when a process has the capability granted by DAC, but denied by an LSM. In the case of SELinux such denials are a problem, since they can't be effectively filtered out via the policy and when not silenced, they produce noise that may hide a true problem or an attack.

Checking for the capability only if any trusted xattr is actually present wouldn't really address the issue, since calling listxattr(2) on such node on its own doesn't indicate an explicit attempt to see the trusted xattrs. Additionally, it could potentially leak the presence of trusted xattrs to an unprivileged user if they can check for the denials (e.g. through dmesg).

Therefore, it's best (and simplest) to keep the check unconditional and instead use ns_capable_noaudit() that will silence any associated LSM denials.

---
 fs/xattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xattr.c +1 -1
index a1f4998bc6be..8ea6b104b106 100644
@@ -1147,7 +1147,7 @@ static int xattr_list_one(char **buffer, ssize_t *remaining_size,
 ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs,
 			  char *buffer, size_t size)
 {
-	bool trusted = capable(CAP_SYS_ADMIN);
+	bool trusted = ns_capable_noaudit(&init_user_ns, CAP_SYS_ADMIN);
 	struct simple_xattr *xattr;
 	ssize_t remaining_size = size;
 	int err = 0;
Signature · 1 line
2.35.1
author maintainer
#109 lore raw

PATCH 109/1073 cpufreq: qcom-hw: Fix memory leak in qcom_cpufreq_hw_read_lut()

In reply to Greg Kroah-Hartman

From: Chen Hui <[email protected]>

[ Upstream commit 9901c21bcaf2f01fe5078f750d624f4ddfa8f81b ]

If "cpu_dev" fails to get opp table in qcom_cpufreq_hw_read_lut(), the program will return, resulting in "table" resource is not released.

Fixes 51c843cf77bb ("cpufreq: qcom: Update the bandwidth levels on frequency change")
---
 drivers/cpufreq/qcom-cpufreq-hw.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/qcom-cpufreq-hw.c +1 -0
index bb32659820ce..9221a416230a 100644
@@ -190,6 +190,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev,
 		}
 	} else if (ret != -ENODEV) {
 		dev_err(cpu_dev, "Invalid opp table in device tree\n");
+		kfree(table);
 		return ret;
 	} else {
 		policy->fast_switch_possible = true;
Signature · 1 line
2.35.1
author maintainer
#110 lore raw

PATCH 110/1073 x86/split_lock: Add sysctl to control the misery mode

In reply to Greg Kroah-Hartman

From: Guilherme G. Piccoli <[email protected]>

[ Upstream commit 727209376f4998bc84db1d5d8af15afea846a92b ]

Commit b041b525dab9 ("x86/split_lock: Make life miserable for split lockers") changed the way the split lock detector works when in "warn" mode; basically, it not only shows the warn message, but also intentionally introduces a slowdown through sleeping plus serialization mechanism on such task. Based on discussions in [0], seems the warning alone wasn't enough motivation for userspace developers to fix their applications.

This slowdown is enough to totally break some proprietary (aka. unfixable) userspace[1].

Happens that originally the proposal in [0] was to add a new mode which would warns + slowdown the "split locking" task, keeping the old warn mode untouched. In the end, that idea was discarded and the regular/default "warn" mode now slows down the applications. This is quite aggressive with regards proprietary/legacy programs that basically are unable to properly run in kernel with this change. While it is understandable that a malicious application could DoS by split locking, it seems unacceptable to regress old/proprietary userspace programs through a default configuration that previously worked. An example of such breakage was reported in [1].

Add a sysctl to allow controlling the "misery mode" behavior, as per Thomas suggestion on [2]. This way, users running legacy and/or proprietary software are allowed to still execute them with a decent performance while still observing the warning messages on kernel log.

[0] https://lore.kernel.org/lkml/[email protected]/
[1] https://github.com/doitsujin/dxvk/issues/2938
[2] https://lore.kernel.org/lkml/87pmf4bter.ffs@tglx/

[ dhansen: minor changelog tweaks, including clarifying the actual
problem ]

---
 Documentation/admin-guide/sysctl/kernel.rst | 23 ++++++++
 arch/x86/kernel/cpu/intel.c                 | 63 +++++++++++++++++----
 2 files changed, 76 insertions(+), 10 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +23 -0
index ee6572b1edad..66d1b23ca64f 100644
@@ -1298,6 +1298,29 @@ watchdog work to be queued by the watchdog timer function, otherwise the NMI
 watchdog — if enabled — can detect a hard lockup condition.
 
 
+split_lock_mitigate (x86 only)
+==============================
+
+On x86, each "split lock" imposes a system-wide performance penalty. On larger
+systems, large numbers of split locks from unprivileged users can result in
+denials of service to well-behaved and potentially more important users.
+
+The kernel mitigates these bad users by detecting split locks and imposing
+penalties: forcing them to wait and only allowing one core to execute split
+locks at a time.
+
+These mitigations can make those bad applications unbearably slow. Setting
+split_lock_mitigate=0 may restore some application performance, but will also
+increase system exposure to denial of service attacks from split lock users.
+
+= ===================================================================
+0 Disable the mitigation mode - just warns the split lock on kernel log
+  and exposes the system to denials of service from the split lockers.
+1 Enable the mitigation mode (this is the default) - penalizes the split
+  lockers with intentional performance degradation.
+= ===================================================================
+
+
 stack_erasing
 =============
 
arch/x86/kernel/cpu/intel.c +53 -10

97 lines not on this page · raw message

Signature · 1 line
2.35.1
author maintainer
#111 lore raw

PATCH 111/1073 ACPI: irq: Fix some kernel-doc issues

In reply to Greg Kroah-Hartman

From: Xiongfeng Wang <[email protected]>

[ Upstream commit ebb92d58b90753e658059f5d8590d9048395491a ]

The following commit change the second parameter of acpi_set_irq_model() but forgot to update the function description. Let's fix it.

commit 7327b16f5f56 ("APCI: irq: Add support for multiple GSI domains")

Also add description of parameter 'gsi' for acpi_get_irq_source_fwhandle() to avoid the following build W=1 warning.

drivers/acpi/irq.c:108: warning: Function parameter or member 'gsi' not described in 'acpi_get_irq_source_fwhandle'

Fixes 7327b16f5f56 ("APCI: irq: Add support for multiple GSI domains")
---
 drivers/acpi/irq.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/acpi/irq.c +3 -2
index dabe45eba055..0d9a17fdd83e 100644
@@ -94,6 +94,7 @@ EXPORT_SYMBOL_GPL(acpi_unregister_gsi);
 /**
  * acpi_get_irq_source_fwhandle() - Retrieve fwhandle from IRQ resource source.
  * @source: acpi_resource_source to use for the lookup.
+ * @gsi: GSI IRQ number
  *
  * Description:
  * Retrieve the fwhandle of the device referenced by the given IRQ resource
@@ -295,8 +296,8 @@ EXPORT_SYMBOL_GPL(acpi_irq_get);
 /**
  * acpi_set_irq_model - Setup the GSI irqdomain information
  * @model: the value assigned to acpi_irq_model
- * @fwnode: the irq_domain identifier for mapping and looking up
- *          GSI interrupts
+ * @fn: a dispatcher function that will return the domain fwnode
+ *	for a given GSI
  */
 void __init acpi_set_irq_model(enum acpi_irq_model_id model,
 			       struct fwnode_handle *(*fn)(u32))
Signature · 1 line
2.35.1
author maintainer
#112 lore raw

PATCH 112/1073 selftests/ftrace: event_triggers: wait longer for test_event_enable

In reply to Greg Kroah-Hartman

From: Yipeng Zou <[email protected]>

[ Upstream commit a1d6cd88c8973cfb08ee85722488b1d6d5d16327 ]

In some platform, the schedule event may came slowly, delay 100ms can't cover it.

I was notice that on my board which running in low cpu_freq,and this selftests allways gose fail.

So maybe we can check more times here to wait longer.

Fixes 43bb45da82f9 ("selftests: ftrace: Add a selftest to test event enable/disable func trigger")
---
 .../ftrace/test.d/ftrace/func_event_triggers.tc   | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc +11 -4
index 3145b0f1835c..27a68bbe778b 100644
@@ -38,11 +38,18 @@ cnt_trace() {
 
 test_event_enabled() {
     val=$1
+    check_times=10		# wait for 10 * SLEEP_TIME at most
 
-    e=`cat $EVENT_ENABLE`
-    if [ "$e" != $val ]; then
-	fail "Expected $val but found $e"
-    fi
+    while [ $check_times -ne 0 ]; do
+	e=`cat $EVENT_ENABLE`
+	if [ "$e" == $val ]; then
+	    return 0
+	fi
+	sleep $SLEEP_TIME
+	check_times=$((check_times - 1))
+    done
+
+    fail "Expected $val but found $e"
 }
 
 run_enable_disable() {
Signature · 1 line
2.35.1
author maintainer
#113 lore raw

PATCH 113/1073 perf: Fix possible memleak in pmu_dev_alloc()

In reply to Greg Kroah-Hartman

From: Chen Zhongjin <[email protected]>

[ Upstream commit e8d7a90c08ce963c592fb49845f2ccc606a2ac21 ]

In pmu_dev_alloc(), when dev_set_name() failed, it will goto free_dev and call put_device(pmu->dev) to release it.
However pmu->dev->release is assigned after this, which makes warning and memleak.
Call dev_set_name() after pmu->dev->release = pmu_dev_release to fix it.

Device '(null)' does not have a release() function...

  WARNING: CPU: 2 PID: 441 at drivers/base/core.c:2332 device_release+0x1b9/0x240
  ...
  Call Trace:
    <TASK>
    kobject_put+0x17f/0x460
    put_device+0x20/0x30
    pmu_dev_alloc+0x152/0x400
    perf_pmu_register+0x96b/0xee0
    ...
  kmemleak: 1 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
  unreferenced object 0xffff888014759000 (size 2048):
    comm "modprobe", pid 441, jiffies 4294931444 (age 38.332s)
    backtrace:
      [<0000000005aed3b4>] kmalloc_trace+0x27/0x110
      [<000000006b38f9b8>] pmu_dev_alloc+0x50/0x400
      [<00000000735f17be>] perf_pmu_register+0x96b/0xee0
      [<00000000e38477f1>] 0xffffffffc0ad8603
      [<000000004e162216>] do_one_initcall+0xd0/0x4e0
      ...
---
 kernel/events/core.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
kernel/events/core.c +5 -3
index 91473e9f88cd..a636fab5e381 100644
@@ -11136,13 +11136,15 @@ static int pmu_dev_alloc(struct pmu *pmu)
 
 	pmu->dev->groups = pmu->attr_groups;
 	device_initialize(pmu->dev);
-	ret = dev_set_name(pmu->dev, "%s", pmu->name);
-	if (ret)
-		goto free_dev;
 
 	dev_set_drvdata(pmu->dev, pmu);
 	pmu->dev->bus = &pmu_bus;
 	pmu->dev->release = pmu_dev_release;
+
+	ret = dev_set_name(pmu->dev, "%s", pmu->name);
+	if (ret)
+		goto free_dev;
+
 	ret = device_add(pmu->dev);
 	if (ret)
 		goto free_dev;
Signature · 1 line
2.35.1