Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6202021imu; Wed, 30 Jan 2019 10:30:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN6mzY/fl/lw7sPO2UGlcu0bfnXNO9WQQUn92LP3IjicKO99BGGA+n8T/QvY0vLkE8X47tcd X-Received: by 2002:a17:902:d70b:: with SMTP id w11mr31980668ply.294.1548873038949; Wed, 30 Jan 2019 10:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548873038; cv=none; d=google.com; s=arc-20160816; b=SPr2jfDSELg7uLcZnZash0k7zRkHWLabCxFv7LtA/Sl/c+YBP6MMAsNV3XfZNg9JkO Jz7TQgeCh3EEUgWx52HDcAilK1BDRZKk4uW91WTds7KjVnYl/tTHcOW99fQ+Glw8uoc4 gInMUlD8MI7nhYYUvrsS3VBhzjcQlbISUzjazomG/pwIGSIVEzbSAbidWphLZlYho6dF iOtEveCAGFBeTnINxhGQho1TkM1bCg45Bn8qD1APaLj7e4xXTmqDrZQ4bq6hc93srflb g54v2G2sfny9Q6ZGzQGUq/md7fh7Cghavr/xBBq9W437fKVgIXcU2zt51Bfy8+mOV1oX U9Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lcw5vt9zbl++2RXOENtvs4XQX4dr/6bQWVR0Pe9YBiI=; b=CV0YYRFu7l6Fq9HIpd4PasP4AKfy85+0xh7DBd5jULahhjpjwzhr/FWXmnXKx7lpx5 qNTIp25tZHp7+eix0WypXoM5UU+lH7Fw8QPfCX2DhF+fv0cnlH5x4TbQ7zL5+7bBwYAt pBuGw2CeIQHf+G8YsF/fbmb2PvM6tDJ4BtaIS0lNT6w+FpuFg7q7vL5o/sfFJvIGRjT2 cqBsAJtmAQ0Mf4WrUxhxOoUC1i994efkr3KDKqRdGKvWeDoIUAXFfWRm0EJDMBx6b4/z vIGMcDC8BJ7KHnGe0koTn+T94HllRnaBJimU6vGssEN7FA3gW19ZASEZKRq8zMAKDD4f Q7QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TJvwOn6Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si1881303pgg.357.2019.01.30.10.30.21; Wed, 30 Jan 2019 10:30:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TJvwOn6Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733051AbfA3S3L (ORCPT + 99 others); Wed, 30 Jan 2019 13:29:11 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44085 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733036AbfA3S3K (ORCPT ); Wed, 30 Jan 2019 13:29:10 -0500 Received: by mail-lf1-f66.google.com with SMTP id z13so355509lfe.11 for ; Wed, 30 Jan 2019 10:29:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lcw5vt9zbl++2RXOENtvs4XQX4dr/6bQWVR0Pe9YBiI=; b=TJvwOn6QwSVGUiDeb09oklzogw6mAA0r+OL2c9ehh3L//6bdR3mD03hcoKP1ausY9r 46Iu8d4YSJIzjEPla7bDxNqxFGy+/Matc4dXOkm/riEjy0+6VPYb5AfyN95joo/dNZ1n Lu4gCpPgrKOiE1Zb7SSLvEjp3sEHx25BMSDKU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lcw5vt9zbl++2RXOENtvs4XQX4dr/6bQWVR0Pe9YBiI=; b=esU5BqKND1OZclWDqo7xZOzBpaGfCFmYLfX7d/5O7JG7doA+fDq09J0QRw/cB5L7kQ G1NYrb91q0y07rx/GdrAWWgUqfUHRPY6VXat14L2Da0bQam8CYq6hXFXIIRmp0HMqQlx Fwmj7QnCbW9DC1tZBcph3UJr/8T4fApgDpM7/unyz+YkrLIjuqCwbd3XJMSEEWNPoS38 VwcmvFExr6VxFols02bvE8X5pmCN9PWaI4C4SlHyVBT9g0EXIVp+Gzg6lPFhed1vD0TH VZBRoZB6khQlsV2mI3AfX0KbvxT7kX5zpZMRIifs5kFjgmsaxC9Mx3V+JMvFnmoGW7W6 Kj7A== X-Gm-Message-State: AJcUukfxrIcy7P5EKfPa415h6QKo8EVTx/T7eKz6VM0Ox8UvrcqJEEmO 0Oas8mzGBYYNmpwnMigowRzEASMJzpg= X-Received: by 2002:a19:cbcc:: with SMTP id b195mr24410163lfg.117.1548872948602; Wed, 30 Jan 2019 10:29:08 -0800 (PST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id s17sm461187lfk.9.2019.01.30.10.29.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 10:29:07 -0800 (PST) Received: by mail-lj1-f169.google.com with SMTP id s5-v6so389042ljd.12 for ; Wed, 30 Jan 2019 10:29:07 -0800 (PST) X-Received: by 2002:a2e:7e04:: with SMTP id z4-v6mr26439768ljc.97.1548872946625; Wed, 30 Jan 2019 10:29:06 -0800 (PST) MIME-Version: 1.0 References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-6-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546314952-15990-6-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Wed, 30 Jan 2019 10:28:30 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 05/20] iommu/io-pgtable-arm-v7s: Add paddr_to_iopte and iopte_to_paddr helpers To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, Arnd Bergmann , yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 31, 2018 at 7:57 PM Yong Wu wrote: > > Add two helper functions: paddr_to_iopte and iopte_to_paddr. > > Signed-off-by: Yong Wu > Reviewed-by: Robin Murphy Reviewed-by: Evan Green