<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/dma/ptdma/ptdma-dev.c, branch linux-6.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.3.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.3.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-01-19T13:29:34Z</updated>
<entry>
<title>ptdma: pt_core_execute_cmd() should use spinlock</title>
<updated>2023-01-19T13:29:34Z</updated>
<author>
<name>Eric Pilmore</name>
</author>
<published>2023-01-19T03:39:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95e5fda3b5f9ed8239b145da3fa01e641cf5d53c'/>
<id>urn:sha1:95e5fda3b5f9ed8239b145da3fa01e641cf5d53c</id>
<content type='text'>
The interrupt handler (pt_core_irq_handler()) of the ptdma
driver can be called from interrupt context. The code flow
in this function can lead down to pt_core_execute_cmd() which
will attempt to grab a mutex, which is not appropriate in
interrupt context and ultimately leads to a kernel panic.
The fix here changes this mutex to a spinlock, which has
been verified to resolve the issue.

Fixes: fa5d823b16a9 ("dmaengine: ptdma: Initial driver for the AMD PTDMA")
Signed-off-by: Eric Pilmore &lt;epilmore@gigaio.com&gt;
Link: https://lore.kernel.org/r/20230119033907.35071-1-epilmore@gigaio.com
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: PTDMA: support polled mode</title>
<updated>2022-04-20T11:08:19Z</updated>
<author>
<name>Ilya Novikov</name>
</author>
<published>2022-04-13T11:37:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d965068259d13fde49487b45064106d3d0c57a74'/>
<id>urn:sha1:d965068259d13fde49487b45064106d3d0c57a74</id>
<content type='text'>
If the DMA_PREP_INTERRUPT flag is not provided, run in polled mode,
which significantly improves IOPS: more than twice on chunks &lt; 4K.

Signed-off-by: Ilya Novikov &lt;i.m.novikov@yadro.com&gt;
Link: https://lore.kernel.org/r/20220413113733.59041-1-i.m.novikov@yadro.com
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: ptdma: Fix the error handling path in pt_core_init()</title>
<updated>2022-02-15T05:17:36Z</updated>
<author>
<name>Christophe JAILLET</name>
</author>
<published>2022-02-05T06:58:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c62fd3406e0b2277c76a6984d3979c7f3f1d129'/>
<id>urn:sha1:3c62fd3406e0b2277c76a6984d3979c7f3f1d129</id>
<content type='text'>
In order to free resources correctly in the error handling path of
pt_core_init(), 2 goto's have to be switched. Otherwise, some resources
will leak and we will try to release things that have not been allocated
yet.

Also move a dev_err() to a place where it is more meaningful.

Fixes: fa5d823b16a9 ("dmaengine: ptdma: Initial driver for the AMD PTDMA")
Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Acked-by: Sanjay R Mehta &lt;sanju.mehta@amd.com&gt;
Reviewed-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Link: https://lore.kernel.org/r/41a963a35173f89c874f5c44df5530dc09fea8da.1644044244.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: ptdma: Add debugfs entries for PTDMA</title>
<updated>2021-08-29T13:44:20Z</updated>
<author>
<name>Sanjay R Mehta</name>
</author>
<published>2021-08-17T13:55:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2fb2e2a33fae6009bf68574a7eec8fcfdf9c78e'/>
<id>urn:sha1:e2fb2e2a33fae6009bf68574a7eec8fcfdf9c78e</id>
<content type='text'>
Expose data about the configuration and operation of the
PTDMA through debugfs entries: device name, capabilities,
configuration, statistics.

Signed-off-by: Sanjay R Mehta &lt;sanju.mehta@amd.com&gt;
Link: https://lore.kernel.org/r/1629208559-51964-4-git-send-email-Sanju.Mehta@amd.com
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: ptdma: register PTDMA controller as a DMA resource</title>
<updated>2021-08-29T13:44:20Z</updated>
<author>
<name>Sanjay R Mehta</name>
</author>
<published>2021-08-17T13:55:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0b4a6b10577a2e7eaf36f46781f4759b03321a7'/>
<id>urn:sha1:b0b4a6b10577a2e7eaf36f46781f4759b03321a7</id>
<content type='text'>
Register ptdma queue to Linux dmaengine framework as general-purpose
DMA channels.

Signed-off-by: Sanjay R Mehta &lt;sanju.mehta@amd.com&gt;
Link: https://lore.kernel.org/r/1629208559-51964-3-git-send-email-Sanju.Mehta@amd.com
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: ptdma: Initial driver for the AMD PTDMA</title>
<updated>2021-08-29T13:44:20Z</updated>
<author>
<name>Sanjay R Mehta</name>
</author>
<published>2021-08-17T13:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa5d823b16a9442d609617abeec31da8b6afa224'/>
<id>urn:sha1:fa5d823b16a9442d609617abeec31da8b6afa224</id>
<content type='text'>
Add support for AMD PTDMA controller. It performs high-bandwidth
memory to memory and IO copy operation. Device commands are managed
via a circular queue of 'descriptors', each of which specifies source
and destination addresses for copying a single buffer of data.

Signed-off-by: Sanjay R Mehta &lt;sanju.mehta@amd.com&gt;
Link: https://lore.kernel.org/r/1629208559-51964-2-git-send-email-Sanju.Mehta@amd.com
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
</content>
</entry>
</feed>
