Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3756090rdh; Tue, 28 Nov 2023 03:05:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyBP9eT6NQJ6dEXCL4P2IOroW0mTIca6A2Oscj81jKbJDlMELl4L234mOQLM0lsBJvOCDY X-Received: by 2002:a05:6a20:144b:b0:18c:382e:48fe with SMTP id a11-20020a056a20144b00b0018c382e48femr12591675pzi.15.1701169551414; Tue, 28 Nov 2023 03:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701169551; cv=none; d=google.com; s=arc-20160816; b=tW0rQawRzFSKYBkEysHT1fe8w1ZsU2dESIrX83UjEle943yMbaI1OE2fjn77sVIrkg qtK6KRWZs2GLqi9WjHoKMPp1DUoQgzkOXCb60EwlPcfnjsUG3Q8FVSG0jGfu0UEvcv1o tLfm8mHhXLICf46RDmfa0/tdG4qXJZCrQ5bivJQ0U89rE8w3X0hmSQ6aCGsEedgSr3QW lji72ix8bvFcd6ot8HQWdUJMzpIDtIxY0d/2ZYPLjnIyb0WfNxc27Moy+kipEXIGMWRG gf8lNTc6aUF+/Zl29JAZ+lHTGFhXi4ywYGb+jtDbBv7akWkv0Gy71XBdOa5J2NeIZ3UI 9xqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=ALB/2PJEXwYVACiswllyZ9AnZktQ1Oe3z8KlIjb4z+c=; fh=l2xF5C+jyND95h3V8qycHJot2gvKwEmNVq4renvgekU=; b=WWuxkxuSVjkgKcQwZdG6Rb6KMkFm7hDszZZgnGx5QT4C+gnRvvMd4BKpli93V6H7uG suBoOBqTdWbAz1sMFo19jcQk0Jv2JdKxsSDqr2BDDzHEq+4/g4SEkLjYN0ozWxZB5VMJ GGWL70/JO8nuGLlSyy2yOI/S4/YlnFnLGBjzI78IkUKel483N5NKIqwwWY55rRT6ZW8U JFzqni/4bCtUO5PrbDl5IDrb8wHWJFGAyrXKuVZ/7+vQlaZRdmsPN/Wkrw5dUpauqSa1 CUmWwSIDbqHXjK7TQ2A4m5VAl9LuU0BRFIAO9PMmS08KaXPLKsRfg2Q1PgKz2fuRUlJo V5Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BPngda0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id i11-20020a17090a718b00b00280f5032e03si12066712pjk.133.2023.11.28.03.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BPngda0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 80DB58074CE7; Tue, 28 Nov 2023 03:05:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344604AbjK1LFF (ORCPT + 99 others); Tue, 28 Nov 2023 06:05:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344535AbjK1LEu (ORCPT ); Tue, 28 Nov 2023 06:04:50 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E595268D for ; Tue, 28 Nov 2023 03:04:30 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 17DFA1BF204; Tue, 28 Nov 2023 11:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701169468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ALB/2PJEXwYVACiswllyZ9AnZktQ1Oe3z8KlIjb4z+c=; b=BPngda0vE5ETpklq77sq1GUwPFNyctL1BJmAT/UCw/0l75QLzSRYcQZASa1txykwx9zeTj HPqac2Tr91WodiXNs9mjHoqa+ieBzoDLmMMlG8TbfDNhyCd+NjiKO2hljWG6hy/fQKZDLH rFNt4VM60CeXSretMtIn6snkbwFxZ4Z+XxS2wsFOCNBxEvxVzaFlOyF32F5VfASyXpXqIb BrSIY4FgH0mnwgxqDsb/FrFpplQLt7m17s9DeEEN1EDuPl0NAyNq1S+6uhRLdSROeM9r9v Chw9n1sOUSY6mH4A7mmMLe6xh92sRgajnG+DqETQDD5nJtPApmXdKRyMexYnDw== Date: Tue, 28 Nov 2023 12:04:24 +0100 From: Miquel Raynal To: Tudor Ambarus Cc: liao jaime , Michael Walle , jaimeliao@mxic.com.tw, pratyush@kernel.org, richard@nod.at, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: stop printing superfluous debug info Message-ID: <20231128120424.79f8f215@xps-13> In-Reply-To: <756aa94a-3237-4689-885a-1e17504e72b6@linaro.org> References: <20231127165908.1734951-1-tudor.ambarus@linaro.org> <42c96d63d1ea4f7e8f16a3c8eb0a4cf1@walle.cc> <20231128100313.3c990f69@xps-13> <18ba4126dbd9e49846344b517ad2fbdd@walle.cc> <756aa94a-3237-4689-885a-1e17504e72b6@linaro.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 28 Nov 2023 03:05:21 -0800 (PST) Hello, tudor.ambarus@linaro.org wrote on Tue, 28 Nov 2023 09:47:22 +0000: > On 11/28/23 09:39, Tudor Ambarus wrote: > >=20 > > cut > > =20 > >>>> Maybe we don't need this at all, as long as one message remains about > >>>> the JEDEC ID, but keep in mind that spi-nors are commonly storing the > >>>> rootfs and if your spi-nor does not boot you don't have a userspace = yet > >>>> and all the debugfs entries are purely useless. =20 > >>> > >>> Good point. > >>> > >>> Just curious, do you know any boards which has the rootfs writable on > >>> the spi-nor flash? =20 > >> I am also interested. > >> =20 > >=20 > > Having the rootfs stored on SPI NOR is a poor design decision as you're > > better of with a NAND, which is cheaper and faster on writes. I tried in > > the past a ubifs on top of a large (64 and 128MB) SPI NOR flash. But > > they were plug-able flashes, not something that is always tied to the > > board. Microchip's sama7g5ek comes with a 128MB macronix SPI NOR flash > > populated. But there are other vendors that provide large SPI NORs if > > really needed. > > =20 >=20 > pressed sent too soon :). What I wanted to say is that it's not uncommon > for vendors to populate large SPI NOR flashes, there are others as well, > thus Miquel's concerns are valid. There may be people out there having > rootfs on top of SPI NORs. I don't think it is a too bad approach to store a rootfs on a spi-nor, as long as your "regularly written" data files are somewhere else (otherwise it's fine, but slow). It's actually nice to keep your boot files and rootfs in a "safe" place whereas your app is stored somewhere else, so users can mess around: they will not break the system. Thanks, Miqu=C3=A8l