Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp585855lqp; Fri, 5 Apr 2024 02:56:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUV87gx6jFFRuRI3tUHVY1NKi4qMOho3PEUcf+Vy/lf9HWi5rMJaLJ26kurgiVvjjPR9oRnX7pNqt+apqSR3X1LB9z8Jcb46bTK2bunAw== X-Google-Smtp-Source: AGHT+IGAn2ofcZN0Z//H3a7mJHNhWmSEo7l9BnfUDUvrvCrHg7ugKmiKOm0iJUS1IYJRCjVa4u9d X-Received: by 2002:a05:6214:1c4e:b0:696:4207:a6c9 with SMTP id if14-20020a0562141c4e00b006964207a6c9mr984360qvb.35.1712311006470; Fri, 05 Apr 2024 02:56:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712311006; cv=pass; d=google.com; s=arc-20160816; b=ewo2IzDIuWocAv6+Lr1sfE9fDtuLcMGCveJAZKMj8A5996PeQcxhQeKefEP6WPbnTD ROmKG5JvRlDVzXt8gkGxWUV2fAJG0Nv/9TxFUmzAWDHlLGP2QoLwIt8RnNobHqkUX1DW tmlzBpZt1nJ0Cmjy7A6GyU73uWqFjQXcr/h3XDlTFcEqmnIjvOppXYwRacpQIFHc3H+f 8TTB+Ow/uuqLo3vjGYyx6fqRfjKkVlIadUJmGCcPl0k3fOhDAsVlfOHfYm5TvFwKP2Mj vANVf8O+bgtHJKuI/1M0z7cxn+MQldzZM+leRvqiP8jV5JiNZ9M0mVzmzyUjtdrghk3R Vfwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=lWVC6xx+LbCtfhjjN31WjcvHJdV59oTU0Z/uKRGzSaY=; fh=r9IFOUydlB5usmK3BrbQlNRT4xvLW5hsLENwA8EJPoo=; b=K6anUIpe1OU96JgnsKAQ1Gvfa/5KF1sRbTuAE3IqWEUz6MrVS2VD6poGprf6ZtxTlg XQpAlbUxE5zdLKQoo4BP8bih4JPrMGhxm9vXIVY4h4a6PR8HNa1Kek+o7jSiN158EiSh ejgyfoMN4cEQ67wwP5T3McIz1OzzpArcez1ehSVBO+tzT5goEzoJIDvmdKDyS/d8Wb39 Jq/M1mh4HBObQPrYI2nK/oZ1PBJPhPRahBjgbsoq5xvuVjGbtKjtKHMA+wWEJXS7dcCC HkpCgWJs+NGfXTJ8iBtl0RMGJhWkXubzn0eDCYZjfXFh1WmVAdrlUh9EEyKUIEcvpenc BgJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-132778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pr6-20020a056214140600b006992079491fsi1348677qvb.500.2024.04.05.02.56.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 02:56:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132778-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; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-132778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com 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 355E61C21413 for ; Fri, 5 Apr 2024 09:56:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 048FA16ABC2; Fri, 5 Apr 2024 09:54:28 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 933CA1607BC; Fri, 5 Apr 2024 09:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712310867; cv=none; b=PPiP7e7rFxfq6snZFkWB6k6I+J1LLt9UtE06YVnMWDy07YctysMCkpC87b/PmbqfL/4rSS17BA1lj7KrdgXv+FV+nkDrlbV48OBuKDX+bOvg4XCZDS5iPT+Z5CAjonoqW/TvoVCrQlkeHQbslHo1i/zffjr3xiKMv/DY7LArFCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712310867; c=relaxed/simple; bh=96UWtBYZsjWfBGux12qXUOnJhFQRp0u97ffHumiMS/4=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Anr6r6t5bIQ3wzcgnhDBZAXVxVsomOSvVHEnzBswE7FrOsCozBkwBy6vsaSwIlDli2Sps1EbPx3laJIhxr4JmIe/shO5Py+Ldq/LEHi5VfdEvW8e60Yyxhm1TMuhGvwfnWLaQDppy6bbDjXf2ynS+ktMicUu5Yq4hbhTxZ/urxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4V9v1T1LWRz6J6d5; Fri, 5 Apr 2024 17:53:01 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 81C15141546; Fri, 5 Apr 2024 17:54:23 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 5 Apr 2024 10:54:23 +0100 Date: Fri, 5 Apr 2024 10:54:22 +0100 From: Jonathan Cameron To: Dawei Li CC: , , , , , , , , , , , Subject: Re: [PATCH v3 07/10] perf/hisi_pcie: Avoid placing cpumask on the stack Message-ID: <20240405105422.00006352@Huawei.com> In-Reply-To: <20240403155950.2068109-8-dawei.li@shingroup.cn> References: <20240403155950.2068109-1-dawei.li@shingroup.cn> <20240403155950.2068109-8-dawei.li@shingroup.cn> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 3 Apr 2024 23:59:47 +0800 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. > > Use cpumask_any_and_but() to avoid the need for a temporary cpumask on > the stack. > > Suggested-by: Mark Rutland > Reviewed-by: Mark Rutland > Signed-off-by: Dawei Li Acked-by: Jonathan Cameron