From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760619AbbAaB5P (ORCPT ); Fri, 30 Jan 2015 20:57:15 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:11790 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbbAaB5N (ORCPT ); Fri, 30 Jan 2015 20:57:13 -0500 Message-ID: <54CC3672.4050406@huawei.com> Date: Sat, 31 Jan 2015 09:57:06 +0800 From: "Yun Wu (Abel)" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Marc Zyngier CC: "tglx@linutronix.de" , "jason@lakedaemon.net" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 1/5] irqchip: gicv3-its: allocate proper size for DT References: <1422604009-9248-1-git-send-email-wuyun.wu@huawei.com> <1422604009-9248-2-git-send-email-wuyun.wu@huawei.com> <54CBD715.9040000@arm.com> In-Reply-To: <54CBD715.9040000@arm.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.24.136] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.54CC3677.0101,ss=1,re=0.001,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: a090de8dd1d51952bf470539efee03f6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015/1/31 3:10, Marc Zyngier wrote: > On 30/01/15 07:46, Yun Wu wrote: >> A hardware implementation may be designed to search the device >> table (DT) using a direct mapping between device ID and memory >> address, and in this scenario a single page, currently allocated >> for DT in ITS driver, will be probably not enough. >> >> This patch will try best to get this addressed by enlarging DT >> size with a limitation of MAX_ORDER pages. >> >> Signed-off-by: Yun Wu > > A similar patch has been posted already (and is already in my queue): > > https://git.kernel.org/cgit/linux/kernel/git/maz/arm-platforms.git/commit/?h=irq/gic-fixes&id=4be3de2af2a58476f84d678f3e8a3596f23f80d5 > Oh, now I see it. How about allocating a order of MAX_ORDER pages and throwing out a warning if the number of device id bits exceeds maximum order kernel supports, instead of letting the ITS fail in probing. Thanks, Abel From mboxrd@z Thu Jan 1 00:00:00 1970 From: wuyun.wu@huawei.com (Yun Wu (Abel)) Date: Sat, 31 Jan 2015 09:57:06 +0800 Subject: [PATCH 1/5] irqchip: gicv3-its: allocate proper size for DT In-Reply-To: <54CBD715.9040000@arm.com> References: <1422604009-9248-1-git-send-email-wuyun.wu@huawei.com> <1422604009-9248-2-git-send-email-wuyun.wu@huawei.com> <54CBD715.9040000@arm.com> Message-ID: <54CC3672.4050406@huawei.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 2015/1/31 3:10, Marc Zyngier wrote: > On 30/01/15 07:46, Yun Wu wrote: >> A hardware implementation may be designed to search the device >> table (DT) using a direct mapping between device ID and memory >> address, and in this scenario a single page, currently allocated >> for DT in ITS driver, will be probably not enough. >> >> This patch will try best to get this addressed by enlarging DT >> size with a limitation of MAX_ORDER pages. >> >> Signed-off-by: Yun Wu > > A similar patch has been posted already (and is already in my queue): > > https://git.kernel.org/cgit/linux/kernel/git/maz/arm-platforms.git/commit/?h=irq/gic-fixes&id=4be3de2af2a58476f84d678f3e8a3596f23f80d5 > Oh, now I see it. How about allocating a order of MAX_ORDER pages and throwing out a warning if the number of device id bits exceeds maximum order kernel supports, instead of letting the ITS fail in probing. Thanks, Abel