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] [linux 6.6-y] [Upstream] Update kernel base to 6.6.79Linux stable update 6.6.79 v3 #632

Closed
wants to merge 154 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
6eb712b
nfsd: clear acl_access/acl_default after releasing them
Jan 26, 2025
70d92c4
NFSD: fix hang in nfsd4_shutdown_callback
daimngo Jan 30, 2025
90db77a
pinctrl: cy8c95x0: Respect IRQ trigger settings from firmware
andy-shev Jan 17, 2025
f37eb33
HID: multitouch: Add NULL check in mt_input_configured
Nov 15, 2024
e285770
HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_…
tuliofernandes Feb 5, 2025
61658a1
spi: sn-f-ospi: Fix division by zero
khayash1 Feb 6, 2025
83441fe
ax25: Fix refcount leak caused by setting SO_BINDTODEVICE sockopt
Feb 3, 2025
6e4e50e
ndisc: ndisc_send_redirect() must use dev_get_by_index_rcu()
Feb 7, 2025
b6f04aa
vrf: use RCU protection in l3mdev_l3_out()
Feb 7, 2025
b48f465
vxlan: check vxlan_vnigroup_init() return value
Feb 10, 2025
8ea054b
LoongArch: Fix idle VS timer enqueue
DispatchCode Feb 13, 2025
dbd7e89
LoongArch: csum: Fix OoB access in IP checksum code for negative lengths
Avenger-285714 Feb 13, 2025
a5a995d
team: better TEAM_OPTION_TYPE_STRING validation
Feb 12, 2025
63f0a82
arm64: cacheinfo: Avoid out-of-bounds write to cacheinfo array
rrendec Feb 6, 2025
1ea9e87
cgroup: Remove steal time from usage_usec
madeelibm Feb 7, 2025
3d31faf
drm/i915/selftests: avoid using uninitialized context
KKaras169169 Jan 30, 2025
b0acf58
gpio: bcm-kona: Fix GPIO lock/unlock for banks above bank 0
refractionware Feb 6, 2025
3148887
gpio: bcm-kona: Make sure GPIO bits are unlocked when requesting IRQ
refractionware Feb 6, 2025
fa7daa9
gpio: bcm-kona: Add missing newline to dev_err format string
refractionware Feb 6, 2025
c379bcb
drm/amdgpu: bail out when failed to load fw in psp_init_cap_microcode()
jiangliu Feb 7, 2025
3b3d0f6
xen/swiotlb: relax alignment requirements
jgross1 Feb 10, 2025
3615f3c
x86/xen: allow larger contiguous memory regions in PV guests
jgross1 Feb 11, 2025
258af6d
block: cleanup and fix batch completion adding conditions
axboe Feb 13, 2025
1780a8a
gpiolib: Fix crash on error in gpiochip_get_ngpios()
andy-shev Feb 13, 2025
7ed04ba
tools: fix annoying "mkdir -p ..." logs when building tools in parallel
masahir0y Feb 11, 2025
60f5978
RDMA/efa: Reset device on probe failure
mrgolin Dec 25, 2024
7437757
fbdev: omap: use threaded IRQ for LCD DMA
aakoskin Jan 2, 2025
69d762e
soc/tegra: fuse: Update Tegra234 nvmem keepout list
Nov 27, 2024
1009a4d
media: cxd2841er: fix 64-bit division on gcc-9
arndb Nov 11, 2024
2d4ce95
media: i2c: ds90ub913: Add error handling to ub913_hw_init()
tomba Dec 6, 2024
4623cd6
media: i2c: ds90ub953: Add error handling for i2c reads/writes
tomba Dec 6, 2024
12eb858
media: uvcvideo: Implement dual stream quirk to fix loss of usb packets
ijgs02 Nov 28, 2024
c7140bd
media: uvcvideo: Add new quirk definition for the Sonix Technology Co…
ijgs02 Nov 28, 2024
92c7913
media: uvcvideo: Add Kurokesu C1 PRO camera
ijgs02 Dec 17, 2024
0f8debc
media: vidtv: Fix a null-ptr-deref in vidtv_mux_stop_thread
ea1davis Dec 29, 2024
7bbd6ec
PCI/DPC: Quirk PIO log size for Intel Raptor Lake-P
tiwai Jan 2, 2025
fd926f8
PCI: switchtec: Add Microchip PCI100X device IDs
Rakesh-Saladi Jan 20, 2025
4d20fff
scsi: ufs: bsg: Set bsg_queue to NULL after removal
guixinliu1995 Dec 18, 2024
5861e0a
rtla/timerlat_hist: Abort event processing on second signal
lenticularis39 Jan 16, 2025
86eb625
rtla/timerlat_top: Abort event processing on second signal
lenticularis39 Jan 16, 2025
5ac6770
vfio/pci: Enable iowrite64 and ioread64 for vfio pci
ramesh-thomas Dec 10, 2024
e625bce
NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client()
Gax-c Dec 17, 2024
7678d4d
Grab mm lock before grabbing pt lock
planetA Dec 4, 2024
a65342a
selftests: gpio: gpio-sim: Fix missing chip disablements
lkpdn Jan 22, 2025
c3c5147
ACPI: x86: Add skip i2c clients quirk for Vexia EDU ATLA 10 tablet 5V
jwrdegoede Jan 23, 2025
9cb9195
x86/mm/tlb: Only trim the mm_cpumask once a second
Dec 5, 2024
85465f3
orangefs: fix a oob in orangefs_debug_write
hubcapsc Jan 8, 2025
9bea1fb
ASoC: Intel: bytcr_rt5640: Add DMI quirk for Vexia Edu Atla 10 tablet 5V
jwrdegoede Jan 23, 2025
45f8a0c
batman-adv: fix panic during interface removal
andrewstrohman Jan 9, 2025
4d23926
batman-adv: Ignore neighbor throughput metrics in error case
ecsv Jan 20, 2025
98661ec
batman-adv: Drop unmanaged ELP metric worker
ecsv Jan 19, 2025
337a612
drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table()
jiangliu Feb 7, 2025
cde3655
KVM: x86: Reject Hyper-V's SEND_IPI hypercalls if local APIC isn't in…
sean-jc Jan 18, 2025
080c0b7
KVM: nSVM: Enter guest mode before initializing nested NPT MMU
sean-jc Jan 30, 2025
6aa54ab
perf/x86/intel: Ensure LBRs are disabled when a CPU is starting
sean-jc Jan 31, 2025
db02cbc
usb: gadget: f_midi: Fixing wMaxPacketSize exceeded issue during MIDI…
Jan 18, 2025
c15d5d1
usb: dwc3: Fix timeout issue during controller enter/exit from halt s…
Feb 1, 2025
7ad641f
usb: roles: set switch registered flag early on
Feb 6, 2025
e58538b
usb: gadget: udc: renesas_usb3: Fix compiler warning
guoren83 Jan 22, 2025
fd65d8f
usb: dwc2: gadget: remove of_node reference upon udc_stop
Jan 24, 2025
4ea6caa
USB: pci-quirks: Fix HCCPARAMS register error for LS7A EHCI
chenhuacai Feb 2, 2025
6ceb9ff
usb: core: fix pipe creation for get_bMaxPacketSize0
eichenberger Feb 3, 2025
2e82116
USB: quirks: add USB_QUIRK_NO_LPM quirk for Teclast dist
Feb 12, 2025
a1c62bd
USB: Add USB_QUIRK_NO_LPM quirk for sony xperia xz1 smartphone
matnyman Feb 6, 2025
aa535e3
usb: gadget: f_midi: fix MIDI Streaming descriptor lengths
johnkeeping Jan 30, 2025
12952be
USB: hub: Ignore non-compliant devices with too many configs or inter…
AlanStern Jan 22, 2025
989a697
USB: cdc-acm: Fill in Renesas R-Car D3 USB Download mode quirk
Feb 9, 2025
8518329
usb: cdc-acm: Check control transfer buffer size before access
thejh Feb 12, 2025
bb6169b
usb: cdc-acm: Fix handling of oversized fragments
thejh Feb 12, 2025
a200534
USB: serial: option: add MeiG Smart SLM828
arinc9 Jan 24, 2025
0c03b1a
USB: serial: option: add Telit Cinterion FN990B compositions
fabio-porcedda Feb 5, 2025
818ee74
USB: serial: option: fix Telit Cinterion FN990A name
fabio-porcedda Feb 5, 2025
9579688
USB: serial: option: drop MeiG Smart defines
jhovold Feb 11, 2025
1b96f08
can: ctucanfd: handle skb allocation failure
pchelkin91 Jan 14, 2025
2fdc47c
can: c_can: fix unbalanced runtime PM disable in error path
krzk Jan 12, 2025
6517f46
can: j1939: j1939_sk_send_loop(): fix unable to send messages with da…
xile273 Feb 5, 2025
c1c22a8
can: etas_es58x: fix potential NULL pointer dereference on udev->serial
vincent-mailhol Feb 4, 2025
fee2264
alpha: make stack 16-byte aligned (most cases)
Feb 4, 2025
0773857
wifi: ath12k: fix handling of 6 GHz rules
Jan 23, 2025
ff50c4f
kbuild: userprogs: fix bitsize and target detection on clang
t-8ch Feb 13, 2025
3e9fde1
efi: Avoid cold plugged memory for placing the kernel
ardbiesheuvel Feb 1, 2025
5551b14
cgroup: fix race between fork and cgroup.kill
shakeelb Jan 31, 2025
477ee59
serial: port: Assign ->iotype correctly when ->iobase is set
andy-shev Jan 24, 2025
ed1cae2
serial: port: Always update ->iotype in __uart_read_properties()
andy-shev Jan 24, 2025
ff3dbb9
serial: 8250: Fix fifo underflow on flush
johnkeeping Feb 8, 2025
1c677be
alpha: align stack for page fault and user unaligned trap handlers
Feb 4, 2025
d79fc96
gpiolib: acpi: Add a quirk for Acer Nitro ANV14
superm1 Feb 11, 2025
545990d
gpio: stmpe: Check return value of stmpe_reg_read in stmpe_gpio_irq_s…
ISCAS-Vulab Feb 12, 2025
238292e
partitions: mac: fix handling of bogus partition table
thejh Feb 14, 2025
64d85e3
regulator: qcom_smd: Add l2, l5 sub-node to mp5496 regulator
quic-varada Feb 5, 2025
26f91b4
regmap-irq: Add missing kfree()
Feb 5, 2025
731b6de
arm64: Handle .ARM.attributes section in linker scripts
nathanchance Feb 6, 2025
153f8dd
mmc: mtk-sd: Fix register settings for hs400(es) mode
Jan 23, 2025
1223b8a
igc: Set buffer type for empty frames in igc_init_empty_frame
yoongsiang2 Feb 5, 2025
237aedf
mlxsw: Add return value check for mlxsw_sp_port_get_stats_raw()
ISCAS-Vulab Feb 12, 2025
7857425
btrfs: fix hole expansion when writing at an offset beyond EOF
fdmanana Feb 5, 2025
8527bb2
clocksource: Use pr_info() for "Checking clocksource synchronization"…
Waiman-Long Jan 25, 2025
1694a16
clocksource: Use migrate_disable() to avoid calling get_random_u32() …
Waiman-Long Jan 31, 2025
48215ab
ipv4: add RCU protection to ip4_dst_hoplimit()
Feb 5, 2025
a9ccdd0
net: treat possible_net_t net pointer as an RCU one and add read_pnet…
Oct 13, 2023
dd98753
net: add dev_net_rcu() helper
Feb 5, 2025
8ba21d2
ipv4: use RCU protection in ipv4_default_advmss()
Feb 5, 2025
fecc4a3
ipv4: use RCU protection in rt_is_expired()
Feb 5, 2025
f777bbf
ipv4: use RCU protection in inet_select_addr()
Feb 5, 2025
60cbccb
net: ipv4: Cache pmtu for all packet paths if multipath enabled
Delliran Nov 8, 2024
3f6c6dd
ipv4: use RCU protection in __ip_rt_update_pmtu()
Feb 5, 2025
607c721
ipv4: icmp: convert to dev_net_rcu()
Feb 5, 2025
e3adc0d
flow_dissector: use RCU protection to fetch dev_net()
Feb 5, 2025
e78f131
ipv6: use RCU protection in ip6_default_advmss()
Feb 5, 2025
9468abc
ipv6: icmp: convert to dev_net_rcu()
Feb 5, 2025
1695853
HID: hid-steam: Avoid overwriting smoothing parameter
endrift Dec 20, 2023
e26f2dd
HID: hid-steam: Disable watchdog instead of using a heartbeat
endrift Dec 20, 2023
5afa019
HID: hid-steam: Clean up locking
endrift Dec 20, 2023
70bfc5e
HID: hid-steam: Update list of identifiers from SDL
endrift Dec 20, 2023
15ec106
HID: hid-steam: Add gamepad-only mode switched to by holding options
endrift Dec 20, 2023
042fcf8
HID: hid-steam: remove pointless error message
Jan 12, 2024
5d5672e
HID: hid-steam: Fix cleanup in probe()
Jan 12, 2024
48fbfdd
HID: hid-steam: Add Deck IMU support
Apr 20, 2024
ac3588a
HID: hid-steam: Make sure rumble work is canceled on removal
endrift Dec 26, 2024
00abe79
HID: hid-steam: Move hidraw input (un)registering to work
endrift Feb 5, 2025
554df11
ndisc: use RCU protection in ndisc_alloc_skb()
Feb 7, 2025
115e253
neighbour: delete redundant judgment statements
Aug 22, 2024
21705c7
neighbour: use RCU protection in __neigh_notify()
Feb 7, 2025
062bbe1
arp: use RCU protection in arp_xmit()
Feb 7, 2025
d82413b
openvswitch: use RCU protection in ovs_vport_cmd_fill_info()
Feb 7, 2025
5d273e3
ndisc: extend RCU protection in ndisc_send_skb()
Feb 7, 2025
baa19cf
ipv6: mcast: extend RCU protection in igmp6_send()
Feb 7, 2025
7e9203b
ipv6: mcast: add RCU protection to mld_newpack()
Feb 12, 2025
9a97af7
drm/tidss: Fix issue in irq handling causing irq-flood issue
tomba Oct 21, 2024
2812503
drm/tidss: Clear the interrupt status for interrupts being disabled
Oct 21, 2024
0dd164c
drm/rcar-du: dsi: Fix PHY lock bit check
tomba Dec 17, 2024
dfd2cbc
drm/v3d: Stop active perfmon if it is being destroyed
Nov 18, 2024
1756bcc
x86/static-call: Remove early_boot_irqs_disabled check to fix Xen PVH…
andyhhp Dec 21, 2024
d01b4d6
drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_…
srishanm Jul 21, 2024
212e66c
drm/amd/display: Pass non-null to dcn20_validate_apply_pipe_split_flags
Jun 27, 2024
fe9cd95
netdevsim: print human readable IP address
liuhangbin Oct 10, 2024
c52004c
selftests: rtnetlink: update netdevsim ipsec output format
liuhangbin Oct 10, 2024
9a36fce
md/raid5: recheck if reshape has finished with device_lock held
bmarzins Feb 10, 2025
e4c57fe
md/md-bitmap: factor behind write counters out from bitmap_{start/end…
YuKuai-huawei Feb 10, 2025
634b537
md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()
YuKuai-huawei Feb 10, 2025
cba5d59
md: add a new callback pers->bitmap_sector()
YuKuai-huawei Feb 10, 2025
703bacb
md/raid5: implement pers->bitmap_sector()
YuKuai-huawei Feb 10, 2025
7a7a638
md/md-bitmap: move bitmap_{start, end}write to md upper layer
YuKuai-huawei Feb 10, 2025
2e5a7a3
arm64: Filter out SVE hwcaps when FEAT_SVE isn't implemented
Jan 7, 2025
a6da0e6
mm: gup: fix infinite loop within __get_longterm_locked
Jan 21, 2025
54c0576
alpha: replace hardcoded stack offsets with autogenerated ones
Feb 4, 2025
43e3d1e
HID: hid-steam: Don't use cancel_delayed_work_sync in IRQ context
endrift Feb 5, 2025
c42f828
io_uring/kbuf: reallocate buf lists on upgrade
isilence Feb 12, 2025
a0d28b5
vsock: Keep the binding until socket destruction
mmhal Jan 28, 2025
edabce5
vsock: Orphan socket after transport release
mmhal Feb 10, 2025
1e70a76
x86/i8253: Disable PIT timer 0 when not in use
dwmw2 Aug 2, 2024
458f81c
Revert "vfio/platform: check the bounds of read/write syscalls"
gregkh Feb 19, 2025
59188ce
Linux 6.6.79
gregkh Feb 21, 2025
51857ae
FROMLIST: serial: 8250_dma: terminate correct DMA in tx_dma_flush()
johnkeeping Feb 24, 2025
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
36 changes: 24 additions & 12 deletions Documentation/arch/arm64/elf_hwcaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,28 @@ HWCAP2_DCPODP
Functionality implied by ID_AA64ISAR1_EL1.DPB == 0b0010.

HWCAP2_SVE2
Functionality implied by ID_AA64ZFR0_EL1.SVEVer == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.SVEver == 0b0001.

HWCAP2_SVEAES
Functionality implied by ID_AA64ZFR0_EL1.AES == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.AES == 0b0001.

HWCAP2_SVEPMULL
Functionality implied by ID_AA64ZFR0_EL1.AES == 0b0010.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.AES == 0b0010.

HWCAP2_SVEBITPERM
Functionality implied by ID_AA64ZFR0_EL1.BitPerm == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.BitPerm == 0b0001.

HWCAP2_SVESHA3
Functionality implied by ID_AA64ZFR0_EL1.SHA3 == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.SHA3 == 0b0001.

HWCAP2_SVESM4
Functionality implied by ID_AA64ZFR0_EL1.SM4 == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.SM4 == 0b0001.

HWCAP2_FLAGM2
Functionality implied by ID_AA64ISAR0_EL1.TS == 0b0010.
Expand All @@ -198,16 +204,20 @@ HWCAP2_FRINT
Functionality implied by ID_AA64ISAR1_EL1.FRINTTS == 0b0001.

HWCAP2_SVEI8MM
Functionality implied by ID_AA64ZFR0_EL1.I8MM == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.I8MM == 0b0001.

HWCAP2_SVEF32MM
Functionality implied by ID_AA64ZFR0_EL1.F32MM == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.F32MM == 0b0001.

HWCAP2_SVEF64MM
Functionality implied by ID_AA64ZFR0_EL1.F64MM == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.F64MM == 0b0001.

HWCAP2_SVEBF16
Functionality implied by ID_AA64ZFR0_EL1.BF16 == 0b0001.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.BF16 == 0b0001.

HWCAP2_I8MM
Functionality implied by ID_AA64ISAR1_EL1.I8MM == 0b0001.
Expand Down Expand Up @@ -273,7 +283,8 @@ HWCAP2_EBF16
Functionality implied by ID_AA64ISAR1_EL1.BF16 == 0b0010.

HWCAP2_SVE_EBF16
Functionality implied by ID_AA64ZFR0_EL1.BF16 == 0b0010.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.BF16 == 0b0010.

HWCAP2_CSSC
Functionality implied by ID_AA64ISAR2_EL1.CSSC == 0b0001.
Expand All @@ -282,7 +293,8 @@ HWCAP2_RPRFM
Functionality implied by ID_AA64ISAR2_EL1.RPRFM == 0b0001.

HWCAP2_SVE2P1
Functionality implied by ID_AA64ZFR0_EL1.SVEver == 0b0010.
Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
ID_AA64ZFR0_EL1.SVEver == 0b0010.

HWCAP2_SME2
Functionality implied by ID_AA64SMFR0_EL1.SMEver == 0b0001.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ description:
Each sub-node is identified using the node's name, with valid values listed
for each of the pmics below.

For mp5496, s1, s2
For mp5496, s1, s2, l2, l5

For pm2250, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)

