Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp195827rdh; Mon, 30 Oct 2023 20:01:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGO7G0Ir8hlD3OuRLuC0mvsaeUOHJr67xG46QX3nR32gOHyiRFNTwam+dgTZgTXHx9cBOCU X-Received: by 2002:a17:902:e5cc:b0:1cc:5d06:b38 with SMTP id u12-20020a170902e5cc00b001cc5d060b38mr2684801plf.64.1698721271732; Mon, 30 Oct 2023 20:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698721271; cv=none; d=google.com; s=arc-20160816; b=k87MI1H9hBTwBPQp/w4o11Qw1qosnbBJe/m0pxkA1TUmBiTpAcTYL+5h/SUrDS1xku hyO7SFU4N2wzrXJ8G0fNHo/cAvIGwJ1xaw8yw/Sj2zOgVFSfhn9dX0VjQ7XE95qdos8g IgKd/DRcNT8HT2mWextMRE8ID3+AAOhCdDiSNZHJqyF2SRKSS//spxtq+tyYkJKMpxDU IvpKBezs5afwhnLrnqUaSKfRgf++RWptt7u8mhH/ymw9Aqt9DZON0nbRPF1Ua7WOms2Y ukCERZm4uc+T4UndeTQDEl/3FYgZPYnwvolv0dywoZKltOjUArDWuuoMJdSDg+rOMP4P cOTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=geDnbE64EracsMZJfga61W8eyuH74nvGH/Og9mMRIXU=; fh=8qk8ksXXUFlXmSsxaXfsDFteYI7cnFNdYQwnUW+01uY=; b=y/BkO425k4Rtx8plW+C9ff37AsiXJHKY8c7XCjlmlhNYMOC600sL7GCv2erFBrULyG JpYPh8UQt8DHNXFmRjb097I7/NGEjkHuTkJcBV1yWCV7s+iQXwhrSPntx01Wdw/Us+Ip yccu2BicxyD3k/BDqf2yzzf8GSypfrKbTljfqdR3pkTFWRX9Rbg3hztbPRmg9pb92ecM s7EyR+kKXD1MX66E1pVCrOK0sL8CoFxaKNVqvYJVKmBLDsWPDbJqvrNkjyROfZkBJt6c wDbZnMTnR+PfroO/BMOfljy8oXusav9AJcvS55yeBg9+iN+vbDuuB0W332zPZPqL+uBu ggFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Bnpq8VXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p3-20020a170902e74300b001cc41020674si339790plf.518.2023.10.30.20.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 20:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Bnpq8VXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C2EEC8082047; Mon, 30 Oct 2023 20:00:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231551AbjJaDAT (ORCPT + 99 others); Mon, 30 Oct 2023 23:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbjJaDAR (ORCPT ); Mon, 30 Oct 2023 23:00:17 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B2BA6 for ; Mon, 30 Oct 2023 20:00:14 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39V1vXdB002765; Tue, 31 Oct 2023 03:00:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=geDnbE64EracsMZJfga61W8eyuH74nvGH/Og9mMRIXU=; b=Bnpq8VXDv2FJjPYnujubg+eolwgZQV6a1eMWcDjsrok8+nY9FoEgQgILlLWnB6xqkA2I i4FJ178k9HiZmLJWsGaLdSPQzPX8PnL35pBmYR+5mO+hta2egDhuYhegZ0FNyB9h4Rb3 6jn4EzIhFL5dQAov/+HhOgl+irwSBMiRVteZCw8Rq2twv65L9DwlkyZK98ZuVeVzXWBi Pqfa6MVfbqSyseTi8kwkYuuLqERikI1E/M9swV1aoPYtF8C/W+RMoayHUqJ17cJ5HlrX n/bIb7kNfA4QPCyvM4lj1TrrpCxky0EXXb7PdV/fh22r199LqYaqR/uAxcEXBt+t4CuF Tw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u2chyhp9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 03:00:11 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39V30A9D000698 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 03:00:10 GMT Received: from [10.233.17.145] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Mon, 30 Oct 2023 20:00:08 -0700 Message-ID: <5266fe30-849d-4c84-ac5e-7b456ea15929@quicinc.com> Date: Tue, 31 Oct 2023 11:00:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to pass software configuration to driver built as module in boot up phase To: "Masami Hiramatsu (Google)" CC: Greg Kroah-Hartman , "Rafael J. Wysocki" , , Trilok Soni , Jinlong Mao References: <1c001c6f-9902-4803-9406-39e3325422bf@quicinc.com> <20231031083500.343b39efded46acf1d349628@kernel.org> From: Tingwei Zhang In-Reply-To: <20231031083500.343b39efded46acf1d349628@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: l-ML_sJY1jFYHSbD1uM_EG9W3W96HhI2 X-Proofpoint-GUID: l-ML_sJY1jFYHSbD1uM_EG9W3W96HhI2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_13,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 mlxscore=0 adultscore=0 mlxlogscore=933 spamscore=0 phishscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310022 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 20:00:27 -0700 (PDT) On 10/31/2023 7:35 AM, Masami Hiramatsu (Google) wrote: > 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? Current it's out-of-tree and we are trying to get it accepted. > >> >> 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. If we use bootconfig API in driver, it can't be built as module. Compilation won't pass. > But I did not expected that the number of params is about 1000. > > Thank you, > -- Thanks, Tingwei