Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp529452lqb; Wed, 17 Apr 2024 03:56:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkonx6k0hc+msR0cAqtdSBpJs892OAsSYhrjfb/6Wxvmmo77Iub//sVBtbvNce/VNSU7aWKvCuNrgkOx5Nxz9lw5K3mji4C37lZqIcQg== X-Google-Smtp-Source: AGHT+IEvnZ4gDB70wN78CzMy0YHKN4sfxEQqMOrJy2HYYNT+T7rwUHQiV/DpkmGHr0GftzTQFhS/ X-Received: by 2002:a05:6359:5144:b0:186:27f9:d71a with SMTP id oc4-20020a056359514400b0018627f9d71amr20559929rwb.12.1713351378012; Wed, 17 Apr 2024 03:56:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713351377; cv=pass; d=google.com; s=arc-20160816; b=mK9CTGpS28xPFW0T4p6vqiuSChpgHQgYrHfOixqSCwCgaHurIupUke5e0G/Uf2vf81 uGinijJsfi/CXKNr8V3qZc6otZNgVq3IDg01cAd8z3GRgU0yfNiJ1w7ciXEaTBNv+esX lwgIEU6f1TD2QDNXeULQ/rlDdBQXnKqJlI6RtXeqWnh1FQNIz+jmTkvzmEdgA7tFvgPu 73v/z5KdWRrNhT9gcqCDS/ZpAD8VQtxN6TBpaP/gB+L6WDnCAH1HL8PXtaIMd4QByUMb BPMs66oov22DJmNp6EdL0GOkTF8DYkLUNbV0XhIiA4PWJs12CJ0VEi2zEyK5Qibe4ECv Au0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=b5Xtph20+Fo8slYSYO278S7IUMUVPai9po2sih7U1kc=; fh=aPK6XpNdAh2Qf+04VrppYija9VyE+jbOjPH8yvCtoDg=; b=DgPmjCSif60Tk1SN2fxpzK7BgYSpYGm8UNi4H1fqxpm5azb7N82fu5+ySTasCKdy51 B86nn2neVKLyL8TojZ9SU27hhmBR+amwK+XbT1sTkqV4jns312syWfGYGQcp4V8qAUfs 2+3unSef+8dV1Dz3m25A+0/NUEOniDkSyIBsBQi3KfxYs4Gx5Z9Do/pIBwYBkBEjLHcl Cj5Wtf5scYyP+8E3fOLLLqW5qvG3UmO0cscnI6ZVeMRkbLyNrk7JtGrf83Twa5TbPari uCLiDB9/A6WpKaOiqNXD43yC+tVrFkSr98nc2z1Ae3NxRNkBUll8sOCzeq8nDX+A+WOF ySbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ERZ1YEyl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fg26-20020a05622a581a00b0043709c6ab8fsi7235042qtb.535.2024.04.17.03.56.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 03:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ERZ1YEyl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 98C321C2285B for ; Wed, 17 Apr 2024 10:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F02D13C699; Wed, 17 Apr 2024 10:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ERZ1YEyl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BF2512D20D for ; Wed, 17 Apr 2024 10:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713351370; cv=none; b=uKssSApLsGLbeK8PXTTXLmxd2g3QGo/qEFoQTlZR2CzImdZf/5BQ9g7O/9c5Q1hbbV0bnKRrpgRy9HsCSCnBt7d7VF6bn+3+Mz9LUnV4tMxQKfc23QumdNJ7eBgnfznXglhKzRX5g/99o3s6sLlffF/GqX2nmm99okmNmyoW7Yk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713351370; c=relaxed/simple; bh=EWti/8CN6ncBmT5gymMNjUv58LReaR0BCx6NWeoqYE0=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=eLPmvM6SRqWKKp7LN4aXmV+uZsbW7fFBbJ3i4PFwO8DFgRSebjDc2luXxNZXvJ48O7xJfgEuTo0+a5U+M1nOESuWg+RROqSN2+S2B01CeUl82fE5nVBsnZ8NYYzoU72FTBO0bxIQ8tpRAP2ghRRekHjxhCiQAXvtmRPC8Ah/cV8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ERZ1YEyl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D90B6C072AA; Wed, 17 Apr 2024 10:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713351369; bh=EWti/8CN6ncBmT5gymMNjUv58LReaR0BCx6NWeoqYE0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ERZ1YEyl9I2YiVpCO4Ls9TAVkyd/wNyGV0D6MjL0xcFkjAUcPLZzxjuacbG+DKZI9 zTuWDbHQ8DJB9koR+B9Sx8Ho5C2mNxth9keEzlMSt0Yryd5mH+/ftj7tXGGIKuQXLe mwpA3QZHJVq4RDZWNa7iH0+Zw9e6GFn1GQYhp5u5ZrPNWh4DeOsYV+7t7h6Wg8fTdq SSE/vuJxOG0LOQictZpZaxW6UkRWvVl+z6B+ID/ocbVLKe46hoP/PNScq8yLE+WeG2 7PaoJ4tgfRlF5AoyiPGXnyPVxXUJjnz4cvdqgfBLqj+SNZrB4MRr8EWpSLCtbDuwk6 St/lMZWWd8p1g== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rx2xT-005L7r-El; Wed, 17 Apr 2024 11:56:07 +0100 Date: Wed, 17 Apr 2024 11:56:07 +0100 Message-ID: <86v84gqmuw.wl-maz@kernel.org> From: Marc Zyngier To: Dawei Li Cc: tglx@linutronix.de, yury.norov@gmail.com, rafael@kernel.org, akpm@linux-foundation.org, florian.fainelli@broadcom.com, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, anup@brainfault.org, palmer@dabbelt.com, samuel.holland@sifive.com, linux@rasmusvillemoes.dk, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/7] irqchip/gic-v3-its: Avoid explicit cpumask allocation on stack In-Reply-To: <20240416085454.3547175-4-dawei.li@shingroup.cn> References: <20240416085454.3547175-1-dawei.li@shingroup.cn> <20240416085454.3547175-4-dawei.li@shingroup.cn> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: dawei.li@shingroup.cn, tglx@linutronix.de, yury.norov@gmail.com, rafael@kernel.org, akpm@linux-foundation.org, florian.fainelli@broadcom.com, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, anup@brainfault.org, palmer@dabbelt.com, samuel.holland@sifive.com, linux@rasmusvillemoes.dk, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Tue, 16 Apr 2024 09:54:50 +0100, Dawei Li wrote: > > In general it's preferable to avoid placing cpumasks on the stack, as > for large values of NR_CPUS these can consume significant amounts of > stack space and make stack overflows more likely. > > Remove cpumask var on stack and use cpumask_any_and() to address it. > > Signed-off-by: Dawei Li Reviewed-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.