From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.171.2.32; helo=mail-in22.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from mail-in22.apple.com (mail-out22.apple.com [17.171.2.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BA17421B00DC1 for ; Mon, 27 Nov 2017 07:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1511798282; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3BgUGeLwY6qHYGBNWIHUDt76pmWrhMzkRyulHhGpqwI=; b=Sw8rBS6f6O+wrA2hp17iQHmDzqjwpZix9tm2JY+5Zge/l/+ECBV0VcFfSmIvwvOi twoC9hotOAgc38GK7sxXEzOWDoV0EDUU/d1aFIOBvD0WAMQIkZ+L/Lw0ZeWcBQYj 0U4/X8yOLjfGT1lEgHs2ZM7GIi0hYvyvUDAhbvEBEamK+FfQwkQGYWbJfnI58l3B Sa0oLt+MHevwHcjBePktO2v0azhc4OTbbYgPtZCmnS+w0u4rY9klHRl5ZCxAN5v7 CxMM91iMzlnVGz3o0jacinDfuOUK3rdGAAqKp70JlXW9bZwMpiSUIuNCLC59jNeN 9b01hNnn2aazazsmKWzNbw==; Received: from relay22.apple.com (relay22.apple.com [17.171.128.103]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in22.apple.com (Apple Secure Mail Relay) with SMTP id E3.2D.08992.A063C1A5; Mon, 27 Nov 2017 07:58:02 -0800 (PST) X-AuditID: 11ab0216-f8bff70000002320-46-5a1c360a7275 Received: from ma1-mmpp-sz10.apple.com (ma1-mmpp-sz10.apple.com [17.171.128.150]) by relay22.apple.com (Apple SCV relay) with SMTP id 9C.15.23356.A063C1A5; Mon, 27 Nov 2017 07:58:02 -0800 (PST) MIME-version: 1.0 Received: from [17.234.162.130] by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.1.20171102 64bit (built Nov 2 2017)) with ESMTPSA id <0P0300M0X30KZN10@ma1-mmpp-sz10.apple.com>; Mon, 27 Nov 2017 07:58:02 -0800 (PST) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Mon, 27 Nov 2017 07:58:07 -0800 Message-id: <0FAC8B37-CAFD-47BD-99A4-3A8708AE1C23@apple.com> References: To: "edk2-devel@lists.01.org" X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNLMWRmVeSWpSXmKPExsUiuLohXZfLTCbKYFqfpcW+1zuZLPYcOsrs wOTxuOcMm0f37H8sAUxRXDYpqTmZZalF+nYJXBnP7s1kKbjDXtH7egdTA+Me1i5GTg4JAROJ yS9+s3UxcnEICaxnkjh7cRkbTOJ18xJWiMRhRomT1/6BdfAKCEr8mHyPpYuRg4NZQF7i4HlZ kDCzgJbE90etLBD13xglTny8zQ6SEBYQl3h3ZhMzSL2wgAVQvQ9ImE1AWWLF/A9gJZwC8RK7 zlxgAbFZBFQl+tqXMkPMVJU4/WI6M8RaG4lV2zeB3SYkECdxvm8LWK+IgLlE6/wrTBA3y0rc mn2JGeQGCYFGNol3q9ayT2AUnoXk7FkIZ89CcvYCRuZVjMK5iZk5upl5RkZ6iQUFOal6yfm5 mxjBoc0ktoPx3mvDQ4wCHIxKPLwKPtJRQqyJZcWVuYcYpTlYlMR513yUihISSE8sSc1OTS1I LYovKs1JLT7EyMTBKdXAyOM+9VCK17KPUw0FbGI1Nr+ybjmq8kwk992OXJsCxarnyalbHrYf 25D8ny17vfa9oJJFaWvn9DcL6x0Le7Zs/wKN0txlLmLb165rjcs6OrPNx//Wjl+zX6z7q9Jh typcRX33vCgO9gt+jMLTuK+3nbHvU+6PSlzYaR8aVv7JmnOm+1/uy/PPKLEUZyQaajEXFScC AGSoOb5OAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsUiuLphmi6XmUyUQdcOM4t9r3cyWew5dJTZ gcnjcc8ZNo/u2f9YApiiuGxSUnMyy1KL9O0SuDKe3ZvJUnCHvaL39Q6mBsY9rF2MnBwSAiYS r5uXANlcHEIChxklTl77B5bgFRCU+DH5HksXIwcHs4C8xMHzsiBhZgEtie+PWlkg6r8xSpz4 eJsdJCEsIC7x7swmZpB6YQELoHofkDCbgLLEivkfwEo4BeIldp25wAJiswioSvS1L2WGmKkq cfrFdGaItTYSq7ZvYgOxhQTiJM73bQHrFREwl2idf4UJ4mZZiVuzLzFPYBSYheTSWQiXzkJy 6QJG5lWMgkWpOYmVRkZ6iQUFOal6yfm5mxghoZi+g/HITbNDjAIcjEo8vAo+0lFCrIllxZW5 hxglOJiVRHhlHwKFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8xavEo8SEkhPLEnNTk0tSC2CyTJx cEo1MAZasLIanfsd9kDg6SbXy9qdl021X25ksDsr9dhWsLdf6lzqvHmxF2esfGGgGRLeOef9 n96dsxVnVR3y+3/51Q0BT9PbojNVvjd5Gobtyz/82lb6RMPR4zv97E/mrzz9/nJe9jLm6qvy njWuG/LnKR5aV5Jp90V+35mwc6WpUxy4Ix9y/VK3N1FiKc5INNRiLipOBACTLjDCQQIAAA== Subject: Re: Unable to Loacte EdkiiIoMmuProtocol. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 15:53:42 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Should drivers call gEdkiiIoMmuProtocolGuid directly or just use PciIo Protocol? Thanks, Andrew Fish > On Nov 27, 2017, at 3:24 AM, Amit kumar wrote: > > Hi. > I am trying to allocate a mem buffer above 4Gb address but the allocation > since i am unable to locate EdkiiIoMmuProtocol. > > Status = gBS->LocateProtocol (&gEdkiiIoMmuProtocolGuid, NULL, (VOID **)&mIoMmuProtocol); > Status = mIoMmuProtocol->AllocateBuffer ( > mIoMmuProtocol, > MaxAllocateType, > EfiBootServicesData, > 1, > HostAddress, > EDKII_IOMMU_ATTRIBUTE_DUAL_ADDRESS_CYCLE > ); > > > can somebody tell me the right way to do it. ? > > > Best Regards > Amit Kumar > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel