Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1679906ybz; Thu, 16 Apr 2020 13:32:58 -0700 (PDT) X-Google-Smtp-Source: APiQypITrkUjbSUY5Mh2nOyOOse5AOMft1I2FoRRFMJSxQyso1ucaBe69LfqmRzZZ1U+Seedd+7V X-Received: by 2002:aa7:d745:: with SMTP id a5mr20148eds.43.1587069178139; Thu, 16 Apr 2020 13:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587069178; cv=none; d=google.com; s=arc-20160816; b=OBYaKKCcC8+ugHXOlT08CsrbXV+Db94caE4zVRnWcoGBaCgHdYxWk92eS6yqCMkddC 3P+5mRhP3uPNl1+CpVCH7fSQWTS8zu8PCbw+e598ZF/HuwjrQPdRFhoSAkgeKpGF7yVL kPuk2+NWfz1iJC3P1XZ2M0TxmKjiMo1dgtpuZZmgWLDylSxteyrEdCOZQGuiJH5qfwmc 6+tZtjKxAcdrnrXpx96GgOIYdUeh+4kUfJE86+xA6XZJkyfSaJSaLu+nqVpbP73d7I6A ruyrOF58NVwcCPHYkVH3MVyHSU4IAWEow8bxF5udGVGH1DSun0eMGvN+/jCyOClT2d8A zC2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ApXDAryjVZ1NhYOMhZ0mJPFGTTxjNrpKZ3hMH5Wk1rI=; b=wIyNZIWfV6DsaWcHiR8cl6pwhSSGjLqyomgoXVqrxThtqxqWiK6kY6tg5tGffjvp34 6axQdnOU/ZAgwKtYRK7iU7TuLfBsRfgD7RMmdH9uZovfvCyHXlG/B35aOWLXSkGgq/93 1GscV2PFvr2xTm5y8/njGhk6tqEVZLMTYUiJT6bKN/7WpfxLDjDCZbeZfSTYG0CuYAcR 8ASqbBB/PQCI/xTdH8VQzfeicJdZTywKgRgfXb/9JRMz3FwT4mKac0S3qqSidHDjQpPp zDIjeIpoqRqv/dMjkNkkd7urW2GRCl2CzKLlycBwBP69j3YOEXyU7rgxf9LpGEFy3cP4 ld/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kpXBeRuM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si3409515edp.353.2020.04.16.13.32.34; Thu, 16 Apr 2020 13:32:58 -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=@gmail.com header.s=20161025 header.b=kpXBeRuM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387865AbgDPOzg (ORCPT + 99 others); Thu, 16 Apr 2020 10:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387683AbgDPOzO (ORCPT ); Thu, 16 Apr 2020 10:55:14 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4303C061A0C for ; Thu, 16 Apr 2020 07:55:13 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id m14so16792680oic.0 for ; Thu, 16 Apr 2020 07:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ApXDAryjVZ1NhYOMhZ0mJPFGTTxjNrpKZ3hMH5Wk1rI=; b=kpXBeRuMgKb9LePzXmq5+Q2/HlepHeCz+xauCU2QEg6c2e/xDJcEUohgjmYjscEq1J XKWfkcaXqYCvVdTswUZjrfdAcu8Kcxm7Hpgxdwuw+TsstUrs8lJHeSWA1OvS6ZGmMueo WHEia2smDdJ3WMRRjy0tsJP47OYlOKiFxEPNMJOoKKOifDUiB7fT72vxt9O8YR2W4sxL 2YpZhvGh+Gu1yJXf9iA1Oj2Z4Ethgac1sdAND647J6BbqvIwoACZQDi9IKZkhRLblixF XfiFDU6+x3BDGPfNrEjWEXBOZ+ndTFzmE0U5E9NQl+TosuHwYdlqAFg/+rII+3Qs1M4Y NMRw== 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=ApXDAryjVZ1NhYOMhZ0mJPFGTTxjNrpKZ3hMH5Wk1rI=; b=fVfXiSSHyTyaYFZj7cahdQEY4T5ytm73dK3bgXjKpQ8HTQf/KCG9SS3fx3s+3Fm0Q7 opbUeWJpril9kBot1Lyzbveybg9cNVgx8230lac3yW3To5QxGV2xvQrYgxN3VAeNukY2 ZKxu07ZhoJV8D1th04Se/NSd0bDeD0pha1DF8QeEFZTkvxFYNM7q0n0pDIMXNqCOzZpC rahPPrRMrxic0uW44qxZ1EkY2E81jthTbQX3xhzcFTwNCLxjd3q0QjgSF1uQTqxOe+G+ dGhc/1Bg9B/6MWx5ysynUZSyLYrVVj22gjhEq4RsupU0vht2DkXdP4gO6kNaSDV1ydSV fcCg== X-Gm-Message-State: AGi0PuavwkTcY1rJVZAPbJqk05m7GrkYYKCGsOQv667k/UdCyC1MZ0Lw RPN6qoWBcALutjjcHhxNasEPWD6OdokRayP8/cg= X-Received: by 2002:aca:f1c6:: with SMTP id p189mr3237696oih.5.1587048913230; Thu, 16 Apr 2020 07:55:13 -0700 (PDT) MIME-Version: 1.0 References: <20200406160914.14698-1-rminnich@google.com> In-Reply-To: From: ron minnich Date: Thu, 16 Apr 2020 07:55:01 -0700 Message-ID: Subject: Re: [PATCH] mtd: parsers: Support '[]' for id in mtdparts To: Linus Walleij Cc: =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , Ronald Minnich , Richard Weinberger , Vignesh R , linux-mtd@lists.infradead.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 2:51 AM Linus Walleij wrote: > I suppose the use case is using PCI-based MTD devices for testing > something android images on desktops? I'm surprised it didn't > come up earlier. Thanks. In this case it's for systems that companies are deploying into their data centers, using linuxboot (linuxboot.org) and Intel chipsets. On Intel chipsets, there is a 64 MiB SPI part, but only 16 MiB is directly addressable. Linux goes in the memory-addressable part of the SPI, and UEFI loads it into RAM, since to UEFI the kernel is just another UEFI driver -- in fact in most cases we replace the UEFI shell with Linux. But we need a file system, and with the huge amount of drivers that come with UEFI there's not much room in the top 16M. (we're working to fix that glitch, a process we call DXE-ectomy, but it takes time). We wish to place a file system in the low 48 MiB -- lots of room there. So what one can do is put a squashfs-formatted file system in that low part of SPI, and, using this mtdparts capability, point the kernel at it ("root=/dev/mtd1 mtdparts=[a:b.c]etc.etc"). It's a lifesaver for those of us using u-root for our userland. ron