[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAOTY_-5M77vVXuSJiWJK5KVUFXg8m6u054z-CiwVhc1fheDtg@mail.gmail.com>
Date: Mon, 5 Oct 2020 23:12:17 +0800
From: Chun-Kuang Hu <chunkuang.hu@...nel.org>
To: Rob Herring <robh+dt@...nel.org>
Cc: Phil Chang <phil.chang@...iatek.com>,
DTML <devicetree@...r.kernel.org>,
Alix Wu <alix.wu@...iatek.com>,
YJ Chiang <yj.chiang@...iatek.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Joe Liu <joe.liu@...iatek.com>,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@...ts.infradead.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Frank Rowand <frowand.list@...il.com>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] [PATCH] of_reserved_mem: Increase the number of reserved regions
Hi, Rob:
Rob Herring <robh+dt@...nel.org> 於 2020年10月5日 週一 下午9:45寫道:
>
> On Sun, Oct 4, 2020 at 12:50 AM Phil Chang <phil.chang@...iatek.com> wrote:
> >
> > Certain SoCs need to support large amount of reserved memory
> > regions, especially to follow the GKI rules from Google.
> > In MTK new SoC requires more than 68 regions of reserved memory
> > for each IP's usage, such as load firmware to specific sapce,
>
> typo
>
> > so that need to reserve more regisions
>
> typo. Missing punctuation.
>
> >
> > Signed-off-by: Joe Liu <joe.liu@...iatek.com>
> > Signed-off-by: YJ Chiang <yj.chiang@...iatek.com>
> > Signed-off-by: Alix Wu <alix.wu@...iatek.com>
> > Signed-off-by: Phil Chang <phil.chang@...iatek.com>
> > ---
> > drivers/of/of_reserved_mem.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c
> > index 46b9371c8a33..595f0741dcef 100644
> > --- a/drivers/of/of_reserved_mem.c
> > +++ b/drivers/of/of_reserved_mem.c
> > @@ -22,7 +22,7 @@
> > #include <linux/slab.h>
> > #include <linux/memblock.h>
> >
> > -#define MAX_RESERVED_REGIONS 64
> > +#define MAX_RESERVED_REGIONS 128
>
> At some point, this starts to feel like abuse of reserved regions.
> Please provide details on what the regions are.
>
> Also, this probably just needs to be dynamic. I think we're at that point.
How about using a config like DRM_FBDEV_OVERALLOC [1] ?
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/Kconfig?h=v5.9-rc8#n125
Regards,
Chun-Kuang.
>
> Rob
>
> _______________________________________________
> Linux-mediatek mailing list
> Linux-mediatek@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-mediatek
Powered by blists - more mailing lists