Bug 100926

Summary: [ELK] HP Compaq 8000 E7500 displayport doesn't activate
Product: DRI Reporter: Tomi Sarvela <tomi.p.sarvela>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: G45 i915 features: display/DP
Attachments:
Description Flags
eagle lake dp dmesg
none
intel_reg dump
none
[PATCH] hack: Pretend rawclk 266Mhz none

Description Tomi Sarvela 2017-05-04 12:27:03 UTC
Created attachment 131199 [details]
eagle lake dp dmesg

HP Compaq 8000 E7500 displayport shows timeout errors in log, and doesn't come up at all. Monitor is IBM ThinkVision, connected with straight cable. VGA works.

Default Ubuntu kernel and DRM-Tip show same symptoms: monitor shortly coming out of power save, then going back and no picture.

BIOS screen shows up through DP well enough.

DRM-Tip dmesg with drm.debug=0xe attached.
Comment 1 Ville Syrjala 2017-05-04 13:20:55 UTC
I'd like to see what 'intel_reg dump' has to say when the BIOS has enabled DP and you boot without loading i915.

Note that intel_reg is currently broken, so you will need to use igt e7a0d06730f77842998368660fb45fe5c1738fda or older.
Comment 2 Tomi Sarvela 2017-05-04 13:49:10 UTC
Created attachment 131207 [details]
intel_reg dump

Booted DRM-tip without i915.ko, created dump with old IGT version. Only monitor connected is DP where BIOS and grub show up.
Comment 3 Ville Syrjala 2017-05-04 14:15:15 UTC
OK, so definitely it' using port C.
                               DP_C (0x00064200): 0xb01c001c

This looks a little peculiar. The clock divider is based on a 266MHz clock, whereas we detect the rawclk as 200Mhz.
                     DPC_AUX_CH_CTL (0x00064210): 0x40140085
Comment 4 Ville Syrjala 2017-05-04 14:16:52 UTC
Created attachment 131208 [details] [review]
[PATCH] hack: Pretend rawclk 266Mhz

This hack might help with getting AUX working.
Comment 5 Tomi Sarvela 2017-05-04 14:59:29 UTC
Confirmed: this hack fixes DP issue with this particular HW.
Comment 6 Ville Syrjala 2017-05-04 15:09:11 UTC
(In reply to Tomi Sarvela from comment #5)
> Confirmed: this hack fixes DP issue with this particular HW.

I was almost hoping it wouldn't. Now we'd have to figure out what's wrong with out rawclk readout, but unfortunately the old configdb is gone so there are no docs anywhere that I know :(
Comment 7 Jani Saarinen 2017-05-04 18:36:55 UTC
Reference ti fix from Ville: https://patchwork.freedesktop.org/series/23978/
Comment 8 Ville Syrjala 2017-05-05 17:07:54 UTC
commit 6f38123ecaac446312a63523b68df84ceb5a06ed
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Thu May 4 21:15:30 2017 +0300

    drm/i915: Fix rawclk readout for g4x

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.