l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22
Expand Down
15 changes: 5 additions & 10 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 = 78
SUBLEVEL = 79
EXTRAVERSION =
NAME = Pinguïn Aangedreven

Expand Down Expand Up @@ -1057,8 +1057,8 @@ LDFLAGS_vmlinux += --orphan-handling=$(CONFIG_LD_ORPHAN_WARN_LEVEL)
endif

# Align the bit size of userspace programs with the kernel
KBUILD_USERCFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
KBUILD_USERCFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS))
KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS))

# make the checker run with the right architecture
CHECKFLAGS += --arch=$(ARCH)
Expand Down Expand Up @@ -1356,18 +1356,13 @@ ifneq ($(wildcard $(resolve_btfids_O)),)
$(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
endif

# Clear a bunch of variables before executing the submake
ifeq ($(quiet),silent_)
tools_silent=s
endif

tools/: FORCE
$(Q)mkdir -p $(objtree)/tools
$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/
$(Q)$(MAKE) LDFLAGS= O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/

tools/%: FORCE
$(Q)mkdir -p $(objtree)/tools
$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $*
$(Q)$(MAKE) LDFLAGS= O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $*

# ---------------------------------------------------------------------------
# Kernel selftest
Expand Down
2 changes: 2 additions & 0 deletions arch/alpha/include/uapi/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ struct pt_regs {
unsigned long trap_a0;
unsigned long trap_a1;
unsigned long trap_a2;
/* This makes the stack 16-byte aligned as GCC expects */
unsigned long __pad0;
/* These are saved by PAL-code: */
unsigned long ps;
unsigned long pc;
Expand Down
2 changes: 2 additions & 0 deletions arch/alpha/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ void foo(void)
DEFINE(CRED_EGID, offsetof(struct cred, egid));
BLANK();

DEFINE(SP_OFF, offsetof(struct pt_regs, ps));
DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs));
DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack));
DEFINE(PT_PTRACED, PT_PTRACED);
DEFINE(CLONE_VM, CLONE_VM);
DEFINE(CLONE_UNTRACED, CLONE_UNTRACED);
Expand Down
24 changes: 10 additions & 14 deletions arch/alpha/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
.set noat
.cfi_sections .debug_frame

