lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200910270254.26865.denys@visp.net.lb>
Date:	Tue, 27 Oct 2009 02:54:26 +0200
From:	Denys Fedoryschenko <denys@...p.net.lb>
To:	David Airlie <airlied@...ux.ie>, dri-devel@...ts.sourceforge.net,
	linux-kernel@...r.kernel.org
Subject: KMS + i915 + modeset=1 fails to detect correct output on laptop, blank/black screen

Hi

I try to compile 2.6.32-rc5-git3 with enabled CONFIG_DRM_I915_KMS, but got 
black screen on boot. After short investigation, i notice that i915.modeset=0 
is fine for me.

Here is what i got with modeset=1
[    1.053570] [drm] Initialized drm 1.1.0 20060810
[    1.063552] [drm] set up 7M of stolen space
[    1.608955] [drm] TV-14: set mode NTSC 480i 0
[    1.758390] fb0: inteldrmfb frame buffer device
[    1.771866] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 
0

I did just short patch to test my idea, and it was right, wrong output was 
detected:

static enum drm_connector_status
intel_tv_detect(struct drm_connector *connector)
{
        struct drm_crtc *crtc;
        struct drm_display_mode mode;
        struct intel_output *intel_output = to_intel_output(connector);
        struct intel_tv_priv *tv_priv = intel_output->dev_priv;
        struct drm_encoder *encoder = &intel_output->enc;
        int dpms_mode;
        int type = tv_priv->type;

+       return connector_status_disconnected;
+

It works! So case is invalid detection of output device.
With patch it is:
[    0.620081] [drm] Initialized drm 1.1.0 20060810
[    0.632764] [drm] set up 7M of stolen space
[    0.879117] fb0: inteldrmfb frame buffer device
[    0.893140] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 
0

My hardware is:

00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory 
Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 
Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated 
Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio 
Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 
(rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI 
Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface 
Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE 
Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA 
AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 
03)
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg 
Wireless PCI Express Adapter (rev 01)
02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)

00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated 
Graphics Controller (rev 03)
        Subsystem: Hewlett-Packard Company Presario C700
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Region 0: Memory at d1100000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [d0] Power Management version 3
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
                Bridge: PM- B3+


Manufacturer: Hewlett-Packard
Product Name: Compaq Presario A900 Notebook PC
Version: F.34

Let me know if you need more information. I can apply also patches to get 
additional information.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