[PATCH v2 3/3] mmc: cavium: Fix probing race with regulator

2017-05-22 Thread Jan Glauber
resolves this bug. Signed-off-by: Jan Glauber --- drivers/mmc/host/cavium-octeon.c | 11 ++- drivers/mmc/host/cavium-thunderx.c | 6 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/cavium-octeon.c b/drivers/mmc/host/cavium-octeon.c index cbb5663

[PATCH v2 2/3] of/platform: Make of_platform_device_destroy globally visible

2017-05-22 Thread Jan Glauber
of_platform_device_destroy globally visible. Signed-off-by: Jan Glauber --- drivers/of/platform.c | 3 ++- include/linux/of_platform.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 71fecc2..703a421 100644 --- a/drivers

[PATCH v2 1/3] mmc: cavium: Prevent crash with incomplete DT

2017-05-22 Thread Jan Glauber
In case the DT specifies neither a regulator nor a gpio for the shared power the driver will crash accessing the regulator. Prevent the crash by checking the regulator before use. Use mmc_regulator_get_supply() instead of open coding the same logic. Signed-off-by: Jan Glauber --- drivers/mmc

Re: [PATCH 0/6] Switch arm64 over to qrwlock

2017-10-10 Thread Jan Glauber
er. Also, with the old implementation above test hung the machine which does not happen with the queued variant. If you want you can add: Tested-by: Jan Glauber --Jan > Cheers, > > Will > > --->8 > > Will Deacon (6): > kernel/locking: Use struct qrwlock instead of struc

[PATCH v10 3/7] edac,soc: thunderx: Add wrapper for EDAC LMC PCI device

2017-09-25 Thread Jan Glauber
. The same mechanism will be used later to call the PMU driver. The ThunderX EDAC driver is limited to only build as module with this patch. The reason is that with multiple users of the multi-plexer all users must be either builtin or modules. Signed-off-by: Jan Glauber --- drivers/edac

[PATCH v10 4/7] edac,soc: thunderx: Add wrapper for EDAC OCX PCI device

2017-09-25 Thread Jan Glauber
driver. Signed-off-by: Jan Glauber --- drivers/edac/Kconfig| 1 + drivers/edac/thunderx_edac.c| 42 +++--- drivers/soc/cavium/Kconfig | 4 drivers/soc/cavium/Makefile | 1 + drivers/soc/cavium/cavium_ocx.c | 45

[PATCH v10 7/7] perf: cavium: Add Documentation

2017-09-25 Thread Jan Glauber
Document Cavium SoC PMUs. Signed-off-by: Jan Glauber --- Documentation/perf/cavium-pmu.txt | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/perf/cavium-pmu.txt diff --git a/Documentation/perf/cavium-pmu.txt b/Documentation/perf

[PATCH v10 5/7] perf: cavium: Support memory controller PMU counters