/* Stack offsets. */
#define SP_OFF 184
#define SWITCH_STACK_SIZE 64

.macro CFI_START_OSF_FRAME func
.align 4
.globl \func
Expand Down Expand Up @@ -198,8 +194,8 @@ CFI_END_OSF_FRAME entArith
CFI_START_OSF_FRAME entMM
SAVE_ALL
/* save $9 - $15 so the inline exception code can manipulate them. */
subq $sp, 56, $sp
.cfi_adjust_cfa_offset 56
subq $sp, 64, $sp
.cfi_adjust_cfa_offset 64
stq $9, 0($sp)
stq $10, 8($sp)
stq $11, 16($sp)
Expand All @@ -214,7 +210,7 @@ CFI_START_OSF_FRAME entMM
.cfi_rel_offset $13, 32
.cfi_rel_offset $14, 40
.cfi_rel_offset $15, 48
addq $sp, 56, $19
addq $sp, 64, $19
/* handle the fault */
lda $8, 0x3fff
bic $sp, $8, $8
Expand All @@ -227,15 +223,15 @@ CFI_START_OSF_FRAME entMM
ldq $13, 32($sp)
ldq $14, 40($sp)
ldq $15, 48($sp)
addq $sp, 56, $sp
addq $sp, 64, $sp
.cfi_restore $9
.cfi_restore $10
.cfi_restore $11
.cfi_restore $12
.cfi_restore $13
.cfi_restore $14
.cfi_restore $15
.cfi_adjust_cfa_offset -56
.cfi_adjust_cfa_offset -64
/* finish up the syscall as normal. */
br ret_from_sys_call
CFI_END_OSF_FRAME entMM
Expand Down Expand Up @@ -382,8 +378,8 @@ entUnaUser:
.cfi_restore $0
.cfi_adjust_cfa_offset -256
SAVE_ALL /* setup normal kernel stack */
lda $sp, -56($sp)
.cfi_adjust_cfa_offset 56
lda $sp, -64($sp)
.cfi_adjust_cfa_offset 64
stq $9, 0($sp)
stq $10, 8($sp)
stq $11, 16($sp)
Expand All @@ -399,7 +395,7 @@ entUnaUser:
.cfi_rel_offset $14, 40
.cfi_rel_offset $15, 48
lda $8, 0x3fff
addq $sp, 56, $19
addq $sp, 64, $19
bic $sp, $8, $8
jsr $26, do_entUnaUser
ldq $9, 0($sp)
Expand All @@ -409,15 +405,15 @@ entUnaUser:
ldq $13, 32($sp)
ldq $14, 40($sp)
ldq $15, 48($sp)
lda $sp, 56($sp)
lda $sp, 64($sp)
.cfi_restore $9
.cfi_restore $10
.cfi_restore $11
.cfi_restore $12
.cfi_restore $13
.cfi_restore $14
.cfi_restore $15
.cfi_adjust_cfa_offset -56
.cfi_adjust_cfa_offset -64
br ret_from_sys_call
CFI_END_OSF_FRAME entUna

Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ s_reg_to_mem (unsigned long s_reg)
static int unauser_reg_offsets[32] = {
R(r0), R(r1), R(r2), R(r3), R(r4), R(r5), R(r6), R(r7), R(r8),
/* r9 ... r15 are stored in front of regs. */
-56, -48, -40, -32, -24, -16, -8,
-64, -56, -48, -40, -32, -24, -16, /* padding at -8 */
R(r16), R(r17), R(r18),
R(r19), R(r20), R(r21), R(r22), R(r23), R(r24), R(r25), R(r26),
R(r27), R(r28), R(gp),
Expand Down
4 changes: 2 additions & 2 deletions arch/alpha/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ __load_new_mm_context(struct mm_struct *next_mm)

/* Macro for exception fixup code to access integer registers. */
#define dpf_reg(r) \
(((unsigned long *)regs)[(r) <= 8 ? (r) : (r) <= 15 ? (r)-16 : \
(r) <= 18 ? (r)+10 : (r)-10])
(((unsigned long *)regs)[(r) <= 8 ? (r) : (r) <= 15 ? (r)-17 : \
(r) <= 18 ? (r)+11 : (r)-10])

asmlinkage void
do_page_fault(unsigned long address, unsigned long mmcsr,
Expand Down
12 changes: 7 additions & 5 deletions arch/arm64/kernel/cacheinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,18 @@ int populate_cache_leaves(unsigned int cpu)
unsigned int level, idx;
enum cache_type type;
struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu);
struct cacheinfo *this_leaf = this_cpu_ci->info_list;
struct cacheinfo *infos = this_cpu_ci->info_list;

for (idx = 0, level = 1; level <= this_cpu_ci->num_levels &&
idx < this_cpu_ci->num_leaves; idx++, level++) {
idx < this_cpu_ci->num_leaves; level++) {
type = get_cache_type(level);
if (type == CACHE_TYPE_SEPARATE) {
ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level);
ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level);
if (idx + 1 >= this_cpu_ci->num_leaves)
break;
ci_leaf_init(&infos[idx++], CACHE_TYPE_DATA, level);
ci_leaf_init(&infos[idx++], CACHE_TYPE_INST, level);
} else {
ci_leaf_init(this_leaf++, type, level);
ci_leaf_init(&infos[idx++], type, level);
}
}
return 0;
Expand Down
38 changes: 26 additions & 12 deletions arch/arm64/kernel/cpufeature.c
Original file line number Diff line number Diff line change
Expand Up @@ -2768,6 +2768,13 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
.matches = match, \
}

