Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-10 Thread Ard Biesheuvel
On Wed, 9 Sep 2020 at 23:37, Atish Patra wrote: > > On Wed, Sep 9, 2020 at 1:17 AM Ard Biesheuvel wrote: > > > > (+ Atish, Palmer) > > > > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > > > > > > In the memory map the regions with the lowest addresses may be of type > > > EFI_RESERVED

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-09 Thread Atish Patra
On Wed, Sep 9, 2020 at 1:17 AM Ard Biesheuvel wrote: > > (+ Atish, Palmer) > > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > > > > In the memory map the regions with the lowest addresses may be of type > > EFI_RESERVED_TYPE. The reserved areas may be discontinuous relative to the > >

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-09 Thread Maxim Uvarov
On Wed, 9 Sep 2020 at 13:47, Ard Biesheuvel wrote: > > On Wed, 9 Sep 2020 at 13:44, Maxim Uvarov wrote: > > > > On Wed, 9 Sep 2020 at 11:17, Ard Biesheuvel wrote: > > > > > > (+ Atish, Palmer) > > > > > > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt > > > wrote: > > > > > > > > In the memo

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-09 Thread Ard Biesheuvel
On Wed, 9 Sep 2020 at 13:44, Maxim Uvarov wrote: > > On Wed, 9 Sep 2020 at 11:17, Ard Biesheuvel wrote: > > > > (+ Atish, Palmer) > > > > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > > > > > > In the memory map the regions with the lowest addresses may be of type > > > EFI_RESERVED_

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-09 Thread Maxim Uvarov
On Wed, 9 Sep 2020 at 11:17, Ard Biesheuvel wrote: > > (+ Atish, Palmer) > > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > > > > In the memory map the regions with the lowest addresses may be of type > > EFI_RESERVED_TYPE. The reserved areas may be discontinuous relative to the > > re

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-09 Thread Ard Biesheuvel
(+ Atish, Palmer) On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > > In the memory map the regions with the lowest addresses may be of type > EFI_RESERVED_TYPE. The reserved areas may be discontinuous relative to the > rest of the memory. So for calculating the maximum loading address fo

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-07 Thread Maxim Uvarov
Tested both original and (md->type == EFI_CONVENTIONAL_MEMORY) versions - they fix qemu v7 boot under qemu. I think the second version is more correct. Regards, Maxim. On Mon, 7 Sep 2020 at 13:21, Maxim Uvarov wrote: > > On Mon, 7 Sep 2020 at 11:31, Heinrich Schuchardt wrote: > > > > On 07.09.2

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-07 Thread Maxim Uvarov
On Mon, 7 Sep 2020 at 11:31, Heinrich Schuchardt wrote: > > On 07.09.20 09:00, Maxim Uvarov wrote: > > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > >> > >> In the memory map the regions with the lowest addresses may be of type > >> EFI_RESERVED_TYPE. The reserved areas may be discont

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-07 Thread Heinrich Schuchardt
On 07.09.20 09:00, Maxim Uvarov wrote: > On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: >> >> In the memory map the regions with the lowest addresses may be of type >> EFI_RESERVED_TYPE. The reserved areas may be discontinuous relative to the >> rest of the memory. So for calculating the

Re: [PATCH 1/1] efi/libstub: DRAM base calculation

2020-09-07 Thread Maxim Uvarov
On Fri, 4 Sep 2020 at 18:50, Heinrich Schuchardt wrote: > > In the memory map the regions with the lowest addresses may be of type > EFI_RESERVED_TYPE. The reserved areas may be discontinuous relative to the > rest of the memory. So for calculating the maximum loading address for the > device tree