Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp601807pxb; Tue, 9 Feb 2021 08:07:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFnEwNP8AtCkke9VBKa257qZoNsJOkQVGEEM9fIXu8HtpMB5WefgTW7ZhlLCq8oxCXVYWd X-Received: by 2002:a17:907:d25:: with SMTP id gn37mr4034261ejc.303.1612886868225; Tue, 09 Feb 2021 08:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612886868; cv=none; d=google.com; s=arc-20160816; b=WXb0VN5ihImBZw+p25ILj+Mpji9llH5nv3EQThb5Ub8rvHX2bFGL2wqnn0MBmsndl0 eUU2//CtFHPbn3mUse5B3Pdpm9zQinJ0BixoLoVt/v/3O2UH2ceS+u98EeSTG2qjRZqP YgQBnTJseCb/MEDOy3YV8b8B2QDBS8Dtf+G0lZtKuZdzptCYuw7tq5oodDz4TvEELaDX +nejdPtQQpnwg6XerviRa7o5Xvl1Xo4iG52zGWKBc37G/59vx6L1wT9r3bKy2fE5+OO4 Fylv6iztMWj5PljhVFuV+gnP4Xzvd4Cbl1XNLmf4f+B6zjqkvgPWbZvOlo5F0yCjkalO ogaw== 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=8wGAmVLcnxNWcKKsYFqgeJLmks46YRBPPczKmZfte6w=; b=AGwDldz/PLNQA1VNWgHKR5ITB3OVdI3hoEQ9btiZ/1B5rUGFoiBhVzg4ySxYWqHVyh XQhXCFM5V1OGtwtY4ma6ZTuSu85PKlq6bzkiDwCM+edGngDp0uQwHizA+i82ON4s0EY8 p8SuILB5GP9dC3Pp/Mgq9WbvEcadSbq1LczayAQXYO3D2ofK5EhC8pGPYiezyMKSIjSM g8rexI/NxxXOjmsHulQDFMwQEXzAPWBRAfYJ0LywdLahRsFA+jxJzmIPjHSQWV9zfi3i M5DQckxN5PaP+1vQnxzQ1AkGJ+wcYsmOtaL26K0dy2Ffxav1VahZtyugefxC0dwAMPmj IiAw== 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 d16si14417433edy.432.2021.02.09.08.07.22; Tue, 09 Feb 2021 08:07:48 -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 S232693AbhBIQF3 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Feb 2021 11:05:29 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:43352 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232658AbhBIQF1 (ORCPT ); Tue, 9 Feb 2021 11:05:27 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id D8CA36083276; Tue, 9 Feb 2021 17:04:44 +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 pxadgr_i0awx; Tue, 9 Feb 2021 17:04:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 850A76083272; Tue, 9 Feb 2021 17:04:44 +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 5xN4CfVrl8hV; Tue, 9 Feb 2021 17:04:44 +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 5DDC3608A38F; Tue, 9 Feb 2021 17:04:44 +0100 (CET) Date: Tue, 9 Feb 2021 17:04:44 +0100 (CET) From: Richard Weinberger To: Luca Risolia Cc: Miklos Szeredi , Vignesh Raghavendra , fuse-devel , Miquel Raynal , linux-kernel , Boris Brezillon , linux-mtd , Ron Minnich , sven Message-ID: <1517729157.378701.1612886684264.JavaMail.zimbra@nod.at> In-Reply-To: References: <20210124232007.21639-1-richard@nod.at> <563952295.378372.1612881357746.JavaMail.zimbra@nod.at> <3a9c19cf-2c25-a3bf-a200-6d223952797a@studio.unibo.it> <443281182.378615.1612885278254.JavaMail.zimbra@nod.at> Subject: Re: [fuse-devel] [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: f2FpF8PjrUPpHHP0V+KyAUAhV15RfQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Ursprüngliche Mail ----- > for example, many existing video applications use mmap() to map the > device memory to userspace memory. Adding support for mmap() to CUSE > would allow these apps to work without any modifications with CUSE-based > device drivers other than kernel drivers. So you want to access device memory via CUSE? We have plenty of mechanisms in Linux to allow userspace accessing device memory. E.g. /dev/mem, UIO, VFIO. A simple (but ugly!) approach would be redirecting mmap() requests on CUSE devices to /dev/mem. hmm? Thanks, //richard