lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <D676ADF1-33F3-47A2-932F-40F01D602787@arm.com>
Date:   Mon, 7 Mar 2022 17:49:23 +0000
From:   Sami Mujawar <Sami.Mujawar@....com>
To:     Sudeep Holla <Sudeep.Holla@....com>,
        Bharat Kumar Gogada <bharatku@...inx.com>
CC:     "linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        nd <nd@....com>
Subject: Re: ACPI flow for reserved memory

Hi Bharat,

The UEFI specification version 2.9, section 7.2 Memory Allocation Services, EFI_BOOT_SERVICES.GetMemoryMap(), page 172 states the following:
"... Regions that are backed by physical hardware, but are not supposed to be accessed by the OS, must be returned as EfiReservedMemoryType. ..."

This can be achieved by adding the memory region as Reserved Memory in the firmware. 
Example:

Status = gDS->AddMemorySpace (
                             EfiGcdMemoryTypeReserved,
                             ReservedMemBase,
                             ReservedMemSize,
                            EFI_MEMORY_UC
                            );
  if (EFI_ERROR (Status)) {
    DEBUG ((
      DEBUG_ERROR,
      "Failed to add memory space. Status = %r\n",
      Status
      ));
    return Status;
  }

Hope this helps. Please let me know if you have any further queries.

Regards,

Sami Mujawar

On 04/03/2022, 17:14, "Sudeep Holla" <sudeep.holla@....com> wrote:

    Hi Bharat,

    I am not UEFI expert but I was sure there would be some options for this.
    Checking with Sami(cc-ed), confirmed the same.

    On Thu, Mar 03, 2022 at 11:07:54AM +0000, Bharat Kumar Gogada wrote:
    > Hi All,
    > 
    > In device tree we have several ways to 
    > reserve memory (https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt).   
    > 
    > Can anyone please help equivalent flow for ACPI.

    @Sami, please share any details you may have.

    -- 
    Regards,
    Sudeep

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