Re: [PATCH v6 08/23] irqchip/gic-v4.1: Plumb skeletal VSGI irqchip

2020-03-24 Thread Marc Zyngier
On Tue, 24 Mar 2020 10:27:18 +0800 Zenghui Yu wrote: > On 2020/3/21 2:23, Marc Zyngier wrote: > > +static int its_sgi_set_affinity(struct irq_data *d, > > + const struct cpumask *mask_val, > > + bool force) > > +{ > > + /* > > +* There is

Re: [PATCH v6 08/23] irqchip/gic-v4.1: Plumb skeletal VSGI irqchip

2020-03-23 Thread Zenghui Yu
On 2020/3/21 2:23, Marc Zyngier wrote: +static int its_sgi_set_affinity(struct irq_data *d, + const struct cpumask *mask_val, + bool force) +{ + /* +* There is no notion of affinity for virtual SGIs, at least +*

[PATCH v6 08/23] irqchip/gic-v4.1: Plumb skeletal VSGI irqchip

2020-03-20 Thread Marc Zyngier
Since GICv4.1 has the capability to inject 16 SGIs into each VPE, and that I'm keen not to invent too many specific interfaces to manipulate these interrupts, let's pretend that each of these SGIs is an actual Linux interrupt. For that matter, let's introduce a minimal irqchip and irqdomain setup