Module Name: src
Committed By: riastradh
Date: Tue Jul 19 23:19:27 UTC 2022
Modified Files:
src/sys/external/bsd/drm2/drm: drm_cache.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/external/bsd/drm2/drm/drm_cache.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/external/bsd/drm2/drm/drm_cache.c
diff -u src/sys/external/bsd/drm2/drm/drm_cache.c:1.18 src/sys/external/bsd/drm2/drm/drm_cache.c:1.19
--- src/sys/external/bsd/drm2/drm/drm_cache.c:1.18 Sun Dec 19 11:33:30 2021
+++ src/sys/external/bsd/drm2/drm/drm_cache.c Tue Jul 19 23:19:27 2022
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: drm_cache.c,
#include <drm/drm_cache.h>
-#if !defined(__arm__) && !defined(__aarch64__)
+#if !defined(__arm__) && !defined(__aarch64__) && !defined(__alpha__)
#define DRM_CLFLUSH 1
#endif