Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753907AbbL3SSG (ORCPT ); Wed, 30 Dec 2015 13:18:06 -0500 Received: from www.linutronix.de ([62.245.132.108]:45110 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbbL3SSC (ORCPT ); Wed, 30 Dec 2015 13:18:02 -0500 Date: Wed, 30 Dec 2015 19:17:05 +0100 (CET) From: Thomas Gleixner To: Felipe Balbi cc: Jason Cooper , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Suman Anna , Roger Quadros Subject: Re: Routable IRQs In-Reply-To: <878u4dj9r7.fsf@ti.com> Message-ID: References: <878u4dj9r7.fsf@ti.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3534 Lines: 73 Felipe, On Tue, 29 Dec 2015, Felipe Balbi wrote: > Anyway, the interesting part is that PRUSS has 64 events (on current > incarnations at least) and PRUSS has 10 physical IRQ lines to the ARM > land. Each of these 64 events can be routed to any of these 10 IRQ > lines. This might not be very useful on UP (AM335x & AM437x) other than > the fact that soft-IP drivers running on Linux would need to guarantee > they are the ones who should handle the IRQ. However, on SMP (AM57xx) we > could have real tangible benefits by means of IRQ affinity, etc. > > So, the question is, what is there in IRQ subsystem today for routable > IRQ support ? > > If a Diagram helps here's a simple one. Note that I'm not showing > details on the PRUSS side, but that side can also map events pretty much > any way it wants. > > .--------------------. .--------------------. > | HOST CPU | | PRUSS | > |--------------------| |--------------------| > | | | | > | irq0 |<-.----------|evt0 | > | | | | | > | irq1 | | .-------|evt1 | > | | | | | | > | irq2 | '----------|evt2 | > | | | | | > | irq3 | | | | > | | | | | > | irq4 | | | . | > | | | | | > | irq5 | | | . | > | | | | | > | irq6 | | | . | > | | | | | > | irq7 |<----' | | > | | | | > | irq8 | | | > | | | | > | irq9 |<------------|evtN | > '--------------------' '--------------------' > > Given this setup, what I want to do, is let soft-IP drivers running on > linux rely on standard *request_*irq() calls and DTS descrition. But I'm > still considering how/if we should describe the routing itself or just > go round-robin (i.o.w. irq0 -> evt0, irq1 -> evt1, ..., irq9 -> evt9, > irq0 -> evt10, ...). > > Thoughts ? I have a few questions: - Is there a "mapping" block between PRUSS and the host interrupt controller or is this "mapping" block part of PRUSS? - We all know how well shared interrupts work. Is there a point of supporting 64 interrupts when you only have 10 irq lines available? - I assume that the PRUSS interrupt mapping is more or less a question of the firmware implementation. So you either have a fixed association in the firmware which is reflected in the DT description of the IP block or you need an interface to tell the PRUSS firmware which event it should map to which irq line. Is there actually a value in doing the latter? 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/