Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2610489ybt; Mon, 22 Jun 2020 02:46:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+hHTmL0PNiF9USMf3UifEPu7T/ydchLMZR+QZeLq+swXf79HmjBnc35H4WVTWqYRyJCcK X-Received: by 2002:aa7:d290:: with SMTP id w16mr16341302edq.178.1592819219775; Mon, 22 Jun 2020 02:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592819219; cv=none; d=google.com; s=arc-20160816; b=ZmKqVLso61aTjGFaRyD12FsdEJI/ltT7I5kIhfk/GmcDxkHKy0FlOfRm66Aify4aFN JGkmP7LmebZkz/Gx2ljurxvUePQlkYLufKVr/dL9kPHPKNHURP7zbSr/0EPPKy32klUG Lg1sc82cXivnXTu6qkJkxXa4QtpluFTdrI/yBN6co80WI4ZXojQGJWTP3EIlRstha7jM mWJ5WAPkXaKCJ1l6fgequz0mczDR0NOE5hhS6gzdQLI1ZHfDYokwSVCjWTZkrjk9z6WD MKwxpmcZmzCKU5xiRr+zZfg4p0OYMnRUP78GakzLC5dom5KsjXPTsUm6BUj6VxErzNsY XzvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YI2nw0mNI94L8GQ8zEqjdoksfPjd/S2Bt4JnpqWFuBo=; b=c9Atq1oGL1K7K8nYE1V5oMt+/pMlCGk9onaIVzjAzKrRuO9NX8ojD07+z3U0m1rW0U 7j0kf3iKjZ2Can9A22lUSxR6h9XKXnvS3HU18CtYdecx5/kQjha4xagS+ZNk/yO+Eb1a xz+by6jdE5gbj+tsMXa9EsWylpZ7ArgkK5tr4nMnOoH4DrneHw1Kql2/KoK7p7p6FXU9 9+x9t28BkUPNz4pyACB2CFoW/kZbyWTnKzrKEWFA8qJpBNO089aICn0e4bMshurAZ5j8 CHya+/dCk76g2vEFB7lDjYZ4Mcz/Yl9CTG8rvlaYzmQ5eUOKrF5KNWHByG8bXVx51LR7 iUoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wNN7DU7r; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oy12si8744520ejb.654.2020.06.22.02.46.37; Mon, 22 Jun 2020 02:46:59 -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=@kernel.org header.s=default header.b=wNN7DU7r; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727887AbgFVJmY (ORCPT + 99 others); Mon, 22 Jun 2020 05:42:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:58116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727859AbgFVJmQ (ORCPT ); Mon, 22 Jun 2020 05:42:16 -0400 Received: from localhost (unknown [171.61.66.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1FB542071A; Mon, 22 Jun 2020 09:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592818936; bh=MbsvdPgrWbZFnywGQTAx5D+GLS+v+EoIPRCjcMAjK9E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wNN7DU7rpU4DBzaiaGjxvy9Z2HbsaUZpOQkCDtdcuL2yBxW9K2UBJljwsmKzAMH8n 79MWnAaVdzTJKqPUbmN9H1rd9D3FNWM2SS0dL17do4nfvIUwrgG+8cDGxU8fF/huWH RNuMYAlhw5GCMtSWkspgbq1KhxyQREoSPItmyKvM= Date: Mon, 22 Jun 2020 15:12:09 +0530 From: Vinod Koul To: Federico Vaga Cc: Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: DMA Engine: Transfer From Userspace Message-ID: <20200622094209.GH2324254@vkoul-mobl> References: <5614531.lOV4Wx5bFT@harkonnen> <20200622092553.pvspklv5suu6rm7w@cwe-513-vol689.cern.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622092553.pvspklv5suu6rm7w@cwe-513-vol689.cern.ch> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-06-20, 11:25, Federico Vaga wrote: > On Sat, Jun 20, 2020 at 12:47:16AM +0200, Federico Vaga wrote: > > Hello, > > > > is there the possibility of using a DMA engine channel from userspace? > > > > Something like: > > - configure DMA using ioctl() (or whatever configuration mechanism) > > - read() or write() to trigger the transfer > > Let me add one more question related to my case. The dmatest module does not > perform tests on SLAVEs. why? For slaves, we need some driver to do the peripheral configuration, dmatest cannot do that and is suited for memcpy operations Thanks -- ~Vinod