Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/amd/amdgpu mb (dsb sy) is not...



details:   https://anonhg.NetBSD.org/src/rev/cbed04dd6334
branches:  trunk
changeset: 977161:cbed04dd6334
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 17 10:47:28 2020 +0000

description:
mb (dsb sy) is not the same as membar_sync (dmb sy) on aarch64

diffstat:

 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6fb98155cd4c -r cbed04dd6334 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c   Sat Oct 17 10:47:10 2020 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c   Sat Oct 17 10:47:28 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_gart.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $        */
+/*     $NetBSD: amdgpu_gart.c,v 1.4 2020/10/17 10:47:28 jmcneill Exp $ */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_gart.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_gart.c,v 1.4 2020/10/17 10:47:28 jmcneill Exp $");
 
 #include <drm/drmP.h>
 #include <drm/amdgpu_drm.h>
@@ -289,7 +289,7 @@
                    gpu_pgstart*entsize, gpu_npages*entsize,
                    BUS_DMASYNC_PREWRITE);
        }
-       membar_sync();          /* XXX overkill */
+       mb();
        amdgpu_gart_flush_gpu_tlb(adev, 0);
 }
 #endif



Home | Main Index | Thread Index | Old Index