Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2936342rdb; Tue, 6 Feb 2024 02:10:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgPbvGJyoO+CJWwjLAN4b0VdzUJMklReoNkeH4vKXhQlCIvJLT2XFX9V0nvkgkRl4jFb6l X-Received: by 2002:a05:6359:4c11:b0:176:5615:3ddd with SMTP id kj17-20020a0563594c1100b0017656153dddmr2248983rwc.2.1707214226049; Tue, 06 Feb 2024 02:10:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707214226; cv=pass; d=google.com; s=arc-20160816; b=R4AIjiWtX3v6YEH4v8OxF0YUJoRYEGqBH/u7tvwX12WkdgmohuSpQKVuxHbSltnSaA rHQDN2Q9ONfcjfKbP/jY09SKc7b3Pjbf2GpGLEyycLRAVcRFn6Uj7oTbj3Mo71UiGtpu 5vN0MLgsnmv/1wIybiBoz5vlSZBhMyHe963826IKYAGLQ+YpxNaBJjcmto4WvbDQsRl2 bWaYvAMcajnxxZqcoyTU8oN7bzDQcNJF67oeTmlErpGxCaQtHXc25Sq8RyxabQ961eGv tL3stWtvbhIRCKx6pXLEIiXokhLRpkAF1Dp6DqPIelWsUB+Ai1S/et3WB5mOz34xzKDT qT8w== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=DFjdI4H+4XlAK5XDWdvFCmHsUrlweegvlAR87DZPruU=; fh=LHOVUghDUJSSAne1nm96mzWmj8fKl0OqH24JUFNVXwo=; b=zD07af35ILERToSijsQlAXNEya2K/j/e2x27CpDycTZZPxV7nAR4sS+HH2xj9BiHf3 qC9H//KRZ2YpoGWi4qyqtd66Z7DQvNj5EwkLhKsizeSvCR2YSgtuGkWCThEJ6bJthexd NAxb2XY3kyvqTt9ldIHW6RK3ZK3ruxePrgeMypo12rgwDLhLtuM5Fbz6R+DI2KLlCPOM VjZGky+lqHiPbjweoofcejjaum7xLCM5g5ghzuWP7guwVscLi1PYURFDjZ0kG7+IpJuS szImqguMlth/6bpglboCHDaIy59DeDMWEZgmXAzybnW4tq3YittO8aQaLl4Hk3/cc6Pt Q+vA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UZcK4N98; 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-54654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWgv3/9qQ7kzNXTES1rJiqG34P4dPJHmoX36FqQfOitAzNnpd+m+aiI3ojiUzec59uPjmOXyn0KcGskzYS7W2vJDrIAm8BXEs2dGvd36A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i24-20020a63e918000000b005cddfe0c82bsi1417635pgh.211.2024.02.06.02.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 02:10:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UZcK4N98; 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-54654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54654-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9595B284213 for ; Tue, 6 Feb 2024 10:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A599512E1D0; Tue, 6 Feb 2024 10:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UZcK4N98" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 6836912DD86 for ; Tue, 6 Feb 2024 10:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707214213; cv=none; b=U3pFEzpnWaqLQhDzXkHx6IE2o6P4mpIzDoxkz5lWpI6oFAC8fAfaiqtyU/piwwnkm8pnWSVovz6YiwsaNy+oMLXvQkfWaSmE8DCyHgLGaneeZMaWboSH3XsjfhttvLUK8ykx1CTJTk6Sk+Eh8GxDHvvNzkqFAEx5+7iXGYGgJk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707214213; c=relaxed/simple; bh=+BMJMrZCmgT2D7pFoOaT+XHsPxMbkbEk9k/kf/Csw1w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rKsr5u1du6quD0EDtkVSgXEzDvWVGXfX6glg++36ewsbiKZTEKhED05ZbFrDbz7rpv+w29TuBPmw/rj+QM0eIGCcEwSp63RG7HtZyg1+PigHNZx6OLiG5b7XprkKo9HHwLU7V96nX/+13oV5M9pPz5YTosH9iXcMMs+KXGCd9Xw= 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=UZcK4N98; arc=none smtp.client-ip=209.85.167.50 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-lf1-f50.google.com with SMTP id 2adb3069b0e04-5114cd44f6aso2386511e87.1 for ; Tue, 06 Feb 2024 02:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707214209; x=1707819009; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=DFjdI4H+4XlAK5XDWdvFCmHsUrlweegvlAR87DZPruU=; b=UZcK4N98M6L/6CSuppUJynHplDWZl7/VwlvHy58VOcM/zQuooyQ1Ams0ZS/tjaxywt /4QvQ2WcQzma0jDmSUdJuJemU7XwUTSKvW3itMNVW9G9QAj7QpZ9wPkNDbyKKftdYmyd cfqlef30GOWhncuef73pZHxZ3JvO8md62+bBtbLpf5rA7I41SfqfRMDP4nwvvOJBeM5t jPQWw45fYtKlv2sDzJyc1CoC2TLPpmZOOdsc47QSB90hH5gT9dkXXBIufiQljZC8SVlF B2wPyKrzzz3/q+rXu+A52j11Dvd56liKettrY0VUHwVySk9XLGuRB2eCzmloAMAPv2yQ nx9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707214209; x=1707819009; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DFjdI4H+4XlAK5XDWdvFCmHsUrlweegvlAR87DZPruU=; b=WvSd25yXZIevK4NAnNXxEyLt7c3431T3P3Inbq3jeJkPztycDLFTZRYCOasd7a+YE/ A82Rafk0MKWaFB5HO0+Xhur+QtLDm5uP0kS3thNfGJKJnaiprhkkvERy3HzCQ10dw6pF doe/dmDQ6ABaxQMMgjIvcWCnWnw7VQVlg1pn7d+G5DUQSOwK/vE7DMscnGIYQ3MdJdhx gjiyet+LqOjIcg77+tGbHTFNZzT7zTcPqN4lubSTSgxEIw4pE2yR1mzSI07NPfAPiRk8 amoZFGK3obhORXCgH2B4DDaJn2+YSOEG34LhB80rxST2vv+6gf0GQJU9pQLxlejECevE VCSQ== X-Gm-Message-State: AOJu0YynO3kJNNTHbHc1ODCYetZ7PuyjUXqqhXhXzm3n82koAj2GV1P3 PL+9yavl9mhm5zlEX1+F8vzZOJ2rusKuSVRcoVyJaCJvyj8/Leju9A46v4YFu78= X-Received: by 2002:a05:6512:3b8b:b0:511:4cd3:d313 with SMTP id g11-20020a0565123b8b00b005114cd3d313mr1913738lfv.51.1707214209414; Tue, 06 Feb 2024 02:10:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWoGMwHwSUBmWevWPyy9hFJlzl2FYN3wA1WS8KzvDVxEBP1eUB4hsix7XJIpOC39O20Xqr+qiw88W1OqaGQkRIkToDPc3lXEz9QA9cBgoqmINr5bPIBqoG3fIADMIF6Z+7vIMBPJ+9SP/Z6hfZPCvMoEARAeFhKA4r2wmmitnwNYGazIiH0dD7gJB9YnfhYxsJ2dKQt7kV0JVW/yCjlfBJ00c1+DL/Zyy0CVXGsG72vXQh3qd0I33BiUUwdNNnN9vdtPumR8ZMtZajEpVRNKQcOOz9KbzfrVrU7hAxVS3ypTvcUSf/GBQ1g+zzkpsIhXjjvLfvQY7mfY/z8t+YoA2NfEk3MqOHSapls/EDmqn8+nm4Fa5YNuI6+CqJxpcSjbqp9za0XVYJodCzU77bHcKiYYU20TX49UHqgO3Lu+9/H4qbVt2tZt0R48iMdOMiwy8/UT2gDsI7A1BHSEAqwOiPGYD50wcxYUQoHLSr5dND6IvyympWnlx696NeHdpG3aAyMD6VHfHjA7q1VvdNTDVFwCB6rLXMdU4m3J2AnBKOLOUbrUI6ajKQtdKjqfrzJkk4lqqFf+uTcq8dBVlGeWbl+cx41cbs4h+fcK5LXbmAitd5TNJBXQg== Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o5-20020a05600c510500b0040fddaf9ff4sm1489222wms.40.2024.02.06.02.10.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 02:10:08 -0800 (PST) Message-ID: Date: Tue, 6 Feb 2024 11:10:07 +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 2/4] arm64: dts: exynos: gs101: add chipid node To: Peter Griffin , Alexey Klimov Cc: alim.akhtar@samsung.com, linux-samsung-soc@vger.kernel.org, semen.protsenko@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, arnd@arndb.de References: <20240201172224.574238-1-alexey.klimov@linaro.org> <20240201172224.574238-2-alexey.klimov@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ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8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/02/2024 15:36, Peter Griffin wrote: > Hi Alexey & Krysztof, > > On Thu, 1 Feb 2024 at 17:22, Alexey Klimov wrote: >> >> Signed-off-by: Alexey Klimov >> --- >> arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> index d838e3a7af6e..156fec2575bc 100644 >> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> @@ -283,6 +283,11 @@ soc: soc@0 { >> #size-cells = <1>; >> ranges = <0x0 0x0 0x0 0x40000000>; >> >> + chipid@10000000 { >> + compatible = "google,gs101-chipid"; >> + reg = <0x10000000 0xd000>; >> + }; >> + > > I was wondering about the 0xd000 size here, as most upstream platforms > use a chipid size of 0x100 or 0x24. I see the downstream gs101 kernel > also uses 0xd000. Looking a bit more, that is because gs-chipid.c also > has support for dumping other areas of the OTP SFR bank like asv table > (offset 0x9000) hpm_asv (offset 0xa000) and hw_tune (0xc000). > > I checked Exynos850 and that also has ASV tables at those same offsets > above, but it currently uses a chipid size of 0x100 upstream. > Exynos-asv.c driver is part of exynos-chipid.c upstream so it seems > reasonable to have the increased size including those SFR registers. > Currently exynos-asv.c driver only supports Exynos5422 upstream. > > @Krzysztof - From a process PoV what is the best/correct thing to do > here? Have the increased size in DT that includes ASV parts of the OTP > bank from the get-go? ChipID so far had only size of 0x30 or something like that. What you refer to does not look like old ChipID but full blown OTP, which also includes ChipID. Although I am not entirely sure about that, either. Depends whether they share clocks, for example. I don't have any GS101 information so I don't know what's there. It seems you ask me to give you decision based on guessing... If you have one block, so if there is OTP, which contains ChipID, then define OTP. Not ChipID+OTP. I think Exynos850 DTSI is wrong here. That's OTP block, not ChipID. Best regards, Krzysztof