From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458AbbIBJdK (ORCPT ); Wed, 2 Sep 2015 05:33:10 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:36551 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbbIBJdI (ORCPT ); Wed, 2 Sep 2015 05:33:08 -0400 Subject: Re: [PATCH 01/10] irqchip: irq-mips-gic: export gic_send_ipi References: <1440419959-14315-1-git-send-email-qais.yousef@imgtec.com> <1440419959-14315-2-git-send-email-qais.yousef@imgtec.com> <55DB15EB.3090109@imgtec.com> <55DB1CD2.5030300@arm.com> <55DB29B5.3010202@imgtec.com> <55DB48C9.7010508@imgtec.com> <55DB519D.2090203@arm.com> <55DDA1C4.4070301@imgtec.com> <55DDD3E3.7070009@imgtec.com> <55DDDE3C.8030609@imgtec.com> <55E03A2B.3070805@imgtec.com> CC: Thomas Gleixner , "alsa-devel@alsa-project.org" , Jason Cooper , "linux-kernel@vger.kernel.org" , "linux-mips@linux-mips.org" , Jiang Liu , Mark Brown , Lisa Parratt To: Marc Zyngier , Mark Rutland From: Qais Yousef Message-ID: <55E6C250.50100@imgtec.com> Date: Wed, 2 Sep 2015 10:33:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/28/2015 03:22 PM, Thomas Gleixner wrote: > On Fri, 28 Aug 2015, Qais Yousef wrote: >> Thanks a lot for the detailed explanation. I wasn't looking for a quick and >> dirty solution but my view of the problem is much simpler than yours so my >> idea of a solution would look quick and dirty. I have a better appreciation of >> the problem now and a way to approach it :-) >> >> From DT point of view are we OK with this form then >> >> coprocessor { >> interrupt-source = <&intc INT_SPEC COP_HWAFFINITY>; >> interrupt-sink = <&intc INT_SPEC CPU_HWAFFINITY>; >> } >> >> and if the root controller sends normal IPI as it sends normal device >> interrupts then interrupt-sink can be a standard interrupts property (like in >> my case) >> >> coprocessor { >> interrupt-source = <&intc INT_SPEC COP_HWAFFINITY>; >> interrupts = ; >> } >> >> Does this look right to you? Is there something else that needs to be covered >> still? > I'm not an DT wizard. I leave that to the DT experts. > Hi Marc Zyngier, Mark Rutland, Any comments about the DT binding for the IPIs? To recap, the proposal which is based on Marc Zyngier's is to use interrupt-source to represent an IPI from Linux CPU to a coprocessor and interrupt-sink to receive an IPI from coprocessor to Linux CPU. Hopefully the description above is self explanatory. Please let me know if you need more info. Thomas covered the routing, synthesising, and requesting parts in the core code. The remaining (high level) issue is how to describe the IPIs in DT. Thanks, Qais