Module Name: src Committed By: riastradh Date: Sun Jul 17 10:10:45 UTC 2022
Modified Files: src/sys/dev/pci: agp_i810.c Log Message: agp(4): Use bus_space_barrier, not membar_producer. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/sys/dev/pci/agp_i810.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/agp_i810.c diff -u src/sys/dev/pci/agp_i810.c:1.124 src/sys/dev/pci/agp_i810.c:1.125 --- src/sys/dev/pci/agp_i810.c:1.124 Sun Nov 10 21:16:36 2019 +++ src/sys/dev/pci/agp_i810.c Sun Jul 17 10:10:45 2022 @@ -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_ * 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)); }