From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B790CD1292 for ; Mon, 8 Apr 2024 00:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/p4aw/Gmzrn4I9KvOLAGevXtopBvylbdw1RzKsFVWPc=; b=NyDPwOy5PRccoa h5xRcV3DhC8Z75HDQXX+sG+4ZLwVQMg+9j1uPuK7epISJ8Kqdjiwu0JKQ7M1ZQDW2dc+hoji5qpgs V55hoqbpp9gO9lLw2Vd4DCmZush5KmcZijoLS4tS8V/2Ywb/Heff4K8hFtdq6/cqhvZAK4IHn4HtQ rJkfz1vVBb+wIji17eN9/yWpeeV7cQKyVAVoWEx0DwBB/s2PtH59bK1VEVXx1nv6DWQ8StUdcSto5 sJ6OOl/C7a/PRjWA7Ybv5FauyiQfL8uB1YAp9HCuu4vfzHy89H/QUZ50XzOKrr39mTBfYxPdj1paG gesQOscHQ4NdCu8/u8MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtcuL-0000000DoZv-1xAU; Mon, 08 Apr 2024 00:30:45 +0000 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtcuJ-0000000DoYz-1kfZ for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 00:30:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1712536239; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=CsEb7LZaYg4MvBYaZ0RzWTEBPpTTYm86e4zm7GUtmgg=; b=blvMXFRIz1jmEJL6ai8DOJTGnRwdEGw9LnKhSwT8xaThnMpdEep510xFoNPtw1Jla/FeD/kb56jt9UmfjQjwQnQjRg3t+uaorFONDs8IU65u+zkLUszfS2a4NdyFYlMlunQx+4qS6Ct0WEFByDOoiPQMjJxUaS5jEOGaxooFRl4= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0W41MR8s_1712536237; Received: from 30.97.56.50(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0W41MR8s_1712536237) by smtp.aliyun-inc.com; Mon, 08 Apr 2024 08:30:38 +0800 Message-ID: <62202a1b-0bb8-42f5-8956-cd8ff82b4ff0@linux.alibaba.com> Date: Mon, 8 Apr 2024 08:30:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 06/10] perf/dwc_pcie: Avoid placing cpumask on the stack To: Dawei Li , will@kernel.org, mark.rutland@arm.com, yury.norov@gmail.com, linux@rasmusvillemoes.dk Cc: renyu.zj@linux.alibaba.com, yangyicong@hisilicon.com, jonathan.cameron@huawei.com, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20240403155950.2068109-1-dawei.li@shingroup.cn> <20240403155950.2068109-7-dawei.li@shingroup.cn> Content-Language: en-US From: Shuai Xue In-Reply-To: <20240403155950.2068109-7-dawei.li@shingroup.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240407_173043_669997_5926EE03 X-CRM114-Status: UNSURE ( 5.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2024/4/3 23:59, 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 Reviewed-by: Shuai Xue Thank you. Shuai _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel