From mboxrd@z Thu Jan 1 00:00:00 1970 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=-14.0 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 327C2C07E99 for ; Fri, 9 Jul 2021 12:10:16 +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 EB6DB613CA for ; Fri, 9 Jul 2021 12:10:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB6DB613CA 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=p2CQzCA94bOJUhtJOXTSWy6tQovJbwBN1PzE+zYLMOI=; b=xEFuZlhu3YKTxm WmZN5fUHPSy908o2lw+BAT0nYY1yajoW6l5XUlJzQj+ZQY/BeNj/+mXkfGudM+KC88n8q3HiBoj7H 3LpPoIw8uypYHHuadxEIPYrCEVJqBb1K5D24uqJYhgE0wCKU/+VrSUq3+SdMRgRhNTyaKtw68J+vP wZzrTzJ5PsFAj8WuKWsLWaFQ0cHQDSgqK9P/OEYEwz+NCVJXgopHB7i3ze0d8JXPA8fqUOqda5FOr x/uVrtfJvzxSoyd3WpZDpWGpc32P4fPzOeCQ2ooxriT4omua7rq2Gzm1Wblpe1SmCTnTCzuLXPh8P zkjkEnnSh2W9Z5nWvcqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1pJW-001hno-60; Fri, 09 Jul 2021 12:09:02 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1pJR-001hlw-LB for linux-arm-kernel@lists.infradead.org; Fri, 09 Jul 2021 12:08:59 +0000 Received: by mail-wm1-x331.google.com with SMTP id t14-20020a05600c198eb029020c8aac53d4so25097082wmq.1 for ; Fri, 09 Jul 2021 05:08:54 -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=LTDEG9hvZInxM37EKZrzZicUKHO/JiAFLKZv8qufjKU=; b=BKCFJClkP2JlUFSSfZ+rrc6jNPseKNQAMRYBZ4nWhBIg9GFmxj9En7VYWlZ/iWq57t DrexhzL2IwJ4Zdz8S+GVXnC/8DGTDAj2K4lFLu5kZ04he3oLKpTBwG7VrAWISVZoeevR 12R+Cog4KKncQ1Lu64YcwyMNF440AjdCwV2kvYQ1TID77XjMRie+cm1UpGTuVAJRilod RiBfdF/cN/U+vEr4SZo8lPe3GG5oKesOANApyCwLxcko1lyj2fdbb1ltRbOfmWIDuhvu VfedZz83D/yeXyvzlIuVczxqgpqWp+LfoSKjuC+/OhFsKeouDsyVbJ3siZoYhpePkAoT wPPw== 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=LTDEG9hvZInxM37EKZrzZicUKHO/JiAFLKZv8qufjKU=; b=WKPhoAWrN7FPeMPhPAmXY7q86eKUs/f/UL/prT+sAofkZb3ExPU9Oun5S2vWMiC0pW sYu6BxyRo1+3DOZIMM55GkSqs85FR31cSBwsagpBSQNpjZsAkI8MVFS79EwEd/KUFPUt yTAoQ4w8rFDSGMw22RC8nNCHo0tgzJiBIEWF8ZUdF2SxFADJaos8IJu4BwA+FKzk7qzl t381cl7+WvTwjkBXD3w7gSUv/tpHrFGQUZZpvvPxQPtN2TfzdDEi+z0gLTrJ8xfjJ2Kb rdDd2P2qsT2eyhQmAQ2PftZ9naOE8ebgUPGRf1XPaC7m+DntVSBKjLkE/mtu6jH+iOm6 b9hg== X-Gm-Message-State: AOAM531mafkt4SWBTAHgWGRBK6Z9loC9XaXjY49kqlkRpDZUOc13qpU7 KIdamEkT2HprksdJeTP52386TbWb7cQ= X-Google-Smtp-Source: ABdhPJyLp1fIPcAF97n0rDx0phQwLJUE0DP9Vnmz5G4uyVPJXUL3wpt/0beDkY7UMC2A2sz+WkB1FA== X-Received: by 2002:a1c:59c3:: with SMTP id n186mr11569999wmb.48.1625832533485; Fri, 09 Jul 2021 05:08:53 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id d3sm5001926wrx.77.2021.07.09.05.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 05:08:52 -0700 (PDT) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: tegra: Enable audio IOMMU support on Tegra194 Date: Fri, 9 Jul 2021 14:11:27 +0200 Message-Id: <20210709121127.2529364-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210709_050857_755546_7816475E X-CRM114-Status: GOOD ( 12.02 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding Add iommus and interconnects properties to the sound device tree node on Tegra194. This ensures that the correct SID is used for translation of physical to I/O virtual addresses and that the path to system memory is properly described, which in turn can impact the range of memory that the device can address. Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index a6e61d899a27..076d5efc4c3d 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -2477,6 +2477,11 @@ sound { * for 8x and 11.025x sample rate streams. */ assigned-clock-rates = <258000000>; + + interconnects = <&mc TEGRA194_MEMORY_CLIENT_APEDMAR &emc>, + <&mc TEGRA194_MEMORY_CLIENT_APEDMAW &emc>; + interconnect-names = "dma-mem", "write"; + iommus = <&smmu TEGRA194_SID_APE>; }; tcu: tcu { -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel