LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-04-2015, 07:36 PM   #1
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Rep: Reputation: 22
Debugging kernel issue (Kernel modeset to be particular)


Hi all,

I was trying to enable kernel modesetting in Ubuntu 14.04 but the screen blanked out so I couldn't even see the log messages. Hence my question(s)

1. How can I debug issues like this if the screen is off? I have heard about enabling kernel debug mode but I'm not sure if that's gonna work if the screen is off.
2. Suppose that I have debug mode enabled which writes the error message to my HDD. Then would I have to move that HDD somewhere to check for that error message?


P.S : I have no expertise in debugging kernel issues so I might be talking out of my ass for now. Bear with me :-)
 
Old 02-04-2015, 08:04 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
I would have thought KMS would be on by default in any recent Ubuntu kernel.

You'd better describe in detail what you did and what happened - in detail. When does the screen "blank out" ?.
Do you get a grub boot option screen ?. If not, did you ever get one ?.

Data like that will help us get started.

As an aside, about the only debugging you will be able to do without the appropriate kernel options already compiled in is using a serial console to get the messages. But you still need to be able to update the boot options to get even that ...
 
Old 02-05-2015, 01:10 AM   #3
yuchankit
Member
 
Registered: Apr 2008
Distribution: Slackware 13.1 ,slackware-current
Posts: 145

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by syg00 View Post
I would have thought KMS would be on by default in any recent Ubuntu kernel.
Indeed. However, I compiled a special kernel with some patches. Now the screen works iff I specify nomodeset in the boot parameters or if I boot in recovery mode which also specifies nomodeset.

Quote:

You'd better describe in detail what you did and what happened - in detail. When does the screen "blank out" ?.
Do you get a grub boot option screen ?. If not, did you ever get one ?.

Data like that will help us get started.

As an aside, about the only debugging you will be able to do without the appropriate kernel options already compiled in is using a serial console to get the messages. But you still need to be able to update the boot options to get even that ...
I compiled a custom Linux kernel. I managed to get to the boot prompt where I selected my new kernel. Everything went well except the screen went blank halfway through. I managed to ssh into the system to get some useful info from dmesg. I found two messages that hopefully will give a more helpful hint on what's wrong here:

[drm:i915_gem_init_stolen [i915]] *ERROR* conflict detected with stolen region: [0x7ce00000 - 0x7ee00000]
[drm:intel_dp_complete_link_train [i915]] *ERROR* failed to train DP, aborting

I then googled the two messages to see what's going on. I'm still working on the first message.

According to https://bugs.freedesktop.org/show_bug.cgi?id=73694, it suggests that the latter does not give a conclusive hint on what's going wrong.
 
Old 02-05-2015, 07:30 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux-Kernel> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel debugging methods;3.14.25-rt22 Kernel hangs during TCP server client communica linuxaz Linux - Kernel 2 01-18-2015 11:31 PM
kernel debugging methods;3.14.25-rt22 Kernel hangs during TCP server client communica linuxaz Linux - Networking 0 01-17-2015 01:45 PM
KDB Issue in kernel debugging barunparichha Linux - Software 1 12-24-2012 10:47 AM
[SOLVED] Which bleeding-edge kernel source to use for kernel testing/debugging? GrapefruiTgirl Linux - Kernel 4 09-24-2009 08:11 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration