Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deepin-Kernel-SIG] [Upstream] Update kernel base to 6.6.34 #295

Merged
merged 136 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
fb0a615
drm/i915/hwmon: Get rid of devm
ashutoshx Apr 17, 2024
b2349c2
mmc: core: Do not force a retune before RPMB switch
ldts Jan 3, 2024
e44c77f
afs: Don't cross .backup mountpoint from backup volume
May 24, 2024
48e10d2
net: sfp-bus: fix SFP mode detect from bitrate
Jan 15, 2024
d0430af
riscv: signal: handle syscall restart before get_signal
ancientmodern Aug 3, 2023
3a58cd8
mptcp: avoid some duplicate code in socket option handling
May 29, 2024
7161321
mptcp: cleanup SOL_TCP handling
May 29, 2024
5c8314b
mptcp: fix full TCP keep-alive support
matttbe May 29, 2024
aa38ac0
erofs: avoid allocating DEFLATE streams before mounting
hsiangkao May 20, 2024
6df95bf
mm: ratelimit stat flush from workingset shrinker
shakeelb Dec 28, 2023
f3fb5cc
vxlan: Fix regression when dropping packets due to invalid src addresses
borkmann Jun 3, 2024
2be35de
selftests/net: synchronize udpgro tests' tx and rx connection
lkarpins-rh May 29, 2024
faca748
selftests: net: included needed helper in the install targets
May 29, 2024
d6f3e35
selftests: net: List helper scripts in TEST_FILES Makefile variable
gobenji May 29, 2024
160e967
drm/sun4i: hdmi: Convert encoder to atomic
mripard Feb 22, 2024
3cb1c3f
drm/sun4i: hdmi: Move mode_set into enable
mripard Feb 22, 2024
98e1ddc
f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode()
chaseyu Apr 25, 2024
f2c9c13
media: lgdt3306a: Add a check against null-pointer-def
ZheyuMa Apr 5, 2022
2e9153d
drm/amdgpu: add error handle to avoid out-of-bounds
Apr 23, 2024
280505e
bcache: fix variable length array abuse in btree_iter
mincrmatt12 May 9, 2024
e1b7563
wifi: rtw89: correct aSIFSTime for 6GHz band
Apr 30, 2024
766060e
ata: pata_legacy: make legacy_exit() work again
May 4, 2024
49ee848
fsverity: use register_sysctl_init() to avoid kmemleak warning
ebiggers May 1, 2024
62c1f8e
proc: Move fdinfo PTRACE_MODE_READ check into the inode .permission o…
tyhicks May 1, 2024
747c357
platform/chrome: cros_ec: Handle events during suspend after resume c…
Apr 29, 2024
978e0ab
thermal/drivers/qcom/lmh: Check for SCM availability at probe
konradybcio Mar 9, 2024
5ac7852
soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request
quic-maulik Feb 15, 2024
eadb85e
ACPI: resource: Do IRQ override on TongFang GXxHRXx and GMxHGxx
tuxedoxt Apr 22, 2024
a04eb63
arm64: tegra: Correct Tegra132 I2C alias
krzk Apr 1, 2024
a478ff4
arm64: dts: qcom: qcs404: fix bluetooth device address
jhovold May 1, 2024
f17d950
md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_C…
YuKuai-huawei Mar 22, 2024
7ead599
wifi: rtl8xxxu: Fix the TX power of RTL8192CU, RTL8723AU
Apr 15, 2024
a1f2591
wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power
Apr 25, 2024
0446737
wifi: rtlwifi: rtl8192de: Fix low speed with WPA3-SAE
Apr 25, 2024
573c0a1
wifi: rtlwifi: rtl8192de: Fix endianness issue in RX path
Apr 25, 2024
c95e65d
arm64: dts: qcom: sc8280xp: add missing PCIe minimum OPP
jhovold Mar 6, 2024
acf2651
arm64: dts: hi3798cv200: fix the size of GICR
185264646 Feb 19, 2024
18d988a
arm64: dts: ti: verdin-am62: Set memory size to 2gb
MaxKrummenacher Mar 20, 2024
964f871
media: mc: Fix graph walk in media_pipeline_start
tomba Mar 18, 2024
ccfa4be
media: mc: mark the media devnode as registered from the, start
Feb 23, 2024
85d3195
media: mxl5xx: Move xpt structures off stack
nathanchance Jan 12, 2024
5c14dd9
media: v4l2-core: hold videodev_lock until dev reg, finishes
Feb 23, 2024
820909c
media: v4l: async: Properly re-initialise notifier entry in unregister
Mar 8, 2024
52f47f2
media: v4l: async: Don't set notifier's V4L2 device if registering fails
Mar 8, 2024
7320e07
media: v4l: async: Fix notifier list entry init
tq-steina Mar 7, 2024
18d5902
mmc: davinci: Don't strip remove function when driver is builtin
Mar 24, 2024
4f78e72
mmc: core: Add mmc_gpiod_set_cd_config() function
jwrdegoede Apr 10, 2024
94fdcd1
mmc: sdhci: Add support for "Tuning Error" interrupts
ahunter6 Apr 10, 2024
7f36ad6
mmc: sdhci-acpi: Sort DMI quirks alphabetically
jwrdegoede Apr 10, 2024
435366b
mmc: sdhci-acpi: Fix Lenovo Yoga Tablet 2 Pro 1380 sdcard slot not wo…
jwrdegoede Apr 10, 2024
f0f686a
mmc: sdhci-acpi: Disable write protect detection on Toshiba WT10-A
jwrdegoede Apr 10, 2024
4f3bf48
mmc: sdhci-acpi: Add quirk to enable pull-up on the card-detect GPIO …
jwrdegoede Apr 10, 2024
f08dec5
drm/fbdev-generic: Do not set physical framebuffer address
Apr 19, 2024
8b4b555
fbdev: savage: Handle err return when savagefb_check_var failed
Caixinchen1 Apr 16, 2024
7b79329
drm/amdgpu/atomfirmware: add intergrated info v2.3 table
May 20, 2024
ac248ea
9p: add missing locking around taking dentry fid list
martinetd May 21, 2024
fdf49cd
drm/amd: Fix shutdown (again) on some SMU v13.0.4/11 platforms
superm1 May 26, 2024
5423357
Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices"
alexdeucher May 20, 2024
587d819
KVM: SVM: WARN on vNMI + NMI window iff NMIs are outright masked
sean-jc May 22, 2024
ec6d751
KVM: arm64: Fix AArch32 register narrowing on userspace write
May 24, 2024
3645aff
KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
May 24, 2024
9726915
KVM: arm64: AArch32: Fix spurious trapping of conditional instructions
May 24, 2024
c66f28d
LoongArch: Add all CPUs enabled by fdt to NUMA node 0
FlyGoat Jun 3, 2024
9d391c5
LoongArch: Override higher address bits in JUMP_VIRT_ADDR
FlyGoat Jun 3, 2024
2ad4ccc
clk: bcm: dvp: Assign ->num before accessing ->hws
nathanchance Apr 25, 2024
127e1f2
clk: bcm: rpi: Assign ->num before accessing ->hws
nathanchance Apr 25, 2024
10ebec2
clk: qcom: clk-alpha-pll: fix rate setting for Stromer PLLs
juhosg Mar 28, 2024
9a7584e
crypto: ecdsa - Fix module auto-load on add-key
stefanberger Mar 21, 2024
94dff6c
crypto: ecrdsa - Fix module auto-load on add_key
vt-alt Mar 18, 2024
9669502
crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
herbertx May 8, 2024
6576196
kbuild: Remove support for Clang's ThinLTO caching
nathanchance May 1, 2024
0db80f9
mm: fix race between __split_huge_pmd_locked() and GUP-fast
May 1, 2024
942bec1
filemap: add helper mapping_max_folio_size()
May 21, 2024
ffde332
iomap: fault in smaller chunks for non-large folio mappings
May 21, 2024
7c98632
i2c: acpi: Unbind mux adapters before delete
Mar 12, 2024
835fc36
HID: i2c-hid: elan: fix reset suspend current leakage
jhovold May 7, 2024
37c4cff
scsi: core: Handle devices which return an unusually large VPD page c…
martinkpetersen May 21, 2024
d5d1f9d
net/ipv6: Fix route deleting failure when metric equals 0
May 14, 2024
50f24a2
net/9p: fix uninit-value in p9_client_rpc()
Apr 8, 2024
93aac92
mm/ksm: fix ksm_pages_scanned accounting
cmzxo May 28, 2024
e1a8691
mm/ksm: fix ksm_zero_pages accounting
cmzxo May 28, 2024
9cdf395
kmsan: do not wipe out origin when doing partial unpoisoning
ramosian-glider May 28, 2024
fc9ad8c
tpm_tis: Do *not* flush uninitialized work
jbeulich May 29, 2024
7829afa
cpufreq: amd-pstate: Fix the inconsistency in max frequency units
May 27, 2024
8b183ae
intel_th: pci: Add Meteor Lake-S CPU support
virtuoso Apr 29, 2024
270f313
rtla/timerlat: Fix histogram report when a cpu count is 0
May 10, 2024
5ca1b83
sparc64: Fix number of online CPUs
sravnborg Mar 30, 2024
503d6bd
mm/cma: drop incorrect alignment check in cma_init_reserved_mem
Apr 4, 2024
7c197ad
mm/hugetlb: pass correct order_per_bit to cma_declare_contiguous_nid
Apr 4, 2024
f52d348
mm: /proc/pid/smaps_rollup: avoid skipping vma after getting mmap_loc…
May 23, 2024
8820be9
mm/vmalloc: fix vmalloc which may return null if called with __GFP_NO…
hailong-liu May 10, 2024
2890ca0
selftests/mm: compaction_test: fix incorrect write of zero to nr_huge…
May 21, 2024
8f26d23
selftests/mm: fix build warnings on ppc64
mpe May 21, 2024
afc416a
watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety ma…
jmenti Apr 17, 2024
06bb915
bonding: fix oops during rmmod
abattersby May 14, 2024
6fd68b1
wifi: ath10k: fix QCOM_RPROC_COMMON dependency
lumag May 17, 2024
8c710e7
kdb: Fix buffer overflow during tab-complete
daniel-thompson Apr 24, 2024
7adfa0a
kdb: Use format-strings rather than '\0' injection in kdb_read()
daniel-thompson Apr 24, 2024
2628556
kdb: Fix console handling when editing and tab-completing commands
daniel-thompson Apr 24, 2024
0e6030e
kdb: Merge identical case statements in kdb_read()
daniel-thompson Apr 24, 2024
805ddbf
kdb: Use format-specifiers rather than memset() for padding in kdb_re…
daniel-thompson Apr 24, 2024
96db9b4
net: fix __dst_negative_advice() race
May 28, 2024
c75ae11
sparc: move struct termio to asm/termios.h
floppym Mar 6, 2024
836b2d2
drm/amdkfd: handle duplicate BOs in reserve_bo_and_cond_vms
Apr 11, 2024
bd5486a
ext4: Fixes len calculation in mpage_journal_page_buffers
riteshharjani Feb 29, 2024
994cee7
ext4: set type of ac_groups_linear_remaining to __u32 to avoid overflow
LiBaokun96 Mar 19, 2024
7a241ce
ext4: fix mb_cache_entry's e_refcnt leak in ext4_xattr_block_cache_fi…
LiBaokun96 May 4, 2024
9941a9c
riscv: dts: starfive: Remove PMIC interrupt info for Visionfive 2 board
Headcrabed Mar 7, 2024
ab114d0
ARM: dts: samsung: smdkv310: fix keypad no-autorepeat
krzk Mar 12, 2024
91af1b6
ARM: dts: samsung: smdk4412: fix keypad no-autorepeat
krzk Mar 12, 2024
16b2f6e
ARM: dts: samsung: exynos4412-origen: fix keypad no-autorepeat
krzk Mar 12, 2024
a748631
parisc: Define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
hdeller May 15, 2024
4d6d648
parisc: Define sigset_t in parisc uapi header
hdeller Apr 27, 2024
5d945f2
s390/ap: Fix crash in AP internal function modify_bitmap()
hfreude May 13, 2024
86bfe55
s390/cpacf: Split and rework cpacf query functions
hfreude May 3, 2024
ab62ff3
s390/cpacf: Make use of invalid opcode produce a link error
hfreude May 14, 2024
4ad466a
i3c: master: svc: fix invalidate IBI type and miss call client IBI ha…
nxpfrankli May 6, 2024
e215219
genirq/irqdesc: Prevent use-after-free in irq_find_at_or_after()
May 24, 2024
37f2fd1
ASoC: SOF: ipc4-topology: Fix input format query of process modules w…
ujfalusi May 29, 2024
551ee68
ALSA: ump: Don't clear bank selection after sending a program change
tiwai May 29, 2024
4b9e8fb
ALSA: ump: Don't accept an invalid UMP protocol number
tiwai May 29, 2024
d2a2591
EDAC/amd64: Convert PCIBIOS_* return codes to errnos
ij-intel May 27, 2024
849b68b
EDAC/igen6: Convert PCIBIOS_* return codes to errnos
ij-intel May 27, 2024
0ac4210
nfs: fix undefined behavior in nfs_block_bits()
May 10, 2024
6512aa9
NFS: Fix READ_PLUS when server doesn't support OP_READ_PLUS
amschuma-ntap Apr 25, 2024
bf78ce0
eventfs: Fix a possible null pointer dereference in eventfs_find_even…
GeHao01994 May 13, 2024
fc57182
eventfs: Keep the directories from having the same inode number as files
rostedt May 23, 2024
97c66f8
tracefs: Clear EVENT_INODE flag in tracefs_drop_inode()
rostedt May 23, 2024
2d3be68
btrfs: fix crash on racing fsync and size-extending write into prealloc
osandov May 24, 2024
a286a53
btrfs: fix leak of qgroup extent records after transaction abort
fdmanana Jun 3, 2024
daa0e95
ALSA: seq: Fix incorrect UMP type for system messages
tiwai May 29, 2024
430d4b1
powerpc/bpf: enforce full ordering for ATOMIC operations with BPF_FETCH
puranjaymohan May 13, 2024
bff9f94
smb: client: fix deadlock in smb2_find_smb_tcon()
ematsumiya Jun 6, 2024
8167f0b
selftests: net: more strict check in net_helper
Feb 12, 2024
4e567da
smp: Provide 'setup_max_cpus' definition on UP too
Feb 26, 2024
ae2c4c6
Linux 6.6.34
gregkh Jun 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Documentation/mm/arch_pgtable_helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ PMD Page Table Helpers
+---------------------------+--------------------------------------------------+
| pmd_swp_clear_soft_dirty | Clears a soft dirty swapped PMD |
+---------------------------+--------------------------------------------------+
| pmd_mkinvalid | Invalidates a mapped PMD [1] |
| pmd_mkinvalid | Invalidates a present PMD; do not call for |
| | non-present PMD [1] |
+---------------------------+--------------------------------------------------+
| pmd_set_huge | Creates a PMD huge mapping |
+---------------------------+--------------------------------------------------+
Expand Down Expand Up @@ -198,7 +199,8 @@ PUD Page Table Helpers
+---------------------------+--------------------------------------------------+
| pud_mkdevmap | Creates a ZONE_DEVICE mapped PUD |
+---------------------------+--------------------------------------------------+
| pud_mkinvalid | Invalidates a mapped PUD [1] |
| pud_mkinvalid | Invalidates a present PUD; do not call for |
| | non-present PUD [1] |
+---------------------------+--------------------------------------------------+
| pud_set_huge | Creates a PUD huge mapping |
+---------------------------+--------------------------------------------------+
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 6
PATCHLEVEL = 6
SUBLEVEL = 33
SUBLEVEL = 34
EXTRAVERSION =
NAME = Hurr durr I'ma ninja sloth

