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 87622C43458 for ; Thu, 9 Jul 2026 10:10:29 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oWFW04FqDfkqF6FQ5XuyyPvQ7Y46Kanl78+AV4Ugsl8=; b=iKfqqTveZlQp5fiFDQGFt8NTrp lxwda2xPQc9gwopAYBQPYWzjB8jbAcPslrAh847ng3MWpggG4QGSn8Yel1SHbmwk9r34sxjQQr0wC tmE/BKjwuSSin9/2BGrZpLrOv0HJdh8JTsi+9JNAw2CRA1gzqRsm585J2K6Epx/LL40TZOuyx4PbJ WMGVPxTCVV0HlVim2ZUi+v2G15loD6VzUEreLKMZ7c37Pa27cDSWDkYj0JyxApCVRg8/cUAFUjlfD E2r5tBvVpyjgo+amE3ZID0N+znRLQX9ogDPSmRXjcL4Ukxu8bAej9FJTVZsOJpjgKexyXqnAoNEJW 98SkaZuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1whli2-00000001tmt-0c3U; Thu, 09 Jul 2026 10:10:22 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1whli0-00000001tmX-0TSm for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2026 10:10:20 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id D9569411E5; Thu, 9 Jul 2026 10:10:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C8C61F00A3D; Thu, 9 Jul 2026 10:10:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783591819; bh=oWFW04FqDfkqF6FQ5XuyyPvQ7Y46Kanl78+AV4Ugsl8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=F03vhvIwmj4StkRYQPee7Mpo8rhhvPDYa1ZUqMf2+g/CIeGCVIfCN0xnG5MJNYpgT G/xk+YiSmjsIpQ2a+ZCD1F7xW6UWIvVaIlA6EZhjtHM2GrgY2ZJp+KTKbZzmfeMY3V YI9cy3UqYXyMdyhNZ1zM949+ZSyI5yjfsP0DsW4R6T1oCjhBIM50nriVks3E2TiNTH S9m1h8vO+qxxJ7t4pzTYadBUln5t8vaGIXxmcrGaq5iBn0yQiXfbw6yHSMCKDUSEG8 sAdltXpvBqJuHdUtm+PegrAGj97SvlIeTEKN0AltXJqRF1FwfLCw0B+XrWz/skAojF Ifn+6OI6uNVwQ== Date: Thu, 9 Jul 2026 11:10:12 +0100 From: Sudeep Holla To: Hans de Goede Cc: Bjorn Andersson , Sudeep Holla , Cristian Marussi , Nathan Chancellor , Nicolas Schier , Michael Turquette , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Stephen Boyd , Brian Masney , "Rafael J. Wysocki" , Viresh Kumar , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Guenter Roeck , Jyoti Bhayana , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Dmitry Torokhov , Ulf Hansson , Liam Girdwood , Mark Brown , Philipp Zabel , Alexandre Belloni , linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, imx@lists.linux.dev, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v2 0/2] firmware: arm_scmi: Ensure automatic module loading Message-ID: <20260709-spicy-fiery-squid-6eec1d@sudeepholla> References: <20260618-scmi-modalias-v2-0-8c7547c1be21@oss.qualcomm.com> <8c2a4ae3-95cc-489a-a7a4-90a3ee2597e9@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8c2a4ae3-95cc-489a-a7a4-90a3ee2597e9@oss.qualcomm.com> 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 On Thu, Jun 18, 2026 at 10:31:12PM +0200, Hans de Goede wrote: > Hi, > > On 18-Jun-26 17:56, Bjorn Andersson wrote: > > SCMI drivers such as the Arm SCMI CPUfreq driver are allowed to built as > > modules, but they are then not automatically loaded. Rework the SCMI > > device table alias support to make modpost consume the information from > > MODULE_DEVICE_TABLE(scmi, ...) and allow drivers to be loaded based on > > this information, if known. Also add a protocol-based alias to also > > trigger driver loading when only the SCMI protocol id is known. > > > > Signed-off-by: Bjorn Andersson > > So I just gave this a test spin and unfortunately it does not work. > > The problem with Fedora's kernel-config / setup is that the > request_module() from patch 2/2 runs from the initramfs, but > the scmi_cpufreq module is only available in the rootfs. > > It does work if I explictly add the scmi_cpufreq module to > the initramfs, then it does get autoloaded. > > We really need some place to put a uevent sysfs attr which then > gets replayed when udev is restarted from the rootfs and then > re-reads all the uevent files as part of its coldplug > enumeration. > I don't have much knowledge on uevent to provide any suggestions/help. But isn't this a generic requirement ? I mean you could have modules install on the rootfs and not all of them are packed in initramfs ? Just wondering if that works for other modules, we can examine how do they work and what are we missing ? -- Regards, Sudeep