Re: [PATCH v2 08/12] macintosh/via-pmu68k: Don't load driver on unsupported hardware

2018-06-10 Thread Geert Uytterhoeven
Hi Finn, On Sat, Jun 9, 2018 at 2:20 PM Finn Thain wrote: > > > > Is this enum used by any user space code? If so, perhaps rather > > > > leave the PMU_68K_V1 in there to avoid upsetting that? > > > > > > It also changes the value of PMU_68K_V2, which is an ABI break. > > > > Yes, that's what I w

Re: [PATCH v2 08/12] macintosh/via-pmu68k: Don't load driver on unsupported hardware

2018-06-10 Thread Michael Schmitz
Hi Geert, Am 10.06.2018 um 20:29 schrieb Geert Uytterhoeven: Hi Finn, On Sat, Jun 9, 2018 at 2:20 PM Finn Thain wrote: Is this enum used by any user space code? If so, perhaps rather leave the PMU_68K_V1 in there to avoid upsetting that? It also changes the value of PMU_68K_V2, which is an

[RFC PATCH] powerpc/64s: remove POWER9 DD1 support

2018-06-10 Thread Nicholas Piggin
POWER9 DD1 was never a product. It is no longer supported by upstream firmware, and it is not effectively supported in Linux due to lack of testing. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/book3s/64/hugetlb.h | 15 +- arch/powerpc/include/asm/book3s/64/pgtable.h | 5 +-

[PATCH 0/2] constraints for power9 l2/l3 bus events

2018-06-10 Thread Madhavan Srinivasan
This patch series adds constraints for power9 l2/l3 bus event. In previous generation processors, both bus events and direct events of performance monitoring unit can be individually programmabled and monitored in PMCs. But in Power9, L2/L3 bus events are always available as a "bank" of events. To

[PATCH 1/2] powerpc/perf: Add constraints for power9 l2/l3 bus events

2018-06-10 Thread Madhavan Srinivasan
In previous generation processors, both bus events and direct events of performance monitoring unit can be individually programmabled and monitored in PMCs. But in Power9, L2/L3 bus events are always available as a "bank" of 4 events. To obtain the counts for any of the l2/l3 bus events in a given

[PATCH 2/2] powerpc/perf: Remove l2 bus events from HW cache event array

2018-06-10 Thread Madhavan Srinivasan
Remove PM_L2_ST_MISS and PM_L2_ST from HW cache event array since these are bus events. And these needs to be programmed in groups. Hence remove them. Fixes: f1fb60bfde65 ('powerpc/perf: Export Power9 generic and cache events to sysfs') Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/p

Re: [RFC PATCH] powerpc/64s: remove POWER9 DD1 support

2018-06-10 Thread Michal Suchánek
On Sun, 10 Jun 2018 23:30:27 +1000 Nicholas Piggin wrote: > POWER9 DD1 was never a product. It is no longer supported by upstream > firmware, and it is not effectively supported in Linux due to lack of > testing. > > diff --git a/arch/powerpc/kvm/book3s_xive_template.c > b/arch/powerpc/kvm/book

Re: [PATCH v2 08/12] macintosh/via-pmu68k: Don't load driver on unsupported hardware

2018-06-10 Thread Benjamin Herrenschmidt
On Sun, 2018-06-10 at 21:12 +1200, Michael Schmitz wrote: > Hi Geert, Top posting, sorry ... We are painting that bike shed with way too many coats.. We can keep the existing definitions, stick a comment on them stating "obsolete" and use new number if/when needed. Ben. > Am 10.06.2018 um 20:

Re: [RFC PATCH] powerpc/64s: remove POWER9 DD1 support

2018-06-10 Thread Nicholas Piggin
On Sun, 10 Jun 2018 22:58:11 +0200 Michal Suchánek wrote: > On Sun, 10 Jun 2018 23:30:27 +1000 > Nicholas Piggin wrote: > > > POWER9 DD1 was never a product. It is no longer supported by upstream > > firmware, and it is not effectively supported in Linux due to lack of > > testing. > > > >

Re: [PATCH v2 08/12] macintosh/via-pmu68k: Don't load driver on unsupported hardware

2018-06-10 Thread Michael Schmitz
Hi Ben, I'm glad Finn is caring enough to keep this 20 year old bike shed in good repair, but this may be overdoing it a little indeed. My bad. A comment on the V1 PMU entry everyone should be OK with, I hope. Cheers, Michael On Mon, Jun 11, 2018 at 12:05 PM, Benjamin Herrenschmidt wrote:

Re: [RFC PATCH] powerpc/64s: remove POWER9 DD1 support

2018-06-10 Thread Benjamin Herrenschmidt
On Mon, 2018-06-11 at 11:37 +1000, Nicholas Piggin wrote: > > > > - > > > /* Perform the acknowledge OS to register cycle. */ > > > ack = be16_to_cpu(__x_readw(__x_tima + TM_SPC_ACK_OS_REG)); > > > > > > @@ -105,7 +93,7 @@ static void GLUE(X_PFX,source_eoi)(u32 hw_irq, > > > struct xive_irq_

Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-06-10 Thread Ram Pai
On Thu, Jun 07, 2018 at 07:28:35PM +0300, Michael S. Tsirkin wrote: > On Wed, Jun 06, 2018 at 10:23:06PM -0700, Christoph Hellwig wrote: > > On Thu, May 31, 2018 at 08:43:58PM +0300, Michael S. Tsirkin wrote: > > > Pls work on a long term solution. Short term needs can be served by > > > enabling t

Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-06-10 Thread Michael S. Tsirkin
On Sun, Jun 10, 2018 at 07:39:09PM -0700, Ram Pai wrote: > On Thu, Jun 07, 2018 at 07:28:35PM +0300, Michael S. Tsirkin wrote: > > On Wed, Jun 06, 2018 at 10:23:06PM -0700, Christoph Hellwig wrote: > > > On Thu, May 31, 2018 at 08:43:58PM +0300, Michael S. Tsirkin wrote: > > > > Pls work on a long

Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-06-10 Thread Benjamin Herrenschmidt
On Sun, 2018-06-10 at 19:39 -0700, Ram Pai wrote: > > However if the administrator > ignores/forgets/deliberatey-decides/is-constrained to NOT enable the > flag, virtio will not be able to pass control to the DMA ops associated > with the virtio devices. Which means, we have no opportunity to shar

Re: [RFC V2] virtio: Add platform specific DMA API translation for virito devices

2018-06-10 Thread Benjamin Herrenschmidt
On Mon, 2018-06-11 at 06:28 +0300, Michael S. Tsirkin wrote: > > > However if the administrator > > ignores/forgets/deliberatey-decides/is-constrained to NOT enable the > > flag, virtio will not be able to pass control to the DMA ops associated > > with the virtio devices. Which means, we have no