Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4259745rwb; Sun, 7 Aug 2022 19:37:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Hqjl3HJB27Uv8K43Mzo0LLRDkGbZ0BBwB677Rft5Ax3QABwTtnxyphc0zvy8is+V/TO+H X-Received: by 2002:a17:903:40c7:b0:16e:e32d:259c with SMTP id t7-20020a17090340c700b0016ee32d259cmr16961282pld.67.1659926230012; Sun, 07 Aug 2022 19:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659926230; cv=none; d=google.com; s=arc-20160816; b=nk4qxSttQhr3G+BPa4Rbb8nRWB64AYP5oQ9fsEPbqHz9LAK47btES4homOlFpY1aLz M5ObUmUkvgWtZCbM2MQoWj7QiAaBBe0T8CroMMGLQazM6UUVneKcjnBcKcVMeZdBCH8K JBSMU5r14hGCZaTmw6DkdyzVpQ2QCoHx6wN9dOgbrB3KDNuN6KfCXA2kEHo8vQbNy/Xb VQ0ewYEWRlMdgEO+pfOEi6009HdgPPLeE7LThBXqz2y4jk2tg3ikuHBHNw+G9cT1jJB6 ruhCqAFLZHNI5oZF8OJI666pp2/0GRiTy+JyMg5RbnEPf5pSlj1syaQ+Qe8yTH9W0Un8 oO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8dRyZvrHaeHmiP5NMjzYxk0rgy7lAlwtL0DVNzGPLq4=; b=UR2IqJqNLOW04AEOn1ffZW0CzaVyF9b5k1lmtZjnSpEhrJvpZyBJsXNiIq42YmU84l go7GfX9GEdusRMXwyq/9d5NtVuMADQQxqs10Na0cEoLxJHMMflCwWNfyPkAIm3V1aMmH Gy9gmsKD2FRWU/aG0/dhVkedlxJDyXzX30j+t2ikDhxV0Ht8jUJ46haYk7kX7q3ULciT HjoVIquabDGzWiT2llG2gIHKZvCAHJJICekW+Bbfn6KLGI0Ga7GqfaO1O5s5wSI+G1vA t77QSnhm3Ix00pLBV1DR9ZsDQtmq+Enafnl2Upi0wN6T+0jgDhY5YX+C+Cm6fG+XbmSE BH8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SzBgpPzo; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u68-20020a637947000000b003f5d8756675si9998318pgc.371.2022.08.07.19.36.56; Sun, 07 Aug 2022 19:37:10 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=SzBgpPzo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242218AbiHHBeK (ORCPT + 99 others); Sun, 7 Aug 2022 21:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241961AbiHHBdN (ORCPT ); Sun, 7 Aug 2022 21:33:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CD39B87B; Sun, 7 Aug 2022 18:32:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4D49FB80DDF; Mon, 8 Aug 2022 01:32:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32BA2C433B5; Mon, 8 Aug 2022 01:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922352; bh=jtlJ/aF5jzgzQ3e/YRU9ZDxBgf3Qo3d8ZkJO5zUFZe0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SzBgpPzoN6ovh9w4JJ4zaZ1/zCedbDG9XQIN7xCGR+Kvhwmh3Ds/JaWHRKahQodLv sqLBIrhs++ONKRi0Pf6HR5QSY3Qlr63Zy+aEg469xBOuglZcs2acdtjXKl+x7IBnvs Me5arUmbdDBVIwyhkMuwMRhsZqPBTeyiMVI5NBzTG9XpFIa+cl+PVicYWtTaUi2h6m RHiJLcFRusocShfiG8dwEn+yQnSonCCKYe+79uLN0kUJ9fj3LgTkbBRS5rDqGbOWtq +jXER7rbbSdDeDTmYCPD4loeVO+ULZBWkqlWxX0WlffjJ4bwmh9qf7ASYgL9R5zxEl ImRZlOf/T0jWg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Samuel Holland , kernel test robot , Marc Zyngier , Sasha Levin , tglx@linutronix.de Subject: [PATCH AUTOSEL 5.19 19/58] genirq: GENERIC_IRQ_IPI depends on SMP Date: Sun, 7 Aug 2022 21:30:37 -0400 Message-Id: <20220808013118.313965-19-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013118.313965-1-sashal@kernel.org> References: <20220808013118.313965-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Samuel Holland [ Upstream commit 0f5209fee90b4544c58b4278d944425292789967 ] The generic IPI code depends on the IRQ affinity mask being allocated and initialized. This will not be the case if SMP is disabled. Fix up the remaining driver that selected GENERIC_IRQ_IPI in a non-SMP config. Reported-by: kernel test robot Signed-off-by: Samuel Holland Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220701200056.46555-3-samuel@sholland.org Signed-off-by: Sasha Levin --- drivers/irqchip/Kconfig | 2 +- kernel/irq/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 12664ac6ac2d..6b287dc025a9 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -177,7 +177,7 @@ config MADERA_IRQ config IRQ_MIPS_CPU bool select GENERIC_IRQ_CHIP - select GENERIC_IRQ_IPI if SYS_SUPPORTS_MULTITHREADING + select GENERIC_IRQ_IPI if SMP && SYS_SUPPORTS_MULTITHREADING select IRQ_DOMAIN select GENERIC_IRQ_EFFECTIVE_AFF_MASK diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig index 10929eda9825..fc760d064a65 100644 --- a/kernel/irq/Kconfig +++ b/kernel/irq/Kconfig @@ -82,6 +82,7 @@ config IRQ_FASTEOI_HIERARCHY_HANDLERS # Generic IRQ IPI support config GENERIC_IRQ_IPI bool + depends on SMP select IRQ_DOMAIN_HIERARCHY # Generic MSI interrupt support -- 2.35.1