Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1231611pxb; Wed, 10 Feb 2021 03:32:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxH1fNpghxyztLXGqYANLoth2rDjpl7ciaWhCSZWAznc/JDCJ49jxWoDYklpxQoOY8BqQ3H X-Received: by 2002:a17:906:2e85:: with SMTP id o5mr2449764eji.238.1612956760014; Wed, 10 Feb 2021 03:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612956760; cv=none; d=google.com; s=arc-20160816; b=lzG3zGcvlLVT05hmDS5sz4qLlqte0qSw5OgOuMJb9m5zS1U+KHikeH9OXTV1AYjit0 T1rAD5gNRsB3MDN2eIIIS+QsLr6NXEjKLgAsRK38zrAlDgMvXE2jtv8IoUH9SwFLoxr3 blao+/drxnBu5AqwolyMKwQA3rGHtIoSdqaTYz0ASwp8aCZYPCd6TMZJss8hbfgSZ1kP T+deKufaE5FXXtptKezIAVkfcI5HOM+zi/gWCsIGNI1LoUDl/KeiRfHDjBTwM+cu7ktH bv2i9dWu7a88EPnm38k5Is8ExO3OoAzeCS4QbTzUr34PgTIe2ihB+IBDEPhu0OgNIuHp G1fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=eq9v8yypNQ3gnLfT0O5uIQbLy5O0mjsGlyENCQt6J5A=; b=ozBD/LEriNnPF/eSjEsVxsEBV59qkZAjY0AAPyzKwahvl+zc4lPgvbYs4ZfWKV1AfQ /LEkByZ+kpcTI1aOCgxT/BSNhxBTCUT2mIcq7uP+RVGktblYSuIbrW7/iph3m9419g0j eiMyT1nSThwKJ8jD2S6cuZLpO/jyguMbvdzcBl7+28pwsBvumXmbEc3wuJmX9zQ7/BFA 81W5o39vDy/mWtn2nrCLix52BssRk+zIESauFNFgRRAJfdFxshCYxGaJfhcIFcTlzSdW EzJ8o44GczJxcChvCiXokwKn0y1cjb66dFRdDjPSFFDRKxZC1IBMnp1vorg/UgqKkaPo QbIA== 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 q23si1050543ejx.29.2021.02.10.03.32.16; Wed, 10 Feb 2021 03:32:40 -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 S230148AbhBJLbf convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Feb 2021 06:31:35 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:59474 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbhBJLYj (ORCPT ); Wed, 10 Feb 2021 06:24:39 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9C6FF6083270; Wed, 10 Feb 2021 12:23:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KtIL8SOfiiUt; Wed, 10 Feb 2021 12:23:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 42FF06083272; Wed, 10 Feb 2021 12:23:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CXmfs8niWTKH; Wed, 10 Feb 2021 12:23:54 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 1BDFA6083270; Wed, 10 Feb 2021 12:23:54 +0100 (CET) Date: Wed, 10 Feb 2021 12:23:53 +0100 (CET) From: Richard Weinberger To: Miquel Raynal Cc: Miklos Szeredi , Vignesh Raghavendra , Boris Brezillon , Ron Minnich , sven , linux-kernel , linux-mtd , fuse-devel Message-ID: <1183985773.380599.1612956233979.JavaMail.zimbra@nod.at> In-Reply-To: <20210210121429.4fb5ecf3@xps13> References: <20210124232007.21639-1-richard@nod.at> <1507208626.379155.1612906761549.JavaMail.zimbra@nod.at> <20210210121429.4fb5ecf3@xps13> Subject: Re: [PATCH 0/8] MUSE: Userspace backed MTD v3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF78 (Linux)/8.8.12_GA_3809) Thread-Topic: MUSE: Userspace backed MTD v3 Thread-Index: +AWqGsxtpMS2g3tZtveYZHMCEixznQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miquel, ----- Ursprüngliche Mail ----- >> Does in-band and OOB data need to be handled together? > > Short answer: yes. > >> If so, then two requests is not a good option. > > More detailed answer: > > There is a type of MTD device (NAND devices) which are composed, for > each page, of X in-band bytes plus Y out-of-band metadata bytes. > > Accessing either the in-band data, or the out-of-band data, or both at > the same time are all valid use cases. > > * Read operation details: > From a hardware point of view, the out-of-band data is (almost) > always retrieved when the in-band data is read because it contains > meta-data used to correct eventual bitflips. In this case, if both > areas are requested, it is highly non-efficient to do two requests, > that's why the MTD core allows to do both at the same time. > * Write operation details: > Even worse, in the write case, you *must* write both at the same > time. It is physically impossible to do one after the other (still > with actual hardware, of course). > > That is why it is preferable that MUSE will be able to access both in > a single request. By single request we meant FUSE op-codes. The NAND simulator in Userspace will see just one call. My plan is to abstract it in libfuse. Thanks, //richard