From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753552AbbK3Kxw (ORCPT ); Mon, 30 Nov 2015 05:53:52 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:39735 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbbK3Kxv (ORCPT ); Mon, 30 Nov 2015 05:53:51 -0500 Subject: Re: [PATCH v2 09/19] genirq: Add a new function to get IPI reverse mapping To: Thomas Gleixner References: <1448453217-3874-1-git-send-email-qais.yousef@imgtec.com> <1448453217-3874-10-git-send-email-qais.yousef@imgtec.com> <5658429D.3000105@imgtec.com> CC: , , , , , From: Qais Yousef Message-ID: <565C2ABD.5030409@imgtec.com> Date: Mon, 30 Nov 2015 10:53:49 +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/30/2015 10:40 AM, Thomas Gleixner wrote: > On Fri, 27 Nov 2015, Qais Yousef wrote: >> While trying to get my remoteproc driver work with this I uncovered a problem >> with this approach. >> >> mips-gic doesn't store the actual hwirq in the irq_data. It uses >> GIC_SHARED_TO_HWIRQ() and GIC_HWIRQ_TO_SHARED() to add and remove an offset. > Why can't MIPS store the real hwirq number in irq_data? I'm wary of ending up in inconsistency hell where some functions need to deal with raw hwirq and others with translated ones. I will give this a go first and see if it gets really ugly. Thanks, Qais From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.59.15.196]:36968 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27007167AbbK3KxzukKsE (ORCPT ); Mon, 30 Nov 2015 11:53:55 +0100 Subject: Re: [PATCH v2 09/19] genirq: Add a new function to get IPI reverse mapping References: <1448453217-3874-1-git-send-email-qais.yousef@imgtec.com> <1448453217-3874-10-git-send-email-qais.yousef@imgtec.com> <5658429D.3000105@imgtec.com> From: Qais Yousef Message-ID: <565C2ABD.5030409@imgtec.com> Date: Mon, 30 Nov 2015 10:53:49 +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: <20151130105349.eEp9sa1rrriPOTnW250zqS4U6S4l9USke4L-fUQdJII@z> On 11/30/2015 10:40 AM, Thomas Gleixner wrote: > On Fri, 27 Nov 2015, Qais Yousef wrote: >> While trying to get my remoteproc driver work with this I uncovered a problem >> with this approach. >> >> mips-gic doesn't store the actual hwirq in the irq_data. It uses >> GIC_SHARED_TO_HWIRQ() and GIC_HWIRQ_TO_SHARED() to add and remove an offset. > Why can't MIPS store the real hwirq number in irq_data? I'm wary of ending up in inconsistency hell where some functions need to deal with raw hwirq and others with translated ones. I will give this a go first and see if it gets really ugly. Thanks, Qais