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/a7b29c47bcc5
branches:  trunk
changeset: 1015196:a7b29c47bcc5
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 04c7da2fb3e2 -r a7b29c47bcc5 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