diff mbox

[U-Boot,01/10] x86: chromebook_link: Expand early malloc() memory

Message ID 1441756374-6762-2-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Sept. 8, 2015, 11:52 p.m. UTC
Now that PCI bridges are probed before relocation we need additional memory.
Each PCI bridge takes 240 bytes at present since it uses the same uclass as
the PCI controller. Probably we should split this out so that bridges have
their own uclass.

Expand the memory on link so that it works correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 configs/chromebook_link_defconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Bin Meng Sept. 14, 2015, 12:15 p.m. UTC | #1
On Wed, Sep 9, 2015 at 7:52 AM, Simon Glass <sjg@chromium.org> wrote:
> Now that PCI bridges are probed before relocation we need additional memory.
> Each PCI bridge takes 240 bytes at present since it uses the same uclass as
> the PCI controller. Probably we should split this out so that bridges have
> their own uclass.
>
> Expand the memory on link so that it works correctly.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  configs/chromebook_link_defconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configs/chromebook_link_defconfig b/configs/chromebook_link_defconfig
> index 9855736..b3ae925 100644
> --- a/configs/chromebook_link_defconfig
> +++ b/configs/chromebook_link_defconfig
> @@ -1,4 +1,5 @@
>  CONFIG_X86=y
> +CONFIG_SYS_MALLOC_F_LEN=0x1800
>  CONFIG_VENDOR_GOOGLE=y
>  CONFIG_DEFAULT_DEVICE_TREE="chromebook_link"
>  CONFIG_TARGET_CHROMEBOOK_LINK=y
> --

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Simon Glass Sept. 29, 2015, 4:27 a.m. UTC | #2
On 14 September 2015 at 06:15, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Wed, Sep 9, 2015 at 7:52 AM, Simon Glass <sjg@chromium.org> wrote:
> > Now that PCI bridges are probed before relocation we need additional memory.
> > Each PCI bridge takes 240 bytes at present since it uses the same uclass as
> > the PCI controller. Probably we should split this out so that bridges have
> > their own uclass.
> >
> > Expand the memory on link so that it works correctly.
> >
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > ---
> >
> >  configs/chromebook_link_defconfig | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/configs/chromebook_link_defconfig b/configs/chromebook_link_defconfig
> > index 9855736..b3ae925 100644
> > --- a/configs/chromebook_link_defconfig
> > +++ b/configs/chromebook_link_defconfig
> > @@ -1,4 +1,5 @@
> >  CONFIG_X86=y
> > +CONFIG_SYS_MALLOC_F_LEN=0x1800
> >  CONFIG_VENDOR_GOOGLE=y
> >  CONFIG_DEFAULT_DEVICE_TREE="chromebook_link"
> >  CONFIG_TARGET_CHROMEBOOK_LINK=y
> > --
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot-x86.
diff mbox

Patch

diff --git a/configs/chromebook_link_defconfig b/configs/chromebook_link_defconfig
index 9855736..b3ae925 100644
--- a/configs/chromebook_link_defconfig
+++ b/configs/chromebook_link_defconfig
@@ -1,4 +1,5 @@ 
 CONFIG_X86=y
+CONFIG_SYS_MALLOC_F_LEN=0x1800
 CONFIG_VENDOR_GOOGLE=y
 CONFIG_DEFAULT_DEVICE_TREE="chromebook_link"
 CONFIG_TARGET_CHROMEBOOK_LINK=y