From patchwork Mon Dec 5 21:41:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 29966 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2487919wrr; Mon, 5 Dec 2022 13:46:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+xm4k7gmASgZ52RY8RDp1fIdCo6w5hqFRUe5dkfy3VWtcxKYzb4qrXneifGxA71qqWazR X-Received: by 2002:a17:903:240b:b0:186:9fc5:6c2c with SMTP id e11-20020a170903240b00b001869fc56c2cmr66850647plo.174.1670276767452; Mon, 05 Dec 2022 13:46:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670276767; cv=none; d=google.com; s=arc-20160816; b=H/BqMZCdotgnLZeU5BCRwreP9LCD30lIG7H2udg568N9rq4Ht/cVml62Oh3ikIJI28 smgwaWDDwR+rLP3ArQge/DsLFxlYtd6VYcpXzH4f/BELXxdnaXsLbVWJrflGymxxxkDI vxw0REsoaovfatb0TlGmeLF/c3d0auzqZkRz7Egcyd4ufnxO/J/hv6MhRhfVwi0LJWg/ gsf+Qjimatv7Ns0B7dznNwIWiysSuxr6snya5HK5qWtVhbDQqK5QfnOSqpWD0H68L+JF nMBc0gSohoPsBdFCia5/Emcb5e/dGZN9peLBBmszRL1HnBzgzMezbwGtG+Nsgz3WQfqn NdgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=GHAaAKFaSzlMYMVDJBVPWGjBBLmEsISs8adZvUKpx6k=; b=vLyW2Jus6cog3rRhZAfk0rR+7It7cHsiD6EU7lo5IQTCBl+iKAILQkB3YmJdk6aen/ +rvbKiug4Cs/ViZx05pieESSsUmQCIiPr6vpnletGN0dzdylPbU3TPGB7y/j1XpKODBk GuW63NI9jR4NIrAeGE/lfe5CY6EgTKIJEvvtTFJQMr612sbYyicJA63wjuP/cD3zp/qT c8WRNDEntMHYDHTBRDgzp4q1aUxd0txX4qac5dN6PLUmTkYn/R2R9RL9PM/RTXne6GUS RpsNtfkg4q97Th/vGmotIVPGTNWVPmx9S/cLpT3TljnA9CZdLajkhAEQaejXivsowcBt Txcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=C205CIM9; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170903200c00b00189b36a5427si11792098pla.16.2022.12.05.13.45.53; Mon, 05 Dec 2022 13:46:07 -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=@linutronix.de header.s=2020 header.b=C205CIM9; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234015AbiLEVmm (ORCPT + 99 others); Mon, 5 Dec 2022 16:42:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233704AbiLEVlw (ORCPT ); Mon, 5 Dec 2022 16:41:52 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04A4D27904; Mon, 5 Dec 2022 13:41:52 -0800 (PST) Date: Mon, 05 Dec 2022 21:41:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670276507; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GHAaAKFaSzlMYMVDJBVPWGjBBLmEsISs8adZvUKpx6k=; b=C205CIM9U7BvJzoGZ84nF+0r8gfs0W0vegXvayO1eaz37CYFOv+PwKQ8Fs5iXQ9bnGJLHC jDc6FLFqxFEcdUVrstaSK163U3K6Frp5+zNqaNEQ5ByAGZYOihL1mKUrAlpuTb5SIuV62e 9DnmgeVbR7Enmgdw1muiMb+3pgDp7VKGrg/mojv8fUNLpLXWiHlajDc4XMIZ942Ogq5rJf X7dnUDURRJ45RDBiGAXQtIK/7LzLa4EyfGDiyrWJPvQvJgk52GqOj8jMSZoEbvbXN9uL+d htoUCxzbxORQKOlQHRGfDP0WwcBfF9BrMmo+osuLdKe+3g3u+MUp9hQ1smZPjw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670276507; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GHAaAKFaSzlMYMVDJBVPWGjBBLmEsISs8adZvUKpx6k=; b=WQbPvXp1J2t0sriRYmfi1ZofW7Zwx1Pg0XhQEz3o+vB3Q84OAm7htJsnkF+2/Dw3bu9OtY /vMNj5HWXCIpvWAw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] x86/apic/msi: Enable MSI_FLAG_PCI_MSIX_ALLOC_DYN Cc: Thomas Gleixner , Kevin Tian , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124232326.787373104@linutronix.de> References: <20221124232326.787373104@linutronix.de> MIME-Version: 1.0 Message-ID: <167027650732.4906.2697847868957858271.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750427153318507383?= X-GMAIL-MSGID: =?utf-8?q?1751412131924797900?= The following commit has been merged into the irq/core branch of tip: Commit-ID: 486254ad967dbef37fd797dd296fe69b465aa0f9 Gitweb: https://git.kernel.org/tip/486254ad967dbef37fd797dd296fe69b465aa0f9 Author: Thomas Gleixner AuthorDate: Fri, 25 Nov 2022 00:26:26 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 22:22:34 +01:00 x86/apic/msi: Enable MSI_FLAG_PCI_MSIX_ALLOC_DYN x86 MSI irqdomains can handle MSI-X allocation post MSI-X enable just out of the box - on the vector domain and on the remapping domains, Add the feature flag to the supported feature list Signed-off-by: Thomas Gleixner Reviewed-by: Kevin Tian Acked-by: Marc Zyngier Link: https://lore.kernel.org/r/20221124232326.787373104@linutronix.de --- arch/x86/include/asm/msi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/msi.h b/arch/x86/include/asm/msi.h index 7702958..935c6d4 100644 --- a/arch/x86/include/asm/msi.h +++ b/arch/x86/include/asm/msi.h @@ -63,7 +63,7 @@ struct msi_msg; u32 x86_msi_msg_get_destid(struct msi_msg *msg, bool extid); #define X86_VECTOR_MSI_FLAGS_SUPPORTED \ - (MSI_GENERIC_FLAGS_MASK | MSI_FLAG_PCI_MSIX) + (MSI_GENERIC_FLAGS_MASK | MSI_FLAG_PCI_MSIX | MSI_FLAG_PCI_MSIX_ALLOC_DYN) #define X86_VECTOR_MSI_FLAGS_REQUIRED \ (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS)