Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3445766pxb; Sun, 26 Sep 2021 15:47:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCmKmLSJ+nq9AJEo6KlNiaQOvyCG9geR1FuF4mbO7nZot/Jl12KkkWp5gOhCckQ/+Un6U5 X-Received: by 2002:a17:903:11c9:b0:13b:9a01:aa27 with SMTP id q9-20020a17090311c900b0013b9a01aa27mr19904998plh.46.1632696451353; Sun, 26 Sep 2021 15:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632696451; cv=none; d=google.com; s=arc-20160816; b=K4sExzRRW/XpJC/SGe2PnomfE6u6pwrfUwrhEAKH8deupcIjX+M+iNkCFFiR6i99Jw VBI5zxVZaKBxB1CrXq6Pig9y2as1cV9QT8iLnnE5ks1CIYVIiM6C52VIAeO7ZFVDYxnw IslH3qcaHIMJ2f5RSj8RXDhzfP3xYv9ijgONEY3OS6Awal/7foB38mldDcSxrjADwXbi s+3bPME4jnUAMBEkR5mhLHNWSFFkELVjwXg7RYKz6D9EpSDMxq3MaDAO7pKVdXZjKM6j j2h17vKqfSb6/w9fhp/iUX03giGWswsXl/OI0ppTTnDIPVtAKrtg2m2KTltflXouxwn1 OKUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bHV0bQfFsqKEqBYRxEIpvsDc8HNhAwowLE0FplFjNDU=; b=PUbfJTlLR5SksN5dLXR8ZoHkPKGVjYAjbmHE4V18vc4ctVeAWVy3XVzL451+DkeNAX mMm29mP2O6qwUhsRD8+JJGntpCjMbLPKzwSWdNEwbJYQmb6LZc5Mpo2ZH0BYa+naA8Dd ywH/+KpoQwJGqfCzh+YpxcR6OLShm9yJJZhRHQQ5wbJEaTl3B2E4L7AAjkt6d8YpkT8D h1xzwa6YKEbzuUiyhLy2r+Lwss4xxHna2fPVZCA1tbGakum84++1BJE1sfbErFLf6/sS QPxbQMvdml3SrURzFppfjibZA2CwpSEpfwE75xNp4Q4M3RSKTgr9sUmLDAHubvubXZYT YHpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DDEEPH8B; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si20557038pgb.414.2021.09.26.15.47.19; Sun, 26 Sep 2021 15:47:31 -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=@gmail.com header.s=20210112 header.b=DDEEPH8B; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232216AbhIZWrL (ORCPT + 99 others); Sun, 26 Sep 2021 18:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232789AbhIZWqH (ORCPT ); Sun, 26 Sep 2021 18:46:07 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA93EC061769; Sun, 26 Sep 2021 15:43:06 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id b15so67586978lfe.7; Sun, 26 Sep 2021 15:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bHV0bQfFsqKEqBYRxEIpvsDc8HNhAwowLE0FplFjNDU=; b=DDEEPH8BmaeUnAE0HaGtKS6sW6v5mh6xOxJAP+LIFsY9ZgRH95LRVaiagrO/ua0Noh aaxszGCtNSWoMbBuyScz2Bj7IxmezI5ElDuYTT8SyI8AiVLADPdAAo1F9Nz8K2Pb8dXP u13JjlLmT6USU7UPBc5FnsmEMj35MxD+svAXsCU9j+NlQF87fSsIWEn+x4SMGSAAUdcM R01NuN0F0iPZD6lahvqSw+F51vxyYL/0pUqGxxNW0/dIm8gH2P149YshAlxjudVxE9+F vB27mB2/jJ5yyZ7TJVdUwAGW/GiYRAReDuHRQs8D24oyAVcCSeawGHepzN7cHXvbgMEg V28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bHV0bQfFsqKEqBYRxEIpvsDc8HNhAwowLE0FplFjNDU=; b=smC+t0F4cughgpycs8cyjEhUpTyhy0W6+DBlIIjuNdCbBWhCGPTqUsuhqjJ/T3Sill 9jHUnd8+TmQ9X0bDohaKlohvermkVa2EeziMv1L7gp8CuNgzAmC/tWnjRzKEEj2qy3Su Fjuxq/bKI8Wwoor9fmps3milhSflPKsnN9XnYRJuJ4XZ6Sk+rCqbXFelDyEwX5tv3aup 8g3XahsiOhxrnDDVeDmeajRSPRI0zaQyUZBhnuhst9g+YiYb9QukM/eXkitM5B3WgxW0 FqbOa3Vvnalj3Njy7YOLLzT8QKJ/5wavTQUT+neuf4oKX8hP7n71g4CImbyxsBHhmqwm Xayg== X-Gm-Message-State: AOAM53000zy8zJqqCrbN3Mt2TUs8MOmmI6kDcUt/C1lkeIfo5swuoTY6 FoCf4GT97W8/8D55oyUQH+g= X-Received: by 2002:ac2:48b2:: with SMTP id u18mr21302659lfg.583.1632696185299; Sun, 26 Sep 2021 15:43:05 -0700 (PDT) Received: from localhost.localdomain (46-138-80-108.dynamic.spd-mgts.ru. [46.138.80.108]) by smtp.gmail.com with ESMTPSA id m10sm1408899lfr.272.2021.09.26.15.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 15:43:05 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Ulf Hansson , Viresh Kumar , Stephen Boyd , Peter De Schrijver , Mikko Perttunen , Peter Chen , Lee Jones , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Nishanth Menon , Adrian Hunter , Michael Turquette Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-staging@lists.linux.dev, linux-pwm@vger.kernel.org, linux-mmc@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Mark Brown , Vignesh Raghavendra , Richard Weinberger , Miquel Raynal , Lucas Stach , Stefan Agner , Mauro Carvalho Chehab , David Heidelberg Subject: [PATCH v13 33/35] ARM: tegra: Add Memory Client resets to Tegra20 GR2D, GR3D and Host1x Date: Mon, 27 Sep 2021 01:40:56 +0300 Message-Id: <20210926224058.1252-34-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210926224058.1252-1-digetx@gmail.com> References: <20210926224058.1252-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Memory access must be blocked before hardware reset is asserted and before power is gated, otherwise a serious hardware fault is inevitable. Add reset for memory clients to the GR2D, GR3D and Host1x nodes. Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index ce38055a8952..eb6e5518fb5f 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -40,8 +40,8 @@ host1x@50000000 { interrupt-names = "syncpt", "host1x"; clocks = <&tegra_car TEGRA20_CLK_HOST1X>; clock-names = "host1x"; - resets = <&tegra_car 28>; - reset-names = "host1x"; + resets = <&tegra_car 28>, <&mc TEGRA20_MC_RESET_HC>; + reset-names = "host1x", "mc"; operating-points-v2 = <&host1x_dvfs_opp_table>; power-domains = <&pd_core>; @@ -98,8 +98,8 @@ gr2d@54140000 { reg = <0x54140000 0x00040000>; interrupts = ; clocks = <&tegra_car TEGRA20_CLK_GR2D>; - resets = <&tegra_car 21>; - reset-names = "2d"; + resets = <&tegra_car 21>, <&mc TEGRA20_MC_RESET_2D>; + reset-names = "2d", "mc"; operating-points-v2 = <&gr2d_dvfs_opp_table>; power-domains = <&pd_core>; }; @@ -108,8 +108,8 @@ gr3d@54180000 { compatible = "nvidia,tegra20-gr3d"; reg = <0x54180000 0x00040000>; clocks = <&tegra_car TEGRA20_CLK_GR3D>; - resets = <&tegra_car 24>; - reset-names = "3d"; + resets = <&tegra_car 24>, <&mc TEGRA20_MC_RESET_3D>; + reset-names = "3d", "mc"; operating-points-v2 = <&gr3d_dvfs_opp_table>; power-domains = <&pd_3d>; }; -- 2.32.0