From patchwork Thu Nov 17 15:08:24 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: 21733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp453605wrr; Thu, 17 Nov 2022 07:12:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4fxtjlIqxeA1CkuqVfMc6smT0xNNeJEFxels5TRMjarbCSi+h3Ia/6JKre4zTyADlA/few X-Received: by 2002:a17:906:c40b:b0:7ae:1e53:95b2 with SMTP id u11-20020a170906c40b00b007ae1e5395b2mr2448565ejz.333.1668697934039; Thu, 17 Nov 2022 07:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668697934; cv=none; d=google.com; s=arc-20160816; b=RrE0UyuDnP3WI9QJpSk6XPEjvS7m14WnckSB/Wjn3G7mCCpvLS+tVZJaBVVI563xdm xVKm3XzL3SEyLHjWpb7lb74lQDxBuAajLujibaEw5V65Pr173o3qZcdoDhmUNoTsvQ5G zeoesinBDMsd78rZQiOobG3X9ikuezsOp5cmcSrEo5wOMlDloPuS7sdisUEefC6LDoI5 d4KpMXrIv8NG2JwQTjtJRMQgBAzqmg73YgcvROvf/EEALh4sgdJaSNGzPxnEv4ZqyLon lfQGLiNq869TOlGO6cu+byyL1MTdhMuLqkvOsVdemdWZhVd4lP4GHTSzWxBrufTkcA13 GJDg== 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=7AI5q4SFo/xo87sYTWbgmfMVQgBAzoy4AFJjjnkiOeY=; b=ciCwTohdiFePPi8+dNDE53UuyyfHSZf+wrHWUxmKCwhjPA2CfZRlWlaCrLp97qF3Ny w3BWfIuzO/gwxkl7rVk/mkiVeQgvO0893XYSov9yTSNsEspgv6G1n8GVwNs46DGvR3PF 1KmFhJtvicvtEtizYezEMSLAaSF3nxGwvzd8IJMqeIlUrXML50cN0PpEpoOXk3cJCLWu V9aPifjV4MjUiV/lMYOAvAVDt1NeFK2gIjVLTXUd4HMqyLoyfP+f9r2BIzPX65jiKPei 3v7RApnOh3m7vMPji8gKfBEHGiVR+C0vsgEHkok3Fkwy3GMNUHd69onXop0wDEOwEU42 Wv0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=AZDuAXxR; dkim=neutral (no key) header.i=@linutronix.de header.b=vHaykKWr; 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 du3-20020a17090772c300b007aeab6a1174si908095ejc.633.2022.11.17.07.11.48; Thu, 17 Nov 2022 07:12:14 -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=AZDuAXxR; dkim=neutral (no key) header.i=@linutronix.de header.b=vHaykKWr; 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 S240493AbiKQPLH (ORCPT + 99 others); Thu, 17 Nov 2022 10:11:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240470AbiKQPJ2 (ORCPT ); Thu, 17 Nov 2022 10:09:28 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 684707666; Thu, 17 Nov 2022 07:08:27 -0800 (PST) Date: Thu, 17 Nov 2022 15:08:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668697705; 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=7AI5q4SFo/xo87sYTWbgmfMVQgBAzoy4AFJjjnkiOeY=; b=AZDuAXxRP2WJOtJsdXnCA4dpJTIFWVbMn0J+oOZKPX6Ezgz/IUfrYAYp3BDj/Kbz9DqGAC eyMbWmA3zctgcraNU6mgeZIx1nGF3uYSykc82BmxhxgyK1Mv5sPVs6/rBe3XGGiVQE/NO5 muRl/NnhmipfeU2XNr93ZTmLZHRBArPLbVj7mDi+Zdi1LYzLwnQsNnlS4sOe6eDcV8usS6 VL4orQ5yhZ5SSEO46W+QyhUtHdrLFlWPueG6Tv6LgmY+sYYoVQqI4F340NEYuCbf1CJa+Y 5jdMq7yvexmU1q6q/0gmgXe3Ybz7H8pGqx9+5N83m2KOypYha1aC+KBjDxXumg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668697705; 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=7AI5q4SFo/xo87sYTWbgmfMVQgBAzoy4AFJjjnkiOeY=; b=vHaykKWrnjGUcQTwXNj15hWzPm8WkgJPFcfgNZY8AL9DPNPsR6sczadvdW1y3+Uh7pIdMf 7BMLpipP6wajLaAg== 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] powerpc/pseries/msi: Use msi_domain_ops:: Msi_post_free() Cc: Thomas Gleixner , Ashok Raj , Jason Gunthorpe , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20221111122014.120489922@linutronix.de> References: <20221111122014.120489922@linutronix.de> MIME-Version: 1.0 Message-ID: <166869770413.4906.968716787674638204.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?1749756604664399001?= X-GMAIL-MSGID: =?utf-8?q?1749756604664399001?= The following commit has been merged into the irq/core branch of tip: Commit-ID: c4bc51b1dd611fcce53849254c6582334368c715 Gitweb: https://git.kernel.org/tip/c4bc51b1dd611fcce53849254c6582334368c715 Author: Thomas Gleixner AuthorDate: Fri, 11 Nov 2022 14:54:28 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 17 Nov 2022 15:15:19 +01:00 powerpc/pseries/msi: Use msi_domain_ops:: Msi_post_free() Use the new msi_post_free() callback which is invoked after the interrupts have been freed to tell the hypervisor about the shutdown. This allows to remove the exposure of __msi_domain_free_irqs(). Signed-off-by: Thomas Gleixner Reviewed-by: Ashok Raj Reviewed-by: Jason Gunthorpe Link: https://lore.kernel.org/r/20221111122014.120489922@linutronix.de --- arch/powerpc/platforms/pseries/msi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/pseries/msi.c index a3a71d3..3f05507 100644 --- a/arch/powerpc/platforms/pseries/msi.c +++ b/arch/powerpc/platforms/pseries/msi.c @@ -447,21 +447,18 @@ static void pseries_msi_ops_msi_free(struct irq_domain *domain, * RTAS can not disable one MSI at a time. It's all or nothing. Do it * at the end after all IRQs have been freed. */ -static void pseries_msi_domain_free_irqs(struct irq_domain *domain, - struct device *dev) +static void pseries_msi_post_free(struct irq_domain *domain, struct device *dev) { if (WARN_ON_ONCE(!dev_is_pci(dev))) return; - __msi_domain_free_irqs(domain, dev); - rtas_disable_msi(to_pci_dev(dev)); } static struct msi_domain_ops pseries_pci_msi_domain_ops = { .msi_prepare = pseries_msi_ops_prepare, .msi_free = pseries_msi_ops_msi_free, - .domain_free_irqs = pseries_msi_domain_free_irqs, + .msi_post_free = pseries_msi_post_free, }; static void pseries_msi_shutdown(struct irq_data *d)