DMA Engine development
 help / color / mirror / Atom feed
From: Hinko Kocevar <Hinko.Kocevar@ess.eu>
To: Lizhi Hou <lizhi.hou@amd.com>,
	"brian.xu@amd.com" <brian.xu@amd.com>,
	"raj.kumar.rampelli@amd.com" <raj.kumar.rampelli@amd.com>
Cc: "dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>
Subject: Re: XDMA dmaengine driver implementation
Date: Fri, 12 Jan 2024 13:37:32 +0000	[thread overview]
Message-ID: <339a8de97f404e169eb5cda9576624bc@ess.eu> (raw)
In-Reply-To: <05ff03b7-ed7c-f923-3c44-9c9d60760cbd@amd.com>

Hi Lizhi,

I found it and managed to reuse its DMA interface within the dma_ip_drivers xdma driver.

At the moment I've hacked the dma_ip_drivers xdma driver just enough that it is using the xdma dmaengine instead of most of the code in libxdma.c.

Thank,
//hinko
________________________________________
From: Lizhi Hou <lizhi.hou@amd.com>
Sent: Tuesday, January 9, 2024 5:42:13 PM
To: Hinko Kocevar; brian.xu@amd.com; raj.kumar.rampelli@amd.com
Cc: dmaengine@vger.kernel.org
Subject: Re: XDMA dmaengine driver implementation

Hi Hinko,

mgb4 driver which uses XDMA in mainline kernel. Please see:
https://github.com/torvalds/linux/blob/master/drivers/media/pci/mgb4/mgb4_core.c#L437

Thanks,

Lizhi

On 1/9/24 03:30, Hinko Kocevar wrote:
> Hi,
>
> here at ESS we are using https://github.com/Xilinx/dma_ip_drivers/tree/master/XDMA/linux-kernel kernel driver today with the micro TCA based data acquisition cards such as https://innovation.desy.de/technologies/microtca/boards/damc_fmc2zup/index_eng.html and https://www.struck.de/sis8300.html. The diver seems to be functioning just fine and it provides all the necessary software interfaces we desire.
>
> Looking at the https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/ I noticed that there is a lot of effort in getting the XDMA dmaengine accepted into mainline kernel. As far as I understand one would need to develop an additional driver that utilizes the XDMA dmaengine driver.
>
> Is there a reference implementation of a driver that uses XDMA dmaengine that is similar to the on in dma_ip_drivers github repo?
>
> Thank you in advance!
> //hinko
>
>
>
>
>
> Hinko Kocevar
>
> Beam Diagnostics Engineer
> European Spallation Source ERIC
> Odarslövsvägen 113, SE-224 84 Lund, Sweden
> E-mail: hinko.kocevar@ess.eu
>

      reply	other threads:[~2024-01-12 13:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 11:30 XDMA dmaengine driver implementation Hinko Kocevar
2024-01-09 16:42 ` Lizhi Hou
2024-01-12 13:37   ` Hinko Kocevar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=339a8de97f404e169eb5cda9576624bc@ess.eu \
    --to=hinko.kocevar@ess.eu \
    --cc=brian.xu@amd.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=lizhi.hou@amd.com \
    --cc=raj.kumar.rampelli@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox