On Fri, May 03, 2019 at 11:21:07AM +0200, Mark Kettenis wrote:
> > Date: Fri, 03 May 2019 02:06:07 -0400
> > From: James Hastings <[email protected]>
> > 
> > Here is a little more debug info.
> > 
> > I uncommented DRMDEBUG in sys/dev/pci/drm/include/drm/drmP.h
> > 
> > root on sd0a (b9c87e5264160760.a) swap on sd0b dump on sd0b
> > [drm] GuC: No firmware known for this platform!
> > [drm] HuC: No firmware known for this platform!
> > [drm] Supports vblank timestamp caching Rev 2 (21.10.2013)
> > [drm] Driver supports precise vblank timestamp query.
> > [drm] Failed to find VBIOS tables (VBT)
> > [drm] Finished loading DMC firmware i915/glk_dmc_ver1_04.bin (v1.4)
> > [drm] Cannot find any crtc or sizes
> > [drm] Cannot find any crtc or sizes
> > init: can't open /dev/console: Device not configured
> 
> So there are actually two problems here:
> 
> 1. For some reason inteldrm(4) doesn't actually configure an output on
>    your hardware.

Assuming it is an eDP panel, withouth VBT it will need something
like this (Gemini Lake is GEN9):

commit 6e0473633af059a559ce7b4cbaa51e389c94085e
Author: Thomas Preston <[email protected]>
Date:   Wed Mar 6 20:06:18 2019 +0000

    drm/i915/bios: assume eDP is present on port A when there is no VBT
    
    We rely on VBT DDI port info for eDP detection on GEN9 platforms and
    above. This breaks GEN9 platforms which don't have VBT because port A
    eDP now defaults to false. Fix this by defaulting to true when VBT is
    missing.
    
    Fixes: a98d9c1d7e9b ("drm/i915/ddi: Rely on VBT DDI port info for eDP 
detection")
    Signed-off-by: Thomas Preston <[email protected]>
    Signed-off-by: Jani Nikula <[email protected]>
    Link: 
https://patchwork.freedesktop.org/patch/msgid/[email protected]
    (cherry picked from commit 2131bc0ced6088648e47f126566c3da58b07e4ef)
    Signed-off-by: Rodrigo Vivi <[email protected]>

Index: sys/dev/pci/drm/i915/intel_bios.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/i915/intel_bios.c,v
retrieving revision 1.15
diff -u -p -r1.15 intel_bios.c
--- sys/dev/pci/drm/i915/intel_bios.c   14 Apr 2019 10:14:52 -0000      1.15
+++ sys/dev/pci/drm/i915/intel_bios.c   3 May 2019 09:59:14 -0000
@@ -1629,6 +1629,7 @@ init_vbt_missing_defaults(struct drm_i91
                info->supports_dvi = (port != PORT_A && port != PORT_E);
                info->supports_hdmi = info->supports_dvi;
                info->supports_dp = (port != PORT_E);
+               info->supports_edp = (port == PORT_A);
        }
 }
 

Reply via email to