From patchwork Tue Jun 1 17:59:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12291979 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=unavailable 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 702E0C4708F for ; Tue, 1 Jun 2021 17:59:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 40418613AD for ; Tue, 1 Jun 2021 17:59:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40418613AD 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=bombadil.20210309; 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=Z2OIKLtN5MKINc+6iyiKJgt56B/1clA/NgxWFHJvgIY=; b=UfvtmTKs20kJ3x PmAHV6ewS/OoepEAagwGiN7aqf9R8VoiJYEqwOR32Cy0VFolbUUqEYOqn99oJLVjHSl2K5HAxh4th FaD+xAq2p5fObBHzeD7vPVw+ux2NPKgNegi3osWLYKplbJoNwa5j5wwK6mNg4hcRk5/HJpyQ0bXa1 MGMbWRzZuFY5YYWhXES99ZtDjNWThXHl7A2TqVUKNuGDbWTP+Gv57UKoHW52VEDcVNQacFOFIq4Fr p8051wejstO1tUcVEoUGZu3Il1CYWn2asHe1T38fGDja+yFHS1hMonSqdYo+J80Y1HJoNGvftVU22 CZMfTEbK2TwS8mDnuAcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lo8ee-000C2f-Ko; Tue, 01 Jun 2021 17:58:16 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lo8eb-000C1w-NH for linux-arm-kernel@lists.infradead.org; Tue, 01 Jun 2021 17:58:15 +0000 Received: by mail-ed1-x534.google.com with SMTP id dj8so6230948edb.6 for ; Tue, 01 Jun 2021 10:58:12 -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=CNiq8vr2Tk0sYmcYOKh4gKll4G6xn2zVSpJq/E/4PTw=; b=AUnNR5/gktwc0PGP57AV972FlbJns0XSGrSkgK+DS3WCixHDQLwLBoApaHp+beeVEL Vk8BkftgbB7M1M3npeIcTFBWMUlYZdwINAGenVmW7cYYljRj+yDpCeNIMr10b11SuNW6 pCCBFbebOQR/9dU9hw3FGNBMhnvXZQ8NjfvgsjEMEIjn3Ndqqic/HalsgQ2itHR2Tqmt AlNO+JI8qhoaPAHcmdNsXaR+VdTZUNOXT2BbzqW0rPYlXTsD8aLlKT+1jB+s9XNr1fQc 7O6Rvilem9dJFWiyNui2lBchaACSNrHp6e5CCBnv5165ltFwsKDVwu/3pN86oWnKJBPe tAbg== 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=CNiq8vr2Tk0sYmcYOKh4gKll4G6xn2zVSpJq/E/4PTw=; b=k8ETJ0f6EnaeF4H53OP4DpM2TCkxRDRSRjJDO+cyn4WLB3yOuPiF450Ivw45nz3yj4 WBvMMZZ7eC/fwpdztW2jeDT0YaiPsiXklZESYanaPOedHVQC5vhOeDEtcy5HEC6lQ3uo nnXketKovMinG2xMh/UOF9teeheRu7Zp+w++XJh03R6XoKRXdiUqXbWagMbqidceMhoR vabDt8eOsdzMX8ypCljeMlS1cKBjQg7t0XDtjSeXD3CeFBPCzLXVnUsEDSQmNKB/6MQ5 R7tc2AbPWVXIj9KW4kwmzKkOpu8WEfygMxAO/jKPfl4FJp/JGxUoX5eJZGxZkyZEz5Hy vlpA== X-Gm-Message-State: AOAM531e2VOgWmSHxzjJPFAUysumDHaAlT/E0e2t7bj8Xr6R3aqyIA5V c/xBlj25Ijni3eTv2FtLnzs= X-Google-Smtp-Source: ABdhPJz8wzGv7DFfF7GKHuRBNFQzTQQyjpz7AuvCh0OBDvOM8VtWp8Kurcbl4DLU/HURc03JhxFshA== X-Received: by 2002:aa7:cc10:: with SMTP id q16mr34633728edt.53.1622570291405; Tue, 01 Jun 2021 10:58:11 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id z20sm275666ejd.18.2021.06.01.10.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 10:58:10 -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 v2 00/12] memory: tegra: Driver unification Date: Tue, 1 Jun 2021 19:59:30 +0200 Message-Id: <20210601175942.1920588-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210601_105813_796082_35F1C755 X-CRM114-Status: GOOD ( 14.22 ) 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. Changes in v2: - split patches up a bit for smaller, logical changes - add better documentation for ->probe() callback - use SET_SYSTEM_SLEEP_OPS where appropriate - include Tegra194 separation patch - use prefix for global variables - drop commented-out code Thierry Thierry Reding (12): memory: tegra: Consolidate register fields memory: tegra: Unify struct tegra_mc across SoC generations memory: tegra: Introduce struct tegra_mc_ops 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: Make IRQ support opitonal 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 | 312 +++--- 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 | 62 +- 12 files changed, 4979 insertions(+), 3791 deletions(-) create mode 100644 drivers/memory/tegra/tegra194.c