Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE1233CC for ; Thu, 13 Apr 2023 09:51:16 +0000 (UTC) Received: from 8bytes.org (p200300c27714bc0086ad4f9d2505dd0d.dip0.t-ipconnect.de [IPv6:2003:c2:7714:bc00:86ad:4f9d:2505:dd0d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 71441243D2F; Thu, 13 Apr 2023 11:51:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1681379475; bh=hfCTNO7CbDHuy5gEZDfgwcU5fyZr8N4+slArZivW3lA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ID/i916x2CZalvNc5f/R6aW8D4x6NJ8nK+/pvuDo6z1OQ6IfGBLDQE3J3V4qprtBi Mo0C6jKS5Mx4BzBtIVmjw6rkQ46iZhO2tzfPr1yzXIG4d1/WC3RF9L1XHCBnXuv5JJ aeNuF50dxQtO7RTIALOV6sH3HPrq7tuMvIV8ujFECRQroYCmCrrF5jrT/i7IEnZqcB XfqUvoT6LWLR2ip/W2NtFTnaLjoI6zxSAmU2V4OjcTyceHTxicIoVYoEuxoRJFSv6d oUvh00qZWZi23XMtaLWojo/ceFIfrLvMl3ElVMG6hSvWq2wqlt6z2xTz7+SBbkWpIN /2mVr58koQU/w== Date: Thu, 13 Apr 2023 11:51:14 +0200 From: Joerg Roedel To: Steven Price Cc: Heiko Stuebner , Jason Gunthorpe , Will Deacon , Robin Murphy , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, John Keeping Subject: Re: [PATCH v4] iommu/rockchip: Add missing set_platform_dma_ops callback Message-ID: References: <20230331095154.2671129-1-steven.price@arm.com> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230331095154.2671129-1-steven.price@arm.com> On Fri, Mar 31, 2023 at 10:51:54AM +0100, Steven Price wrote: > Similar to exynos, we need a set_platform_dma_ops() callback for proper > operation on ARM 32 bit after recent changes in the IOMMU framework > (detach ops removal). But also the use of a NULL domain is confusing. > > Rework the code to add support for IOMMU_DOMAIN_IDENTITY and a singleton > rk_identity_domain which is assigned to domain when using an identity > mapping rather than "detaching". This makes the code easier to reason about. > > Signed-off-by: Steven Price > --- > Changes since v3[1]: > > * Added a dummy free callback to rk_identity_ops. > > [1] https://lore.kernel.org/r/20230330144604.2431436-1-steven.price%40arm.com > > drivers/iommu/rockchip-iommu.c | 61 ++++++++++++++++++++++++++-------- > 1 file changed, 47 insertions(+), 14 deletions(-) Applied, thanks.