From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B7BFC54EAA for ; Sun, 22 Jan 2023 08:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=ZbJ3as94JiLzoDlrQJ2i8uZ7A/av/mo6HZrPadPEwCo=; b=jQDVYWe7zsy8Lv Q1kO24qxVi9XQtmu8+G/v5fYLOM4bpdsW2Gd7t10wzvFL3fKZXQHg/qVTZ34BtGN+Wv7UZDV8VtcT e8xQgWC8Xua/7TVcliTHSqs5uUw9+/deK08WtLfCQL+CzDgBgg0z4Ete+QDOhGjIl0dQSOttHxUwB mkB7NSEXJkuo2xsdd7t1yxCT8Ajp6ODpchwjys4QTqT00SPtyTEz8Jj4lgGig4uq91TVnjF8ebx/c HhUNzVXNvcOjaeO7i5YQwVqCjG60r0Z//FXE8RNz/v9N00yOM2f041/n45qQpnGlnVs8C5MmfKRwa TqPlibYlPA5LF/uMWqRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJVXb-00F0Xc-6W; Sun, 22 Jan 2023 08:17:27 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJVXY-00F0Vp-1H for linux-arm-kernel@lists.infradead.org; Sun, 22 Jan 2023 08:17:25 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30M8GoEQ039892; Sun, 22 Jan 2023 02:16:50 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674375410; bh=kYHRqnEqZ1qxwcvzfJ33cl40TcqRpaJOwIy9wGR4XGU=; h=From:To:CC:Subject:Date; b=mN/39yVtf/MVt1QGsl/c3qU0FtdAWKZdFSnniW60n9wrWi+MVZzAwXLKnTBDPtM7o AysXC39P7rP0spYvQV00WVxOUMa2RlO38OxrX5x2J2ZUNumglTy3B1G1fiD1g1UjdM uhQdYFm+fT+4xzE8uCTJF3gO9Fdnsa4VAmN/1/Iw= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30M8Gox1021099 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 22 Jan 2023 02:16:50 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sun, 22 Jan 2023 02:16:49 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Sun, 22 Jan 2023 02:16:49 -0600 Received: from ula0132425.ent.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30M8GjIc079831; Sun, 22 Jan 2023 02:16:46 -0600 From: Vignesh Raghavendra To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , Marc Zyngier CC: , , Vignesh Raghavendra Subject: [RFC PATCH 0/2] irqchip: irq-ti-sci-inta: Add IRQ affinity support Date: Sun, 22 Jan 2023 13:46:05 +0530 Message-ID: <20230122081607.959474-1-vigneshr@ti.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230122_001724_194536_8E4A9C47 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Interrupt Aggregator (INTA) IP INTA on TI's K3 SoCs convert DMA global events (MSI like) to wired interrupts (VINT). 64 events can be mapped to single VINT. Currently driver maps multiple events to single wired interrupt line. This makes setting IRQ affinity impossible as migrating wired interrupt to different core will end up migrating all events to that core. And since DMA events related to networking IPs and other high IRQ load IPs are behind this INTA logic, it creates load on a single CPU, thus limiting overall performance of these peripherals This series rewrites events to VINT mapping logic to have only one event mapped to VINT as much as possible. It falls back to aggregating events when run of unique VINTS. In most systems there are enough VINTs to not need aggregation. Also, if IRQ affinity and hint is set by client driver, such VINTs are reserved and no more events are mapped to those VINTs. This allows to implement IRQ affinity callback as simple propagation to affinity setting to parent irqchip (GIC). Vignesh Raghavendra (2): irqchip: irq-ti-sci-inta: Don't aggregate MSI events until necessary irqchip: irq-ti-sci-inta: Introduce IRQ affinity support drivers/irqchip/irq-ti-sci-inta.c | 84 +++++++++++++++++++++++-------- 1 file changed, 64 insertions(+), 20 deletions(-) -- 2.39.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel