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 E18358287E for ; Thu, 9 Jul 2026 13:28:38 +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=1783603720; cv=none; b=SFmjSsQ/HgdksHxClZM5RMkOyb6NjHloefz3AUuQORo2RvRE3TNRa4In/xV1iU8UCe3x6H9+VtyegEIn1wfR53OxanF6EBX9sMPBW57pqRvKEeCNHrMUW27iMa0onCIV4KGiaLs3CUOuybNXvzwP+8yPxrHRNxEGuj5ici/OA64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783603720; c=relaxed/simple; bh=X3LJtoIF2cz78g7fd2JzTBDARU25iOSmEdSyogFuUdU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AEXrqXzbks+EtfLdUypQJ0BdCuOIJ4sm7VHeThK1SjXS5zBv8lqbP9fhSUpr0HWS1cP2xU4ZPn8DSdzFMh8rAPh0OaXMcqiRj7k8NadCxXTJbRt8PCxc/j4FtJ899HmK7SgtShPar5c23BnHoU6MSPsQ9cOubD1UaXljri453ks= 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=FIOqyJdb; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=okDmZJZC; 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="FIOqyJdb"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="okDmZJZC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783603717; 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=FIOqyJdbhK6MkeAWWKmO/omMIhK89Dk6+aV+UgeAQ+lSqhmKxCPI1ow9aAphf38rCQE14f sCwYnOelHwpcjchtHEeuA4Ih2nFdPW7z6BihKYFh+QW6eiQl91e/7wzz4pVPW4mraoJB8n 4sItWEszyznLe4+f4XKxr2AkltVQj5g= Received: from mail-yx1-f71.google.com (mail-yx1-f71.google.com [74.125.224.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-613-jPQvrJSUMz27QW0ciWW22g-1; Thu, 09 Jul 2026 09:28:36 -0400 X-MC-Unique: jPQvrJSUMz27QW0ciWW22g-1 X-Mimecast-MFC-AGG-ID: jPQvrJSUMz27QW0ciWW22g_1783603716 Received: by mail-yx1-f71.google.com with SMTP id 956f58d0204a3-664a090b4dcso2958693d50.3 for ; Thu, 09 Jul 2026 06:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783603716; x=1784208516; 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=okDmZJZCbV/HqschLJkt9nqeFZTJ3hCuDQ6lL7v6HyukNUKy4ll6eeT6IqpneiKoQq 1U8x/sOFC6wGouSTIUlhYBuM0UoesvGpAM0e/XOJ4CUP4T6NGIG2R6lewaV+n+C32RHr ueJ5XPC5U4Pa88OIsTVcA6mnwV4kslh/1Mq8AmWljToAHEV05AI5bBOS8/uj2OpMdiBz lm8M+1KUGTOXJEmuFOnOSnfZkWH0W1pQ2Nk/8coSNycDaIM5cOe77WZJs+kXjKP+BFYA hBp8rZcYSFHF3l+pr1q/MjtnUjKZ+Rn0U3y+gGpLwAtYWpb/ZHBNVfskdBzy21tjCFOK peWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783603716; x=1784208516; 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=tCnuSAJJmoMKkssdATF6eF3VX5dxFfq9tV1+Ceq7e44u36+s8xmLuDx/iPfaU6eIIk G7yJBQI8OmkNFlvIYtHXYbB6T4IKDc/5KmQkhriFE1KjIVG0Hwg952oksUQOm76E+Z6t +TWp2jDT7Q9U2vBwI6HfAr+0OpBNab4fT0UsxCUuHCNw+YyPr+YkTpXLTMzy+8juZo8e rT08JblkGujGf/87Y/4F73S2rZBDLYCvLmUt7tXiaPoDcDFZTdKZfiThttPY0Pqd7VL5 Zvt7z+Zdw/PPvyTqNrens8hhA/99ygwTtBPzzBXbqqdvMB8TSeOWSSHQWNjQmbY7dCRv E52g== X-Forwarded-Encrypted: i=1; AHgh+RqbE6MeQdVJjOG2dezxddTiA/+3ht/jcNfrjE4swsJAjfLyPN2cTfU//cb+FA+kuWcnSErQQA43xtw=@vger.kernel.org X-Gm-Message-State: AOJu0YyBuiPeZsk9//9dRDFSAqgMxmIJvpB+qPBvqcr69iMjEtrgMS3f gtUeZPlSUhcTuD2GezhA0C51eSe6Yt3NvgNjH05EqlVrpK+fuWX+PJ3cRcg3vYcZ41aZAm9eKvm vele2IYWZ16NfeTdk2lsQ9aFRj97FOTZbsMaWdhSps/mrFOwC9SMwoMTH35fCRA== X-Gm-Gg: AfdE7clwZxx11df7bLJDO7V3JhQ1ynovRf8J7ppPapa9Z0e3PhQ4y0I/t4Nrmmeb9aO eDubbSuU8WzeC1Uj+1i80ojeYYgJZsB8oUD/JzI7BOhOyY552e3mORpuPxgAcNuhVw7FOa7HSOS QqFmLOwj0iwjAVlTx0ZRUMwKB/cDaDpxFjzVQWSbvXBtI1kqyIV0Au7PRqt/i1qujSYKW2i+X22 YmH4eptph8kotOaQQ2uPaOy3+MWnKrAgKLTpYiIP/Mf3FrOHLROS7oOZAFx4GIfgPVBU/kByAg4 Dofweoymo7P3y2AJe4aRin63Ff73GG5/FoP0Mq0HsJF2S3HQiRhC55A01TO2OdKxmEbXCDsvAcT +qqlagRZZe0qAGZHAf+oZGcyNByuVhacYZXMoObGtQWYdWg== X-Received: by 2002:a05:690e:d48:b0:666:39a8:fb82 with SMTP id 956f58d0204a3-6679f02acb3mr4957922d50.14.1783603715999; 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-iio@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