Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2618616pxk; Sun, 4 Oct 2020 06:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhLWbkXRhS6xHBrJz1uveHf+OOicai/oomRZ1thWf+WAA4I2ssIa8DFOgW+C1QMGLXtwuy X-Received: by 2002:a05:6402:1612:: with SMTP id f18mr12142434edv.166.1601816820948; Sun, 04 Oct 2020 06:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601816820; cv=none; d=google.com; s=arc-20160816; b=U7TCNJhgRSVQ1pdFfDawBcIivQc8UgDo4ekzzWgzMVhE+ayseJRbibYKj9ZN9j4nTl W5IlqipmGtso3QLfeZlMG5jsHJrPAf535kN+LMLpdLxzpKkkSdeElphM3ns0zqNFFLmP Yt79qbujEuKZ+J19m49w+61KIkqSG0Fyt2y0JfDgmqD5Y4SThlbBWKkbh+5k2lG46L4m p2n+ODBn4v4OhWOfod/HH92dGDER/6vEZvsDOF5LxQl4Eqwu/4HlhyOgBmAKAyDC1top ehIsnfwwLbWNEuspBS4TBiDjCFLhHWIZSXnIXShVITMG5xXGDbHSbwFh4aOUzszD4o9U Z9HQ== 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=Dm2druQ3nhibUexprrBUzgmvHo7P3kY/GdaueiKG94M=; b=03GTNRqIViGL8IAiuqf41Z5v+E7ewPzszEGVT8qt8REgek7QEz0GeVa6MYs6d1JVNv OS01NATDTahKA4fl3EyBaqjTbwm8DCdhwy4KKvGj41aPomOtWvPbvbSqWq0evHURUWFl emw2+32PGluWV++o2er6nRZLi4cVp7l9cXmOR7Ez1rWLzOuFdvbUPVkdNQVG44GAqd9O mUMFg2UfsfSAzQzKvdnDzuju+lzu4qDkEFxM59Nk5E7fvkvi+iidfsUJ3R79RhqxPq3n vngwvoqxr1tYypN4QuIQtyX/BrntqlN3Kpaz6JDWPDMw1itbmtqN6gL3EG5PcWFH3kb5 jInA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S75llJuX; 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 v1si4901573ejw.413.2020.10.04.06.06.36; Sun, 04 Oct 2020 06:07: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=S75llJuX; 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 S1726064AbgJDNFY (ORCPT + 99 others); Sun, 4 Oct 2020 09:05:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgJDNFY (ORCPT ); Sun, 4 Oct 2020 09:05:24 -0400 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 32F1C206C1; Sun, 4 Oct 2020 13:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601816723; bh=b3VJELJHxJ+kqWcCs/bmj4n7ROvR4MBKkbSqU/Xk2ng=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=S75llJuXkVhNsHZ9NWtMK4on87LqyYF/Iol5MUK9nXxATt9zimtt+R0/1e5tJxb6A tUy7MhK5MtGrRV39paO+SOjzompHmL7LJgBbSP13hCTaaGEmuOqpa+TOkwgY3mDQp8 mJOHw1f0cHu1kYjM5SOBqDoZpTnWJK42au+cEfAo= Received: by mail-ed1-f45.google.com with SMTP id w1so6580461edr.3; Sun, 04 Oct 2020 06:05:23 -0700 (PDT) X-Gm-Message-State: AOAM533gzDEFEtTIiH1sTQ1NMuhOmdjKtbuECpMX3HPp5YC3fUdJj1Pp 0DMeknFOkmDnjzm/bOd3N/YXyF6ZkAaEatOv+g== X-Received: by 2002:a05:6402:c12:: with SMTP id co18mr12243824edb.162.1601816721815; Sun, 04 Oct 2020 06:05:21 -0700 (PDT) MIME-Version: 1.0 References: <20201004055024.23542-1-phil.chang@mediatek.com> In-Reply-To: <20201004055024.23542-1-phil.chang@mediatek.com> From: Chun-Kuang Hu Date: Sun, 4 Oct 2020 21:05:11 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [PATCH] of_reserved_mem: Increase the number of reserved regions To: Phil Chang Cc: Linux ARM , DTML , Alix Wu , YJ Chiang , linux-kernel , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Joe Liu , Frank Rowand 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, Phil: Phil Chang =E6=96=BC 2020=E5=B9=B410=E6=9C=884=E6= =97=A5 =E9=80=B1=E6=97=A5 =E4=B8=8B=E5=8D=881:51=E5=AF=AB=E9=81=93=EF=BC=9A > > 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, space > so that need to reserve more regisions regions. I guess this requirement is from Mediatek SoC, but I find below device tree and just find one reserved memory region, arch/arm64/boot/dts/mediatek/mt7622.dtsi arch/arm64/boot/dts/mediatek/mt8173.dtsi arch/arm64/boot/dts/mediatek/mt8516.dtsi Could you show me the 68 regions? Regards, Chun-Kuang. > > 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 > static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; > static int reserved_mem_count; > > -- > 2.18.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek