Thread (6 messages) flat view 6 messages, 4 authors, 2017-02-24

[PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

From: Marc Zyngier <hidden>
Date: 2017-02-21 09:44:04
Also in: lkml

On 21/02/17 07:07, Anurup M wrote:
Adding Marc.

On Monday 20 February 2017 04:39 PM, Mark Rutland wrote:
quoted
On Sun, Feb 19, 2017 at 01:51:03PM -0500, Anurup M wrote:
quoted
The L3 cache PMU use N-N SPI interrupt which has no support
in kernel mainline.
Could you elaborate on what you mean by this?

I don't understand what is meant here. How exactly are the interrupts
wired up in HW, and what exactly is not supported by Linux?
In HW the L3C overflow IRQ is wired as SPI which use N-N model.
But according to ARM GIC V2 specification, the peripheral(hardware) 
interrupts should use 1-N model.
N-N model is used by SGIs. In GIC V3 spec I could not find any 
description of N-N model.
So I think the N-N model for SPI will not be supported.

Hi Marc,
     Does ARM GIC support N-N module for SPI? Please share your comments.
There is no support for this kind of broadcast IRQs in any published
version of the GIC architecture. The semantics of such interrupts are
just crazy, and I'm really glad we don't support them.

What we could support is 1-of-N, but that's
(1) inefficient,
(2) impossible to virtualize correctly,
(3) only possible with GICv2.

So what you're getting is interrupts targeted at a single CPU, and
that's it.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help