Expand Down Expand Up @@ -951,7 +951,6 @@ endif
ifdef CONFIG_LTO_CLANG
ifdef CONFIG_LTO_CLANG_THIN
CC_FLAGS_LTO := -flto=thin -fsplit-lto-unit
KBUILD_LDFLAGS += --thinlto-cache-dir=$(extmod_prefix).thinlto-cache
else
CC_FLAGS_LTO := -flto
endif
Expand Down Expand Up @@ -1479,7 +1478,7 @@ endif # CONFIG_MODULES
# Directories & files removed with 'make clean'
CLEAN_FILES += vmlinux.symvers modules-only.symvers \
modules.builtin modules.builtin.modinfo modules.nsdeps \
compile_commands.json .thinlto-cache rust/test \
compile_commands.json rust/test \
rust-project.json .vmlinux.objs .vmlinux.export.c

# Directories & files removed with 'make mrproper'
Expand Down Expand Up @@ -1783,7 +1782,7 @@ PHONY += compile_commands.json

clean-dirs := $(KBUILD_EXTMOD)
clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers $(KBUILD_EXTMOD)/modules.nsdeps \
$(KBUILD_EXTMOD)/compile_commands.json $(KBUILD_EXTMOD)/.thinlto-cache
$(KBUILD_EXTMOD)/compile_commands.json

