Skip to contentSkip to conversation

6.1.2-rc1 review

PATCH Applied Greg Kroah-Hartman 18 participants 1,171 messages Dec 28, 2022 – Dec 30, 2022 Page 1 of 8

Subsystems (14)
lore
Share & tools
lore
author maintainer
#1 lore raw

PATCH 1/1146 MIPS: DTS: CI20: fix reset line polarity of the ethernet controller

In reply to Greg Kroah-Hartman

From: Dmitry Torokhov <[email protected]>

commit ca637c0ece144ce62ec8ef75dc127bcccd4f442a upstream.

The reset line is called PWRST#, annotated as "active low" in the binding documentation, and is driven low and then high by the driver to reset the chip. However in device tree for CI20 board it was incorrectly marked as "active high". Fix it.

Because (as far as I know) the ci20.dts is always built in the kernel I elected not to also add a quirk to gpiolib to force the polarity there.

Fixes db49ca38579d ("net: davicom: dm9000: switch to using gpiod API")
Cc Sudip Mukherjee <[email protected]>
---
 arch/mips/boot/dts/ingenic/ci20.dts |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/ingenic/ci20.dts +1 -1
@@ -438,7 +438,7 @@
 		ingenic,nemc-tAW = <50>;
 		ingenic,nemc-tSTRV = <100>;
 
-		reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&gpf 12 GPIO_ACTIVE_LOW>;
 		vcc-supply = <&eth0_power>;
 
 		interrupt-parent = <&gpe>;
author maintainer
#2 lore raw

PATCH 2/1146 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

Greg Kroah-Hartman

author maintainer
#0 lore raw

cover 6.1.2-rc1 review

This is the start of the stable review cycle for the 6.1.2 release. There are 1146 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:29 +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.1.2-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.1.y
and the diffstat can be found below.

thanks,

greg k-h

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

Greg Kroah-Hartman <[email protected]>

    Linux 6.1.2-rc1

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

Jens Axboe <[email protected]>
io_uring/net: ensure compat import handlers clear free_iov

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

Pavel Begunkov <[email protected]>
io_uring: dont remove file from msg_ring reqs

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

Stefan Metzmacher <[email protected]>
io_uring/net: introduce IORING_SEND_ZC_REPORT_USAGE flag

Tejun Heo <[email protected]>
blk-iolatency: Fix memory leak on add_disk() failures

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

Liam Howlett <[email protected]>
maple_tree: fix mas_spanning_rebalance() on insufficient data

Liam Howlett <[email protected]>
test_maple_tree: add test for mas_spanning_rebalance() on insufficient data

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

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

Christophe Leroy <[email protected]>
spi: fsl_spi: Don't change speed while chipselect is active

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

Miaoqian Lin <[email protected]>
usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init

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

Takashi Iwai <[email protected]>
ALSA: usb-audio: Workaround for XRUN at prepare

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 - add support for IQS7222A v1.13+

Jeff LaBundy <[email protected]>
Input: iqs7222 - report malformed properties

Jeff LaBundy <[email protected]>
Input: iqs7222 - drop unused device node references

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

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

Sami Tolvanen <[email protected]>
cfi: Fix CFI failure with KASAN

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 probe: Check -v and -q options in the right place

James Clark <[email protected]>
perf tools: Make quiet mode consistent between tools

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

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

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()

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

Jacob Keller <[email protected]>
ice: synchronize the misc IRQ when tearing down Tx tracker

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()

Prathamesh Shete <[email protected]>
mmc: sdhci-tegra: Issue CMD and DAT resets together

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

Liang He <[email protected]>
drm/amdgpu: Fix potential double free and null pointer dereference

John Keeping <[email protected]>
ALSA: usb-audio: Add quirk for Tascam Model 12

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

Ilya Bakoulin <[email protected]>
drm/amd/display: Fix display corruption w/ VSR enable

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

Kees Cook <[email protected]>
bpf/verifier: Use kmalloc_size_roundup() to match ksize() usage

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

Alvin Lee <[email protected]>
drm/amd/display: Use min transition for SubVP into MPO

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: uclogic: Add support for XP-PEN Deco LW

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

Jisoo Jang <[email protected]>
wifi: brcmfmac: Fix potential NULL pointer dereference in 'brcmf_c_preinit_dcmds()'

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

zhikzhai <[email protected]>
drm/amd/display: skip commit minimal transition state

Kees Cook <[email protected]>
bnx2: Use kmalloc_size_roundup() to match ksize() usage

Kees Cook <[email protected]>
openvswitch: Use kmalloc_size_roundup() to match ksize() usage

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

Josef Bacik <[email protected]>
btrfs: do not panic if we can't allocate a prealloc extent state

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()

Hans de Goede <[email protected]>
ACPI: video: Add force_native quirk for Sony Vaio VPCY11S1E

Hans de Goede <[email protected]>
ACPI: video: Add force_vendor quirk for Sony Vaio PCG-FRV35

Hans de Goede <[email protected]>
ACPI: video: Change Sony Vaio VPCEH3U1E quirk to force_native

Hans de Goede <[email protected]>
ACPI: video: Change GIGABYTE GB-BXBT-2807 quirk to force_none

Guenter Roeck <[email protected]>
thermal/core: Ensure that thermal device is registered in thermal_zone_get_temp

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

Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm8450: disable SDHCI SDR104/SDR50 on all boards

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()

Wei Fang <[email protected]>
net: fec: check the return value of build_skb()

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

Arun Ramadoss <[email protected]>
net: dsa: microchip: remove IRQF_TRIGGER_FALLING in request_threaded_irq

Paulo Alcantara <[email protected]>
cifs: don't leak -ENOMEM in smb2_open_file()

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

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()

Robin Murphy <[email protected]>
iommu: Avoid races around device probe

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()

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

    rtc: pcf2127: Convert to .probe_new()

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

Manivannan Sadhasivam <[email protected]>
phy: qcom-qmp-pcie: Fix high latency with 4x2 PHY when ASPM is enabled

Dmitry Baryshkov <[email protected]>
phy: qcom-qmp-pcie: Support SM8450 PCIe1 PHY in EP mode

Dmitry Baryshkov <[email protected]>
phy: qcom-qmp-pcie: support separate tables for EP mode

Christian Marangi <[email protected]>
phy: qcom-qmp-pcie: split pcs_misc init cfg for ipq8074 pcs table

Dmitry Baryshkov <[email protected]>
phy: qcom-qmp-pcie: split register tables into common and extra parts

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

Johan Hovold <[email protected]>

    phy: qcom-qmp-usb: fix sc8280xp PCS_USB offset

Xiaochen Shen <[email protected]>
dmaengine: idxd: Make read buffer sysfs attributes invisible for Intel IAA

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

Dmitry Baryshkov <[email protected]>
phy: qcom-qmp-usb: correct registers layout for IPQ8074 USB3 PHY

Johan Hovold <[email protected]>
phy: qcom-qmp-usb: drop start and pwrdn-ctrl abstraction

Johan Hovold <[email protected]>
phy: qcom-qmp-usb: clean up status polling

Johan Hovold <[email protected]>
phy: qcom-qmp-usb: drop power-down delay config

Johan Hovold <[email protected]>

    phy: qcom-qmp-usb: drop sc8280xp power-down delay

Johan Hovold <[email protected]>
phy: qcom-qmp-usb: clean up power-down handling

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

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

Johan Hovold <[email protected]>

    phy: qcom-qmp-pcie: fix sc8180x initialisation

Johan Hovold <[email protected]>
phy: qcom-qmp-pcie: replace power-down delay

Johan Hovold <[email protected]>
phy: qcom-qmp-pcie: drop power-down delay config

Shengjiu Wang <[email protected]>
remoteproc: core: Auto select rproc-virtio device id

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

Xiaochen Shen <[email protected]>
dmaengine: idxd: Make max batch size attributes in sysfs invisible for Intel IAA

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}

Andreas Gruenbacher <[email protected]>
gfs2: Partially revert gfs2_inode_lookup change

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

James Clark <[email protected]>
perf branch: Fix interpretation of branch records

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

Qiheng Lin <[email protected]>
power: supply: Fix refcount leak in rk817_charger_probe

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()

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()

Namhyung Kim <[email protected]>
perf stat: Move common code in print_metric_headers()

Namhyung Kim <[email protected]>
perf stat: Use evsel__is_hybrid() more

James Clark <[email protected]>
perf tools: Fix "kernel lock contention analysis" test by not printing warnings in quiet mode

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

Ido Schimmel <[email protected]>
thermal/of: Fix memory leak on thermal_of_zone_register() failure

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

Joao Martins <[email protected]>
vfio/iova_bitmap: refactor iova_bitmap_set() to better handle page boundaries

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

Mike Leach <[email protected]>
coresight: cti: Fix null pointer error on CTI init before ETM

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()

Yang Yingliang <[email protected]>
habanalabs: fix return value check in hl_fw_get_sec_attest_data()

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

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

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

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

Joao Martins <[email protected]>
vfio/iova_bitmap: Fix PAGE_SIZE unaligned bitmaps

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

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

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()

Weili Qian <[email protected]>
crypto: hisilicon/qm - fix 'QM_XEQ_DEPTH_CAP' mask value

Eric Biggers <[email protected]>
crypto: arm64/sm3 - fix possible crash with CFI enabled

Tianjia Zhang <[email protected]>
crypto: arm64/sm3 - add NEON assembly implementation

Eric Biggers <[email protected]>
crypto: x86/sm4 - fix crash with CFI enabled

Eric Biggers <[email protected]>
crypto: x86/sm3 - fix possible crash with CFI enabled

Eric Biggers <[email protected]>
crypto: x86/sha512 - fix possible crash with CFI enabled

Eric Biggers <[email protected]>
crypto: x86/sha256 - fix possible crash with CFI enabled

Eric Biggers <[email protected]>
crypto: x86/sha1 - fix possible crash with CFI enabled

Eric Biggers <[email protected]>
crypto: x86/aria - fix crash with CFI enabled

Eric Biggers <[email protected]>
crypto: x86/aegis128 - fix possible crash with CFI enabled

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

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

Chao Yu <[email protected]>
f2fs: fix to avoid accessing uninitialized spinlock

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

Yangtao Li <[email protected]>
f2fs: fix gc mode when gc_urgent_high_remaining is 1

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"

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 - fix incorrect parameters usage

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

Christophe JAILLET <[email protected]>
octeontx2-af: cn10k: mcs: Fix a resource leak in the probe and remove functions

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

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()

Christoph Hellwig <[email protected]>
nvme: pass nr_maps explicitly to nvme_alloc_io_tag_set

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()

Xingjiang Qiao <[email protected]>
hwmon: (emc2305) fix pwm never being able to set lower

Xingjiang Qiao <[email protected]>

    hwmon: (emc2305) fix unable to probe emc2301/2/3

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()

Toke Høiland-Jørgensen <[email protected]>
bpf: Add dummy type reference to nf_conn___init to fix type deduplication

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

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: do not send firmware FW_FEATURE_NON_DL region

Deren Wu <[email protected]>
wifi: mt76: mt7921: Add missing __packed annotation of struct mt7921_clc

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

YN Chen <[email protected]>
wifi: mt76: mt7921: fix wrong power after multiple SAR set

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

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

Jiaxin Yu <[email protected]>
ASoC: mediatek: mt8186: Correct I2S shared clocks

Srinivas Kandagatla <[email protected]>
ASoC: qcom: cleanup and fix dependency of QCOM_COMMON

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()

Hui Tang <[email protected]>
clk: microchip: check for null return of devm_kzalloc()

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()

Lili Li <[email protected]>
ASoC: Intel: Skylake: Fix Kconfig dependency

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

Hou Tao <[email protected]>
bpf: Pin the start cgroup in cgroup_iter_seq_init()

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

Gaosheng Cui <[email protected]>
ASoC: amd: acp: Fix possible UAF in acp_dma_open

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

Takashi Iwai <[email protected]>
ALSA: memalloc: Allocate more contiguous pages for fallback case

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.

Martin KaFai Lau <[email protected]>
selftests/bpf: Fix incorrect ASSERT in the tcp_hdr_options test

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

Moudy Ho <[email protected]>
media: platform: mtk-mdp3: fix error handling in mdp_probe()

Moudy Ho <[email protected]>
media: platform: mtk-mdp3: fix error handling about components clock_on

Moudy Ho <[email protected]>
media: platform: mtk-mdp3: fix error handling in mdp_cmdq_send()

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

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

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

Marek Vasut <[email protected]>
drm/panel/panel-sitronix-st7701: Fix RTNI calculation

Marco Felsch <[email protected]>
drm: lcdif: change burst size to 256B

Marek Vasut <[email protected]>
clk: renesas: r9a06g032: Repair grave increment error

Anshuman Gupta <[email protected]>
drm/i915/dgfx: Grab wakeref at i915_ttm_unmap_virtual

Anshuman Gupta <[email protected]>
drm/i915: Encapsulate lmem rpm stuff in intel_runtime_pm

Nirmoy Das <[email protected]>
drm/i915: Refactor ttm ghost obj detection

Tvrtko Ursulin <[email protected]>
drm/i915: Handle all GTs on driver (un)load paths

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

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

Geert Uytterhoeven <[email protected]>
clk: renesas: r8a779f0: 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

Pin-yen Lin <[email protected]>
drm/bridge: it6505: Initialize AUX channel in it6505_i2c_probe

Wang Yufen <[email protected]>
selftests/bpf: fix missing BPF object files

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

Alexandru Tachici <[email protected]>
net: ethernet: adi: adin1110: Fix SPI transfers

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

Asher Song <[email protected]>
drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly"

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

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

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

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

Jiri Olsa <[email protected]>
selftests/bpf: Add missing bpf_iter_vma_offset__destroy call

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

Gao Xiang <[email protected]>
erofs: validate the extent length for uncompressed pclusters

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

Hou Tao <[email protected]>
erofs: check the uniqueness of fsid in shared domain in advance

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

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()

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

Frank Wunderlich <[email protected]>

    arm64: dts: mt7986: move wed_pcie node

Vidya Sagar <[email protected]>
arm64: tegra: Fix non-prefetchable aperture of PCIe C3 controller

Vidya Sagar <[email protected]>
arm64: tegra: Fix Prefetchable aperture ranges of Tegra234 PCIe controllers

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

Conor Dooley <[email protected]>
riscv: dts: microchip: remove pcie node from the sev kit

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-j7200-mcu-wakeup: Drop dma-coherent in crypto node

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

Conor Dooley <[email protected]>
riscv: dts: microchip: fix the icicle's #pwm-cells

Kory Maincent <[email protected]>
arm: dts: spear600: Fix clcd interrupt

Sibi Sankar <[email protected]>
arm64: dts: qcom: sc7280: Mark all Qualcomm reference boards as LTE

Sumit Gupta <[email protected]>
soc/tegra: cbb: Check firewall before enabling error reporting

Sumit Gupta <[email protected]>
soc/tegra: cbb: Add checks for potential out of bound errors

Sumit Gupta <[email protected]>
soc/tegra: cbb: Update slave maps for Tegra234

Sumit Gupta <[email protected]>
soc/tegra: cbb: Use correct master_id mask for CBB NOC in Tegra194

Frank Wunderlich <[email protected]>
arm64: dts: mt7986: fix trng node name

Yang Yingliang <[email protected]>
soc: sifive: ccache: fix missing of_node_put() in sifive_ccache_init()

Yang Yingliang <[email protected]>
soc: sifive: ccache: fix missing free_irq() in error path in sifive_ccache_init()

Yang Yingliang <[email protected]>
soc: sifive: ccache: fix missing iounmap() in error path in sifive_ccache_init()

