Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4380229pxv; Tue, 29 Jun 2021 05:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP3OxTd4P8FFKyL5qPj5F2rxtgtYd65d+2SkZvDsG+K2hbGfV2N9HYL0byhSW5KStj+CK+ X-Received: by 2002:aa7:ce8b:: with SMTP id y11mr39759923edv.240.1624971127888; Tue, 29 Jun 2021 05:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624971127; cv=none; d=google.com; s=arc-20160816; b=ad26o8b8cXntxmzl6nqJvh8u1wkv8Aromo0FPPLZodu/8YebI18x9xZ+vBf/N7ua37 Z7xxrfHwbfJKsYafSGsMT9z/Ht0rzsJUfFnPArOm8zOSns16S6aEO1luQRxAFsEFIdaD 8viX95B+YRZojooQ9aJUG205d/AJPKKZvIiQ50jQDLyMqOtMxFbSRbykBdo6GaFyeEs3 c5Iufk+Tw+oahAenyV9RE42BGwXEsS0epEz5B69fKf0yMTwxITbHTfYDR6JMdjElYQKT xhmlnjUc09E7zZZM7tEPdzFz8pIMP/zxR34ppukiEMYRfGTfqqwudTwYM3KMyQvnHcA+ sJKw== 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=4VTqRt/doBhcHug+DYEpXm+V0vDuSlC/ctdi9x/3mQY=; b=moi02zjcKna4wzSXA0fWMpP/lfcwSIs05YZ70lmrPNJ6eG9kFEC7muE+Zydcim4NBV 41PsJlarbdFI1hKSjYAVHli/kfkpwh7n/IIOuBQk1Hg6f4qM6Ld8iQmSRfbh+BaSocgU FKsPFNkjfugTkPbHdCf0ScktW88cCkZL63JNkctTkqIiwcfmO6vGbjSf2qcg9XofAxOU E32RkCzWCQojCBzF+bw+p+YZjdsJfs/CQzAGmkj4L7Q21gjlzhiVPfjClrZNSHH7djUt KYxBiUz8SfVglL6AIS0ScHaL6cDulDG5NF1ayACI93d0+6UmxCV1T6M8bAf7qiCgtw8H VQvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=SaDfVkv2; 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 ci11si10840624ejc.28.2021.06.29.05.51.43; Tue, 29 Jun 2021 05:52:07 -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=SaDfVkv2; 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 S232788AbhF2MGu (ORCPT + 99 others); Tue, 29 Jun 2021 08:06:50 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:62494 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232493AbhF2MGq (ORCPT ); Tue, 29 Jun 2021 08:06:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1624968259; x=1656504259; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4VTqRt/doBhcHug+DYEpXm+V0vDuSlC/ctdi9x/3mQY=; b=SaDfVkv2Tt48PjDiFVFJRvuLGygL5RCpOtrvTZhUgVP9y1sSHvfWtwch hjoUtgJ6tjEXCtdHtly5S9W7CDBw//4oHn1wzYp0/kWhd178vAEmeQ/Pr ovExh0xsHz8/svWH4xapjge35TkSr59TE5UCEzBLMUjg76/WnxuG2UmXK 8=; X-IronPort-AV: E=Sophos;i="5.83,308,1616457600"; d="scan'208";a="119057987" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-baacba05.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP; 29 Jun 2021 12:04:10 +0000 Received: from EX13MTAUWC002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-baacba05.us-west-2.amazon.com (Postfix) with ESMTPS id F07C8A1FD3; Tue, 29 Jun 2021 12:04:08 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC002.ant.amazon.com (10.43.162.240) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 29 Jun 2021 12:04:08 +0000 Received: from [192.168.9.117] (10.43.161.153) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 29 Jun 2021 12:04:05 +0000 Message-ID: <50d48c57-b6f4-aad9-2471-ea3d3066563d@amazon.com> Date: Tue, 29 Jun 2021 14:04:03 +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" , Petr Mladek via iommu , Alyssa Rosenzweig , Rob Herring , "Rouven Czerwinski" References: <20210627143405.77298-1-sven@svenpeter.dev> <20210627143405.77298-2-sven@svenpeter.dev> <3a43b2de-6a71-2373-8695-5e96657c8fc2@amazon.com> From: Alexander Graf In-Reply-To: X-Originating-IP: [10.43.161.153] X-ClientProxiedBy: EX13D21UWA004.ant.amazon.com (10.43.160.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 CgpPbiAyOS4wNi4yMSAwOTozNywgU3ZlbiBQZXRlciB3cm90ZToKPiAKPiBPbiBNb24sIEp1biAy OCwgMjAyMSwgYXQgMTI6NTQsIEFsZXhhbmRlciBHcmFmIHdyb3RlOgo+Pgo+Pgo+PiBPbiAyNy4w Ni4yMSAxNjozNCwgU3ZlbiBQZXRlciB3cm90ZToKPj4+Cj4+PiBBcHBsZSdzIERBUlQgaW9tbXUg dXNlcyBhIHBhZ2V0YWJsZSBmb3JtYXQgdGhhdCBzaGFyZXMgc29tZQo+Pj4gc2ltaWxhcml0aWVz IHdpdGggdGhlIG9uZXMgYWxyZWFkeSBpbXBsZW1lbnRlZCBieSBpby1wZ3RhYmxlLmMuCj4+PiBB ZGQgYSBuZXcgZm9ybWF0IHZhcmlhbnQgdG8gc3VwcG9ydCB0aGUgcmVxdWlyZWQgZGlmZmVyZW5j ZXMKPj4+IHNvIHRoYXQgd2UgZG9uJ3QgaGF2ZSB0byBkdXBsaWNhdGUgdGhlIHBhZ2V0YWJsZSBo YW5kbGluZyBjb2RlLgo+Pj4KPj4+IFNpZ25lZC1vZmYtYnk6IFN2ZW4gUGV0ZXIgPHN2ZW5Ac3Zl bnBldGVyLmRldj4KPj4+IC0tLQo+Pj4gICAgZHJpdmVycy9pb21tdS9pby1wZ3RhYmxlLWFybS5j IHwgNjIgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKwo+Pj4gICAgZHJpdmVycy9p b21tdS9pby1wZ3RhYmxlLmMgICAgIHwgIDEgKwo+Pj4gICAga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