PHONY += prepare
# now expand this into a simple variable to reduce the cost of shell evaluations
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/samsung/exynos4210-smdkv310.dts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
&keypad {
samsung,keypad-num-rows = <2>;
samsung,keypad-num-columns = <8>;
linux,keypad-no-autorepeat;
linux,input-no-autorepeat;
wakeup-source;
pinctrl-names = "default";
pinctrl-0 = <&keypad_rows &keypad_cols>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/samsung/exynos4412-origen.dts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
&keypad {
samsung,keypad-num-rows = <3>;
samsung,keypad-num-columns = <2>;
linux,keypad-no-autorepeat;
linux,input-no-autorepeat;
wakeup-source;
pinctrl-0 = <&keypad_rows &keypad_cols>;
pinctrl-names = "default";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/samsung/exynos4412-smdk4412.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
&keypad {
samsung,keypad-num-rows = <3>;
samsung,keypad-num-columns = <8>;
linux,keypad-no-autorepeat;
linux,input-no-autorepeat;
wakeup-source;
pinctrl-0 = <&keypad_rows &keypad_cols>;
pinctrl-names = "default";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
gic: interrupt-controller@f1001000 {
compatible = "arm,gic-400";
reg = <0x0 0xf1001000 0x0 0x1000>, /* GICD */
<0x0 0xf1002000 0x0 0x100>; /* GICC */
<0x0 0xf1002000 0x0 0x2000>; /* GICC */
#address-cells = <0>;
#interrupt-cells = <3>;
interrupt-controller;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/nvidia/tegra132-norrin.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
compatible = "nvidia,norrin", "nvidia,tegra132", "nvidia,tegra124";

aliases {
rtc0 = "/i2c@7000d000/as3722@40";
rtc1 = "/rtc@7000e000";
rtc0 = &as3722;
rtc1 = &tegra_rtc;
serial0 = &uarta;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/nvidia/tegra132.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@
status = "disabled";
};

rtc@7000e000 {
tegra_rtc: rtc@7000e000 {
compatible = "nvidia,tegra124-rtc", "nvidia,tegra20-rtc";
reg = <0x0 0x7000e000 0x0 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/qcs404-evb.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
vddrf-supply = <&vreg_l1_1p3>;
vddch0-supply = <&vdd_ch0_3p3>;

local-bd-address = [ 02 00 00 00 5a ad ];
local-bd-address = [ 00 00 00 00 00 00 ];

max-speed = <3200000>;
};
Expand Down
5 changes: 5 additions & 0 deletions arch/arm64/boot/dts/qcom/sc8280xp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,7 @@
assigned-clock-rates = <100000000>;

power-domains = <&gcc PCIE_4_GDSC>;
required-opps = <&rpmhpd_opp_nom>;

resets = <&gcc GCC_PCIE_4_PHY_BCR>;
reset-names = "phy";
Expand Down Expand Up @@ -1897,6 +1898,7 @@
assigned-clock-rates = <100000000>;

power-domains = <&gcc PCIE_3B_GDSC>;
required-opps = <&rpmhpd_opp_nom>;

resets = <&gcc GCC_PCIE_3B_PHY_BCR>;
reset-names = "phy";
Expand Down Expand Up @@ -1997,6 +1999,7 @@
assigned-clock-rates = <100000000>;

power-domains = <&gcc PCIE_3A_GDSC>;
required-opps = <&rpmhpd_opp_nom>;

resets = <&gcc GCC_PCIE_3A_PHY_BCR>;
reset-names = "phy";
Expand Down Expand Up @@ -2098,6 +2101,7 @@
assigned-clock-rates = <100000000>;

power-domains = <&gcc PCIE_2B_GDSC>;
required-opps = <&rpmhpd_opp_nom>;

resets = <&gcc GCC_PCIE_2B_PHY_BCR>;
reset-names = "phy";
Expand Down Expand Up @@ -2198,6 +2202,7 @@
assigned-clock-rates = <100000000>;

power-domains = <&gcc PCIE_2A_GDSC>;
required-opps = <&rpmhpd_opp_nom>;

resets = <&gcc GCC_PCIE_2A_PHY_BCR>;
reset-names = "phy";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

memory@80000000 {
device_type = "memory";
reg = <0x00000000 0x80000000 0x00000000 0x40000000>; /* 1G RAM */
reg = <0x00000000 0x80000000 0x00000000 0x80000000>; /* 2G RAM */
};

opp-table {
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/kvm/guest.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg)
case PSR_AA32_MODE_SVC:
case PSR_AA32_MODE_ABT:
case PSR_AA32_MODE_UND:
case PSR_AA32_MODE_SYS:
if (!vcpu_el1_is_32bit(vcpu))
return -EINVAL;
break;
Expand All @@ -276,7 +277,7 @@ static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg)
if (*vcpu_cpsr(vcpu) & PSR_MODE32_BIT) {
int i, nr_reg;

switch (*vcpu_cpsr(vcpu)) {
switch (*vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK) {
/*
* Either we are dealing with user mode, and only the
* first 15 registers (+ PC) must be narrowed to 32bit.
Expand Down
18 changes: 16 additions & 2 deletions arch/arm64/kvm/hyp/aarch32.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,23 @@ bool kvm_condition_valid32(const struct kvm_vcpu *vcpu)
u32 cpsr_cond;
int cond;

/* Top two bits non-zero? Unconditional. */
if (kvm_vcpu_get_esr(vcpu) >> 30)
/*
* These are the exception classes that could fire with a
* conditional instruction.
*/
switch (kvm_vcpu_trap_get_class(vcpu)) {
case ESR_ELx_EC_CP15_32:
case ESR_ELx_EC_CP15_64:
case ESR_ELx_EC_CP14_MR:
case ESR_ELx_EC_CP14_LS:
case ESR_ELx_EC_FP_ASIMD:
case ESR_ELx_EC_CP10_ID:
case ESR_ELx_EC_CP14_64:
case ESR_ELx_EC_SVC32:
break;
default:
return true;
}

/* Is condition field valid? */
cond = kvm_vcpu_get_condition(vcpu);
Expand Down
1 change: 1 addition & 0 deletions arch/loongarch/include/asm/numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ extern int early_cpu_to_node(int cpu);
static inline void early_numa_add_cpu(int cpuid, s16 node) { }
static inline void numa_add_cpu(unsigned int cpu) { }
static inline void numa_remove_cpu(unsigned int cpu) { }
static inline void set_cpuid_to_node(int cpuid, s16 node) { }

static inline int early_cpu_to_node(int cpu)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/loongarch/include/asm/stackframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
.macro JUMP_VIRT_ADDR temp1 temp2
li.d \temp1, CACHE_BASE
pcaddi \temp2, 0
or \temp1, \temp1, \temp2
bstrins.d \temp1, \temp2, (DMW_PABITS - 1), 0
jirl zero, \temp1, 0xc
.endm

Expand Down
5 changes: 4 additions & 1 deletion arch/loongarch/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ static void __init fdt_smp_setup(void)

if (cpuid == loongson_sysconf.boot_cpu_id) {
cpu = 0;
numa_add_cpu(cpu);
} else {
cpu = cpumask_next_zero(-1, cpu_present_mask);
}
Expand All @@ -294,6 +293,9 @@ static void __init fdt_smp_setup(void)
set_cpu_present(cpu, true);
__cpu_number_map[cpuid] = cpu;
__cpu_logical_map[cpu] = cpuid;

early_numa_add_cpu(cpu, 0);
set_cpuid_to_node(cpuid, 0);
}

loongson_sysconf.nr_cpus = num_processors;
Expand Down Expand Up @@ -477,6 +479,7 @@ void smp_prepare_boot_cpu(void)
set_cpu_possible(0, true);
set_cpu_online(0, true);
set_my_cpu_offset(per_cpu_offset(0));
numa_add_cpu(0);

rr_node = first_node(node_online_map);
for_each_possible_cpu(cpu) {
Expand Down
1 change: 1 addition & 0 deletions arch/parisc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))

#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA

#ifndef __ASSEMBLY__

Expand Down
12 changes: 0 additions & 12 deletions arch/parisc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,11 @@

#include <uapi/asm/signal.h>

#define _NSIG 64
/* bits-per-word, where word apparently means 'long' not 'int' */
#define _NSIG_BPW BITS_PER_LONG
#define _NSIG_WORDS (_NSIG / _NSIG_BPW)

# ifndef __ASSEMBLY__

/* Most things should be clean enough to redefine this at will, if care
is taken to make libc match. */

typedef unsigned long old_sigset_t; /* at least 32 bits */

typedef struct {
/* next_signal() assumes this is a long - no choice */
unsigned long sig[_NSIG_WORDS];
} sigset_t;

#include <asm/sigcontext.h>

#endif /* !__ASSEMBLY */
Expand Down
10 changes: 10 additions & 0 deletions arch/parisc/include/uapi/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,20 @@

#include <asm-generic/signal-defs.h>

#define _NSIG 64
#define _NSIG_BPW (sizeof(unsigned long) * 8)
#define _NSIG_WORDS (_NSIG / _NSIG_BPW)

# ifndef __ASSEMBLY__

# include <linux/types.h>

typedef unsigned long old_sigset_t; /* at least 32 bits */

typedef struct {
unsigned long sig[_NSIG_WORDS];
} sigset_t;

/* Avoid too many header ordering problems. */
struct siginfo;

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/mm/book3s64/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ pmd_t pmdp_invalidate(struct vm_area_struct *vma, unsigned long address,
{
unsigned long old_pmd;

VM_WARN_ON_ONCE(!pmd_present(*pmdp));
old_pmd = pmd_hugepage_update(vma->vm_mm, address, pmdp, _PAGE_PRESENT, _PAGE_INVALID);
flush_pmd_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
return __pmd(old_pmd);
Expand Down
12 changes: 12 additions & 0 deletions arch/powerpc/net/bpf_jit_comp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,15 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, struct codegen_context *

/* Get offset into TMP_REG */
EMIT(PPC_RAW_LI(tmp_reg, off));
/*
* Enforce full ordering for operations with BPF_FETCH by emitting a 'sync'
* before and after the operation.
*
* This is a requirement in the Linux Kernel Memory Model.
* See __cmpxchg_u32() in asm/cmpxchg.h as an example.
*/
if ((imm & BPF_FETCH) && IS_ENABLED(CONFIG_SMP))
EMIT(PPC_RAW_SYNC());
tmp_idx = ctx->idx * 4;
/* load value from memory into r0 */
EMIT(PPC_RAW_LWARX(_R0, tmp_reg, dst_reg, 0));
Expand Down Expand Up @@ -904,6 +913,9 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, struct codegen_context *

/* For the BPF_FETCH variant, get old data into src_reg */
if (imm & BPF_FETCH) {
/* Emit 'sync' to enforce full ordering */
if (IS_ENABLED(CONFIG_SMP))
EMIT(PPC_RAW_SYNC());
EMIT(PPC_RAW_MR(ret_reg, ax_reg));
if (!fp->aux->verifier_zext)
EMIT(PPC_RAW_LI(ret_reg - 1, 0)); /* higher 32-bit */
Expand Down
12 changes: 12 additions & 0 deletions arch/powerpc/net/bpf_jit_comp64.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,15 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, struct codegen_context *

/* Get offset into TMP_REG_1 */
EMIT(PPC_RAW_LI(tmp1_reg, off));
/*
* Enforce full ordering for operations with BPF_FETCH by emitting a 'sync'
* before and after the operation.
*
* This is a requirement in the Linux Kernel Memory Model.
* See __cmpxchg_u64() in asm/cmpxchg.h as an example.
*/
if ((imm & BPF_FETCH) && IS_ENABLED(CONFIG_SMP))
EMIT(PPC_RAW_SYNC());
tmp_idx = ctx->idx * 4;
/* load value from memory into TMP_REG_2 */
if (size == BPF_DW)
Expand Down Expand Up @@ -865,6 +874,9 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, struct codegen_context *
PPC_BCC_SHORT(COND_NE, tmp_idx);

if (imm & BPF_FETCH) {
/* Emit 'sync' to enforce full ordering */
if (IS_ENABLED(CONFIG_SMP))
EMIT(PPC_RAW_SYNC());
EMIT(PPC_RAW_MR(ret_reg, _R0));
/*
* Skip unnecessary zero-extension for 32-bit cmpxchg.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@
axp15060: pmic@36 {
compatible = "x-powers,axp15060";
reg = <0x36>;
interrupts = <0>;
interrupt-controller;
#interrupt-cells = <1>;

Expand Down
Loading
Loading