From patchwork Tue Jan 19 14:06:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Jun X-Patchwork-Id: 12029873 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E42DAC433DB for ; Tue, 19 Jan 2021 14:09:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 854C623121 for ; Tue, 19 Jan 2021 14:09:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 854C623121 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=gQMy3vtOHZJqfirLw3EvDn4YPMSD8s9qxtPyq/zscSY=; b=FTHqlx7uoboi2FMnP5vtnJKRQj OJQxrfC3Ks0tckgNBowuJzgONaAI5pPthVrJ/PeyawiCNSL2vxI4Z0Rj04lTruDWpVC9jROEA5log kIRC2dhcZc0+cCS420rJdZpoIQezC5dRMZ8OqAPrge9klLiqYk2KmDywupvvjFPbeII4tSlEX1UZe PtjpePb3JITOwGgYX7fLau2Tk4cwUjYBEmfI0UEpK3judmtLWzbGP6CyIeoDKaoGZthaeQOOaUFcM 1LNOGRRYqvUhMyWPq6oKCs2/bxdTadND7Cuih7huNIwseEevpDWviHzY0UdTwQZnFKzAVq644DDUK svt81K1w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1rfM-0002C6-GE; Tue, 19 Jan 2021 14:07:28 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1rfF-0002AM-1h for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 14:07:27 +0000 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DKr5p65lFzl7Cq; Tue, 19 Jan 2021 22:05:34 +0800 (CST) Received: from mdc.huawei.com (10.175.112.208) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Tue, 19 Jan 2021 22:06:50 +0800 From: Chen Jun To: , Subject: [PATCH] arm64: kernel: Make IPI_WAKEUP under control of CONFIG_ARM64_ACPI_PARKING_PROTOCOL Date: Tue, 19 Jan 2021 14:06:09 +0000 Message-ID: <20210119140609.106420-1-chenjun102@huawei.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.208] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_090721_356671_81486E98 X-CRM114-Status: UNSURE ( 7.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, guohanjun@huawei.com, rui.xiang@huawei.com, houtao1@huawei.com, will@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org since commit 5e89c55e4ed81d7abb1ce8828db35fa389dc0e90 ("arm64: kernel: implement ACPI parking protocol") On arm64, IPI 6 will be wasted without setting CONFIG_ARM64_ACPI_PARKING_PROTOCOL. Signed-off-by: Chen Jun --- arch/arm64/kernel/smp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index ad00f99ee9b0..8b494ad1c61e 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -73,7 +73,9 @@ enum ipi_msg_type { IPI_CPU_CRASH_STOP, IPI_TIMER, IPI_IRQ_WORK, +#ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL IPI_WAKEUP, +#endif NR_IPI }; @@ -795,7 +797,9 @@ static const char *ipi_types[NR_IPI] __tracepoint_string = { [IPI_CPU_CRASH_STOP] = "CPU stop (for crash dump) interrupts", [IPI_TIMER] = "Timer broadcast interrupts", [IPI_IRQ_WORK] = "IRQ work interrupts", +#ifdef CONFIG_ARM64_ACPI_PARKING_PROTOCOL [IPI_WAKEUP] = "CPU wake-up interrupts", +#endif }; static void smp_cross_call(const struct cpumask *target, unsigned int ipinr);