Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci agp(4): Use bus_space_barrier, not membar_producer.



details:   https://anonhg.NetBSD.org/src/rev/0e0e73dd0ce1
branches:  trunk
changeset: 368514:0e0e73dd0ce1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 17 10:10:45 2022 +0000

description:
agp(4): Use bus_space_barrier, not membar_producer.

diffstat:

 sys/dev/pci/agp_i810.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 28582ee4c9a3 -r 0e0e73dd0ce1 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Sun Jul 17 10:01:18 2022 +0000
+++ b/sys/dev/pci/agp_i810.c    Sun Jul 17 10:10:45 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.124 2019/11/10 21:16:36 chs Exp $       */
+/*     $NetBSD: agp_i810.c,v 1.125 2022/07/17 10:10:45 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.124 2019/11/10 21:16:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.125 2022/07/17 10:10:45 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -173,7 +173,8 @@
         * read, because I don't have enough time or hardware to
         * conduct conclusive tests.
         */
-       membar_producer();
+       bus_space_barrier(isc->gtt_bst, isc->gtt_bsh, 0, isc->gtt_size,
+           BUS_SPACE_BARRIER_WRITE);
        (void)bus_space_read_4(isc->gtt_bst, isc->gtt_bsh,
            4*(off >> AGP_PAGE_SHIFT));
 }



Home | Main Index | Thread Index | Old Index