Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3445391pxb; Sun, 26 Sep 2021 15:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSdrhg4bkzUJvWalwudrMzVK1VMua0jrO4w/HegY1zRfIm1pLgbkUUl+zcbpHU9PjEk8b+ X-Received: by 2002:a63:1d23:: with SMTP id d35mr13685582pgd.357.1632696405967; Sun, 26 Sep 2021 15:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632696405; cv=none; d=google.com; s=arc-20160816; b=qwy4y5e0wIWFKnlbwWBbYFj7uO4ZRDWpAZY2PSwrUuDnOG6aZGUEOzjemdmadnaNh4 DP5vhgH8v3bsiJk4AWd/PKSggDzFzRKwKEHdtjQrLYWpVrX7IgjbKO9O6mMJ8W+28e/y pHOFqLDjW+JrmOPFFeQQJAcMhcDOgUzYyNDcE7eG2aHrTsOCh69pv1U4Q+/Kd6u5wxam Smv+Uif8N0uSnYM/V8D2gXk//MojQfqPD3sZyv76mC0c3cfTVm455+JJ1DIZqXTvNKfD 43dkW1LhjVL23CPIB9JB20vrinLPCG2H2H/41sDd+Ke+tZdBdA8f/16OiIwTFaWQA/Kd CAIg== 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=4IPwObfWulEsKCCQvVJQw75R0yqfJKS73cbuEDacqBA=; b=MQjcJzRH9FCVK1yvjiLZ52XufwfdkO55je9xuftNOBufJwC7QnHu4Sc+Ppvg9R7WP8 13Y5S+Idxo4hmBrHZdYsIIQEmkr6oFhQnSkEYUNP8T3bYg9XQXII2+xPFy93fWJ9VDLr KyiJBkr3SxSirlI7yiH0OInoZYFRD1sNy/9XvEJhn45wPy2Du19/w4o6cqhaUceNkFEB sRE67JEcF8yoJcQcA1znQZZHEcNl7jt7Dgf5JfYH7eZ60IRWeV5+eKxl/KhyPiaMi2VI kpPnDDZk8XIg9Hlb/DMZM2HOkkvIaSvIGhfuaqy7ER01JGJkzElMD8rHwDD9rm5A2a0d Bp9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Qo/kaiAY"; 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 e123si19061237pgc.243.2021.09.26.15.46.33; Sun, 26 Sep 2021 15:46:45 -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="Qo/kaiAY"; 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 S232006AbhIZWr1 (ORCPT + 99 others); Sun, 26 Sep 2021 18:47:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbhIZWqX (ORCPT ); Sun, 26 Sep 2021 18:46:23 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22011C061205; Sun, 26 Sep 2021 15:43:08 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id t10so68469258lfd.8; Sun, 26 Sep 2021 15:43:08 -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=4IPwObfWulEsKCCQvVJQw75R0yqfJKS73cbuEDacqBA=; b=Qo/kaiAYLMAIUjkOYkgCZvKf+2pXbbtGsaY36IIynMFsr4QZ32GqPUgXiWipPLWZ1k 5qo9qb2rsGJRqYTKaXaWW9l81sGayHwsYLcV3CSKlfyASs7pxHjGXrLVVBdmgmDTNept sH9wNPBS63tohJ5IV+cMxcHeYwGI/Q8Y6xocpejvdWaTR3FYfF44uBn6Xw7q8VbBTknL X5FF66mN6rcMJltq5qzVo0zwlh05cXrUx1WhMlReVdfkWCstg5U9drSNEXeIZHha5vlx waKQfU/ZSnamoeKh5lIWyMa+JI1g6ehB6yCyEDCnhHJ0TV3RY3XY4yWdDdDCUvLBL9s0 KkJQ== 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=4IPwObfWulEsKCCQvVJQw75R0yqfJKS73cbuEDacqBA=; b=aY89tiBvouQoEVIdFNYMNf38irDzrTMr3ChZizRvTo/zr8hwz5K6rYlwHCtVvr2dsJ W1vCGSPttT6uSO1zSYkgsDWKj3Bw8nipwDnjeG2fLKYlMj3+ppyUXV6rqoRoVZzo6MJn nirWRqc9fYh5XW1Ptl1VYlONk6z/F0VqesWC61FKbdLZMzhuaEctWEggiH+fm4IS5NDa ynjqI8kFxglSYuQIxmZylO6H6OhlUQKCv0UKmTCBN5cAemgzQmRJnfoKWYKBn+LJcJnt JfCnUrUpciv3SCxwhTsWgFyJM3kSbJM4+S6cMdeoCzl7bY1Wyo9oXsq0OwYZ0nyup8nv RNtw== X-Gm-Message-State: AOAM530k1SK6v/pH+MnW7xB3jKUJb1nW9gVMjqYS1tlgiAyD9Z38HOQc m5LnslMWMMehl7vfLkDpNBI= X-Received: by 2002:ac2:4157:: with SMTP id c23mr20725163lfi.184.1632696186533; Sun, 26 Sep 2021 15:43:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 15:43:06 -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 34/35] ARM: tegra: Add Memory Client resets to Tegra30 GR2D, GR3D and Host1x Date: Mon, 27 Sep 2021 01:40:57 +0300 Message-Id: <20210926224058.1252-35-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: Peter Geis # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30.dtsi | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi index c8130f8f680e..09cb1ab75312 100644 --- a/arch/arm/boot/dts/tegra30.dtsi +++ b/arch/arm/boot/dts/tegra30.dtsi @@ -123,8 +123,8 @@ host1x@50000000 { interrupt-names = "syncpt", "host1x"; clocks = <&tegra_car TEGRA30_CLK_HOST1X>; clock-names = "host1x"; - resets = <&tegra_car 28>; - reset-names = "host1x"; + resets = <&tegra_car 28>, <&mc TEGRA30_MC_RESET_HC>; + reset-names = "host1x", "mc"; iommus = <&mc TEGRA_SWGROUP_HC>; operating-points-v2 = <&host1x_dvfs_opp_table>; power-domains = <&pd_heg>; @@ -190,8 +190,8 @@ gr2d@54140000 { reg = <0x54140000 0x00040000>; interrupts = ; clocks = <&tegra_car TEGRA30_CLK_GR2D>; - resets = <&tegra_car 21>; - reset-names = "2d"; + resets = <&tegra_car 21>, <&mc TEGRA30_MC_RESET_2D>; + reset-names = "2d", "mc"; operating-points-v2 = <&gr2d_dvfs_opp_table>; power-domains = <&pd_heg>; @@ -205,8 +205,10 @@ gr3d@54180000 { <&tegra_car TEGRA30_CLK_GR3D2>; clock-names = "3d", "3d2"; resets = <&tegra_car 24>, - <&tegra_car 98>; - reset-names = "3d", "3d2"; + <&tegra_car 98>, + <&mc TEGRA30_MC_RESET_3D>, + <&mc TEGRA30_MC_RESET_3D2>; + reset-names = "3d", "3d2", "mc", "mc2"; operating-points-v2 = <&gr3d_dvfs_opp_table>; power-domains = <&pd_3d0>, <&pd_3d1>; power-domain-names = "3d0", "3d1"; -- 2.32.0