diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-07-17 10:10:45 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-07-17 10:10:45 +0000 |
| commit | 8e68ab3fff3f026628e5580b878ead0ced7a6700 (patch) | |
| tree | d1fb782d49cb6dedb176f92f913078dd597a0598 /sys/dev | |
| parent | 08dbba5b2c6ab79a638e6af47f7018539ef525e8 (diff) | |
agp(4): Use bus_space_barrier, not membar_producer.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/agp_i810.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index 4a6313b8c2e..adfb5716d4a 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -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 @@ agp_i810_post_gtt_entry(struct agp_i810_softc *isc, off_t off) * 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)); } |
