From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753051AbbKQKYl (ORCPT ); Tue, 17 Nov 2015 05:24:41 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:32695 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbbKQKYj (ORCPT ); Tue, 17 Nov 2015 05:24:39 -0500 Subject: Re: [PATCH 10/14] irqchip/mips-gic: Add a IPI hierarchy domain To: Thomas Gleixner References: <1446549181-31788-1-git-send-email-qais.yousef@imgtec.com> <1446549181-31788-11-git-send-email-qais.yousef@imgtec.com> <5644AC66.2070508@imgtec.com> CC: , , , , , From: Qais Yousef Message-ID: <564B0064.1060202@imgtec.com> Date: Tue, 17 Nov 2015 10:24:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.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 11/16/2015 05:24 PM, Thomas Gleixner wrote: > > int ipi_get_hw_irq(int irq) > { > struct irq_data *d = irq_get_irq_data(irq); > return d ? irqd_to_hwirq(d); > } > > Hmm? > We need cpu as an argument too. Taking your other comments into account and ignoring the random mapping space for now. I think I can expand that to do the right thing for when the IPI domain is per cpu or consecutive. Thanks, Qais From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.59.15.196]:2077 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27013910AbbKQKYnicB-9 (ORCPT ); Tue, 17 Nov 2015 11:24:43 +0100 Subject: Re: [PATCH 10/14] irqchip/mips-gic: Add a IPI hierarchy domain References: <1446549181-31788-1-git-send-email-qais.yousef@imgtec.com> <1446549181-31788-11-git-send-email-qais.yousef@imgtec.com> <5644AC66.2070508@imgtec.com> From: Qais Yousef Message-ID: <564B0064.1060202@imgtec.com> Date: Tue, 17 Nov 2015 10:24:36 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, jason@lakedaemon.net, marc.zyngier@arm.com, jiang.liu@linux.intel.com, ralf@linux-mips.org, linux-mips@linux-mips.org Message-ID: <20151117102436.6DC8dCZkdEizBq7viaxo-8dSHfI7qyJxScx39yXp8GA@z> On 11/16/2015 05:24 PM, Thomas Gleixner wrote: > > int ipi_get_hw_irq(int irq) > { > struct irq_data *d = irq_get_irq_data(irq); > return d ? irqd_to_hwirq(d); > } > > Hmm? > We need cpu as an argument too. Taking your other comments into account and ignoring the random mapping space for now. I think I can expand that to do the right thing for when the IPI domain is per cpu or consecutive. Thanks, Qais