From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web11.8911.1574756352393860436 for ; Tue, 26 Nov 2019 00:19:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H26ZWHH+; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574756351; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KPXKkHuRPTcciZcBWcx8YETrh8W7d+GrY6aa0zquBhU=; b=H26ZWHH+3AKmd3s2dkOX6a023HqN74LynE39vRkX9aQx4xgTC83h4O+khBesFM4YyC/fqx uiEcEj2B0Pqcg3V5vEBt/NzXn9PbofpV4PhRr+3tA1Kc3PDEgSsIwKOdNl7rSsRJg5GXAm 3HTA++xyoqMdWiteVW9nbqvSy998mwk= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-245-3GJPEu8rMGqlDzcRJzId1Q-1; Tue, 26 Nov 2019 03:19:10 -0500 Received: by mail-wr1-f71.google.com with SMTP id c12so8847487wrq.7 for ; Tue, 26 Nov 2019 00:19:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KPXKkHuRPTcciZcBWcx8YETrh8W7d+GrY6aa0zquBhU=; b=pH/D/eklNthmTwL+FpzW/uS17tVXqr2L4p7kJsFU/p0Tv/e0suNJKv/vYR8WSLWODY j3dbJLx66RxTdFYcsUaxla7HQOunDS8iD6VMYvnjhTtCTV2Y1J7Icja8bpAJ5AuC1Ygd jpEDVEAkqvfyZQN5QAhA2jv1/coKAwE4/3Z6JwdRfdmBD7/XT4R1gEjwU+s3LKCYq+Ue fEnZx/OUfXuWre8RNhDmgYP0gk1rJWaiVC1I8Zvgzd6Nd3KKkll56zj67voCYbWrFIuw F7iAPbxD/7lSbjXy5lYxtdwoCKmFt0lLZfLovdOcEHlilvNd2z4r2CGauxL+Yzi4YnTZ 1QQg== X-Gm-Message-State: APjAAAXtOpuZHTXxQiwMWgXZmSIXIpO/cOSvT3Rui+ktiWJbMqnL9HZl F/Y6PNLqTWt+gutYD3R8koZoWuYbwvclHj3phILDH/3rfgPiFdB2r2JLcIV6tpPq1SSs1wSMENN m5ykFIo0Y+i++0w== X-Received: by 2002:adf:ea8a:: with SMTP id s10mr26249132wrm.278.1574756347988; Tue, 26 Nov 2019 00:19:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzT6TKnOFEfO52YvHVPWNDIWeWp1T1wogNzE6pY0ngU7tUXjNA4MrnW+4eefEEH5X993WuAAA== X-Received: by 2002:adf:ea8a:: with SMTP id s10mr26249109wrm.278.1574756347762; Tue, 26 Nov 2019 00:19:07 -0800 (PST) Return-Path: Received: from [192.168.1.35] (182.red-88-21-103.staticip.rima-tde.net. [88.21.103.182]) by smtp.gmail.com with ESMTPSA id 60sm13192781wrn.86.2019.11.26.00.19.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Nov 2019 00:19:07 -0800 (PST) Subject: Re: [edk2-devel] [PATCH v2 2/2] EmbeddedPkg: implement EDK2 IoMmu protocol wrapping DmaLib To: devel@edk2.groups.io, ard.biesheuvel@linaro.org Cc: leif.lindholm@linaro.org References: <20191125231242.12193-1-ard.biesheuvel@linaro.org> <20191125231242.12193-3-ard.biesheuvel@linaro.org> From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= Message-ID: <3a48b4e8-7c13-6e92-8834-5d01ad246071@redhat.com> Date: Tue, 26 Nov 2019 09:19:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191125231242.12193-3-ard.biesheuvel@linaro.org> X-MC-Unique: 3GJPEu8rMGqlDzcRJzId1Q-1 X-Mimecast-Spam-Score: 0 Content-Language: en-US Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 11/26/19 12:12 AM, Ard Biesheuvel via Groups.Io wrote: > Implement a version of the EDK2 IoMmu protocol that is a simple wrapper > around DmaLib. This is intended to be used to wrap NonCoherentDmaLib so > that the generic PCI infrastructure can be used to implement support for > non cache-coherent DMA. > > Signed-off-by: Ard Biesheuvel > Reviewed-by: Leif Lindholm > --- > EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.c | 257 ++++++++++++++++++++ > EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.inf | 43 ++++ > EmbeddedPkg/EmbeddedPkg.dsc | 5 + > 3 files changed, 305 insertions(+) Reviewed-by: Philippe Mathieu-Daude