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/gem i915: For now, prete...



details:   https://anonhg.NetBSD.org/src/rev/307a96e74e88
branches:  trunk
changeset: 1029014:307a96e74e88
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:43:14 2021 +0000

description:
i915: For now, pretend gtt size is zero.

Something goes wrong with EXEC_OBJECT_PINNED in Mesa i965 brw bufmgr
if we expose this parameter; this is a sleazy workaround pending
diagnosis of the underlying problem.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r d451dcb7d2b5 -r 307a96e74e88 sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c        Sun Dec 19 12:43:05 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c        Sun Dec 19 12:43:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_context.c,v 1.5 2021/12/19 12:32:15 riastradh Exp $   */
+/*     $NetBSD: i915_gem_context.c,v 1.6 2021/12/19 12:43:14 riastradh Exp $   */
 
 /*
  * SPDX-License-Identifier: MIT
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_context.c,v 1.5 2021/12/19 12:32:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_context.c,v 1.6 2021/12/19 12:43:14 riastradh Exp $");
 
 #include <linux/log2.h>
 #include <linux/nospec.h>
@@ -2380,6 +2380,10 @@
                else
                        args->value = to_i915(dev)->ggtt.vm.total;
                rcu_read_unlock();
+#ifdef __NetBSD__              /* XXX */
+               /* XXX Something is broken with EXEC_OBJECT_PINNED.  */
+               args->value = 0;
+#endif
                break;
 
        case I915_CONTEXT_PARAM_NO_ERROR_CAPTURE:



Home | Main Index | Thread Index | Old Index