]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
Merge tag 'imx-drm-next-2019-07-05' of git://git.pengutronix.de/git/pza/linux into...
[J-linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_ib.c
index fe393a46f8811dc452dc3db6d062d0aa850e6b47..7850084a05e3a7c119b1266ff23035147537131f 100644 (file)
  */
 #include <linux/seq_file.h>
 #include <linux/slab.h>
-#include <drm/drmP.h>
+
 #include <drm/amdgpu_drm.h>
+#include <drm/drm_debugfs.h>
+
 #include "amdgpu.h"
 #include "atom.h"
 #include "amdgpu_trace.h"
@@ -209,6 +211,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
        skip_preamble = ring->current_ctx == fence_ctx;
        if (job && ring->funcs->emit_cntxcntl) {
                status |= job->preamble_status;
+               status |= job->preemption_status;
                amdgpu_ring_emit_cntxcntl(ring, status);
        }
 
@@ -217,9 +220,10 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
 
                /* drop preamble IBs if we don't have a context switch */
                if ((ib->flags & AMDGPU_IB_FLAG_PREAMBLE) &&
-                       skip_preamble &&
-                       !(status & AMDGPU_PREAMBLE_IB_PRESENT_FIRST) &&
-                       !amdgpu_sriov_vf(adev)) /* for SRIOV preemption, Preamble CE ib must be inserted anyway */
+                   skip_preamble &&
+                   !(status & AMDGPU_PREAMBLE_IB_PRESENT_FIRST) &&
+                   !amdgpu_mcbp &&
+                   !amdgpu_sriov_vf(adev)) /* for SRIOV preemption, Preamble CE ib must be inserted anyway */
                        continue;
 
                amdgpu_ring_emit_ib(ring, job, ib, status);
This page took 0.030067 seconds and 4 git commands to generate.