Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6849327imm; Tue, 28 Aug 2018 02:00:19 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdahtf3BH3StZ4Ar6xwDZ8TDlG7GMzgEUQg71U6WJVtnWNGam2RUwM39VNhSE7t+mOgDCAPB X-Received: by 2002:a62:2459:: with SMTP id r86-v6mr576375pfj.31.1535446819766; Tue, 28 Aug 2018 02:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535446819; cv=none; d=google.com; s=arc-20160816; b=YKqeX332qz72hmMfzH2QPcA+HQAi1MXnYMJkchgCaB1MikgkYn6GRlt/gi424UtZR6 uKbKuA5K0JhaBShavEBT2xW2NtavUVSIumwwW0vyxuIcBBjhZBRlkFwtavX08PQoFpbe vcLk+r1KUnpc8guC0ijs9+LhAySlq/9upNmKM97nSXpquTR+MuYJDcywIwyeOtJ5gEvC cPnZRwyankIkF0rroa4IFw1Xyi4A7O3I9ujj0hpuGh7ljjcG/wQ+cv8/z6K5xcy9aUY4 pHC+KkH+7R3Z58DrJG0pM5qXIFBkMw2JAyNz8rLjcB8IBUM7ATEr8+W3GJqC5/ZJ+i+N hP2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=JLhHHDHnPlZZm9WOheiNyIrwJHN4sq5N1F7czFLvNCc=; b=qMOke52BgN6EL9dQ8rUfmwbf6263c0vAYruTmAPl3AE1Y6HvfylIJzlv7qSBHb9gmE tcmIvJNzhZDWtHlAlQead2dyg4aMWTp3GJHcRyc2Jw5rKVneAWcClmf2LzN0D7V3FIE5 TI4+LySwsyA+3+pkLRAKU4F1vWCcQEONPONe6PajfpW3m2ofNZ++A1zsFz0/RdSkAwi1 /e+b1VkzH+RiFWdDGYoKWLIpR2iX6e3hDBA/G8dLCwua7J/pWqAEwB9YhYr0HACtWFpj EB/Rk81xETPc7Z5fb58QyA6SRiyRrO347nq8E479qERsbI0YhzXw2X7DCCRsB0Q+I9wx wSkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb1-v6si543497plb.128.2018.08.28.02.00.05; Tue, 28 Aug 2018 02:00:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727573AbeH1Msr (ORCPT + 99 others); Tue, 28 Aug 2018 08:48:47 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33654 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbeH1Msq (ORCPT ); Tue, 28 Aug 2018 08:48:46 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 61754ED1; Tue, 28 Aug 2018 01:58:07 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 61AAA3F721; Tue, 28 Aug 2018 01:58:05 -0700 (PDT) Date: Tue, 28 Aug 2018 09:58:02 +0100 Message-ID: <865zzuyijp.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Jia He , Thomas Gleixner Cc: Jason Cooper , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jia He Subject: Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint In-Reply-To: <1535432006-2304-1-git-send-email-jia.he@hxt-semitech.com> References: <1535432006-2304-1-git-send-email-jia.he@hxt-semitech.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Aug 2018 05:53:26 +0100, Jia He wrote: > > In commit fe8e93504ce8 ("irqchip/gic-v3-its: Use full range of LPIs"), > it removes the cap for lpi_id_bits. But it will cause more pointless > memory footprint. > > There is a WARN_ON when my QDF2400 server boots up (pagesize is 4k) > ============begin=============== [trimming not-so-useful trace] > ============end============ > > In its_alloc_lpi_tables, lpi_id_bits is 24 in QDF2400. Then > its_allocate_prop_table will try to allocate 16M(order 12 if > pagesize=4k). Thus it causes the WARN_ON. > > As said by Marc, > Capping lpi_id_bits at 16 (which is what we had before) is plenty, > will save a some memory, and gives some margin before we need to push > it up again. > > This patch re-caps the lpi_id_bits. > > Fixes: fe8e93504ce8 ("irqchip/gic-v3-its: Use full range of LPIs") > Signed-off-by: Jia He > Suggested-by: Marc Zyngier Thanks for doing this. Small problem with this patch: The email comes from hejianet@gmail.com, while the sign off is by jia.he@hxt-semitech.com. Your email should start with a: From: Jia He Other than that: Acked-by: Marc Zyngier Thomas, would you mind picking this up so that it gets into the next convenient -rc? Thanks, M. (/me goes back hiking...) -- Jazz is not dead, it just smell funny.