From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758871AbcAKIvx (ORCPT ); Mon, 11 Jan 2016 03:51:53 -0500 Received: from www.linutronix.de ([62.245.132.108]:45202 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbcAKIvv (ORCPT ); Mon, 11 Jan 2016 03:51:51 -0500 Date: Mon, 11 Jan 2016 09:50:55 +0100 (CET) From: Thomas Gleixner To: =?GB2312?Q?Zhou_Qiao=28=D6=DC=C7=C8=29?= cc: jason@lakedaemon.net, linux-kernel@vger.kernel.org Subject: RE: [Questions]: how to extend nr_irqs for arch arm64 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-771637853-1452502256=:3575" 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-771637853-1452502256=:3575 Content-Type: TEXT/PLAIN; charset=gb2312 Content-Transfer-Encoding: 8BIT On Mon, 11 Jan 2016, Zhou Qiao(ÖÜÇÈ) wrote: > I met an issue here. The nr_irqs is extended when the start_irq + cnt > > nr_irqs. So when nr_irqs is not extended(still 64), a device with a large > hr_irq(70) will get a wrong virq. since it will be mod by nr_irqs before No, it won't get a wrong virq. It will get a virq and it does not matter at all whether the hardware irq number is 10, 70, 500 or 5000. What's your problem? Thanks, tglx --8323329-771637853-1452502256=:3575--