Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2455877rdb; Mon, 5 Feb 2024 07:10:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGG1jBU9N33oXVdDw7E35h9AjOxIlzp4f75ODis5UO1PkUIT3+7HTDJEU22w85W/pziF6vj X-Received: by 2002:a05:6a20:9585:b0:19e:3800:d24f with SMTP id iu5-20020a056a20958500b0019e3800d24fmr17954330pzb.7.1707145853367; Mon, 05 Feb 2024 07:10:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707145853; cv=pass; d=google.com; s=arc-20160816; b=qRrnqBXetf8OUp1BjIwB8grSP/no0P5xLGwH7IXFqd2noWP7rZI6pFJ9gg460prrtz UwiOVrMZ5zyR/R7MGlCD+ziSRMxxieA3SgPRVoP2dIAIDUcK3rLGvOyUwMDEiodm0q1T k+5uTd8pgFJASD2l2oAn1lsu/L1ML3AyqnKPBj0STZSzmfUioJngnLjScD3G/CDAqtAU r8CQsNdNp7EsK8+m8YXsXlPIPcmQrSL7l1Ymg6DwvkKzvtJDX5Lu1o7LrhkeilZlh+A3 vIiUG7MH+dutXZGsZna0f/33hdYcESmKUiVelor2pHTJladsUzq7gU6/WrYJ5YqSEMJo Q9Dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=UYfEQ1FBGk7gyXSY+6RlLA4Hxjr0NcQe/J33L96nVSM=; fh=fo14A7xb1eIe/+6U0UiFHsN7Rzv4KYWwOXQ9eqGO/ho=; b=eIXs/RDvjnzH4EQ8R+deysZA6U68tNK640oA0AUY7EGI8Kv9HjgOP6DhA3YGgZRUX8 sqaFnO/BpI5GY2aaNev+waMvMjCWIj9tZ3LGa9ZicwusmsOuZ7u8cKYY9lN6boMIKZ/j H2/LlB+tE7tEmARi0TXwQ395Gka4vJ/eKAf7/n9lxm0uFmA9bx0KFSgXMOUR4Ty2yM69 z4qO4RNIDIHQ0rZjWT41svN+uiy/exSIYcM7hSQ9+zwSUmQ/PQYgfeHliEJf0g/3tVss XgnzYtpRjzci5ajp2SCTUu0BKQ74ToC2O1Ao9c2x6VV6swaD/SX41O23aA5ggvcvY2Z3 lhHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MYTE7d5+; 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-52832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52832-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; AJvYcCUn1ctwhrkrMZElCZ9zHDOHHGl9fHfZKPgt2AZqgXOpVSj7rs221f8CgiiZtsquLLVNhFoSaF/ATVtMSyEVo4ilVETUdIoeTO6Ri2aG+A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g6-20020a056a0023c600b006dd7c188edasi6232686pfc.154.2024.02.05.07.10.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 07:10:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MYTE7d5+; 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-52832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52832-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B84CBB27E7C for ; Mon, 5 Feb 2024 14:37:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 412C52C1B5; Mon, 5 Feb 2024 14:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MYTE7d5+" Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) (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 BF3DF2C19D for ; Mon, 5 Feb 2024 14:37:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707143823; cv=none; b=C/HiMarEGM/gQkfbUAfMlmTzfpoU5Pp53WP02tNw+O9zJpzAmWY6QY+/rZMWd8Ur+TH/78NYtT5b5VftmbfH2sS4zpZGqbft9qVV+XnPPfa/P+JtvFCkM/z73L6g7H/PrYyqnpRuUyq4aGvQgmNwMcnO6t01yYdSVWIOEkQ35PQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707143823; c=relaxed/simple; bh=gdFpGlX+7Px6n5MNmfG0p+jDiu1XQ8hKoha8bMMknYA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rI3HK8fPLobL0NBWcUeDMS0kdMD0eY93zzI8FXllqHsWp24I4rCnwD8J8QFhnf9RxkFF2fPGhtdiRjTE20ksHAk5gm0dlbQsfMCIGVOUyUu11DUOYyeSQV0hd2d68YhLgOnq4r7Jo2I/Qcv7eSeuhgpcSKbw/oTry0Mg9Dq+Rp0= 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=MYTE7d5+; arc=none smtp.client-ip=209.85.219.41 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-qv1-f41.google.com with SMTP id 6a1803df08f44-68c2f4c3282so22101676d6.3 for ; Mon, 05 Feb 2024 06:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707143819; x=1707748619; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UYfEQ1FBGk7gyXSY+6RlLA4Hxjr0NcQe/J33L96nVSM=; b=MYTE7d5+EESsNmvM0nie8wjTF9YO4gVqJG83HjOJzOhQ+I+lcIghSSGyncBn6HgnVb GAMjuJY4zh2U/wVgFKoP2QofNom+OCWMTorV0eN/4T+/H4FWFHjuPaiDSDnKsB+r3hlj 1sUXOFSCrhm7oUPsjtDCiCuKq4thCnUGBRTikNsLm9vzvAMzuCMOipKXhI1y8Qw16I4N 0cn0+IGtS5TkiFCPMVV5jeV7/qU7KkpHYmsLpYu9DIDSb5JaLcAJDPXNQCKRzm2OKWfd II958VSlxDEc+l774DXW99sKbAH/4Kv3LXli+igtXeQT3WhBDvnHHjVs/Tpby+ZLSskZ EcwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707143819; x=1707748619; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UYfEQ1FBGk7gyXSY+6RlLA4Hxjr0NcQe/J33L96nVSM=; b=nHn6qPD3yndk2ep1Wc3fKkviN4Qh2jKiHR9yMxmMLriqW9xcGfPXZJvo3WWkJqFEJP Q/VMe6rVh8Avqx8uANrPUwhCinA8+HywbnGB4YHN/HOaw4VT9Ef0Lc/Y7q2Q/zRLNQJ8 IsS6QR3F5Ipsiv9Cj9fQjv5yfkVywdUfPmEPCSO0XbwRFHVGRH844njCF5t2Dqd1SZK3 6oaoNTtsrZVWF+A+IXe6EV1xkCJwr2fdX5nUH5pkCI6KNj6ns/8Qwd7AHK2mXHLU9i9P +JNk3+iTL/y+Mh0hTl7jnRSu+8pPJVtoDzNdnJ6I545ErZIreB/QvWN8EPCsgtUDFf6U ixew== X-Gm-Message-State: AOJu0Yxv80OhYYcOZaSUCshO1sOWerY6IiDFPtVe6tbF+Q6jQVbuWAnP f6FQWwkr5WqB2YBmDho5krufDI5vzuMWC37R8pPfY5ZomqcQoqVIKrb+bGv+mcrMCT5TIMWMH7G seoUjwHoY5gRGYlWMPmO2YXK1upl5FewCUB1t9Q== X-Received: by 2002:a05:6214:f23:b0:68c:48f5:31da with SMTP id iw3-20020a0562140f2300b0068c48f531damr10597994qvb.34.1707143819702; Mon, 05 Feb 2024 06:36:59 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240201172224.574238-1-alexey.klimov@linaro.org> <20240201172224.574238-2-alexey.klimov@linaro.org> In-Reply-To: <20240201172224.574238-2-alexey.klimov@linaro.org> From: Peter Griffin Date: Mon, 5 Feb 2024 14:36:48 +0000 Message-ID: Subject: Re: [PATCH 2/4] arm64: dts: exynos: gs101: add chipid node To: Alexey Klimov Cc: krzysztof.kozlowski@linaro.org, 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 Content-Type: text/plain; charset="UTF-8" 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? Thanks, Peter.