<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-rng/drivers/media/platform/amd/isp4/isp4_interface.c, branch master</title>
<subtitle>Development tree for the kernel CSPRNG</subtitle>
<id>https://git.zx2c4.com/linux-rng/atom/drivers/media/platform/amd/isp4/isp4_interface.c?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-rng/atom/drivers/media/platform/amd/isp4/isp4_interface.c?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/'/>
<updated>2026-08-10T08:48:54Z</updated>
<entry>
<title>media: amd: isp4: release partial allocations in isp4if_alloc_fw_gpumem()</title>
<updated>2026-08-10T08:48:54Z</updated>
<author>
<name>Yifei Gao</name>
<email>gyf161023@gmail.com</email>
</author>
<published>2026-07-30T14:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=fea97ee13c5332f67850733d6cefc1fe99460bde'/>
<id>urn:sha1:fea97ee13c5332f67850733d6cefc1fe99460bde</id>
<content type='text'>
isp4if_alloc_fw_gpumem() allocates several GPU memory pools in sequence.
If one of them fails, it jumps to error_no_memory and returns -ENOMEM
without releasing the pools that were already allocated, leaking them.

Release the already-allocated pools before returning. isp4if_gpu_mem_free()
is a no-op on pools that were not allocated, so calling
isp4if_dealloc_fw_gpumem() here safely frees exactly the pools that
succeeded.

isp4if_gpu_mem_free() previously logged an error for a NULL entry, which
is a normal case during partial-allocation cleanup, so make it silent.

Fixes: 4c5feef6a62c ("media: platform: amd: Add isp4 fw and hw interface")
Signed-off-by: Yifei Gao &lt;gyf161023@gmail.com&gt;
Reviewed-by: Bin Du &lt;bin.du@amd.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>media: platform: amd: use refcount_t instead of atomic_t</title>
<updated>2026-07-10T12:17:56Z</updated>
<author>
<name>Ricardo Ribalda</name>
<email>ribalda@chromium.org</email>
</author>
<published>2026-06-29T11:30:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=0baf8f42110b7c361bb3f6a8a78c0958a23e4e32'/>
<id>urn:sha1:0baf8f42110b7c361bb3f6a8a78c0958a23e4e32</id>
<content type='text'>
We are using the refcnt variable for refcounting. Use the refcount_t
type instead, as it has support for saturation and underflow.

This also makes cocci happier, as it will fix the following warning:
./platform/amd/isp4/isp4_subdev.c:394:6-25: WARNING: atomic_dec_and_test variation before object free at line 395.

Fixes: 4c5feef6a62c ("media: platform: amd: Add isp4 fw and hw interface")
Signed-off-by: Ricardo Ribalda &lt;ribalda@chromium.org&gt;
Reviewed-by: Pratap Nirujogi &lt;pratap.nirujogi@amd.com&gt;
Reviewed-by: Bin Du &lt;bin.du@amd.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil+cisco@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: platform: amd: isp4: drop stale list reinit before free</title>
<updated>2026-05-19T11:49:25Z</updated>
<author>
<name>Bin Du</name>
<email>Bin.Du@amd.com</email>
</author>
<published>2026-05-12T03:21:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=5d8004bd279579452d7fe9f38396414fc87e1109'/>
<id>urn:sha1:5d8004bd279579452d7fe9f38396414fc87e1109</id>
<content type='text'>
Newer Smatch snapshots no longer report the false positive around
isp4if_send_fw_cmd(), so the extra list reinitialization before kfree()
is no longer needed.

Drop the stale list reinit and keep the cleanup path simpler.

Signed-off-by: Bin Du &lt;Bin.Du@amd.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>media: platform: amd: isp4 debug fs logging and more descriptive errors</title>
<updated>2026-05-06T10:48:09Z</updated>
<author>
<name>Bin Du</name>
<email>Bin.Du@amd.com</email>
</author>
<published>2026-05-06T09:32:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=ec4bec227b9d3796cb78af0d3d9bcdd26f0769c5'/>
<id>urn:sha1:ec4bec227b9d3796cb78af0d3d9bcdd26f0769c5</id>
<content type='text'>
Add debug fs for isp4 driver and add more detailed descriptive error info
to some of the log message

Co-developed-by: Sultan Alsawaf &lt;sultan@kerneltoast.com&gt;
Signed-off-by: Sultan Alsawaf &lt;sultan@kerneltoast.com&gt;
Co-developed-by: Svetoslav Stoilov &lt;Svetoslav.Stoilov@amd.com&gt;
Signed-off-by: Svetoslav Stoilov &lt;Svetoslav.Stoilov@amd.com&gt;
Signed-off-by: Bin Du &lt;Bin.Du@amd.com&gt;
Reviewed-by: Sultan Alsawaf &lt;sultan@kerneltoast.com&gt;
Tested-by: Alexey Zagorodnikov &lt;xglooom@gmail.com&gt;
Tested-by: Kate Hsuan &lt;hpa@redhat.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>media: platform: amd: Add isp4 fw and hw interface</title>
<updated>2026-05-06T10:48:09Z</updated>
<author>
<name>Bin Du</name>
<email>Bin.Du@amd.com</email>
</author>
<published>2026-05-06T09:32:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-rng/commit/?id=4c5feef6a62c22b578344891232872056415a3dd'/>
<id>urn:sha1:4c5feef6a62c22b578344891232872056415a3dd</id>
<content type='text'>
ISP firmware controls ISP HW pipeline using dedicated embedded processor
called ccpu. The communication between ISP FW and driver is using commands
and response messages sent through the ring buffer. Command buffers support
either global setting that is not specific to the stream and support stream
specific parameters. Response buffers contain ISP FW notification
information such as frame buffer done and command done. IRQ is used for
receiving response buffer from ISP firmware, which is handled in the main
isp4 media device. ISP ccpu is booted up through the firmware loading
helper function prior to stream start. Memory used for command buffer and
response buffer needs to be allocated from amdgpu buffer manager because
isp4 is a child device of amdgpu.

Co-developed-by: Sultan Alsawaf &lt;sultan@kerneltoast.com&gt;
Signed-off-by: Sultan Alsawaf &lt;sultan@kerneltoast.com&gt;
Co-developed-by: Svetoslav Stoilov &lt;Svetoslav.Stoilov@amd.com&gt;
Signed-off-by: Svetoslav Stoilov &lt;Svetoslav.Stoilov@amd.com&gt;
Signed-off-by: Bin Du &lt;Bin.Du@amd.com&gt;
Reviewed-by: Sultan Alsawaf &lt;sultan@kerneltoast.com&gt;
Tested-by: Alexey Zagorodnikov &lt;xglooom@gmail.com&gt;
Tested-by: Kate Hsuan &lt;hpa@redhat.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
</content>
</entry>
</feed>
