Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7014285imm; Tue, 28 Aug 2018 05:09:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZcb28V+p/MVDWalAj0mEyA5BREUg46geddMkDaSJNDHQYXh2UgZ+1os5OGoAzLxWAOiiBA X-Received: by 2002:a17:902:530a:: with SMTP id b10-v6mr1316406pli.101.1535458182471; Tue, 28 Aug 2018 05:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535458182; cv=none; d=google.com; s=arc-20160816; b=nFjj+3EYNWHwTNsgeAbpots4ytfK1vi9d+O4OsGQ9t+1bZdJPQXM948AYUOORqgDIj 5AQdnRP0t6dr12uhOsSfaaix/udWYQy+afvWsKiSk5lAWwKceo5BlBX3L6KQHuHflY6F 7m6vWeWvovP/jWzyJARlvczpezJltgckT/MwonIbA2s/+ozW+tZkhlfX6bLV3ItFXLWI Q/FJpfj0T2PNxWEy1Ux+ZYpjTcsGH/SmGh+Ue5RpybgI5QWAoRADkPJy/ymIx/tX1Ev0 mMoeQovNqxJfNX0Cb8zGN/4P880ZtMFSI0D34cJmD6tLZnE6zHum5oqQu9u+5CqBBRqU uhNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature:arc-authentication-results; bh=wWK68CVZFM0MZieNvfaFC2c344XUSBzLW2AAmiHvynU=; b=LeZi2rsTadnK8clLPnbin8w+YgpqwGSRBWysZ2d8wsGZWucbqa/2+Rtxos3WSzduVP y0Vll/l8y6c/ZXnv2i4bH5lOoOiKvq8Yw2qFav2++L+Bag9fozcZuRarKoTJBkjhde9Z qSqRBbISzeaR3jAbzGi0Cfhb5yJqauRbMaVOtiSQhl6+7WnnRcC8Lwr0Mx/MUL2K9YOF lSPsoDLoO8rSHsGPVc8UdwWY+XEfO6rGAvN+7uz9L1MhDEZKj8HkAave/b14JUsz1bDz aD5M3+wrqzD4pT4WhTQjugDbdZDiqQ0vvGOvpfwvbDbMafEo8gHU9g+lhQ3Dtx1pPKKW fiPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JnT6kMyW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si924419pgw.207.2018.08.28.05.09.26; Tue, 28 Aug 2018 05:09:42 -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=@gmail.com header.s=20161025 header.b=JnT6kMyW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbeH1P71 (ORCPT + 99 others); Tue, 28 Aug 2018 11:59:27 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45369 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbeH1P70 (ORCPT ); Tue, 28 Aug 2018 11:59:26 -0400 Received: by mail-pf1-f195.google.com with SMTP id i26-v6so600745pfo.12 for ; Tue, 28 Aug 2018 05:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=wWK68CVZFM0MZieNvfaFC2c344XUSBzLW2AAmiHvynU=; b=JnT6kMyWDGZ9zQ56ajGUb5v+MGzK5Y3PXkdkyJCBDGYZjaeEOY/dMiEjoyerq0sBMJ psq4disu0me58TLFI2iA/pyTi+gObbFpOLo94t9RYRTZFhw2VTDLVqktigwZD2A2AKmJ 3aY2xZwULiTCb8dupn/AfAXUi/z2ezU8BRLQ/acpJSUo/1M4mSgm9ZcwHWgMWnNJTYNK 5vPq3vWIkrmplLpSqz9/VicWBX88Gr89j158MlfEzjqXAKXlepCP4Kmaz8PTikqb2VN7 Jb6SKLfbb8p312cYe90IKYxKHGVBYFSQc7lbfTV9J0tBD1jFj5aWpCfTNR4teocEcHfY HFiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=wWK68CVZFM0MZieNvfaFC2c344XUSBzLW2AAmiHvynU=; b=SbP+JQDp81W66o+z/1lc9AnAiwDlka4tcUv5VSAopL8DU3e+ildYpVWBQEF+tF8a1D q5zn4KCzYKOZHY1VQK9Q0kBrii3d3E/L3Yk19La5/MVqGvX9Artoc4pK+fN30gQw635b JZE58OiACW6H9++cOBIhQyle5AD5jQeTEx1T3QGvJymBFX8Cl+ukOZCwJVKr4RAIQG9i 8I5c6RqueD36k6vrGWfxzsf7gJiny4jqkrxSKP1afyfIlZcTCy8N4KwUrtuZL2Ttx9CD EgppENzpy7eONzFFGoVpd//9WPNdDnyhwUquEVKXbMG9RIqqVF0JeIcgPIWZqQAovuDJ LAWg== X-Gm-Message-State: APzg51A03slvTuYoKpmm7ynoB09wA65HACtXPbEbD8e5CNhw6iA9Sn6g WsEEjo+CCngTleNfcWDeL1I= X-Received: by 2002:a62:b20c:: with SMTP id x12-v6mr1259859pfe.201.1535458085318; Tue, 28 Aug 2018 05:08:05 -0700 (PDT) Received: from [0.0.0.0] (96.45.178.72.16clouds.com. [96.45.178.72]) by smtp.gmail.com with ESMTPSA id b126-v6sm1769219pga.49.2018.08.28.05.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 05:08:04 -0700 (PDT) Subject: Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint To: Marc Zyngier , Thomas Gleixner Cc: Jason Cooper , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jia He References: <1535432006-2304-1-git-send-email-jia.he@hxt-semitech.com> <865zzuyijp.wl-marc.zyngier@arm.com> From: Jia He Message-ID: Date: Tue, 28 Aug 2018 20:08:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <865zzuyijp.wl-marc.zyngier@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/28/2018 4:58 PM, 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 > Thanks for the pointing. And sorry for that problem. --- Cheers, Jia > 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...) > >