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 EFC2594026F for ; Mon, 20 May 2024 01:02:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=LfRUbGs2uhMMyuaG9AV7lgRj0VSJKVKCS53rqh10DMI=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1716166935; v=1; b=AJ5pgsuX+gmaYWaX4n0iEybi0JjY7fu8HC2rTG35PYL+bLtnQg3W2MTBrWD+zunWHLRJqBiU enxp9QlZ3A5iM684ERGxh9yvcDY+nOLUBixn8GRvb0BRpSEDv1S4eHzJxuP3F55lr1zXf04FayC /Yr5ilWsi3SjifAcVbpTCSC8b9unK6+1YlmZvTIgOvv2towfmNjye1SOi4JvqQTDUhj7oTaHyC4 cWeYktE65eQnuc6jFXQoLGZPyRbfnfPQMzDKnxlBlin+a3cXosf996YXG/wr4Excu2PERaIY1T3 R1lfTlE4M/ITFgzOF6rexW9i9dHfhx5jnI9Oqkm8mATtg== X-Received: by 127.0.0.2 with SMTP id pYOzYY7687511x4o00q4kSH5; Sun, 19 May 2024 18:02:15 -0700 X-Received: from NAM02-DM3-obe.outbound.protection.outlook.com (NAM02-DM3-obe.outbound.protection.outlook.com [40.107.95.101]) by mx.groups.io with SMTP id smtpd.web11.50807.1716166934473090685 for ; Sun, 19 May 2024 18:02:14 -0700 X-Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by SA1PR01MB7327.prod.exchangelabs.com (2603:10b6:806:1f6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 01:02:11 +0000 X-Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::9ee2:336e:a1f6:486b]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::9ee2:336e:a1f6:486b%4]) with mapi id 15.20.7587.030; Mon, 20 May 2024 01:02:10 +0000 Message-ID: <6a4e2b6f-fbab-45cb-9cbb-e5fb2f027f36@os.amperecomputing.com> Date: Mon, 20 May 2024 08:01:58 +0700 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH 0/9] Allocate and unblock variable runtime cache buffer in PEI To: devel@edk2.groups.io, dun.tan@intel.com Cc: Ray Ni , Liming Gao , Jiaxin Wu , Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Gerd Hoffmann , Andrew Fish , Jiewen Yao References: <20240517094917.513-1-dun.tan@intel.com> From: "Nhi Pham via groups.io" In-Reply-To: <20240517094917.513-1-dun.tan@intel.com> X-ClientProxiedBy: SI2PR01CA0026.apcprd01.prod.exchangelabs.com (2603:1096:4:192::16) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|SA1PR01MB7327:EE_ X-MS-Office365-Filtering-Correlation-Id: b8e41214-9a51-4234-3539-08dc78687a44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?utf-8?B?RlB6L0lIYVM2cllEbnppNkg4VUtralhWeEFRb0FBZStXRXZYZER2ZUVSUVcw?= =?utf-8?B?SUc2ay82Qm5OL082amFNUjZiZ3lWN0l0Ykx6NGxEeHUvcUlHVUV5UE5aQkJw?= =?utf-8?B?K3RGa0NWNGdUOTJJaGNrZHN6dnJBaDl5aE5uRVdNZ3hSSWpRcWFkVFUxMnFU?= =?utf-8?B?eVpONVNsZGlWaXMwb0hlcERkL0s0eGpFVGdnZE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dwMmZocTd1NVZ5cDJoU1ZTQkZNK01mYkdJ?= =?utf-8?B?VFIzRVl4NTY3cEJHTTdDT1kwV09WMVd4a2ZvK0p1Y2dnUUd1N3VJcFdQS2xt?= =?utf-8?B?a3c9PQ==?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8e41214-9a51-4234-3539-08dc78687a44 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 01:02:10.6222 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /iKbEfrpVhuiuvPMcuRd+qYaxu6Y0GA4UrRMNU0MTFVmi7RHHSFB5aSjzaOMm5gQsOia7RS+6gqSKk/I1OksSS4ohMJRuK4720Ur6Vi62KU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB7327 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 Resent-Date: Sun, 19 May 2024 18:02:14 -0700 Resent-From: nhi@os.amperecomputing.com Reply-To: devel@edk2.groups.io,nhi@os.amperecomputing.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: S1JtO3JKQHaPusjE9s7D5Tdgx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=AJ5pgsuX; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On 5/17/2024 4:49 PM, duntan via groups.io wrote: > This patch set defines a new VARIABLE_RUNTIME_CACHE_INFO HOB. The HOB is = used to store the address and size of the buffer that will be used for vari= able runtime service when the PcdEnableVariableRuntimeCache is TRUE. > In following patches, when PcdEnableVariableRuntimeCache is TRUE, Variabl= ePei will install a callback of gEfiPeiMemoryDiscoveredPpiGuid to allocate = the needed buffer for different type variable runtime cache and build the H= OB. > Then VariableSmmRuntimeDxe driver will consume gEdkiiVariableRuntimeCache= InfoHobGuid to initialize the variable runtime cache related content. The c= ode to allocate and unblock the runtime cache buffer in VariableSmmRuntimeD= xe is also removed in this patc set. >=20 > PR for review: https://github.com/tianocore/edk2/pull/5607 Per design, SMM or StandaloneMM needs to access these runtime cache=20 buffers for cache coherency. I'm not sure how to implement the=20 MmUnblockMemoryLib for ARM to dynamically request mapping of the=20 non-secure runtime cache buffers in StandaloneMM (Secure World). Is it=20 possible to have these runtime buffers allocated statically with=20 predefined PCD at build time. On ARM, they can also define the buffers=20 in device tree (manifest)? Thanks, Nhi -=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 (#119068): https://edk2.groups.io/g/devel/message/119068 Mute This Topic: https://groups.io/mt/106150796/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-