Re: [PATCH v2 0/5] Cavium ThunderX uncore PMU support

From: Mark Rutland
Date: Tue Apr 19 2016 - 12:04:15 EST


On Tue, Apr 19, 2016 at 12:35:10PM +0200, Jan Glauber wrote:
> Mark,
>
> are these patches still queued or should I repost them?

Apologies for the delay. I've just given these a review.

I note an awful lot of duplication over patches 2-5. The pmu::add
implementations are practically identical, and I suspect can be shared
without much difficulty. Please try to address that unnecessary
duplication.

My comments on patches 2 and 3 larely apply to 4 and 5, so I haven't
reviewed those individually.

Thanks,
Mark.


>
> --Jan
>
> On Mon, Apr 04, 2016 at 01:03:13PM +0200, Jan Glauber wrote:
> > Hi Mark,
> >
> > can you have a look at these patches?
> >
> > Thanks,
> > Jan
> >
> > 2016-03-09 17:21 GMT+01:00 Jan Glauber <jglauber@xxxxxxxxxx>:
> >
> > This patch series provides access to various counters on the ThunderX SOC.
> >
> > For details of the uncore implementation see patch #1.
> >
> > Patches #2-5 add the various ThunderX specific PMUs.
> >
> > As suggested I've put the files under drivers/perf/uncore. I would
> > prefer this location over drivers/bus because not all of the uncore
> > drivers are bus related.
> >
> > Changes to v1:
> > - Added NUMA support
> > - Fixed CPU hotplug by pmu migration
> > - Moved files to drivers/perf/uncore
> > - Removed OCX FRC and LNE drivers, these will fit better into a edac driver
> > - improved comments abount overflow interrupts
> > - removed max device limit
> > - trimmed include files
> >
> > Feedback welcome!
> > Jan
> >
> > -------------------------------------------------
> >
> > Jan Glauber (5):
> > Â arm64/perf: Basic uncore counter support for Cavium ThunderX
> > Â arm64/perf: Cavium ThunderX L2C TAD uncore support
> > Â arm64/perf: Cavium ThunderX L2C CBC uncore support
> > Â arm64/perf: Cavium ThunderX LMC uncore support
> > Â arm64/perf: Cavium ThunderX OCX TLK uncore support
> >
> > Âdrivers/perf/Makefile           Â| Â1 +
> > Âdrivers/perf/uncore/Makefile        | Â5 +
> > Âdrivers/perf/uncore/uncore_cavium.c    Â| 314 +++++++++++++++
> > Âdrivers/perf/uncore/uncore_cavium.h    Â| 95 +++++
> > Âdrivers/perf/uncore/uncore_cavium_l2c_cbc.c | 237 +++++++++++
> > Âdrivers/perf/uncore/uncore_cavium_l2c_tad.c | 600
> > ++++++++++++++++++++++++++++
> > Âdrivers/perf/uncore/uncore_cavium_lmc.c  Â| 196 +++++++++
> > Âdrivers/perf/uncore/uncore_cavium_ocx_tlk.c | 380 ++++++++++++++++++
> > Â8 files changed, 1828 insertions(+)
> > Âcreate mode 100644 drivers/perf/uncore/Makefile
> > Âcreate mode 100644 drivers/perf/uncore/uncore_cavium.c
> > Âcreate mode 100644 drivers/perf/uncore/uncore_cavium.h
> > Âcreate mode 100644 drivers/perf/uncore/uncore_cavium_l2c_cbc.c
> > Âcreate mode 100644 drivers/perf/uncore/uncore_cavium_l2c_tad.c
> > Âcreate mode 100644 drivers/perf/uncore/uncore_cavium_lmc.c
> > Âcreate mode 100644 drivers/perf/uncore/uncore_cavium_ocx_tlk.c
> >
> > --
> > 1.9.1
> >
> >
> >
>