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 i915: Fill out i915_gem_...



details:   https://anonhg.NetBSD.org/src/rev/7f5b51776dac
branches:  trunk
changeset: 1028907:7f5b51776dac
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:27:09 2021 +0000

description:
i915: Fill out i915_gem_phys_pwrite.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gem.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 792b3dd29a57 -r 7f5b51776dac sys/external/bsd/drm2/dist/drm/i915/i915_gem.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c    Sun Dec 19 12:27:02 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c    Sun Dec 19 12:27:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem.c,v 1.72 2021/12/19 12:25:37 riastradh Exp $  */
+/*     $NetBSD: i915_gem.c,v 1.73 2021/12/19 12:27:09 riastradh Exp $  */
 
 /*
  * Copyright © 2008-2015 Intel Corporation
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem.c,v 1.72 2021/12/19 12:25:37 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem.c,v 1.73 2021/12/19 12:27:09 riastradh Exp $");
 
 #ifdef __NetBSD__
 #include <drm/bus_dma_hacks.h>
@@ -193,9 +193,10 @@
                     struct drm_file *file)
 {
 #ifdef __NetBSD__
-       panic("TODO");
+       void *vaddr = obj->mm.u.phys.kva + args->offset;
 #else
        void *vaddr = sg_page(obj->mm.pages->sgl) + args->offset;
+#endif
        char __user *user_data = u64_to_user_ptr(args->data_ptr);
 
        /*
@@ -211,7 +212,6 @@
        intel_gt_chipset_flush(&to_i915(obj->base.dev)->gt);
 
        i915_gem_object_flush_frontbuffer(obj, ORIGIN_CPU);
-#endif
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index