Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3378602pxk; Mon, 5 Oct 2020 08:15:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhiUND3PyE07d0ZNz6nUdTuA/a/vgtS8Eb/WZz4KC+JJKmognRitiXfuq8cbBmTz3VF6Rl X-Received: by 2002:a17:906:3ed0:: with SMTP id d16mr151957ejj.477.1601910900472; Mon, 05 Oct 2020 08:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601910900; cv=none; d=google.com; s=arc-20160816; b=zs8wQChxFDeX9ww5RTycfGbaUgUawPmlizpK7Q8Hue/0HpLKjp8k5tRYw1Oc1io7en s2ND4qLBlHVxn8R/KfewfbMpM78OtNXhDwl5xfjOlPfkh9YqX0rbbp3u/jWejc3SJwwJ yYd/xtauzH2/yO2Jv62709iEjrNTY/tGFk8waEZOYr5avgGHi5tw0VtXXfuZejCgMUH8 8iVcvAWfx/UXxkeszgMbZBBg5MnNpH7k54OnBoDpMmVdhhJy9fIvFF/Pba5qO+EOU5Wx lLE2ZoKkScxVvq9D5f6f01C2vJ2u9SQCJjPKVQh+C6t/28qgigaYiwVZIxTMqZ2utc/A 0jVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qUxU1GpDNOpxXYI+EDwk4BTWmsmWZE3sMs6PWEg2pdY=; b=nd3c+SKSVm5zXef2ph40Z1mEF6rmgcQiBPTFJd9ENr1ehjAdqxpVaNkIuHXX48rFpK /92MZiE8avVENYk7rcf/Q7dd+O4SmkTmmUL5se7/vyNFkD8DmCCZFMAGFHw9JjIpt2Xs u/rxCUItsUAHCw0hIf5yocht4ogncLiNSVJt/cPa5x1KBdnCBVEXPfmSnzBbZhsAWaV6 zVq49s3IBIWyp55tTmaJMBjqdw0Dqpm8rs/JGOGrENr/n+lF2P3K9+wOml0cXyzYuM+l wpWlVB75tFxTL9KIwq1pHcvG+MqyaGRuP1alFi3cbQWrlNEuZ56qadSI5ygkY4aLl2LD 1eKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nM7wmTlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si7009639ejm.293.2020.10.05.08.14.37; Mon, 05 Oct 2020 08:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nM7wmTlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbgJEPMd (ORCPT + 99 others); Mon, 5 Oct 2020 11:12:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:42620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726753AbgJEPMd (ORCPT ); Mon, 5 Oct 2020 11:12:33 -0400 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBAB320874; Mon, 5 Oct 2020 15:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601910750; bh=OTdYwMEyL+J44FhDFfQgzJZxz6q76bc6Lh6jwKmwS5g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nM7wmTlTuX8R6hHGqmal6NH3CaoOeFSQp8Aib7IWXtH2mBaqcaLd++9AwOC4SH3K8 4fgb3X0TKzhJsFs+FrE50DinNtT/KbsYnShjJxhWAigmLKLS+BgGuAMzOgodQ7NX84 dIAQsN+xG4L2W75I1bwD6AmzaOtU/KNMD28jjDI4= Received: by mail-ej1-f41.google.com with SMTP id a3so12487574ejy.11; Mon, 05 Oct 2020 08:12:29 -0700 (PDT) X-Gm-Message-State: AOAM5302AhgBSEDbGfr4D9/FAYN7j+SsBbxybQ05dZM+x93Up5QB6Y5b yjNen7KlYKf9Q5bcMvhaqGxQu0VcvWYrckZl6g== X-Received: by 2002:a17:906:3b8e:: with SMTP id u14mr162034ejf.127.1601910748378; Mon, 05 Oct 2020 08:12:28 -0700 (PDT) MIME-Version: 1.0 References: <20201004055024.23542-1-phil.chang@mediatek.com> In-Reply-To: From: Chun-Kuang Hu Date: Mon, 5 Oct 2020 23:12:17 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [PATCH] of_reserved_mem: Increase the number of reserved regions To: Rob Herring Cc: Phil Chang , DTML , Alix Wu , YJ Chiang , "linux-kernel@vger.kernel.org" , Joe Liu , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Frank Rowand , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Rob: Rob Herring =E6=96=BC 2020=E5=B9=B410=E6=9C=885=E6=97= =A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=889:45=E5=AF=AB=E9=81=93=EF=BC=9A > > On Sun, Oct 4, 2020 at 12:50 AM Phil Chang wrot= e: > > > > 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 > > Signed-off-by: YJ Chiang > > Signed-off-by: Alix Wu > > Signed-off-by: Phil Chang > > --- > > 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 > > #include > > > > -#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=3Dv5.9-rc8#n125 Regards, Chun-Kuang. > > Rob > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek