public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: Gerd Hoffmann <kraxel@redhat.com>,
	"Liu, Zhiguang" <zhiguang.liu@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Kumar, Rahul R" <rahul.r.kumar@intel.com>,
	"Zeng, Star" <star.zeng@intel.com>,
	"Wu@sirius.home.kraxel.org" <Wu@sirius.home.kraxel.org>,
	"Wu, Jiaxin" <jiaxin.wu@intel.com>,
	"Dong, Eric" <eric.dong@intel.com>
Subject: Re: [PATCH v2] UefiCpuPkg: Fix SMM code hangs when InitPaging
Date: Wed, 1 Feb 2023 05:25:18 +0000	[thread overview]
Message-ID: <MN6PR11MB82446D4B145BEBE5E5C063FC8CD19@MN6PR11MB8244.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20230118090529.bwp4qpluagrpk53x@sirius.home.kraxel.org>

Gerd,
I saw Zhiguang and you had some conversation in V1 mail thread.
Was below question answered in that conversation?

Any concern if I merge the patch?

Thanks,
Ray

> -----Original Message-----
> From: Gerd Hoffmann <kraxel@redhat.com>
> Sent: Wednesday, January 18, 2023 5:05 PM
> To: Liu, Zhiguang <zhiguang.liu@intel.com>
> Cc: devel@edk2.groups.io; Kumar, Rahul R <rahul.r.kumar@intel.com>; Zeng,
> Star <star.zeng@intel.com>; Wu@sirius.home.kraxel.org; Wu, Jiaxin
> <jiaxin.wu@intel.com>; Ni, Ray <ray.ni@intel.com>; Dong, Eric
> <eric.dong@intel.com>
> Subject: Re: [PATCH v2] UefiCpuPkg: Fix SMM code hangs when InitPaging
> 
> On Wed, Jan 18, 2023 at 09:23:48AM +0800, Zhiguang Liu wrote:
> > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4246
> >
> > In function InitPaging, NumberOfPml5Entries is calculated by below code
> > NumberOfPml5Entries = (UINTN)LShiftU64 (1, SizeOfMemorySpace - 48);
> > If the SizeOfMemorySpace is larger than 48, NumberOfPml5Entries will be
> > larger than 1. However, this doesn't make sense if the hardware doesn't
> > support 5 level page table.
> 
> ... if 5-level paging is not used.
> 
> Hardware which does not support 5-level paging is limited to 48 anyway.
> 
> This still does not explain why this fixes code hangs.
> 
> take care,
>   Gerd


  reply	other threads:[~2023-02-01  5:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18  1:23 [PATCH v2] UefiCpuPkg: Fix SMM code hangs when InitPaging Zhiguang Liu
2023-01-18  9:05 ` Gerd Hoffmann
2023-02-01  5:25   ` Ni, Ray [this message]
2023-02-01 13:51     ` Gerd Hoffmann

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=MN6PR11MB82446D4B145BEBE5E5C063FC8CD19@MN6PR11MB8244.namprd11.prod.outlook.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