Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1283261pxb; Thu, 15 Apr 2021 20:06:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjV/s8oqtR+ldHRzQUutbqvQzrjNXTSRlBkdEnwQsmaENO9sG0iw7lSzgEAJmQ9VmAw2XT X-Received: by 2002:a17:902:7c88:b029:e6:f006:f8e5 with SMTP id y8-20020a1709027c88b02900e6f006f8e5mr7485541pll.1.1618542383845; Thu, 15 Apr 2021 20:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618542383; cv=none; d=google.com; s=arc-20160816; b=pMWTX+Zueay3h+AYK0kvGJNXmFePvu9nmX7lA2B9yNyEMVlp0kh0+1sXuvwXf+0lwf tP+H4abtlW8U0NpueERkd4E1wjls7mcIBXk28wJ792jRVDNGEYE4iX+8SCul0F3auFZM FyWQRHVSgXiXzFDf96N8qb9UTcm/FKmXyBFGLsL5uSnzjp4FqX4HnXcvc/9j/tmcVd5C 7k0qikQ+lxQDyGuU833SpOobRHWfpVSFxyLlirAa/U41ebrgd7O0PwnQTjrp9B4QWjDG auqGgcl+NfYEQO/bUryg7kJvE1aM/Kw+SOH61L13ZjF82hS0BQeHG9/XKkPruSoGmzAb P1sw== 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=Q26+v9m6OHwgu5yJO9W58aHk+91HmRzWJqWAxjmAjYg=; b=LFe8p3KDE4eTigCVEZZ0naihGkPvUCrX0Bm9l2V1AocT0f5feXHgxdZ4xj3xhY9x83 +y0+ORwIXcCJiIxB+qaze+nJovpt+KBpt8GhbIQRcwBQz6kX5V/+9HUI49EDRXW+3qdo KBM2Rry6EFpK2FPxiQoGS9Ly6mnjaGi4qO5cxYOwIoXR8mEmxIj8yqgwMFGKs+vsxZHr adRAgu4m3p9LUtI9ADVg8QwOLYoJibIIhdRrrvfk2ZWyjJilLpUswJpC2pq9wldqncQs j8oKAcEcIumT6XcEax/+yqnaeuzjC8YWObDxt5i27lRZYuA99w6U0o4jMlyIbNa4rnpN H4cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=Eyr7g0DX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si4711377plc.413.2021.04.15.20.06.02; Thu, 15 Apr 2021 20:06:23 -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=@jms.id.au header.s=google header.b=Eyr7g0DX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236990AbhDPDED (ORCPT + 99 others); Thu, 15 Apr 2021 23:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234751AbhDPDEC (ORCPT ); Thu, 15 Apr 2021 23:04:02 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC918C061574; Thu, 15 Apr 2021 20:03:38 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id ef17so7140901qvb.0; Thu, 15 Apr 2021 20:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q26+v9m6OHwgu5yJO9W58aHk+91HmRzWJqWAxjmAjYg=; b=Eyr7g0DXodj0YWyiHAZQvIHMwU0PVbUa4XiJJaYRoMR1fz/x6N15b6AglJ/HyiI0Nw R53FNij7DbgHDMAwyiggIBuiiGvIobBsKLX9p/LP4Q190TKIKqJI3XntLvkiasHGB/GM OpjCvykQFFbeGC+W6jiisQeZIGpu6utfnPIcE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q26+v9m6OHwgu5yJO9W58aHk+91HmRzWJqWAxjmAjYg=; b=Yeb2/US8ViunPtpdvfbhB3WLugvYu33DAwkDDtRI+f3lNsasadx3jLyTk8DzYkoesP 5D7FsYsBHUH9h2SWuwGlXeTzoVKLqAPOI2Q/RrizWMDoFcMzntGNlWF8bJR9xTeKZw69 NiPUWlBzaOpG0KgOi4TebImNERGsmGrcXMJs01vBa4xN/TqcKuB/tyiQi9Zi9799Ez3N K3MwyemytLEDquEUquHNsF2KMj+u57szWwo3OZENsgtxKYGV19FnjBQXQo2v4qTiZkZX YWHpzgtY9TQabqwwy26UbyhXMXouga1l4tjdgLUBFwhERoWnc5lQt+ps4sZwoZxs9J5y mziQ== X-Gm-Message-State: AOAM53293J9lVLxVgJvhEOG/jm1banf0u2mHfCSG6LVF+5zC/Ls2YZiw LmFmW+cgFkbd7Bik+Wyl2gfd9LFfkCN4EjhU5fw= X-Received: by 2002:a0c:eb06:: with SMTP id j6mr6422476qvp.10.1618542218062; Thu, 15 Apr 2021 20:03:38 -0700 (PDT) MIME-Version: 1.0 References: <20210316085932.2601-1-troy_lee@aspeedtech.com> In-Reply-To: <20210316085932.2601-1-troy_lee@aspeedtech.com> From: Joel Stanley Date: Fri, 16 Apr 2021 03:03:25 +0000 Message-ID: Subject: Re: [PATCH v1] ARM: dts: Fix 64MiB OpenBMC flash layout and aspeed-ast2600-evb.dts To: Troy Lee Cc: John Wang , =?UTF-8?B?6YOB6Zu3?= , Rob Herring , Andrew Jeffery , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , leetroy@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Mar 2021 at 08:59, Troy Lee wrote: > > Aspeed AST2600 u-boot requires 600KiB+ flash space. Sharing the same > openbmc-flash-layout-64.dtsi requires to resize the flash partition. > > The updated flash layout as follows: > - u-boot: 896 KiB > - u-boot-env: 128 KiB > - kernel: 9MiB > - rofs: 32 MiB > - rwfs: 22 MiB Changing the 64MB layout will break the systems that are already using this layout. I'll get the Bytedance people to chime in, as theirs is the only system using this layout so far. John, Lei? > > Signed-off-by: Troy Lee > --- > arch/arm/boot/dts/aspeed-ast2600-evb.dts | 32 +------------------ > .../arm/boot/dts/openbmc-flash-layout-64.dtsi | 18 +++++------ > 2 files changed, 10 insertions(+), 40 deletions(-) > > diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts b/arch/arm/boot/dts/aspeed-ast2600-evb.dts > index 89be13197780..2cfae9cfed3a 100644 > --- a/arch/arm/boot/dts/aspeed-ast2600-evb.dts > +++ b/arch/arm/boot/dts/aspeed-ast2600-evb.dts > @@ -121,37 +121,7 @@ flash@0 { > m25p,fast-read; > label = "bmc"; > spi-max-frequency = <50000000>; > - > - partitions { > - compatible = "fixed-partitions"; > - #address-cells = <1>; > - #size-cells = <1>; > - > - u-boot@0 { > - reg = <0x0 0xe0000>; // 896KB > - label = "u-boot"; > - }; > - > - u-boot-env@e0000 { > - reg = <0xe0000 0x20000>; // 128KB > - label = "u-boot-env"; > - }; > - > - kernel@100000 { > - reg = <0x100000 0x900000>; // 9MB > - label = "kernel"; > - }; > - > - rofs@a00000 { > - reg = <0xa00000 0x2000000>; // 32MB > - label = "rofs"; > - }; > - > - rwfs@6000000 { > - reg = <0x2a00000 0x1600000>; // 22MB > - label = "rwfs"; > - }; > - }; > +#include "openbmc-flash-layout-64.dtsi" > }; > }; > > diff --git a/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi b/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi > index 91163867be34..31f59de5190b 100644 > --- a/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi > +++ b/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi > @@ -9,27 +9,27 @@ partitions { > #size-cells = <1>; > > u-boot@0 { > - reg = <0x0 0x60000>; // 384KB > + reg = <0x0 0xe0000>; // 896KB > label = "u-boot"; > }; > > - u-boot-env@60000 { > - reg = <0x60000 0x20000>; // 128KB > + u-boot-env@e0000 { > + reg = <0xe0000 0x20000>; // 128KB > label = "u-boot-env"; > }; > > - kernel@80000 { > - reg = <0x80000 0x500000>; // 5MB > + kernel@100000 { > + reg = <0x100000 0x900000>; // 9MB > label = "kernel"; > }; > > - rofs@580000 { > - reg = <0x580000 0x2a80000>; // 42.5MB > + rofs@a00000 { > + reg = <0xa00000 0x2000000>; // 32MB > label = "rofs"; > }; > > - rwfs@3000000 { > - reg = <0x3000000 0x1000000>; // 16MB > + rwfs@6000000 { > + reg = <0x2a00000 0x1600000>; // 22MB > label = "rwfs"; > }; > }; > -- > 2.25.1 >