From: "Lendacky, Thomas via groups.io" <thomas.lendacky=amd.com@groups.io>
To: devel@edk2.groups.io, w.sheng@intel.com
Cc: Ray Ni <ray.ni@intel.com>, Huang Jenny <jenny.huang@intel.com>,
Chiang Chris <chris.chiang@intel.com>
Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Add feedback status for PciIoMap
Date: Fri, 26 Jan 2024 11:21:16 -0600 [thread overview]
Message-ID: <b6c2ee9e-043c-8a1f-8941-7f10122ca218@amd.com> (raw)
In-Reply-To: <20240122064706.2059-1-w.sheng@intel.com>
On 1/22/24 00:47, Sheng Wei via groups.io wrote:
> PciIoMap () need to feedback the status of
> mIoMmuProtocol->SetAttribute () return value.
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4652
I'm still investigating, but this commit breaks booting all types of SEV
guests. Without this patch, there is a boot device mapping and the Grub
menu is displayed. But with this patch, I receive:
map: No mapping found.
Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
and then drop to the shell prompt.
Thanks,
Tom
>
> Cc: Ray Ni <ray.ni@intel.com>
> Cc: Huang Jenny <jenny.huang@intel.com>
> Cc: Chiang Chris <chris.chiang@intel.com>
> Signed-off-by: Sheng Wei <w.sheng@intel.com>
> ---
> MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
> index 14bed54729..e85544d08d 100644
> --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
> +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c
> @@ -1024,12 +1024,12 @@ PciIoMap (
> return EFI_INVALID_PARAMETER;
> }
>
> - mIoMmuProtocol->SetAttribute (
> - mIoMmuProtocol,
> - PciIoDevice->Handle,
> - *Mapping,
> - IoMmuAttribute
> - );
> + Status = mIoMmuProtocol->SetAttribute (
> + mIoMmuProtocol,
> + PciIoDevice->Handle,
> + *Mapping,
> + IoMmuAttribute
> + );
> }
> }
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114621): https://edk2.groups.io/g/devel/message/114621
Mute This Topic: https://groups.io/mt/103881889/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-01-26 17:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-22 6:47 [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: Add feedback status for PciIoMap Sheng Wei
2024-01-23 3:26 ` Huang, Jenny
2024-01-24 12:25 ` Ni, Ray
2024-01-26 17:21 ` Lendacky, Thomas via groups.io [this message]
2024-01-26 17:38 ` Lendacky, Thomas via groups.io
2024-01-26 17:56 ` Lendacky, Thomas via groups.io
2024-01-29 5:20 ` Min Xu
2024-01-29 17:20 ` Laszlo Ersek
2024-01-29 19:30 ` Lendacky, Thomas via groups.io
2024-01-30 16:37 ` Laszlo Ersek
-- strict thread matches above, loose matches on Subject: below --
2024-01-22 6:46 Sheng Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6c2ee9e-043c-8a1f-8941-7f10122ca218@amd.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox