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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1840CC4332F for ; Mon, 30 Oct 2023 23:35:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbjJ3XfL (ORCPT ); Mon, 30 Oct 2023 19:35:11 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)