Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1179089rwb; Thu, 8 Dec 2022 07:36:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SPaJQ+iPrcpWtW+1cBIIWwsDYORcrrvRYoLcbwBqOAglIEjKnr/Kx7a4tl2jETugatP55 X-Received: by 2002:a63:ce43:0:b0:476:fdde:9ac8 with SMTP id r3-20020a63ce43000000b00476fdde9ac8mr67886698pgi.164.1670513812777; Thu, 08 Dec 2022 07:36:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670513812; cv=none; d=google.com; s=arc-20160816; b=0ypDLJuWVsVQ7G5XnufaLPUIH23GadgGjFb8QJmyr4jRknDoclqAO6ehg07PNkkTbj KroI2/cs62TKkgd+6dwxRUyjQ6kUs/n+WwKMvdmNoOfZoAROx+Kgy+gsS1/WWeIsEiYM x7a7EjZiLRjexyn394iw7zhURrl+ALPV8MLlcDY2cXYWVFGeOierQmYPn/ryZ3/4u5wS DV1l5i6OWjpuePWwODny8wMh4MxA3M0mw2jvvz+uOUiGIortLcCojXR3UXDlcf9cFzTG Z1Cg5nS12o5hl39S4ZjZcw4d0zS/T6bJ9YHqIZ7EQzgASUm5tCWu7SvyjZOFUGLobeI8 pDNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xw2QnUgotGgtzzrQaFaDsQ9nCEkmWT7zZw3EcR+GSQw=; b=w4lUolKJRK+c+IeNCOuutvkVh8Q2Xy5r7KruNxys23oLjp/x2ktCfw6NfJi50Xakfd dH+SBiKt5CPj2UZ8TPs97FUVli6Axx5Aa/bv/kTz0ZajTRRlEOMjKXXKDXpeo+tUMzIP sZa7r8vh2ACpoXmwgfJIxTNlTpqCkCLMzMNoAJpNpE6YhQhUs4zjwFzpZ042etmSB2gm Pm2MIZyd9UyVuwzobUWO2+gT/DBpJGNUQT2kerWpk3zeh/kGYXyj0wfAA2UMcVXgLh4J KDSH20prusXRAQghtfxOZQAbgt7PCHrhIZ2ui5OHfSd1x2ZEBQVSIHLyG+CPpzbKfp18 /IMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lvJRraG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a056a000c8700b0056c12518664si14413979pfv.128.2022.12.08.07.36.37; Thu, 08 Dec 2022 07:36:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lvJRraG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230014AbiLHPWY (ORCPT + 72 others); Thu, 8 Dec 2022 10:22:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbiLHPVf (ORCPT ); Thu, 8 Dec 2022 10:21:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DC1370B81; Thu, 8 Dec 2022 07:21:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E96E61F7B; Thu, 8 Dec 2022 15:21:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54264C433C1; Thu, 8 Dec 2022 15:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670512860; bh=V4PGwpQHcRdaTj7RQB6+cCZjNiTp0CjtX/YahKcx2cI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lvJRraG+p2Y89wgqvueBx/Hwwieb06weDeQZsJjClXTuDt2c0hFVpxFdocmOreu5y 0KvQkzmvoYbdlBCPAW2JJf9QAH8ng7wTz5z+372P4f/ZleBaxJhpOQ/JjGXL28AmV9 cXCMhLD1KAJEO/CZ7uIRjtdoiUaVgJvkMTu7oesA= Date: Thu, 8 Dec 2022 16:20:56 +0100 From: Greg Kroah-Hartman To: Allen Webb Cc: Luis Chamberlain , lucas.de.marchi@gmail.com, Christophe Leroy , "linux-modules@vger.kernel.org" , "linux-usb@vger.kernel.org" , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] modules: add modalias file to sysfs for modules. Message-ID: References: <20221129224313.455862-1-allenwebb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 08, 2022 at 08:22:56AM -0600, Allen Webb wrote: > On Wed, Dec 7, 2022 at 8:34 PM Luis Chamberlain wrote: > > > > On Tue, Nov 29, 2022 at 04:43:13PM -0600, Allen Webb wrote: > > > This information is readily available for external modules in > > > modules.alias. However, builtin kernel modules are not covered. > > > > Why add this into the kernel instead of just a modules.builtin.alias > > or something like that? > > > > Luis > > I am fine with that approach and already have a PoC for it. Here are > some considerations: > * This would add a new file to the kernel packaging requirements. That's easy, you add it to the build process and the tools that pick up kernels to package them, grab everything that the build process creates. > * It is easier for separate files to get out of sync with the runtime > state (this isn't really a big deal because we already have to deal > with it for modules.alias) How can it get out of sync if it came directly from the kernel image itself? I think this really is the best solution, as it should be much simpler overall and not require every bus to add special code for it, right? thanks, greg k-h