Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp878007pxb; Thu, 28 Jan 2021 02:32:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxobY/6XE/yOw1pwO73bPUskYqh3OA0W5fJ86hN+ExW+jWiiNPhEI2iwwYyNW0CS/PFfLmV X-Received: by 2002:aa7:cf94:: with SMTP id z20mr13253285edx.75.1611829978689; Thu, 28 Jan 2021 02:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611829978; cv=none; d=google.com; s=arc-20160816; b=tGxmEyeBORhHjIQi48HVAWZidKfMtibUT+L7E7nOsf0XKQohxH8sgsOugN9W4aJ1LZ 9DIxaQNezE6O+P4JF2nlRht8lL+Ixe8hZkTXMsGM1Gavxrg7li8nVMOR++5xm+bwDx/7 /UtYgs8B9hIWYYWlIzvHVVIh2IYX4UbDe4fy5PVFVM7uzcoq64FQufFajc3x09a3mYVX d7LNvrnD9Iv4+k0WYXVfvC87KXwpq2Wjb0qDveJC5B90Lim2iWwJ3NwlVL8w2UJPen6n CzBORXMPeIs+IXbaS+7MPgaFOTbo5OJLaHnmhrgmYrXitszH+RKRJb6g/xwAtxDJpCjG Oe7g== 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; bh=FVwRBuqa2McUcytlEpqhYc35P8MiWMTq6KNblBPtZWw=; b=vf+f0LSnzmePV0yiZXnK0djYhdAHHL4yvXLUm5LMjhqnUEVBc2e4lrCsb612Mp6xij 7HG8NdueSuBfXBKqG4pVEiZC6HKHAsc2Dbnj8eMziZitearFaAc6G5z3REm+KfXWtP8Q asPHqjo51xvIvr8MrbyLUHgJbcZY10TvdNQw7KKVEZQKccyOWAe7NsiTksFVU+wlOGeq vYaui6F9XQ88foXHVOsbg/14eNiPvrNZHdf9rHO+ZFw+SgCIugSDq4vrrwHJteSC+UXA ICBudxyTmV5CqSB1alAjl5DgXky3eHhFjEIdUGz3S6xsIjlV92aNaM2umEaYibV/+POX pdhQ== ARC-Authentication-Results: i=1; mx.google.com; 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 e13si2424049edz.214.2021.01.28.02.32.33; Thu, 28 Jan 2021 02:32:58 -0800 (PST) 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; 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 S231639AbhA1KbV convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 Jan 2021 05:31:21 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:38335 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbhA1KbR (ORCPT ); Thu, 28 Jan 2021 05:31:17 -0500 Received: from xps13 (lfbn-tou-1-972-150.w86-210.abo.wanadoo.fr [86.210.203.150]) (Authenticated sender: miquel.raynal@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 9520110000F; Thu, 28 Jan 2021 10:30:27 +0000 (UTC) Date: Thu, 28 Jan 2021 11:30:26 +0100 From: Miquel Raynal To: Richard Weinberger Cc: miklos@szeredi.hu, vigneshr@ti.com, boris.brezillon@collabora.com, rminnich@google.com, sven@narfation.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, fuse-devel@lists.sourceforge.net Subject: Re: [PATCH 0/8] MUSE: Userspace backed MTD v3 Message-ID: <20210128113026.094b07b0@xps13> In-Reply-To: <20210124232007.21639-1-richard@nod.at> References: <20210124232007.21639-1-richard@nod.at> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, Richard Weinberger wrote on Mon, 25 Jan 2021 00:19:59 +0100: > I'm happy to announce the first non-RFC version of this patch set. > Over the xmas holidays I found some time to experiment with various userspace > implementations of MTDs and gave the kernel side more fine-tuning. > > Rationale: > ---------- > > When working with flash devices a common task is emulating them to run various > tests or inspect dumps from real hardware. To achieve that we have plenty of > emulators in the MTD subsystem: mtdram, block2mtd, nandsim. > > Each of them implements an ad-hoc MTD and have various drawbacks. > Over the last years some developers tried to extend them but these attempts > often got rejected because they added just more adhoc feature instead of > addressing overall problems. > > MUSE is a novel approach to address the need of advanced MTD emulators. > Advanced means in this context supporting different (vendor specific) image > formats, different ways for fault injection (fuzzing) and recoding/replaying > IOs to emulate power cuts. > > The core goal of MUSE is having the complexity on the userspace side and > only a small MTD driver in kernelspace. > While playing with different approaches I realized that FUSE offers everything > we need. So MUSE is a little like CUSE except that it does not implement a > bare character device but an MTD. I can't tell if your MUSE implementation is right but it looks fine on the MTD side. This is following the right path, I look forward to merging it soon! Thanks for your contribution, Miquèl