Bug 80629 - [845GL] GPU HANG: ecode -1:0x0000000 - black screen with moveable mouse when X/kdm starts
Summary: [845GL] GPU HANG: ecode -1:0x0000000 - black screen with moveable mouse when ...
Status: CLOSED WONTFIX
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-28 14:07 UTC by pdi
Modified: 2017-07-24 22:53 UTC (History)
1 user (show)

See Also:
i915 platform: I845G
i915 features: display/Other, GPU hang


Attachments
runlevel 4 GPU crash dump (1.97 MB, text/plain)
2014-06-28 14:07 UTC, pdi
no flags Details
runlevel 4 messages excerpt (569 bytes, text/plain)
2014-06-28 14:09 UTC, pdi
no flags Details
runlevel 4 syslog excerpt (354 bytes, text/plain)
2014-06-28 14:10 UTC, pdi
no flags Details
runlevel 4 Xorg.0.log (28.98 KB, text/plain)
2014-06-28 14:11 UTC, pdi
no flags Details
runlevel 4 kdm.log (1.47 KB, text/plain)
2014-06-28 14:12 UTC, pdi
no flags Details
runlevel 3 messages excerpt (913 bytes, text/plain)
2014-06-28 14:13 UTC, pdi
no flags Details
runlevel 3 syslog excerpt (221 bytes, text/plain)
2014-06-28 14:13 UTC, pdi
no flags Details
runlevel 3 Xorg.0.log (29.20 KB, text/plain)
2014-06-28 14:14 UTC, pdi
no flags Details
runlevel 3 kdm.log (1.47 KB, text/plain)
2014-06-28 14:14 UTC, pdi
no flags Details
runlevel 4 GPU crash dump (patch comment 9) (674.01 KB, text/plain)
2014-07-02 09:19 UTC, pdi
no flags Details
runlevel 4 messages excerpt (patch comment 9) (926 bytes, text/plain)
2014-07-02 09:20 UTC, pdi
no flags Details
runlevel 4 dmesg with drm.debug=6 (74.12 KB, text/plain)
2014-07-04 12:03 UTC, pdi
no flags Details

Description pdi 2014-06-28 14:07:13 UTC
Created attachment 101917 [details]
runlevel 4 GPU crash dump

hw: Dell Inspiron 1100, graphics i845GL, BIOS A32 (latest), RAM allocated to video in BIOS 8M (max)
os: slackware 14.1 w/ kernel 3.14.5, i915, kdm, lxde
    no kernel module options, and no xorg.conf editing
    (although various combinations have been tried)

symptoms:
- boot to runlevel 3
  login
  startx
  black screen & mooveable mouse [moment of logs, all seems normal]
  right click brings desktop menu w/ letters missing
  guess start menu/logout position and logout (stops x)
  startx
  everything works normally
- boot to runlevel 4 (equivalent to 5 of other distros)
  kdm login screen ok [moment of logs, gpu crash dump]
  login
  kdm login screen freezes
  wait for disk led to stop
  right click brings desktop menu w/ letters missing
  guess start menu/logout position and logout
  kdm login screen ok
  login
  everything works normally
- whatever it is, it happens the very first time X starts, directly or by kdm.
  Subsequent x restarts work ok.

secondary symptoms (perhaps unrelated):
- during boot, before drm kicks in, output only covers the central ~1/3 of screen
- during boot, when drm kicks in, a black screen (random)
Comment 1 pdi 2014-06-28 14:09:57 UTC
Created attachment 101918 [details]
runlevel 4 messages excerpt
Comment 2 pdi 2014-06-28 14:10:44 UTC
Created attachment 101919 [details]
runlevel 4 syslog excerpt
Comment 3 pdi 2014-06-28 14:11:27 UTC
Created attachment 101920 [details]
runlevel 4 Xorg.0.log
Comment 4 pdi 2014-06-28 14:12:16 UTC
Created attachment 101921 [details]
runlevel 4 kdm.log
Comment 5 pdi 2014-06-28 14:13:02 UTC
Created attachment 101922 [details]
runlevel 3 messages excerpt
Comment 6 pdi 2014-06-28 14:13:34 UTC
Created attachment 101923 [details]
runlevel 3 syslog excerpt
Comment 7 pdi 2014-06-28 14:14:10 UTC
Created attachment 101924 [details]
runlevel 3 Xorg.0.log
Comment 8 pdi 2014-06-28 14:14:35 UTC
Created attachment 101925 [details]
runlevel 3 kdm.log
Comment 9 Chris Wilson 2014-06-30 09:34:17 UTC
Looks like an issue with stolen memory. Simple test:

diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
index 78fa532..2bce530 100644
--- a/drivers/gpu/drm/i915/i915_gem_stolen.c
+++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
@@ -330,6 +330,8 @@ int i915_gem_init_stolen(struct drm_device *dev)
        struct drm_i915_private *dev_priv = dev->dev_private;
        struct resource *r;
 
+       return 0;
+
 #ifdef CONFIG_INTEL_IOMMU
        if (intel_iommu_gfx_mapped && INTEL_INFO(dev)->gen < 8) {
                DRM_INFO("DMAR active, disabling use of stolen memory\n");
Comment 10 pdi 2014-07-01 16:17:59 UTC
Chris,

Thanks for your swift reply. By issuing 'patch -p1 < patchfile' from my /usr/src/linux I get:

patching file drivers/gpu/drm/i915/i915_gem_stolen.c
Hunk #1 FAILED at 330.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_gem_stolen.c.rej

I'll keep trying.
Comment 11 Chris Wilson 2014-07-01 16:22:41 UTC
It's a one line patch... Just return 0 from the start of i915_gem_init_stolen
Comment 12 pdi 2014-07-02 09:19:08 UTC
Created attachment 102121 [details]
runlevel 4 GPU crash dump (patch comment 9)

True enough, but against the latest kernel, not against the 3.14.5 I'm running. No matter. I built and installed the latest 3.16.0-rc3, with the patch from Comment 9. The gpu crash still occurs and I attach the dump. The overall behaviour is a little better in that the black screens appear now as a rare exception.
Comment 13 pdi 2014-07-02 09:20:23 UTC
Created attachment 102123 [details]
runlevel 4 messages excerpt (patch comment 9)
Comment 14 Chris Wilson 2014-07-04 08:42:34 UTC
Well that does rule it out as being a conflict over stolen memory. Can you please attach full boot log with drm.debug=6 for the black screen?
Comment 15 pdi 2014-07-04 12:03:09 UTC
Created attachment 102267 [details]
runlevel 4 dmesg with drm.debug=6

Still with kernel 3.16.0-rc3, and applied patch from comment 9.

A few notes that might help.

[   11.014827] [Firmware Bug]: Duplicate ACPI video bus devices for the same VGA controller, please try module parameter "video.allow_d
uplicates=1"if the current driver doesn't work.
-- For this I have tried both 'video=SVIDEO-1:d' and 'video.allow_d
uplicates='0|1 with no result.

[  107.248698] i915: render error detected, EIR: 0x00000010
-- This is the first login screen. It is about where the black screen appeared with kernel 3.14.5. With 3.16.0-rc3, there is usually no black screen, but the remainder of the initial description still happens, ie login screen doesn't change to desktop and you have to logout and login again before you can work normally. I have to point out that to diminish the chance of a black screen during logout, I have in kdmrc 'TerminateServer=true', so at each logout the X server restarts.

[  336.708729] [drm:drm_mode_getconnector] [CONNECTOR:7:?]
-- This must be the beginning of the first login.

[  428.826241] [drm:drm_mode_getconnector] [CONNECTOR:7:?]
-- This must be the beginning of the second login. It may be irrelevant, but it is noticeably shorter. It feels like that too, the second login.

Thanks for keeping at it.
Comment 16 Jairo Miramontes 2015-08-11 14:15:22 UTC
Closed after more than one year of inactivity. Feel free to reopen if needed. Thanks


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.