From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7D02288530 for ; Thu, 9 Jul 2026 13:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783603722; cv=none; b=aiGPXo1SGPr1MuVg3hset2EiyAhjH8aI4pcKdntZ5OtaPdKdvNYQRTWASW1C7Rt4oBUfMbX1FoDw/NK0dIFg03pqL/k2/Ni2kQb1vuyxa2YZ+WE27KbqZnKps0kGC/QXZNGkolmZHjZslndsXUPtnI7WoBcroB58mGFOpN6E4u8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783603722; c=relaxed/simple; bh=X3LJtoIF2cz78g7fd2JzTBDARU25iOSmEdSyogFuUdU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JBWnAnyLuPZdO0677RtxOpwpA3y1N9llekTXFUKdnKuIS3/QIUG5fQUg7a/nlD0NoX8V//1AJx4VYlAL3CWnAtCITpkTKJYKalwIYoIg5ROadcx/X3+sMxjt5eyXSDib1ejrKe0ICxZ6KC40C1lJQt4EbuGuVTjIUQhvJNw26Dg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WGbtrFI3; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=KzrpObvE; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WGbtrFI3"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="KzrpObvE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783603720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0io07SKI9Zq4iIODgABtJrQ9iS+xBoIqqRbw2Q3fX6U=; b=WGbtrFI3kjs/0P6RINPIfxfhEY4hJ5TVPCHW47qruNulaOl8UF6Dans02+L7o7U2dwjTFd LFItk1CHM7mth1nkcUEhSmeHaOBKVRQncEkdKiMvUhv2XSNe/u2aTwy7Yxt/l0opDnyKF8 20trO5W5r4y5LuP78uxwQSyzW8n0+YI= Received: from mail-yx1-f72.google.com (mail-yx1-f72.google.com [74.125.224.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-eqTyzkmIPWK2HGu4RXmaQQ-1; Thu, 09 Jul 2026 09:28:37 -0400 X-MC-Unique: eqTyzkmIPWK2HGu4RXmaQQ-1 X-Mimecast-MFC-AGG-ID: eqTyzkmIPWK2HGu4RXmaQQ_1783603717 Received: by mail-yx1-f72.google.com with SMTP id 956f58d0204a3-667bd638ee6so901692d50.1 for ; Thu, 09 Jul 2026 06:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783603717; x=1784208517; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=0io07SKI9Zq4iIODgABtJrQ9iS+xBoIqqRbw2Q3fX6U=; b=KzrpObvEi39OfstDmofYuYfoHaNZXekz4BO4c7uZ7GBhnlunjW8q0AuF2TAd8O476S 5F1WeMMOWswa/2+y6iuEkUk05m0weaSMszmYzs08dbLMv9e4YDUrf5PpAsGljbLUfJMw jEdv3NI+B6by9601SDtwG/s2x/Ivnab0tZAtFVWvwC4DTgaCWIZXNkAkxq+A4TzukrTk um0ZkpRMpKgWpDZjB1rBTByTu47svrGhovG6zgQJXZcTOb12YnldlY6/SUU4vrvb4Say Myr7rwX2dpW4AW9sTKxQcx+aOJRP7E9p38PLzEbGcpMuzg1zx2o/veci1yYsKTScsLnL HaIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783603717; x=1784208517; h=user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0io07SKI9Zq4iIODgABtJrQ9iS+xBoIqqRbw2Q3fX6U=; b=JGu5VzBnV269gzdHHA1LphQ1807N361aiISPt+HLhqNazhPfWZirfdotaZcamnTTSS /l3WBoUOGvjRzq2UZ88Vmu7Q3doBqBiOkbxX04kRSKifNVPjFKUctAAOVrXnQEqneybP CcK139n1usP83mUbS5DYAW2tOjOvWongdssMAPiKUpbRXyE3GnCcTJ1/Ywkn/qMFhEuL 8r3lvvkdRWSdJ81GGGplK9yZ9ycvGj1MJ7ZLWgf85HQKi/N6YFG0o1uoZ3mnq48A+zGz kUEhzGcF38N2CoLkapv4x7w9dy8Yvbsr0YajUX5NCcyI40fYDYWnNKDsH2eCUsDE2H69 jGuw== X-Forwarded-Encrypted: i=1; AHgh+RosPvUCKi/ropWXCCk04s2XzXMPn5SwD1Z7/Pf3w0KKMZKskSAXpV3kKoIz7aeda8KjS1thhBst+tVq/Cw=@vger.kernel.org X-Gm-Message-State: AOJu0YxoJwkBWwXs8OOj8TwihE6UC8fS4uyvoqVOVoSY4aczLDds+JPk x5lNua3XKehJLC29XGQ7gzNP7NyajSROC4waJSVfb3OM9/sklhVSDQV4z01V/alLWpZrq1FQIuB LjWhBntkQ1J0xg6aqFxsv2dBrHgqznceDf5T4RtKEJxAEcSepTWMljYb+H+/Loysv2w== X-Gm-Gg: AfdE7cm0kZkAB4BNRvKvHaJfZBSeddgDJK+JGrMDwbWCf+/TCyTM+jGC2oooA1mPYuV 1DArfXXIJ7P9yA9cRZ+9zO1RfT8M9KXYLeDJaVDqBZKTbaMU3pGKpNQts3G3sG1OD8V8deQhyu/ abkrWFr0Ba/bFzHNMWhjfony9DmX8a7FdXmakYDRG0A4m+H/ULl1v59wA3vtXGSH91wOUTaZMZ9 Vq3TmxjVXryUhF3izSL1dHTEGPBQLW1T+J/w/SCC4GX7JqWCVhFBb8xMk7Ax1VkmeKbyoPkVaRW GnUsH7fFlfLhL+nePiWJArclFM5UgDgIBa59nV07mso6IOqId86eRGSfVwEitro0MiSmfOUElt7 8yKAb/xRfOC2ItoxVGtrXs/gYjKMr6OrGq2Yhmb0Te5nUSg== X-Received: by 2002:a05:690e:d48:b0:666:39a8:fb82 with SMTP id 956f58d0204a3-6679f02acb3mr4957910d50.14.1783603715994; Thu, 09 Jul 2026 06:28:35 -0700 (PDT) X-Received: by 2002:a05:690e:d48:b0:666:39a8:fb82 with SMTP id 956f58d0204a3-6679f02acb3mr4957877d50.14.1783603715498; Thu, 09 Jul 2026 06:28:35 -0700 (PDT) Received: from redhat.com (c-73-183-53-213.hsd1.pa.comcast.net. [73.183.53.213]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66787a49befsm4150627d50.16.2026.07.09.06.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 06:28:34 -0700 (PDT) Date: Thu, 9 Jul 2026 09:28:18 -0400 From: Brian Masney To: Hans de Goede Cc: Sudeep Holla , Bjorn Andersson , 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 , "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: References: <20260618-scmi-modalias-v2-0-8c7547c1be21@oss.qualcomm.com> <8c2a4ae3-95cc-489a-a7a4-90a3ee2597e9@oss.qualcomm.com> <20260709-spicy-fiery-squid-6eec1d@sudeepholla> 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=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.3.2 (2026-04-26) Hi Hans, On Thu, Jul 09, 2026 at 03:22:29PM +0200, Hans de Goede wrote: > On 9-Jul-26 12:10, Sudeep Holla wrote: > > On Thu, Jun 18, 2026 at 10:31:12PM +0200, Hans de Goede wrote: > >> 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 ? > > scmi is special because the actual devices under /sys/bus/scmi/devices > only get created when the module with the driver is loaded because > of some funtion/id mapping requiring info from the driver. > > Patch 2/2 tries to work around this by loading all scmi drivers matching > the scmi protocol which is known at bus enumeration time, but this only > works if the actual scmi driver is in the initramfs because this done > through directly calling modprobe() from the kernel which does not > get "replayed" when switching to the real rootfs. Should the SCMI drivers be added to the dracut module here? https://github.com/dracut-ng/dracut/blob/main/modules.d/70kernel-modules/module-setup.sh#L73 A few years ago we had to add the interconnect drivers to the list for Fedora. Brian