Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e43fe02f authored by Paul Kocialkowski's avatar Paul Kocialkowski
Browse files

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: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190516145544.29051-4-paul.kocialkowski@bootlin.com
parent 65f50f97
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -64,6 +64,9 @@ vc4_overflow_mem_work(struct work_struct *work)
	struct vc4_exec_info *exec;
	unsigned long irqflags;

	if (!bo)
		return;

	bin_bo_slot = vc4_v3d_get_bin_slot(vc4);
	if (bin_bo_slot < 0) {
		DRM_ERROR("Couldn't allocate binner overflow mem\n");