Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1585169

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

From Marc Zyngier <marc.zyngier@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow
Date 2017-02-21 10:50 +0100
Message-ID <tdff5-Kd-23@gated-at.bofh.it> (permalink)
References <tcESd-2tv-5@gated-at.bofh.it> <tcU0W-3Tt-11@gated-at.bofh.it> <tdcKe-7Em-19@gated-at.bofh.it>
Organization ARM Ltd

Show all headers | View raw


On 21/02/17 07:07, Anurup M wrote:
> Adding Marc.
> 
> On Monday 20 February 2017 04:39 PM, Mark Rutland wrote:
>> On Sun, Feb 19, 2017 at 01:51:03PM -0500, Anurup M wrote:
>>> 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...

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow Anurup M <anurupvasu@gmail.com> - 2017-02-19 20:00 +0100
  Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid  L3C counter overflow Mark Rutland <mark.rutland@arm.com> - 2017-02-20 12:10 +0100
    Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid  L3C counter overflow Anurup M <anurupvasu@gmail.com> - 2017-02-21 08:10 +0100
      Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid  L3C counter overflow Marc Zyngier <marc.zyngier@arm.com> - 2017-02-21 10:50 +0100
    Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid  L3C counter overflow Will Deacon <will.deacon@arm.com> - 2017-02-21 13:10 +0100
      Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid  L3C counter overflow Anurup M <anurupvasu@gmail.com> - 2017-02-24 04:20 +0100

csiph-web