Commit f797f05
perf/x86/intel/uncore: Fix for iio mapping on Skylake Server
Introduced early attributes /sys/devices/uncore_iio_<pmu_idx>/die* are
initialized by skx_iio_set_mapping(), however, for example, for multiple
segment platforms skx_iio_get_topology() returns -EPERM before a list of
attributes in skx_iio_mapping_group will have been initialized.
As a result the list is being NULL. Thus the warning
"sysfs: (bin_)attrs not set by subsystem for group: uncore_iio_*/" appears
and uncore_iio pmus are not available in sysfs. Clear IIO attr_update
to properly handle the cases when topology information cannot be
retrieved.
Fixes: bb42b3d ("perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping")
Reported-by: Kyle Meyer <kyle.meyer@hpe.com>
Suggested-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Alexei Budankov <alexey.budankov@linux.intel.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lkml.kernel.org/r/20200928102133.61041-1-alexander.antonov@linux.intel.com1 parent c3bb8a9 commit f797f05
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3754 | 3754 | | |
3755 | 3755 | | |
3756 | 3756 | | |
3757 | | - | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
3758 | 3760 | | |
3759 | 3761 | | |
3760 | 3762 | | |
| |||
3786 | 3788 | | |
3787 | 3789 | | |
3788 | 3790 | | |
| 3791 | + | |
3789 | 3792 | | |
3790 | | - | |
| 3793 | + | |
3791 | 3794 | | |
3792 | 3795 | | |
3793 | 3796 | | |
| |||
0 commit comments