linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] drm/v3d: Add a note about OOM vs FRDONE, which may be racing on v3.3.
@ 2019-03-13 23:52 Eric Anholt
  2019-03-13 23:52 ` [PATCH 2/4] drm/v3d: Rename the fence signaled from IRQs to "irq_fence" Eric Anholt
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Eric Anholt @ 2019-03-13 23:52 UTC (permalink / raw)
  To: dri-devel; +Cc: linux-kernel, david.emett, thomas.spurden, Eric Anholt

We deref v3d->bin_job in the work handler, but v3d->bin_job doesn't
actually hold a ref on the job.

Signed-off-by: Eric Anholt <eric@anholt.net>
---
 drivers/gpu/drm/v3d/v3d_irq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/v3d/v3d_irq.c b/drivers/gpu/drm/v3d/v3d_irq.c
index b4d6ae81186d..a09442ec7297 100644
--- a/drivers/gpu/drm/v3d/v3d_irq.c
+++ b/drivers/gpu/drm/v3d/v3d_irq.c
@@ -87,7 +87,8 @@ v3d_irq(int irq, void *arg)
 	if (intsts & V3D_INT_OUTOMEM) {
 		/* Note that the OOM status is edge signaled, so the
 		 * interrupt won't happen again until the we actually
-		 * add more memory.
+		 * add more memory.  Also, as of V3D 4.1, FRDONE won't
+		 * be reported until any OOM state has been cleared.
 		 */
 		schedule_work(&v3d->overflow_mem_work);
 		status = IRQ_HANDLED;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-22 21:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-13 23:52 [PATCH 1/4] drm/v3d: Add a note about OOM vs FRDONE, which may be racing on v3.3 Eric Anholt
2019-03-13 23:52 ` [PATCH 2/4] drm/v3d: Rename the fence signaled from IRQs to "irq_fence" Eric Anholt
2019-03-14 11:23   ` Dave Emett
2019-03-13 23:52 ` [PATCH 3/4] drm/v3d: Refactor job management Eric Anholt
2019-03-13 23:52 ` [PATCH 4/4] drm/v3d: Add support for compute shader dispatch Eric Anholt
2019-03-14 11:21 ` [PATCH 1/4] drm/v3d: Add a note about OOM vs FRDONE, which may be racing on v3.3 Dave Emett
2019-03-22 21:32   ` Eric Anholt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).