[edk2-devel] [edk2-test PATCH] SctPkg: Updated Start Address Alignment code

Samer El-Haj-Mahmoud samer.el-haj-mahmoud at arm.com
Fri Apr 17 13:46:12 UTC 2020


Gaurav,

You sent to the old list. Adding the new edk2-devel list


> 
> > -----Original Message-----
> > From: Gaurav Jain <gaurav.jain at nxp.com>
> > Sent: Friday, April 17, 2020 2:55 AM
> > To: edk2-devel at lists.01.org
> > Cc: Eric Jin <eric.jin at intel.com>; Supreeth Venkatesh
> > <Supreeth.Venkatesh at arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-
> > Mahmoud at arm.com>; Prasanth Pulla <Prasanth.Pulla at arm.com>; Pankaj
> > Bansal <pankaj.bansal at nxp.com>
> > Subject: RE: [edk2-test PATCH] SctPkg: Updated Start Address Alignment
> > code
> >
> > Hi
> >
> > Gentle Reminder!!
> > Please help to review patch.
> >
> > Regards
> > Gaurav Jain
> >
> > > -----Original Message-----
> > > From: Gaurav Jain <gaurav.jain at nxp.com>
> > > Sent: Thursday, April 9, 2020 6:33 PM
> > > To: edk2-devel at lists.01.org
> > > Cc: Eric Jin <eric.jin at intel.com>; Supreeth Venkatesh
> > > <supreeth.venkatesh at arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-
> > > Mahmoud at arm.com>; Prasanth Pulla <Prasanth.Pulla at arm.com>; Pankaj
> > > Bansal <pankaj.bansal at nxp.com>; Gaurav Jain <gaurav.jain at nxp.com>
> > > Subject: [edk2-test PATCH] SctPkg: Updated Start Address Alignment
> > > code
> > >
> > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2671
> > >
> > > AllocatePages Functionality test.
> > > Updated Start Address Calculation for aligning to 64k.
> > >
> > > Signed-off-by: Gaurav Jain <gaurav.jain at nxp.com>
> > > ---
> > >  .../BlackBoxTest/MemoryAllocationServicesBBTestFunction.c  | 14
> > > +++++++--
> > > -----
> > >  1 file changed, 7 insertions(+), 7 deletions(-)
> > >
> > > diff --git a/uefi-
> > > sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/B
> > > la ck BoxTest/MemoryAllocationServicesBBTestFunction.c b/uefi-
> > > sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/B
> > > la ck BoxTest/MemoryAllocationServicesBBTestFunction.c
> > > index d18fe1f..a42cd9a 100644
> > > --- a/uefi-
> > > sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/B
> > > la ck BoxTest/MemoryAllocationServicesBBTestFunction.c
> > > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocatio
> > > +++ nS er
> > > +++ vices/BlackBoxTest/MemoryAllocationServicesBBTestFunction.c
> > > @@ -706,7 +706,7 @@ BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory  = Start;
> > > @@ -836,7 +836,7 @@ BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory  = Start;
> > > @@ -959,7 +959,7 @@ BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory = Start + (SctLShiftU64 (PageNum/3, EFI_PAGE_SHIFT)
> > > & 0xFFFFFFFFFFFF0000); @@ -1082,7 +1082,7 @@
> > > BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory  = Start + (SctLShiftU64 (PageNum * 2 / 3,
> > > EFI_PAGE_SHIFT) & 0xFFFFFFFFFFFF0000); @@ -1212,7 +1212,7 @@
> > > BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory  = Start;
> > > @@ -1335,7 +1335,7 @@ BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory  = Start;
> > > @@ -1474,7 +1474,7 @@ BBTestAllocatePagesInterfaceTest (
> > >          if (PageNum <= 0x10) {
> > >            break;
> > >          }
> > > -        Start   = (Start + 0x10000) & 0xFFFFFFFFFFFF0000;
> > > +        Start   = (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000;
> > >          PageNum = PageNum - EFI_SIZE_TO_PAGES(0x10000);
> > >
> > >          Memory  = Start;
> > > --
> > > 2.7.4


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#57507): https://edk2.groups.io/g/devel/message/57507
Mute This Topic: https://groups.io/mt/73082849/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list