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.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 94AAFC4338F for ; Mon, 26 Jul 2021 11:36:12 +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 52B2E6023F for ; Mon, 26 Jul 2021 11:36:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 52B2E6023F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=8bytes.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WOCdFgkHq8VUG5wMZ4oYwwxydS2pOUGVB7QPapOBgv4=; b=uToE1Q3rhFLA0E 4D0vxA9QZBQG748t5Ubo4TH1oTaj+BBcDhi5pnP/wT7a2vFixKYMDps7geoM0zQgPgFMS8mo1PV+4 AytrkTAJ10uIeaIpOeqcE0DqF7nnsY/XTMgFV/8TmJfRzStJjnTRamALyD4sefYTe/Kiq5uxMh/GW t81Aw91j6Hwx1JLuKQgK+VomrKizoE+pmux5AbEEmIKRxzS9SQRAZTlbbd82HnBLGzGtFdPbC/lVC hpBWHQfdAhX8iilvzhFRa61/ziBNgwDK3JcJGjNiMiXeKbdQkXfDjOvOH8UDuzeg1mXZTJkpDjHPk v2ZPhibsu34BajtLiXFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7ysW-00B1VQ-8G; Mon, 26 Jul 2021 11:34:36 +0000 Received: from 8bytes.org ([2a01:238:4383:600:38bc:a715:4b6d:a889] helo=theia.8bytes.org) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7ysM-00B1TI-IW for linux-arm-kernel@lists.infradead.org; Mon, 26 Jul 2021 11:34:27 +0000 Received: by theia.8bytes.org (Postfix, from userid 1000) id 0D2A72B0; Mon, 26 Jul 2021 13:34:25 +0200 (CEST) Date: Mon, 26 Jul 2021 13:34:23 +0200 From: Joerg Roedel To: Robin Murphy Cc: will@kernel.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, sven@svenpeter.dev Subject: Re: [PATCH] iommu: Unify iova_to_phys for identity domains Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_043426_832209_5D11A3F6 X-CRM114-Status: GOOD ( 10.42 ) 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 On Wed, Jul 14, 2021 at 06:28:34PM +0100, Robin Murphy wrote: > If people are going to insist on calling iommu_iova_to_phys() > pointlessly and expecting it to work, we can at least do ourselves a > favour by handling those cases in the core code, rather than repeatedly > across an inconsistent handful of drivers. > > Signed-off-by: Robin Murphy > --- > drivers/iommu/amd/io_pgtable.c | 3 --- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 3 --- > drivers/iommu/iommu.c | 6 +++++- > 4 files changed, 5 insertions(+), 10 deletions(-) Applied to iommu/core, thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel