Skip to contentSkip to conversation

Problem: drm/gma500_gfx on fit-pc2 shows only half of the screen

DISCUSSION Alexander Bigga - Software 2 participants 3 messages Jan 28, 2012

lore
Share & tools
lore
#0 lore raw

Hi Alan,

first: thanks a lot for your work to bring support for GMA500 to mainline kernel!

My problem: with the current gma500_gfx driver of kernel 3.3.0-rc1 (pulled git yesterday 2012-01-27), the X-server is only shown in the top half of the screen after booting on my fit-pc2 [1]. The bottom half keeps the last output of the console. During booting the console is shown on the complete screen in the correct monitor resolution.

I found a simple workaround: I only have to "stop lightdm" and do "start lightdm" afterwards. (same works with gdm)

But maybe, you are interested in this bug and/or I can provide you some information to fix this. Personally, I have no idea to look for :-(

Please let me know, if I could help examining this issue.

Thanks,

Alexander

my system:

- fit-pc2: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz
- Monitor connected via DVI through HDMI connector to the fit-pc2
- Resolution 1440x900 (this is autodetected! in older staging versions I had to add 'video=DVI-D-1:1440x900' to the command line)
- kernel: Linux ab-fit 3.3.0-rc1+ #14 SMP PREEMPT Fri Jan 27 07:45:50 CET 2012 i686 i686 i386 GNU/Linux
- kernel driver: drivers/gpu/drm/gma500/
- Distribution: Ubuntu 11.10
- X.Org X Server 1.10.4, fbdev driver

extract from /var/log/Xorg.0.log

[    35.636] (II) Module fbdevhw: vendor="X.Org Foundation"
[    35.636]    compiled for 1.10.4, module version = 0.0.2
[    35.636]    ABI class: X.Org Video Driver, version 10.0
[    35.637] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    35.637] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    35.637] (**) FBDEV(0): claimed PCI slot 0@0:2:0
[    35.637] (II) FBDEV(0): using default device
[    35.638] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[    35.638] (==) FBDEV(0): RGB weight 888
[    35.638] (==) FBDEV(0): Default visual is TrueColor
[    35.638] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    35.638] (II) FBDEV(0): hardware: psbfb (video memory: 7200kB)
[    35.638] (II) FBDEV(0): checking modes against framebuffer device...
[    35.639] (II) FBDEV(0): checking modes against monitor...
[    35.639] (--) FBDEV(0): Virtual size is 1440x900 (pitch 1440)
[    35.639] (**) FBDEV(0):  Built-in mode "current"
[    35.639] (==) FBDEV(0): DPI set to (96, 96)
[    35.639] (II) Loading sub module "fb"
[    35.640] (II) LoadModule: "fb"
[    35.642] (II) Loading /usr/lib/xorg/modules/libfb.so
[    35.727] (II) Module fb: vendor="X.Org Foundation"
[    35.727]    compiled for 1.10.4, module version = 1.0.0
[    35.727]    ABI class: X.Org ANSI C Emulation, version 0.4
[    35.727] (**) FBDEV(0): using shadow framebuffer
[    35.727] (II) Loading sub module "shadow"
[    35.727] (II) LoadModule: "shadow"
[    35.727] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    35.767] (II) Module shadow: vendor="X.Org Foundation"
[    35.767]    compiled for 1.10.4, module version = 1.1.0
[    35.767]    ABI class: X.Org ANSI C Emulation, version 0.4
[    35.767] (==) Depth 24 pixmap format is 32 bpp
[    36.096] (==) FBDEV(0): Backing store disabled
[    36.097] (==) FBDEV(0): DPMS enabled

extract from /var/log/kern.log

[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.3.0-rc1+

root=UUID=3132d439-0340-4405-a73a-824b8cd5893a ro acpi_osi=Linux acpi_backlight=vendor acpi_skip_timer nomodeset

[    6.243443] gma500 0000:00:02.0: setting latency timer to 64
[    6.502413] gma500 0000:00:02.0: Found no modes on the lvds, ignoring the LVDS
[    6.889748] gma500 0000:00:02.0: allocated 1440x900 fb
[    6.890041] fbcon: psbfb (fb0) is primary device
[    7.163419] Console: switching to colour frame buffer device 180x56
[    7.177899] fb0: psbfb frame buffer device
[    7.177987] drm: registered panic notifier
[    7.178092] [drm] Initialized gma500 1.0.0 2011-06-06 for 0000:00:02.0 on

minor 0

[1] http://www.fit-pc.com/web/fit-pc/fit-pc2-specifications/

Signature · 3 lines
Alexander Bigga

PGP Key: http://linux.bigga.de/contact/

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 3 lines

top half of the screen after booting on my fit-pc2 [1]. The bottom half keeps the last output of the console. During booting the console is shown on the complete screen in the correct monitor resolution.

I have an idea what that is actually and I've seen similar on Fedora I think

Can you do the following. In gma500/framebuffer.c find the code that reads

        info->flags = FBINFO_DEFAULT;
        if (dev_priv->ops->accel_2d && pitch_lines > 8) /* 2D engine */
                info->fbops = &psbfb_ops;
        else if (gtt_roll) {    /* GTT rolling seems best */
                info->fbops = &psbfb_roll_ops;
                info->flags |= FBINFO_HWACCEL_YPAN;
        } else  /* Software */
                info->fbops = &psbfb_unaccel_ops;

and change it to read

        info->flags = FBINFO_DEFAULT;
	info->fbops = &psbfb_unaccel_ops;

and see if that fixes it.

If so I know what is going on.

Alan

#2 lore raw

Hi Alan,

Quoted 12 lines · you

Can you do the following. In gma500/framebuffer.c find the code that reads

        info->flags = FBINFO_DEFAULT;
        if (dev_priv->ops->accel_2d && pitch_lines > 8) /* 2D engine */
                info->fbops = &psbfb_ops;
        else if (gtt_roll) {    /* GTT rolling seems best */
                info->fbops = &psbfb_roll_ops;
                info->flags |= FBINFO_HWACCEL_YPAN;
        } else  /* Software */
                info->fbops = &psbfb_unaccel_ops;
Quoted 5 lines

and change it to read

        info->flags = FBINFO_DEFAULT;
	info->fbops = &psbfb_unaccel_ops;

Ok. I commented the code above and replaced it with the two lines. Correct?

Quoted 1 line

and see if that fixes it.

Unfortunately not :-( It's the same behaviour.

Quoted 1 line

If so I know what is going on.

And if not? ;-)

Alexander

Signature · 3 lines
Alexander Bigga

PGP Key: http://linux.bigga.de/contact/