Conor Dooley <[email protected]>
dt-bindings: pwm: fix microchip corePWM's pwm-cells

Fabrizio Castro <[email protected]>
arm64: dts: renesas: r9a09g011: Fix I2C SoC specific strings

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: sc7280: fix codec reset line polarity for CRD 1.0/2.0

Dmitry Torokhov <[email protected]>
arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 3.0/3.1

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

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

Conor Dooley <[email protected]>
riscv: dts: microchip: fix memory node unit address for icicle

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

Ivaylo Dimitrov <[email protected]>
usb: musb: remove extra check in musb_gadget_vbus_draw

Dmitry Torokhov <[email protected]>
MIPS: DTS: CI20: fix reset line polarity of the ethernet controller

-------------

Diffstat:

 Documentation/ABI/stable/sysfs-driver-dma-idxd     |  12 +
 .../ABI/testing/sysfs-bus-spi-devices-spi-nor      |   3 +
 Documentation/admin-guide/sysctl/kernel.rst        |  23 +
 .../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          |  16 +-
 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/nvidia/tegra234.dtsi           |   8 +-
 arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts       |   2 +
 arch/arm64/boot/dts/qcom/msm8916.dtsi              |   2 +-
 arch/arm64/boot/dts/qcom/msm8996.dtsi              | 114 ++--
 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/sc7280-idp.dts            |   1 -
 arch/arm64/boot/dts/qcom/sc7280-idp.dtsi           |   3 +-
 arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi         |   2 +-
 arch/arm64/boot/dts/qcom/sdm630.dtsi               |   2 +-
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi         |   4 +-
 arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.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 +-
 .../dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts  |   2 -
 arch/arm64/boot/dts/qcom/sm8450.dtsi               |  13 +-
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi          |  16 +-
 arch/arm64/boot/dts/renesas/r8a779g0.dtsi          |   2 +-
 arch/arm64/boot/dts/renesas/r9a09g011.dtsi         |   6 +-
 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-j7200-mcu-wakeup.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/crypto/Kconfig                          |  11 +
 arch/arm64/crypto/Makefile                         |   3 +
 arch/arm64/crypto/sm3-neon-core.S                  | 601 ++++++++++++++++++++
 arch/arm64/crypto/sm3-neon-glue.c                  | 103 ++++
 arch/arm64/include/asm/processor.h                 |   4 +-
 arch/arm64/mm/fault.c                              |   8 +-
 arch/mips/bcm63xx/clk.c                            |   2 +
 arch/mips/boot/dts/ingenic/ci20.dts                |   2 +-
 .../cavium-octeon/executive/cvmx-helper-board.c    |   2 +-
 arch/mips/cavium-octeon/executive/cvmx-helper.c    |   2 +-
 arch/mips/kernel/vpe-cmp.c                         |   4 +-
 arch/mips/kernel/vpe-mt.c                          |   4 +-
 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 +-
 .../boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi |   2 +-
 arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts  |   2 +-
 .../boot/dts/microchip/mpfs-sev-kit-fabric.dtsi    |  29 -
 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/crypto/aegis128-aesni-asm.S               |   9 +-
 arch/x86/crypto/aria-aesni-avx-asm_64.S            |  13 +-
 arch/x86/crypto/sha1_ni_asm.S                      |   3 +-
 arch/x86/crypto/sha1_ssse3_asm.S                   |   3 +-
 arch/x86/crypto/sha256-avx-asm.S                   |   3 +-
 arch/x86/crypto/sha256-avx2-asm.S                  |   3 +-
 arch/x86/crypto/sha256-ssse3-asm.S                 |   3 +-
 arch/x86/crypto/sha256_ni_asm.S                    |   3 +-
 arch/x86/crypto/sha512-avx-asm.S                   |   3 +-
 arch/x86/crypto/sha512-avx2-asm.S                  |   3 +-
 arch/x86/crypto/sha512-ssse3-asm.S                 |   3 +-
 arch/x86/crypto/sm3-avx-asm_64.S                   |   3 +-
 arch/x86/crypto/sm4-aesni-avx-asm_64.S             |   7 +-
 arch/x86/crypto/sm4-aesni-avx2-asm_64.S            |   7 +-
 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-cgroup.c                                 |   2 +
 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-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/video_detect.c                        |  54 +-
 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/microchip/clk-mpfs-ccc.c               |   6 +
 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             |  55 +-
 drivers/clk/qcom/lpasscorecc-sc7180.c              |  24 +-
 drivers/clk/renesas/r8a779a0-cpg-mssr.c            |   2 +-
 drivers/clk/renesas/r8a779f0-cpg-mssr.c            |  18 +-
 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          |  10 +-
 drivers/crypto/hisilicon/qm.c                      |  11 +-
 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                          | 102 +++-
 drivers/dma/idxd/sysfs.c                           |  68 +++
 drivers/edac/i10nm_base.c                          |   3 +-
 drivers/extcon/extcon-usbc-tusb320.c               |  17 +-
 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         |   9 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h           |   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c           |   2 -
 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 +-
 drivers/gpu/drm/amd/display/dc/core/dc.c           |  65 ++-
 .../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/dcn32/dcn32_resource.c  |   2 +-
 .../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 +
 .../drm/amd/pm/powerplay/hwmgr/vega10_thermal.c    |  25 +-
 .../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/gem/i915_gem_mman.c           |  21 +-
 drivers/gpu/drm/i915/gem/i915_gem_pm.c             |   2 +-
 drivers/gpu/drm/i915/gem/i915_gem_ttm.c            |  63 ++-
 drivers/gpu/drm/i915/gem/i915_gem_ttm.h            |  18 +-
 drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c       |   2 +-
 drivers/gpu/drm/i915/gt/intel_engine.h             |   6 +
 drivers/gpu/drm/i915/gt/intel_engine_cs.c          |  91 ++-
 drivers/gpu/drm/i915/gt/intel_gt.c                 |   3 -
 drivers/gpu/drm/i915/gt/intel_gt_types.h           |  17 -
 drivers/gpu/drm/i915/gt/sysfs_engines.c            |  25 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c     | 109 +++-
 drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h        |  21 +
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c         |   6 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c  |   8 +
 drivers/gpu/drm/i915/i915_driver.c                 |   3 +-
 drivers/gpu/drm/i915/i915_gem.c                    |  45 +-
 drivers/gpu/drm/i915/intel_runtime_pm.c            |   5 +
 drivers/gpu/drm/i915/intel_runtime_pm.h            |  22 +
 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_hw_dsc.c         |  11 +-
 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_host.c                 | 121 ++--
 drivers/gpu/drm/msm/hdmi/hdmi.c                    |   2 +-
 drivers/gpu/drm/mxsfb/lcdif_kms.c                  |  48 +-
 drivers/gpu/drm/mxsfb/lcdif_regs.h                 |   5 +
 drivers/gpu/drm/panel/panel-sitronix-st7701.c      |  12 +-
 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/hid-uclogic-params.c                   |  73 +++
 drivers/hid/hid-uclogic-rdesc.c                    |  34 ++
 drivers/hid/hid-uclogic-rdesc.h                    |   7 +
 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/emc2305.c                            |  44 +-
 drivers/hwmon/jc42.c                               | 243 +++++----
 drivers/hwmon/nct6775-platform.c                   |   7 +
 drivers/hwtracing/coresight/coresight-cti-core.c   |   2 +-
 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/hns_roce_device.h        |   3 +
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c         | 217 ++++++--
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h         |  13 +-
 drivers/infiniband/hw/hns/hns_roce_main.c          |  18 +-
 drivers/infiniband/hw/hns/hns_roce_mr.c            |   4 +-
 drivers/infiniband/hw/hns/hns_roce_qp.c            | 107 +++-
 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                       | 504 ++++++++++-------
 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/iommu.c                              |  28 +-
 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 +-
 .../media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c   |  51 +-
 .../media/platform/mediatek/mdp3/mtk-mdp3-comp.c   |  24 +-
 .../media/platform/mediatek/mdp3/mtk-mdp3-core.c   |  15 +-
 .../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/habanalabs/common/firmware_if.c       |   2 +-
 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-tegra.c                     |   3 +-
 drivers/mmc/host/sdhci.c                           |   5 +
 drivers/mmc/host/sdhci.h                           |   2 +
 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/microchip/ksz_common.c             |   3 +-
 drivers/net/dsa/mv88e6xxx/chip.c                   |   9 +-
 drivers/net/ethernet/adi/adin1110.c                |  37 +-
 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/broadcom/bnx2.c               |   5 +-
 drivers/net/ethernet/dnet.c                        |   4 +-
 drivers/net/ethernet/freescale/enetc/enetc.c       |  35 +-
 drivers/net/ethernet/freescale/fec_main.c          |   8 +
 drivers/net/ethernet/intel/i40e/i40e_main.c        |  36 +-
 drivers/net/ethernet/intel/ice/ice_ptp.c           |  10 +-
 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/marvell/octeontx2/af/mcs.c    |   6 +-
 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.h             |   2 +
 drivers/net/wireless/ath/ath11k/mac.c              | 122 +++--
 drivers/net/wireless/ath/ath11k/qmi.c              |   3 +
 drivers/net/wireless/ath/ath9k/hif_usb.c           |  46 +-
 .../wireless/broadcom/brcm80211/brcmfmac/common.c  |   8 +-
 .../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 +-
 .../net/wireless/mediatek/mt76/mt76_connac_mcu.c   |   4 +
 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/init.c   |   1 +
 drivers/net/wireless/mediatek/mt76/mt7921/mac.c    |  34 +-
 drivers/net/wireless/mediatek/mt76/mt7921/main.c   |   6 +
 drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h |   4 +-
 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                           |  19 +-
 drivers/nvme/host/fc.c                             |   2 +-
 drivers/nvme/host/nvme.h                           |   2 +-
 drivers/nvme/host/rdma.c                           |   4 +-
 drivers/nvme/host/tcp.c                            |   1 +
 drivers/nvme/target/core.c                         |  22 +-
 drivers/nvme/target/io-cmd-file.c                  |  16 +-
 drivers/nvme/target/loop.c                         |   2 +-
 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           | 607 ++++++++++++---------
 drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5_20.h |   2 +
 drivers/phy/qualcomm/phy-qcom-qmp-pcs-v5_20.h      |  14 +
 drivers/phy/qualcomm/phy-qcom-qmp-usb.c            | 142 +----
 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            |   3 +
 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              |   3 +
 drivers/power/supply/power_supply_core.c           |   7 +-
 drivers/power/supply/rk817_charger.c               |   4 +-
 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/remoteproc/remoteproc_core.c               |   8 +-
 drivers/rtc/class.c                                |   4 +-
 drivers/rtc/rtc-cmos.c                             | 378 ++++++-------
 drivers/rtc/rtc-mxc_v2.c                           |   4 +-
 drivers/rtc/rtc-pcf2127.c                          |  22 +-
 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/hpsa.c                                |   9 +-
 drivers/scsi/ipr.c                                 |  10 +-
 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/sifive/sifive_ccache.c                 |  33 +-
 drivers/soc/tegra/cbb/tegra194-cbb.c               |  14 +-
 drivers/soc/tegra/cbb/tegra234-cbb.c               | 170 ++++--
 drivers/soc/ti/knav_qmss_queue.c                   |   3 +-
 drivers/soc/ti/smartreflex.c                       |   1 +
 drivers/spi/spi-fsl-spi.c                          |  19 +-
 drivers/spi/spi-gpio.c                             |  16 +-
 drivers/spi/spidev.c                               |  21 +-
 drivers/staging/media/deprecated/stkwebcam/Kconfig |   2 +-
 drivers/staging/media/imx/imx7-media-csi.c         |   6 +-
 drivers/staging/media/rkvdec/rkvdec-vp9.c          |   3 +
 drivers/staging/media/sunxi/cedrus/cedrus_h265.c   |  25 +-
 drivers/staging/media/sunxi/cedrus/cedrus_regs.h   |   2 +
 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/thermal/thermal_helpers.c                  |   7 +-
 drivers/thermal/thermal_of.c                       |   8 +-
 drivers/tty/serial/8250/8250_bcm7271.c             |  10 +-
 drivers/tty/serial/altera_uart.c                   |   5 +-
 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/dwc3/dwc3-qcom.c                       |  13 +-
 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/iova_bitmap.c                         |  32 +-
 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/extent-io-tree.c                          |  22 +-
 fs/btrfs/file.c                                    |  10 +-
 fs/char_dev.c                                      |   2 +-
 fs/cifs/smb2file.c                                 |   4 +-
 fs/configfs/dir.c                                  |   2 +
 fs/debugfs/file.c                                  |  28 +-
 fs/erofs/fscache.c                                 |  47 +-
 fs/erofs/internal.h                                |  10 +-
 fs/erofs/super.c                                   |   2 +-
 fs/erofs/zdata.c                                   |   3 +-
 fs/erofs/zmap.c                                    |  11 +-
 fs/f2fs/compress.c                                 |   2 +-
 fs/f2fs/f2fs.h                                     |   2 +-
 fs/f2fs/file.c                                     |   4 +
 fs/f2fs/gc.c                                       |  29 +-
 fs/f2fs/namei.c                                    | 329 ++++++-----
 fs/f2fs/segment.c                                  |   8 +-
 fs/f2fs/super.c                                    |   8 +-
 fs/gfs2/glock.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 +-
 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                     |   2 +-
 include/linux/fs.h                                 |  12 +-
 include/linux/hisi_acc_qm.h                        |   6 +-
 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/sound/hda_codec.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/io_uring.h                      |  18 +
 include/uapi/linux/swab.h                          |   2 +-
 include/uapi/rdma/hns-abi.h                        |  15 +
 include/uapi/sound/asequencer.h                    |   8 +-
 io_uring/io_uring.c                                |   2 +-
 io_uring/msg_ring.c                                |   6 +-
 io_uring/net.c                                     |   9 +-
 io_uring/notif.c                                   |  12 +
 io_uring/notif.h                                   |   3 +
 io_uring/opdef.c                                   |   7 +
 io_uring/opdef.h                                   |   2 +
 io_uring/timeout.c                                 |   4 +-
 ipc/mqueue.c                                       |   6 +-
 kernel/Makefile                                    |   3 -
 kernel/acct.c                                      |   2 +
 kernel/bpf/btf.c                                   |   5 +
 kernel/bpf/cgroup_iter.c                           |  14 +
 kernel/bpf/syscall.c                               |   6 +-
 kernel/bpf/verifier.c                              | 120 ++--
 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/fair.c                                | 223 +++++++-
 kernel/sched/psi.c                                 |   8 +-
 kernel/sched/sched.h                               |  51 +-
 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/maple_tree.c                                   |   4 +-
 lib/notifier-error-inject.c                        |   2 +-
 lib/test_firmware.c                                |   1 +
 lib/test_maple_tree.c                              |  23 +
 mm/gup.c                                           |   3 +
 net/802/mrp.c                                      |  18 +-
 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/core/dev.c                                     |  14 +-
 net/core/devlink.c                                 |   5 +
 net/core/filter.c                                  |  25 +-
 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/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                                 |   4 +-
 net/ipv4/inet_connection_sock.c                    |   7 +-
 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/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/tx.c                                  |   2 +-
 net/mctp/device.c                                  |  14 +-
 net/netfilter/ipvs/ip_vs_core.c                    |  30 +-
 net/netfilter/ipvs/ip_vs_ctl.c                     |  10 +-
 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/openvswitch/datapath.c                         |  25 +-
 net/openvswitch/flow_netlink.c                     |   2 +-
 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/memalloc.c                              |  44 +-
 sound/core/pcm_native.c                            |   4 +-
 sound/drivers/mts64.c                              |   3 +
 sound/pci/asihpi/hpioctl.c                         |   2 +-
 sound/pci/hda/hda_codec.c                          |   3 +-
 sound/pci/hda/patch_hdmi.c                         | 120 +++-
 sound/pci/hda/patch_realtek.c                      |  27 +
 sound/soc/amd/acp/acp-platform.c                   |   8 +-
 sound/soc/amd/yc/acp6x-mach.c                      |   7 +
 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/Kconfig                            |   2 +-
 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 +-
 .../mt8186/mt8186-mt6366-da7219-max98357.c         |   2 +-
 .../mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c |   2 +-
 sound/soc/pxa/mmp-pcm.c                            |   2 +-
 sound/soc/qcom/Kconfig                             |  16 +-
 sound/soc/qcom/common.c                            |   2 -
 sound/soc/qcom/common.h                            |  23 -
 sound/soc/qcom/lpass-sc7180.c                      |   3 +
 sound/soc/rockchip/rockchip_pdm.c                  |   1 +
 sound/soc/rockchip/rockchip_spdif.c                |   1 +
 sound/usb/endpoint.c                               |   7 +
 sound/usb/pcm.c                                    |  13 +-
 sound/usb/quirks-table.h                           |   2 +
 sound/usb/quirks.c                                 |   2 +
 sound/usb/usbaudio.h                               |   4 +
 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                             |  22 +-
 tools/lib/bpf/usdt.c                               |  11 +-
 tools/objtool/check.c                              |  10 +
 tools/perf/Documentation/perf-annotate.txt         |   2 +-
 tools/perf/Documentation/perf-diff.txt             |   2 +-
 tools/perf/Documentation/perf-lock.txt             |   2 +-
 tools/perf/Documentation/perf-probe.txt            |   2 +-
 tools/perf/Documentation/perf-record.txt           |   2 +-
 tools/perf/Documentation/perf-report.txt           |   2 +-
 tools/perf/Documentation/perf-stat.txt             |   4 +-
 tools/perf/bench/numa.c                            |   9 +-
 tools/perf/builtin-annotate.c                      |   2 +-
 tools/perf/builtin-diff.c                          |   2 +-
 tools/perf/builtin-lock.c                          |   2 +-
 tools/perf/builtin-probe.c                         |  22 +-
 tools/perf/builtin-record.c                        |   2 +-
 tools/perf/builtin-report.c                        |   2 +-
 tools/perf/builtin-stat.c                          |  41 +-
 tools/perf/builtin-trace.c                         |  32 +-
 tools/perf/tests/shell/stat_all_pmu.sh             |  13 +-
 tools/perf/ui/util.c                               |   5 +
 tools/perf/util/bpf_off_cpu.c                      |   2 +-
 tools/perf/util/branch.h                           |   3 +-
 tools/perf/util/debug.c                            |   4 +
 tools/perf/util/stat-display.c                     |  33 +-
 tools/perf/util/stat.h                             |   1 -
 tools/perf/util/symbol-elf.c                       |   2 +-
 tools/testing/selftests/bpf/config                 |   1 +
 tools/testing/selftests/bpf/network_helpers.c      |   4 +
 tools/testing/selftests/bpf/prog_tests/bpf_iter.c  |  11 +-
 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/tcp_hdr_options.c     |   4 +-
 .../selftests/bpf/prog_tests/tracing_struct.c      |   3 +-
 .../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 +
 .../testing/selftests/bpf/test_bpftool_metadata.sh |   7 +-
 tools/testing/selftests/bpf/test_flow_dissector.sh |   6 +-
 tools/testing/selftests/bpf/test_lwt_ip_encap.sh   |  17 +-
 tools/testing/selftests/bpf/test_lwt_seg6local.sh  |   9 +-
 tools/testing/selftests/bpf/test_tc_edt.sh         |   3 +-
 tools/testing/selftests/bpf/test_tc_tunnel.sh      |   5 +-
 tools/testing/selftests/bpf/test_tunnel.sh         |   5 +-
 tools/testing/selftests/bpf/test_xdp_meta.sh       |   9 +-
 tools/testing/selftests/bpf/test_xdp_vlan.sh       |   8 +-
 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 +-
 1103 files changed, 13134 insertions(+), 6488 deletions(-)
