Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4350789ybg; Mon, 8 Jun 2020 05:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ+wwLuaILh9V4+hxKT59lSQHcpoR0eF5XJPQXJdulEraIWHxu7QombwHI9XgMYsGKkho6 X-Received: by 2002:a05:6402:a4d:: with SMTP id bt13mr16975302edb.338.1591620655460; Mon, 08 Jun 2020 05:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591620655; cv=none; d=google.com; s=arc-20160816; b=jiy9jkJj4khzt5/Dio/CWg2PWMFuv6mSVgjcCmcpCQk/Vm4Fc3W+ADpR6zF33vri88 XugZi7XMeO2u4uczS24HIL8DqlxBegPTzM6PsczAayGt/gzzi1ddx4L0fU8+a5+eIvHe CDEk+3YVyFbPrcwII7S4fmww80LlKmrmPufVQdCDcmVyak0XvADrE97JYkyjDJ6b6FRQ JGB6Lptr47wqbUKv2xz55z1RKWQ3zJAzHd0oTUYrL+sEdkcJkCzffkOT4eMhspLoXnVU yu+DfH8mVi0RwjRssHW7rm1V1UQKE6DmZB/Rh6YkaNzJW3zIJqpe31e7OSME4CUPPpn3 aBKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:cc:to:subject :dkim-signature; bh=kzrIHDMd1rJH0AYfztwR/dcAaSAkML42UEE2ly3amJA=; b=mQ2v74DJ1+UdpD6ZLZ/p2du+bmGi1ih9/n0TlKFCjwy5XwIGONl6TghPX3Ry6cn365 oXX8Hsvdyx36+ZWvnIwTZhSra4ZjUPz8wAw2FR+nOjMRkmYg2jYn9VHKqOH64oYJYx9R EbNNXKXxW7qbbRz/EIxFhsHGrzqSsqZnQ87XSq0kxDiDWOqJWF191l/pD6WfIhUFrvpF 2IuYc2RryzRYqTsV/PxfWdjNUTZ1MShXIj9zvxLV6s+j0GCIin8r0GdkaVY8WiKt9bI+ r/VcD+aYjwlHIGYdMVMLIv9Lvo65hK33h5mfD9xwNcQEIO2egVE3+EOWcEtgMbpknMdO uZiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0loXIBUS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si8496284edn.474.2020.06.08.05.50.31; Mon, 08 Jun 2020 05:50:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0loXIBUS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729280AbgFHMp1 (ORCPT + 99 others); Mon, 8 Jun 2020 08:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728996AbgFHMp0 (ORCPT ); Mon, 8 Jun 2020 08:45:26 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF13C08C5C3 for ; Mon, 8 Jun 2020 05:45:26 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id l10so17223488wrr.10 for ; Mon, 08 Jun 2020 05:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:organization:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kzrIHDMd1rJH0AYfztwR/dcAaSAkML42UEE2ly3amJA=; b=0loXIBUS7dwSHa3aONVP5pLg2sVnVA9pto08hPlYb4s+0wxBbOCXQvHxjPdJ4Si/bQ nQKQOjrwe1mlXB7NZcFCS93xG8qWBUxezAEqJQ7GWl47pd3102vfLxFQCFzgbLXHsAD2 qRNCmdeiBDeExVvCdDyOkRL4mcT7acS/zeK4j7N90pSTeUKZdZzZCd+G9w5aTzE6Efsd tA1mENtIEHRJIle17VXFKdi2+pDV5SroXKXkOcQjkCGNqyhvxwLQSAtXfsm7OLaAVe+t WkaGSySy4IZS+4iR+R7UMI3f2lNgRltv0VAQpwvxrfp43w1hb06TxZ2Sdr6E57TNkcML SjfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=kzrIHDMd1rJH0AYfztwR/dcAaSAkML42UEE2ly3amJA=; b=I8FmzXooCzDRVvHZj8VSTA0RmwvkSV+6hO2FG8bJkdkj+8RsifwqPqh9CvPbwI8XjN MYA2vZEq8iDQZudlLNWHilGa+4DQuxUaUCRQ32CtD9FTODKRxu8l98ZD6dA/0S2874/c ChpU3QtszdsL9vchT/vwJ4Jq6yxPeZmWrs5X2k7AcmZ4JMyRU4EAPO1j5EOOcKDjqeRo 0vhtb2ZaR8ZDYcN7ugt1mRhdLDQLCHC4oxTCpLBmueGsj0qP0kvts02vSjj2GyxxZCxQ 4K/PvVC2oy9SiIKjx9MuajfQHR6EfSiYbYLwKBMNi+3Q53/IA/WHA2XYbMOdF/Ya7FQP Mv0Q== X-Gm-Message-State: AOAM53185xEDvXluIBIlcM2trNajiUoqHmRhyvDT70wN4d5ySu3L5pJo WtPT8CAkM2r3dGCQQ4kwIN0PqlkFHH2E5w== X-Received: by 2002:adf:ea8b:: with SMTP id s11mr23860485wrm.168.1591620324100; Mon, 08 Jun 2020 05:45:24 -0700 (PDT) Received: from ?IPv6:2a01:e35:2ec0:82b0:22:5867:d2c6:75f4? ([2a01:e35:2ec0:82b0:22:5867:d2c6:75f4]) by smtp.gmail.com with ESMTPSA id j190sm22691969wmb.33.2020.06.08.05.45.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jun 2020 05:45:23 -0700 (PDT) Subject: Re: [PATCH] soc: amlogic: meson-gx-socinfo: Fix S905X3 ID To: Christian Hewitt Cc: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200604044808.30995-1-christianshewitt@gmail.com> <7d58e4db-2893-3675-eb93-ea14c3534b5b@baylibre.com> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk Rqv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Ot490+Ac7ATQRN WQbPAQgAvIoM384ZRFocFXPCOBir5m2J+96R2tI2XxMgMfyDXGJwFilBNs+fpttJlt2995A8 0JwPj8SFdm6FBcxygmxBBCc7i/BVQuY8aC0Z/w9Vzt3Eo561r6pSHr5JGHe8hwBQUcNPd/9l 2ynP57YTSE9XaGJK8gIuTXWo7pzIkTXfN40Wh5jeCCspj4jNsWiYhljjIbrEj300g8RUT2U0 FcEoiV7AjJWWQ5pi8lZJX6nmB0lc69Jw03V6mblgeZ/1oTZmOepkagwy2zLDXxihf0GowUif GphBDeP8elWBNK+ajl5rmpAMNRoKxpN/xR4NzBg62AjyIvigdywa1RehSTfccQARAQABwsBf BBgBAgAJBQJNWQbPAhsMAAoJEBaat7Gkz/iuteIH+wZuRDqK0ysAh+czshtG6JJlLW6eXJJR Vi7dIPpgFic2LcbkSlvB8E25Pcfz/+tW+04Urg4PxxFiTFdFCZO+prfd4Mge7/OvUcwoSub7 ZIPo8726ZF5/xXzajahoIu9/hZ4iywWPAHRvprXaim5E/vKjcTeBMJIqZtS4u/UK3EpAX59R XVxVpM8zJPbk535ELUr6I5HQXnihQm8l6rt9TNuf8p2WEDxc8bPAZHLjNyw9a/CdeB97m2Tr zR8QplXA5kogS4kLe/7/JmlDMO8Zgm9vKLHSUeesLOrjdZ59EcjldNNBszRZQgEhwaarfz46 BSwxi7g3Mu7u5kUByanqHyA= Organization: Baylibre Message-ID: Date: Mon, 8 Jun 2020 14:45:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/06/2020 13:32, Christian Hewitt wrote: > >> On 8 Jun 2020, at 12:58 pm, Neil Armstrong wrote: >> >>> The current value is taken from Amlogic's 4.9 bsp kernel which appears >>> to use the wrong ID. For comparison, here's before/after: >>> >>> [ 0.152237] soc soc0: Amlogic Meson SM1 (Unknown) Revision 2b:c (10:2) Detected >>> [ 0.152463] soc soc0: Amlogic Meson SM1 (S905X3) Revision 2b:c (10:2) Detected >> >> For SM1 we have weird values, here are the one we gen on KernelCI: >> SEI610 (S905D3): >> Amlogic Meson SM1 (Unknown) Revision 2b:c (50:2) >> >> VIM3L (S905D3) >> Amlogic Meson SM1 (Unknown) Revision 2b:c (4:2) >> >> And you report now: >> Odroid-C4 (S905X4) >> Amlogic Meson SM1 (Unknown) Revision 2b:c (10:2) >> >> And at the time you reported: >> VIM3L (S905D3) >> Amlogic Meson SM1 (S905D3) Revision 2b:c (b0:2) >> >> So I'm quite lost here…. > > In [1] you added the SM1 SoC ID and S905X3 ID { "S905X3", 0x2b, 0x5, 0xf } > which matches the BSP kernel source. > > In [2] I added a second S905X3 ID { "S905X3", 0x2b, 0xb0, 0xf2 } for VIM3L, but > this was a mistake (the chip is S905D3) so [3] corrected it to { "S905D3", 0x2b, > 0xb0, 0xf0 } which matches my VIM3L board. If the VIM3L’s in KernelCI now show > "2b:c (4:2)” it looks there has been a package change (silicon fixes?) and we > need to add another S905D3 package ID. > > In the last week I helped three different users install LE on S905X3 Android > box devices, all of which declare "2b:c (10:2)” as the SoC ID, which matches > the only S905X3 device I own (Odroid C4). So I assumed the BSP is wrong and > sent this fix patch. > > If SEI610 is S905X3 (implied by the original SM1 submission from you) KernelCI > output shows the current ID is wrong (‘Unknown’) so we probably need to fix it > with { "S905X3", 0x2b, 0x50, 0xf0 } then add new S905D3 (VIM3L) and S905X3 (as > per this patch) IDs. > > If SEI610 is S905D3 (as stated in this thread) the fix in this patch is still > correct, but we also need to send a second patch to add two new S905D3 package > IDs (SEI610 + VIM3L). > > I’ll ping you off-list to discuss. OK, we have 5 different values : S905X3 05 0000 0101 (first SEI610 support, early samples) S905X3 10 0001 0000 (recent S905X3 android boxes, inc Odroid-C4) S905X3 50 0101 0000 (SEI610 kernelci report, new SEI610 revision) S905D3 04 0000 0100 (VIM3L in kernelci) S905D3 b0 1011 0000 (VIM3L) Seems the early S905X3/S905D3 samples used the low 4 bits to setup the revision. And the mass-production ones uses the higher 4 bits. So we can detect all these with the following bits & mask: /* Early SM1 Samples */ { "S905X3", 0x2b, 0x5 0xf5 }, { "S905D3", 0x2b, 0x4 0xf5 }, /* Mass production SM1 */ { "S905X3", 0x2b, 0x10, 0x3f }, { "S905D3", 0x2b, 0x30 0x3f }, Neil > > Christian > > [1] c9cc9bec36d0 ("soc: amlogic: meson-gx-socinfo: Add SM1 and S905X3 ID”) > [2] 1d7c541b8a5b ("soc: amlogic: meson-gx-socinfo: Add S905X3 ID for VIM3L”) > [3] fdfc6997bd08 ("soc: amlogic: meson-gx-socinfo: Fix S905D3 ID for VIM3L”) > >