Bug 22660 - [i915][kernel modesetting] display modes not detected with KMS
Summary: [i915][kernel modesetting] display modes not detected with KMS
Status: CLOSED DUPLICATE of bug 20801
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Gordon Jin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 07:40 UTC by Michael S. Tsirkin
Modified: 2017-07-24 23:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg with kms enabled (82.04 KB, text/plain)
2009-07-07 07:41 UTC, Michael S. Tsirkin
no flags Details
dmesg with kms disabled (80.15 KB, text/plain)
2009-07-07 07:41 UTC, Michael S. Tsirkin
no flags Details
intel reg dumper output with kms enabled (11.01 KB, text/plain)
2009-07-07 07:42 UTC, Michael S. Tsirkin
no flags Details
intel reg dumper output with kms disabled (11.14 KB, text/plain)
2009-07-07 07:42 UTC, Michael S. Tsirkin
no flags Details
xorg log with kms enabled (27.32 KB, text/plain)
2009-07-07 07:43 UTC, Michael S. Tsirkin
no flags Details
xorg log with kms disabled (60.13 KB, text/plain)
2009-07-07 07:43 UTC, Michael S. Tsirkin
no flags Details
xrandr verbose output with kms enabled (2.72 KB, application/octet-stream)
2009-07-07 07:43 UTC, Michael S. Tsirkin
no flags Details
xrandr verbose output with kms disabled (7.23 KB, text/plain)
2009-07-07 07:44 UTC, Michael S. Tsirkin
no flags Details
xorg conf (2.21 KB, application/octet-stream)
2009-07-07 07:44 UTC, Michael S. Tsirkin
no flags Details
lspci -vv output (27.53 KB, text/plain)
2009-07-07 07:45 UTC, Michael S. Tsirkin
no flags Details

Description Michael S. Tsirkin 2009-07-07 07:40:30 UTC
On T500 thinkpad with intel graphics, I enabled KMS on i915, and noticed that
only a single mode shows up in xrandr output.  Without kms, all modes are supported. Tested on 2.6.31-rc2, 2.6.30 and 2.6.29.4-167 that ships with Fedora 11.

With kms enabled:

Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 331mm x
+207mm
   1680x1050      60.1*+   50.1
DVI1 disconnected (normal left inverted right x axis y axis)
DVI2 disconnected (normal left inverted right x axis y axis)

Without kms enabled:

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1680 x 1680
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1280x1024+0+0 (normal left inverted right x axis y axis) 331mm x
+207mm
   1680x1050      60.1 +   50.1
   1400x1050      74.8     60.0
   1280x1024      85.0     75.0     60.0*
   1280x960       85.0     60.0
   1152x864       75.0
   1024x768       85.0     75.0     70.1     60.0
   832x624        74.6
   800x600        85.1     72.2     75.0     60.3     56.2
   640x480        85.0     72.8     75.0     59.9
   720x400        85.0
   640x400        85.1
   640x350        85.1
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

System environment:
-- T500 with intel graphics i915
-- lspci output - attached
--  xf86-video-intel:2.7.0
-- xserver: 1.6.1.901 (1.6.2 RC 1)
-- mesa version:
   GL_RENDERER   = Mesa DRI Mobile Intel® GM45 Express Chipset 
      GEM 20090114 x86/MMX/SSE2
   GL_VERSION    = 2.1 Mesa 7.6-devel
   GL_VENDOR     = Tungsten Graphics, Inc
-- libdrm: 2.4.6
-- kernel: 2.6.31-rc2, 2.6.30 from kernel.org, 2.6.29.4-167
-- Linux distribution: Fedora 11
-- Machine : T500 with intel graphics
-- Display: LVDS

Reproducing steps:
boot with i915.modeset=0
  xrandr to see a list of modes for LVDS
boot with i915.modeset=1
  xrandr to see a single mode for LVDS1

Additional info:

attaching files for both kms (i915.modeset=1) and no kms (i915.modeset=0)
dmesg
intel reg dumper output
xorg.conf
Xorg.0.log
xrandr output
Comment 1 Michael S. Tsirkin 2009-07-07 07:41:08 UTC
Created attachment 27454 [details]
dmesg with kms enabled
Comment 2 Michael S. Tsirkin 2009-07-07 07:41:34 UTC
Created attachment 27455 [details]
dmesg with kms disabled
Comment 3 Michael S. Tsirkin 2009-07-07 07:42:07 UTC
Created attachment 27456 [details]
intel reg dumper output with kms enabled
Comment 4 Michael S. Tsirkin 2009-07-07 07:42:29 UTC
Created attachment 27457 [details]
intel reg dumper output with kms disabled
Comment 5 Michael S. Tsirkin 2009-07-07 07:43:01 UTC
Created attachment 27458 [details]
xorg log with kms enabled
Comment 6 Michael S. Tsirkin 2009-07-07 07:43:27 UTC
Created attachment 27459 [details]
xorg log with kms disabled
Comment 7 Michael S. Tsirkin 2009-07-07 07:43:58 UTC
Created attachment 27460 [details]
xrandr verbose output with kms enabled
Comment 8 Michael S. Tsirkin 2009-07-07 07:44:26 UTC
Created attachment 27461 [details]
xrandr verbose output with kms disabled
Comment 9 Michael S. Tsirkin 2009-07-07 07:44:54 UTC
Created attachment 27462 [details]
xorg conf
Comment 10 Michael S. Tsirkin 2009-07-07 07:45:23 UTC
Created attachment 27463 [details]
lspci -vv output
Comment 11 Michael S. Tsirkin 2009-07-07 07:46:39 UTC
As an additional comment, I observe this
with 32 bit userspace, and with both 32 and 64 bit
kernel.
Comment 12 Gordon Jin 2009-07-07 18:31:13 UTC
Thanks for the detailed report.
This has been fixed in the latest xf86-vieo-intel driver (to be in the upcoming 2.8 release)

*** This bug has been marked as a duplicate of bug 20801 ***
Comment 13 Michael S. Tsirkin 2009-07-08 08:05:46 UTC
built latest bits. xrandr shows a lot of modes now,
however, no modes besides the max one work.
do I have to open another bug for this?
I'd rather not ...
Comment 14 Gordon Jin 2009-08-02 23:37:22 UTC
(In reply to comment #13)
> built latest bits. xrandr shows a lot of modes now,
> however, no modes besides the max one work.
> do I have to open another bug for this?
> I'd rather not ...

Please open a separate bug so we can better track it, since the info in logs will be different than here.
Comment 15 Michael S. Tsirkin 2009-08-03 02:08:23 UTC
Since I really need the external display which only supports 1024x768,
it might take me a bit of time till I play with kms again. BTW
http://bugs.freedesktop.org/show_bug.cgi?id=22329 seems similar,
but hard to be sure.



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.