author maintainer
#3 lore raw

PATCH 3/1146 arm64: dts: renesas: r8a779g0: Fix HSCIF0 "brg_int" clock

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 d70f0600ae5a..d58b18802cb0 100644
@@ -326,7 +326,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
#7 lore raw

PATCH 7/1146 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 aba717644391..069b5c494e2e 100644
@@ -144,82 +144,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>;
 		};
 	};
@@ -232,127 +232,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
#8 lore raw

PATCH 8/1146 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 069b5c494e2e..7cc93329b93c 100644
@@ -204,22 +204,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>;
 		};
 	};
@@ -330,29 +340,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
#9 lore raw

PATCH 9/1146 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 7cc93329b93c..67f0167dfda2 100644
@@ -1233,17 +1233,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
#10 lore raw

PATCH 10/1146 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 942aa2278355..a39b940d5853 100644
@@ -1615,7 +1615,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
#11 lore raw

PATCH 11/1146 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 b51b85f583e5..e119060ac56c 100644
@@ -779,7 +779,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
#12 lore raw

PATCH 12/1146 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
#13 lore raw

PATCH 13/1146 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 a831064700ee..9743cb270639 100644
@@ -1345,7 +1345,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
#4 lore raw

PATCH 4/1146 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
#14 lore raw

PATCH 14/1146 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
#15 lore raw

PATCH 15/1146 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
#16 lore raw

PATCH 16/1146 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
#17 lore raw

PATCH 17/1146 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 43ec14c29a60..a7f1e6c8bb0a 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
#18 lore raw

PATCH 18/1146 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
#19 lore raw

PATCH 19/1146 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
#20 lore raw

PATCH 20/1146 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
#5 lore raw

PATCH 5/1146 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
#21 lore raw

PATCH 21/1146 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
#22 lore raw

PATCH 22/1146 riscv: dts: microchip: fix memory node unit address for icicle

In reply to Greg Kroah-Hartman

From: Conor Dooley <[email protected]>

[ Upstream commit d6105a8b7c160a73ae04054c8921eba80a294146 ]

Evidently I forgot to update the unit address for the 38-bit cached memory node when I changed the address in the reg property.. Update it to match.

Fixes 6c1193301791 ("riscv: dts: microchip: update memory configuration for v2022.10")
---
 arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts +1 -1
index ec7b7c2a3ce2..8ced67c3b00b 100644
@@ -37,7 +37,7 @@ ddrc_cache_lo: memory@80000000 {
 		status = "okay";
 	};
 
-	ddrc_cache_hi: memory@1000000000 {
+	ddrc_cache_hi: memory@1040000000 {
 		device_type = "memory";
 		reg = <0x10 0x40000000 0x0 0x40000000>;
 		status = "okay";
Signature · 1 line
2.35.1
author maintainer
#23 lore raw

PATCH 23/1146 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 e1622b16c08b..02a69ac0149b 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
#24 lore raw

PATCH 24/1146 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 e276eed1f8e2..334be39ccaf5 100644
@@ -2455,7 +2455,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
#25 lore raw

PATCH 25/1146 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
#26 lore raw

PATCH 26/1146 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 8b7e8118f3ce..82c3cfdcc560 100644
@@ -849,7 +849,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
#27 lore raw

PATCH 27/1146 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 cef8c4f4f0ff..4a527a64772b 100644
@@ -2032,11 +2032,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
#28 lore raw

PATCH 28/1146 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 334be39ccaf5..1452213efb00 100644
@@ -2180,11 +2180,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
#29 lore raw

PATCH 29/1146 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 a86d9ea93b9d..a6270d97a319 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
#30 lore raw

PATCH 30/1146 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 d32f08df743d..dfc799244180 100644
@@ -3161,11 +3161,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
#6 lore raw

PATCH 6/1146 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 afc17e4d403f..f98259489679 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
#31 lore raw

PATCH 31/1146 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 67f0167dfda2..1107befc3b09 100644
@@ -3362,7 +3362,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
#32 lore raw

PATCH 32/1146 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
#34 lore raw

PATCH 34/1146 arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 1.0/2.0

In reply to Greg Kroah-Hartman

From: Dmitry Torokhov <[email protected]>

[ Upstream commit b8f298d4f69d82119ac0d22809a17c80b1f188d1 ]

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 f8b4eb64f200 ("arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 1.0/2.0 and IDP boards")
---
 arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +1 -1
index cd432a2856a7..7772dfba94ec 100644
@@ -34,7 +34,7 @@ wcd9385: audio-codec-1 {
 		pinctrl-0 = <&wcd_reset_n>;
 		pinctrl-1 = <&wcd_reset_n_sleep>;
 
-		reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
 
 		qcom,rx-device = <&wcd_rx>;
 		qcom,tx-device = <&wcd_tx>;
Signature · 1 line
2.35.1
author maintainer
#38 lore raw

PATCH 38/1146 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
#39 lore raw

PATCH 39/1146 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 1fe3fa3ad877..7818fb6c5a10 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
#40 lore raw

PATCH 40/1146 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 c2f152bcf10e..3be577dc9a93 100644
@@ -577,7 +577,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>,
@@ -594,7 +594,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>,
@@ -611,7 +611,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>,
@@ -628,7 +628,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
#41 lore raw

PATCH 41/1146 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 3be577dc9a93..4092c0016035 100644
@@ -657,7 +657,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>,
@@ -674,7 +674,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>,
@@ -691,7 +691,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>,
@@ -708,7 +708,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
#42 lore raw

PATCH 42/1146 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 fb1a97202c38..0e72a66f8e3a 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
#43 lore raw

PATCH 43/1146 arm64: dts: renesas: r9a09g011: Fix I2C SoC specific strings

In reply to Greg Kroah-Hartman

From: Fabrizio Castro <[email protected]>

[ Upstream commit 2ac909916b520df09a23f152bb9016d7b892b496 ]

The preferred form for Renesas' compatible strings is:
"<vendor>,<family>-<module>"

Somehow the compatible string for the r9a09g011 I2C IP was upstreamed as renesas,i2c-r9a09g011 instead of renesas,r9a09g011-i2c, which is really confusing, especially considering the generic fallback is renesas,rzv2m-i2c.

The first user of renesas,i2c-r9a09g011 in the kernel is not yet in a kernel release, it will be in v6.1, therefore it can still be fixed in v6.1.
Even if we don't fix it before v6.2, I don't think there is any harm in making such a change.

s/renesas,i2c-r9a09g011/renesas,r9a09g011-i2c/g for consistency.

Fixes 54ac6794df9d ("arm64: dts: renesas: r9a09g011: Add i2c nodes")
---
 arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/renesas/r9a09g011.dtsi +2 -2
index 0e72a66f8e3a..ebaa8cdd747d 100644
@@ -126,7 +126,7 @@ cpg: clock-controller@a3500000 {
 		i2c0: i2c@a4030000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-			compatible = "renesas,i2c-r9a09g011", "renesas,rzv2m-i2c";
+			compatible = "renesas,r9a09g011-i2c", "renesas,rzv2m-i2c";
 			reg = <0 0xa4030000 0 0x80>;
 			interrupts = <GIC_SPI 232 IRQ_TYPE_EDGE_RISING>,
 				     <GIC_SPI 236 IRQ_TYPE_EDGE_RISING>;
@@ -140,7 +140,7 @@ i2c0: i2c@a4030000 {
 		i2c2: i2c@a4030100 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-			compatible = "renesas,i2c-r9a09g011", "renesas,rzv2m-i2c";
+			compatible = "renesas,r9a09g011-i2c", "renesas,rzv2m-i2c";
 			reg = <0 0xa4030100 0 0x80>;
 			interrupts = <GIC_SPI 234 IRQ_TYPE_EDGE_RISING>,
 				     <GIC_SPI 238 IRQ_TYPE_EDGE_RISING>;
Signature · 1 line
2.35.1
author maintainer
#44 lore raw

PATCH 44/1146 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
#35 lore raw

PATCH 35/1146 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 1452213efb00..29b34adb09e2 100644
@@ -2898,9 +2898,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
#45 lore raw

PATCH 45/1146 soc: sifive: ccache: fix missing iounmap() in error path in sifive_ccache_init()

In reply to Greg Kroah-Hartman

From: Yang Yingliang <[email protected]>

[ Upstream commit 73e770f085023da327dc9ffeb6cd96b0bb22d97e ]

Add missing iounmap() before return error from sifive_ccache_init().

Fixes a967a289f169 ("RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs")
---
 drivers/soc/sifive/sifive_ccache.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
drivers/soc/sifive/sifive_ccache.c +11 -4
index 1c171150e878..25019c16d8ae 100644
@@ -222,13 +222,16 @@ static int __init sifive_ccache_init(void)
 	if (!ccache_base)
 		return -ENOMEM;
 
-	if (of_property_read_u32(np, "cache-level", &level))
-		return -ENOENT;
+	if (of_property_read_u32(np, "cache-level", &level)) {
+		rc = -ENOENT;
+		goto err_unmap;
+	}
 
 	intr_num = of_property_count_u32_elems(np, "interrupts");
 	if (!intr_num) {
 		pr_err("No interrupts property\n");
-		return -ENODEV;
+		rc = -ENODEV;
+		goto err_unmap;
 	}
 
 	for (i = 0; i < intr_num; i++) {
@@ -237,7 +240,7 @@ static int __init sifive_ccache_init(void)
 				 NULL);
 		if (rc) {
 			pr_err("Could not request IRQ %d\n", g_irq[i]);
-			return rc;
+			goto err_unmap;
 		}
 	}
 
@@ -250,6 +253,10 @@ static int __init sifive_ccache_init(void)
 	setup_sifive_debug();
 #endif
 	return 0;
+
+err_unmap:
+	iounmap(ccache_base);
+	return rc;
 }
 
 device_initcall(sifive_ccache_init);
Signature · 1 line
2.35.1
author maintainer
#46 lore raw

PATCH 46/1146 soc: sifive: ccache: fix missing free_irq() in error path in sifive_ccache_init()

In reply to Greg Kroah-Hartman

From: Yang Yingliang <[email protected]>

[ Upstream commit 756344e7cb1afbb87da8705c20384dddd0dea233 ]

Add missing free_irq() before return error from sifive_ccache_init().

Fixes a967a289f169 ("RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs")
---
 drivers/soc/sifive/sifive_ccache.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/soc/sifive/sifive_ccache.c +4 -1
index 25019c16d8ae..98269d056728 100644
@@ -240,7 +240,7 @@ static int __init sifive_ccache_init(void)
 				 NULL);
 		if (rc) {
 			pr_err("Could not request IRQ %d\n", g_irq[i]);
-			goto err_unmap;
+			goto err_free_irq;
 		}
 	}
 
@@ -254,6 +254,9 @@ static int __init sifive_ccache_init(void)
 #endif
 	return 0;
 
+err_free_irq:
+	while (--i >= 0)
+		free_irq(g_irq[i], NULL);
 err_unmap:
 	iounmap(ccache_base);
 	return rc;
Signature · 1 line
2.35.1
author maintainer
#47 lore raw

PATCH 47/1146 soc: sifive: ccache: fix missing of_node_put() in sifive_ccache_init()

In reply to Greg Kroah-Hartman

From: Yang Yingliang <[email protected]>

[ Upstream commit 8fbf94fea0b4e187ca9100936c5429f96b8a4e44 ]

The device_node pointer returned by of_find_matching_node() with refcount incremented, when finish using it, the refcount need be decreased.

Fixes a967a289f169 ("RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs")
---
 drivers/soc/sifive/sifive_ccache.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
drivers/soc/sifive/sifive_ccache.c +11 -4
index 98269d056728..3684f5b40a80 100644
@@ -215,12 +215,16 @@ static int __init sifive_ccache_init(void)
 	if (!np)
 		return -ENODEV;
 
-	if (of_address_to_resource(np, 0, &res))
-		return -ENODEV;
+	if (of_address_to_resource(np, 0, &res)) {
+		rc = -ENODEV;
+		goto err_node_put;
+	}
 
 	ccache_base = ioremap(res.start, resource_size(&res));
-	if (!ccache_base)
-		return -ENOMEM;
+	if (!ccache_base) {
+		rc = -ENOMEM;
+		goto err_node_put;
+	}
 
 	if (of_property_read_u32(np, "cache-level", &level)) {
 		rc = -ENOENT;
@@ -243,6 +247,7 @@ static int __init sifive_ccache_init(void)
 			goto err_free_irq;
 		}
 	}
