From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mx.groups.io with SMTP id smtpd.web09.9702.1574764090657412691 for ; Tue, 26 Nov 2019 02:28:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=lP84k7h9; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.128.67, mailfrom: pete@akeo.ie) Received: by mail-wm1-f67.google.com with SMTP id n188so2667804wme.1 for ; Tue, 26 Nov 2019 02:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=D4GnEwbBFhz7Ox7dCZ+20WPZFv8XIKMXt214pbw/4eo=; b=lP84k7h9XI7gvgcMXp+/3uILDCIZEJifQv/ITmmYOBnL68VYo85wP2deUQjKKbDZts eXRlpeW2OitABbUWAFhaRCxRVkFV1W7/5My/ZnLmosNPa97FmqitwyXpvziFkAqiB7ee UeYExXtWvisEp+UZDEDHW+Nc/rqH9WO0aaEYlCEILP9T2HsyT95hpGFNx1a9I2D4+XCg v/LfzldQc9QiixFMV4Z7d8kf5j+n0Nx/XASn8TpCtRBPq3MPbCJ3vGur0AnNCmD3Ijbs 6NY2+qAWJGXnZPD/G4Gc8SFO/uB4Fx8vmp8lbgEd8VbDdj+QlgqPeARupcJ4yNbwfemP md6g== 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=D4GnEwbBFhz7Ox7dCZ+20WPZFv8XIKMXt214pbw/4eo=; b=FZzVvTfLxMms0RafJUTlM3sFxR1NFxJ2Lsplzk89jtAaU5qhv63llv8+c6JZwZMMRC 1R5JRyVyGmpc8QyoaJ4wR7Cmg3AVhBpp9SiO/UjhJeHyAMFQOHWghR13zk0kBPc/h2Yi HBqJB17iDsCbZreoOb+YveSXPmNQpvSCc/GZmBGNgbzxmiPWl7HVDou956FoBq+YkWsm 1ZP1/qPcNZuoi0sLQ6N3xw0ONA3UwEw2IkHfFTPbhn3DPKxJ4V2So5t3SWvSAKOhix+V 9y9EDEAlnmF4XIck++/xfzaXCe9dxqEeuNH5eXeqlHUunRe917Si6ClHwEQ8kMYR6nOw RMqQ== X-Gm-Message-State: APjAAAUFiXrofo5e6uDW9dXnWHyW7IVs8RQYNjQ1j8x92xslsOkQlSYN W7me8k9cAOTdF1CprhE9DBxyog== X-Google-Smtp-Source: APXvYqwnqQD86VlLCmBRTYfufINth2OlVOGvdwzDmJdh5SmMS5tFhhYirnLaV/UqxHcW37fcnjehPw== X-Received: by 2002:a05:600c:23ce:: with SMTP id p14mr3564270wmb.176.1574764089266; Tue, 26 Nov 2019 02:28:09 -0800 (PST) Return-Path: Received: from [10.0.0.122] ([84.203.37.1]) by smtp.googlemail.com with ESMTPSA id d186sm2711363wmf.7.2019.11.26.02.28.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 02:28:08 -0800 (PST) Subject: Re: [edk2-devel] [PATCH v2 1/2] EmbeddedPkg/NonCoherentDmaLib: implement support for DMA range limits To: devel@edk2.groups.io, ard.biesheuvel@linaro.org Cc: leif.lindholm@linaro.org References: <20191125231242.12193-1-ard.biesheuvel@linaro.org> <20191125231242.12193-2-ard.biesheuvel@linaro.org> From: "Pete Batard" Message-ID: <2a1b7952-c64f-3ef1-d624-bda0448ac972@akeo.ie> Date: Tue, 26 Nov 2019 10:28:07 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191125231242.12193-2-ard.biesheuvel@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit On 2019.11.25 23:12, Ard Biesheuvel wrote: > Implement support for driving peripherals with limited DMA ranges to > NonCoherentDmaLib, by adding a device address limit, and taking it, > along with the device offset, into account when allocating or mapping > DMA buffers. > > Signed-off-by: Ard Biesheuvel > --- > EmbeddedPkg/EmbeddedPkg.dec | 6 + > EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.c | 165 ++++++++++++++++++-- > EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf | 1 + > 3 files changed, 160 insertions(+), 12 deletions(-) Tested-by: Pete Batard