-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'stable/linux-6.1.y' into rpi-6.1.y
- Loading branch information
Showing
214 changed files
with
2,400 additions
and
1,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10842,6 +10842,8 @@ L: [email protected] | |
S: Maintained | ||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core | ||
F: kernel/irq/ | ||
F: include/linux/group_cpus.h | ||
F: lib/group_cpus.c | ||
|
||
IRQCHIP DRIVERS | ||
M: Thomas Gleixner <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/* | ||
* Performance event support for s390x - CPU-measurement Counter Facility | ||
* | ||
* Copyright IBM Corp. 2012, 2021 | ||
* Copyright IBM Corp. 2012, 2022 | ||
* Author(s): Hendrik Brueckner <[email protected]> | ||
* Thomas Richter <[email protected]> | ||
*/ | ||
|
@@ -434,6 +434,12 @@ static void cpumf_hw_inuse(void) | |
mutex_unlock(&pmc_reserve_mutex); | ||
} | ||
|
||
static int is_userspace_event(u64 ev) | ||
{ | ||
return cpumf_generic_events_user[PERF_COUNT_HW_CPU_CYCLES] == ev || | ||
cpumf_generic_events_user[PERF_COUNT_HW_INSTRUCTIONS] == ev; | ||
} | ||
|
||
static int __hw_perf_event_init(struct perf_event *event, unsigned int type) | ||
{ | ||
struct perf_event_attr *attr = &event->attr; | ||
|
@@ -456,19 +462,26 @@ static int __hw_perf_event_init(struct perf_event *event, unsigned int type) | |
if (is_sampling_event(event)) /* No sampling support */ | ||
return -ENOENT; | ||
ev = attr->config; | ||
/* Count user space (problem-state) only */ | ||
if (!attr->exclude_user && attr->exclude_kernel) { | ||
if (ev >= ARRAY_SIZE(cpumf_generic_events_user)) | ||
return -EOPNOTSUPP; | ||
ev = cpumf_generic_events_user[ev]; | ||
|
||
/* No support for kernel space counters only */ | ||
/* | ||
* Count user space (problem-state) only | ||
* Handle events 32 and 33 as 0:u and 1:u | ||
*/ | ||
if (!is_userspace_event(ev)) { | ||
if (ev >= ARRAY_SIZE(cpumf_generic_events_user)) | ||
return -EOPNOTSUPP; | ||
ev = cpumf_generic_events_user[ev]; | ||
} | ||
} else if (!attr->exclude_kernel && attr->exclude_user) { | ||
/* No support for kernel space counters only */ | ||
return -EOPNOTSUPP; | ||
} else { /* Count user and kernel space */ | ||
if (ev >= ARRAY_SIZE(cpumf_generic_events_basic)) | ||
return -EOPNOTSUPP; | ||
ev = cpumf_generic_events_basic[ev]; | ||
} else { | ||
/* Count user and kernel space, incl. events 32 + 33 */ | ||
if (!is_userspace_event(ev)) { | ||
if (ev >= ARRAY_SIZE(cpumf_generic_events_basic)) | ||
return -EOPNOTSUPP; | ||
ev = cpumf_generic_events_basic[ev]; | ||
} | ||
} | ||
break; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.