From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id CF676740032 for ; Mon, 10 Jun 2024 01:44:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+OLoRhbD0WA0sW9fLqPlsxRVW8RR9ThCafzjrrXKcXY=; c=relaxed/simple; d=groups.io; h=Subject:To:From:User-Agent:MIME-Version:Date:References:In-Reply-To:Message-ID:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1717983879; v=1; b=1lg5tXzKd1gaNiprnDhLoDL3NrxGK8UUBLwHqsF+L+1A79LE1oIE/Vv+pIi1Ap1C2rAnnDx/ hEiN7ZtGdd1/w9dZriz8UA7dOz7o5KFmQtmNrOx9bTJIUZwcpRgH8ScDR8M+bvy/nBCEJl5cCtJ WLWHOtpTGZrAlb1cIa6PP/KAkgFVmKfGbhj+Y0x5hrCkEz6R/Ck/2rtVwOAmtNCDX4bucRa7sbp US0n0wRbIvPzj3nHKHwTeKv77oVVTuZCO7v7GI/433AiMunm8LK57zRiY8xGp47q069RA4Spw7d LCztn7Lmnlqz80qXPAyH0+sTq0wFLSc9HE2UdJhJgPKkg== X-Received: by 127.0.0.2 with SMTP id wPnhYY7687511xKdDyh1ORVN; Sun, 09 Jun 2024 18:44:38 -0700 Subject: Re: [edk2-devel] [PATCH v3 1/1] MdeModulePkg: Add the EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE attribute To: "Michael Kubacki" , devel@edk2.groups.io From: "Dhaval Sharma" X-Originating-Location: Bengaluru, Karnataka, IN (171.76.86.243) X-Originating-Platform: Linux Chrome 124 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 09 Jun 2024 18:44:37 -0700 References: <20240518005757.1639-1-mikuback@linux.microsoft.com> In-Reply-To: <20240518005757.1639-1-mikuback@linux.microsoft.com> Message-ID: <24273.1717983877551380256@groups.io> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dhaval@rivosinc.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: SN53yquXgrDXVaYEoi0nXtNyx7686176AA= Content-Type: multipart/alternative; boundary="DfyzbYk644hNK0Xzfu3H" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=1lg5tXzK; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io --DfyzbYk644hNK0Xzfu3H Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Related to this, I also faced this issue where in order to prevent edk2 fro= m allocating this memory I had to modify CoreFindFreePagesI // // Don't allocate out of Special-Purpose memory. // if ((Entry->Attribute & EFI_MEMORY_SP) !=3D 0) { continue; } Can't we add PCD based logic here to selectively NOT use SP memory for edk2= allocations? I think "reserved-memory" attr does not work well because it = would force OS/drivers not to use it. Which is not what we want. We really = want special drivers to make use of it. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119519): https://edk2.groups.io/g/devel/message/119519 Mute This Topic: https://groups.io/mt/106165072/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --DfyzbYk644hNK0Xzfu3H Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Related to this, I also faced this issue where in order to prevent edk2 fro= m allocating this memory I had to modify CoreFindFreePagesI
  &nb= sp; //
    // Don't allocate out of Special-Purpose memory.<= br />    //
    if ((Entry->Attribute & EFI= _MEMORY_SP) !=3D 0) {
      continue;
   = ; }
Can't we add PCD based logic here to selectively NOT use SP memory= for edk2 allocations? I think "reserved-memory" attr does not work well be= cause it would force OS/drivers not to use it. Which is not what we want. W= e really want special drivers to make use of it.
_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#119519) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--DfyzbYk644hNK0Xzfu3H--