From patchwork Wed Oct 16 09:41:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume LA ROQUE X-Patchwork-Id: 13838065 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 14450D1AD39 for ; Wed, 16 Oct 2024 09:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=f7lfgvZIb1YenbVpidy5yYoPzUObJFuBK63jpMu7KcE=; b=QBf8YXZQxst8G3EIEWupNqLFV2 sREIvj45YCeF9Bgy7hcAJ7reJAVPtXXn43zImKh7F220ZZuX93lZ7m9FzMrfkd09JtbONuB8/eB0u swAKfuUwq3M83W4ZKstF3VTNmIroUcAAgYsXwnx8SvnhmZZXc6ElkcM4pgNnTgN4xVyPfAzVtcfKR gcTTAoPRS1Yf2injehWkb5U/hHr9vsJ1ylkM2YcLjT+hNZCsQc6b07Ydb6INSeiwZoElymtjYZiwK RbUQXLI4z4iTK1qOnjG4fVLt3w+ZmtecNsuGyYEoGfnjnzXjXaGASmCOKDTZX2CioXCMYfbPd7uhG uBnmO/hA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t10dU-0000000BIRU-39Tl; Wed, 16 Oct 2024 09:48:08 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t10X5-0000000BGsS-0Zkl for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 09:41:32 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4311ae6426aso43503005e9.2 for ; Wed, 16 Oct 2024 02:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1729071689; x=1729676489; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=f7lfgvZIb1YenbVpidy5yYoPzUObJFuBK63jpMu7KcE=; b=r1VHoARDY0XdYqVe306ziP1YwjUTeFHI/3jqdZuZ495wVC2/tGQ2KdQHTAx1RIh4OV NU8eqaKf/fAJAfI3OZ/HJhq+S1FRlNLmX5M6hQSTy2sleN9JpNVAPLbPqfgOIj1XKJiC p5vMqIwmmmfRdZB9IfSuvMFV7fxRQIccBRXs8DMUgaQIT9s0F9U+74bXmIIo35diTKgv ToX7JGWPtPkzYb/qLhtKv7kXb1iQImLxq3jrWiahswuYg1YDwP1q3qM4gy/aKRfWy9nS Vy4sg946YNWUfUReHOEhIAV84gMRU/F4QtXPYlvpID0JQP7nbx8GzPa3dNivxThvKAh1 7GZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729071689; x=1729676489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f7lfgvZIb1YenbVpidy5yYoPzUObJFuBK63jpMu7KcE=; b=e7pzi6cGw9GdzkPCUO6pcPfVQu50RNRh4ZsuRgABswhcOlLG6uUbKsjc2UMOXWdeJf mt4Zrnm2nZAWRF9U6e3FDpxPGq+t6JRbAYX0fojoopkglyPjnVZ8F3MTYbwG/Me9hysj Wy4Ha+QsuG712gwNI2RaggnE1k3wv37h40d2S5I6rwXoVIpcPwSZXla6CyxWbaeLz3U4 u3QqdOy0PB2GYbh2rDMWprlZbrfBr4ho8+rcEip5Ry654vKgxyoqnavHK7aDBJM6/VAf 4dT/IunNmtQpDnyh5jDzDnqBcfN7a+lBwboHlQ1ZKeown5tvlXLG13Anw3szaFWnCiLb Glrw== X-Gm-Message-State: AOJu0YwZm0coTBTuMAWYu+3aSLlIVGChWheBGKxwIMR+nX5ooq475qFT 3v+jO3TIut40xmx/zeBU5lAzgMa0222ziU41wxELLaq9lEVQ35RDXMUCeJ7k840= X-Google-Smtp-Source: AGHT+IHwFqtmKM8A0lRCwrdLulv4mevKVbMVD+7jZsLahbKkNMAMM/eN9mnfnqFlfRXJnm/u2LsGLA== X-Received: by 2002:a05:600c:4514:b0:426:60b8:d8ba with SMTP id 5b1f17b1804b1-4314a362525mr25267905e9.28.1729071688994; Wed, 16 Oct 2024 02:41:28 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:472a:1760:2b0d:11e9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4313f56998fsm43654735e9.16.2024.10.16.02.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 02:41:28 -0700 (PDT) From: Guillaume La Roque Date: Wed, 16 Oct 2024 11:41:09 +0200 Subject: [PATCH v3 1/2] irqchip: Kconfig: module build support for the TI interrupt router driver MIME-Version: 1.0 Message-Id: <20241016-timodules-v3-1-fa71091ade98@baylibre.com> References: <20241016-timodules-v3-0-fa71091ade98@baylibre.com> In-Reply-To: <20241016-timodules-v3-0-fa71091ade98@baylibre.com> To: Catalin Marinas , Will Deacon , Thomas Gleixner , Nishanth Menon , Tero Kristo , Santosh Shilimkar Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, vishalm@ti.com, Mattijs Korpershoek , Kevin Hilman , Guillaume La Roque , Nicolas Frayer X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_024131_223152_8480C10C X-CRM114-Status: GOOD ( 13.13 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Frayer Added module build support in Kconfig for the TI SCI interrupt router driver Signed-off-by: Nicolas Frayer Signed-off-by: Guillaume La Roque --- arch/arm64/Kconfig.platforms | 1 - drivers/irqchip/Kconfig | 3 ++- drivers/irqchip/irq-ti-sci-intr.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 6c6d11536b42..393845a3ae5c 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -135,7 +135,6 @@ config ARCH_K3 select SOC_TI select TI_MESSAGE_MANAGER select TI_SCI_PROTOCOL - select TI_SCI_INTR_IRQCHIP select TI_SCI_INTA_IRQCHIP select TI_K3_SOCINFO help diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 341cd9ca5a05..a958731404e9 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -533,9 +533,10 @@ config LS1X_IRQ Support for the Loongson-1 platform Interrupt Controller. config TI_SCI_INTR_IRQCHIP - bool + tristate "TI SCI INTR Interrupt Controller" depends on TI_SCI_PROTOCOL select IRQ_DOMAIN_HIERARCHY + default ARCH_K3 help This enables the irqchip driver support for K3 Interrupt router over TI System Control Interface available on some new TI's SoCs. diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c index c027cd9e4a69..b49a73106c69 100644 --- a/drivers/irqchip/irq-ti-sci-intr.c +++ b/drivers/irqchip/irq-ti-sci-intr.c @@ -303,3 +303,4 @@ module_platform_driver(ti_sci_intr_irq_domain_driver); MODULE_AUTHOR("Lokesh Vutla "); MODULE_DESCRIPTION("K3 Interrupt Router driver over TI SCI protocol"); +MODULE_LICENSE("GPL"); From patchwork Wed Oct 16 09:41:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume LA ROQUE X-Patchwork-Id: 13838067 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 705E7D1AD39 for ; Wed, 16 Oct 2024 09:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=riDwr2JJEmNVTbyqdrMB0sCoh2/8iNo6TFpm2lok36g=; b=x70u+suDNqa3VD/+mKFA5HoeDC 15niPOA8PRlXax18/el+/9rkNw3R1fcOVU0rg9AcnZqBaA2aLvmWK7/GnQw34GTIL7qP9wq4PHF6o qpzxPvYwAfGjgvr+wCcCFytDM51i7PasZHQJgToC3ONNmL7RumSt6AecJkq8c92ttCIi4yU1xtKBh DzZHKRDoRXj6Rg+eUc/o3Uih+ehKrQ8PxEm/vN1xkJsVJgQYv2w3VjZ9CWy7uO8PLo0K2F0J8E0M8 9iVtCFdGFedgMqlWjpou6zn6j4KdCxvJrHLnoSTh+g6x60UowaFcJKoIUQOP7ZhTfO+Tkx3aBQuDH 7OprHBIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t10gH-0000000BJ4R-3UPg; Wed, 16 Oct 2024 09:51:02 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t10X5-0000000BGsb-26Z5 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 09:41:34 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43111cff9d3so48130865e9.1 for ; Wed, 16 Oct 2024 02:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1729071690; x=1729676490; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=riDwr2JJEmNVTbyqdrMB0sCoh2/8iNo6TFpm2lok36g=; b=MkpqTnWS3m5bSiF5Bn2zN7neqLKIWanrAcGuWvz485b8/12lx9wS1yrDleVtW1HwAK wSeoyP4bU5R43GiZ9VTGzPj0huU8oUtBIhjkvNZiJpDGFz/hjB5+l7BpYkrrHsZJLuge SeiRFsfEYCItbnZT9RBIIyWUC13joFeBhjCUPIoZA14IeQ58auUQ9YWudv0vZ+qABN90 PyxbNgF/4t7L8UTqf2Ar2yA6N7LoM6toG0pkIFQDJCz6k3DJLViic13DP1JQCNyNJTn9 lye24y/gpxsTyvAGNdA6AHCY9XI2ShxzjOMQ6cCzpZjLk39I3S+A76oT7vCiq0XGEs0e bBbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729071690; x=1729676490; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=riDwr2JJEmNVTbyqdrMB0sCoh2/8iNo6TFpm2lok36g=; b=a/ly0BQyUJqYzKo3YOPscG7x3UHUc0eKLJTG2tjxHOfEAXCOx6X7JWil/92wjeVIrq RuFwSCUwEnYQTN2JMEBTQScCu58pd1hbtklRygmaoyK7fonce9f8NYkOT/H5vePt7fzI QFjrpV2uYbkwlhQjDrw1r4DPh3eCA+DJ359ehKK0GlzIWXQx2gd9nhtZo6kJyu4hPSG1 3K3l3kPprFxNtxVhO+kN+Xsee+gH+d6xL9FeOBHtvixsraxQvrPEO9Wn+w9nH8rDSsY5 +zwEBazmmWgmLkQczX1V2nvJFNPnlFsRRx3fyYvlUpi96+X+e6GLwg36Nn7Y/bKY7D4A 5puQ== X-Gm-Message-State: AOJu0YxylG9jicAOKIP6sLNCq77FfmFN4DhosDUOzr8EeiXFDnJNmKVg OiGhkHY5ISqN9i9sMgimn8hJWEHk3wkLcLJBSbr1PY+US44iJ1cS86OwXT4joNVHMYDb3dxi3WM 9 X-Google-Smtp-Source: AGHT+IHY1BwsiWUW9BTJw3ej/32B3c8IScpK2B6P5JrV+KdWHB8+oQRtl4NPq964yjdwwEBMyp1RjQ== X-Received: by 2002:a05:600c:3ca3:b0:42c:de2f:da27 with SMTP id 5b1f17b1804b1-4314a285160mr27627415e9.2.1729071690002; Wed, 16 Oct 2024 02:41:30 -0700 (PDT) Received: from [127.0.1.1] ([2a05:6e02:10a5:e010:472a:1760:2b0d:11e9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4313f56998fsm43654735e9.16.2024.10.16.02.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 02:41:29 -0700 (PDT) From: Guillaume La Roque Date: Wed, 16 Oct 2024 11:41:10 +0200 Subject: [PATCH v3 2/2] irqchip: Kconfig: Added module build support for the TI interrupt aggregator MIME-Version: 1.0 Message-Id: <20241016-timodules-v3-2-fa71091ade98@baylibre.com> References: <20241016-timodules-v3-0-fa71091ade98@baylibre.com> In-Reply-To: <20241016-timodules-v3-0-fa71091ade98@baylibre.com> To: Catalin Marinas , Will Deacon , Thomas Gleixner , Nishanth Menon , Tero Kristo , Santosh Shilimkar Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, vishalm@ti.com, Mattijs Korpershoek , Kevin Hilman , Guillaume La Roque , Nicolas Frayer X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241016_024131_613689_5B4F83BC X-CRM114-Status: GOOD ( 14.92 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Frayer Added module build support in Kconfig for the TI SCI interrupt aggregator driver. The driver's default build is built-in and it also depends on ARCH_K3 as the driver uses some 64 bit ops and should only be built for 64 bit platforms. Signed-off-by: Nicolas Frayer Signed-off-by: Guillaume La Roque --- arch/arm64/Kconfig.platforms | 1 - drivers/irqchip/Kconfig | 5 +++-- drivers/irqchip/irq-ti-sci-inta.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 393845a3ae5c..9dea47decfbd 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -135,7 +135,6 @@ config ARCH_K3 select SOC_TI select TI_MESSAGE_MANAGER select TI_SCI_PROTOCOL - select TI_SCI_INTA_IRQCHIP select TI_K3_SOCINFO help This enables support for Texas Instruments' K3 multicore SoC diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index a958731404e9..9646322345e4 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -544,10 +544,11 @@ config TI_SCI_INTR_IRQCHIP TI System Controller, say Y here. Otherwise, say N. config TI_SCI_INTA_IRQCHIP - bool - depends on TI_SCI_PROTOCOL + tristate "TI SCI INTA Interrupt Controller" + depends on ARCH_K3 && TI_SCI_PROTOCOL select IRQ_DOMAIN_HIERARCHY select TI_SCI_INTA_MSI_DOMAIN + default ARCH_K3 help This enables the irqchip driver support for K3 Interrupt aggregator over TI System Control Interface available on some new TI's SoCs. diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c index b83f5cbab123..a887efba262c 100644 --- a/drivers/irqchip/irq-ti-sci-inta.c +++ b/drivers/irqchip/irq-ti-sci-inta.c @@ -743,3 +743,4 @@ module_platform_driver(ti_sci_inta_irq_domain_driver); MODULE_AUTHOR("Lokesh Vutla "); MODULE_DESCRIPTION("K3 Interrupt Aggregator driver over TI SCI protocol"); +MODULE_LICENSE("GPL");