回复: [PATCH] drm/amdgpu: fix ocl test performance drop

Zhou, David(ChunMing) David1.Zhou at amd.com
Mon May 22 11:19:20 UTC 2017


Reviewed-by: Chunming Zhou



-------- 原始邮件 --------
主题:Re: [PATCH] drm/amdgpu: fix ocl test performance drop
发件人:Flora Cui
收件人:"Zhou, David(ChunMing)"
抄送:amd-gfx at lists.freedesktop.org

partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in
amdgpu_vm_flush

Change-Id: Iadce9d613dfe9a739643a74050cea55854832adb
Signed-off-by: Flora Cui <Flora.Cui at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 4573d8c..5b9a73d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -743,8 +743,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job)
                 id->gws_size != job->gws_size ||
                 id->oa_base != job->oa_base ||
                 id->oa_size != job->oa_size);
-       bool vm_flush_needed = job->vm_needs_flush ||
-               amdgpu_vm_ring_has_compute_vm_bug(ring);
+       bool vm_flush_needed = job->vm_needs_flush;
         unsigned patch_offset = 0;
         int r;

--
2.7.4

On Mon, May 22, 2017 at 04:58:00PM +0800, zhoucm1 wrote:
>
>
> On 2017年05月22日 16:34, Flora Cui wrote:
> >partial revert commit <6971d3d> - drm/amdgpu: cleanup logic in
> >amdgpu_vm_flush
> >
> >Change-Id: Iadce9d613dfe9a739643a74050cea55854832adb
> >Signed-off-by: Flora Cui <Flora.Cui at amd.com>
> >---
> >  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> >diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> >index 4573d8c..11d58f7 100644
> >--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> >+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> >@@ -743,8 +743,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job)
> >              id->gws_size != job->gws_size ||
> >              id->oa_base != job->oa_base ||
> >              id->oa_size != job->oa_size);
> >-    bool vm_flush_needed = job->vm_needs_flush ||
> >-            amdgpu_vm_ring_has_compute_vm_bug(ring);
> >+    bool vm_flush_needed = job->vm_needs_flush;
> >      unsigned patch_offset = 0;
> >      int r;
> >@@ -753,7 +752,8 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job)
> >              vm_flush_needed = true;
> >      }
> >-    if (!vm_flush_needed && !gds_switch_needed)
> >+    if (!vm_flush_needed && !gds_switch_needed &&
> >+        !amdgpu_vm_ring_has_compute_vm_bug(ring))
> >              return 0;
> here change isn't needed.
>
> Regards,
> David Zhou
> >      if (ring->funcs->init_cond_exec)
>
_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20170522/686f275a/attachment.html>


More information about the amd-gfx mailing list