Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4982047rwb; Sun, 22 Jan 2023 00:36:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXsadQtZ4V209Tgrk30YOjNNGmXNDNUnzuX+3neloE6Hf+KAzvCUVa+QphOuR+0nIKBVQhmu X-Received: by 2002:a17:90a:fe0c:b0:227:1b37:50c9 with SMTP id ck12-20020a17090afe0c00b002271b3750c9mr21021434pjb.5.1674376619386; Sun, 22 Jan 2023 00:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674376619; cv=none; d=google.com; s=arc-20160816; b=tWjw1xYB9ZJI6WBwdcL9R+wE25uiLzt3zv158JMVcaQa+Qz32HF1/TWBB6TJYUSvTR ek6fKeDOlzU0+TRdiQ33xSXz7mhwJcHDaP869Dh1gezA03Sl8ZuW2V0AkRoqCEGhUT9m e+F5PvXfvszF8r3IV+mLgK0nlAKYNCptoCwT4xEi72eDR6R9Pa1YKEGsZU3gHIi7FlXJ nat1DES3RqMKH2NiHHvP77IFGsKhga7VVi8iL1Ql2N31RqvqLJ/PKuWfzcG2vnhlK9Ox 019cydpUQpSMlhIIqrJenPzxdSYmDil5yLxEHFG08MN2sGrbY90sHfcHI5CpxafK7xU5 ghEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kYHRqnEqZ1qxwcvzfJ33cl40TcqRpaJOwIy9wGR4XGU=; b=beT3lIe2Rq358+qj0nH7a5A7bv1GfoJc/wAWveSZ6apqTWR0rtgPdzdHmCn6EG2rkc 0ZZGRbZT5Q9KuVwvx4Pkh80WuvRbrByNh45HFDSkIxao3nXdwy9pMZtQWAeacN8bE9+/ cLS6w6PCdfwR/I84V4foa8viShcClE6/7WwfovGqTgRt8WtkA178Ia7EJ2LUEtiUjVjd SCMEQ1Au/dR7Zaq1sCIJmGg8BRbOi5+z8Qd6eFmQdN3Geu5WHsPIZbm80A75DQgAY9NH 4QmvcQEBjtkhdPIezeaz/LxXlXMAPe2SeKXsT39B/NWz8Stfzf6bzlrO1a6uyx2fm9nH 0/wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="mN/39yVt"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a17090ad99400b0022932e92038si8590651pjv.130.2023.01.22.00.36.53; Sun, 22 Jan 2023 00:36:59 -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=@ti.com header.s=ti-com-17Q1 header.b="mN/39yVt"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbjAVIR2 (ORCPT + 50 others); Sun, 22 Jan 2023 03:17:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjAVIR0 (ORCPT ); Sun, 22 Jan 2023 03:17:26 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9AFB222DA for ; Sun, 22 Jan 2023 00:17:25 -0800 (PST) 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 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