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/dist/drm/i915/gt bus-space-ify
details: https://anonhg.NetBSD.org/src/rev/993c50d908b3
branches: trunk
changeset: 1028698:993c50d908b3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:47:40 2021 +0000
description:
bus-space-ify
Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 56813f02703c -r 993c50d908b3 sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c Sun Dec 19 11:47:33 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/intel_lrc.c Sun Dec 19 11:47:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_lrc.c,v 1.5 2021/12/19 11:47:16 riastradh Exp $ */
+/* $NetBSD: intel_lrc.c,v 1.6 2021/12/19 11:47:40 riastradh Exp $ */
/*
* Copyright © 2014 Intel Corporation
@@ -134,7 +134,7 @@
*
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_lrc.c,v 1.5 2021/12/19 11:47:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_lrc.c,v 1.6 2021/12/19 11:47:40 riastradh Exp $");
#include <linux/interrupt.h>
@@ -1521,7 +1521,11 @@
/* we need to manually load the submit queue */
if (execlists->ctrl_reg)
+#ifdef __NetBSD__
+ bus_space_write_4(execlists->bst, execlists->bsh, execlists->ctrl_reg, EL_CTRL_LOAD);
+#else
writel(EL_CTRL_LOAD, execlists->ctrl_reg);
+#endif
}
static bool ctx_single_port_submission(const struct intel_context *ce)
Home |
Main Index |
Thread Index |
Old Index