Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12851582rwb; Sat, 26 Nov 2022 16:57:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rgu5OlFGIriA7ek4y3oX13Q+RUVe4LjwsCV5ondMYfWr+U4GAh94bvSk+10GNzQSoMVRH X-Received: by 2002:a17:906:18e9:b0:78d:48ac:9044 with SMTP id e9-20020a17090618e900b0078d48ac9044mr26880632ejf.613.1669510625969; Sat, 26 Nov 2022 16:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669510625; cv=none; d=google.com; s=arc-20160816; b=iQw1UcVJxcheXHoixq2HgvZ7lk7brBuKNC6ri34i85VEUHbTgbNLAz6JdrD7Fh1fcJ 7TGlLAUcpDcpIfM0DOnLcEuOnhXDOTAoTqk80GPu5ZaH3vDpUaku9M4aPkO80Sy9hfFd sas089nSo2al/4dfm3qXFJQjP+zD+WL/GUx86w3AtmBO0f5SCKwOTpI+Vdd/529fowVO Aw9+KFAexHYfKf23/JBwrn/ti5wMA1IjraKv1ZXFPJP75+HFlC+n2dHSFqdehemnxWEC wFd4DUiX9XLN/E3HeqdHlADxw/o3YCFJ3kB2fESCM+Gth+tdWN58RcvnVlZZiOeJSB5h oDpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:feedback-id:dkim-signature:dkim-signature; bh=DIPXyu8HQb1ZeFRaVm//QFcNLLl7SMnvb14+RRPUPkc=; b=JpeBNV0JrZV6JzvqEbQdOQffIqoMVHVs4iKfEbX8gAKSGpMFn46WEcjD6Q9eWFaqKc c66ux/OZolTWUT8M4SrOs9TrXu1GDZQGjF5vmMR0TJLw+p+w+cWMhOhQDXubBWQy9ez5 eC9UyOIg67AH+LltCTGrV73up+DHEiTIa1berpxME9jV+8BiYnfUx5O/A12nIA2bhRTO 4/5tQQ67wF9gYqEAK+cBVwWF6Nvnb5mwZHGaGM5TflwBYr4Qdqv6a0amjlOkHp3fMVWq zKEQm1xFNP8hnQMHr/M4ERZNydcOIQBsmwKq3wubTpB1mxQifTYgrDh8MTkdE/BPlmug DDxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="RiQY/SIv"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UC8GgaWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a056402320800b0046afbd6c84fsi1675962eda.553.2022.11.26.16.56.45; Sat, 26 Nov 2022 16:57:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="RiQY/SIv"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=UC8GgaWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbiKZXtS (ORCPT + 84 others); Sat, 26 Nov 2022 18:49:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiKZXtR (ORCPT ); Sat, 26 Nov 2022 18:49:17 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67A1813E07 for ; Sat, 26 Nov 2022 15:49:12 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D501D5C00A5; Sat, 26 Nov 2022 18:49:11 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 26 Nov 2022 18:49:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1669506551; x= 1669592951; bh=DIPXyu8HQb1ZeFRaVm//QFcNLLl7SMnvb14+RRPUPkc=; b=R iQY/SIv5HjpaoqzBhGUqZTel7ZSmfVLzHObK8TWSgG8S9O37n60ZJdjBEY2tNpqe 3JQiF4Zh4ztELmsG0Za9AgQjHtLA2RVVO5XuxeDQOCMfTLEJlSI7PTfauv7Sd6IX mxvX3ExWhe4dEV5xemUwd+jYxczFoOo4M8NI414QWpbFOvMOsEdjrH0o7gREgBDy XlmiIOAbd4rKasEh2qDtQ/ezof12Ul3sbiViG+BmBW61DY0C64y0YuM+kNHKKgqF LzR1LwPKouhNPrhlBpbezOarHV5/GxWZzvaIbfSReS2niW+ScP9wBreMMB4MPnp5 VVgTMdx9l2+DJ9UO6Wc0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1669506551; x= 1669592951; bh=DIPXyu8HQb1ZeFRaVm//QFcNLLl7SMnvb14+RRPUPkc=; b=U C8GgaWMjisgvQdcz3hLMSiJ20Ew4vch670rNrLHvb9AFf0Hv9sZEOL7UDQoB/teG sh8Ur2Z0VJLn83s+VcTmiyen6PJ9jO8cQOhJaNVQwMtI0eaB+qqMPfPFtIPM6hUS BA19nc6E6K5paeJdjeFOFJDV083ekZBeNe5nz2xjKq9ZhCnV28r+0gWorEozm5FQ 979QJ7RG5ZYVMlqhDNH30EqmRjNHqRsuDjmiw5Kbf/W1MZsoB6sx7FG1wvWSi4be 6h5mKvazqzVhFx0sURnQZ3NHn+uLjZnrZmxKuaVKVLQiwxOM5nZ+9+H4g8byVkVu 4JbC5feOTbrqg6+Gm7zLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieekgddugecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfvvehfhffujggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepjefgfffhudejfedtuedugeeutdetgfeiteffffehjeeugfeuvdeh jeetfedtffdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 26 Nov 2022 18:49:10 -0500 (EST) Message-ID: Date: Sat, 26 Nov 2022 17:49:10 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: Marc Zyngier , Tiezhu Yang Cc: Thomas Gleixner , linux-kernel@vger.kernel.org References: <1666841949-5244-1-git-send-email-yangtiezhu@loongson.cn> <87v8n1ubbj.wl-maz@kernel.org> From: Samuel Holland Subject: Re: [PATCH v2] irqchip: LoongArch: Select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP In-Reply-To: <87v8n1ubbj.wl-maz@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/26/22 06:53, Marc Zyngier wrote: > On Thu, 27 Oct 2022 04:39:09 +0100, > Tiezhu Yang wrote: >> >> An IRQ's effective affinity can only be different from its configured >> affinity if there are multiple CPUs. Make it clear that this option is >> only meaningful when SMP is enabled. >> >> Signed-off-by: Tiezhu Yang >> --- >> >> v2: rebased on 6.1-rc2 >> >> drivers/irqchip/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig >> index 7ef9f5e..8461915 100644 >> --- a/drivers/irqchip/Kconfig >> +++ b/drivers/irqchip/Kconfig >> @@ -575,7 +575,7 @@ config IRQ_LOONGARCH_CPU >> bool >> select GENERIC_IRQ_CHIP >> select IRQ_DOMAIN >> - select GENERIC_IRQ_EFFECTIVE_AFF_MASK >> + select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP >> select LOONGSON_LIOINTC >> select LOONGSON_EIOINTC >> select LOONGSON_PCH_PIC > > We already have this: > > # Supports effective affinity mask > config GENERIC_IRQ_EFFECTIVE_AFF_MASK > depends on SMP > bool > > Do we really need to express this for every interrupt controller? Unfortunately yes, because "select" does not respect dependencies. So the "depends on SMP" line does not enforce anything; it only serves to provide a warning at configure time that the build will break. Regards, Samuel