#define HWCAP_CAP_MATCH_ID(match, reg, field, min_value, cap_type, cap) \
{ \
__HWCAP_CAP(#cap, cap_type, cap) \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)

HWCAP_CPUID_MATCH(reg, field, min_value) \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: Avoid using diff content in the commit message - patch(1) might not work

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: patch seems to be corrupt (line wrapped?)

.matches = match, \
}

#ifdef CONFIG_ARM64_PTR_AUTH
static const struct arm64_cpu_capabilities ptr_auth_hwcap_addr_matches[] = {
{
Expand Down Expand Up @@ -2796,6 +2803,13 @@ static const struct arm64_cpu_capabilities ptr_auth_hwcap_gen_matches[] = {
};
#endif

#ifdef CONFIG_ARM64_SVE
static bool has_sve_feature(const struct arm64_cpu_capabilities *cap, int scope)
{
return system_supports_sve() && has_user_cpuid_feature(cap, scope);
}
#endif

static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
HWCAP_CAP(ID_AA64ISAR0_EL1, AES, PMULL, CAP_HWCAP, KERNEL_HWCAP_PMULL),
HWCAP_CAP(ID_AA64ISAR0_EL1, AES, AES, CAP_HWCAP, KERNEL_HWCAP_AES),
Expand Down Expand Up @@ -2833,18 +2847,18 @@ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
HWCAP_CAP(ID_AA64MMFR2_EL1, AT, IMP, CAP_HWCAP, KERNEL_HWCAP_USCAT),
#ifdef CONFIG_ARM64_SVE
HWCAP_CAP(ID_AA64PFR0_EL1, SVE, IMP, CAP_HWCAP, KERNEL_HWCAP_SVE),
HWCAP_CAP(ID_AA64ZFR0_EL1, SVEver, SVE2p1, CAP_HWCAP, KERNEL_HWCAP_SVE2P1),
HWCAP_CAP(ID_AA64ZFR0_EL1, SVEver, SVE2, CAP_HWCAP, KERNEL_HWCAP_SVE2),
HWCAP_CAP(ID_AA64ZFR0_EL1, AES, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEAES),
HWCAP_CAP(ID_AA64ZFR0_EL1, AES, PMULL128, CAP_HWCAP, KERNEL_HWCAP_SVEPMULL),
HWCAP_CAP(ID_AA64ZFR0_EL1, BitPerm, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEBITPERM),
HWCAP_CAP(ID_AA64ZFR0_EL1, BF16, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEBF16),
HWCAP_CAP(ID_AA64ZFR0_EL1, BF16, EBF16, CAP_HWCAP, KERNEL_HWCAP_SVE_EBF16),
HWCAP_CAP(ID_AA64ZFR0_EL1, SHA3, IMP, CAP_HWCAP, KERNEL_HWCAP_SVESHA3),
HWCAP_CAP(ID_AA64ZFR0_EL1, SM4, IMP, CAP_HWCAP, KERNEL_HWCAP_SVESM4),
HWCAP_CAP(ID_AA64ZFR0_EL1, I8MM, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEI8MM),
HWCAP_CAP(ID_AA64ZFR0_EL1, F32MM, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEF32MM),
HWCAP_CAP(ID_AA64ZFR0_EL1, F64MM, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEF64MM),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, SVEver, SVE2p1, CAP_HWCAP, KERNEL_HWCAP_SVE2P1),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, SVEver, SVE2, CAP_HWCAP, KERNEL_HWCAP_SVE2),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, AES, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEAES),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, AES, PMULL128, CAP_HWCAP, KERNEL_HWCAP_SVEPMULL),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, BitPerm, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEBITPERM),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, BF16, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEBF16),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, BF16, EBF16, CAP_HWCAP, KERNEL_HWCAP_SVE_EBF16),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, SHA3, IMP, CAP_HWCAP, KERNEL_HWCAP_SVESHA3),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, SM4, IMP, CAP_HWCAP, KERNEL_HWCAP_SVESM4),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, I8MM, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEI8MM),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, F32MM, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEF32MM),
HWCAP_CAP_MATCH_ID(has_sve_feature, ID_AA64ZFR0_EL1, F64MM, IMP, CAP_HWCAP, KERNEL_HWCAP_SVEF64MM),
#endif
HWCAP_CAP(ID_AA64PFR1_EL1, SSBS, SSBS2, CAP_HWCAP, KERNEL_HWCAP_SSBS),
#ifdef CONFIG_ARM64_BTI
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/kernel/vdso/vdso.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ SECTIONS
*/
/DISCARD/ : {
*(.note.GNU-stack .note.gnu.property)
*(.ARM.attributes)
}
.note : { *(.note.*) } :text :note

Expand Down
1 change: 1 addition & 0 deletions arch/arm64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ SECTIONS
/DISCARD/ : {
*(.interp .dynamic)
*(.dynsym .dynstr .hash .gnu.hash)
*(.ARM.attributes)
}

. = KIMAGE_VADDR;
Expand Down
28 changes: 15 additions & 13 deletions arch/loongarch/kernel/genex.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,30 @@

.align 5
SYM_FUNC_START(__arch_cpu_idle)
/* start of rollback region */
LONG_L t0, tp, TI_FLAGS
nop
andi t0, t0, _TIF_NEED_RESCHED
bnez t0, 1f
nop
nop
nop
/* start of idle interrupt region */
ori t0, zero, CSR_CRMD_IE
/* idle instruction needs irq enabled */
csrxchg t0, t0, LOONGARCH_CSR_CRMD
/*
* If an interrupt lands here; between enabling interrupts above and
* going idle on the next instruction, we must *NOT* go idle since the
* interrupt could have set TIF_NEED_RESCHED or caused an timer to need
* reprogramming. Fall through -- see handle_vint() below -- and have
* the idle loop take care of things.
*/
idle 0
/* end of rollback region */
/* end of idle interrupt region */
1: jr ra
SYM_FUNC_END(__arch_cpu_idle)

SYM_CODE_START(handle_vint)
UNWIND_HINT_UNDEFINED
BACKUP_T0T1
SAVE_ALL
la_abs t1, __arch_cpu_idle
la_abs t1, 1b
LONG_L t0, sp, PT_ERA
/* 32 byte rollback region */
ori t0, t0, 0x1f
xori t0, t0, 0x1f
/* 3 instructions idle interrupt region */
ori t0, t0, 0b1100
bne t0, t1, 1f
LONG_S t0, sp, PT_ERA
1: move a0, sp
Expand Down
Loading
Loading