Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp611943imm; Fri, 31 Aug 2018 08:39:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYOvDwyii9n92c8ljPEEmt+ciuTx84Xxe5zb2T4WXt7l0RQ4s3ThMh16GwyrHKAZ6dllcoz X-Received: by 2002:a62:5cc1:: with SMTP id q184-v6mr16675116pfb.241.1535729990158; Fri, 31 Aug 2018 08:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535729990; cv=none; d=google.com; s=arc-20160816; b=DIff+jmBiHHqAOzFgU3K/5CzMLUTRJxfsqo9xNw8v4UNV8Idh/WV6kKWhGQMom223c 1CZwT1TRUgk8i987YVcgiBP8fT/ZAFPv8ZWxnu4Fu5ex0et07wV6kOnwZABtfYEGm8EX MyFppML9yAiJ9XOfbyRw76Wn94MNzgY0hpcUg7mJV4qYjUpPBGeU2ErxtcRDIqbNjVxF lHf0KcRElMAxbgu6ItHTejyqJOoDFKgt9k64o2zihv8+QqcUBMsgI6fpnQtoSlEfaUJE W+9WOR3F4/WzoEBfrgrFm4jyVPcLVHd86Wzqw6rHAFcmouOtSrYH3BCELMsebhwAYTIT viQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=8+1E+03ac7mb0WNGQ6ODDNvv4PQ929itM3tgun8/s5g=; b=a5tO34ezRYv9JwtpZNxhVPYlAobMDc761/in+FibNm/WNemAH33BY/Q+v7Maz0obxo gGYIjWQJmOdG8jv77Yz41dL+LOoXjixeXh3RH56tvtHV+OFwkaC3Or0tQRNE/JxgNYgp S3PdY3GGni6YmGWeYZhYPpkcKGvLt7vgtwxJO5am665bOjKlyHsT7ju1Uywm5vlkFpVh R21kedzXftdRak81uCepQYUKzuoi1UvTSygFo0HpbsAonRFHKhq1HipeZ7x4285nW+l6 Qy3Q7x3ePXQFJNGCBUnX2LMu0FIE6dL3Ux7OB/J52DmqpMdFakfHcvCgge0F7Hxu+5hC qEQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=KzINOM2f; 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 r64-v6si10568334pfd.37.2018.08.31.08.39.35; Fri, 31 Aug 2018 08:39:50 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=KzINOM2f; 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 S1729115AbeHaTq0 (ORCPT + 99 others); Fri, 31 Aug 2018 15:46:26 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35503 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728872AbeHaTqZ (ORCPT ); Fri, 31 Aug 2018 15:46:25 -0400 Received: by mail-lj1-f196.google.com with SMTP id p10-v6so10454098ljg.2 for ; Fri, 31 Aug 2018 08:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8+1E+03ac7mb0WNGQ6ODDNvv4PQ929itM3tgun8/s5g=; b=KzINOM2fI8oGAtDio6T2Xcl7IBtftuh/H9cD9Jw9+Aj0Avw6qLq7538B7j7guUECoa bxMLfgTPAPRZJoJiA/Q5cg/ng7urORaz3sBS+SAC+d6mmrhb66RuOQqZBfMg/cQUhUdH DVMWI43w0u+aqT7AF5LbkGU9GhXT928WyKjtW3BOn+1+gy+ZuGZzs5OOaPxJDsfp6cys 8e7ibHJCLMiYItbluxtAOV8cP0lYS9Z83oNl5gWkMZdjCXeIb5YuJE2AqjE67BPXobaT 4XDMFzknm9p4kRWj4eT/Q8/cZTbilpdwqVTiftwL/qDXYTr2/ftpHYzydqxZ+ILPiS+Q NT8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8+1E+03ac7mb0WNGQ6ODDNvv4PQ929itM3tgun8/s5g=; b=pzsDVUzH3GxmZWQoiMa+VhN4zMCyXH4lm7jqAtXOqpllM1qyXtea9hXSGfVPZkCl8R MNUyv8J43o2hOSCvg0Yx0r6FV5LsXB3Fr329DXnbQj3sI3wybFnZkO37oAEzXwE/NHie Np4wsINL3+SiWoE+ynUofn++skntGS6ApfkMVMfxac9Q8IzH0X7Rh2VAmW6RYJLIvxil hG1bASe1T2ftb1iSUbmbwylV1j0y+pMHUhrX/J5axb5hEJ2Hs1RQwVjp+c/XxMi5wcba Re2QI0HT4H1N3eebruZe0pi3jYjdcUETybU0t5ZN7KEpiRUAUmYuW7kQ5CMajShCGOyX UqTw== X-Gm-Message-State: APzg51B1OKc8nykp1/rgs2/lkhupsAdt0NlwWJZAkkRoZ0YTTqTmJeeU 6joopWsXUzu/n4QWjiMrQfSdD3rdRb3NY028kSM+OdnuRVg= X-Received: by 2002:a2e:87cf:: with SMTP id v15-v6mr10378061ljj.13.1535729901122; Fri, 31 Aug 2018 08:38:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:c70a:0:0:0:0:0 with HTTP; Fri, 31 Aug 2018 08:38:19 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::5:466f] In-Reply-To: <865zzuyijp.wl-marc.zyngier@arm.com> References: <1535432006-2304-1-git-send-email-jia.he@hxt-semitech.com> <865zzuyijp.wl-marc.zyngier@arm.com> From: Olof Johansson Date: Fri, 31 Aug 2018 08:38:19 -0700 Message-ID: Subject: Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint To: Marc Zyngier Cc: Jia He , Thomas Gleixner , Jason Cooper , Linux Kernel Mailing List , Linux ARM Mailing List , Jia He Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 28, 2018 at 1:58 AM, Marc Zyngier wrote: > 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 Tested-by: Olof Johansson > Thomas, would you mind picking this up so that it gets into the next > convenient -rc? Yeah, it'd be great to see this go into -rc2 if possible. Thanks! -Olof