]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
Merge tag 'trace-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[J-linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_jpeg.c
index 9342aa23ebd260b8f699b78156cd8bb8425a7fe9..518eb0e40d32f941fa125c392193c3fef42f2406 100644 (file)
@@ -216,3 +216,21 @@ int amdgpu_jpeg_dec_ring_test_ib(struct amdgpu_ring *ring, long timeout)
 error:
        return r;
 }
+
+int amdgpu_jpeg_process_poison_irq(struct amdgpu_device *adev,
+                               struct amdgpu_irq_src *source,
+                               struct amdgpu_iv_entry *entry)
+{
+       struct ras_common_if *ras_if = adev->jpeg.ras_if;
+       struct ras_dispatch_if ih_data = {
+               .entry = entry,
+       };
+
+       if (!ras_if)
+               return 0;
+
+       ih_data.head = *ras_if;
+       amdgpu_ras_interrupt_dispatch(adev, &ih_data);
+
+       return 0;
+}
This page took 0.028875 seconds and 4 git commands to generate.