Received: by 2002:ab2:7444:0:b0:1ef:eae8:a797 with SMTP id f4csp60169lqn; Fri, 15 Mar 2024 12:46:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnq1o5EvhnmIMMIHjW0mmW8+FrVKA+EVtZohJo+nPlHXbUNTLjgcGeKUZAwOWzYzoFNnnzkYoGeUL2Qrges7qyHfqvkpC+tin9QkqNYA== X-Google-Smtp-Source: AGHT+IEjALU7jlLIZMjJqC/5ztCzCyuYvOYo3maPWA9TszkpCC5KO5FL3W3TpJ8Me3kIBJkTvVYK X-Received: by 2002:a2e:bba5:0:b0:2d4:27b7:bcbf with SMTP id y37-20020a2ebba5000000b002d427b7bcbfmr3740452lje.19.1710531985644; Fri, 15 Mar 2024 12:46:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710531985; cv=pass; d=google.com; s=arc-20160816; b=qGmgIe5stq5mWl1c6u7ZEx8kV1gUZM3o2uHntEiWpAi7o/OyV13iGXkAX5sbNHPMx5 xLv3vYlIg7iv+SqcKFTsVoepHz6YtP9BhxP1OJggU5sdwHpcdhOiImCV6kTG2oCYlLi9 XwyhZDxNglX8nkkpn7FM6GcUGDDOwXWQgIoIZKDEpmx1KG3IU2CAC43RE9WHUz1DqwTc n8ic/9r+12WtJo283GtZxfJ2lTNWlNeOdXKdAARewxejs+SDhIy8o+/8X0EjNWtropN+ uRgZ2uTriZ8RLZ22vVEssz9PM/mdHSEOSBWxzM0PAQP1W/je7p76uYma8pkcH96GwW4s 3xMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=gTJxBtHkZtURvLdpHxzK0SCDYWfhPlTpXkkRTYnUjoM=; fh=bpm/HtTvaFkaWvcL/MWVy3QLHSnbAe4uDrPC3EZVADA=; b=yf0G/vrZLOb5aHvrjWGS5vemqGRdhJC40T0qW9USwLBAA3rkBzIsfBivuAm9GvJXRn zypLbChCdazE4dgGQq3x5mRuPvlrJzyGL/nQvPJCl1lgdOJjprI8C2ePcPyU39CMbxzH xLj5auxWqbTcU5YjAtQJ6iCyt4S+y+pRqyliwYEJ5f1ZMvTnPAmdpb92LfEGgdLzIafB pgWWkc5UNFYI6HG1yfjJEI6qn0FbAeo910XT37qMv+kqRuFRq7XwSFPP3fnCSyIbvh5T goiFw1B+sA1RMH5L7xm1i4FtB6wTCQNCfKhUxIjoih29FL80EfF77sUSv56fkZFCw6xy 8GfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ohMYRMt+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-104855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b15-20020a056402084f00b0056479742905si2117990edz.599.2024.03.15.12.46.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 12:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ohMYRMt+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-104855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 399F81F2221B for ; Fri, 15 Mar 2024 19:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51B745337D; Fri, 15 Mar 2024 19:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ohMYRMt+" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2EE852F8A for ; Fri, 15 Mar 2024 19:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710531975; cv=none; b=YWEctxFMbymReCF4SgdPriOJwj6CNYL8jKAYKjvIxEdSPbCWrslJ2uY5ltq5GA/xkQDlypXC+zeX7S28FDZ9PU9sEaMtzibc+q6r0N/DsDZjKczSAUiiBvmu4539VPTTC70mQWEN2jO8AtFSa2N0LhhBj4Bo0nnVGQcDQqo4tyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710531975; c=relaxed/simple; bh=KkXnkDWOuXBQGBnCrh+wCKwkOiHLEpOvCTW8edq0G40=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ke4E/TUbjEXPn6B1qm4rxmDHhpmpuvEibSUWRX9aJ2Fb3RKNpOk0L+xNrBmL+cze+kM4iZCMNj/wOlKW0ZVDPf45NTSgxM2TZloealbWO83B/co9pdXWCJPKKTkyRPyRR53+ZwlgpOjKl0MZmS0mwXn920S7u/FpfaRDJTVejZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ohMYRMt+; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d228a132acso34785771fa.0 for ; Fri, 15 Mar 2024 12:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710531969; x=1711136769; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gTJxBtHkZtURvLdpHxzK0SCDYWfhPlTpXkkRTYnUjoM=; b=ohMYRMt+7Z594SlM9oO0bHj0AhS3QC3r2wMxAMasM6N5vehLUaAaVcbNmeTD5ZDjKm /I65uwiUBydBx1vDS300qAKHSgnQHFTjUY5gmWfRGPQORvs7Hr4MXpJrHhj0uSnE7dII KhOTh6FchiwxhDT2gQFnZ+uFXvmZoU7tnpQ1Q7woGjfVg5dAqIWze7se7h0ZgzYpEJkO zOlqtK/tLmoudzEmHDLPeUEhPaxGSHEBxYLmcsM/uYJ5DSQ029DRzHvogzf8KUgbg1N9 ZmOkr6Hxt2rRTlLcQtwg+jpJ/aGofeQa6XdP6+YEt14req973KhIYPzz7ZfE/hgd2PYg q1tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710531969; x=1711136769; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gTJxBtHkZtURvLdpHxzK0SCDYWfhPlTpXkkRTYnUjoM=; b=NLVj4WhtjJP2TKy9I/lK7hIjUmKRZfmFVBH/Kcucs4mx7VeESMeD8O7hgtambrnzy+ 5d89UR/x1jtRy1E/1e3E3Jfhc9w5qa8SDpBpireUNBUcI0EFpRd1jqconBSSHeDN8fg+ jouZY88aZLnhvG+jZUX7scoj+5/ayZW+SK6gGVSNbKyDI16JVBmzVTWOLgOvA4y3uYB5 jOwM+TDk68f+9tritedkP6/kNN9jf5IQudU5BgKiB3Sfo7X8MLeLnStK2TSbEm3UP+tc uBnMCZ3ZxXReli7xtFtSIQxzbQD1MYQLNMA2CjAvzRozEpjyP37/89vGRi3yZCY0I3y2 5Ejg== X-Forwarded-Encrypted: i=1; AJvYcCWDo/9uhao7AYBMdXJPkIj5hxiOBfElOki9jTwDxLdKdJWEXSJB0N/hbV5XYhqAAlxovwQsB/PRBm1yiiU3Agbx13YYyd4LrIGK0zHu X-Gm-Message-State: AOJu0Yy3yWJwUWCjumW6M895yuUMXYhPN7/ezw8sMpvGGsZacaVShKLc zxhzLDwZAAEaiswUP2gp/2paHJSD/orsEpXioq33TbZidFLsb98QehSryt0lEYU= X-Received: by 2002:a2e:88d6:0:b0:2d4:529c:f490 with SMTP id a22-20020a2e88d6000000b002d4529cf490mr4067512ljk.35.1710531969169; Fri, 15 Mar 2024 12:46:09 -0700 (PDT) Received: from [192.168.223.169] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id t3-20020a2e7803000000b002d4922737d5sm76587ljc.119.2024.03.15.12.46.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Mar 2024 12:46:08 -0700 (PDT) Message-ID: <6af70342-0a87-46d6-8aaf-c44174017438@linaro.org> Date: Fri, 15 Mar 2024 20:46:06 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] arm64: dts: qcom: sm8450: Add qfprom node Content-Language: en-US To: Mukesh Ojha , andersson@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1709727995-19821-1-git-send-email-quic_mojha@quicinc.com> <1709727995-19821-2-git-send-email-quic_mojha@quicinc.com> <45fcf8fb-9d9b-4e6a-a7c5-9bfb96875e64@linaro.org> <69a8c14c-109a-103a-b8dc-d8e303c0f0d5@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/U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uNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <69a8c14c-109a-103a-b8dc-d8e303c0f0d5@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 14.03.2024 17:43, Mukesh Ojha wrote: > Sorry for the late reply, was on vacation. > > On 3/6/2024 9:24 PM, Konrad Dybcio wrote: >> >> >> On 3/6/24 13:26, Mukesh Ojha wrote: >>> Add the qfprom node for sm8450 SoC. >>> >>> Signed-off-by: Mukesh Ojha >>> --- >>>   arch/arm64/boot/dts/qcom/sm8450.dtsi | 7 +++++++ >>>   1 file changed, 7 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi >>> index b86be34a912b..02089a388d03 100644 >>> --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi >>> @@ -4575,6 +4575,13 @@ >>>               }; >>>           }; >>> +        qfprom: efuse@221c8000 { >>> +            compatible = "qcom,sm8450-qfprom", "qcom,qfprom"; >>> +            reg = <0 0x221c8000 0 0x1000>; >> >> Is is really only 0x1000-long? Also, is the base you put >> here the ECC-corrected part (if that still exists)? > > No, its not. > > Entire fuse space is this. > 0x221C0000-0x221Cbfff > > ECC corrected range is this 0x221C2000-0x221C3fff and High level OS > does have a access to ECC range however, they are not recommended for > SW usage. Are you sure? Bjorn always insisted to use the corrected bit. The ancient APQ8016 TRM also mentions this: QFPROM Corrected Region - [...] This region is intended for functional use of the QFPROM stored data by software. > > Above mentioned SW range(4) in the patch is  one and only accessible range available out of 0-7 SW ranges(0x221C4000-0x221Cbfff with each > size 0x1000) and does not have ECC fuses. > > All the downstream use cases are getting fulfilled with this. Right, and I don't quite get why there's an corrected region if it sits unused. Konrad