Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3405751pxv; Mon, 28 Jun 2021 03:59:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvFa/77Jao+GWat9K88zfdWEBGtmJmxxx8dJlQ1bg9PxGnonYPqKWHZgtZ4USOxIU5e4/p X-Received: by 2002:a05:6402:b05:: with SMTP id bm5mr11455541edb.379.1624877940934; Mon, 28 Jun 2021 03:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624877940; cv=none; d=google.com; s=arc-20160816; b=jhtCn8XIoQ+EDplpUxg17nKeMHs9VvK8+IOhJyHlyMhwSiOaJ2Jt+7FBdARjNB4vqS eZf6c+gPE6Ko1FG10yLvheeW29Ket42y2QXJ2cdaA1FSfxH6WpKPOjrmo+v6uvillfKN CZgtzw5PNjzHX0c1eflod6nyT32mykFui+PYSMsoDvfvg3ROKw9nePyS75/4Sjuq9xO3 HcVN2KnIwZlR7H3VxXNnQEs5u+e7Lep/wnRpeNwCpDUzmLDQTcrr3wk29RoH8bjfPlwG dEChqeECjsNTcAyvbMe2xj1+9d/0NEpN3EPxUPlX+lyaZL5RpUqyx2bEVE55VvfjpDly AJ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=40yGFLlFdyP2oUyLOKMw3GyY1D5jUGecldbwh8C4AXo=; b=WZ8ZXJSDaQt8aYbNBCokRIuZw7vsNI1O5QH5G3qRxIP2pDfjfchLrGDViM9ND+qojx p2Wf8e4lhOhaZ1xreFFl5FDXbs8MyVMXH+x0PUfcyGBIhtkkW7OQZfXI2fQLbgSZM5by Y2UZGTL/IBd/q1TEOaIMSf5Jm6Ary9V2vcV1LhSi7s7UMlgR5ZCXgwsvvWQu/UOnRtwA twOxP0XLjQKPD75kqAi/LCb+ynOMWqLX6wL/EoDje8v859c3XKeLn/omhwnmywRz+fRl sB9PRfccVbogR24KXUzyg+eRGKVV/QneR1y6HZW15MxYbxz6g3XI8Hghqk0W+7cC7O7Y 26wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=i4e+T2Pg; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si14047191edr.191.2021.06.28.03.58.37; Mon, 28 Jun 2021 03:59:00 -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; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=i4e+T2Pg; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232756AbhF1K5F (ORCPT + 99 others); Mon, 28 Jun 2021 06:57:05 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:37345 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232700AbhF1K5E (ORCPT ); Mon, 28 Jun 2021 06:57:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1624877679; x=1656413679; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=40yGFLlFdyP2oUyLOKMw3GyY1D5jUGecldbwh8C4AXo=; b=i4e+T2PgpeRNmhoxC1/eKxa/yI5pGslVNYz9glM1cxzvpLHa+0Jk6ylx 6SO22jdm5ZPf/weiLHMbNhGm9+iRrLvonj44vFEXYdc7jXCXDKF2ISJw9 v6w5O0Z1T6EGrpdG3Oij+HzDsw1dWOGkBwRnZ1QOvg9Umx8lVimLcDzij g=; X-IronPort-AV: E=Sophos;i="5.83,305,1616457600"; d="scan'208";a="118759721" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2c-579b7f5b.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP; 28 Jun 2021 10:54:30 +0000 Received: from EX13MTAUWC001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2c-579b7f5b.us-west-2.amazon.com (Postfix) with ESMTPS id 45F81A1DC8; Mon, 28 Jun 2021 10:54:29 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 28 Jun 2021 10:54:28 +0000 Received: from [192.168.24.203] (10.43.161.153) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 28 Jun 2021 10:54:25 +0000 Message-ID: <3a43b2de-6a71-2373-8695-5e96657c8fc2@amazon.com> Date: Mon, 28 Jun 2021 12:54:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Thunderbird/90.0 Subject: Re: [PATCH v4 1/3] iommu: io-pgtable: add DART pagetable format Content-Language: en-US To: Sven Peter , Will Deacon , "Robin Murphy" , Joerg Roedel CC: Arnd Bergmann , , "Hector Martin" , , Marc Zyngier , Mohamed Mediouni , "Stan Skowronek" , , "Mark Kettenis" , , Alyssa Rosenzweig , Rob Herring , References: <20210627143405.77298-1-sven@svenpeter.dev> <20210627143405.77298-2-sven@svenpeter.dev> From: Alexander Graf In-Reply-To: <20210627143405.77298-2-sven@svenpeter.dev> X-Originating-IP: [10.43.161.153] X-ClientProxiedBy: EX13D17UWB001.ant.amazon.com (10.43.161.252) To EX13D20UWC001.ant.amazon.com (10.43.162.244) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgpPbiAyNy4wNi4yMSAxNjozNCwgU3ZlbiBQZXRlciB3cm90ZToKPiAKPiBBcHBsZSdzIERBUlQg aW9tbXUgdXNlcyBhIHBhZ2V0YWJsZSBmb3JtYXQgdGhhdCBzaGFyZXMgc29tZQo+IHNpbWlsYXJp dGllcyB3aXRoIHRoZSBvbmVzIGFscmVhZHkgaW1wbGVtZW50ZWQgYnkgaW8tcGd0YWJsZS5jLgo+ IEFkZCBhIG5ldyBmb3JtYXQgdmFyaWFudCB0byBzdXBwb3J0IHRoZSByZXF1aXJlZCBkaWZmZXJl bmNlcwo+IHNvIHRoYXQgd2UgZG9uJ3QgaGF2ZSB0byBkdXBsaWNhdGUgdGhlIHBhZ2V0YWJsZSBo YW5kbGluZyBjb2RlLgo+IAo+IFNpZ25lZC1vZmYtYnk6IFN2ZW4gUGV0ZXIgPHN2ZW5Ac3ZlbnBl dGVyLmRldj4KPiAtLS0KPiAgIGRyaXZlcnMvaW9tbXUvaW8tcGd0YWJsZS1hcm0uYyB8IDYyICsr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysKPiAgIGRyaXZlcnMvaW9tbXUvaW8tcGd0 YWJsZS5jICAgICB8ICAxICsKPiAgIGluY2x1ZGUvbGludXgvaW8tcGd0YWJsZS5oICAgICB8ICA3 ICsrKysKPiAgIDMgZmlsZXMgY2hhbmdlZCwgNzAgaW5zZXJ0aW9ucygrKQo+IAo+IGRpZmYgLS1n aXQgYS9kcml2ZXJzL2lvbW11L2lvLXBndGFibGUtYXJtLmMgYi9kcml2ZXJzL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