+	of_node_put(np);
 
 	ccache_config_read();
 
@@ -259,6 +264,8 @@ static int __init sifive_ccache_init(void)
 		free_irq(g_irq[i], NULL);
 err_unmap:
 	iounmap(ccache_base);
+err_node_put:
+	of_node_put(np);
 	return rc;
 }
 
Signature · 1 line
2.35.1
author maintainer
#48 lore raw

PATCH 48/1146 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 72e0d9722e07..226648f48df2 100644
@@ -168,7 +168,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
#49 lore raw

PATCH 49/1146 soc/tegra: cbb: Use correct master_id mask for CBB NOC in Tegra194

In reply to Greg Kroah-Hartman

From: Sumit Gupta <[email protected]>

[ Upstream commit 33af51a652191d7b9fe449563594b0bdbeb93c2a ]

In Tegra194 SoC, master_id bit range is different between cluster NOC and CBB NOC. Currently same bit range is used which results in wrong master_id value. Due to this, illegal accesses from the CCPLEX master do not result in a crash as expected. Fix this by using the correct range for the CBB NOC.

Finally, it is only necessary to extract the master_id when the erd_mask_inband_err flag is set because when this is not set, a crash is always triggered.

Fixes b71344221466 ("soc/tegra: cbb: Add CBB 1.0 driver for Tegra194")
Fixes fc2f151d2314 ("soc/tegra: cbb: Add driver for Tegra234 CBB 2.0")
---
 drivers/soc/tegra/cbb/tegra194-cbb.c | 14 +++++++-------
 drivers/soc/tegra/cbb/tegra234-cbb.c | 13 ++++++-------
 2 files changed, 13 insertions(+), 14 deletions(-)
drivers/soc/tegra/cbb/tegra194-cbb.c +7 -7
index 1ae0bd9a1ac1..2e952c6f7c9e 100644
@@ -102,8 +102,6 @@
 #define CLUSTER_NOC_VQC GENMASK(17, 16)
 #define CLUSTER_NOC_MSTR_ID GENMASK(21, 18)
 
-#define USRBITS_MSTR_ID GENMASK(21, 18)
-
 #define CBB_ERR_OPC GENMASK(4, 1)
 #define CBB_ERR_ERRCODE GENMASK(10, 8)
 #define CBB_ERR_LEN1 GENMASK(27, 16)
@@ -2038,15 +2036,17 @@ static irqreturn_t tegra194_cbb_err_isr(int irq, void *data)
 					    smp_processor_id(), priv->noc->name, priv->res->start,
 					    irq);
 
-			mstr_id =  FIELD_GET(USRBITS_MSTR_ID, priv->errlog5) - 1;
 			is_fatal = print_errlog(NULL, priv, status);
 
 			/*
-			 * If illegal request is from CCPLEX(0x1)
-			 * initiator then call BUG() to crash system.
+			 * If illegal request is from CCPLEX(0x1) initiator
+			 * and error is fatal then call BUG() to crash system.
 			 */
-			if ((mstr_id == 0x1) && priv->noc->erd_mask_inband_err)
-				is_inband_err = 1;
+			if (priv->noc->erd_mask_inband_err) {
+				mstr_id =  FIELD_GET(CBB_NOC_MSTR_ID, priv->errlog5);
+				if (mstr_id == 0x1)
+					is_inband_err = 1;
+			}
 		}
 	}
 
drivers/soc/tegra/cbb/tegra234-cbb.c +6 -7
index 3528f9e15d5c..654c3d164606 100644
@@ -92,7 +92,6 @@ struct tegra234_slave_lookup {
 struct tegra234_cbb_fabric {
 	const char *name;
 	phys_addr_t off_mask_erd;
-	bool erd_mask_inband_err;
 	const char * const *master_id;
 	unsigned int notifier_offset;
 	const struct tegra_cbb_error *errors;
@@ -525,14 +524,14 @@ static irqreturn_t tegra234_cbb_isr(int irq, void *data)
 			if (err)
 				goto unlock;
 
-			mstr_id =  FIELD_GET(USRBITS_MSTR_ID, priv->mn_user_bits);
-
 			/*
-			 * If illegal request is from CCPLEX(id:0x1) master then call BUG() to
-			 * crash system.
+			 * If illegal request is from CCPLEX(id:0x1) master then call WARN()
 			 */
-			if ((mstr_id == 0x1) && priv->fabric->off_mask_erd)
-				is_inband_err = 1;
+			if (priv->fabric->off_mask_erd) {
+				mstr_id =  FIELD_GET(USRBITS_MSTR_ID, priv->mn_user_bits);
+				if (mstr_id == 0x1)
+					is_inband_err = 1;
+			}
 		}
 	}
 
Signature · 1 line
2.35.1
author maintainer
#50 lore raw

PATCH 50/1146 soc/tegra: cbb: Update slave maps for Tegra234

In reply to Greg Kroah-Hartman

From: Sumit Gupta <[email protected]>

[ Upstream commit cd1d719b47767f1970d02d18661122b649c35b00 ]

Updating the slave map for fabrics and using the same maps for DCE, RCE and SCE as they all are a replica in Tegra234.

Stable-dep-of: 55084947d6b4 ("soc/tegra: cbb: Add checks for potential out of bound errors")

---
 drivers/soc/tegra/cbb/tegra234-cbb.c | 34 +++++++++++-----------------
 1 file changed, 13 insertions(+), 21 deletions(-)
drivers/soc/tegra/cbb/tegra234-cbb.c +13 -21
index 654c3d164606..04e12d9fdea5 100644
@@ -516,7 +516,7 @@ static irqreturn_t tegra234_cbb_isr(int irq, void *data)
 		u32 status = tegra_cbb_get_status(cbb);
 
 		if (status && (irq == priv->sec_irq)) {
-			tegra_cbb_print_err(NULL, "CPU:%d, Error: %s@%llx, irq=%d\n",
+			tegra_cbb_print_err(NULL, "CPU:%d, Error: %s@0x%llx, irq=%d\n",
 					    smp_processor_id(), priv->fabric->name,
 					    priv->res->start, irq);
 
@@ -732,48 +732,35 @@ static const struct tegra234_cbb_fabric tegra234_cbb_fabric = {
 	.off_mask_erd = 0x3a004
 };
 
-static const struct tegra234_slave_lookup tegra234_dce_slave_map[] = {
+static const struct tegra234_slave_lookup tegra234_common_slave_map[] = {
 	{ "AXI2APB", 0x00000 },
 	{ "AST0",    0x15000 },
 	{ "AST1",    0x16000 },
+	{ "CBB",     0x17000 },
+	{ "RSVD",    0x00000 },
 	{ "CPU",     0x18000 },
 };
 
 static const struct tegra234_cbb_fabric tegra234_dce_fabric = {
 	.name = "dce-fabric",
 	.master_id = tegra234_master_id,
-	.slave_map = tegra234_dce_slave_map,
+	.slave_map = tegra234_common_slave_map,
 	.errors = tegra234_cbb_errors,
 	.notifier_offset = 0x19000,
 };
 
-static const struct tegra234_slave_lookup tegra234_rce_slave_map[] = {
-	{ "AXI2APB", 0x00000 },
-	{ "AST0",    0x15000 },
-	{ "AST1",    0x16000 },
-	{ "CPU",     0x18000 },
-};
-
 static const struct tegra234_cbb_fabric tegra234_rce_fabric = {
 	.name = "rce-fabric",
 	.master_id = tegra234_master_id,
-	.slave_map = tegra234_rce_slave_map,
+	.slave_map = tegra234_common_slave_map,
 	.errors = tegra234_cbb_errors,
 	.notifier_offset = 0x19000,
 };
 
-static const struct tegra234_slave_lookup tegra234_sce_slave_map[] = {
-	{ "AXI2APB", 0x00000 },
-	{ "AST0",    0x15000 },
-	{ "AST1",    0x16000 },
-	{ "CBB",     0x17000 },
-	{ "CPU",     0x18000 },
-};
-
 static const struct tegra234_cbb_fabric tegra234_sce_fabric = {
 	.name = "sce-fabric",
 	.master_id = tegra234_master_id,
-	.slave_map = tegra234_sce_slave_map,
+	.slave_map = tegra234_common_slave_map,
 	.errors = tegra234_cbb_errors,
 	.notifier_offset = 0x19000,
 };
@@ -888,7 +875,7 @@ static const struct tegra_cbb_error tegra241_cbb_errors[] = {
 };
 
 static const struct tegra234_slave_lookup tegra241_cbb_slave_map[] = {
-	{ "CCPLEX",     0x50000 },
+	{ "RSVD",       0x00000 },
 	{ "PCIE_C8",    0x51000 },
 	{ "PCIE_C9",    0x52000 },
 	{ "RSVD",       0x00000 },
@@ -941,8 +928,12 @@ static const struct tegra234_slave_lookup tegra241_cbb_slave_map[] = {
 	{ "PCIE_C3",    0x58000 },
 	{ "PCIE_C0",    0x59000 },
 	{ "PCIE_C1",    0x5a000 },
+	{ "CCPLEX",     0x50000 },
 	{ "AXI2APB_29", 0x85000 },
 	{ "AXI2APB_30", 0x86000 },
+	{ "CBB_CENTRAL", 0x00000 },
+	{ "AXI2APB_31", 0x8E000 },
+	{ "AXI2APB_32", 0x8F000 },
 };
 
 static const struct tegra234_cbb_fabric tegra241_cbb_fabric = {
@@ -955,6 +946,7 @@ static const struct tegra234_cbb_fabric tegra241_cbb_fabric = {
 };
 
 static const struct tegra234_slave_lookup tegra241_bpmp_slave_map[] = {
+	{ "RSVD",    0x00000 },
 	{ "RSVD",    0x00000 },
 	{ "RSVD",    0x00000 },
 	{ "CBB",     0x15000 },
Signature · 1 line
2.35.1
author maintainer
#36 lore raw

PATCH 36/1146 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 c39de7d3ace0..3a315280c34a 100644
@@ -1154,9 +1154,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
#51 lore raw

PATCH 51/1146 soc/tegra: cbb: Add checks for potential out of bound errors

In reply to Greg Kroah-Hartman

From: Sumit Gupta <[email protected]>

[ Upstream commit 55084947d6b48977c5122fbe443743a6c50c12bf ]

Added checks to avoid potential out of bounds errors which can happen if the 'slave map' and 'CBB errors' arrays are not correct or latest where some entries are missing.

Fixes fc2f151d2314 ("soc/tegra: cbb: Add driver for Tegra234 CBB 2.0")
---
 drivers/soc/tegra/cbb/tegra234-cbb.c | 42 ++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)
drivers/soc/tegra/cbb/tegra234-cbb.c +40 -2
index 04e12d9fdea5..0fab9e21d677 100644
@@ -95,7 +95,9 @@ struct tegra234_cbb_fabric {
 	const char * const *master_id;
 	unsigned int notifier_offset;
 	const struct tegra_cbb_error *errors;
+	const int max_errors;
 	const struct tegra234_slave_lookup *slave_map;
+	const int max_slaves;
 };
 
 struct tegra234_cbb {
@@ -270,6 +272,12 @@ static void tegra234_cbb_print_error(struct seq_file *file, struct tegra234_cbb
 		tegra_cbb_print_err(file, "\t  Multiple type of errors reported\n");
 
 	while (status) {
+		if (type >= cbb->fabric->max_errors) {
+			tegra_cbb_print_err(file, "\t  Wrong type index:%u, status:%u\n",
+					    type, status);
+			return;
+		}
+
 		if (status & 0x1)
 			tegra_cbb_print_err(file, "\t  Error Code\t\t: %s\n",
 					    cbb->fabric->errors[type].code);
@@ -281,6 +289,12 @@ static void tegra234_cbb_print_error(struct seq_file *file, struct tegra234_cbb
 	type = 0;
 
 	while (overflow) {
+		if (type >= cbb->fabric->max_errors) {
+			tegra_cbb_print_err(file, "\t  Wrong type index:%u, overflow:%u\n",
+					    type, overflow);
+			return;
+		}
+
 		if (overflow & 0x1)
 			tegra_cbb_print_err(file, "\t  Overflow\t\t: Multiple %s\n",
 					    cbb->fabric->errors[type].code);
@@ -333,8 +347,11 @@ static void print_errlog_err(struct seq_file *file, struct tegra234_cbb *cbb)
 	access_type = FIELD_GET(FAB_EM_EL_ACCESSTYPE, cbb->mn_attr0);
 
 	tegra_cbb_print_err(file, "\n");
-	tegra_cbb_print_err(file, "\t  Error Code\t\t: %s\n",
-			    cbb->fabric->errors[cbb->type].code);
+	if (cbb->type < cbb->fabric->max_errors)
+		tegra_cbb_print_err(file, "\t  Error Code\t\t: %s\n",
+				    cbb->fabric->errors[cbb->type].code);
+	else
+		tegra_cbb_print_err(file, "\t  Wrong type index:%u\n", cbb->type);
 
 	tegra_cbb_print_err(file, "\t  MASTER_ID\t\t: %s\n", cbb->fabric->master_id[mstr_id]);
 	tegra_cbb_print_err(file, "\t  Address\t\t: %#llx\n", cbb->access);
@@ -373,6 +390,11 @@ static void print_errlog_err(struct seq_file *file, struct tegra234_cbb *cbb)
 	if ((fab_id == PSC_FAB_ID) || (fab_id == FSI_FAB_ID))
 		return;
 
+	if (slave_id >= cbb->fabric->max_slaves) {
+		tegra_cbb_print_err(file, "\t  Invalid slave_id:%d\n", slave_id);
+		return;
+	}
+
 	if (!strcmp(cbb->fabric->errors[cbb->type].code, "TIMEOUT_ERR")) {
 		tegra234_lookup_slave_timeout(file, cbb, slave_id, fab_id);
 		return;
@@ -639,7 +661,9 @@ static const struct tegra234_cbb_fabric tegra234_aon_fabric = {
 	.name = "aon-fabric",
 	.master_id = tegra234_master_id,
 	.slave_map = tegra234_aon_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra234_aon_slave_map),
 	.errors = tegra234_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x17000,
 };
 
@@ -655,7 +679,9 @@ static const struct tegra234_cbb_fabric tegra234_bpmp_fabric = {
 	.name = "bpmp-fabric",
 	.master_id = tegra234_master_id,
 	.slave_map = tegra234_bpmp_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra234_bpmp_slave_map),
 	.errors = tegra234_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
 };
 
@@ -727,7 +753,9 @@ static const struct tegra234_cbb_fabric tegra234_cbb_fabric = {
 	.name = "cbb-fabric",
 	.master_id = tegra234_master_id,
 	.slave_map = tegra234_cbb_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra234_cbb_slave_map),
 	.errors = tegra234_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x60000,
 	.off_mask_erd = 0x3a004
 };
@@ -745,7 +773,9 @@ static const struct tegra234_cbb_fabric tegra234_dce_fabric = {
 	.name = "dce-fabric",
 	.master_id = tegra234_master_id,
 	.slave_map = tegra234_common_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra234_common_slave_map),
 	.errors = tegra234_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
 };
 
@@ -753,7 +783,9 @@ static const struct tegra234_cbb_fabric tegra234_rce_fabric = {
 	.name = "rce-fabric",
 	.master_id = tegra234_master_id,
 	.slave_map = tegra234_common_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra234_common_slave_map),
 	.errors = tegra234_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
 };
 
@@ -761,7 +793,9 @@ static const struct tegra234_cbb_fabric tegra234_sce_fabric = {
 	.name = "sce-fabric",
 	.master_id = tegra234_master_id,
 	.slave_map = tegra234_common_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra234_common_slave_map),
 	.errors = tegra234_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
 };
 
@@ -940,7 +974,9 @@ static const struct tegra234_cbb_fabric tegra241_cbb_fabric = {
 	.name = "cbb-fabric",
 	.master_id = tegra241_master_id,
 	.slave_map = tegra241_cbb_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra241_cbb_slave_map),
 	.errors = tegra241_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra241_cbb_errors),
 	.notifier_offset = 0x60000,
 	.off_mask_erd = 0x40004,
 };
@@ -960,7 +996,9 @@ static const struct tegra234_cbb_fabric tegra241_bpmp_fabric = {
 	.name = "bpmp-fabric",
 	.master_id = tegra241_master_id,
 	.slave_map = tegra241_bpmp_slave_map,
+	.max_slaves = ARRAY_SIZE(tegra241_bpmp_slave_map),
 	.errors = tegra241_cbb_errors,
+	.max_errors = ARRAY_SIZE(tegra241_cbb_errors),
 	.notifier_offset = 0x19000,
 };
 
Signature · 1 line
2.35.1
author maintainer
#52 lore raw

PATCH 52/1146 soc/tegra: cbb: Check firewall before enabling error reporting

In reply to Greg Kroah-Hartman

From: Sumit Gupta <[email protected]>

[ Upstream commit 2927cf85f4877f417f884919de8e04ab9b362d32 ]

To enable error reporting for a fabric to CCPLEX, we need to write its register for enabling error interrupt to CCPLEX during boot and later clear the error status register after error occurs. If a fabric's registers are protected and not accessible from CCPLEX, then accessing the registers will cause CBB firewall error.

Add support to check whether write access from CCPLEX to the registers of a fabric is not blocked by it's firewall before enabling error reporting to CCPLEX for that fabric.

Fixes fc2f151d2314 ("soc/tegra: cbb: Add driver for Tegra234 CBB 2.0")
---
 drivers/soc/tegra/cbb/tegra234-cbb.c | 83 +++++++++++++++++++++++++++-
 1 file changed, 81 insertions(+), 2 deletions(-)
drivers/soc/tegra/cbb/tegra234-cbb.c +81 -2
index 0fab9e21d677..f33d094e5ea6 100644
@@ -72,6 +72,11 @@
 
 #define REQ_SOCKET_ID			GENMASK(27, 24)
 
+#define CCPLEX_MSTRID			0x1
+#define FIREWALL_APERTURE_SZ		0x10000
+/* Write firewall check enable */
+#define WEN				0x20000
+
 enum tegra234_cbb_fabric_ids {
 	CBB_FAB_ID,
 	SCE_FAB_ID,
@@ -92,6 +97,9 @@ struct tegra234_slave_lookup {
 struct tegra234_cbb_fabric {
 	const char *name;
 	phys_addr_t off_mask_erd;
+	phys_addr_t firewall_base;
+	unsigned int firewall_ctl;
+	unsigned int firewall_wr_ctl;
 	const char * const *master_id;
 	unsigned int notifier_offset;
 	const struct tegra_cbb_error *errors;
@@ -129,6 +137,44 @@ static inline struct tegra234_cbb *to_tegra234_cbb(struct tegra_cbb *cbb)
 static LIST_HEAD(cbb_list);
 static DEFINE_SPINLOCK(cbb_lock);
 
+static bool
+tegra234_cbb_write_access_allowed(struct platform_device *pdev, struct tegra234_cbb *cbb)
+{
+	u32 val;
+
+	if (!cbb->fabric->firewall_base ||
+	    !cbb->fabric->firewall_ctl ||
+	    !cbb->fabric->firewall_wr_ctl) {
+		dev_info(&pdev->dev, "SoC data missing for firewall\n");
+		return false;
+	}
+
+	if ((cbb->fabric->firewall_ctl > FIREWALL_APERTURE_SZ) ||
+	    (cbb->fabric->firewall_wr_ctl > FIREWALL_APERTURE_SZ)) {
+		dev_err(&pdev->dev, "wrong firewall offset value\n");
+		return false;
+	}
+
+	val = readl(cbb->regs + cbb->fabric->firewall_base + cbb->fabric->firewall_ctl);
+	/*
+	 * If the firewall check feature for allowing or blocking the
+	 * write accesses through the firewall of a fabric is disabled
+	 * then CCPLEX can write to the registers of that fabric.
+	 */
+	if (!(val & WEN))
+		return true;
+
+	/*
+	 * If the firewall check is enabled then check whether CCPLEX
+	 * has write access to the fabric's error notifier registers
+	 */
+	val = readl(cbb->regs + cbb->fabric->firewall_base + cbb->fabric->firewall_wr_ctl);
+	if (val & (BIT(CCPLEX_MSTRID)))
+		return true;
+
+	return false;
+}
+
 static void tegra234_cbb_fault_enable(struct tegra_cbb *cbb)
 {
 	struct tegra234_cbb *priv = to_tegra234_cbb(cbb);
@@ -551,7 +597,7 @@ static irqreturn_t tegra234_cbb_isr(int irq, void *data)
 			 */
 			if (priv->fabric->off_mask_erd) {
 				mstr_id =  FIELD_GET(USRBITS_MSTR_ID, priv->mn_user_bits);
-				if (mstr_id == 0x1)
+				if (mstr_id == CCPLEX_MSTRID)
 					is_inband_err = 1;
 			}
 		}
@@ -665,6 +711,9 @@ static const struct tegra234_cbb_fabric tegra234_aon_fabric = {
 	.errors = tegra234_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x17000,
+	.firewall_base = 0x30000,
+	.firewall_ctl = 0x8d0,
+	.firewall_wr_ctl = 0x8c8,
 };
 
 static const struct tegra234_slave_lookup tegra234_bpmp_slave_map[] = {
@@ -683,6 +732,9 @@ static const struct tegra234_cbb_fabric tegra234_bpmp_fabric = {
 	.errors = tegra234_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
+	.firewall_base = 0x30000,
+	.firewall_ctl = 0x8f0,
+	.firewall_wr_ctl = 0x8e8,
 };
 
 static const struct tegra234_slave_lookup tegra234_cbb_slave_map[] = {
@@ -757,7 +809,10 @@ static const struct tegra234_cbb_fabric tegra234_cbb_fabric = {
 	.errors = tegra234_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x60000,
-	.off_mask_erd = 0x3a004
+	.off_mask_erd = 0x3a004,
+	.firewall_base = 0x10000,
+	.firewall_ctl = 0x23f0,
+	.firewall_wr_ctl = 0x23e8,
 };
 
 static const struct tegra234_slave_lookup tegra234_common_slave_map[] = {
@@ -777,6 +832,9 @@ static const struct tegra234_cbb_fabric tegra234_dce_fabric = {
 	.errors = tegra234_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
+	.firewall_base = 0x30000,
+	.firewall_ctl = 0x290,
+	.firewall_wr_ctl = 0x288,
 };
 
 static const struct tegra234_cbb_fabric tegra234_rce_fabric = {
@@ -787,6 +845,9 @@ static const struct tegra234_cbb_fabric tegra234_rce_fabric = {
 	.errors = tegra234_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
+	.firewall_base = 0x30000,
+	.firewall_ctl = 0x290,
+	.firewall_wr_ctl = 0x288,
 };
 
 static const struct tegra234_cbb_fabric tegra234_sce_fabric = {
@@ -797,6 +858,9 @@ static const struct tegra234_cbb_fabric tegra234_sce_fabric = {
 	.errors = tegra234_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra234_cbb_errors),
 	.notifier_offset = 0x19000,
+	.firewall_base = 0x30000,
+	.firewall_ctl = 0x290,
+	.firewall_wr_ctl = 0x288,
 };
 
 static const char * const tegra241_master_id[] = {
@@ -979,6 +1043,9 @@ static const struct tegra234_cbb_fabric tegra241_cbb_fabric = {
 	.max_errors = ARRAY_SIZE(tegra241_cbb_errors),
 	.notifier_offset = 0x60000,
 	.off_mask_erd = 0x40004,
+	.firewall_base = 0x20000,
+	.firewall_ctl = 0x2370,
+	.firewall_wr_ctl = 0x2368,
 };
 
 static const struct tegra234_slave_lookup tegra241_bpmp_slave_map[] = {
@@ -1000,6 +1067,9 @@ static const struct tegra234_cbb_fabric tegra241_bpmp_fabric = {
 	.errors = tegra241_cbb_errors,
 	.max_errors = ARRAY_SIZE(tegra241_cbb_errors),
 	.notifier_offset = 0x19000,
+	.firewall_base = 0x30000,
+	.firewall_ctl = 0x8f0,
+	.firewall_wr_ctl = 0x8e8,
 };
 
 static const struct of_device_id tegra234_cbb_dt_ids[] = {
@@ -1084,6 +1154,15 @@ static int tegra234_cbb_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, cbb);
 
+	/*
+	 * Don't enable error reporting for a Fabric if write to it's registers
+	 * is blocked by CBB firewall.
+	 */
+	if (!tegra234_cbb_write_access_allowed(pdev, cbb)) {
+		dev_info(&pdev->dev, "error reporting not enabled due to firewall\n");
+		return 0;
+	}
+
 	spin_lock_irqsave(&cbb_lock, flags);
 	list_add(&cbb->base.node, &cbb_list);
 	spin_unlock_irqrestore(&cbb_lock, flags);
Signature · 1 line
2.35.1
author maintainer
#53 lore raw

PATCH 53/1146 arm64: dts: qcom: sc7280: Mark all Qualcomm reference boards as LTE

In reply to Greg Kroah-Hartman

From: Sibi Sankar <[email protected]>

[ Upstream commit 3c800bcf07a5957da01593e8f83d797b285a37e0 ]

When the modem node was re-located to a separate LTE source file "sc7280-herobrine-lte-sku.dtsi", some of the previous LTE users weren't marked appropriately. Fix this by marking all Qualcomm reference devices as LTE.

Fixes d42fae738f3a ("arm64: dts: qcom: Add LTE SKUs for sc7280-villager family")
---
 arch/arm64/boot/dts/qcom/sc7280-idp.dts  | 1 -
 arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7280-idp.dts +0 -1
index 7559164cdda0..e2e37a0292ad 100644
@@ -10,7 +10,6 @@
 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h>
 #include "sc7280-idp.dtsi"
 #include "pmr735a.dtsi"
-#include "sc7280-herobrine-lte-sku.dtsi"
 
 / {
 	model = "Qualcomm Technologies, Inc. sc7280 IDP SKU1 platform";
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +1 -0
index 7772dfba94ec..ca50f0ba9b81 100644
@@ -13,6 +13,7 @@
 #include "pmk8350.dtsi"
 
 #include "sc7280-chrome-common.dtsi"
+#include "sc7280-herobrine-lte-sku.dtsi"
 
 / {
 	aliases {
Signature · 1 line
2.35.1
author maintainer
#54 lore raw

PATCH 54/1146 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
#55 lore raw

PATCH 55/1146 riscv: dts: microchip: fix the icicles #pwm-cells

In reply to Greg Kroah-Hartman

From: Conor Dooley <[email protected]>

[ Upstream commit bdd28ab35c163553a2a686fdc5ea3cf247aad69b ]

\#pwm-cells for the Icicle kit's fabric PWM was incorrectly set to 2 & blindly overridden by the (out of tree) driver anyway. The core can support inverted operation, so update the entry to correctly report its capabilities.

Fixes 72560c6559b8 ("riscv: dts: microchip: add fpga fabric section to icicle kit")
---
 arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi +1 -1
index 24b1cfb9a73e..5d3e5240e33a 100644
@@ -9,7 +9,7 @@ core_pwm0: pwm@40000000 {
 		compatible = "microchip,corepwm-rtl-v4";
 		reg = <0x0 0x40000000 0x0 0xF0>;
 		microchip,sync-update-mask = /bits/ 32 <0>;
-		#pwm-cells = <2>;
+		#pwm-cells = <3>;
 		clocks = <&fabric_clk3>;
 		status = "disabled";
 	};
Signature · 1 line
2.35.1
author maintainer
#56 lore raw

PATCH 56/1146 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
#57 lore raw

PATCH 57/1146 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
#58 lore raw

PATCH 58/1146 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 5b391490e045..74f76514a48d 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
#59 lore raw

PATCH 59/1146 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 4a15c86f45ef..fe2abb412c00 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
#60 lore raw

PATCH 60/1146 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
#37 lore raw

PATCH 37/1146 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
#61 lore raw

PATCH 61/1146 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
#62 lore raw

PATCH 62/1146 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
#63 lore raw

PATCH 63/1146 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 4005a73cfea9..ebb1c5ce7aec 100644
@@ -120,7 +120,6 @@ crypto: crypto@4e00000 {
 		dmas = <&main_udmap 0xc001>, <&main_udmap 0x4002>,
 				<&main_udmap 0x4003>;
 		dma-names = "tx", "rx1", "rx2";
-		dma-coherent;
 
 		rng: rng@4e10000 {
 			compatible = "inside-secure,safexcel-eip76";
Signature · 1 line
2.35.1
author maintainer
#33 lore raw

PATCH 33/1146 arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 3.0/3.1

In reply to Greg Kroah-Hartman

From: Dmitry Torokhov <[email protected]>

[ Upstream commit 1caf66104c02d327a2467a69ab18fb24b44e9715 ]

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 0a3a56a93fd9 ("arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1")
---
 arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +1 -1
index 4b8c676b0bb1..f7665b379923 100644
@@ -37,7 +37,7 @@ wcd9385: audio-codec-1 {
 		pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>;
 		pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>;
 
-		reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
 		us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
 
 		qcom,rx-device = <&wcd_rx>;
Signature · 1 line
2.35.1
author maintainer
#66 lore raw

PATCH 66/1146 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
#67 lore raw

PATCH 67/1146 riscv: dts: microchip: remove pcie node from the sev kit

In reply to Greg Kroah-Hartman

From: Conor Dooley <[email protected]>

[ Upstream commit 1150f4cff831e1d7db673417bcb81833d6544cf8 ]

The SEV kit reference design does not hook up the PCIe root port to the core complex including it is misleading.
The entry is a re-use mistake - I was not aware of this when I moved the PCIe node out of mpfs.dtsi so that individual bistreams could connect it to different fics etc.

The node is disabled, so there should be no functional change here.

Fixes 978a17d1a688 ("riscv: dts: microchip: add sevkit device tree")
---
 .../dts/microchip/mpfs-sev-kit-fabric.dtsi    | 29 -------------------
 1 file changed, 29 deletions(-)
arch/riscv/boot/dts/microchip/mpfs-sev-kit-fabric.dtsi +0 -29
index 8545baf4d129..39a77df489ab 100644
@@ -13,33 +13,4 @@ fabric_clk1: fabric-clk1 {
 		#clock-cells = <0>;
 		clock-frequency = <125000000>;
 	};
-
-	pcie: pcie@2000000000 {
-		compatible = "microchip,pcie-host-1.0";
-		#address-cells = <0x3>;
-		#interrupt-cells = <0x1>;
-		#size-cells = <0x2>;
-		device_type = "pci";
-		reg = <0x20 0x0 0x0 0x8000000>, <0x0 0x43000000 0x0 0x10000>;
-		reg-names = "cfg", "apb";
-		bus-range = <0x0 0x7f>;
-		interrupt-parent = <&plic>;
-		interrupts = <119>;
-		interrupt-map = <0 0 0 1 &pcie_intc 0>,
-				<0 0 0 2 &pcie_intc 1>,
-				<0 0 0 3 &pcie_intc 2>,
-				<0 0 0 4 &pcie_intc 3>;
-		interrupt-map-mask = <0 0 0 7>;
-		clocks = <&fabric_clk1>, <&fabric_clk1>, <&fabric_clk3>;
-		clock-names = "fic0", "fic1", "fic3";
-		ranges = <0x3000000 0x0 0x8000000 0x20 0x8000000 0x0 0x80000000>;
-		msi-parent = <&pcie>;
-		msi-controller;
-		status = "disabled";
-		pcie_intc: interrupt-controller {
-			#address-cells = <0>;
-			#interrupt-cells = <1>;
-			interrupt-controller;
-		};
-	};
 };
Signature · 1 line
2.35.1
author maintainer
#68 lore raw

PATCH 68/1146 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
#69 lore raw

PATCH 69/1146 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 905d1a90b406..0b85b5874a4f 100644
@@ -36,7 +36,7 @@ cpu0: cpu@0 {
 			enable-method = "psci";
 			performance-domains = <&performance 0>;
 			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>;
@@ -49,7 +49,7 @@ cpu1: cpu@100 {
 			enable-method = "psci";
 			performance-domains = <&performance 0>;
 			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>;
@@ -62,7 +62,7 @@ cpu2: cpu@200 {
 			enable-method = "psci";
 			performance-domains = <&performance 0>;
 			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>;
@@ -75,7 +75,7 @@ cpu3: cpu@300 {
 			enable-method = "psci";
 			performance-domains = <&performance 0>;
 			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
#70 lore raw

PATCH 70/1146 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 226648f48df2..14c91ded29e6 100644
@@ -14,7 +14,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
#71 lore raw

PATCH 71/1146 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
#72 lore raw

PATCH 72/1146 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 e6d7453e56e0..ff6b26cdda81 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
#73 lore raw

PATCH 73/1146 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 ff6b26cdda81..1ac0b2cf3d40 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
#74 lore raw

PATCH 74/1146 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
#75 lore raw

PATCH 75/1146 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
#64 lore raw

PATCH 64/1146 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 917c9dc99efa..603ddda5127f 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
#76 lore raw

PATCH 76/1146 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
#77 lore raw

PATCH 77/1146 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
#78 lore raw

PATCH 78/1146 arm64: tegra: Fix Prefetchable aperture ranges of Tegra234 PCIe controllers

In reply to Greg Kroah-Hartman

From: Vidya Sagar <[email protected]>

[ Upstream commit 248400656b1cd85de37f3742d065dc1826cdf589 ]

commit edf408b946d3 ("PCI: dwc: Validate iATU outbound mappings against hardware constraints") exposes an issue with the existing partitioning of the aperture space where the Prefetchable apertures of controllers C5, C7 and C9 in Tegra234 cross the 32GB boundary hardware constraint. This patch makes sure that the Prefetchable region doesn't spill over the 32GB boundary.

Fixes ec142c44b026 ("arm64: tegra: Add P2U and PCIe controller nodes to Tegra234 DT")
---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +3 -3
index 0170bfa8a467..9b43a0b0d775 100644
@@ -1965,7 +1965,7 @@ pcie@140c0000 {
 
 		bus-range = <0x0 0xff>;
 
-		ranges = <0x43000000 0x35 0x40000000 0x35 0x40000000 0x2 0xe8000000>, /* prefetchable memory (11904 MB) */
+		ranges = <0x43000000 0x35 0x40000000 0x35 0x40000000 0x2 0xc0000000>, /* prefetchable memory (11264 MB) */
 			 <0x02000000 0x0  0x40000000 0x38 0x28000000 0x0 0x08000000>, /* non-prefetchable memory (128 MB) */
 			 <0x01000000 0x0  0x2c100000 0x00 0x2c100000 0x0 0x00100000>; /* downstream I/O (1 MB) */
 
@@ -2336,7 +2336,7 @@ pcie@141a0000 {
 
 		bus-range = <0x0 0xff>;
 
-		ranges = <0x43000000 0x27 0x40000000 0x27 0x40000000 0x3 0xe8000000>, /* prefetchable memory (16000 MB) */
+		ranges = <0x43000000 0x28 0x00000000 0x28 0x00000000 0x3 0x28000000>, /* prefetchable memory (12928 MB) */
 			 <0x02000000 0x0  0x40000000 0x2b 0x28000000 0x0 0x08000000>, /* non-prefetchable memory (128 MB) */
 			 <0x01000000 0x0  0x3a100000 0x00 0x3a100000 0x0 0x00100000>; /* downstream I/O (1 MB) */
 
@@ -2442,7 +2442,7 @@ pcie@141e0000 {
 
 		bus-range = <0x0 0xff>;
 
-		ranges = <0x43000000 0x2e 0x40000000 0x2e 0x40000000 0x3 0xe8000000>, /* prefetchable memory (16000 MB) */
+		ranges = <0x43000000 0x30 0x00000000 0x30 0x00000000 0x2 0x28000000>, /* prefetchable memory (8832 MB) */
 			 <0x02000000 0x0  0x40000000 0x32 0x28000000 0x0 0x08000000>, /* non-prefetchable memory (128 MB) */
 			 <0x01000000 0x0  0x3e100000 0x00 0x3e100000 0x0 0x00100000>; /* downstream I/O (1 MB) */
 
Signature · 1 line
2.35.1
author maintainer
#79 lore raw

PATCH 79/1146 arm64: tegra: Fix non-prefetchable aperture of PCIe C3 controller

In reply to Greg Kroah-Hartman

From: Vidya Sagar <[email protected]>

[ Upstream commit 47a2f35d9ea76d92aa2385671f527b75aa9dfe45 ]

Fix the starting address of the non-prefetchable aperture of PCIe C3 controller.

Fixes ec142c44b026 ("arm64: tegra: Add P2U and PCIe controller nodes to Tegra234 DT")
---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +1 -1
index 9b43a0b0d775..dfe2cf2f4b21 100644
@@ -2178,7 +2178,7 @@ pcie@14140000 {
 		bus-range = <0x0 0xff>;
 
 		ranges = <0x43000000 0x21 0x00000000 0x21 0x00000000 0x0 0x28000000>, /* prefetchable memory (640 MB) */
-			 <0x02000000 0x0  0x40000000 0x21 0xe8000000 0x0 0x08000000>, /* non-prefetchable memory (128 MB) */
+			 <0x02000000 0x0  0x40000000 0x21 0x28000000 0x0 0x08000000>, /* non-prefetchable memory (128 MB) */
 			 <0x01000000 0x0  0x34100000 0x00 0x34100000 0x0 0x00100000>; /* downstream I/O (1 MB) */
 
 		interconnects = <&mc TEGRA234_MEMORY_CLIENT_PCIE3R &emc>,
Signature · 1 line
2.35.1
author maintainer
#80 lore raw

PATCH 80/1146 arm64: dts: mt7986: move wed_pcie node

In reply to Greg Kroah-Hartman

From: Frank Wunderlich <[email protected]>

[ Upstream commit 99cce13b82a9366cfdd230ba6ddb48ba30d2741f ]

Move the wed_pcie node to have node aligned by address.

Fixes 00b9903996b3 ("arm64: dts: mediatek: mt7986: add support for Wireless Ethernet Dispatch")
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +6 -6
index 14c91ded29e6..35e01fa2d314 100644
@@ -112,6 +112,12 @@ infracfg: infracfg@10001000 {
 			#clock-cells = <1>;
 		};
 
+		wed_pcie: wed-pcie@10003000 {
+			compatible = "mediatek,mt7986-wed-pcie",
+				     "syscon";
+			reg = <0 0x10003000 0 0x10>;
+		};
+
 		topckgen: topckgen@1001b000 {
 			compatible = "mediatek,mt7986-topckgen", "syscon";
 			reg = <0 0x1001B000 0 0x1000>;
@@ -228,12 +234,6 @@ ethsys: syscon@15000000 {
 			 #reset-cells = <1>;
 		};
 
-		wed_pcie: wed-pcie@10003000 {
-			compatible = "mediatek,mt7986-wed-pcie",
-				     "syscon";
-			reg = <0 0x10003000 0 0x10>;
-		};
-
 		wed0: wed@15010000 {
 			compatible = "mediatek,mt7986-wed",
 				     "syscon";
Signature · 1 line
2.35.1
author maintainer
#81 lore raw

PATCH 81/1146 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 00a36fba2fd2..9aee3cfd3e98 100644
@@ -139,7 +139,7 @@ pcie0_intc: interrupt-controller {
 			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
#82 lore raw

PATCH 82/1146 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 9dc928859ad3..2013a5ccecd3 100644
@@ -84,7 +84,7 @@ pcie0_intc: interrupt-controller {
 
 			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
#83 lore raw

PATCH 83/1146 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 bf9360f41e0a..5ea9d509cd30 100644
@@ -107,7 +107,7 @@ pcie1_intc: interrupt-controller {
 
 			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>;
@@ -135,7 +135,7 @@ pcie2_intc: interrupt-controller {
 
 			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>;
@@ -163,7 +163,7 @@ pcie3_intc: interrupt-controller {
 
 			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>;
@@ -191,7 +191,7 @@ pcie4_intc: interrupt-controller {
 
 			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 0714af52e607..6c6fbb9faf5a 100644
@@ -122,7 +122,7 @@ pcie1_intc: interrupt-controller {
 
 			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>;
@@ -150,7 +150,7 @@ pcie2_intc: interrupt-controller {
 
 			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>;
@@ -178,7 +178,7 @@ pcie3_intc: interrupt-controller {
 
 			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>;
@@ -206,7 +206,7 @@ pcie4_intc: interrupt-controller {
 
 			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>;
@@ -234,7 +234,7 @@ pcie5_intc: interrupt-controller {
 
 			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>;
@@ -262,7 +262,7 @@ pcie6_intc: interrupt-controller {
 
 			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>;
@@ -290,7 +290,7 @@ pcie7_intc: interrupt-controller {
 
 			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>;
@@ -318,7 +318,7 @@ pcie8_intc: interrupt-controller {
 
 			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
#84 lore raw

PATCH 84/1146 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 929deaf312a5..c310ef26d1cc 100644
@@ -592,7 +592,7 @@ pcie0_intc: interrupt-controller {
 
 			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
#85 lore raw

PATCH 85/1146 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 ce1dddb2269b..e94f22b0e9b5 100644
@@ -89,7 +89,7 @@ pcie1_intc: interrupt-controller {
 			/* 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>;
@@ -118,7 +118,7 @@ pcie2_intc: interrupt-controller {
 			/* 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
#65 lore raw

PATCH 65/1146 arm64: dts: ti: k3-j7200-mcu-wakeup: Drop dma-coherent in crypto node

In reply to Greg Kroah-Hartman

From: Jayesh Choudhary <[email protected]>

[ Upstream commit f00f26711d7183f8675c5591ba8daaabe94be452 ]

crypto driver itself is not dma-coherent. So drop it.

Fixes d683a73980a6 ("arm64: dts: ti: k3-j7200-mcu-wakeup: Add SA2UL node")
---
 arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi +0 -1
index e5be78a58682..d3fb86b2ea93 100644
@@ -386,7 +386,6 @@ mcu_crypto: crypto@40900000 {
 		dmas = <&mcu_udmap 0xf501>, <&mcu_udmap 0x7502>,
 		       <&mcu_udmap 0x7503>;
 		dma-names = "tx", "rx1", "rx2";
-		dma-coherent;
 
 		rng: rng@40910000 {
 			compatible = "inside-secure,safexcel-eip76";
Signature · 1 line
2.35.1
author maintainer
#86 lore raw

PATCH 86/1146 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 923b035a3ab3..9d1cac49c022 100644
@@ -463,7 +463,7 @@ pcie1_intc: interrupt-controller {
 			/* 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>;
@@ -492,7 +492,7 @@ pcie2_intc: interrupt-controller {
 			/* 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>;
@@ -524,7 +524,7 @@ pcie3_intc: interrupt-controller {
 			 */
 			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
#87 lore raw

PATCH 87/1146 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 72ac807cae25..f2aaaed69ae9 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
#88 lore raw

PATCH 88/1146 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 f2aaaed69ae9..0c1f238e4c30 100644
@@ -489,7 +489,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
#89 lore raw

PATCH 89/1146 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 446861b6b17b..12933eff419f 100644
@@ -304,7 +304,7 @@ spdif_pins: spdif-pins {
 			};
 
 			gpio0: gpio@18100 {
-				compatible = "marvell,armada-370-gpio",
+				compatible = "marvell,armadaxp-gpio",
 					     "marvell,orion-gpio";
 				reg = <0x18100 0x40>, <0x181c0 0x08>;
 				reg-names = "gpio", "pwm";
@@ -323,7 +323,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
#90 lore raw

PATCH 90/1146 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 9d1cac49c022..1e05208d9f34 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
#91 lore raw

PATCH 91/1146 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
#95 lore raw

PATCH 95/1146 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 08969f5aa38d..844dfdc8c639 100644
@@ -535,6 +535,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);
 
@@ -2406,12 +2409,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);
@@ -2428,6 +2425,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
#96 lore raw

PATCH 96/1146 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
#97 lore raw

PATCH 97/1146 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
#98 lore raw

PATCH 98/1146 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
#92 lore raw

PATCH 92/1146 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
#99 lore raw

PATCH 99/1146 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
#102 lore raw

PATCH 100/1146 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 0692510dfcab..635a69dfcbbd 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
#103 lore raw

PATCH 101/1146 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 635a69dfcbbd..f3a7251c8e38 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
#100 lore raw
In reply to Greg Kroah-Hartman
Quoted 8 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 6.1.2 release. There are 1146 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:29 +0000. Anything received after that time might be too late.

Building arm:allmodconfig ... failed
Building arm64:allmodconfig ... failed
--------------
Error log:
drivers/mfd/qcom_rpm.c: In function 'qcom_rpm_remove':
drivers/mfd/qcom_rpm.c:680:26: error: unused variable 'rpm' [-Werror=unused-variable]
680 | struct qcom_rpm *rpm = dev_get_drvdata(&pdev->dev);

36579aca877a ("mfd: qcom_rpm: Fix an error handling path in qcom_rpm_probe()") was applied without e48dee960462 ("mfd: qcom_rpm: Use devm_of_platform_populate() to simplify code") which fixes the problem without saying that it does.

The problem affects v5.15.y and v6.0.y as well.

Guenter

author maintainer
#104 lore raw

PATCH 102/1146 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
#105 lore raw

PATCH 103/1146 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
#106 lore raw

PATCH 104/1146 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 a1a22f58ba18..755a11c63596 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/1146 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 031ec4aa06d5..8ec74d7539eb 100644
@@ -926,8 +926,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);
 
@@ -950,8 +952,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
#107 lore raw

PATCH 105/1146 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 755a11c63596..d066be3b9226 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
#108 lore raw

PATCH 106/1146 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 e4a0b8bd941c..0d193ef03730 100644
@@ -4426,6 +4426,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
#109 lore raw

PATCH 107/1146 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 0d193ef03730..db6174b989ed 100644
@@ -4549,10 +4549,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)
@@ -4565,7 +4567,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;
 	}
@@ -8399,7 +8401,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;
@@ -9404,6 +9406,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;
@@ -9423,12 +9429,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 a4a20046e586..0ab091b9d91b 100644
@@ -3060,6 +3060,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
#110 lore raw

PATCH 108/1146 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 daff72f00385..535af9fbea7b 100644
@@ -1392,7 +1392,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
@@ -1543,8 +1543,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);
 }
 
 /*
@@ -1610,7 +1610,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.
@@ -1618,7 +1618,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 db6174b989ed..c8eb5ff81084 100644
@@ -7169,6 +7169,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;
@@ -7201,6 +7203,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;
@@ -7237,8 +7241,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
#111 lore raw

PATCH 109/1146 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 c8eb5ff81084..c877bbfe5deb 100644
@@ -6779,21 +6779,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
#112 lore raw

PATCH 110/1146 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 c877bbfe5deb..cabbdac97eaa 100644
@@ -6807,10 +6807,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;
 }
@@ -6822,7 +6825,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;
 
 	/*
@@ -6831,7 +6834,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);
 	}
 
 	/*
@@ -6840,7 +6845,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;
 
 	/*
@@ -6848,7 +6853,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;
 
 	/*
@@ -6863,7 +6868,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;
 	}
 
@@ -6875,7 +6880,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
#113 lore raw

PATCH 111/1146 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 cabbdac97eaa..a0ee3192e5a7 100644
@@ -5987,7 +5987,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
#114 lore raw

PATCH 112/1146 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 a0ee3192e5a7..0f32acb05055 100644
@@ -4280,14 +4280,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);
 }
@@ -7205,7 +7207,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
#115 lore raw

PATCH 113/1146 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
#116 lore raw

PATCH 114/1146 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
#94 lore raw

PATCH 94/1146 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
#117 lore raw

PATCH 115/1146 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
#118 lore raw
In reply to Greg Kroah-Hartman
Quoted 4 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 6.1.2 release. There are 1146 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.

I know this is already a large set of updates, but it would be great if commit 6f12be792fde994ed934168f93c2a0d2a0cf0bc5 ("mm, mremap: fix mremap() expanding vma with addr inside vma") could be added as well; it applies and works fine on top of 6.1.1.
This fixes quite a few annoying mmap-related out-of-memory failures.

cheers
Holger

author maintainer
#123 lore raw

PATCH 116/1146 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 ee2ecc081422..7f40d87e8f50 100644
@@ -539,10 +539,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
#124 lore raw

PATCH 117/1146 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 1ec20807de1e..2c258255a629 100644
@@ -680,11 +680,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
@@ -699,9 +703,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
#125 lore raw

PATCH 118/1146 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
#126 lore raw

PATCH 119/1146 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 61107b6bbed2..427b8cea1f96 100644
@@ -1140,7 +1140,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
#127 lore raw

PATCH 120/1146 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 833589bc95e4..d15097549e8c 100644
@@ -193,6 +193,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
#133 lore raw

PATCH 126/1146 platform/x86: huawei-wmi: fix return value calculation

In reply to Greg Kroah-Hartman

From: Barnabás Pőcze <[email protected]>

[ Upstream commit 0b9a1dcdb6a2c841899389bf2dd7a3e0e2aa0e99 ]

Previously, huawei_wmi_input_setup() returned the result of logical or-ing the return values of two functions that return negative errno-style error codes and one that returns acpi_status. If this returned value was non-zero, then it was propagated from the platform driver's probe function. That function should return a negative errno-style error code, so the result of the logical or that huawei_wmi_input_setup() returned was not appropriate.

Fix that by checking each function separately and returning the error code unmodified.

Fixes 1ac9abeb2e5b ("platform/x86: huawei-wmi: Move to platform driver")
---
 drivers/platform/x86/huawei-wmi.c | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)
drivers/platform/x86/huawei-wmi.c +16 -4
index 5873c2663a65..b85050e4a0d6 100644
@@ -760,6 +760,9 @@ static int huawei_wmi_input_setup(struct device *dev,
 		const char *guid,
 		struct input_dev **idev)
 {
+	acpi_status status;
+	int err;
+
 	*idev = devm_input_allocate_device(dev);
 	if (!*idev)
 		return -ENOMEM;
@@ -769,10 +772,19 @@ static int huawei_wmi_input_setup(struct device *dev,
 	(*idev)->id.bustype = BUS_HOST;
 	(*idev)->dev.parent = dev;
 
-	return sparse_keymap_setup(*idev, huawei_wmi_keymap, NULL) ||
-		input_register_device(*idev) ||
-		wmi_install_notify_handler(guid, huawei_wmi_input_notify,
-				*idev);
+	err = sparse_keymap_setup(*idev, huawei_wmi_keymap, NULL);
+	if (err)
+		return err;
+
+	err = input_register_device(*idev);
+	if (err)
+		return err;
+
+	status = wmi_install_notify_handler(guid, huawei_wmi_input_notify, *idev);
+	if (ACPI_FAILURE(status))
+		return -EIO;
+
+	return 0;
 }
 
 static void huawei_wmi_input_exit(struct device *dev, const char *guid)
Signature · 1 line
2.35.1
author maintainer
#134 lore raw

PATCH 127/1146 timerqueue: Use rb_entry_safe() in timerqueue_getnext()

In reply to Greg Kroah-Hartman

From: Barnabás Pőcze <[email protected]>

[ Upstream commit 2f117484329b233455ee278f2d9b0a4356835060 ]

When timerqueue_getnext() is called on an empty timer queue, it will use rb_entry() on a NULL pointer, which is invalid. Fix that by using rb_entry_safe() which handles NULL pointers.

This has not caused any issues so far because the offset of the rb_node member in timerqueue_node is 0, so rb_entry() is essentially a no-op.

Fixes 511885d7061e ("lib/timerqueue: Rely on rbtree semantics for next timer")
---
 include/linux/timerqueue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/timerqueue.h +1 -1
index 93884086f392..adc80e29168e 100644
@@ -35,7 +35,7 @@ struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head)
 {
 	struct rb_node *leftmost = rb_first_cached(&head->rb_root);
 
-	return rb_entry(leftmost, struct timerqueue_node, node);
+	return rb_entry_safe(leftmost, struct timerqueue_node, node);
 }
 
 static inline void timerqueue_init(struct timerqueue_node *node)
Signature · 1 line
2.35.1
author maintainer
#135 lore raw

PATCH 128/1146 proc: fixup uptime selftest

In reply to Greg Kroah-Hartman

From: Alexey Dobriyan <[email protected]>

[ Upstream commit 5cc81d5c81af0dee54da9a67a3ebe4be076a13db ]

syscall(3) returns -1 and sets errno on error, unlike "syscall" instruction.

Systems which have <= 32/64 CPUs are unaffected. Test won't bounce to all CPUs before completing if there are more of them.

---
 tools/testing/selftests/proc/proc-uptime-002.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/testing/selftests/proc/proc-uptime-002.c +2 -1
index e7ceabed7f51..7d0aa22bdc12 100644
@@ -17,6 +17,7 @@
 // while shifting across CPUs.
 #undef NDEBUG
 #include <assert.h>
+#include <errno.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <stdlib.h>
@@ -54,7 +55,7 @@ int main(void)
 		len += sizeof(unsigned long);
 		free(m);
 		m = malloc(len);
-	} while (sys_sched_getaffinity(0, len, m) == -EINVAL);
+	} while (sys_sched_getaffinity(0, len, m) == -1 && errno == EINVAL);
 
 	fd = open("/proc/uptime", O_RDONLY);
 	assert(fd >= 0);
Signature · 1 line
2.35.1
author maintainer
#129 lore raw

PATCH 122/1146 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 1cc4647f78b8..c2c786eb95ab 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
@@ -297,8 +298,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
#136 lore raw

PATCH 129/1146 lib/fonts: fix undefined behavior in bit shift for get_default_font

In reply to Greg Kroah-Hartman

From: Gaosheng Cui <[email protected]>

[ Upstream commit 6fe888c4d2fb174408e4540bb2d5602b9f507f90 ]

Shifting signed 32-bit value by 31 bits is undefined, so changing significant bit to unsigned. The UBSAN warning calltrace like below:

UBSAN: shift-out-of-bounds in lib/fonts/fonts.c:139:20
left shift of 1 by 31 places cannot be represented in type 'int'
 <TASK>
 dump_stack_lvl+0x7d/0xa5
 dump_stack+0x15/0x1b
 ubsan_epilogue+0xe/0x4e
 __ubsan_handle_shift_out_of_bounds+0x1e7/0x20c
 get_default_font+0x1c7/0x1f0
 fbcon_startup+0x347/0x3a0
 do_take_over_console+0xce/0x270
 do_fbcon_takeover+0xa1/0x170
 do_fb_registered+0x2a8/0x340
 fbcon_fb_registered+0x47/0xe0
 register_framebuffer+0x294/0x4a0
 __drm_fb_helper_initial_config_and_unlock+0x43c/0x880 [drm_kms_helper]
 drm_fb_helper_initial_config+0x52/0x80 [drm_kms_helper]
 drm_fbdev_client_hotplug+0x156/0x1b0 [drm_kms_helper]
 drm_fbdev_generic_setup+0xfc/0x290 [drm_kms_helper]
 bochs_pci_probe+0x6ca/0x772 [bochs]
 local_pci_probe+0x4d/0xb0
 pci_device_probe+0x119/0x320
 really_probe+0x181/0x550
 __driver_probe_device+0xc6/0x220
 driver_probe_device+0x32/0x100
 __driver_attach+0x195/0x200
 bus_for_each_dev+0xbb/0x120
 driver_attach+0x27/0x30
 bus_add_driver+0x22e/0x2f0
 driver_register+0xa9/0x190
 __pci_register_driver+0x90/0xa0
 bochs_pci_driver_init+0x52/0x1000 [bochs]
 do_one_initcall+0x76/0x430
 do_init_module+0x61/0x28a
 load_module+0x1f82/0x2e50
 __do_sys_finit_module+0xf8/0x190
 __x64_sys_finit_module+0x23/0x30
 do_syscall_64+0x58/0x80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
 </TASK>
Fixes c81f717cb9e0 ("fbcon: Fix typo and bogus logic in get_default_font")
---
 lib/fonts/fonts.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/fonts/fonts.c +2 -2
index 5f4b07b56cd9..973866438608 100644
@@ -135,8 +135,8 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
 		if (res > 20)
 			c += 20 - res;
 
-		if ((font_w & (1 << (f->width - 1))) &&
-		    (font_h & (1 << (f->height - 1))))
+		if ((font_w & (1U << (f->width - 1))) &&
+		    (font_h & (1U << (f->height - 1))))
 			c += 1000;
 
 		if (c > cc) {
Signature · 1 line
2.35.1
author maintainer
#137 lore raw

PATCH 130/1146 ocfs2: fix memory leak in ocfs2_stack_glue_init()

In reply to Greg Kroah-Hartman

From: Shang XiaoJing <[email protected]>

[ Upstream commit 13b6269dd022aaa69ca8d1df374ab327504121cf ]

ocfs2_table_header should be free in ocfs2_stack_glue_init() if ocfs2_sysfs_init() failed, otherwise kmemleak will report memleak.

BUG: memory leak
unreferenced object 0xffff88810eeb5800 (size 128):
  comm "modprobe", pid 4507, jiffies 4296182506 (age 55.888s)
  hex dump (first 32 bytes):
    c0 40 14 a0 ff ff ff ff 00 00 00 00 01 00 00 00  .@..............
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<000000001e59e1cd>] __register_sysctl_table+0xca/0xef0
    [<00000000c04f70f7>] 0xffffffffa0050037
    [<000000001bd12912>] do_one_initcall+0xdb/0x480
    [<0000000064f766c9>] do_init_module+0x1cf/0x680
    [<000000002ba52db0>] load_module+0x6441/0x6f20
    [<000000009772580d>] __do_sys_finit_module+0x12f/0x1c0
    [<00000000380c1f22>] do_syscall_64+0x3f/0x90
    [<000000004cf473bc>] entry_SYSCALL_64_after_hwframe+0x63/0xcd
Fixes 3878f110f71a ("ocfs2: Move the hb_ctl_path sysctl into the stack glue.")
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Changwei Ge <[email protected]>
Cc Gang He <[email protected]>
Cc Jun Piao <[email protected]>
---
 fs/ocfs2/stackglue.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
fs/ocfs2/stackglue.c +7 -1
index 317126261523..a8d5ca98fa57 100644
@@ -669,6 +669,8 @@ static struct ctl_table_header *ocfs2_table_header;
 
 static int __init ocfs2_stack_glue_init(void)
 {
+	int ret;
+
 	strcpy(cluster_stack_name, OCFS2_STACK_PLUGIN_O2CB);
 
 	ocfs2_table_header = register_sysctl("fs/ocfs2/nm", ocfs2_nm_table);
@@ -678,7 +680,11 @@ static int __init ocfs2_stack_glue_init(void)
 		return -ENOMEM; /* or something. */
 	}
 
-	return ocfs2_sysfs_init();
+	ret = ocfs2_sysfs_init();
+	if (ret)
+		unregister_sysctl_table(ocfs2_table_header);
+
+	return ret;
 }
 
 static void __exit ocfs2_stack_glue_exit(void)
Signature · 1 line
2.35.1
author maintainer
#138 lore raw

PATCH 131/1146 selftests: cgroup: fix unsigned comparison with less than zero

In reply to Greg Kroah-Hartman

From: YueHaibing <[email protected]>

[ Upstream commit 333d073dee3a6865171d43e3b0a9ff688bff5891 ]

'size' is unsigned, it never less than zero.

Fixes 6c26df84e1f2 ("selftests: cgroup: return -errno from cg_read()/cg_write() on failure")
Cc David Rientjes <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Tejun Heo <[email protected]>
Cc zefan li <[email protected]>
---
 tools/testing/selftests/cgroup/cgroup_util.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tools/testing/selftests/cgroup/cgroup_util.c +3 -2
index 4c52cc6f2f9c..e8bbbdb77e0d 100644
@@ -555,6 +555,7 @@ int proc_mount_contains(const char *option)
 ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size)
 {
 	char path[PATH_MAX];
+	ssize_t ret;
 
 	if (!pid)
 		snprintf(path, sizeof(path), "/proc/%s/%s",
@@ -562,8 +563,8 @@ ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t
 	else
 		snprintf(path, sizeof(path), "/proc/%d/%s", pid, item);
 
-	size = read_text(path, buf, size);
-	return size < 0 ? -1 : size;
+	ret = read_text(path, buf, size);
+	return ret < 0 ? -1 : ret;
 }
 
 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle)
Signature · 1 line
2.35.1
author maintainer
#139 lore raw

PATCH 132/1146 cpufreq: qcom-hw: Fix the frequency returned by cpufreq_driver->get()

In reply to Greg Kroah-Hartman

From: Manivannan Sadhasivam <[email protected]>

[ Upstream commit c72cf0cb1d77f6b1b58c334dcc3d09fa13111c4c ]

The cpufreq_driver->get() callback is supposed to return the current frequency of the CPU and not the one requested by the CPUFreq core. Fix it by returning the frequency that gets supplied to the CPU after the DCVS operation of EPSS/OSM.

Fixes 2849dd8bc72b ("cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver")
---
 drivers/cpufreq/qcom-cpufreq-hw.c | 42 +++++++++++++++++++++----------
 1 file changed, 29 insertions(+), 13 deletions(-)
drivers/cpufreq/qcom-cpufreq-hw.c +29 -13
index d15097549e8c..3c623a0bc147 100644
@@ -125,7 +125,35 @@ static int qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy,
 	return 0;
 }
 
+static unsigned long qcom_lmh_get_throttle_freq(struct qcom_cpufreq_data *data)
+{
+	unsigned int lval;
+
+	if (data->soc_data->reg_current_vote)
+		lval = readl_relaxed(data->base + data->soc_data->reg_current_vote) & 0x3ff;
+	else
+		lval = readl_relaxed(data->base + data->soc_data->reg_domain_state) & 0xff;
+
+	return lval * xo_rate;
+}
+
+/* Get the current frequency of the CPU (after throttling) */
 static unsigned int qcom_cpufreq_hw_get(unsigned int cpu)
+{
+	struct qcom_cpufreq_data *data;
+	struct cpufreq_policy *policy;
+
+	policy = cpufreq_cpu_get_raw(cpu);
+	if (!policy)
+		return 0;
+
+	data = policy->driver_data;
+
+	return qcom_lmh_get_throttle_freq(data) / HZ_PER_KHZ;
+}
+
+/* Get the frequency requested by the cpufreq core for the CPU */
+static unsigned int qcom_cpufreq_get_freq(unsigned int cpu)
 {
 	struct qcom_cpufreq_data *data;
 	const struct qcom_cpufreq_soc_data *soc_data;
@@ -287,18 +315,6 @@ static void qcom_get_related_cpus(int index, struct cpumask *m)
 	}
 }
 
-static unsigned long qcom_lmh_get_throttle_freq(struct qcom_cpufreq_data *data)
-{
-	unsigned int lval;
-
-	if (data->soc_data->reg_current_vote)
-		lval = readl_relaxed(data->base + data->soc_data->reg_current_vote) & 0x3ff;
-	else
-		lval = readl_relaxed(data->base + data->soc_data->reg_domain_state) & 0xff;
-
-	return lval * xo_rate;
-}
-
 static void qcom_lmh_dcvs_notify(struct qcom_cpufreq_data *data)
 {
 	struct cpufreq_policy *policy = data->policy;
@@ -342,7 +358,7 @@ static void qcom_lmh_dcvs_notify(struct qcom_cpufreq_data *data)
 	 * If h/w throttled frequency is higher than what cpufreq has requested
 	 * for, then stop polling and switch back to interrupt mechanism.
 	 */
-	if (throttled_freq >= qcom_cpufreq_hw_get(cpu))
+	if (throttled_freq >= qcom_cpufreq_get_freq(cpu))
 		enable_irq(data->throttle_irq);
 	else
 		mod_delayed_work(system_highpri_wq, &data->throttle_work,
Signature · 1 line
2.35.1
author maintainer
#140 lore raw

PATCH 133/1146 MIPS: vpe-mt: fix possible memory leak while module exiting

In reply to Greg Kroah-Hartman

From: Yang Yingliang <[email protected]>

[ Upstream commit 5822e8cc84ee37338ab0bdc3124f6eec04dc232d ]

Afer commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release().

Fixes 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array")
---
 arch/mips/kernel/vpe-mt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/vpe-mt.c +2 -2
index bad6b0891b2b..84a82b551ec3 100644
@@ -313,7 +313,6 @@ ATTRIBUTE_GROUPS(vpe);
 
 static void vpe_device_release(struct device *cd)
 {
-	kfree(cd);
 }
 
 static struct class vpe_class = {
@@ -497,6 +496,7 @@ int __init vpe_module_init(void)
 	device_del(&vpe_device);
 
 out_class:
+	put_device(&vpe_device);
 	class_unregister(&vpe_class);
 
 out_chrdev:
@@ -509,7 +509,7 @@ void __exit vpe_module_exit(void)
 {
 	struct vpe *v, *n;
 
-	device_del(&vpe_device);
+	device_unregister(&vpe_device);
 	class_unregister(&vpe_class);
 	unregister_chrdev(major, VPE_MODULE_NAME);
 
Signature · 1 line
2.35.1
author maintainer
#141 lore raw

PATCH 134/1146 MIPS: vpe-cmp: fix possible memory leak while module exiting

In reply to Greg Kroah-Hartman

From: Yang Yingliang <[email protected]>

[ Upstream commit c5ed1fe0801f0c66b0fbce2785239a5664629057 ]

dev_set_name() allocates memory for name, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release().

Fixes 17a1d523aa58 ("MIPS: APRP: Add VPE loader support for CMP platforms.")
---
 arch/mips/kernel/vpe-cmp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/vpe-cmp.c +2 -2
index e673603e11e5..92140edb3ce3 100644
@@ -75,7 +75,6 @@ ATTRIBUTE_GROUPS(vpe);
 
 static void vpe_device_release(struct device *cd)
 {
-	kfree(cd);
 }
 
 static struct class vpe_class = {
@@ -157,6 +156,7 @@ int __init vpe_module_init(void)
 	device_del(&vpe_device);
 
 out_class:
+	put_device(&vpe_device);
 	class_unregister(&vpe_class);
 
 out_chrdev:
@@ -169,7 +169,7 @@ void __exit vpe_module_exit(void)
 {
 	struct vpe *v, *n;
 
-	device_del(&vpe_device);
+	device_unregister(&vpe_device);
 	class_unregister(&vpe_class);
 	unregister_chrdev(major, VPE_MODULE_NAME);
 
Signature · 1 line
2.35.1
author maintainer
#142 lore raw

PATCH 135/1146 selftests/efivarfs: Add checking of the test return value

In reply to Greg Kroah-Hartman

From: Zhao Gongyi <[email protected]>

[ Upstream commit c93924267fe6f2b44af1849f714ae9cd8117a9cd ]

Add checking of the test return value, otherwise it will report success forever for test_create_read().

Fixes dff6d2ae56d0 ("selftests/efivarfs: clean up test files from test_create*()")
---
 tools/testing/selftests/efivarfs/efivarfs.sh | 5 +++++
 1 file changed, 5 insertions(+)
tools/testing/selftests/efivarfs/efivarfs.sh +5 -0
index a90f394f9aa9..d374878cc0ba 100755
@@ -87,6 +87,11 @@ test_create_read()
 {
 	local file=$efivarfs_mount/$FUNCNAME-$test_guid
 	./create-read $file
+	if [ $? -ne 0 ]; then
+		echo "create and read $file failed"
+		file_cleanup $file
+		exit 1
+	fi
 	file_cleanup $file
 }
 
Signature · 1 line
2.35.1
author maintainer
#130 lore raw

PATCH 123/1146 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 8d26d5505808..3eea2abf68f9 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
#143 lore raw

PATCH 136/1146 PNP: fix name memory leak in pnp_alloc_dev()

In reply to Greg Kroah-Hartman

From: Yang Yingliang <[email protected]>

[ Upstream commit 110d7b0325c55ff3620073ba4201845f59e22ebf ]

After commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, move dev_set_name() after pnp_add_id() to avoid memory leak.

Fixes 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array")
---
 drivers/pnp/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pnp/core.c +2 -2
index 4df5aa6a309c..6a60c5d83383 100644
@@ -148,14 +148,14 @@ struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id,
 	dev->dev.coherent_dma_mask = dev->dma_mask;
 	dev->dev.release = &pnp_release_device;
 
-	dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number);
-
 	dev_id = pnp_add_id(dev, pnpid);
 	if (!dev_id) {
 		kfree(dev);
 		return NULL;
 	}
 
+	dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number);
+
 	return dev;
 }
 
Signature · 1 line
2.35.1
author maintainer
#144 lore raw

PATCH 137/1146 mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure

In reply to Greg Kroah-Hartman

From: Huisong Li <[email protected]>

[ Upstream commit 6d7d3c287410c0ad499e478e2338dc3d7e3392b1 ]

Currently, 'pcc_chan_count' is remains set to a non-zero value if PCC subspaces are parsed successfully but something else fail later during the initial PCC probing phase. This will result in pcc_mbox_request_channel trying to access the resources that are not initialised or allocated and may end up in a system crash.

Reset pcc_chan_count to 0 when the PCC probe fails in order to prevent the possible issue as described above.

Fixes ce028702ddbc ("mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe")
---
 drivers/mailbox/pcc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mailbox/pcc.c +1 -0
index 3c2bc0ca454c..105d46c9801b 100644
@@ -743,6 +743,7 @@ static int __init pcc_init(void)
 
 	if (IS_ERR(pcc_pdev)) {
 		pr_debug("Err creating PCC platform bundle\n");
+		pcc_chan_count = 0;
 		return PTR_ERR(pcc_pdev);
 	}
 
Signature · 1 line
2.35.1
author maintainer
#145 lore raw

PATCH 138/1146 ACPI: pfr_telemetry: use ACPI_FREE() to free acpi_object

In reply to Greg Kroah-Hartman

From: Wang ShaoBo <[email protected]>

[ Upstream commit 0f2aa7fc2a9aee05bafb965d5b1638d3e74b4c61 ]

acpi_evaluate_dsm_typed()/acpi_evaluate_dsm() should be coupled with ACPI_FREE() to free the ACPI memory, because we need to track the allocation of acpi_object when ACPI_DBG_TRACK_ALLOCATIONS enabled, so use ACPI_FREE() instead of kfree().

Fixes b0013e037a8b ("ACPI: Introduce Platform Firmware Runtime Telemetry driver")
---
 drivers/acpi/pfr_telemetry.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/pfr_telemetry.c +3 -3
index 9abf350bd7a5..27fb6cdad75f 100644
@@ -144,7 +144,7 @@ static int get_pfrt_log_data_info(struct pfrt_log_data_info *data_info,
 	ret = 0;
 
 free_acpi_buffer:
-	kfree(out_obj);
+	ACPI_FREE(out_obj);
 
 	return ret;
 }
@@ -180,7 +180,7 @@ static int set_pfrt_log_level(int level, struct pfrt_log_device *pfrt_log_dev)
 		ret = -EBUSY;
 	}
 
-	kfree(out_obj);
+	ACPI_FREE(out_obj);
 
 	return ret;
 }
@@ -218,7 +218,7 @@ static int get_pfrt_log_level(struct pfrt_log_device *pfrt_log_dev)
 	ret = obj->integer.value;
 
 free_acpi_buffer:
-	kfree(out_obj);
+	ACPI_FREE(out_obj);
 
 	return ret;
 }
Signature · 1 line
2.35.1
author maintainer
#146 lore raw

PATCH 139/1146 ACPI: pfr_update: use ACPI_FREE() to free acpi_object

In reply to Greg Kroah-Hartman

From: Wang ShaoBo <[email protected]>

[ Upstream commit e335beed78ec82656dcb554f9fe560709f0dc408 ]

acpi_evaluate_dsm_typed()/acpi_evaluate_dsm() should be coupled with ACPI_FREE() to free the ACPI memory, because we need to track the allocation of acpi_object when ACPI_DBG_TRACK_ALLOCATIONS enabled, so use ACPI_FREE() instead of kfree().

Fixes 0db89fa243e5 ("ACPI: Introduce Platform Firmware Runtime Update device driver")
---
 drivers/acpi/pfr_update.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/pfr_update.c +3 -3
index 6bb0b778b5da..9d2bdc13253a 100644
@@ -178,7 +178,7 @@ static int query_capability(struct pfru_update_cap_info *cap_hdr,
 	ret = 0;
 
 free_acpi_buffer:
-	kfree(out_obj);
+	ACPI_FREE(out_obj);
 
 	return ret;
 }
@@ -224,7 +224,7 @@ static int query_buffer(struct pfru_com_buf_info *info,
 	ret = 0;
 
 free_acpi_buffer:
-	kfree(out_obj);
+	ACPI_FREE(out_obj);
 
 	return ret;
 }
@@ -385,7 +385,7 @@ static int start_update(int action, struct pfru_device *pfru_dev)
 	ret = 0;
 
 free_acpi_buffer:
-	kfree(out_obj);
+	ACPI_FREE(out_obj);
 
 	return ret;
 }
Signature · 1 line
2.35.1
author maintainer
#147 lore raw

PATCH 140/1146 perf/x86/intel/uncore: Fix reference count leak in sad_cfg_iio_topology()

In reply to Greg Kroah-Hartman

From: Xiongfeng Wang <[email protected]>

[ Upstream commit c508eb042d9739bf9473526f53303721b70e9100 ]

pci_get_device() will increase the reference count for the returned pci_dev, and also decrease the reference count for the input parameter *from* if it is not NULL.

If we break the loop in sad_cfg_iio_topology() with 'dev' not NULL. We need to call pci_dev_put() to decrease the reference count. Since pci_dev_put() can handle the NULL input parameter, we can just add one pci_dev_put() right before 'return ret'.

Fixes c1777be3646b ("perf/x86/intel/uncore: Enable I/O stacks to IIO PMON mapping on SNR")
---
 arch/x86/events/intel/uncore_snbep.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/events/intel/uncore_snbep.c +2 -0
index ed869443efb2..76fedc8e12dd 100644
@@ -4492,6 +4492,8 @@ static int sad_cfg_iio_topology(struct intel_uncore_type *type, u8 *sad_pmon_map
 		type->topology = NULL;
 	}
 
+	pci_dev_put(dev);
+
 	return ret;
 }
 
Signature · 1 line
2.35.1
author maintainer
#148 lore raw

PATCH 141/1146 perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()

In reply to Greg Kroah-Hartman

From: Xiongfeng Wang <[email protected]>

[ Upstream commit 1ff9dd6e7071a561f803135c1d684b13c7a7d01d ]

pci_get_device() will increase the reference count for the returned 'dev'. We need to call pci_dev_put() to decrease the reference count. Since 'dev' is only used in pci_read_config_dword(), let's add pci_dev_put() right after it.

Fixes 9d480158ee86 ("perf/x86/intel/uncore: Remove uncore extra PCI dev HSWEP_PCI_PCU_3")
---
 arch/x86/events/intel/uncore_snbep.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/uncore_snbep.c +1 -0
index 76fedc8e12dd..f5d89d06c66a 100644
@@ -2891,6 +2891,7 @@ static bool hswep_has_limit_sbox(unsigned int device)
 		return false;
 
 	pci_read_config_dword(dev, HSWEP_PCU_CAPID4_OFFET, &capid4);
+	pci_dev_put(dev);
 	if (!hswep_get_chop(capid4))
 		return true;
 
Signature · 1 line
2.35.1
author maintainer
#131 lore raw

PATCH 124/1146 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 7f04f995c975..732b392fc5c6 100644
@@ -11193,13 +11193,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
author maintainer
#149 lore raw

PATCH 142/1146 perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map()

In reply to Greg Kroah-Hartman

From: Xiongfeng Wang <[email protected]>

[ Upstream commit 8ebd16c11c346751b3944d708e6c181ed4746c39 ]

pci_get_device() will increase the reference count for the returned pci_dev, so snr_uncore_get_mc_dev() will return a pci_dev with its reference count increased. We need to call pci_dev_put() to decrease the reference count. Let's add the missing pci_dev_put().

Fixes ee49532b38dd ("perf/x86/intel/uncore: Add IMC uncore support for Snow Ridge")
---
 arch/x86/events/intel/uncore_snbep.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/events/intel/uncore_snbep.c +2 -0
index f5d89d06c66a..fcd95e93f479 100644
@@ -4860,6 +4860,8 @@ static int snr_uncore_mmio_map(struct intel_uncore_box *box,
 
 	addr += box_ctl;
 
+	pci_dev_put(pdev);
+
 	box->io_addr = ioremap(addr, type->mmio_map_size);
 	if (!box->io_addr) {
 		pr_warn("perf uncore: Failed to ioremap for %s.\n", type->name);
Signature · 1 line
2.35.1