From patchwork Tue Apr 20 17:26:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12214839 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=-13.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_CR_TRAILER, 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 EBB51C43462 for ; Tue, 20 Apr 2021 17:29:13 +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 42C3061076 for ; Tue, 20 Apr 2021 17:29:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42C3061076 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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wnSRGabnuuN63IhxdvcyFPrsgZJPFiBPtAElDU1lovk=; b=KsD6kw2IaJnO+oUTeiqQ4paZ0 LJWEoN+GRRLIWdhyumR0LKKA75FBUwPqOg4ZooMFMNKETorYv1qLA6qfCXGOtT10ts6u1KbeLsVod /MqDb5u0ZLdiuulbXbFpSLRByF4ynvtpfBWCgF8482FILJPRnBOCdXL3kL7GzIESwSMFUmsyWjbhK S+7ei62LHlRJtVNNqQLlzNl0RPaTBKAdJhZYWuTgVLrjwng3lc+4w+Z0gse2Ip9GV4CrSYPy/8Ftm 96UdBM08OSNLiVYHPiTpGRCHUOb9wYFCwmt7jSRQCqavTKjIRbe+pbT7vhaeTEtqWAP5H/8zV0rHZ MleO1VfEA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYu9w-00Cj6K-Dj; Tue, 20 Apr 2021 17:27:36 +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 1lYu8N-00CiZw-Gc for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 17:25:59 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=oomLXdSqJJ9PIjxb6gjx8hnfwiARzBKAKbIJ+w2GrTw=; b=LZZhjWjvaG+Ut60XvmEDN+cu6d xIryqQCflfKFW+fXCwYqxPFFI/qRv5CZI0jyqmRSJPNT7ebDOyEhZp0R5BcDNsF3K6MzmTPF5GtKK yPMzQlZ/qPl7a+mTJS24LqGCJLCvzGJyCSkSEJZ4K2WWhTb+JSFeYta7iyY1MtGUFEeuWP1YQ4nMc fu4yrRN8BGdSwK/K+FQeuelEhnHyykC0/lUfZhMmMfwivMZaAneLYSf6X+ZQYx3AzCedREoKUbZFc 8BV0T05FBXZF+4zn6Vrg6SFDNROPQQsgvjQofTmqnLYSUNTe+cQiJvgBP+3PJrKPB9DcfS3qPMS1S iMUp5Rlg==; 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 1lYu8I-00CJN7-00 for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 17:25:58 +0000 Received: by mail-ed1-x52c.google.com with SMTP id h8so5900574edb.2 for ; Tue, 20 Apr 2021 10:25:53 -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=oomLXdSqJJ9PIjxb6gjx8hnfwiARzBKAKbIJ+w2GrTw=; b=eE/13PLF3h3U0qvRTkYa6TeUrMFceFJuSDCUczRmCo2Inj1LBOjpIIB0rEy1W5bEJg iaFkgKCLCU5weuxcQXXmQWSLuOppEp4HTDHurXoCN3EJu0C0FKby+NxHs2UPNNlxNvhu sevbaWpTsCYpHjt6RonySoTnbugRJ7XIjZOneWBSgOFw1yqER9kLRq4bx66YZfdGfCYL rm3MS9bd60+fqsurfKzWzPYKPPcnAV3f0AefpJCwNWtqU/CYCnVJmQl3YFewcqnGX0Sw PufgcsGBdXj5Ji/JNEdi4GD8S8BEkQOU6lPrlnege8Xh5Ei8y7wLjPmOSOAJvBuF8EmA dP0g== 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=oomLXdSqJJ9PIjxb6gjx8hnfwiARzBKAKbIJ+w2GrTw=; b=P76AaqMCxOsZJ4ZzOqf59xwHNqBIyJMSx+HFuqGUJbIOnRM2Huh777R6DZfMEKvJND Dnl+A6xZh9bpd286SjxAbrpQswW4C4lqyym/liiCdIo2SmFSPQ2QPOwLLLSAYI1Snoja sXf163TtTwx3YIcbY+tmIN/XxUEgt776QAGqtwTNqfqUL9kDBmyJmnrfzjj9o+hZuWKJ 5nc3QyL2bRZmjI7UsCpOPXC8Cebv+0GXTh5ZjLtXZV2B8wWsolvVOjfUmgg33WIlvFHR 7BAgN7DPXHsraEn6b6JklUMP7gWHhYIh12tjhojEZwKNoEEqPqe6PkaPNw8dQFC3duY6 P+aQ== X-Gm-Message-State: AOAM531xXXLvSoEcZlE26VaM4ubxqgYcbbp3occLmIJyryL+yr3Y0/Nn BUTf0mbm7Z8hF44ngPFoWyU= X-Google-Smtp-Source: ABdhPJwfnXfCe8dBuEZlDPZLuHdnyjrWPd3VkOaXY4jZy4JvAnfGqF/RpKdpuvSmL+X2RLK3gzixrA== X-Received: by 2002:aa7:c5c2:: with SMTP id h2mr19812329eds.38.1618939552800; Tue, 20 Apr 2021 10:25:52 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id o17sm12106708edt.92.2021.04.20.10.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:25:51 -0700 (PDT) From: Thierry Reding To: Thierry Reding , Will Deacon , Robin Murphy , Joerg Roedel , Krzysztof Kozlowski Subject: [PATCH v2 08/10] arm64: tegra: Hook up memory controller to SMMU on Tegra186 Date: Tue, 20 Apr 2021 19:26:17 +0200 Message-Id: <20210420172619.3782831-9-thierry.reding@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210420172619.3782831-1-thierry.reding@gmail.com> References: <20210420172619.3782831-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_102554_055405_0C9CB3EF X-CRM114-Status: GOOD ( 13.19 ) 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: , Cc: iommu@lists.linux-foundation.org, Jon Hunter , Nicolin Chen , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding On Tegra186 and later, the memory controller needs to be programmed in coordination with any of the ARM SMMU instances to configure the stream ID used for each memory client. To support this, add a phandle reference to the memory controller to the SMMU device tree node. Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index a173f40256ae..d02f6bf3e2ca 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -1152,6 +1152,8 @@ smmu: iommu@12000000 { stream-match-mask = <0x7f80>; #global-interrupts = <1>; #iommu-cells = <1>; + + nvidia,memory-controller = <&mc>; }; host1x@13e00000 {