Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2642056pxt; Mon, 9 Aug 2021 05:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhC5n/ZNTJo2feGBRZfyH1PmrgTGD5HgSw6leAIwiJajCqeHWseyztcCArBUoVmADZQ6un X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr29344746edv.230.1628512851361; Mon, 09 Aug 2021 05:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628512851; cv=none; d=google.com; s=arc-20160816; b=0ijSXY9DoLL9X/YJ3plZsWQ0S+mIwGg34SXscuVC64x0LFz9pBqWbTEVRFH5pBtEiH 4jgq6fDHlLkVeNrBgv0KvtI4WbIyd5CHOsvA6CFydIsYpnia5RczsDxpuUN6MplX2v0V d8xsnaYznFZjrIikgTmkqAeT+pxMIFiK9YdPCNZd7UkRuDnogA6w6HGkNjQsZG3zVewB SqUT+VxChX7J/MyW360Nb78Pb97Wk9fe6b20ZvMakdtqnWfHU2SllrmnofCuN7WC5NtZ zgDMYtk2F9MJ0KqnxVCLC6THBovi4BhHAJ8uJpIozlgGHhLWfVHw5y7vF6haxaNmBhIX DFIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=HV9fi173ku/duJMUJ9z5VrkMCdrkldiq1WmIWpHPbtk=; b=etx6CKpR4fexYPXIL78AHdGJF5OcdTK2bilPpn8599qMdWJbknwuLcJY6Ku4GPGNZr NmGfc1aC9hzfaNfmwQt88QXbHwdhMQ9ov+8A3TMXZfReffH7dB0i0ovOIr8fNeAfzXPJ 2wB1s8AF0LXoHh8iAL2onP+79f0UwJ0HQFqpNOyB6iDbEMsPXQuPv+1A/Jv9+WXw98GY ucSd9BBiLHAhDtSmMC1Cd9vTtfjjS83egz5Y/HH2D6fYrJ/nrO4XutUJc5ny+fGcsFPd uXo6XpTi0cheTCXhxyCRV59Oss3nQwPz74eOMPCh/RDz7V8S8uRKDD1GzHayRRcXP6hI uIeA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si9900709ejk.466.2021.08.09.05.40.28; Mon, 09 Aug 2021 05:40:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234166AbhHILpC (ORCPT + 99 others); Mon, 9 Aug 2021 07:45:02 -0400 Received: from foss.arm.com ([217.140.110.172]:58992 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233512AbhHILpC (ORCPT ); Mon, 9 Aug 2021 07:45:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 756896D; Mon, 9 Aug 2021 04:44:41 -0700 (PDT) Received: from [10.57.36.146] (unknown [10.57.36.146]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 03CB93F40C; Mon, 9 Aug 2021 04:44:37 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: imx8qm: add smmu node To: "Peng Fan (OSS)" , robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, l.stach@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, Peng Fan References: <20210807104517.24066-1-peng.fan@oss.nxp.com> From: Robin Murphy Message-ID: <57fc0247-808d-1c83-2ec9-840a48af025a@arm.com> Date: Mon, 9 Aug 2021 12:44:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210807104517.24066-1-peng.fan@oss.nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-07 11:45, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX8QM has an iommu unit: SMMU-V2(mmu-500), add it. Given CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT, you may want to add this in a disabled state until you've filled in all the "iommus" properties for the client devices. Otherwise, be prepared to hear from people reporting issues bisected to this patch ;) Robin. > Signed-off-by: Peng Fan > --- > arch/arm64/boot/dts/freescale/imx8qm.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi > index aebbe2b84aa1..b8ffd5be6a3e 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi > @@ -165,6 +165,22 @@ iomuxc: pinctrl { > > }; > > + smmu: iommu@51400000 { > + compatible = "arm,mmu-500"; > + reg = <0 0x51400000 0 0x40000>; > + #iommu-cells = <2>; > + #global-interrupts = <1>; > + interrupts = <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>, <0 32 4>, <0 32 4>, <0 32 4>, > + <0 32 4>; > + }; > + > /* sorted in register address */ > #include "imx8-ss-img.dtsi" > #include "imx8-ss-dma.dtsi" >