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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C3D99C4345F for ; Tue, 16 Apr 2024 16:59:15 +0000 (UTC) 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:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qm3pRbVCsH+mE4LNsuZmDTZt1k61QP6DCPSiqKjWbhE=; b=xQYD2yiw4llRC/ cvyzOSz8x+ygq/lv+sKsTR/4yfV7tsAHYdheXrs8gTD2nWgW9q8v1OF0+lmVsR2D8PkWifVGifzZf jsceh6WoTzTwlmxXHNtskJjM5q4O/pUjUGBbn2PLOcfAuf9gacXw0clmucSUnnuKbD1SONfVesipU wr1FbBxzkRq6Q5Ht3vPP4yqJyq+nqLKELa1LBvFaYXlvr+clFjYuDXY9DIfs1UuTz4egqoako02ze koEsQk+PnJy9np+H3D9MKWYDMDtRxNHADlo43s9C04j9iIa38EcwNBbaoWR/XDKhN64QgiqizyKdl YTxNZRatZ6h4ZTxvvglQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwm9B-0000000D5bN-0vGt; Tue, 16 Apr 2024 16:59:05 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwm97-0000000D5Z9-2sZW for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2024 16:59:03 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6eced6fd98aso4195518b3a.0 for ; Tue, 16 Apr 2024 09:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713286739; x=1713891539; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KWfaKH5keS4brSMvsRe/D018x90YicD6A19pBYw0+W8=; b=zWVqiaC9ho/VPKtFWPzL9qZAXqQ6OzT1sQBYUZFv6/LczZMZgqy/8z8uvQw8QoT0qW JpzkIdq9GyYPLszjhveqX7V9uNhuwMzr7vOCfOsjTVHPu7fbD9FkeEYYyrYppKxEWFHR lBWyU/zPk1o4LqLF1nwhBkVO4YkhcHB83ekATF3ZxDCruY1K99aWP/NFzpfR0QogWeKU Pjz/CLFdC57BvgVYvphQWF9Ac/pRk3Z46Z5fzZ/X8KmGA5ks8jcpjitkjAuOV3G3Txwb V1k03444j4p0W5GLN1BoIgl12mVIT1T3LSndjrxbz+66ACXdW8WVckUaLN1fp3IyF+5W 4PPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713286739; x=1713891539; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KWfaKH5keS4brSMvsRe/D018x90YicD6A19pBYw0+W8=; b=HlB9eSycHipP9gof9ZPqi0FPkcK2TT2USmXBIXKfWIAVh8zjDIhNbTPkMdHUgOYRUL D+QzK3EWGZE67iHY9ra13k/Hfpz4SGZ14qPUDPkagiE3SqLd/KXrsMWVPNU7CLGF/f+W scXa/ojw0NIJNKjHH4iNOxCdy8ITlh7dF1TwJgyT5cDPuDD+Up+gXWd1t7qcteUWH/R8 +ozb0LZjQbOBNdV17A/y8+CxPdE7SkgAqDqYnwnzrolbfv3l05ikesnOksffVnzXGtrG /vZFzSwAz4NLSwvy3HswYexKUS4OjepH6gC3mb2sDKgSGJxnrVJ7RN5firK7hAa1wns5 DwAA== X-Forwarded-Encrypted: i=1; AJvYcCWBwvriJEXBlra2ulWqI6BYYF1X+lOww7kaHDMbu0NUyjVxJ1zEzTySmhb+et8reQNxGtj3ELNfC8J9uOzeLhnB8Z2SjUtk1YoYXO2jdsZtWZId5Xg= X-Gm-Message-State: AOJu0YwdPgIlzIPpzDg7qIFOlJVsFDJZ9QRHKxrpTNq4PEA3o800GhnE vLl6nxdbsEtC+s39bIMaG3YCICtyAEkHZov9es11MO3by8CBcx0xaew4xd6ulgA= X-Google-Smtp-Source: AGHT+IF5bchOM5Ajqn1ld2S/Wn8rEC3XoO6+HL/hiPq0GTjHE721escY4Q1kI6+RN+TccwK9SjISXg== X-Received: by 2002:a05:6a00:22d6:b0:6ed:d8d2:5040 with SMTP id f22-20020a056a0022d600b006edd8d25040mr17657763pfj.21.1713286739096; Tue, 16 Apr 2024 09:58:59 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:6e4e:6aac:cff6:726e]) by smtp.gmail.com with ESMTPSA id d20-20020a63d654000000b005dc3fc53f19sm9190074pgj.7.2024.04.16.09.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 09:58:57 -0700 (PDT) Date: Tue, 16 Apr 2024 10:58:54 -0600 From: Mathieu Poirier To: Tanmay Shah Cc: andersson@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, michal.simek@amd.com, ben.levinsky@amd.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v15 0/4] add zynqmp TCM bindings Message-ID: References: <20240412183708.4036007-1-tanmay.shah@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240412183708.4036007-1-tanmay.shah@amd.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240416_095901_767668_8C7C1238 X-CRM114-Status: GOOD ( 19.35 ) 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 Fri, Apr 12, 2024 at 11:37:04AM -0700, Tanmay Shah wrote: > Tightly-Coupled Memories(TCMs) are low-latency memory that provides > predictable instruction execution and predictable data load/store > timing. Each Cortex-R5F processor contains exclusive two 64 KB memory > banks on the ATCM and BTCM ports, for a total of 128 KB of memory. > In lockstep mode, both 128KB memory is accessible to the cluster. > > As per ZynqMP Ultrascale+ Technical Reference Manual UG1085, following > is address space of TCM memory. The bindings in this patch series > introduces properties to accommodate following address space with > address translation between Linux and Cortex-R5 views. > > | | | | > | --- | --- | --- | > | *Mode* | *R5 View* | *Linux view* | Notes | > | *Split Mode* | *start addr*| *start addr* | | > | R5_0 ATCM (64 KB) | 0x0000_0000 | 0xFFE0_0000 | | > | R5_0 BTCM (64 KB) | 0x0002_0000 | 0xFFE2_0000 | | > | R5_1 ATCM (64 KB) | 0x0000_0000 | 0xFFE9_0000 | alias of 0xFFE1_0000 | > | R5_1 BTCM (64 KB) | 0x0002_0000 | 0xFFEB_0000 | alias of 0xFFE3_0000 | > | ___ | ___ | ___ | | > | *Lockstep Mode* | | | | > | R5_0 ATCM (128 KB) | 0x0000_0000 | 0xFFE0_0000 | | > | R5_0 BTCM (128 KB) | 0x0002_0000 | 0xFFE2_0000 | | > > References: > UG1085 TCM address space: > https://docs.xilinx.com/r/en-US/ug1085-zynq-ultrascale-trm/Tightly-Coupled-Memory-Address-Map > I have applied patches 1, 2 and 4 of this set. Patch 3 should to through Michal's tree. Thanks, Mathieu > --- > > prerequisite-patch-link: https://lore.kernel.org/all/d4556268-8274-4089-949f-3b97d67793c7@gmail.com/ > Base Branch: 6.9.rc2 > > Changes in v15: > - Use hardcode TCM addresses as fallback method if "reg" unavailable > - Use new bindings for r5fss subsystem > > Changes in v14: > - Add xlnx,tcm-mode property and use it for TCM configuration > - Add Versal and Versal-NET platform support > - Maintain backward compatibility for ZynqMP platform and use hardcode > TCM addresses > > Changes in v13: > - Have power-domains property for lockstep case instead of > keeping it flexible. > - Add "items:" list in power-domains property > > > Radhey Shyam Pandey (1): > dt-bindings: remoteproc: add Tightly Coupled Memory (TCM) bindings > > Tanmay Shah (3): > remoteproc: zynqmp: fix lockstep mode memory region > dts: zynqmp: add properties for TCM in remoteproc > remoteproc: zynqmp: parse TCM from device tree > > .../remoteproc/xlnx,zynqmp-r5fss.yaml | 279 ++++++++++++++++-- > .../boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts | 8 + > arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 67 ++++- > drivers/remoteproc/xlnx_r5_remoteproc.c | 273 +++++++++-------- > 4 files changed, 459 insertions(+), 168 deletions(-) > > > base-commit: 4d5aabb6843939fad36912be8bf109adf9af0848 > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel