Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp340442pxt; Thu, 5 Aug 2021 00:39:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDuJAUdWCAI29j33LGQLbZ5gqkv+f85XAsp9BF/4QZetbipC0drZxkvQhruPs5TmmfDFk5 X-Received: by 2002:a05:6e02:ccf:: with SMTP id c15mr481415ilj.238.1628149191301; Thu, 05 Aug 2021 00:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628149191; cv=none; d=google.com; s=arc-20160816; b=CPYygcHE3oTvi6LBkOp5oLLOdlzejNXu8zislICMC3v6VJphxEG9TjDAg0ahRYfDcq NPGSQYz2+Wff8+JYK0GWa88SO3FFX1Cr+mP61buEuZf3ZDg7xoSRvsVlcwGTkZpldTKi IAxSc9yChvG6J3PB9P+t2feq/BGfrfhq2mHAxWFBtAg7POd6EUWjbez5xmYJc/o3CBdV LpYFkeOhcbRfHCvJDe7OwbfwtknxsDHDEELdhX1P6ybvRkCeN+kUm6StBM1Cmm7DVGAb FuickMo4uDK3SHG0EFa2Np5AwnnoQ1vSH0yek3KZFeD1/VnEJ/ncAvR/4PawiHeZEyKx RPog== 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=kMB7D3FwR8aaeZ7GkcRhY+XNtv5mwLtm+gleHTDDxFM=; b=zlZSJcEHTQc4S/xXUdLaJkXu81lYSn4K74tQRWOt02KYan4iHrV2O37uMkjzNtebx5 7CxC0tGZXYmNlfoh+L88OP/nxgU9OnYXkzNbGvuhaaR1AeprmBBJ91uma4WO/+snWT4J fpN8gEKFSuuDIUyV5ezj4PDkUVIZBVZipzqcicDdHx8zyQ8cJuaSoKNKBsOVBqzMnjDA XpF0VUZDAdcioryVw9shGun+cZlActGoX9GC8fLuEmIshDypZDcnRJL+UMZ1NRA1TYZP W7h1vPtJ/YXVhmP3jq+wlU4aJnEKGFdF1JCH2vy595RF5ZBW+AIeFYg0dzdBMS+C0Msi AKDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Lv4wV3He; 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 h14si5165576jaj.58.2021.08.05.00.39.39; Thu, 05 Aug 2021 00:39:51 -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=Lv4wV3He; 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 S230250AbhHEHgH (ORCPT + 99 others); Thu, 5 Aug 2021 03:36:07 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:43934 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbhHEHfc (ORCPT ); Thu, 5 Aug 2021 03:35:32 -0400 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.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-0.canonical.com (Postfix) with ESMTPS id AA3513F352 for ; Thu, 5 Aug 2021 07:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628148917; bh=kMB7D3FwR8aaeZ7GkcRhY+XNtv5mwLtm+gleHTDDxFM=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=Lv4wV3HekGroQ/hTPtJtVipPEPt9mDzSD4Goe7wyZHqIjS3ZjasPftbluaQWapHOz uy8WLKfkEgujQSC1/ir4A7lJoVpMaDl8y/AU2s+DOza/vmN1ad4/XjOiePXL1eQLBv NxFJ+xx3vnkfO0cEgV31Ah6f9+tA8/oG3uW63+tfmFK4ZuMXVD4M4VuZADGjJTZVCe 8/StMN2gJdOvFFmeMwAn3j3gX6aIITA40xKYc37a0XuBP7IgEa5KI6v+ZaoFwn27Xj TOpPS44HjkkmaA2Np9U3t+h5VX1kcF7xD0YFI7e4J//iVsWq14UjWFJh5/v1gxnsOu 0OT3jUQSlElMg== Received: by mail-ed1-f71.google.com with SMTP id c1-20020aa7df010000b02903bb5c6f746eso2701974edy.10 for ; Thu, 05 Aug 2021 00:35: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=kMB7D3FwR8aaeZ7GkcRhY+XNtv5mwLtm+gleHTDDxFM=; b=iXYUGv6qLgDRyqw2oyfMIXtPUvZrmSZsaKo9h+FhzVSnNxPSQU0JEDPaFmN58bETj+ 7zvEGYZXBqksXT75yz13tCBbJrR/cDX4mvgSAaxwy6Vt9rsLiZLzs2/Rym0hfmbGdEhp WeOmTt64fmkMhfS9v+VNwAS11amwYWi2uGf+3Uj8ZlchcaSFPhlq3qLgxRlpr9PBXJ5B bdkCLBnE4Bur6Q69+F8pw5ia+NyIXe4zcECl2lsY9/V/+f4QYffUOYbVHNtz+jI0dgGs I1vtbo3cDTAM5aB70N/l76ID0N36e7Jx2C1kFEIYIwM//Lm1spX9H+qbykIZA/l0SZ// EDVA== X-Gm-Message-State: AOAM530Lt9jMvFUMkR9GtboIcie6GEgBjAdvpMar+dEpD1YrdifoUWsB m+lriBOuZOZRmfqYi9Odc6N91xdoWVeG6ijcRpJCN72JRSqf6ANlvNO4kp58oks8ciMzSuC5eAR 77NHa62NKw/0wdwg3BwjMV737fAqiynMu/JMEDnqeIg== X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr3499020ejf.416.1628148915213; Thu, 05 Aug 2021 00:35:15 -0700 (PDT) X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr3499000ejf.416.1628148915094; Thu, 05 Aug 2021 00:35:15 -0700 (PDT) Received: from [192.168.8.102] ([86.32.42.198]) by smtp.gmail.com with ESMTPSA id r16sm1886421edt.15.2021.08.05.00.35.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Aug 2021 00:35:14 -0700 (PDT) Subject: Re: [PATCH 12/12] arm64: dts: exynos: Add Exynos850 SoC support To: Marc Zyngier Cc: Sam Protsenko , 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> <87zgtwbb6x.wl-maz@kernel.org> From: Krzysztof Kozlowski Message-ID: Date: Thu, 5 Aug 2021 09:35:12 +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: <87zgtwbb6x.wl-maz@kernel.org> 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 05/08/2021 09:30, Marc Zyngier wrote: > On Thu, 05 Aug 2021 08:17:14 +0100, > Krzysztof Kozlowski wrote: >> >> 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. > > I have no idea which spec you are looking at, but the GICv2 > architecture (of which GIC400 is an implementation) definitely has a > register in the second 4kB page of the CPU interface. It contains the > GICC_DIR register, which is used to deactivate an interrupt when > EOIMode==1. > > Linux actively uses it when started at EL2. I was checking Exynos TRM and it seems it has one more bug... The ARM datasheet [1] indeed mentions GICC_DIR at 0x1000. I'll add "Fixes" tag to my fix for Exynos7. https://developer.arm.com/documentation/ddi0471/b/programmers-model/cpu-interface-register-summary Best regards, Krzysztof