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: Stop pretendin...



details:   https://anonhg.NetBSD.org/src/rev/752befbe2aec
branches:  trunk
changeset: 369793:752befbe2aec
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Sep 01 11:49:23 2022 +0000

description:
i915: Stop pretending the GTT size is zero as workaround.

Whatever bug this was I don't know how to reproduce any more.
Convinces Mesa iris_dri.so to work on this kernel.

diffstat:

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

diffs (29 lines):

diff -r f4dbc34ce624 -r 752befbe2aec 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        Thu Sep 01 11:48:59 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c        Thu Sep 01 11:49:23 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_context.c,v 1.6 2021/12/19 12:43:14 riastradh Exp $   */
+/*     $NetBSD: i915_gem_context.c,v 1.7 2022/09/01 11:49:23 riastradh Exp $   */
 
 /*
  * SPDX-License-Identifier: MIT
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_context.c,v 1.6 2021/12/19 12:43:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_context.c,v 1.7 2022/09/01 11:49:23 riastradh Exp $");
 
 #include <linux/log2.h>
 #include <linux/nospec.h>
@@ -2380,10 +2380,6 @@
                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