Skip to content

Commit

Permalink
Automatic merge of 'fixes-test' into merge-test (2024-11-26 21:28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpe committed Nov 26, 2024
2 parents a85c72f + 45e57f3 commit 74b1d34
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
15 changes: 8 additions & 7 deletions Documentation/ABI/testing/sysfs-bus-event_source-devices-vpa-pmu
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ Description: Read-only. Attribute group to describe the magic bits
Each attribute under this group defines a bit range of the
perf_event_attr.config. Supported attribute are listed
below::
event = "config:0-31" - event ID

For example::
event = "config:0-31" - event ID

l1_to_l2_lat = "event=0x1"
For example::

l1_to_l2_lat = "event=0x1"

What: /sys/bus/event_source/devices/vpa_pmu/events
Date: November 2024
Contact: Linux on PowerPC Developer List <[email protected]>
Description: Read-only. Attribute group to describe performance monitoring
Description: Read-only. Attribute group to describe performance monitoring
events for the Virtual Processor Area events. Each attribute
in this group describes a single performance monitoring event
supported by vpa_pmu. The name of the file is the name of
the event (See ABI/testing/sysfs-bus-event_source-devices-events).
in this group describes a single performance monitoring event
supported by vpa_pmu. The name of the file is the name of
the event (See ABI/testing/sysfs-bus-event_source-devices-events).
29 changes: 27 additions & 2 deletions arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2848,7 +2848,7 @@ static void __init fixup_device_tree_chrp(void)
#endif

#if defined(CONFIG_PPC64) && defined(CONFIG_PPC_PMAC)
static void __init fixup_device_tree_pmac(void)
static void __init fixup_device_tree_pmac64(void)
{
phandle u3, i2c, mpic;
u32 u3_rev;
Expand Down Expand Up @@ -2888,7 +2888,31 @@ static void __init fixup_device_tree_pmac(void)
&parent, sizeof(parent));
}
#else
#define fixup_device_tree_pmac()
#define fixup_device_tree_pmac64()
#endif

#ifdef CONFIG_PPC_PMAC
static void __init fixup_device_tree_pmac(void)
{
__be32 val = 1;

Check warning on line 2897 in arch/powerpc/kernel/prom_init.c

View workflow job for this annotation

GitHub Actions / sparse (pmac32, fedora-40, ppc64)

incorrect type in initializer (different base types) expected restricted __be32 [usertype] val got int

Check warning on line 2897 in arch/powerpc/kernel/prom_init.c

View workflow job for this annotation

GitHub Actions / sparse (ppc64, fedora-40, ppc64)

incorrect type in initializer (different base types) expected restricted __be32 [usertype] val got int
char type[8];
phandle node;

// Some pmacs are missing #size-cells on escc nodes
for (node = 0; prom_next_node(&node); ) {
type[0] = '\0';
prom_getprop(node, "device_type", type, sizeof(type));
if (prom_strcmp(type, "escc"))
continue;

if (prom_getproplen(node, "#size-cells") != PROM_ERROR)
continue;

prom_setprop(node, NULL, "#size-cells", &val, sizeof(val));
}
}
#else
static inline void fixup_device_tree_pmac(void) { }
#endif

#ifdef CONFIG_PPC_EFIKA
Expand Down Expand Up @@ -3111,6 +3135,7 @@ static void __init fixup_device_tree(void)
{
fixup_device_tree_chrp();
fixup_device_tree_pmac();
fixup_device_tree_pmac64();
fixup_device_tree_efika();
fixup_device_tree_pasemi();
}
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/pseries/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <linux/memblock.h>
#include <linux/mem_encrypt.h>
#include <linux/cc_platform.h>
#include <linux/mem_encrypt.h>
#include <asm/machdep.h>
#include <asm/svm.h>
#include <asm/swiotlb.h>
Expand Down

0 comments on commit 74b1d34

Please sign in to comment.