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


Groups > linux.kernel > #1507732

Re: [PATCH] arm64: SMMU-v2: Workaround for Cavium ThunderX erratum 28168

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: SMMU-v2: Workaround for Cavium ThunderX erratum 28168
Date 2016-10-24 23:00 +0200
Message-ID <svUvE-4ir-39@gated-at.bofh.it> (permalink)
References <cfJU1-2xS-5@gated-at.bofh.it> <svNNw-8dR-29@gated-at.bofh.it> <svNNw-8dR-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 24 Oct 2016, Marc Zyngier wrote:
> On 22/10/16 05:54, Geetha sowjanya wrote:
> > diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
> > index be3c34e..6add8da 100644
> > --- a/kernel/irq/chip.c
> > +++ b/kernel/irq/chip.c
> > @@ -585,6 +585,10 @@ void handle_fasteoi_irq(struct irq_desc *desc)
> >  		goto out;
> >  	}
> >  
> > +#ifdef CONFIG_CAVIUM_ERRATUM_28168
> > +	if (chip->irq_ack)
> > +		chip->irq_ack(&desc->irq_data);
> > +#endif
> >  	kstat_incr_irqs_this_cpu(desc);
> >  	if (desc->istate & IRQS_ONESHOT)
> >  		mask_irq(desc);
> > 
> 
> Overall, this workaround is not acceptable as it is.

Aside of being not acceptable this thing is completely broken. 

If that erratum is enabled then a interrupt chip which implements both EOI
and ACK callbacks will issue irq_ack when using the fasteoi handler. While
this might work on that cavium trainwreck, it will just make other
platforms pretty unhappy.

Platform specific hacks have no place in the core code at all. We have
enough options to handle oddball hardware, you just have to use them.

Thanks,

	tglx

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


Thread

Re: [PATCH] arm64: SMMU-v2: Workaround for Cavium ThunderX erratum  28168 Marc Zyngier <marc.zyngier@arm.com> - 2016-10-24 15:50 +0200
  Re: [PATCH] arm64: SMMU-v2: Workaround for Cavium ThunderX erratum  28168 Thomas Gleixner <tglx@linutronix.de> - 2016-10-24 23:00 +0200

csiph-web