Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7396721rwi; Mon, 24 Oct 2022 14:07:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5j5Se5nJB0JvP43GxjxDcT7svDm/2SA4nd+dLkCh7/1u4Jh6nxakBdGp7bd+9MKcD5Jy/i X-Received: by 2002:a17:907:2c4a:b0:78d:f5c2:70d1 with SMTP id hf10-20020a1709072c4a00b0078df5c270d1mr29833714ejc.198.1666645648602; Mon, 24 Oct 2022 14:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666645648; cv=none; d=google.com; s=arc-20160816; b=rZdv7tAsVfe+S6IWP7AgijRe3MBqhYQhXPTqrTJDfrLHaTQplTiVj8BwlIyerhFN9z nOxgCcNBfUXxjxPxQtPHa7db6rQW35OZZhFL7DRxfrAH0AqJm6mxDglC0HqBxmLRILXX QmvkNTtYSBj92UhdR8jZgiZTNbkeD6Z5Pon8KJcZCH5zmzhJWVGio4YDy0FSfjJBvssN Jr7e7nRBcfuD0zu0ilIXpR+3SXeDjVWElbwpXEeZk1trli3+K9SbQ4KCkXVYr+SAXdOf ov8e1jacgGy4E2iyj+NBPzgrsLutfBIYhTsQYVHwfxn59BNYoKpc7KLQVkcPoN7VRHwF Y+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=I99K5okNHj9DY0iCHvns9gSnT1ZJFo2RdmiNrPZQRxA=; b=LloVsw8jKQwAUNJ31YZtYt2E/W6LqGmcjomUkTRCTNbUTlTah393SFCvZByFBZzs9W RCCXTMMT8kIS6KNy7Ft6Ch0bjmxgK7oXBe33IkgSGTZxfw/sGROr9304ssrP/uxwr5Do HDpV5HK/bA0wsd1exOSPVKQ1EvTOLkxxS+n1pBUjsH4z73du4hs19X75al7VcBIHXJyY MvmXwhUUrWneJayl9ngD6CM5h57yiskpuiGj3w5eXyRVza1YZp7foCtPjp61ej5Sxx1Y lULTG3pWaAOgzo5oEG6wfwnK4cDQq4RX60yix2X96TJdFFDDCgGP8Cm2m7rNFe4bn9jV r4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fjjh+Vqo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a170906520f00b00782393c36cfsi727306ejm.336.2022.10.24.14.07.01; Mon, 24 Oct 2022 14:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fjjh+Vqo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235189AbiJXUrE (ORCPT + 99 others); Mon, 24 Oct 2022 16:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235092AbiJXUqa (ORCPT ); Mon, 24 Oct 2022 16:46:30 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF303BA25E; Mon, 24 Oct 2022 11:54:13 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id r22so13947107ljn.10; Mon, 24 Oct 2022 11:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent: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=I99K5okNHj9DY0iCHvns9gSnT1ZJFo2RdmiNrPZQRxA=; b=fjjh+VqoY24xpSkbD5FlM++9ADwleBq4rStVCyBkKmVwwg0D0cYLIhxcnvP2FcRAdC 0sIuuL2nJhgoVovJUCNfaytjlctNZlK/GIVzGFea302vmyab9pDPieiWbp5Ln3+wiOYm tbGsTZqRofcMRwQcYkc66ILWMcfo2dZUGEC5ROxLE0edhkSOCOkWFa2Hg7wG12D+RdRv Kmdsb21rKPICe4ULCWF8/ejahaYsgOb6HbngN+eOFQ2i5Cr2wQLUkjf5tAlc3xdNH3Q8 XvKeX3IVBsq8I+lldDB/ultMdooUmwjKJwsK91QRXhLC9UhJSY5T7fRNGPkzmz4CscKh cAdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent: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=I99K5okNHj9DY0iCHvns9gSnT1ZJFo2RdmiNrPZQRxA=; b=RAFti6E+DhS8AgXa3+HSIfxyz3QEp08lwoH1T3kvw8G/Rh6lGj4j92HwjRHGAaTqt4 CB7G/bisSqeoolFxq+XlNsWD3AHMR9lbtAU7imJmkIyKQ+Ja4RnvZu/xOouxscwwcWUe 8jsFsGN+3Xak/o8EihQF+gnAo6o4EL+ucZ49xdrFZbD+N4LEfCgFcGqkO7un8XmA9yWB XBRfenUHr8j+4mvo8UmSR/CHKqAoijzX17XaCY8ALPCsEalQBnigat2E0/VtyRCmJQac T308dqAjzywozdqGaYffNvSsRL0q5aoJ/N71rOBUqQl888RqA58E6moX3Ee4tomKt3my Nc8A== X-Gm-Message-State: ACrzQf0NSBjYyXL+zM0XHRjX2I9sB2qktaK18JhNvL3+TzQliCs3ShFy Oztg7GpCZNM8a0nGXhUzVJ3OnTrJLBg= X-Received: by 2002:aa7:ce09:0:b0:461:5406:20e4 with SMTP id d9-20020aa7ce09000000b00461540620e4mr15004323edv.5.1666617355456; Mon, 24 Oct 2022 06:15:55 -0700 (PDT) Received: from orome (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id y16-20020a056402359000b004589da5e5cesm18755197edc.41.2022.10.24.06.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 06:15:54 -0700 (PDT) Date: Mon, 24 Oct 2022 15:15:52 +0200 From: Thierry Reding To: Mikko Perttunen Cc: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Jonathan Hunter , Mikko Perttunen , Ashish Mhetre , Sameer Pujar , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/8] Support for NVDEC on Tegra234 Message-ID: References: <20220920081203.3237744-1-cyndis@kapsi.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KWZej2K6xFmsTmcs" Content-Disposition: inline In-Reply-To: <20220920081203.3237744-1-cyndis@kapsi.fi> User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KWZej2K6xFmsTmcs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 20, 2022 at 11:11:55AM +0300, Mikko Perttunen wrote: > From: Mikko Perttunen >=20 > v3: > * Updated patch 3 based on comments >=20 > v2: > * Updated patches 1,3 based on comments > * Added Acked-by to patch 2 >=20 > Original message: >=20 > Hi all, >=20 > this series adds support for the HW video decoder, NVDEC, > on Tegra234 (Orin). The main change is a switch from Falcon > to RISC-V for the internal microcontroller, which brings along > a change in how the engine is booted. Otherwise it is backwards > compatible with earlier versions. >=20 > In previous iterations, firmware was simply loaded from disk and > written into engine internal memory. Now, the engine has a > bootrom that loads the firmware from a carveout where it has been > loaded by the system bootloader; however, we still need to tell it > where that carveout is loaded and some offsets into it. For that, > the first patch adds a new memory controller API to query the > carveout address. The offsets are read from device tree -- the > expectation is that at flashing time (when the firmware is also > flashed), the flasher also delivers a device tree overlay with > values corresponding to the flashed firmware. >=20 > The currently available Linux for Tegra release doesn't yet > include this device tree overlay flashing, and the firmware version > it contains is incompatible with this series. The plan is to fix > that for the next Linux for Tegra release, but if necessary, we > can postpone merging of this series to once those changes are > available. >=20 > Thanks! > Mikko >=20 > Mikko Perttunen (8): > memory: tegra: Add API for retrieving carveout bounds > dt-bindings: Add headers for NVDEC on Tegra234 > dt-bindings: Add bindings for Tegra234 NVDEC > arm64: tegra: Add NVDEC on Tegra234 > gpu: host1x: Add stream ID register data for NVDEC on Tegra234 > drm/tegra: nvdec: Support multiple clocks > drm/tegra: Add code for booting RISC-V based engines > drm/tegra: Add Tegra234 support to NVDEC driver >=20 > .../gpu/host1x/nvidia,tegra234-nvdec.yaml | 156 ++++++++++++++++ > arch/arm64/boot/dts/nvidia/tegra234.dtsi | 27 +++ > drivers/gpu/drm/tegra/Makefile | 3 +- > drivers/gpu/drm/tegra/drm.c | 1 + > drivers/gpu/drm/tegra/nvdec.c | 171 +++++++++++++++--- > drivers/gpu/drm/tegra/riscv.c | 106 +++++++++++ > drivers/gpu/drm/tegra/riscv.h | 30 +++ > drivers/gpu/host1x/dev.c | 12 ++ > drivers/memory/tegra/mc.c | 25 +++ > drivers/memory/tegra/tegra234.c | 5 + > include/dt-bindings/clock/tegra234-clock.h | 4 + > include/dt-bindings/memory/tegra234-mc.h | 3 + > .../dt-bindings/power/tegra234-powergate.h | 1 + > include/dt-bindings/reset/tegra234-reset.h | 1 + > include/soc/tegra/mc.h | 11 ++ > 15 files changed, 530 insertions(+), 26 deletions(-) > create mode 100644 Documentation/devicetree/bindings/gpu/host1x/nvidia,t= egra234-nvdec.yaml > create mode 100644 drivers/gpu/drm/tegra/riscv.c > create mode 100644 drivers/gpu/drm/tegra/riscv.h Applied, thanks. Thierry --KWZej2K6xFmsTmcs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmNWkAgACgkQ3SOs138+ s6H1Ug/8CBt81YrUCMB0wW9UNf0O1bOW7hIhb1tgxsr2RMVYK3NwPeZ2ohL75GUw SQXTWEbbail1dIL/f1pV+GWn91fY9L9RblJ8s5YUe9j5kEsoxh4Ein1HB53vrahz ibKVTqNGxLQBXqtSUfARQ4HpLUnlWmL8ali2+bnOl18HmUqWIPvUCRq90Hyq1Ryt TKR4lMzVjoBn0ewUyD1bMkVwT8i+cux7my/HVUnkJtoVKptByyY+Gzi9wgo+isw2 u8L/uk7xruuWQUl7pWYLK/NyaNA4mddZzav4Yrt5tdV385OP2S8L6pRsdpuHA5Mq TI3DItWcQWAGLQQJazBwigOPn5Ib1xBUgCjVmkjbfmE3bdWKO+4OVGxg+Xrw59v1 lGBkgg1V0UdKS+3hQbm9UGRK2ukNgvLIhuuoLs5KIL5Cx/5U+gpheb4L/Th2ixRZ yBeUDQ4EAxd0DraYp7hWwDbab62B0wE/kbcxgPWO0TaIdWqNHYSbZ46YJz/3OlYB NBG3qPRS4gh8buxqQkDM6oOjBs99a/xfRM9dgKrFhP7WKParzC/rn+HFQUD5yohz +k2E3e16iiU3gqLvUndfhMBDUoIdWK+BI28gY3pK97fx6J4yUDMXfKKA52x/f+6C PBaVTY8ROfzhPEj4yQoGNqzjMZarclKrVQQtGj8tuUEG3lsWpE0= =vucY -----END PGP SIGNATURE----- --KWZej2K6xFmsTmcs--