Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp129694rdh; Mon, 30 Oct 2023 16:36:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHjbj0aPgZRISy1ZEsv5eD/a0EEAnwVWEYQZrttCRMatvUCXfdzDqlzjCuZkVDt0mJzu5y X-Received: by 2002:a17:90a:2dce:b0:27d:52b:99ac with SMTP id q14-20020a17090a2dce00b0027d052b99acmr7919480pjm.7.1698708979378; Mon, 30 Oct 2023 16:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698708979; cv=none; d=google.com; s=arc-20160816; b=Z0ZEeGIYfnlQEM5WYTFMs1Q847kfooaRANj4wb/12S97Vi1TxREkSoH9xghkcCVrNN DB5Bsaf3N4OlqQeuRK3zpMUnA+9PyfUt9khUBGj99DrNCGIHFkU3r+B/n5ZsvwGd2Kbj YqzvmRuKL/kkTrrFB5g4emKqzhuGOpU1f4wrwOkU31xff7YVCmIV2ODoC4PV0M7ZQxXc Of8SUWisf/p69s2xDaoHTHMMBBOk/TIqhpuyKZoJXbFPdoI5yMD89JEsYlqm/FZwa01/ ACtE2U0TikkJkUuw3Qbk3N5DXVZ/kjxAsVzyqxRYBE/fm54VXYeOcnJKdQjIpV2ScYNQ S6iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=4ph+7dNTFE4EsItqj+ElWJHWh0KSXpgXyZb2paPMDbU=; fh=AUqBUtZD+nBiL/8JQGecVA23Lrzc6/4Xl+/8kAN8Kzc=; b=iavRmJBLsHkkcrwi1ajhig1oSzhPLkRe4RRctzamZJR9HH6g+43RDYqiFX4jKhnG1y CvbaAbcmnq+Pzz9Lbbq34vq/0kV1bkAx6xn1tbdwpFMqinn1omCs/adXg0doyvVqjVva SimrfvHrbssVah4gyTlD5ob6JWf+7BbKY3jW+xb3zj9MVa9hc+FpYQ4gdjgffFnbNefT nf5VIYh7c8shcnUwKd8rvklLB2bhOFhwUdHuP94Fyclzo5UbhIXbs054ncxGtN7DnedY 7enaLUYCXD2okE240bTU3BbIosK8CFIKJClBLFPqtFpHAZS3vy+KPPw+oUypfVXGj+mr w+VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IgEO6hmT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id t17-20020a17090b019100b002791d79bbf9si60720pjs.187.2023.10.30.16.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 16:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IgEO6hmT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4061A8098E9A; Mon, 30 Oct 2023 16:35:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbjJ3XfK (ORCPT + 99 others); Mon, 30 Oct 2023 19:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231375AbjJ3XfJ (ORCPT ); Mon, 30 Oct 2023 19:35:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29BEFEA for ; Mon, 30 Oct 2023 16:35:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBA87C433C7; Mon, 30 Oct 2023 23:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698708904; bh=hd2BfLWW9jIL5aVaaeUWrJhmX9qwk5FbJl49+dTiq7g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IgEO6hmTH41lPqyNIim6WxiafeqqBggGNIdqN4H3Lrb2gTs7O0SqS5pzDPcGcW6ch hRDY3Jt0Vdt3wL0CE1H7SnsoKRYkQusXEtKpTwgXjbNfNEfPiSGnXHVTD26QMN5M8d GIk3L+IauOA1hL6V58j24UhlIC9XnGrZ7TbznhWDlkYA3RqjNr8JW4Fi66rqBVZ7La XWuoTErx9/8ee4XaeiP6jHbkx6h+NfZTTwXTxEw+dx/+3B6oOEPtuO3bAbWzX7tA44 VM5iAorZen9KyL+nYZQ1/jVRV4jTNiFXfnlr7+19ITXLozKHoUCXCaICbxvWE6YHsg 7rhfUf3HdNJBw== Date: Tue, 31 Oct 2023 08:35:00 +0900 From: Masami Hiramatsu (Google) To: Tingwei Zhang Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , , Trilok Soni , Jinlong Mao Subject: Re: How to pass software configuration to driver built as module in boot up phase Message-Id: <20231031083500.343b39efded46acf1d349628@kernel.org> In-Reply-To: <1c001c6f-9902-4803-9406-39e3325422bf@quicinc.com> References: <1c001c6f-9902-4803-9406-39e3325422bf@quicinc.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 16:35:18 -0700 (PDT) On Mon, 30 Oct 2023 19:21:48 +0800 Tingwei Zhang wrote: > Hi Masami, Greg and Rafael, > > I have one driver that needs a bunch to software configuration like 1000 > settings. These settings can be different according to the use case. Is it an out-of-tree driver which can not be embedded? > > They are required in boot up phase so we can't reply on user space to > make the configuration. > > Boot config is not preferred since we'd like to build that driver as > dynamic load Kernel module. > > Could you let me know if there's any mechanism in Kernel to do that? Hm, it is interesting situation. So I made the bootconfig API and data released after boot (only keep it in /proc/bootconfig). So I thought module loader script can parse it and pass params to the modules. But I did not expected that the number of params is about 1000. Thank you, -- Masami Hiramatsu (Google)