Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1443808
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Rich Felker <dalias@libc.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 04/12] of: add J-Core timer bindings |
| Date | Fri, 15 Jul 2016 00:20:02 +0200 |
| Message-ID | <rUX98-72G-17@gated-at.bofh.it> (permalink) |
| References | <rCzRD-5z7-3@gated-at.bofh.it> <rCzRD-5z7-13@gated-at.bofh.it> <rFeQF-Fc-11@gated-at.bofh.it> <rFiAW-3aE-39@gated-at.bofh.it> <rFmXU-6a2-3@gated-at.bofh.it> <rFpM5-7QO-5@gated-at.bofh.it> <rFJB8-3vM-19@gated-at.bofh.it> <rNkcy-7lw-25@gated-at.bofh.it> |
| X-Original-To | Rob Herring <robh@kernel.org> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 39 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, SH-Linux <linux-sh@vger.kernel.org>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kumar Gala <galak@codeaurora.org>, Mark Rutland <mark.rutland@arm.com>, Pawel Moll <pawel.moll@arm.com> |
| X-Original-Date | Thu, 14 Jul 2016 18:18:08 -0400 |
| X-Original-Message-ID | <20160714221808.GP15995@brightrain.aerifal.cx> |
| X-Original-References | <cover.1464148904.git.dalias@libc.org> <5341dfbb085d5647ebb6fe4390ca329b63e0e03d.1464148904.git.dalias@libc.org> <20160601135852.GA17217@rob-hp-laptop> <20160601175307.GC10893@brightrain.aerifal.cx> <CAL_JsqJYyvdc06v2+R=Wnmkk-cO7ZFq=7uGOhPxXdL0UfEu-iA@mail.gmail.com> <20160602013407.GA12184@brightrain.aerifal.cx> <20160602224425.GA15163@rob-hp-laptop> <20160623211608.GA10893@brightrain.aerifal.cx> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1443808 |
Show key headers only | View raw
On Thu, Jun 23, 2016 at 05:16:08PM -0400, Rich Felker wrote: > On Thu, Jun 02, 2016 at 05:44:25PM -0500, Rob Herring wrote: > > > > > In theory it would even be possible to just require a DT node per > > > > > cpulocal timer, but I didn't see a good way to make the bindings > > > > > represent the relationship to cpus or to make the driver handle irqs > > > > > correctly for such a setup, so I'd need a viable proposal for how that > > > > > could be done to even consider such an approach. > > > > > > > > Yeah, there's not really a standard way to map per cpu blocks to cpus. > > > > We could, but doesn't really seem necessary here. > > > > > > > > For the irqs, percpu irqs doesn't help you? > > > > > > What I mean is that, if there were a separate device node and driver > > > instance per cpu, they'd all want to register the same irq just to > > > handle it on their own cpu, so we'd have a lot of spurious handlers > > > running. The right way to model this, I think, would be as a virtual > > > irqchip that's the irq parent of all the timer nodes, and that > > > multiplexes the real irq to one virq per cpu (where the current cpu id > > > becomes the irq number in its irq domain). But that's a lot of virtual > > > infrastructure just for the sake of modelling each percpu timer as its > > > own DT node and I don't think it makes sense to do it that way. > > > > I would have thought your interrupt controller did all this. On the ARM > > GIC for example, you have the same irq number but there is a per cpu > > interface and really N (== # cpus) physical irq lines. > > I've looked at the ARM GIC code and bindings and I don't see where the > per-cpu interrupt interfaces are modelled with multiple interrupt > controller nodes or irq domains. It looks to me like it just uses a > single interrupt controller/domain with percpu irq. Does that match > your understanding? Ping. I want to submit this again for the upcoming merge window and need to know whether you still want me to pursue different approaches. Rich
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v3 04/12] of: add J-Core timer bindings Rich Felker <dalias@libc.org> - 2016-07-15 00:20 +0200
csiph-web