From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 163DBC4338F for ; Sat, 31 Jul 2021 08:12:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 020E560F94 for ; Sat, 31 Jul 2021 08:12:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232513AbhGaINB (ORCPT ); Sat, 31 Jul 2021 04:13:01 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:56722 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhGaIM5 (ORCPT ); Sat, 31 Jul 2021 04:12:57 -0400 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id D92583F106 for ; Sat, 31 Jul 2021 08:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627719170; bh=HofaMjseVcCUgqSYBsyKnJ2om6JL+Ag5g9O40Ge5/aA=; h=Subject:From:To:Cc:References:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=KrCfpMKt7a20tIXJx0UX6vAmt0qXGZnxmrsdapyDypuBya8UfXsLCxfVU7XAF9vRp mVmOHEl8a/8HerNeScDyX4/MuICS6qe7utL38F+FMZrCdo3Pua6sOYmYyRM/xBd6Cn N/icXqx2z1L0PHAahtdEIFxCy2CItLRbRJ1tmdftcvLUkGXMjszt4flEeUPrny8V3K gqn7X75b6geCkACZVLrKW4eTkDOhQoNlXEcIEZv3NA77ksQwqTNdDdhTU2tAZ3k/oY 1zN1lDBS5lr6BVqdA3zli48hI87lMkiqgogps3JxU8wnCPfK0ZnA2nwixZ18pOqlwW WMhlHoBXZ9RZA== Received: by mail-ed1-f72.google.com with SMTP id d6-20020a50f6860000b02903bc068b7717so5834130edn.11 for ; Sat, 31 Jul 2021 01:12:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HofaMjseVcCUgqSYBsyKnJ2om6JL+Ag5g9O40Ge5/aA=; b=RQUxpqGCcxRFlKDaMCIU+IEqdpC52tzAuLrMcJMugJvTtLI5sX/IGluphAjZLSLvnv 1cYbtW81dxWazajuZHXv3s3SQJZLIbDjL6Qc0p0tBH0kV4z252sZw9anWQZUGpwPW29o kmWsGaMN9jN5KIBOV18eZSlXTTTyfyD9kTcphfXm/LDX/DWDkgAYww+Dubc4hA2nBi8u wwKqemAnW0gjTlTSX73nyc254Tt2Wh/DC0GZVsJDGBFMNd25iGR6hpsfBwOVhGJNQolb 8rpLMb/k9To86jVJV+o6lrfbvEYQSaEPDscMWxXMwcMSd0+UTX4mrhrv48iQB9Hz1KSR VLSQ== X-Gm-Message-State: AOAM531Aix3+fkdathJEemCvk7EkcrbgJh8MfaoPqQa7dRVe0c0VSXxx gGGMhKXR8NZtN/m6UydMunS3dZ2CItWtEskZrTQ0nk2mlGqn/gcOavesGooJPwOhPcslGXtdjT7 zrdrrabHhO7c/zXIlMEVyRKivL4XK6Q5mJNPAK2ZDsQ== X-Received: by 2002:a17:906:cd1a:: with SMTP id oz26mr6577420ejb.101.1627719170297; Sat, 31 Jul 2021 01:12:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm7c/vYPdEZ6qJ4RX+9vAac/dbPuwTMcFunGU0oW5pq2v9q/TLiem2CXVaQ4vIsN9WXGr5Fg== X-Received: by 2002:a17:906:cd1a:: with SMTP id oz26mr6577395ejb.101.1627719170126; Sat, 31 Jul 2021 01:12:50 -0700 (PDT) Received: from [192.168.8.102] ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id r16sm1860561edt.15.2021.07.31.01.12.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 31 Jul 2021 01:12:49 -0700 (PDT) Subject: Re: [PATCH 00/12] Add minimal support for Exynos850 SoC From: Krzysztof Kozlowski To: Sam Protsenko 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" References: <20210730144922.29111-1-semen.protsenko@linaro.org> <5e35b0a7-13aa-3c62-ca49-14af2fcb2a08@canonical.com> <13f166bb-7103-25d5-35a6-8ec53a1f1817@canonical.com> Message-ID: <2dacc205-04ce-c206-a393-50ba0d5aa1a7@canonical.com> Date: Sat, 31 Jul 2021 10:12:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <13f166bb-7103-25d5-35a6-8ec53a1f1817@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... Best regards, Krzysztof From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73F58C4338F for ; Sat, 31 Jul 2021 08:15:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BBBB60BD3 for ; Sat, 31 Jul 2021 08:15:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3BBBB60BD3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:Cc:To:From:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=+TBbQpOhmUCy5A/QjN5DJj4guKlvVNy/uKG9YD14Zzw=; b=HXFh1kQaqr9ELHo0tUC+DBYVS+ PNqjw/6w54xKtV8sdKSXZY+j3SFZmmUPv+fYSPDKQL9UK+nU3Pr2v1MAThpm1O6oLIjrnV/L3OutZ ErBY+cl+TBLswze2uxmiRoj9spd9dCG+NPaODIK2Mc1Upz/znqTJF74/EnRoEUUBQ9MOS+Kjvh+k4 j3/r20dRa2g0TDj6JnA4h0++eyYuSQy8ULCPLtyt+tzI6akQ6x8dNfXd5r+uESlva6SHYWcCfhlOZ 744MX6tcJCq5ghlouSlnqwwLjpKCAU1FGRylqPgs9iRFueMx+FLr8sfrN8JWkASoIiAMk2yvvOZ5/ FDvsYlyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9k7L-00BG03-5g; Sat, 31 Jul 2021 08:13:11 +0000 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9k7H-00BFzZ-1I for linux-arm-kernel@lists.infradead.org; Sat, 31 Jul 2021 08:13:08 +0000 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id 045AB3F102 for ; Sat, 31 Jul 2021 08:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627719181; bh=HofaMjseVcCUgqSYBsyKnJ2om6JL+Ag5g9O40Ge5/aA=; h=Subject:From:To:Cc:References:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=cFHIgSPpu/sGsOPndTjRXGDBAd0529AJshrSWTSCtsihiiFpB9HHQ7914mT26qELD f9aX9K5tF1HLyttQFOC/98yiVH93FUYzVIKjAFfjDDIpFRIIMzSEoIRHdHWxWwAvxo yORNBOJVppsPMiq2XtoOjGKV11uLlDYdxDgdQ1OwMe7jC1vEF9QyaiLzhMgHPu3FUr wALe54UxHbkWWugLq+45Tj2+UFTsayom9qEHPsoU/BQExqGr6kWzcbMJG1yYBEvgBb odzPmzXZTNXB8LV50qo38j3/x6U/Vta6NU0lO+19BoHxk4VEhNzKjo83b3QOak3UdB zaDZOLPYn1PQw== Received: by mail-ej1-f71.google.com with SMTP id gg1-20020a170906e281b029053d0856c4cdso3719688ejb.15 for ; Sat, 31 Jul 2021 01:13:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HofaMjseVcCUgqSYBsyKnJ2om6JL+Ag5g9O40Ge5/aA=; b=Wm8XRfR8ZDLwL6I5sYkG9/nKGyyK/louKAo9Sro6HTVtUSmKGC61qRLU5uhMt+92pq sEHlRy6zd7yfyIoJ50fcvWjHvPQiGSg8VmcWqhtzNgBmggulWkwRpYUY62DgsT1RGWbf YuaDrf/0o75uXklQUc3H8bwEG8I9pSy+4ZQuLBH2SAoj8+YGcD3Qmu+YwkH/waA3YJ3V raLrQZq1ADSwr8w0fHasGhb1zx/yOUEGanWw/pMD4+ftYfdqjaHXXcaeX8xT3DDRF5iP Mjr2+bgHJDLRe1Gj/uLOwPE9A8CQdYM9RPmHto9+BwSxQnmme4KL84l1OU09S1FJ62lX P6zg== X-Gm-Message-State: AOAM531RMRtuNWthbJv2pk08MX70t8gb/Asd5+pT8YHL4Ioq1/jNMGeb jNCYjMCE2tWDSTcBhGjHPLz2wkYm9F8HEAkOyWPQV1pNgNZCAN/55BrY8FzV16dd3jAODwx2l9F OnBaWxjaehoRLqrEpk0UhHdeq0HFdR9AKdKz1Z3JMf33IA3q/Hn4l X-Received: by 2002:a17:906:cd1a:: with SMTP id oz26mr6577424ejb.101.1627719170301; Sat, 31 Jul 2021 01:12:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm7c/vYPdEZ6qJ4RX+9vAac/dbPuwTMcFunGU0oW5pq2v9q/TLiem2CXVaQ4vIsN9WXGr5Fg== X-Received: by 2002:a17:906:cd1a:: with SMTP id oz26mr6577395ejb.101.1627719170126; Sat, 31 Jul 2021 01:12:50 -0700 (PDT) Received: from [192.168.8.102] ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id r16sm1860561edt.15.2021.07.31.01.12.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 31 Jul 2021 01:12:49 -0700 (PDT) Subject: Re: [PATCH 00/12] Add minimal support for Exynos850 SoC From: Krzysztof Kozlowski To: Sam Protsenko 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" References: <20210730144922.29111-1-semen.protsenko@linaro.org> <5e35b0a7-13aa-3c62-ca49-14af2fcb2a08@canonical.com> <13f166bb-7103-25d5-35a6-8ec53a1f1817@canonical.com> Message-ID: <2dacc205-04ce-c206-a393-50ba0d5aa1a7@canonical.com> Date: Sat, 31 Jul 2021 10:12:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <13f166bb-7103-25d5-35a6-8ec53a1f1817@canonical.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210731_011307_264159_C74FEE5F X-CRM114-Status: GOOD ( 29.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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... Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel