Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp713656lqs; Fri, 14 Jun 2024 03:40:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuNrr0XyMqKH9JPl/QOP3cPZXlXqmh1Y30Y21pAE9zPZ3R8UCyqsFw5jh6CGP66pLMAX2EdNdi+D+9yUkNk8hlNaWKmlz6+YZD5GsWJw== X-Google-Smtp-Source: AGHT+IHNZKlg95KjrFBRlaw/RN6qjzJeJIj2le1FuoWVgiyAX81r6lxUBrw71SR8Ekh/+0XozR2C X-Received: by 2002:a05:6808:1895:b0:3d2:2512:5a45 with SMTP id 5614622812f47-3d24ea0a99fmr2037694b6e.54.1718361639225; Fri, 14 Jun 2024 03:40:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718361639; cv=pass; d=google.com; s=arc-20160816; b=Z4H0pk41a+WWHgKl9EAb1z4ldkwA9CtXWVN19q3ModFI99wsTwDXKUGQkkl6/EPtUG pxX9Augxw43JKyGCGHJf6r/bc+HnfFSZYaEeI3KHx4qYa1VOpnM+cO4nX2UdpO0uq1AX /ouX3PmVKnhaUEiIbz2v4UDz77504QsRQzhyT6yk3pyqDCESD20luEsiZJ6PnqXAWb17 bOFQ0rmAgU/K305Q44J0Zozi0IQN18xPyAD7BiYHWBqW2JwTN4xSsVkijPo+jaQqgzUa UAMELCq/yS2mvg2sIXhX4s/kHOk4VPWDj5A93LAt1npqMqsyzJ0LwKTlF0HTteFCxI5d Z/pA== 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:dkim-signature:dkim-signature:from; bh=+1NN8XVT31CYCXb+vZoMNRf75ND/htb0i/ZeSUfcTBY=; fh=6MfDlrX4IWj6w4/0mET5DKS+xxIy0dVXR7EciTCdkdM=; b=MZWhAOW2AzWVTAmG4uMhT9iSmUB8zXKMwNUZgM9PBweZJUaaMyxn/CtFthyJfLsQQn cir3S3ICiWhfMf8KWfvuR8+vGU70Fz6Jqu2iLPzpQw9s2+N6v1tEP7p953FIfnn/S9jZ sLZ42kvjf6CdvOnRf3qGSU7pKJlrRiy4SG62nC+p03Vc4/cnf1kvLs6NyhBqqkebSPmb V1FwGL/BAQZMxEGcioDoiy6MCLzuaT+iHURFKzd3yTXdVshqdH1cjRFEp1Yzl1eUJD3y EhKe+8kGnz89fKFupMiYYSj2RXU4iRkOVMbfieeRnoaumeosW3Kmkwv/GvZsF2sPvRCB vUNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0VcQKRsa; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-214778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee558ba25si3343710a12.654.2024.06.14.03.40.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 03:40:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0VcQKRsa; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-214778-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 333E428FAB2 for ; Fri, 14 Jun 2024 10:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A79C719AD81; Fri, 14 Jun 2024 10:25:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0VcQKRsa"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q/ujLmtV" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 797871946C4; Fri, 14 Jun 2024 10:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718360746; cv=none; b=Vv37k0vH3FRQpo/qi/jQdZbqtJw2tk+gY0NCj0Z9wxXa+c/Ez7qw5c+FixhdjS1y5TsyEF1el0++vqE/huntf72lUo2Q6hf8lzTMVXip1koeBI2UYcy/v0mta206Mhl/QfOzk+Ji1lBwlUQM3I4OnjZd6HuBbctvJbPSjy5S7cY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718360746; c=relaxed/simple; bh=ynXlB8OVlVAjLts3TSJguH/McbJys5RSK8YmKlRdBhU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WprvSiiHciWp4dIrJ+A8vf44VNQLfX9hooMscVUE7j3j2b2dhnazYWa1M63SLRfcfxrHcabKrHbaZ/7PVw1iI0sWk4fZjvNWFmp2uIteKlmpLeT9pFZGHRileKXZZPpHyLTE4OirLIvbRYg+VhwMhg6/J4bDntB0Fe4fbxNtVDg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0VcQKRsa; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q/ujLmtV; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Shivamurthy Shastri DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718360743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+1NN8XVT31CYCXb+vZoMNRf75ND/htb0i/ZeSUfcTBY=; b=0VcQKRsavDoYftiUfCtYhjdtvMAonSrJ1ZAKYh98VS6FOVkcI0COj4uyknF3KpsIC5sr66 R+P/9jl/uQ2fyP9To9CNZRqxCQ2P+N9R57KVcq0BmzLWRmE+drQGfddWiXyOWyPdImQD2u A0Pi4yA/LP/5BxZxNLlE1NZNYpM78aJnGFQE9VRbmVe814Y7PnAzVBYurS82mOIEqg3wn7 HxkqHu9FQ3gp4DqUPhPlgo4+YheQXPiEwDptOsw1zFE+EZa9WU6IOyH9tS/LcX9V96rBVF qbDMwYB0sh9kmx7ySYqOGihC9E3Olc76xtzQ4cUY+GSJUxKCLqcKeVVQ8xozyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718360743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+1NN8XVT31CYCXb+vZoMNRf75ND/htb0i/ZeSUfcTBY=; b=Q/ujLmtVIFjwC2SVpaNj/lD+gOK1mv7MdWczW+i5gp1oE+2HZfgyV/Aed+CcCPxNb66OOU l2lrEkJNxpQvGLDQ== To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, maz@kernel.org, tglx@linutronix.de, anna-maria@linutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, bhelgaas@google.com, rdunlap@infradead.org, vidyas@nvidia.com, ilpo.jarvinen@linux.intel.com, apatel@ventanamicro.com, kevin.tian@intel.com, nipun.gupta@amd.com, den@valinux.co.jp, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, gregkh@linuxfoundation.org, rafael@kernel.org, alex.williamson@redhat.com, will@kernel.org, lorenzo.pieralisi@arm.com, jgg@mellanox.com, ammarfaizi2@gnuweeb.org, robin.murphy@arm.com, lpieralisi@kernel.org, nm@ti.com, kristo@kernel.org, vkoul@kernel.org, okaya@kernel.org, agross@kernel.org, andersson@kernel.org, mark.rutland@arm.com, shameerali.kolothum.thodi@huawei.com, yuzenghui@huawei.com, shivamurthy.shastri@linutronix.de Subject: [PATCH v3 14/24] genirq/gic-v3-mbi: Remove unused wired MSI mechanics Date: Fri, 14 Jun 2024 12:23:53 +0200 Message-Id: <20240614102403.13610-15-shivamurthy.shastri@linutronix.de> In-Reply-To: <20240614102403.13610-1-shivamurthy.shastri@linutronix.de> References: <20240614102403.13610-1-shivamurthy.shastri@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Thomas Gleixner Nothing builds a platform_device MSI domain for wire to MSI on top of this. The "regular" users of the platform MSI domain just provide their own irq_write_msi_msg() callback. Signed-off-by: Thomas Gleixner Signed-off-by: Anna-Maria Behnsen Signed-off-by: Shivamurthy Shastri Cc: Thomas Gleixner Cc: Marc Zyngier --- drivers/irqchip/irq-gic-v3-mbi.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-mbi.c b/drivers/irqchip/irq-gic-v3-mbi.c index dbb8b1efda44..19298cc6c2ee 100644 --- a/drivers/irqchip/irq-gic-v3-mbi.c +++ b/drivers/irqchip/irq-gic-v3-mbi.c @@ -199,31 +199,16 @@ static int mbi_allocate_pci_domain(struct irq_domain *nexus_domain, } #endif -static void mbi_compose_mbi_msg(struct irq_data *data, struct msi_msg *msg) -{ - mbi_compose_msi_msg(data, msg); - - msg[1].address_hi = upper_32_bits(mbi_phys_base + GICD_CLRSPI_NSR); - msg[1].address_lo = lower_32_bits(mbi_phys_base + GICD_CLRSPI_NSR); - msg[1].data = data->parent_data->hwirq; - - iommu_dma_compose_msi_msg(irq_data_get_msi_desc(data), &msg[1]); -} - /* Platform-MSI specific irqchip */ static struct irq_chip mbi_pmsi_irq_chip = { .name = "pMSI", - .irq_set_type = irq_chip_set_type_parent, - .irq_compose_msi_msg = mbi_compose_mbi_msg, - .flags = IRQCHIP_SUPPORTS_LEVEL_MSI, }; static struct msi_domain_ops mbi_pmsi_ops = { }; static struct msi_domain_info mbi_pmsi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | - MSI_FLAG_LEVEL_CAPABLE), + .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS), .ops = &mbi_pmsi_ops, .chip = &mbi_pmsi_irq_chip, }; -- 2.34.1