2017-09-25 Thread Jan Glauber
y of this archive + * for more details. + * + * Copyright Cavium, Inc. 2017 + * Author(s): Jan Glauber + * + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +enum cvm_pmu_type { + CVM_PMU_LMC, +}; + +/* maximum number of parall

[PATCH v10 6/7] perf: cavium: Support transmit-link PMU counters

2017-09-25 Thread Jan Glauber
Add support for the transmit-link (OCX TLK) PMU counters found on Caviums SOCs with a processor interconnect. Properties of the OCX TLK counters: - per-unit control - fixed purpose - writable - one PCI device with multiple TLK units Signed-off-by: Jan Glauber --- drivers/perf/Kconfig

[PATCH v10 1/7] edac: thunderx: Remove suspend/resume support

2017-09-25 Thread Jan Glauber
The memory controller on ThunderX/OcteonTX systems does not support power management. Therefore remove the suspend/resume callbacks. Signed-off-by: Jan Glauber --- drivers/edac/thunderx_edac.c | 25 - 1 file changed, 25 deletions(-) diff --git a/drivers/edac

[PATCH v10 2/7] perf: export perf_event_update_userpage()

2017-09-25 Thread Jan Glauber
Export perf_event_update_userpage(). This change is needed to allow building a PMU driver as a kernel module. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Signed-off-by: Jan Glauber --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events

[PATCH v10 0/7] Cavium ARM64 uncore PMU support

2017-09-25 Thread Jan Glauber
alphabetic ordering in some places - Store pmu name in struct pmu - Use devm_* - Remove mapping of LMC events, expose hardware event numbers directly - Simplify event removal Changes to v8: - Wrapper for PCI devices Jan Glauber (7): edac: thunderx: Remove suspend/resume support pe

Re: [v4,0/3] Workaround for bus/slot reset on Cavium cn8xxx root ports

2017-09-26 Thread Jan Glauber
m > > > > On Fri, Sep 08, 2017 at 10:10:30AM +0200, Jan Glauber wrote: > > > Using vfio-pci on a combination of cn8xxx and some PCI devices results in > > > a kernel panic. This is triggered by issuing a bus or a slot reset > > > on the PCI device. > > &g

Re: [PATCH v10 3/7] edac,soc: thunderx: Add wrapper for EDAC LMC PCI device

2017-10-02 Thread Jan Glauber
On Wed, Sep 27, 2017 at 06:19:01PM +0200, Borislav Petkov wrote: > On Mon, Sep 25, 2017 at 02:34:58PM +0200, Jan Glauber wrote: > > Cavium SOCs contain a memory controller that is presented as a > > PCI device. This PCI device will be used by an EDAC driver and > > by a PM

Re: [v4,0/3] Workaround for bus/slot reset on Cavium cn8xxx root ports

2017-09-21 Thread Jan Glauber
m > > > > On Fri, Sep 08, 2017 at 10:10:30AM +0200, Jan Glauber wrote: > > > Using vfio-pci on a combination of cn8xxx and some PCI devices results in > > > a kernel panic. This is triggered by issuing a bus or a slot reset > > > on the PCI device. > > &g

Re: [PATCH v7 1/3] perf: cavium: Support memory controller PMU counters

2017-07-24 Thread Jan Glauber
Hi Jonathan, On Wed, Jul 19, 2017 at 09:31:01PM +0800, Jonathan Cameron wrote: > On Wed, 19 Jul 2017 14:08:45 +0200 > Jan Glauber wrote: > > > Add support for the PMU counters on Cavium SOC memory controllers. > > > > This patch also adds generic functions to allow

[PATCH v8 0/3] Cavium ARM64 uncore PMU support

2017-07-25 Thread Jan Glauber
wice - Use kasprintf and fix pmu name allocation - Remove unneeded check for embedded pmu - Loop around local64_cmpxchg - Simplify cvm_pmu_lmc_event_valid - Fix list_add error case Jan Glauber (3): perf: cavium: Support memory controller PMU counters perf: cavium: Support transmit-link PMU count

[PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-25 Thread Jan Glauber
ms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright Cavium, Inc. 2017 + * Author(s): Jan Glauber + * + */ +#include +#include +#include +#include +#include +#include +

[PATCH v8 3/3] perf: cavium: Add Documentation

2017-07-25 Thread Jan Glauber
Document Cavium SoC PMUs. Signed-off-by: Jan Glauber --- Documentation/perf/cavium-pmu.txt | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/perf/cavium-pmu.txt diff --git a/Documentation/perf/cavium-pmu.txt b/Documentation/perf

[PATCH v8 2/3] perf: cavium: Support transmit-link PMU counters

2017-07-25 Thread Jan Glauber
Add support for the transmit-link (OCX TLK) PMU counters found on Caviums SOCs with a processor interconnect. Properties of the OCX TLK counters: - per-unit control - fixed purpose - writable - one PCI device with multiple TLK units Signed-off-by: Jan Glauber --- drivers/perf/cavium_pmu.c

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-08-15 Thread Jan Glauber
On Tue, Aug 08, 2017 at 02:25:10PM +0100, Will Deacon wrote: > On Fri, Jul 28, 2017 at 04:12:33PM -0700, Greg KH wrote: > > On Thu, Jul 27, 2017 at 03:15:15PM +0200, Borislav Petkov wrote: > > > On Thu, Jul 27, 2017 at 11:08:56AM +0200, Jan Glauber wrote: > > > > O

