From nobody Tue Oct 7 18:25:14 2025 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF8A91DF271 for ; Mon, 7 Jul 2025 15:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751902564; cv=none; b=d91wjsOve27tApfCuH5N7hIbdFBA9wCkdQ130d6IIihaha/AH+pOAjSP406/rSg2a+6Y+Hgiok/uPXZylA6FTd0lS8M1oLaB1ZEdAMGjuO5JOLnpjySAZdhKxaKCu31mVAfaNU7CrVz7D7wZUZKNvE1y37N4DpMHMWKs+LomYN0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751902564; c=relaxed/simple; bh=WyB4Uxje2L7Q1fJYUE13OWmnR/q/Nxc7UtQxjd5OYOM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iz+5uLpG23Vol18NBzl2HL9Z/0YoO0NB2dqcOryuS4hT7gGSdnHUmZaU4/rYj6C+cVCARnDGoFNpaYL8WXhWsYKDxtvUG4fKQs9zVY9PtYs7oXkEahSzShnXDne+10q+iC0K0Y3bX5fvAiTsoAc49AR/PLxvii2j2bwrnhncVBU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=pt1s2GCW; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="pt1s2GCW" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3a57c8e247cso2473113f8f.1 for ; Mon, 07 Jul 2025 08:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1751902560; x=1752507360; darn=vger.kernel.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=krhFSts2Ny4KtwzLCGZ3q9qsBqTby6hrGjVeTlezd7o=; b=pt1s2GCWaUPujkJ6r/Yh80KwVxEuW3B9KkisJS/T3Yjg7rgj5l+PkGuA5QK/nU9veD Tj1zmiEl09zaOG8QPjhrzCmSf9RTz6EwfJtMnZpi8T7JfxGwVTuPbiQi9bPlBKHdb4cJ H6wP5BmcvIACjlvk0JIIfM0KNaZpcC/u3XY0o11fOevFn0aOavA+z+NJRBKe3f0ln9lg 6f56mIA6heETWIbptuWDXxR9dGQIyPtLhMMIzV51pxr5Vl6I3nF5XgwxR4hjgItHkVI3 5XxIDqqH1HVy5jHl2PcfxBPOYBRFahqyjE0XJndRjCk+bIkCRRRzgr0S0PlFx6E46Cui BDnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751902560; x=1752507360; 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=krhFSts2Ny4KtwzLCGZ3q9qsBqTby6hrGjVeTlezd7o=; b=bAmfEqCcggga9HSOAcr4447cJbYorU6NwfIGuUUwYoWjT2pipkPYKmkTMaF6XD2tRp 8J4CUkmCaVi/Fg3VLznbR1Xkk4XY03BoBZ8DoqykjB/z0JzJ/TymVZBKkOnLFPkLDWxw rwx3YvZ/IHCpqvQa154yuqZ0wA6De/GizvzDlE3GL+QfuLrHl7X/n2dPhLShoepztlyf BG5/k7IlcYiiI8glMSwvlpqUKBAQrqPxWxYNcvqTPjdsHRjmvEgzMGeOPpPkOMJk2ImD HCpB7qkwerhHxHCnhJ5BYG2BtyNUtrywaKGH9ah2vmIKjVOxvakeB8HbrIvlkBlVAei3 eSyQ== X-Gm-Message-State: AOJu0YyCQ77wZibNoHrp5ShLJWyPCrXcVQuoHIrPcBYWYC9ZBrCP6+8p 0Bbb8YxEgCVB3EGHHzzoZ2pvLEVTyXpIK6P7GBrKptiHywJlC/FOquuw+TVy0/CdvYA= X-Gm-Gg: ASbGnct8GKdxapOjcvC48qhwtoj9Eh7VMMjFOegyLy15w+6UoezHFqBvO2t9dseDxH2 xGgIB09iD4PBGCFXXqyHAUxTuXbzCWzuZA6mFGcTJoNLD/AHf5Ze90SpPVZ8mkcWGnOKntUPEsf lfQs7TWbMjkPl+OnG+JDGtM7b7VYy1NJuODunveZedHOac/lAbm/m9c6/v67fT+fnE4F4QeEzgn 6nQnQvRkSWc9xH7wltHTGvUAHCt53H8lu+AEnv2oNSS56cXcmu55/cFwSl0Fr/O0X3lJ/IVHluw IsLZPL7KfEXMDZuOX4mBcW7DDvYZTaxGuD0+2QvrezUpqICkDK8XDW05Dw9iuN7QTUKNoGajNaV g X-Google-Smtp-Source: AGHT+IHgGoCbSgy1IfUjK41jBubHWfqMXcWrfJyrbNDfMrkOQPZqQJ3xInRzN/3XX6mg8lF8YgcYsg== X-Received: by 2002:a05:6000:400b:b0:3ab:27f9:e4f with SMTP id ffacd0b85a97d-3b497031623mr11893080f8f.35.1751902559976; Mon, 07 Jul 2025 08:35:59 -0700 (PDT) Received: from [127.0.1.1] ([2a01:e0a:e50:3860:43f7:96cc:da3f:e6bb]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b47030bd4dsm10409968f8f.7.2025.07.07.08.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 08:35:59 -0700 (PDT) From: Guillaume La Roque Date: Mon, 07 Jul 2025 17:35:57 +0200 Subject: [PATCH 1/2] kernel: irq: msi: Export symbols for TI SCI INTA MSI module compilation Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250707-timsi-v1-1-80ae43b2c550@baylibre.com> References: <20250707-timsi-v1-0-80ae43b2c550@baylibre.com> In-Reply-To: <20250707-timsi-v1-0-80ae43b2c550@baylibre.com> To: Thomas Gleixner , vigneshr@ti.com, Nishanth Menon , Santosh Shilimkar , Tero Kristo Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guillaume La Roque X-Mailer: b4 0.14.1 Export MSI domain management functions to allow the TI SCI INTA MSI driver to be compiled as a module. The following symbols are now available for module use: - msi_domain_insert_msi_desc - msi_domain_free_msi_descs_range - msi_setup_device_data - msi_create_irq_domain - msi_domain_alloc_irqs_all_locked Signed-off-by: Guillaume La Roque --- kernel/irq/msi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index 9febe797a5f6..4af232b6796b 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -163,6 +163,7 @@ int msi_domain_insert_msi_desc(struct device *dev, unsi= gned int domid, =20 return msi_insert_desc(dev, desc, domid, init_desc->msi_index); } +EXPORT_SYMBOL_GPL(msi_domain_insert_msi_desc); =20 static bool msi_desc_match(struct msi_desc *desc, enum msi_desc_filter fil= ter) { @@ -235,6 +236,7 @@ void msi_domain_free_msi_descs_range(struct device *dev= , unsigned int domid, =20 msi_domain_free_descs(dev, &ctrl); } +EXPORT_SYMBOL_GPL(msi_domain_free_msi_descs_range); =20 /** * msi_domain_add_simple_msi_descs - Allocate and initialize MSI descripto= rs @@ -342,6 +344,7 @@ int msi_setup_device_data(struct device *dev) devres_add(dev, md); return 0; } +EXPORT_SYMBOL_GPL(msi_setup_device_data); =20 /** * __msi_lock_descs - Lock the MSI descriptor storage of a device @@ -910,6 +913,7 @@ struct irq_domain *msi_create_irq_domain(struct fwnode_= handle *fwnode, { return __msi_create_irq_domain(fwnode, info, 0, parent); } +EXPORT_SYMBOL_GPL(msi_create_irq_domain); =20 /** * msi_create_parent_irq_domain - Create an MSI-parent interrupt domain @@ -1472,6 +1476,7 @@ int msi_domain_alloc_irqs_all_locked(struct device *d= ev, unsigned int domid, int =20 return msi_domain_alloc_locked(dev, &ctrl); } +EXPORT_SYMBOL_GPL(msi_domain_alloc_irqs_all_locked); =20 static struct msi_map __msi_domain_alloc_irq_at(struct device *dev, unsign= ed int domid, unsigned int index, --=20 2.34.1 From nobody Tue Oct 7 18:25:14 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82F071D63F5 for ; Mon, 7 Jul 2025 15:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751902564; cv=none; b=oWM5GiTpKWLVD64BqRsBP2UV4I2YEVQ2KAl9bAbv14hGGzGQs5LkldXcow3UO9z3b+PzxUfvnKx5w6eE2DroA9WsxLGBBIFnW4jmuO3hd5zM4Q+a/ITxplh468czqNFp14msEr3sEY/ocOtDKEj3TpS/8F0apsxWO5WQlu5LzvI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751902564; c=relaxed/simple; bh=HcQchtRslDyRXYgw4RtewbOf6/LJsYueNE8Laf4FCKc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aHWACxWeeBMDmp3L33SmM9mSp535y3M9qTiEifXqJWN73MWAAgyw8J6IlZw9rj+OJq0z6V7BVawXMgc7P3pXvKuSLb22RMvR18HSvH9WPRcythPicRbWZWiRIm5UcgLQbK1in6ijJWXieVe/jOhyQMPO52037DloUTLZlSiZ2bI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=W5iExPLV; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="W5iExPLV" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-450cf214200so25037575e9.1 for ; Mon, 07 Jul 2025 08:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1751902561; x=1752507361; darn=vger.kernel.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=IH9KVtMgBsrkYXH8nnFecmz5YKaJj3+GxgiEXc+y1YA=; b=W5iExPLVe4nn2yGzBbaYvlIZdtKzogoInG2GPlw3JOT4i8rfuUSx6P4wrddne+oXb0 vwrx6FN+Ffe3IoI0Yyq3iRT6FMM7g8II5hy+yB/MnzaRCirKdB16VJXaajSH15Q+Y5IT G07xBOdW1uvOL850whxUgiBb92sbentYfSuxVv6JofdNJhAAbb0CbeO4RWd2F65hxlgL LY4uxf2oJkyuevVNn8Nh/kUKioBb/p//aICissCn/85tHgzcCeU9zU7dHSY0WRrj0VZT QMscqVsz7DRbIlaSrXV586C8cfu6fwFsSsemSJtfOC/Tw+9sWYcEGr992jBo4rXw4/Dq BNGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751902561; x=1752507361; 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=IH9KVtMgBsrkYXH8nnFecmz5YKaJj3+GxgiEXc+y1YA=; b=P6iYQNhw9u81YsRi7PP4Yty/1IE1xZMe1wBravNQBBlNJHL79LJllm3TRlfXCnNHbh H1wnQYWfH9siZ2lMZCGUhq3nKpObKDA0y/NrONj739ac43Vat9hrrxYsAVNV7VegsJcL 9MH38ipcA+ojMDGpqBiUMlxw+IqyLi87MHoZ0Drd1/STFHmJUoT6WngPKuY2sgLZoyyV 4DJa7tBGEE89qPAFE3iD7fIVHnF6qMzh+yI22ZZ86HuM46v/Uz8xQ04Fj/6kbM0njTLI 0PmOxiaEB9Vnxir6AiwSHWSIa0Rvx8LubSs6+tqOgrHQRBp1gdOPXVlOeSBPYn6FgTvU OYdQ== X-Gm-Message-State: AOJu0YzLztwn+G+jF+tjcnuDPevdljNKR5pRc5eJ+OEPzIFXXgbd1wuK c43d85O2dFz7cRRAGI06sMu3EFjeQyrrRc3EW6mblkm3jIr/XybhqHmBLgK3Pes0xVo= X-Gm-Gg: ASbGncuW/Qd0fvXH8eCydNZ3eO+b/18xl6ADTEPBcCv4RPBkyXmUtetb/Zqs2hq+y+I ONhXOKe7c7os0+ZsNmC/zOYYC481zI/cpjuz8wjOnWbYIgzoheRXbh0wTZ650yRKWg5rUeGLoT1 lK5gvv9ioB6/xf+JVzxJ9uws/zfsgAPFWdaiwVShUZhAKv20ohrKxckfsXktoh9Us4dD0yAQpIh UGMcweYAel3WwuJH+O0DSeT3wZFNRdWosyVD13XEWcTy1SHxhP5oO/4+719klm/Jm2Yzt3U3Smy +MSQhSWsUlzj6fM4XDVwyOyfTW5fkOw7YIxLcVhluAxJcJHjLfE+NC8syCAKI8Bc1jaXku+iQR7 k X-Google-Smtp-Source: AGHT+IGes0ufFH5VmLZsiJtyyublkopHtpaYl2Uv7IhC3VQUUkrA40ug/nbGGBQCxtDhT7AejuRV5Q== X-Received: by 2002:a05:600c:8416:b0:450:d4a6:799d with SMTP id 5b1f17b1804b1-454b306b0c9mr109664975e9.7.1751902560647; Mon, 07 Jul 2025 08:36:00 -0700 (PDT) Received: from [127.0.1.1] ([2a01:e0a:e50:3860:43f7:96cc:da3f:e6bb]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b47030bd4dsm10409968f8f.7.2025.07.07.08.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jul 2025 08:36:00 -0700 (PDT) From: Guillaume La Roque Date: Mon, 07 Jul 2025 17:35:58 +0200 Subject: [PATCH 2/2] soc: ti: ti_sci_inta_msi: Enable module compilation support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250707-timsi-v1-2-80ae43b2c550@baylibre.com> References: <20250707-timsi-v1-0-80ae43b2c550@baylibre.com> In-Reply-To: <20250707-timsi-v1-0-80ae43b2c550@baylibre.com> To: Thomas Gleixner , vigneshr@ti.com, Nishanth Menon , Santosh Shilimkar , Tero Kristo Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guillaume La Roque X-Mailer: b4 0.14.1 Add module support to the TI SCI INTA MSI driver: - Change Kconfig from bool to tristate to allow module compilation - Add linux/module.h include for module functionality - Add MODULE_LICENSE, MODULE_DESCRIPTION, and MODULE_AUTHOR macros This allows the driver to be compiled as a loadable kernel module named ti_sci_inta_msi. Signed-off-by: Guillaume La Roque --- drivers/soc/ti/Kconfig | 5 ++++- drivers/soc/ti/ti_sci_inta_msi.c | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 1a93001c9e36..0a9eb5ac264b 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -85,7 +85,10 @@ config TI_PRUSS endif # SOC_TI =20 config TI_SCI_INTA_MSI_DOMAIN - bool + tristate "TI SCI INTA MSI Domain driver" select GENERIC_MSI_IRQ help Driver to enable Interrupt Aggregator specific MSI Domain. + + Say Y here to compile it into the kernel or M to compile it as a + module. The module will be called ti_sci_inta_msi. diff --git a/drivers/soc/ti/ti_sci_inta_msi.c b/drivers/soc/ti/ti_sci_inta_= msi.c index 193266f5e3f9..d92cab319d57 100644 --- a/drivers/soc/ti/ti_sci_inta_msi.c +++ b/drivers/soc/ti/ti_sci_inta_msi.c @@ -8,6 +8,7 @@ =20 #include #include +#include #include #include #include @@ -115,3 +116,7 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *de= v, return ret; } EXPORT_SYMBOL_GPL(ti_sci_inta_msi_domain_alloc_irqs); + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Texas Instruments K3 Interrupt Aggregator MSI bus"); +MODULE_AUTHOR("Lokesh Vutla "); --=20 2.34.1