Displaying 3 results from an estimated 3 matches for "nv_debug_level".
Did you mean:
  nut_debug_level
  
2014 Mar 19
2
[PATCH] drm: compute runpm on load, don't register autosuspend for non-runpm
...truct device *dev)
 	if (nouveau_runtime_pm == 0)
 		return -EINVAL;
 
-	/* are we optimus enabled? */
-	if (nouveau_runtime_pm == -1 && !nouveau_is_optimus() && !nouveau_is_v1_dsm()) {
-		DRM_DEBUG_DRIVER("failing to power off - not optimus\n");
-		return -EINVAL;
-	}
-
 	nv_debug_level(SILENT);
 	drm_kms_helper_poll_disable(drm_dev);
 	vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_OFF);
@@ -951,12 +949,6 @@ static int nouveau_pmops_runtime_idle(struct device *dev)
 	if (nouveau_runtime_pm == 0)
 		return -EBUSY;
 
-	/* are we optimus enabled? */
-	if (nouveau_runtime_pm...
2013 Dec 12
1
[PATCH] drm/nouveau: only runtime suspend by default in optimus configuration
...truct device *dev)
 	if (nouveau_runtime_pm == 0)
 		return -EINVAL;
 
+	/* are we optimus enabled? */
+	if (nouveau_runtime_pm == -1 && !nouveau_is_optimus() && !nouveau_is_v1_dsm()) {
+		DRM_DEBUG_DRIVER("failing to power off - not optimus\n");
+		return -EINVAL;
+	}
+
 	nv_debug_level(SILENT);
 	drm_kms_helper_poll_disable(drm_dev);
 	vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_OFF);
-- 
1.8.3.2
2014 Mar 19
0
[PATCH] drm: compute runpm on load, don't register autosuspend for non-runpm
...* are we optimus enabled? */
> -       if (nouveau_runtime_pm == -1 && !nouveau_is_optimus() && !nouveau_is_v1_dsm()) {
> -               DRM_DEBUG_DRIVER("failing to power off - not optimus\n");
> -               return -EINVAL;
> -       }
> -
>         nv_debug_level(SILENT);
>         drm_kms_helper_poll_disable(drm_dev);
>         vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_OFF);
> @@ -951,12 +949,6 @@ static int nouveau_pmops_runtime_idle(struct device *dev)
>         if (nouveau_runtime_pm == 0)
>                 return -EBUSY;
>...