Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3314104pxk; Mon, 5 Oct 2020 06:48:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywLA6P+q7vWwlt9qjVlBeJiVVGATI3M6garXE018QEh9scGCGIIRjD4DFA/W/qHxwJcllr X-Received: by 2002:a50:9e49:: with SMTP id z67mr5981184ede.183.1601905726472; Mon, 05 Oct 2020 06:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601905726; cv=none; d=google.com; s=arc-20160816; b=FsJVZW3+G+L4PaQSMz87tRiZMTPqMworNRKO8tzTabBXz/y9Hs8w2iCyG+Lwj+Iu4U YUiOP8a6bLLkt7OO7JalIJfy9NPMzyO0WSYLgfHtPXIL+L81nlgZAGAL4aAq/4AgZ67K mX5yX5TBspKQvKCYF6KeC5ojg06gTcxujQLdfz8S7Oq6+zXkyx5GIal4S4ZZqsmF2Nm7 lE2wnmYp+Po8PzXmKpR/7PoEzEf6uCuOp4Gif4SxBDd2nQNyRdaTHmEXttYC3Y8co/QD cfk9HFLeAgA4bmEdomrXmsX0YkM7CYTo2U273VRj3uqA00gidwMMlfi/ERJ8Z5JMTZPL FtYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ffe3nOy6kXx3QC4n5VXxgpIWVqGBOUGFr2WxQitGWjg=; b=A8cfvM7aY1HBYDN8OMP8AGWuZTzz/3ih3RrXZFtq/4CWDYVIl1Hfeo2KE56+faOSMb Klg8GgbrTaBP2+Wsr9AG0D+ZepqgoW9WgK97qjbMvS0yOKZrnAkQelibYHJpFwI+93Sh LS6gxuqK9t7URLdcd6zskW6bLvdVFoEolPgXRWhwa1FTRKIYxpZ9we15DwQdeiMUDE8H zRafOWbUo80W6t//VFFCx+d43x80kPsE0KSLze8N/3MW55Yq+ZCRh7rF0DbufXuFtdub ZltDWmNPc5oaHIk0koOIsv6rzL3qdjsbn0+ruX5XWR5DXeM/tSxMEs+fAA11YLmcWmKG xtDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b7vdGNYe; 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 q2si7469874ejf.197.2020.10.05.06.48.23; Mon, 05 Oct 2020 06:48:46 -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=b7vdGNYe; 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 S1726197AbgJENoX (ORCPT + 99 others); Mon, 5 Oct 2020 09:44:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:44838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbgJENoX (ORCPT ); Mon, 5 Oct 2020 09:44:23 -0400 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 0C983207BC; Mon, 5 Oct 2020 13:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601905463; bh=Ib7GBdL7Wn9bocJo9NyhUcUy9MsfqzsQOqA6NxORkCs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=b7vdGNYeBNhV5kCPpU9VCAAr6jQnSqGyHEL3iKdrOKtJIBiqbytO9h3rUZX6d0zrG L2L0zizKezD2U3etwiBVc8DLLjWHXVlZ1pbobjbvzPTmXyxSrXST9oD/iWmykppjxk /csmwNNMjYPw1A1qPlX76PJGkaEkGnhAA9sxku3U= Received: by mail-oi1-f182.google.com with SMTP id u126so8706344oif.13; Mon, 05 Oct 2020 06:44:23 -0700 (PDT) X-Gm-Message-State: AOAM533E3PkQqQyPrROvDS3SapPUZP4QiLqE9JNH4fbv1Xzj+nySji+4 Rv86lWBr4fhBoW/JXV0jUnfYGBmXUbrHrNKdnA== X-Received: by 2002:aca:4c52:: with SMTP id z79mr9074939oia.147.1601905462390; Mon, 05 Oct 2020 06:44:22 -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: Rob Herring Date: Mon, 5 Oct 2020 08:44:11 -0500 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-kernel , Frank Rowand , Matthias Brugger , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/Mediatek SoC support" , YJ Chiang , Alix Wu , Joe Liu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 4, 2020 at 12:50 AM Phil Chang 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 > 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. Rob