From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1848C433DF for ; Mon, 22 Jun 2020 09:42:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE8E720720 for ; Mon, 22 Jun 2020 09:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592818947; bh=MbsvdPgrWbZFnywGQTAx5D+GLS+v+EoIPRCjcMAjK9E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=e/Cew7yOtlcxXI6eLjf8UvmQIEbZtma65JCgXSG0+Dbh1zV65UaB7beP8yzdt7w0O mky/DfNizX/aMKEhZw2v2vM5QGzfaZ0LVc3e55VSYso5xxz27DkirrPAyqr+1mha5U q4/0MosZR/JdN9LFKh4YqAvPU2nG+o7JvacrnZ0A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbgFVJm0 (ORCPT ); Mon, 22 Jun 2020 05:42:26 -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