Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2002839pxy; Mon, 2 Aug 2021 16:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+lFMX4BgtN+m7A8g0xRC61XVDTPYlFxp0BlmoksF+SWS2uDNuyUx/mI9RdxUMjkerP1rC X-Received: by 2002:a5e:9917:: with SMTP id t23mr120897ioj.158.1627946952431; Mon, 02 Aug 2021 16:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627946952; cv=none; d=google.com; s=arc-20160816; b=LbM/0Qge1ZnjSPS8/qUK39OiZ6kaudw2hS45//FnbSH8mGFB/3U6O9ixdHcUPCof9G rQCrCedfnhhKRPLZfJxlaTO11NbU9S9bWN9lkv7Ocd7g9NxlIedEloYr2cm/lB7AELCF yE5njzg5zCTSAE6PT1S/aBSIsEb43h0hcJxvlY/3dOIYtIqs1sGcFANB6nvlydequ+Yu EJAiV9QalaYYu/W9i6XxkUoUnenVf1H78IHG79octhZQeIIXYampEeBg4ulTpeZT6B39 5w3d9EQanm4t6XSjcNQvThaJg1UtvfZ6KUQhYDohuJYCaOQvz3efIDGNMlpJv3PUW6x8 6m+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QlzAmryyyeDSDQ1srUNZEgdUE1Lb18Ti4rrmaegWVkw=; b=Sn9YjEzIB3iJA/y7/6DcitdpQqPnGcQnvVFFc9O3o/1COzDEjC3873xy534EhKgjSu f5HjO8BzL1Pp01sgSCt4aQBD+SSOtznRMOct3h4l7nk0va6PWRAW1a+zCHk9pWdZsHRp c82p2t+vbIDGKQFe6bc5/ZbHEXOX9SAz+m4jqnMnqorZ7mOxrx/KVN4RtC2idEzWLIz0 Vu0PJEub49enBFbcd2zIYujCbSuutseAyBFBkDhHK/kNm7k2Ejm10hHIjg8qT8r8HU3L wcrflawhSfydnGZJzhsYLG6iA84dgrAusYtxX/3klJEEbbP8zhz18CioPEsoGvGkP6so R37g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ajmr1ho9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si13819017ilu.34.2021.08.02.16.29.00; Mon, 02 Aug 2021 16:29:12 -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=@linaro.org header.s=google header.b=Ajmr1ho9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbhHBX2J (ORCPT + 99 others); Mon, 2 Aug 2021 19:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232425AbhHBX2H (ORCPT ); Mon, 2 Aug 2021 19:28:07 -0400 Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC4DFC061798 for ; Mon, 2 Aug 2021 16:27:56 -0700 (PDT) Received: by mail-vs1-xe36.google.com with SMTP id ba4so7537536vsb.5 for ; Mon, 02 Aug 2021 16:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QlzAmryyyeDSDQ1srUNZEgdUE1Lb18Ti4rrmaegWVkw=; b=Ajmr1ho9O5wL+Ew02Av/bUFYn8XmF5TlaNe9PnsD4qjKZxYPBh8Ge6NcYutRfxIzUc JzKbAgn+JG95Zms5Z5w0a2ZuyOjUQWCuyc9IxcYp61b9ECvW9FXLrqERM7GgSVg8cNHW zOJHKvgJHXFIZAc7W7wvYHcGLp3zh5CaIo49Ttue+NXQGnSzoEWNn5lQSeOtryypEVU7 B/RKTe48HxHJspuGTebmsxIS1Wg/+LaA22N5jp/iqCGfOvsWgWY2BRLf/F33Bivk3UBt 2+f/FYN/8cvKYlCMFXDkVTvCA/ocfTaDlhP7x+uxHc+w6C7WVl0L13Zk6bdrEHKgsX4C gC9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QlzAmryyyeDSDQ1srUNZEgdUE1Lb18Ti4rrmaegWVkw=; b=K4qnE4ltsXcBspVUtobwqWA/c+RRGfYgiYgTmY767AGuJwVOnXp0DOhecBj3JhaJ04 gDTwN7jDTh00uA7g8CFky/fWNleVU6X4ipktbMwTwFVJZyvnbyfU6/QhliRgX/bUlUxG PbbDFVLU534NMMSqUAb+YwzmD9DVRwWtBjAiryGunltkT55lyoQGEt+8dCYQMtsBVtFj qtPVW61mhQ6LVdjOv0rQztbgwqlCaseGGgluGeOAVARkYJxitSEz2AgZ3oktczfOm032 uFv9QMNBae5x1opFdIF0Kv6y3b6DtUpKbzV7cG7fkjde2dN3iMhTOCkj8laQ2+75lsl1 LKOg== X-Gm-Message-State: AOAM531HB2TLT5jjhokfdpZuQ5AKmepsmPJEO+dxa1f1PG8JNNOfDTPR lQM9KKzxFtiZR35hI1CZpulTB05OMajWF/AoU2yGuQ== X-Received: by 2002:a67:f60e:: with SMTP id k14mr12216795vso.30.1627946875840; Mon, 02 Aug 2021 16:27:55 -0700 (PDT) MIME-Version: 1.0 References: <20210730144922.29111-1-semen.protsenko@linaro.org> <5e35b0a7-13aa-3c62-ca49-14af2fcb2a08@canonical.com> <13f166bb-7103-25d5-35a6-8ec53a1f1817@canonical.com> <2dacc205-04ce-c206-a393-50ba0d5aa1a7@canonical.com> In-Reply-To: <2dacc205-04ce-c206-a393-50ba0d5aa1a7@canonical.com> From: Sam Protsenko Date: Tue, 3 Aug 2021 02:27:44 +0300 Message-ID: Subject: Re: [PATCH 00/12] Add minimal support for Exynos850 SoC To: Krzysztof Kozlowski Cc: Sylwester Nawrocki , Chanwoo Choi , Linus Walleij , Tomasz Figa , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree , linux-arm Mailing List , linux-clk , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux Samsung SOC , "open list:SERIAL DRIVERS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 31 Jul 2021 at 11:12, Krzysztof Kozlowski wrote: > > On 31/07/2021 09:29, Krzysztof Kozlowski wrote: > > On 30/07/2021 21:02, Sam Protsenko wrote: > >> Hi Krzysztof, > >> > >> On Fri, 30 Jul 2021 at 20:21, Krzysztof Kozlowski > >> wrote: > >>> > >>> On 30/07/2021 17:18, Krzysztof Kozlowski wrote: > >>>> On 30/07/2021 16:49, Sam Protsenko wrote: > >>>>> This patch series adds initial platform support for Samsung Exynos850 > >>>>> SoC [1]. With this patchset it's possible to run the kernel with BusyBox > >>>>> rootfs as a RAM disk. More advanced platform support (like MMC driver > >>>>> additions) will be added later. The idea is to keep the first submission > >>>>> minimal to ease the review, and then build up on top of that. > >>>>> > >>>>> [1] https://www.samsung.com/semiconductor/minisite/exynos/products/mobileprocessor/exynos-850/ > >>>>> > >>>> > >>>> Great work! > >>>> > >> > >> Thanks, Krzysztof! And thank you for reviewing the whole series. > >> > >>>> What's the SoC revision number (should be accessible via > >>>> /sys/bus/soc/devices/soc0/)? Recent wrap in numbering of Exynos chips > >>>> might bring confusion... > >> > >> # cat /sys/devices/soc0/revision > >> 0 > > > > soc_id but you're right it won't be set for unknown SoCs. You need to > > extend drivers/soc/samsung/exynos-chipid.c to parse new values (E3830000 > > for product ID) and maybe new register offsets (previous offset is 0x0, > > for 3830 is 0x10 I think). Also revision mask might change. > > > >>> Judging by vendor's sources it is quite confusing. It looks mostly like > >>> Exynos3830 but in few other cases it uses Exynos9 compatibles (Exynos9, > >>> Exynos9820). Only in few places there is Exynos850. Marketing department > >>> made it so confusing... The revision embedded in SoC would be very > >>> interesting. > >>> > >> > >> As I understand, this SoC is called Exynos850 everywhere now. > >> Exynos3830 is its old name, not used anymore. As you noticed from > >> patch #2, it shares some definitions with Exynos9 SoC, so I guess some > >> software is similar for both architectures. Not sure about hardware > >> though, never worked with Exynos9 CPUs. Anyway, I asked Samsung > >> representatives about naming, and it seems like we should stick to > >> "Exynos850" name, even in code. > > > > > > Since the chip identifies itself as E3830000, I would prefer naming > > matching real product ID instead of what is pushed by marketing or sales > > representatives. The marketing names don't have to follow any > > engineering rules, they can be changed and renamed. Sales follows rather > > money and corporate rules, not consistency for upstream project. > > On the other hand we have already two exceptions for naming > inconsistency - Exynos3250 identifies itself as 3472 (which is confusing > because 3250 is two core and there is a separate quad-core > Exyons3472...) and Exynos5800 is actually marketing name for a revision > of Exynos5422. Maybe indeed will be easier to go with the branded name > 850... > Well, chip engraving says "3830", but I was specifically told to stick to "850" in upstream kernel. I can presume there was some mix ups with this naming, and it might be the case it's better to stick to "850" exactly to avoid further confusion. Yes, I can see that EXYNOS3830_SOC_ID = 0xE3830000 in chipid driver, but we can return "EXYNOS850" string for that const, right? If you google "Exynos850" and "Exynos3830", it's obvious everybody uses the former, so I'd appreciate if we can stick to "850" in the end. > > Best regards, > Krzysztof