[Intel-gfx] [PATCH 8/8] drm/i915: Provide a command line option to disable display

Daniel Vetter daniel at ffwll.ch
Mon Feb 10 10:13:52 CET 2014


On Fri, Feb 07, 2014 at 07:12:54PM +0000, Damien Lespiau wrote:
> If we can't actually determine at run-time we have a fused-off display,
> provide at least an option to disable it.
> 
> Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_dma.c    | 3 ++-
>  drivers/gpu/drm/i915/i915_drv.h    | 1 +
>  drivers/gpu/drm/i915/i915_params.c | 4 ++++
>  3 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index 283ace8..493c9ea 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -1497,7 +1497,8 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
>  		 * On CPT/PPT, we can detect this case as SFUSE_STRAP_FUSE_LOCK
>  		 * should be set when taking over after the firmware.
>  		 */
> -		if (fuse_strap & ILK_INTERNAL_DISPLAY_DISABLE ||
> +		if (i915.disable_display ||

tbh I'd move this out into a separate top-level check - this option is a
bit hard to catch in the fuse checks here. Alos that way I could have
merged it already ;-)

Previous two patches are also merged, thanks.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list