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

Commit 00caf019 authored by Brad Volkin's avatar Brad Volkin Committed by Daniel Vetter
Browse files

drm/i915: Log a message when rejecting LRM to OACONTROL



The other paths in the command parser that reject a batch all
log a message indicating the reason. We simply missed this one.

Signed-off-by: default avatarBrad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 9beb0ccb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -881,8 +881,10 @@ static bool check_cmd(const struct intel_engine_cs *ring,
		 * OACONTROL writes to only MI_LOAD_REGISTER_IMM commands.
		 */
		if (reg_addr == OACONTROL) {
			if (desc->cmd.value == MI_LOAD_REGISTER_MEM)
			if (desc->cmd.value == MI_LOAD_REGISTER_MEM) {
				DRM_DEBUG_DRIVER("CMD: Rejected LRM to OACONTROL\n");
				return false;
			}

			if (desc->cmd.value == MI_LOAD_REGISTER_IMM(1))
				*oacontrol_set = (cmd[2] != 0);