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 Shuffle ifdefs for build...



details:   https://anonhg.NetBSD.org/src/rev/fc135c7cdc43
branches:  trunk
changeset: 1028551:fc135c7cdc43
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:18:26 2021 +0000

description:
Shuffle ifdefs for build. Remove local diff that doesn't build.


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (70 lines):

diff -r 8f5dc9deb105 -r fc135c7cdc43 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Sun Dec 19 11:18:18 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Sun Dec 19 11:18:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_drv.c,v 1.32 2021/12/19 11:18:09 riastradh Exp $  */
+/*     $NetBSD: i915_drv.c,v 1.33 2021/12/19 11:18:26 riastradh Exp $  */
 
 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
  */
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.32 2021/12/19 11:18:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.33 2021/12/19 11:18:26 riastradh Exp $");
 
 #include <linux/acpi.h>
 #include <linux/device.h>
@@ -48,6 +48,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_ioctl.h>
 #include <drm/drm_irq.h>
+#include <drm/drm_pci.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/i915_drm.h>
 
@@ -1991,10 +1992,7 @@
         * the device powered we can also remove the following set power state
         * call.
         */
-#ifdef __NetBSD__              /* pmf handles this for us.  */
-       if (0)
-               goto out;
-#else
+#ifndef __NetBSD__             /* pmf handles this for us.  */
        ret = pci_set_power_state(pdev, PCI_D0);
        if (ret) {
                DRM_ERROR("failed to set PCI D0 power state (%d)\n", ret);
@@ -2141,7 +2139,6 @@
 
        return i915_drm_resume(&i915->drm);
 }
-#endif
 
 /* freeze: before creating the hibernation_image */
 static int i915_pm_freeze(struct device *kdev)
@@ -2425,6 +2422,7 @@
 
        return ret;
 }
+#endif
 
 int vlv_force_gfx_clock(struct drm_i915_private *dev_priv, bool force_on)
 {
@@ -2452,6 +2450,7 @@
        return err;
 }
 
+#ifndef __NetBSD__             /* XXX vlv suspend/resume */
 static int vlv_allow_gt_wake(struct drm_i915_private *dev_priv, bool allow)
 {
        u32 mask;
@@ -2576,6 +2575,7 @@
 
        return ret;
 }
+#endif
 
 #ifndef __NetBSD__             /* XXX runtime pm */
 static int intel_runtime_suspend(struct device *kdev)



Home | Main Index | Thread Index | Old Index