Re: [PATCH v5 2/3] perf: cavium: Support memory controller PMU counters

2017-06-15 Thread Jan Glauber
On Fri, Jun 02, 2017 at 05:33:38PM +0100, Mark Rutland wrote: > Hi, > > On Wed, May 17, 2017 at 10:31:21AM +0200, Jan Glauber wrote: > > Add support for the PMU counters on Cavium SOC memory controllers. > > > > This patch also adds generic functions to allow supportin

Re: [PATCH v5 3/3] perf: cavium: Support transmit-link PMU counters

2017-06-15 Thread Jan Glauber
On Fri, Jun 02, 2017 at 05:39:38PM +0100, Mark Rutland wrote: > On Wed, May 17, 2017 at 10:31:22AM +0200, Jan Glauber wrote: > > Add support for the transmit-link (TLK) PMU counters found > > on Caviums SOCs with an interconnect. > > > > Signed-off-by: Jan Glauber

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Tue, Jul 25, 2017 at 04:39:18PM +0100, Suzuki K Poulose wrote: > On 25/07/17 16:04, Jan Glauber wrote: > >Add support for the PMU counters on Cavium SOC memory controllers. > > > >This patch also adds generic functions to allow supporting more > >devices with PMU cou

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 01:47:35PM +0100, Suzuki K Poulose wrote: > On 26/07/17 12:19, Jan Glauber wrote: > >On Tue, Jul 25, 2017 at 04:39:18PM +0100, Suzuki K Poulose wrote: > >>On 25/07/17 16:04, Jan Glauber wrote: > >>>Add support for the PMU counters on

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 04:55:22PM +0200, Borislav Petkov wrote: > On Wed, Jul 26, 2017 at 03:35:25PM +0100, Suzuki K Poulose wrote: > > So the Cavium EDACs, which appear as PCI devices have a PMU attached to it. > > Cavium EDACs? > > So let me set something straight first: An EDAC driver simply

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 05:35:02PM +0200, Borislav Petkov wrote: > On Wed, Jul 26, 2017 at 05:13:14PM +0200, Jan Glauber wrote: > > I'm also looking for CPU implementor (MIDR), I could check for the model > > too but I still need to detect devices based on PCI IDs as the mo

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 04:17:11PM +0100, Suzuki K Poulose wrote: > How about adding a soc specific (wrapper) driver for the memory controller, > which > could use the PCI id and trigger EDAC and PMU drivers (based on what is > selected by configs) ? Sounds good to me. Is there a driver that alr

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 05:25:15PM +0100, Jonathan Cameron wrote: > On Wed, 26 Jul 2017 17:46:23 +0200 > Jan Glauber wrote: > > > On Wed, Jul 26, 2017 at 04:17:11PM +0100, Suzuki K Poulose wrote: > > > How about adding a soc specific (wrapper) driver for the memory

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-27 Thread Jan Glauber
On Thu, Jul 27, 2017 at 07:11:57AM +0200, Borislav Petkov wrote: > On Wed, Jul 26, 2017 at 02:02:42PM -0700, David Daney wrote: > > Also, if a given configuration disables CONFIG_EDAC there is some hackery > > needed to get the perf portion of the driver included. > > Yes, and we don't do performa

Re: [Bug fix] octeon-i2c driver updates

2017-12-01 Thread Jan Glauber
ents for this patch? > > BR, > Sean Zhang > > -Original Message- > From: Zhang, Sean C. (NSB - CN/Hangzhou) > Sent: Monday, November 27, 2017 4:38 PM > To: 'Jan Glauber' > Cc: david.da...@cavium.com; w...@the-dreams.de; linux-...@vger.kernel.org; > linux

Re: [Bug fix] octeon-i2c driver updates

2017-11-24 Thread Jan Glauber
On Thu, Nov 23, 2017 at 11:42:36AM +, Zhang, Sean C. (NSB - CN/Hangzhou) wrote: > Dear Maintainer, > > For octeon TWSI controller, I found below two cases, maybe can be improved. Hi Sean, form the description below this looks like you're fixing a bug. Can you elaborate on when the I2C bus d

[PATCH v3 0/5] Cavium ThunderX uncore PMU support

2016-10-20 Thread Jan Glauber
counter set - Moved cpumask into thunder_uncore struct - Switched to new cpuhp stuff. I still don't care about the CPU location used to access an uncore device, it may cross the CCPI and we'll pay a performance penalty. We might optimize this later, for now I feel it is not worth the time op

[PATCH v3 3/5] arm64: perf: Cavium ThunderX L2C CBC uncore support

2016-10-20 Thread Jan Glauber
Support counters of the L2 cache crossbar connect. Signed-off-by: Jan Glauber --- drivers/perf/uncore/Makefile| 3 +- drivers/perf/uncore/uncore_cavium.c | 1 + drivers/perf/uncore/uncore_cavium.h | 1 + drivers/perf/uncore/uncore_cavium_l2c_cbc.c | 148

[PATCH v3 2/5] arm64: perf: Cavium ThunderX L2C TAD uncore support

2016-10-20 Thread Jan Glauber
Support counters of the L2 Cache tag and data units. Signed-off-by: Jan Glauber --- drivers/perf/uncore/Makefile| 3 +- drivers/perf/uncore/uncore_cavium.c | 1 + drivers/perf/uncore/uncore_cavium.h | 1 + drivers/perf/uncore/uncore_cavium_l2c_tad.c | 379

[PATCH v3 4/5] arm64: perf: Cavium ThunderX LMC uncore support

2016-10-20 Thread Jan Glauber
Support counters on the DRAM controllers. Signed-off-by: Jan Glauber --- drivers/perf/uncore/Makefile| 3 +- drivers/perf/uncore/uncore_cavium.c | 1 + drivers/perf/uncore/uncore_cavium.h | 1 + drivers/perf/uncore/uncore_cavium_lmc.c | 118

[PATCH v3 5/5] arm64: perf: Cavium ThunderX OCX TLK uncore support

2016-10-20 Thread Jan Glauber
Support for the OCX transmit link counters. Signed-off-by: Jan Glauber --- drivers/perf/uncore/Makefile| 3 +- drivers/perf/uncore/uncore_cavium.c | 1 + drivers/perf/uncore/uncore_cavium.h | 1 + drivers/perf/uncore/uncore_cavium_ocx_tlk.c | 344

[PATCH v3 1/5] arm64: perf: Basic uncore counter support for Cavium ThunderX SOC

2016-10-20 Thread Jan Glauber
re not CPU related. A random CPU is picked regardless of the NUMA node. There is a small performance penalty for accessing counters on a remote note but reading a performance counter is a slow operation anyway. Signed-off-by: Jan Glauber --- drivers/perf/Kconfig| 13 ++ dr

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

2016-10-20 Thread Jan Glauber
On Thu, Oct 20, 2016 at 12:37:07PM +0200, Peter Zijlstra wrote: > On Thu, Oct 20, 2016 at 11:30:36AM +0200, Jan Glauber wrote: > > Note: > > I'm using perf_sw_context in difference to perf_invalid_context > > (see WARN_ON in perf_pmu_register). Reason is that with perf_in

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

2016-10-20 Thread Jan Glauber
On Thu, Oct 20, 2016 at 12:37:07PM +0200, Peter Zijlstra wrote: > On Thu, Oct 20, 2016 at 11:30:36AM +0200, Jan Glauber wrote: > > Note: > > I'm using perf_sw_context in difference to perf_invalid_context > > (see WARN_ON in perf_pmu_register). Reason is that with perf_in

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

2016-09-16 Thread Jan Glauber
On Fri, Sep 16, 2016 at 08:55:24AM +0100, Will Deacon wrote: > Hi Jan, > > On Mon, Jul 04, 2016 at 11:11:32AM +0100, Will Deacon wrote: > > On Tue, Jun 28, 2016 at 04:04:59PM +0200, Jan Glauber wrote: > > > On Tue, Jun 28, 2016 at 11:24:20AM +0100, Will Deacon wrote: >

<    1   2   3   4   5   6