Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp824206pxu; Sun, 25 Oct 2020 18:33:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPq7TypLfNk7PDy4xEz8IqMitiJ6dtFaiL3Ep7BHBcAEM+295qOET3tmNJdCYHxBr/2o91 X-Received: by 2002:a17:906:b783:: with SMTP id dt3mr13415431ejb.534.1603676015121; Sun, 25 Oct 2020 18:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603676015; cv=none; d=google.com; s=arc-20160816; b=cnx+Jje3dz/YMo17cq5FKbP+rqm/sTJ5SEgKfaGZeEXiegQCLZgTzYdDLiKC/JLhDV ynbkeHOJXbyhL2faNAvoyGaSA6yA5gYY9UbBBEiv5tU0vxlQqD5SlN0woOO6aTkTBSgp 3nsjRjMpBDMgqFRVMl5Bgb5F/0+OdhM2FIwkExzzZZPul502Sw5Q+Bd127uIHufBHHJs HF84njCvTxCTaSVUbOU/TOkB01KxhT182GCRElDlntXQIk/oyDaBiOJSTMDBd6oqhvBn 1USf+HaG4S/wrh6HWP5TLqnDqjwh+wZvYLJqzkgbANqIbNrlV7rECZoJDvtIEEyNeXLn iUZQ== 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=v6ur3FMhIFe8KvuxQxBkljzFbdkKufNSmZGLKBtZ/Ro=; b=0nqr1HEJn35uo78STU3C0mi9B4f0xKPd90c2Tu/rXwppg2u2UcLvOLYJyYfZvrp7ha EVQ5aGHoF8a8HxWrQFqyHTZWuBgU7q9p897NrrHrNA5CLepY71m7tTFGhprbLoUFlkTt DL0cCtyd9a9kTvnw7ZLc5tX8rcZSdhqDgEpywJJH8tivthnu5YeiTv0HOnX9Data2i8w TggHe4R1J1f300JBA4++aoBN0nYwNVdnRISn14k8X5zymLumxQemJxN+zH3g8i3CudID RYM5xFTRJum73i2URXzjGFzgwLk6NXo2aaYToHglaE2rofpCCq5OLW+VoiIFE/L6Gb5q xukg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BodnatAi; 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 18si6857289ejv.717.2020.10.25.18.32.59; Sun, 25 Oct 2020 18:33:35 -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=20161025 header.b=BodnatAi; 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 S1419427AbgJYWTL (ORCPT + 99 others); Sun, 25 Oct 2020 18:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1419328AbgJYWSa (ORCPT ); Sun, 25 Oct 2020 18:18:30 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B91C0613CE; Sun, 25 Oct 2020 15:18:29 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id i2so7712799ljg.4; Sun, 25 Oct 2020 15:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v6ur3FMhIFe8KvuxQxBkljzFbdkKufNSmZGLKBtZ/Ro=; b=BodnatAiw/VKmtLioaT+neJet4GwmMhSrvQOmSWb1dBrf2P08gTcaOGU1uurLGXRxE lGXcv57rEDS7EiB7mldnxCE+2vfBzzp4zayubegNwxxpzyWPLuMAQh2TlmdfgfCR4T8k uxhWvqKrubngEgoCndecxTbFXI0MbfNe0MlVkh7BZMCmfRZBtfwyX+qvHirQFB9Tslxq GEPI3vYHdH6pFo3ehTUEk82FitfIKVO6BH8XF9oL7tiIKQdAXsb1C4q6+MzwZr1qdMKa /kCa2SoiMZCMAe6gUhf4JU2gyP5noYwf1hbeWI0ggx80umHA6r6/0u2Yj66wQ+L8dhNU UDHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v6ur3FMhIFe8KvuxQxBkljzFbdkKufNSmZGLKBtZ/Ro=; b=U/JB2uk77JumYUahvq4w/6De/TDVo1kO5Lx36432lEBYJG70pAhXd5aKUkpuy+ZJqX IiwhLuvJOLchenBZSskQzlJ+6GsDZyJNfsqZvRI+LMhKAcCDihtkyJNrm4r4JXoDDQ3C 8pa5m8W1IG65Xz6GdUqGRi6OX5gIVGGNrqk9UksBScW1XYWdH3+7zm1/5ia7OJu3qqXP 46Wlq2WC4GPW6OjxJIi9OipVs0VT/F1iKeM0Wfp8Goi3jge1nR1Duxs/zLb4svLS+B07 247/PsKQTE2hZYfM+NDpFKZc7lUkGyWSqPFfy88GxwHiSsnmfIYNQXKIkCyAa47IjJZe RJMA== X-Gm-Message-State: AOAM5311zVe9Z61g2QdgeARNJQ4aLkakJ7XM9ffY98XoMzChRbqBFhQl EW2gJUy12HOjET04/v1SLqs= X-Received: by 2002:a2e:9a17:: with SMTP id o23mr5025831lji.242.1603664308300; Sun, 25 Oct 2020 15:18:28 -0700 (PDT) Received: from localhost.localdomain (109-252-193-186.dynamic.spd-mgts.ru. [109.252.193.186]) by smtp.gmail.com with ESMTPSA id k13sm932423ljh.136.2020.10.25.15.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 15:18:27 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Mikko Perttunen , Viresh Kumar , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski Cc: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v6 35/52] memory: tegra: Add missing latency allowness entry for Page Table Cache Date: Mon, 26 Oct 2020 01:17:18 +0300 Message-Id: <20201025221735.3062-36-digetx@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201025221735.3062-1-digetx@gmail.com> References: <20201025221735.3062-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PTC memory client misses the latency allowness entry and this patch adds it. This prevents erroneous clearing of MC_INTSTATUS 0x0 register during of the LA programming in tegra_mc_setup_latency_allowance() due to the missing entry. Note that this patch doesn't fix any known problems. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra114.c | 6 ++++++ drivers/memory/tegra/tegra124.c | 6 ++++++ drivers/memory/tegra/tegra30.c | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/drivers/memory/tegra/tegra114.c b/drivers/memory/tegra/tegra114.c index 48ef01c3ff90..ed376ba2d2fe 100644 --- a/drivers/memory/tegra/tegra114.c +++ b/drivers/memory/tegra/tegra114.c @@ -15,6 +15,12 @@ static const struct tegra_mc_client tegra114_mc_clients[] = { .id = 0x00, .name = "ptcr", .swgroup = TEGRA_SWGROUP_PTC, + .la = { + .reg = 0x34c, + .shift = 0, + .mask = 0xff, + .def = 0x0, + }, }, { .id = 0x01, .name = "display0a", diff --git a/drivers/memory/tegra/tegra124.c b/drivers/memory/tegra/tegra124.c index 0cede24479bf..e2389573d3c0 100644 --- a/drivers/memory/tegra/tegra124.c +++ b/drivers/memory/tegra/tegra124.c @@ -15,6 +15,12 @@ static const struct tegra_mc_client tegra124_mc_clients[] = { .id = 0x00, .name = "ptcr", .swgroup = TEGRA_SWGROUP_PTC, + .la = { + .reg = 0x34c, + .shift = 0, + .mask = 0xff, + .def = 0x0, + }, }, { .id = 0x01, .name = "display0a", diff --git a/drivers/memory/tegra/tegra30.c b/drivers/memory/tegra/tegra30.c index fcdd812eed80..b1990b4133d8 100644 --- a/drivers/memory/tegra/tegra30.c +++ b/drivers/memory/tegra/tegra30.c @@ -36,6 +36,12 @@ static const struct tegra_mc_client tegra30_mc_clients[] = { .id = 0x00, .name = "ptcr", .swgroup = TEGRA_SWGROUP_PTC, + .la = { + .reg = 0x34c, + .shift = 0, + .mask = 0xff, + .def = 0x0, + }, }, { .id = 0x01, .name = "display0a", -- 2.27.0