From patchwork Tue Apr 20 16:52:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12214759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A114C433ED for ; Tue, 20 Apr 2021 16:55:24 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9082560FEA for ; Tue, 20 Apr 2021 16:55:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9082560FEA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=mz3WkqYZYNWOrVbAA13I2eZWjgNZHcGHqi41n8zLVvA=; b=QQ+PpcynbFBiOODd3+lsgCc5E2 Fl/wFTw1iyENsyK83vJ3dZbGFPOsmq/QW7lmwWwqylXIseEcqZevsvwhPVHEZcUk3EaLYzM0ZfgdI rQ79lgOT2i3+PqX8QWF/CyZXDbt4XO8coUXt0PmHdD0hwfFHgX30xJPs/F7Ao2wQB1iRFp+kEIscH /XcKygGlgSsLpUZVdV6fCsxftRr+OZuJtrvxR93XE9xahgC5901eqD0E7/keJoZVVxatYp/d+NvvO d52CvDgve++JD+s2ped/EK3/VD8GB1zzeRV04tTL1ADvJUrAq11h7xFnMkHIh1fF7bklywoVus7Lm XmE4NKKQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYtdE-00Ccv8-G3; Tue, 20 Apr 2021 16:53:49 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYtbV-00Cc93-No for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 16:52:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=PdUrQlkiyY7oRk/83TPvogLNsdCueuzriHljJ6lcdas=; b=PD4VlTVJ6F+zVM2KE05qPYpmmj IqCFiEOW+t2AOUf+42rcwUeD1xiWw4Kb9HX8ZDrwI03J6WscM8NOLwAjwQunNop4T0QUed8tY16eH fehk9CdT4f3En5vnlLWl9jd/bBKruBm8tcOg/BSvzB1AOaINEzJVwZyZAjSM5Tgl/IPF+8HKRztlv bDQPMcvgSAlWR9CKhscPCBN4/7XBgUtk+Ihho2ePSQz02Q170kP3Vew929AbPzlLpaxjqUQ0PFD75 WRI9EYfEZydzN3fl8NLtmbKIUSlC3Tx534RKQ69K4KBxqG4p4FYorYMKbexeRgT/N0f3JPRVtZuPI b9Djjbhw==; Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYtbQ-00CHwo-5F for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 16:52:00 +0000 Received: by mail-ed1-x52c.google.com with SMTP id i3so20234187edt.1 for ; Tue, 20 Apr 2021 09:51:55 -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:mime-version :content-transfer-encoding; bh=PdUrQlkiyY7oRk/83TPvogLNsdCueuzriHljJ6lcdas=; b=MUfOTcOgj1HLmen99NjLsp/wRBqUBEOZLPu8kfO9x3dX733amMLN/B/RC+DTMF8Bnc L+VXMmuUZjA9awQ6rnYV3GsIKKyWOgi16itli5qQYOd0mjcFsyuWfBncg0zhwz04PLxR 9iXZFVyOR4Ri865OjsxIebv8M1TOhokot9FaRIXJ9clP79XIWtPnyvKopuFglOdusWPA RsIVb9RxBQ9lnk6T/JhSi1Nvea4N5DH2y22wXin49+Oyuk1FXA8zu6+kAqrPTxAxgEVQ VV0/112BWMi5BRnWXU05yQzv8iQWcAJuqYUcvlXf7chPpzeA2LvE8UeNrE6lyj+EjWZW 6BkQ== 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:mime-version :content-transfer-encoding; bh=PdUrQlkiyY7oRk/83TPvogLNsdCueuzriHljJ6lcdas=; b=XIWMoszMB7s2OFXasU3N8ppi6dFm4+ri+E3187zWe3P7VHmSeh1rIS8ks1qLJA/aPh zzOqcIl0tHjpgNGaqgUc6/ScZfwOI/50+/Vg3JG1rN/WqaEM1E3C0fZAdfr0K8qeYi6d iXr9p3t2cx410vuUBIg8b4F7ZrmZ2tTp69yP6ZKWwTmFQaEU4Jk6EBSPV4HiQR22KG6F cZeusY52VsJGJcjLvgLyhxCkR1YFkfKwT3AevYXHn/MDOv6cJTmHeMrG0wGfMwDNTVTZ NPNTkJd8LJBKBRXAezRAfKMpMapWa3981qjyN7gUS4yXZdNCmHQPRVchAgdNL07keHUn HahQ== X-Gm-Message-State: AOAM53127g5+YmNpqkwFG0uG3f9iNqGFkLUd4CR+ME1ShKGb3xTnWJRk Mi0WOrYFHrbvbD3b6EJm3u0= X-Google-Smtp-Source: ABdhPJzciFkz6f4iDHOYBYfGaYZtqGbqF/85zauD9FePGxttbz8Z7UpTwC7KI0mvNGxLnCzggGUFCw== X-Received: by 2002:aa7:c40b:: with SMTP id j11mr33830029edq.219.1618937514207; Tue, 20 Apr 2021 09:51:54 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id v19sm10905639edr.21.2021.04.20.09.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:51:53 -0700 (PDT) From: Thierry Reding To: Thierry Reding , Krzysztof Kozlowski Cc: Jon Hunter , Dmitry Osipenko , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 00/10] memory: tegra: Driver unification Date: Tue, 20 Apr 2021 18:52:28 +0200 Message-Id: <20210420165237.3523732-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_095156_223001_0AE921E7 X-CRM114-Status: GOOD ( 13.17 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding Hi, this set of patches converges the feature sets of the pre-Tegra186 and the post-Tegra186 memory controller drivers such that newer chips can take advantage of some features that were previously only implemented on earlier chips. Note that this looks a bit daunting from a diffstat point of view but the bulk of this is in the first two patches that basically shuffle around where some of the per-memory-client register definitions are located, hence the big number of changed lines. I haven't done any exhaustive testing on the series yet, but wanted to get some feedback on the general idea. I'll queue up this up for our automated testing in the coming days. Thierry Thierry Reding (10): memory: tegra: Consolidate register fields memory: tegra: Unify struct tegra_mc across SoC generations memory: tegra: Push suspend/resume into SoC drivers memory: tegra: Make per-SoC setup more generic memory: tegra: Extract setup code into callback memory: tegra: Parameterize interrupt handler memory: tegra: Only initialize reset controller if available memory: tegra: Unify drivers memory: tegra: Add memory client IDs to tables memory: tegra: Split Tegra194 data into separate file drivers/iommu/tegra-smmu.c | 16 +- drivers/memory/tegra/Makefile | 6 +- drivers/memory/tegra/mc.c | 324 +++---- drivers/memory/tegra/mc.h | 26 + drivers/memory/tegra/tegra114.c | 1245 +++++++++++++----------- drivers/memory/tegra/tegra124.c | 1306 ++++++++++++++----------- drivers/memory/tegra/tegra186.c | 1609 ++++++++----------------------- drivers/memory/tegra/tegra194.c | 1353 ++++++++++++++++++++++++++ drivers/memory/tegra/tegra20.c | 110 ++- drivers/memory/tegra/tegra210.c | 1433 ++++++++++++++------------- drivers/memory/tegra/tegra30.c | 1292 ++++++++++++++----------- include/soc/tegra/mc.h | 58 +- 12 files changed, 4991 insertions(+), 3787 deletions(-) create mode 100644 drivers/memory/tegra/tegra194.c