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/drm drm: Make drm_clflush_* noop on al...
details: https://anonhg.NetBSD.org/src/rev/af891cd6320c
branches: trunk
changeset: 368571:af891cd6320c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 19 23:19:27 2022 +0000
description:
drm: Make drm_clflush_* noop on alpha.
As far as I know there is no need for this; the CPU has weak ordering
on loads and stores requiring ordering barriers, but I/O devices
participate in the CPU's cache protocol for access to main memory so
there's never any need for explicit cache flushes.
diffstat:
sys/external/bsd/drm2/drm/drm_cache.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r faeb76fa0fbf -r af891cd6320c sys/external/bsd/drm2/drm/drm_cache.c
--- a/sys/external/bsd/drm2/drm/drm_cache.c Tue Jul 19 23:19:17 2022 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cache.c Tue Jul 19 23:19:27 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_cache.c,v 1.18 2021/12/19 11:33:30 riastradh Exp $ */
+/* $NetBSD: drm_cache.c,v 1.19 2022/07/19 23:19:27 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_cache.c,v 1.18 2021/12/19 11:33:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cache.c,v 1.19 2022/07/19 23:19:27 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -43,7 +43,7 @@
#include <drm/drm_cache.h>
-#if !defined(__arm__) && !defined(__aarch64__)
+#if !defined(__arm__) && !defined(__aarch64__) && !defined(__alpha__)
#define DRM_CLFLUSH 1
#endif
Home |
Main Index |
Thread Index |
Old Index