From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932724AbbLSJai (ORCPT ); Sat, 19 Dec 2015 04:30:38 -0500 Received: from mail-db3on0074.outbound.protection.outlook.com ([157.55.234.74]:19956 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932158AbbLSJab convert rfc822-to-8bit (ORCPT ); Sat, 19 Dec 2015 04:30:31 -0500 From: Noam Camus To: Marc Zyngier , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "Chris Metcalf" , "daniel.lezcano@linaro.org" , Thomas Gleixner , "Jason Cooper" , Vineet Gupta Subject: RE: [PATCH v4 05/19] irqchip: add nps Internal and external irqchips Thread-Topic: [PATCH v4 05/19] irqchip: add nps Internal and external irqchips Thread-Index: AQHRN57T6z+6xXe8LkyllNMp2B1hJ57NWbAAgAGP8MCAAbOOgIAALFLwgAAqV4CAARsR4A== Date: Sat, 19 Dec 2015 09:30:26 +0000 Message-ID: References: <1450228238-4499-1-git-send-email-noamc@ezchip.com> <1450228238-4499-6-git-send-email-noamc@ezchip.com> <56712F50.6050404@arm.com> <5673EC2D.5040307@arm.com> <567434DF.2030201@arm.com> In-Reply-To: <567434DF.2030201@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=noamc@ezchip.com; x-originating-ip: [85.64.158.114] x-microsoft-exchange-diagnostics: 1;AMSPR02MB120;5:M6vcDmFd2yW/r2Jg7/+rbysrQ1G3N4ObWV5jI6c5XpwfEkGK0qA/lzUHTqwbba5+gRqZLcpSJjeDb93yYAJe1Jb4sSyOOsePIRtL7F1JR2mOuL781Zgkxeezu6iS4vrfhN8Z53PtfySAJ8RbRnJQTQ==;24:qsCHaiYLjW8qC9KPMpKVLnqGKx7uFcjzMvtmff6L0mk8x1qGrV9vY6CvbbwzoAC/VHK0J9MqdXKEZNOxqnidj0uN/XveXjByqdG2vFiZ6T0= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AMSPR02MB120; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:AMSPR02MB120;BCL:0;PCL:0;RULEID:;SRVR:AMSPR02MB120; x-forefront-prvs: 07954CC105 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(45984002)(377454003)(199003)(189002)(19580395003)(93886004)(105586002)(19580405001)(87936001)(86362001)(66066001)(101416001)(50986999)(74316001)(40100003)(122556002)(5003600100002)(5001960100002)(2501003)(2950100001)(106356001)(106116001)(189998001)(2900100001)(92566002)(77096005)(81156007)(97736004)(1096002)(5001770100001)(5004730100002)(54356999)(76576001)(5002640100001)(6116002)(76176999)(102836003)(1220700001)(10400500002)(586003)(3846002)(5008740100001)(33656002);DIR:OUT;SFP:1101;SCL:1;SRVR:AMSPR02MB120;H:DB5PR02MB1141.eurprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2015 09:30:26.1983 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR02MB120 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >From: Marc Zyngier [mailto:marc.zyngier@arm.com] >Sent: Friday, December 18, 2015 6:31 PM >> Note that I am working with ARC (seem alike) here and we do not define >> CONFIG_HANDLE_DOMAIN_IRQ and do not implement set_handle_irq(). >> >> So for ARC this reverse mapping is something we can leave without >> (maybe because we are kind of a legacy domain). >Yeah, I just located the crap: arch_do_IRQ() happily takes a hwirq (the vector number), and uses that as a Linux IRQ. This looks a lot like ARM pre-DT, about 10 years ago. >Well, time to meet the 21st century. If you intend to use DT, please fix your arch port. Otherwise, just hardcode everything in your platform and don't pretend to support device tree. Thank you very much. I have the complete picture now. Will discuss with ARC maintainer and see what best way to do this change. -Noam