drm/i915: Log a message when rejecting LRM to OACONTROL
authorBrad Volkin <bradley.d.volkin@intel.com>
Thu, 18 Sep 2014 23:26:27 +0000 (16:26 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 15:56:20 +0000 (17:56 +0200)
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: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_cmd_parser.c

index d40f264bd5f066651849aa10a21c5f85b5c4240e..4c35e2a626899b0ec7dcbf9a5a0c4f35f5b13b73 100644 (file)
@@ -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);