Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1236328
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/6] Implement generic IPI support mechanism |
| Date | 2015-09-30 16:10 +0200 |
| Message-ID | <qeqf0-7dN-9@gated-at.bofh.it> (permalink) |
| References | <qbTwR-78H-1@gated-at.bofh.it> <qbVyG-1BU-31@gated-at.bofh.it> <qcael-6bA-15@gated-at.bofh.it> <qea0y-Ak-25@gated-at.bofh.it> <qepLY-6qf-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 30 Sep 2015, Qais Yousef wrote:
> On 09/29/2015 09:48 PM, Thomas Gleixner wrote:
> >
> > Now how these hwirqs are allocated is a domain/architecture
> > specific issue.
> >
> > x86 will just find a vector which is available on all target
> > cpus and mark it as used. That's a single hw irq number.
> >
> > mips and others, which implement IPIs as regular hw interrupt
> > numbers, will allocate a these (consecutive) hw interrupt
> > numbers either from a reserved region or just from the
> > regular space. That's a bunch of hw irq numbers and we need
> > to come up with a proper storage format in the irqdata for
> > that. That might be
> >
> > struct ipi_mapping {
> > unsigned int nr_hwirqs;
> > unsigned int cpumap[NR_CPUS];
> > };
>
> Can we use NR_CPUS here? If we run in UP configuration for instance, this will
> be one. The coprocessor could be outside the NR_CPUS range in general, no?
>
> How about
>
> struct ipi_mapping {
> unsigned int nr_hwirqs;
> unsigned int nr_cpus;
> unsigned int *cpumap;
> }
>
> where cpumap is dynamically allocated by the controller which has better
> knowledge about the supported cpu range it can talk to?
Sure. As I said: 'That might be' ....
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 16:50 +0200
[PATCH 1/6] irqdomain: add new IRQ_DOMAIN_FLAGS_IPI Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 16:50 +0200
[PATCH 2/6] irqdomain: add a new send_ipi() to irq_domain_ops Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 16:50 +0200
Re: [PATCH 2/6] irqdomain: add a new send_ipi() to irq_domain_ops Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 18:50 +0200
Re: [PATCH 2/6] irqdomain: add a new send_ipi() to irq_domain_ops Qais Yousef <qais.yousef@imgtec.com> - 2015-09-24 10:20 +0200
[PATCH 5/6] irqchip: mips-gic: add a IPI hierarchy domain Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
[PATCH 6/6] irqchip: mips-gic: use the new generic IPI API Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
[PATCH 4/6] irq: add a new generic IPI handling code to irq core Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 19:00 +0200
Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core Qais Yousef <qais.yousef@imgtec.com> - 2015-09-24 10:30 +0200
Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core Thomas Gleixner <tglx@linutronix.de> - 2015-09-29 18:20 +0200
[PATCH 3/6] irqdomain: add struct irq_hwcfg and helper functions Qais Yousef <qais.yousef@imgtec.com> - 2015-09-23 17:00 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 19:00 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-24 10:40 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Thomas Gleixner <tglx@linutronix.de> - 2015-09-29 22:50 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-30 15:40 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Thomas Gleixner <tglx@linutronix.de> - 2015-09-30 16:10 +0200
Re: [PATCH 0/6] Implement generic IPI support mechanism Qais Yousef <qais.yousef@imgtec.com> - 2015-09-30 16:10 +0200
csiph-web