Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp369993pxt; Thu, 5 Aug 2021 01:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCJB6q9M1HsKC7Xxjm1ZCi9k62kF5+rEGTI8JDaLTXHu5XC4VEKONB+kfWfjkCc7Dg8IHQ X-Received: by 2002:a05:6602:2252:: with SMTP id o18mr579324ioo.177.1628152398276; Thu, 05 Aug 2021 01:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628152398; cv=none; d=google.com; s=arc-20160816; b=pF07SYEcMaGEU/0tjFxIpqrO26kGSK9f+nEoAY3GAaMeH5Xag1Wy9+bOappyVpMQUC kcBQVb00yBMS1IeWM0+irK+tbE0cCFX9uHGqxr3rx9q4JGFBWck8nCBkzoCtOo7Isbu/ oUsn5b6F2WJxvCnREbljvqgtyK1h4tk/53jXmA3dcB1bmnOMGchaKk7yS7TSQAYizJjO hBbrR4vZgMGLx9HJ900+9xUWM6WAqB/Zk6SyMMvN6mFKf34s+LZEQur5zHH1yrdBHt/m WKa8tRBf8/68aagsKGslnAelPhawba/pvRikYXNZkGNfIbB3nlu0QDcWT9qCvJvGT+bs +srg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=6jE8SFRe7ptXY9h+Q9iewRO8CdNFo9CcZ4yJYWrZSWc=; b=Ofe5NZrDPpoM2ONrUHym078YlWgQHJQUNqDPrTlDQO8Z5r0YyScFy8DEBY2Vj0tk2V c0czNkTxlkxPCCkSFmsjXP/9o1GElduaGREfeJmO+5bMwycQNLRE8uXL0XXQFJa4AmDJ 8tb5LnirhrQyhlQRyDM0Ex0S0x7N0Mlv8aSXTfgQaR8GEsWFErV48aU84g3G91tjzV81 x46HeJpmprp7esNcOaleOufu96sKzRCGuFiMx7JvwclwHi6uC4jEt/W3XH++KFGcv5LX E9h9xOrW0gceoXe9tzbirDpmfkE7PXgGNqfKuFbc6GxmezA/XUhwaaEGLlOKcfvDWODO UW9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=X8me6tE4; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si4886694ilj.162.2021.08.05.01.33.07; Thu, 05 Aug 2021 01:33:18 -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=@canonical.com header.s=20210705 header.b=X8me6tE4; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237556AbhHEHRd (ORCPT + 99 others); Thu, 5 Aug 2021 03:17:33 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:39750 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232009AbhHEHRc (ORCPT ); Thu, 5 Aug 2021 03:17:32 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.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 DC79A40670 for ; Thu, 5 Aug 2021 07:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628147837; bh=6jE8SFRe7ptXY9h+Q9iewRO8CdNFo9CcZ4yJYWrZSWc=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=X8me6tE4lw5QmZkYAWw87/0jieDfkIdskKwB0YU2RfwGKgXXqTZJIuemK/wZpC543 XVtoiXvK94yHZqxU4E2BXK7cOMU9A23pzeELv3elWKjGK+6AhE9KDbbWftSpTMl5pA lVvKYhcBknN+jOrTzeNKWd/0ecP5SWDNkl+upEioIUAmS205wgzBrdfhO6iPOutyDW Y5BgGQSJfoZZpipnu5JjA3/O20DCR4/9HDOY23hn4DXHYtqskD3noQTNSCKoJK6A2R QfB8e16w7ww2y3u9GCSpPP7nt6rFUQHMQb3MzMGVrXjachoHlbItsaWwLyUUYWH6o6 drTimwEheaPeA== Received: by mail-ej1-f72.google.com with SMTP id k22-20020a1709061596b02905a370b2f477so1702396ejd.17 for ; Thu, 05 Aug 2021 00:17:17 -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:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6jE8SFRe7ptXY9h+Q9iewRO8CdNFo9CcZ4yJYWrZSWc=; b=lhguZVlSDKRpblrcYUmpUXvKv2z38Lcg0l/tX7bgJyCy+9mY6BltnM9tTQelddaRum GYlOt7LyRX+E9NrymJix4uaS1pLzuDqbIJhdUrSRHpJBG5SOjnpPQows1cEx1RXPAgyg qrHld6TyfJaYtJJH6/e4ZM9wL2LTwRnc+6jdouzXCJvq6M0W0irAnw3PGskfuEwO96FX iWiDcfzvSse+3Npm5uDlQpGeh090NITB1myituLYTm5NRNL66/8+7iRcd7BKG7SywWJE fT6yDWxDR9CSz+OA4LlV3ofmDNX15vicMGoasRRsSWhpHnERHAdUX8MB6WPRgjjTC1G+ prwg== X-Gm-Message-State: AOAM533jad0KvJz/yuDoalhelNot6p9X0MaGHVH8gTtuppkUA/648rWT sy4JoZ34i0gpEynpm0JC/1LgIIRaRO+2B4ZmAr/RJzaRhZ67LeUaiZLy+bkBec0yqVDgIJAQJ07 nNP2DF6Q6CmakBZY1RgEwPQDNyLZz9ZHiygPqoKnDoQ== X-Received: by 2002:a17:906:814:: with SMTP id e20mr3376562ejd.497.1628147837579; Thu, 05 Aug 2021 00:17:17 -0700 (PDT) X-Received: by 2002:a17:906:814:: with SMTP id e20mr3376533ejd.497.1628147837423; Thu, 05 Aug 2021 00:17:17 -0700 (PDT) Received: from [192.168.8.102] ([86.32.42.198]) by smtp.gmail.com with ESMTPSA id g10sm1391412ejj.44.2021.08.05.00.17.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Aug 2021 00:17:16 -0700 (PDT) Subject: Re: [PATCH 12/12] arm64: dts: exynos: Add Exynos850 SoC support To: Sam Protsenko Cc: Marc Zyngier , 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> <20210730144922.29111-13-semen.protsenko@linaro.org> <15871f8ced3c757fad1ab3b6e62c4e64@misterjones.org> From: Krzysztof Kozlowski Message-ID: Date: Thu, 5 Aug 2021 09:17:14 +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: 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 04/08/2021 23:30, Sam Protsenko wrote: >>> >>> Nice catch! Actually there is an error (typo?) in SoC's TRM, saying >>> that Virtual Interface Control Register starts at 0x3000 offset (from >>> 0x12a00000), where it obviously should be 0x4000, that's probably >>> where this dts error originates from. Btw, I'm also seeing the same >>> error in exynos7.dtsi. >> >> What's the error exactly? The "Virtual interface control register" >> offset (3rd region) is set properly to 0x4000 on Exynos7. Also one for >> the Exynos5433 looks correct. >> > > The issue is that 2nd region's size is 0x1000, but it must be 0x2000. > It's defined by GIC-400 architecture, as I understand. Please look at > [1], table 3-1 has very specific offsets and sizes for each functional > block, and each particular SoC must adhere to that spec. So having > 0x1000 for 2nd region can't be correct. And because exynos7.dtsi has > GIC-400 as well, and 0x1000 is specified there for 2nd region size > too, so I presume there is the same mistake there. I understand, the range length has indeed same mistake. However it does not matter that much There are no registers pass 0x10C (so pass 0x1000). This address space is not used. > Can you please check the TRM for Exynos7 SoC (if you have one in your > possession), and see if there is a typo there? E.g. in case of > Exynos850 TRM I can see that in "Register Map Summary" section the > offset for the first register (GICH_HCR) in "Virtual Interface Control > Register" region is specified as 0x3000, where it should be 0x4000, so > it's probably a typo. But the register description is correct, saying > that: "Address = Base Address + 0x4000". The starting addresses of each registers range is different issue and this one matters. Except same typo as you say, all looks good - they start at 0x4000. > > [1] https://developer.arm.com/documentation/ddi0471/b/programmers-model/gic-400-register-map > >>> Though I don't have a TRM for Exynos7 SoCs, so >>> not sure if I should go ahead and fix that too. Anyway, for Exynos850, >>> I'll fix that in v2 series. >> >> >> However while we are at addresses - why are you using address-cells 2? >> It adds everywhere additional 0x0 before actual address. >> > > Right. For "cpus" node I'll change the address-cells to 1 in my v2 > series. I'll keep address-cells=2 for the root node, but I'm going to > encapsulate some nodes into soc node (as you suggested earlier), where > I'll make address-cells=1. That's pretty much how it's done in > exynos7.dtsi and in exynos5433.dtsi, so I guess that's should be fine > (to get rid of superfluous 0x0 and conform with other Exynos DTs)? Yes, thanks. Best regards, Krzysztof