Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933683AbbELRrQ (ORCPT ); Tue, 12 May 2015 13:47:16 -0400 Received: from mail-by2on0085.outbound.protection.outlook.com ([207.46.100.85]:37952 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933560AbbELRrN (ORCPT ); Tue, 12 May 2015 13:47:13 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; Date: Tue, 12 May 2015 19:46:51 +0200 From: Robert Richter To: Will Deacon CC: Robert Richter , Marc Zyngier , Catalin Marinas , Tirumalesh Chalamarla , Radha Mohan Chintakuntla , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 4/4] arm64: gicv3: its: Increase FORCE_MAX_ZONEORDER for Cavium ThunderX Message-ID: <20150512174651.GQ10428@rric.localhost> References: <1430686172-18222-1-git-send-email-rric@kernel.org> <1430686172-18222-5-git-send-email-rric@kernel.org> <20150505105329.GC1550@arm.com> <20150511091438.GW4251@rric.localhost> <20150512123056.GA2062@arm.com> <20150512162049.GP10428@rric.localhost> <20150512172416.GF2062@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20150512172416.GF2062@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.53.81.44] X-ClientProxiedBy: HE1PR02CA0068.eurprd02.prod.outlook.com (25.163.170.36) To SN2PR0701MB814.namprd07.prod.outlook.com (25.160.16.148) X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR0701MB814;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR0701MB832; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:SN2PR0701MB814;BCL:0;PCL:0;RULEID:;SRVR:SN2PR0701MB814; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(51704005)(164054003)(24454002)(46406003)(76176999)(54356999)(42186005)(50986999)(76506005)(46102003)(86362001)(83506001)(122386002)(47776003)(40100003)(66066001)(62966003)(77156002)(23726002)(87976001)(4001350100001)(2950100001)(92566002)(93886004)(33656002)(97756001)(189998001)(50466002)(5001960100002)(110136002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR0701MB814;H:rric.localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2015 17:47:08.3639 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB814 X-OriginatorOrg: caviumnetworks.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1814 Lines: 50 On 12.05.15 18:24:16, Will Deacon wrote: > On Tue, May 12, 2015 at 05:20:49PM +0100, Robert Richter wrote: > > For allocation of 16MB cont. phys mem of a defconfig kernel (4KB > > default pagesize) I see this different approaches: > > 16MB sounds like an awful lot. Is this because you have tonnes of MSIs or > a sparse DeviceID space or both? > > > * set FORCE_MAX_ZONEORDER to 13 as default, > > > > * set FORCE_MAX_ZONEORDER to 13 if ARM_GIC_V3 is set, > > > > * set FORCE_MAX_ZONEORDER to 13 if ARCH_THUNDER is set (this patch), > > I'm not hugely fond of these suggestions, as there's still no guarantee > that such a huge allocation is going to succeed and we end up bumping > MAX_ORDER for all platforms in defconfig if we enable THUNDER there. I actually was expecting this... > > * use hugepages if enabled (defconfig has the following options > > enable: CGROUP_HUGETLB, TRANSPARENT_HUGEPAGE, HUGETLBFS, this might > > work with current default kernel without changing defconfig > > options), > > I don't think hugepages help with DMA. > > > * use devicetree to reserve mem for gicv3 (need to check ACPI). I am quite a bit concerned letting firmware handle this. But if that would solve it, fine. > Using a carveout like this might be the best bet. I assume the memory used > by the ITS can never be reclaimed by the syste (and therefore there's no > issue with wastage)? > > > Do you see any direction? > > Dunno, does CMA also require the MAX_ORDER bump? Looks promising at the first glance. Will look into it. Thanks, -Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/