Bug 105996 - [DC][CIK] Bonaire mobile - No displays being turned on
Summary: [DC][CIK] Bonaire mobile - No displays being turned on
Status: RESOLVED DUPLICATE of bug 105880
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-12 08:20 UTC by Shawn Starr
Modified: 2018-08-14 20:56 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Dmesg krnel boot with dc_log enabled (72.46 KB, text/plain)
2018-04-12 08:20 UTC, Shawn Starr
no flags Details
Xorg log (34.85 KB, text/plain)
2018-04-12 08:20 UTC, Shawn Starr
no flags Details
Kernel dmesg boot with dc_log and drm.debug=0x4 (82.00 KB, text/plain)
2018-04-12 16:36 UTC, Shawn Starr
no flags Details
[PATCH] drm/amd/display: Support LVDS panels (905 bytes, patch)
2018-04-12 19:05 UTC, Harry Wentland
no flags Details | Splinter Review
kernel dmesg boot with LVDS panels patch added (86.29 KB, text/plain)
2018-04-16 04:04 UTC, Shawn Starr
no flags Details

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.