From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3A70481C54 for ; Wed, 14 Dec 2016 02:21:10 -0800 (PST) Received: by mail-io0-x236.google.com with SMTP id h30so32196321iod.2 for ; Wed, 14 Dec 2016 02:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lAh0S5bVxlfGy0gg4x/MNDOXBgECuM9pAGQ9X5wIj3o=; b=QYFVybSX3gvzoAiBgxxkoEI4pd4fBfjwFcKjHx1CFgtQA8qePobt59/ZwKWwwdwLDH hCc2TwMsi7W5xP6lk9rZm6vQgvE6Z89cEwe35tYG2B+nRon4S9p1/O4shMjt54vu6Jz4 UUuLx/O/YRx4ZggnhePrkuw7YWuNIj+R7TeAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lAh0S5bVxlfGy0gg4x/MNDOXBgECuM9pAGQ9X5wIj3o=; b=YviupukFRIye9iDdWc+vvBVcV9Y1Ldxuj9V33jpieq83TbkJRGpXrLbHybt65MiVHb ZjSJ1GY0o1QKhgdr1i5KJBv1buHJA4XKpxtZzkq/byDsNbrxtpxaTEQxoj+tV9reTxWR V98Xz/lnv3MkWYlQV97hmcIDW19YN+5OgTu77yuOo66o8fb61XBsE55H89tDGGOPYI9l GxPSzhCXEzPzYXwBzjevAxb8bLG9AMPdvlNNYy+ri8BlUG24yRF5cZ5jM6nywhycTEUV 0ZNmkjaOHPleDiwq6DYc4D7qGAtO56C3GKkTL5IkXWI9pZhxHCK4NYQMatN2U6G0zR3U wlig== X-Gm-Message-State: AKaTC00HE2jimq2x4W2Z3dkfBCkIxhAz9Rr9axedvidptv8QA1EEABguwASE8j7Ds2wBXJhCISlh5E8ldb3R4Ou7 X-Received: by 10.36.185.83 with SMTP id k19mr6448328iti.59.1481710869326; Wed, 14 Dec 2016 02:21:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.198.67 with HTTP; Wed, 14 Dec 2016 02:21:08 -0800 (PST) In-Reply-To: References: From: Ard Biesheuvel Date: Wed, 14 Dec 2016 10:21:08 +0000 Message-ID: To: Michael Zimmermann Cc: "edk2-devel@lists.01.org" Subject: Re: correct way to reserve memory from PrePi? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 10:21:10 -0000 Content-Type: text/plain; charset=UTF-8 On 14 December 2016 at 10:02, Michael Zimmermann wrote: > I tried both BuildResourceDescriptorHob and BuildMemoryAllocationHob > but apparently they don't have any effect. > When I look at the output of the shell's memmap command there aren't > any reserved/unavailable pages. > > Furthermore, when using AllocatePages with one of the physical > addresses which I've reserved it succeeds which means that it's not > just a problem of how the memmap command works. > > Am I doing something wrong or is this a bug? > I think you need to ensure that they don't overlap existing resource descriptors: if you declare a region as reserved, you should not declare it as memory first