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 6D242740032 for ; Sun, 3 Nov 2024 16:46:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=mwUe/RdsSlPAPSoqNp770545prNhVL8Qkhtrjunkvns=; c=relaxed/simple; d=groups.io; h=Subject:To:From:User-Agent:MIME-Version:Date:Message-ID:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240830; t=1730652370; v=1; x=1730911568; b=tVLrl4Pq8vJJvab4F0x8sOCGxHgc5BvzkBKpGmjUJgZHhk9Dnrm+tJK8JZ/ImNYQDswtW87X WndN5KkTD/p78kQhVKKOb1dPqsnO0ijXlb21ybekfAKUVkMNOTWPNH10FJ4e8Ipr0hdAHiXnKo4 FUdt+SqMzZ1hcagPP92C5apS09pgpyeW6JN7auNUX37jy6U0GoNHnQQrDsayjIv9mYHtxjSJQch VMGZpxasataA5LoN5Cu1911H7V58kjBC6yxeb3qov6vAyf6iRA9X8zsrqHm4k29zw+lnOIhqwY0 Kj0Ypi7zZX2nile8NfisyHnqUDRLk4ys7MbwenGtNJXiQ== X-Received: by 127.0.0.2 with SMTP id zNAvYY7687511xR8cOWO3gav; Sun, 03 Nov 2024 08:46:08 -0800 Subject: [edk2-devel] StandaloneMmPkg: Fix check buffer address failed issue from TF-A To: devel@edk2.groups.io From: "Dhaval Sharma" X-Originating-Location: Bengaluru, Karnataka, IN (122.172.82.73) X-Originating-Platform: Linux Chrome 128 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 03 Nov 2024 08:46:07 -0800 Message-ID: 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: JcZQuvhHRfciy51PZGzMTTUtx7686176AA= Content-Type: multipart/alternative; boundary="IUFtxG5Ht9xRIgl2K6Qy" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=tVLrl4Pq; 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 --IUFtxG5Ht9xRIgl2K6Qy Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Ming/Sami, I am working on adding RISCV standalone MM support along with yong.li@intel= .com. Since some part of this code is common for all arch, I had a question= on this particular patch https://gitlab.ba.rivosinc.com/rv/sw/int/fw/cpu/e= dk2/-/commit/5496c763aaddc4a47639d4652abe23aa3419263a submitted by you. I w= anted to understand the implication before I align implementation with RISC= V64 if you could help with that. The question is as follows: I see there are couple of places where non secure buffer pointer is being c= ommunicated to MM. gEfiStandaloneMmNonSecureBufferGuid and gMmCommBufferHob= Guid. Unless I have mistaken, the purpose of both buffers is similar. I won= der do we expect MM to comprehend them differently? MmEntryPoint() now uses mMmCommunicationBuffer derived from gMmCommBufferHo= bGuid. CheckBufferAddr() uses mNsCommBuffer which is derived from gEfiStand= aloneMmNonSecureBufferGuid. Can you please help clarify? =3DD -=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 (#120702): https://edk2.groups.io/g/devel/message/120702 Mute This Topic: https://groups.io/mt/109369870/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- --IUFtxG5Ht9xRIgl2K6Qy Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Ming/Sami,
I am working on adding RISCV standalone MM support along with yong.li@in= tel.com. Since some part of this code is common for all arch, I had a q= uestion on this particular patch https://gitlab.ba.rivosinc.com/rv/sw/int/f= w/cpu/edk2/-/commit/5496c763aaddc4a47639d4652abe23aa3419263a submitted = by you. I wanted to understand the implication before I align implementatio= n with RISCV64 if you could help with that.
The question is as follows:
I see there are couple of places where non secure buffer pointer is be= ing communicated to MM. gEfiStandaloneMmNonSecureBufferGuid and gMmCommBuff= erHobGuid. Unless I have mistaken, the purpose of both buffers is similar. = I wonder do we expect MM to comprehend them differently? 
MmEntryPoint() now uses mMmCommunicationBuffer derived from gMmCommBuf= ferHobGuid. CheckBufferAddr() uses mNsCommBuffer which is derived from gEfi= StandaloneMmNonSecureBufferGuid. Can you please help clarify?
=3DD
 
_._,_._,_

Groups.io Links:

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

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

_._,_._,_
--IUFtxG5Ht9xRIgl2K6Qy--