drm/amdgpu:cleanup flag not used
authorMonk Liu <Monk.Liu@amd.com>
Wed, 3 May 2017 06:55:07 +0000 (14:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:27 +0000 (17:40 -0400)
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c

index 70cebbe7f8d9129a3f023e197f10c8af6887579b..8e828cda9baa68abdc5969d27ee2b059d9a38a94 100644 (file)
@@ -1117,7 +1117,6 @@ struct amdgpu_cs_parser {
 #define AMDGPU_PREAMBLE_IB_PRESENT          (1 << 0) /* bit set means command submit involves a preamble IB */
 #define AMDGPU_PREAMBLE_IB_PRESENT_FIRST    (1 << 1) /* bit set means preamble IB is first presented in belonging context */
 #define AMDGPU_HAVE_CTX_SWITCH              (1 << 2) /* bit set means context switch occured */
-#define AMDGPU_VM_DOMAIN                    (1 << 3) /* bit set means in virtual memory context */
 
 struct amdgpu_job {
        struct amd_sched_job    base;
index 72ded77f3ee74126596f859cc74851d3774401a1..53d0d21ee26d374c360bcb2fe22377d036abbe78 100644 (file)
@@ -188,8 +188,6 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
                        status |= AMDGPU_HAVE_CTX_SWITCH;
                status |= job->preamble_status;
 
-               if (vm)
-                       status |= AMDGPU_VM_DOMAIN;
                amdgpu_ring_emit_cntxcntl(ring, status);
        }