diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-05-16 10:55:43 -0400 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-05-23 11:31:43 -0400 |
commit | e43fe02fe4fde417b40f6e70b56a30190edabb2e (patch) | |
tree | e6427972d0fb5ba2d304f2f2e28b0608554c09a2 /drivers | |
parent | 65f50f9761343d3dcc580db8e36e05d321d7e980 (diff) |
drm/vc4: Check for the binner bo before handling OOM interrupt
Since the OOM interrupt directly deals with the binner bo, it doesn't
make sense to try and handle it without a binner buffer registered.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190516145544.29051-4-paul.kocialkowski@bootlin.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_irq.c b/drivers/gpu/drm/vc4/vc4_irq.c index ffd0a4388752..723dc86b4511 100644 --- a/drivers/gpu/drm/vc4/vc4_irq.c +++ b/drivers/gpu/drm/vc4/vc4_irq.c | |||
@@ -64,6 +64,9 @@ vc4_overflow_mem_work(struct work_struct *work) | |||
64 | struct vc4_exec_info *exec; | 64 | struct vc4_exec_info *exec; |
65 | unsigned long irqflags; | 65 | unsigned long irqflags; |
66 | 66 | ||
67 | if (!bo) | ||
68 | return; | ||
69 | |||
67 | bin_bo_slot = vc4_v3d_get_bin_slot(vc4); | 70 | bin_bo_slot = vc4_v3d_get_bin_slot(vc4); |
68 | if (bin_bo_slot < 0) { | 71 | if (bin_bo_slot < 0) { |
69 | DRM_ERROR("Couldn't allocate binner overflow mem\n"); | 72 | DRM_ERROR("Couldn't allocate binner overflow mem\n"); |