Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3280173lqp; Tue, 26 Mar 2024 05:11:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4nKu7j+iOSPi/8zfNhPf4xkEO21D7Ge7IBykjidOlfZr1xZxZAk7nyu2ySOfpiptGNtGhIvWRcBsqgilyR0ymzpDRL5yTFdMniELvRA== X-Google-Smtp-Source: AGHT+IG8V5ZWKeH5U64sgLntMLsuyGwEpkCO0kK3lB26mRhX3dgESE1SJdSH7G80nCHtEsEXW2k6 X-Received: by 2002:ac8:5d89:0:b0:431:3d2c:1bb with SMTP id d9-20020ac85d89000000b004313d2c01bbmr1787814qtx.13.1711455116177; Tue, 26 Mar 2024 05:11:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711455116; cv=pass; d=google.com; s=arc-20160816; b=KUx593K6pf/4VdBnxPH/eOk+2NExffdY1cdP5NXwX9JzcARNBN39/XFobLRhtMTODn Nz0HkqX0+98ix3TIQhXYj6KqRnqvO8j5dl+Q45TuIFIWrrY0s9rONSIf9Tz1Art0mQ0S v7LV5t9NORC55tSoOR8LiGjn7QAUkmAPJePclkSQCYyWTJ1dOzTr2Im8WO/I8qE3A7VM yUf+oE/5fOHkVYQ0UB/9nYiUu4CPxXazKfj9vbwN3wndxgTix4sOraIkA14cuy8NSrTY /qeIFhR0dXgAbrCpP6yu1IfrEFN0vQs6SvLb/wrfELyM8IuHjx209vYQIrvQysfBTlW2 Yrmg== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=HU+OW1zcWJ+0zUtRbI2PKxoKstEYUMUJN3O/RbMVOPw=; fh=A1rt6+bi2kkW92jvRCREYMLP3p1W3+nqDxE7i3MHd1k=; b=zwTnOD2HE+XqA8brgab7sWTPD8auT/XmFOIRN78iJyUtCkZ5z+HT3rkL/A4ndC37In kLlhfAma4I7fW1UGiPzOF8vnICPmKX7/CotBeEzgpWklhd0Rf9rJKulyWQdOyCvKAC/c jJuCeuspOenLMgxuKUmk5HO6F5Hgxdt5csFYW3vmRhIEMatYIkY8vdAs8fxTwVtUoasL LhzXC5yD6124UTQLsvtWOvSqmAowYSSRVnIxowNuKZ9wqzXy1XsCnVyKODd8WtVYlJlc 2fUizkHiNbS82waVDQbdzvTKeQTshScH42p/yrVzpGGF6rL5jiKavIWypop+NMg/kyCo z9Xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-118944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118944-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r21-20020ac85c95000000b004315aecf91bsi3697085qta.663.2024.03.26.05.11.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 05:11:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-118944-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118944-linux.lists.archive=gmail.com@vger.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 E17BF1C2AA8F for ; Tue, 26 Mar 2024 12:11:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D07EF7353D; Tue, 26 Mar 2024 12:11:38 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4696370CDA for ; Tue, 26 Mar 2024 12:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711455098; cv=none; b=SbzktnzZnRlp5blyBxfnjZcV4Fhm3iqEVt1rM0RsLjy8sOhxJGx9o/TRT4LSDxD/Uz+TY0JI5nQPNcwtEEi3wyUkFPURYL+H8GGT82IsCikVdJZyOGtkVZhrBiKi6rZz3UC3Jvn9HyuyKUhqDd1DJMjcIdUMGUicfN0W+sVshGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711455098; c=relaxed/simple; bh=lsoSm34ubJ+R6ngdvSLEb9Nqtayv+QYEjzkROLHcyw8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FqO4Xj8LNo3/O4GBPFs6jWBTxwg1zUkdovhnMtm9xUgJfTqH/O9cZ6OKA9uE9kBJDFr4zSOKZaP0bAzkpI0qvIZwIsAl7YqghvhGMnK/P7Kyd1ssv7/WPlis7J3UQCLMj3W99XBBPzHjelYnvD47hg2LLz+XVvJzk3o2kSiAh/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxK+l2uwJmAl0eAA--.53036S3; Tue, 26 Mar 2024 20:11:34 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxTs1zuwJm8eVoAA--.8693S4; Tue, 26 Mar 2024 20:11:34 +0800 (CST) From: Tiezhu Yang To: Huacai Chen , Thomas Gleixner , Arnd Bergmann , Marc Zyngier Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v2 2/3] irqchip: Select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP for IRQ_LOONGARCH_CPU Date: Tue, 26 Mar 2024 20:11:29 +0800 Message-ID: <20240326121130.16622-3-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240326121130.16622-1-yangtiezhu@loongson.cn> References: <20240326121130.16622-1-yangtiezhu@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8AxTs1zuwJm8eVoAA--.8693S4 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7GFW3XryxGw47Gr4UXr48Zrc_yoWDJrX_Cr yavFsrCa13CrW7tw1Iqa1fZrWYkan0gFs7Za1vvw1rX34xXwnxXF4IyF15XrsxGw4UtFna 9FWxCr1a9w12vosvyTuYvTs0mTUanT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAaw2AFwI0_JF0_Jw1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_ WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jr6p9UUUUU= 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. Otherwise, there exists "WARNING: unmet direct dependencies detected for GENERIC_IRQ_EFFECTIVE_AFF_MASK" when make menuconfig if CONFIG_SMP is not set on LoongArch. Signed-off-by: Tiezhu Yang --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 72c07a12f5e1..bfa1d77749f3 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -568,7 +568,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_HTVEC select LOONGSON_LIOINTC select LOONGSON_EIOINTC -- 2.42.0