public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-non-osi v3] Update D03/D05 MemoryInit.efi binary for bug 3419
@ 2017-11-13 12:23 Heyi Guo
  2017-11-13 12:23 ` [PATCH edk2-non-osi v3] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB Heyi Guo
  0 siblings, 1 reply; 4+ messages in thread
From: Heyi Guo @ 2017-11-13 12:23 UTC (permalink / raw)
  To: leif.lindholm, linaro-uefi, edk2-devel, graeme.gregory
  Cc: ard.biesheuvel, guoheyi, wanghuiqiang, huangming23, zhangjinsong2,
	mengfanrong, waip23, Heyi Guo

https://bugs.linaro.org/show_bug.cgi?id=3061
For fix this bug,the function PciIoPciRead of NonDiscoverablePciDeviceDxe should be modified also.

Code can also be found in github:
https://github.com/hisilicon/OpenPlatformPkg.git
branch: rp-osi-bug-v3


Ming Huang (1):
  Hisilicon D0x: Remove uncacheable attribute from memory resource HOB

 Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi | Bin 90272 -> 90336 bytes
 Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi | Bin 152576 -> 152480 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH edk2-non-osi v3] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB
  2017-11-13 12:23 [PATCH edk2-non-osi v3] Update D03/D05 MemoryInit.efi binary for bug 3419 Heyi Guo
@ 2017-11-13 12:23 ` Heyi Guo
  2017-11-13 14:04   ` Ard Biesheuvel
  0 siblings, 1 reply; 4+ messages in thread
From: Heyi Guo @ 2017-11-13 12:23 UTC (permalink / raw)
  To: leif.lindholm, linaro-uefi, edk2-devel, graeme.gregory
  Cc: ard.biesheuvel, guoheyi, wanghuiqiang, huangming23, zhangjinsong2,
	mengfanrong, waip23, Liu Yi, Heyi Guo

From: Ming Huang <huangming23@huawei.com>

If uncacheable attribute is included in memory resource HOB,
GCD spaces will also have EFI_MEMORY_UC capability,
then NonCoherentPciIoAllocateBuffer of NonDiscoverablePciDeviceDxe
module will allocate DMA buffer of EFI_MEMORY_UC type, which will
cause alignment fault exception with BaseMemoryLibOptDxe.

This not only affects NonDiscoverablePciDeviceDxe, it removes the
UC attribute from all DRAM regions in the UEFI memory map,
which makes much more sense on ARM

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liu Yi <liuyi86@huawei.com>
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Signed-off-by: Ming Huang <huangming23@huawei.com>
---
 Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi | Bin 90272 -> 90336 bytes
 Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi | Bin 152576 -> 152480 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi
index 354abcc..31e2903 100644
Binary files a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi differ
diff --git a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi
index b94e0cb..eb71c44 100644
Binary files a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi differ
-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH edk2-non-osi v3] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB
  2017-11-13 12:23 ` [PATCH edk2-non-osi v3] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB Heyi Guo
@ 2017-11-13 14:04   ` Ard Biesheuvel
  2017-11-13 14:26     ` Leif Lindholm
  0 siblings, 1 reply; 4+ messages in thread
From: Ard Biesheuvel @ 2017-11-13 14:04 UTC (permalink / raw)
  To: Heyi Guo
  Cc: Leif Lindholm, linaro-uefi, edk2-devel@lists.01.org,
	Graeme Gregory, guoheyi@huawei.com, wanghuiqiang, huangming,
	Jason Zhang, Mengfanrong, waip23, Liu Yi

On 13 November 2017 at 12:23, Heyi Guo <heyi.guo@linaro.org> wrote:
> From: Ming Huang <huangming23@huawei.com>
>
> If uncacheable attribute is included in memory resource HOB,
> GCD spaces will also have EFI_MEMORY_UC capability,
> then NonCoherentPciIoAllocateBuffer of NonDiscoverablePciDeviceDxe
> module will allocate DMA buffer of EFI_MEMORY_UC type, which will
> cause alignment fault exception with BaseMemoryLibOptDxe.
>
> This not only affects NonDiscoverablePciDeviceDxe, it removes the
> UC attribute from all DRAM regions in the UEFI memory map,
> which makes much more sense on ARM
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Liu Yi <liuyi86@huawei.com>
> Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
> Signed-off-by: Ming Huang <huangming23@huawei.com>

Assuming the patch does what it says on the tin:

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---
>  Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi | Bin 90272 -> 90336 bytes
>  Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi | Bin 152576 -> 152480 bytes
>  2 files changed, 0 insertions(+), 0 deletions(-)
>
> diff --git a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi
> index 354abcc..31e2903 100644
> Binary files a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi differ
> diff --git a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi
> index b94e0cb..eb71c44 100644
> Binary files a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi differ
> --
> 1.9.1
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH edk2-non-osi v3] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB
  2017-11-13 14:04   ` Ard Biesheuvel
@ 2017-11-13 14:26     ` Leif Lindholm
  0 siblings, 0 replies; 4+ messages in thread
From: Leif Lindholm @ 2017-11-13 14:26 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Heyi Guo, linaro-uefi, edk2-devel@lists.01.org, Graeme Gregory,
	guoheyi@huawei.com, wanghuiqiang, huangming, Jason Zhang,
	Mengfanrong, waip23, Liu Yi

On Mon, Nov 13, 2017 at 02:04:57PM +0000, Ard Biesheuvel wrote:
> On 13 November 2017 at 12:23, Heyi Guo <heyi.guo@linaro.org> wrote:
> > From: Ming Huang <huangming23@huawei.com>
> >
> > If uncacheable attribute is included in memory resource HOB,
> > GCD spaces will also have EFI_MEMORY_UC capability,
> > then NonCoherentPciIoAllocateBuffer of NonDiscoverablePciDeviceDxe
> > module will allocate DMA buffer of EFI_MEMORY_UC type, which will
> > cause alignment fault exception with BaseMemoryLibOptDxe.
> >
> > This not only affects NonDiscoverablePciDeviceDxe, it removes the
> > UC attribute from all DRAM regions in the UEFI memory map,
> > which makes much more sense on ARM
> >
> > Contributed-under: TianoCore Contribution Agreement 1.1
> > Signed-off-by: Liu Yi <liuyi86@huawei.com>
> > Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
> > Signed-off-by: Ming Huang <huangming23@huawei.com>
> 
> Assuming the patch does what it says on the tin:
> 
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

Pushed as bd4078f.

> > ---
> >  Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi | Bin 90272 -> 90336 bytes
> >  Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi | Bin 152576 -> 152480 bytes
> >  2 files changed, 0 insertions(+), 0 deletions(-)
> >
> > diff --git a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi
> > index 354abcc..31e2903 100644
> > Binary files a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi differ
> > diff --git a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi
> > index b94e0cb..eb71c44 100644
> > Binary files a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi differ
> > --
> > 1.9.1
> >


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-13 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-13 12:23 [PATCH edk2-non-osi v3] Update D03/D05 MemoryInit.efi binary for bug 3419 Heyi Guo
2017-11-13 12:23 ` [PATCH edk2-non-osi v3] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB Heyi Guo
2017-11-13 14:04   ` Ard Biesheuvel
2017-11-13 14:26     ` Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox