|
59 | 59 | #define CXL_PMU_COUNTER_CFG_EVENT_GRP_ID_IDX_MSK GENMASK_ULL(63, 59)
|
60 | 60 |
|
61 | 61 | #define CXL_PMU_FILTER_CFG_REG(n, f) (0x400 + 4 * ((f) + (n) * 8))
|
62 |
| -#define CXL_PMU_FILTER_CFG_VALUE_MSK GENMASK(15, 0) |
| 62 | +#define CXL_PMU_FILTER_CFG_VALUE_MSK GENMASK(31, 0) |
63 | 63 |
|
64 | 64 | #define CXL_PMU_COUNTER_REG(n) (0xc00 + 8 * (n))
|
65 | 65 |
|
@@ -314,9 +314,9 @@ static bool cxl_pmu_config1_get_edge(struct perf_event *event)
|
314 | 314 | }
|
315 | 315 |
|
316 | 316 | /*
|
317 |
| - * CPMU specification allows for 8 filters, each with a 16 bit value... |
318 |
| - * So we need to find 8x16bits to store it in. |
319 |
| - * As the value used for disable is 0xffff, a separate enable switch |
| 317 | + * CPMU specification allows for 8 filters, each with a 32 bit value... |
| 318 | + * So we need to find 8x32bits to store it in. |
| 319 | + * As the value used for disable is 0xffff_ffff, a separate enable switch |
320 | 320 | * is needed.
|
321 | 321 | */
|
322 | 322 |
|
@@ -642,7 +642,7 @@ static void cxl_pmu_event_start(struct perf_event *event, int flags)
|
642 | 642 | if (cxl_pmu_config1_hdm_filter_en(event))
|
643 | 643 | cfg = cxl_pmu_config2_get_hdm_decoder(event);
|
644 | 644 | else
|
645 |
| - cfg = GENMASK(15, 0); /* No filtering if 0xFFFF_FFFF */ |
| 645 | + cfg = GENMASK(31, 0); /* No filtering if 0xFFFF_FFFF */ |
646 | 646 | writeq(cfg, base + CXL_PMU_FILTER_CFG_REG(hwc->idx, 0));
|
647 | 647 | }
|
648 | 648 |
|
|
0 commit comments