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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48860C761A6 for ; Fri, 31 Mar 2023 22:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232979AbjCaWW5 convert rfc822-to-8bit (ORCPT ); Fri, 31 Mar 2023 18:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjCaWWy (ORCPT ); Fri, 31 Mar 2023 18:22:54 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D47A1D90C for ; Fri, 31 Mar 2023 15:22:51 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1piMcK-0006Di-Gz; Fri, 31 Mar 2023 23:49:04 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Joerg Roedel , Jason Gunthorpe , Steven Price Cc: Steven Price , 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 Date: Fri, 31 Mar 2023 23:49:03 +0200 Message-ID: <2077066.bB369e8A3T@diego> In-Reply-To: <20230331095154.2671129-1-steven.price@arm.com> References: <20230331095154.2671129-1-steven.price@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 31. März 2023, 11:51:54 CEST schrieb Steven Price: > 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 My knowledge of IOMMU magic is not that deep. Nevertheless I do believe to mostly understand the change and the splats on my rk3288-pinky are gone now with this patch: Acked-by: Heiko Stuebner Tested-by: Heiko Stuebner