Bug 105996

Summary: [DC][CIK] Bonaire mobile - No displays being turned on
Product: DRI Reporter: Shawn Starr <shawn.starr>
Component: DRM/AMDgpuAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: medium CC: graaskaeg.via.forwarder, harry.wentland
Version: XOrg git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=105880
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Dmesg krnel boot with dc_log enabled
none
Xorg log
none
Kernel dmesg boot with dc_log and drm.debug=0x4
none
[PATCH] drm/amd/display: Support LVDS panels
none
kernel dmesg boot with LVDS panels patch added none

Description Shawn Starr 2018-04-12 08:20:03 UTC
Created attachment 138777 [details]
Dmesg krnel boot with dc_log enabled

Fedora kernel: 4.17.0-0.rc0.git7.2.fc29.x86_64 (pre -rc1)

Boot options: 

root=UUID=c88abf6f-2561-41e5-bec5-c3b2881d0ffc ro rhgb slub_debug=- cgroup_disable=memory console=tty0 console=ttyUSB0,9600n8 nmi_watchdog=0 audit=0 radeon.cik_support=0 amdgpu.cik_support=1 resume=/dev/sda7 i915.enable_rc6=1 i915.semaphores=1 i915.enable_psr=1 i915.enable_fbc=1 drm_kms_helper.poll=0 mce=off amdgpu.dc=1 amdgpu.dc_log=1

Note: BIOS is in dGPU only mode, so i915 is disabled.

both VGA and the LCD (LVDS) panel remain turned off, no display is available.


Attached is kernel dmesg and Xorg log files.
Comment 1 Shawn Starr 2018-04-12 08:20:33 UTC
Created attachment 138778 [details]
Xorg log
Comment 2 Shawn Starr 2018-04-12 16:36:20 UTC
Created attachment 138810 [details]
Kernel dmesg boot with dc_log and drm.debug=0x4
Comment 3 Harry Wentland 2018-04-12 19:05:15 UTC
Created attachment 138813 [details] [review]
[PATCH] drm/amd/display: Support LVDS panels

Can you see if this fixes things or creates different problems at boot? Looks like we never really supported LVDS with DC but a whole bunch of code is there. 

If it crashes and burns let me know your dmesg again. I'm hoping everything is in place but it's quite likely that we're missing some more crucial pieces.
Comment 4 Shawn Starr 2018-04-16 04:04:43 UTC
Created attachment 138858 [details]
kernel dmesg boot with LVDS panels patch added
Comment 5 Shawn Starr 2018-04-16 04:11:47 UTC
For reference compiling amdgpu.ko with custom patch on a Fedora kernel:

1) rpm -ivh kernel-4.17.0-0.rc0.git7.2.fc29.src.rpm

2) Copy custom patch into rpmbuild/SOURCES

3) Modify kernel.spec to add patch into the listing

4) cd ~/rpmbuild/SPECS; rpmbuild -bp kernel.spec

5) cd ~/rpmbuild/BUILD/kernel-4.16.fc27/linux-4.17.0-0.rc0.git7.2.fc29.x86_64

6) vi Makefile --> add the proper matching kernel version '-0.rc0.git7.2.fc29.x86_64' to EXTRAVERSION.

7) cp /boot/config-4.17.0-0.rc0.git7.2.fc29.x86_64 ~/rpmbuild/BUILD/kernel/4.16.fc17/linux-4.17.0-0.rc0.git7.2.fc29.x86_64/.config

8) cp /lib/modules/4.17.0-0.rc0.git7.2.fc29.x86_64/build/Module.symvers ~/rpmbuild/BUILD/kernel/4.16.fc17/linux-4.17.0-0.rc0.git7.2.fc29.x86_64/

9) cd ~/rpmbuild/BUILD/kernel/4.16.fc17/linux-4.17.0-0.rc0.git7.2.fc29.x86_64/certs && cp ~/rpmbuild/SOURCES/x509.genkey .

10) cd .. && make certs

11) make modules_prepare

12) make M= drivers/gpu/drm/amd/amdgpu modules

13) ./scripts/sign-file sha256 certs/signing_key.pem certs/signing_key.x509  drivers/gpu/drm/amd/amdgpu/amdgpu.ko

14) compress kernel modules with xz

15) Replace/move original in /lib/modules/4.17.0-0.rc0.git7.2.fc29.x86_64/drives/dpu/drm/amd/amdgpu/ of way

16) depmod -a

17) Remove old initramfs and rebuild with dracut
Comment 6 Shawn Starr 2018-04-16 04:24:07 UTC
Step 12a) make scripts
Comment 7 Alex Deucher 2018-08-14 20:53:55 UTC

*** This bug has been marked as a duplicate of bug 105880 ***

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.