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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32F59C2BA18 for ; Thu, 20 Jun 2024 09:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=R2JDyZ4UzOKKd/PPEpfYp/WSOavvVShxLFRCnYnfGTA=; b=jWcwlN64PlM8OjQsR99Q7gKrOI wMuKRQQkrEFTNIAonemMH9nlkYAoB6ud63DG+YWeO5ulmorH/yWaZYDrjxs8haIerX5BG9D2PSWh6 KvOHo0eJKaATQMgC2IRehmwvEDvUub48D9DLLFvClGTw1ONkXs2cRRKM54uFmNJyLJL2dtIFsxd5F H/NLjK2xDxfspz1ZcZ0dhVwys/cIFrN4u4fqdQgPN17GLqj/kNxmylThriLyBjDwOpuRY9YJ6Yr0J 6I5mkHyFuavOBoQOOO4zjC2H2bNFFV1nYBtALzCns03vlAh+/BbuTtwD4sNTTCClqgkHWJHbuHljg m4Pi9PuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEKv-00000004RBK-04NM; Thu, 20 Jun 2024 09:44:09 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEKr-00000004RAs-3eMy for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2024 09:44:07 +0000 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45JKbqsZ022148; Thu, 20 Jun 2024 09:44:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= R2JDyZ4UzOKKd/PPEpfYp/WSOavvVShxLFRCnYnfGTA=; b=jStVfnrkVzu/0PgL qE8gD7AyxTymRFmgxVu3NsA4JkqNSoByloZnt44KPtcknswHDW15IDZEhCBeCPnD gN7lXLHJxTKTP5kvjIcj14jwKrLMK3+WvzAelogIv7fAZNwSohzMK09y7zI29pke +YRo+X3vOj8BdAqLJkE5aXhN0w3M8tEaYh2TR1oRYbh3pT4a+1pUPH9agCtY7/DR sL0xNgDLG+BBYgCZhzPcUi9ctnM9DNLPgTmO6oQCqehO6fYpwe4oMeHXO3uOC6ZC lRxmFHkOlOEVCLn3RLzWd0Dd1ikUvoiQRdJF7XsXd8/uuKzbB7A62aSSAczyt26z GjdiJA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yv6hn1dfj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jun 2024 09:43:59 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45K9hwn2023250 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jun 2024 09:43:58 GMT Received: from [10.214.67.128] (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.1544.9; Thu, 20 Jun 2024 02:43:55 -0700 Message-ID: Date: Thu, 20 Jun 2024 15:13:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] arm64: defconfig: Enable secure QFPROM driver Content-Language: en-US To: Bjorn Andersson , Mukesh Ojha CC: Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Dmitry Baryshkov , Konrad Dybcio , Srinivas Kandagatla , , , References: <20240619105642.18947-1-quic_kbajaj@quicinc.com> <5582a2a0-c772-4573-9d55-2f963cb87df1@linaro.org> From: Komal Bajaj In-Reply-To: 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: OEcZAlljB6IH6FWxMMgR7e9HdgTZfafY X-Proofpoint-GUID: OEcZAlljB6IH6FWxMMgR7e9HdgTZfafY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-20_07,2024-06-19_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 mlxlogscore=835 impostorscore=0 suspectscore=0 mlxscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406200068 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_024405_952819_028E3CF6 X-CRM114-Status: GOOD ( 19.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 6/19/2024 10:12 PM, Bjorn Andersson wrote: > On Wed, Jun 19, 2024 at 05:40:42PM +0530, Mukesh Ojha wrote: >> On Wed, Jun 19, 2024 at 01:08:48PM +0200, Krzysztof Kozlowski wrote: >>> On 19/06/2024 12:56, Komal Bajaj wrote: >>>> Enable the secure QFPROM driver which is used by QDU1000 >>> >>> Qualcomm QDU1000. You are changing kernel-wide defconfig, not some >>> Qualcomm downstream stuff. >>> >>>> platform for reading the secure qfprom region to get the >>>> DDR channel configuration. >>>> >>>> Signed-off-by: Komal Bajaj >>>> --- >>>> arch/arm64/configs/defconfig | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig >>>> index 838b4466d6f6..c940437ae1b3 100644 >>>> --- a/arch/arm64/configs/defconfig >>>> +++ b/arch/arm64/configs/defconfig >>>> @@ -1575,6 +1575,7 @@ CONFIG_NVMEM_LAYERSCAPE_SFP=m >>>> CONFIG_NVMEM_MESON_EFUSE=m >>>> CONFIG_NVMEM_MTK_EFUSE=y >>>> CONFIG_NVMEM_QCOM_QFPROM=y >>>> +CONFIG_NVMEM_QCOM_SEC_QFPROM=y >>> >>> Module >> >> Should not this be inline with what CONFIG_NVMEM_QCOM_QFPROM is having ? >> Either both CONFIG_NVMEM_QCOM_QFPROM and CONFIG_NVMEM_QCOM_SEC_QFPROM >> should be m or both y >> > > While that would be a convenient guideline, you're adding runtime > overhead to all other targets (Qualcomm and non-Qualcomm) so the desire > to keep anything that can module outweigh such convenience. > > Based on the recent addition of llcc and qfprom nodes I'm _guessing_ > that LLCC is the one user of this today, and it is =m, so therefore > SEC_QFPROM can be =m as well. > > > By expanding the commit message slightly, we could have avoided the > "why?" questions and the need for me to "guess" the actual dependency. > Thanks Bjorn for the suggestion. I will incorporate the suggested changes in the next patch. Thanks Komal > Regards, > Bjorn > >> -Mukesh >>> >>>> CONFIG_NVMEM_RMEM=m >>>> CONFIG_NVMEM_ROCKCHIP_EFUSE=y >>>> CONFIG_NVMEM_ROCKCHIP_OTP=y >>>> -- >>>> 2.42.0 >>>> >>> >>> Best regards, >>> Krzysztof >>>