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


Groups > linux.kernel > #1610579 > unrolled thread

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

Started byMark Rutland <mark.rutland@arm.com>
First post2017-03-28 13:20 +0200
Last post2017-03-28 13:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid  L3C counter overflow Mark Rutland <mark.rutland@arm.com> - 2017-03-28 13:20 +0200

#1610579 — Re: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

FromMark Rutland <mark.rutland@arm.com>
Date2017-03-28 13:20 +0200
SubjectRe: [PATCH v6 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow
Message-ID<tpXkl-6JL-3@gated-at.bofh.it>
On Mon, Mar 27, 2017 at 12:03:24PM +0530, Anurup M wrote:
> On Friday 24 March 2017 05:13 PM, Mark Rutland wrote:
> >>>How do we ensure that we don't take the interrupt in the middle of a
> >>>> >sequence of accesses to the HW?
> >>>
> >>>The L3 cache and MN PMU does not use the overflow IRQ and it does
> >>>not occur here
> >>>as the interrupt Mask register is by default masked in hardware.
> >I was referring to the timer interrupt which backs the hrtimer.
> >
> >i.e. how do we guarantee that hisi_hrtimer_callback() is not called
> >while we are in the middle of a RMW sequence? Are interrupts disabled
> >for all of those seqeunces?
> 
> The HW access via djtag read and write are protected by spin_lock_irqsave.

Thanks for the explanation.

I mistakenly thought that there were sequences that would need to make
several hisi_djtag_{read,writel}() calls that might conflict with the
overflow handler, but that is not the case, so the spin_lock_irqsave()
does appear to be sufficient.

Thanks,
Mark.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web