Bug 552492 - X server locks when the kernel is of xen flavour
Summary: X server locks when the kernel is of xen flavour
Status: RESOLVED FIXED
: 548010 555172 (view as bug list)
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Xen (show other bugs)
Version: RC 2
Hardware: x86-64 openSUSE 11.2
: P5 - None : Major with 1 vote (vote)
Target Milestone: unspecified
Assignee: Jan Beulich
QA Contact: E-mail List
URL:
Whiteboard: maint:released:11.2:29469
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 13:16 UTC by Forgotten User fRmEabLy0D
Modified: 2018-07-03 20:19 UTC (History)
4 users (show)

See Also:
Found By: Community User
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Files from /var/log/gdm in tar format (80.00 KB, application/x-tar)
2009-11-04 13:16 UTC, Forgotten User fRmEabLy0D
Details
dmesg log for Xen Host (12.60 KB, application/x-gzip)
2009-11-04 16:29 UTC, Boris Derzhavets
Details
xend.log (1.60 KB, application/x-gzip)
2009-11-04 16:29 UTC, Boris Derzhavets
Details
X11 log (10.95 KB, application/x-gzip)
2009-11-04 16:30 UTC, Boris Derzhavets
Details
xend.log after adding required parameters to xen command line (1.69 KB, application/x-gzip)
2009-11-05 09:17 UTC, Boris Derzhavets
Details
dmesg log after adding required parameters to xen command line (12.52 KB, application/x-gzip)
2009-11-05 09:20 UTC, Boris Derzhavets
Details
tentative fix (2.09 KB, patch)
2009-11-05 11:52 UTC, Jan Beulich
Details | Diff
xm dmesg (1.87 KB, application/x-gzip)
2009-11-07 11:03 UTC, Boris Derzhavets
Details
dmesg log (13.03 KB, application/x-gzip)
2009-11-07 11:04 UTC, Boris Derzhavets
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User fRmEabLy0D 2009-11-04 13:16:25 UTC
Created attachment 325501 [details]
Files from /var/log/gdm in tar format

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091028 Iceweasel/3.5.4 (Debian-3.5.4-1)

Hello,

I try the opensuse 11.2 rc2 and I get a problem using XEN :
The Xserver does not work when launched with the xen kernel.

All is OK when I start with other kernels (desktop or failsafe) where X is working perfectly.



Reproducible: Always

Steps to Reproduce:
1. use the XEN kernel
2. try to use X
3. it's done
Actual Results:  
I have done no specific changes from the installation (out of the box).
When started nothing can be done, the keyboard does not allow to switch to another tty (Ctrl+Alt+F1 does nothing).
I can connect to the system through ssh from another system and even when i stop and restart the "xdm" service the screen stay the same as if nothing was done.
The problem seems to be with "gdm", but the same result was obtained with "kdm".




Some lines from /var/log/warn :
Nov  4 14:03:14 amdx2-2 gdm-simple-greeter[2393]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_type)' failed
Nov  4 14:03:14 amdx2-2 gdm-simple-greeter[2393]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed
===================================================
File : /var/log/gdm/:0-slave.log.1 :
Could not initialise connection to hald.
Normally this means the HAL daemon (hald) is not running or not ready.
Could not initialise connection to hald.
Normally this means the HAL daemon (hald) is not running or not ready.
=========================================================================
but hal seems to be running :
ps -ef | grep hal
104       1498     1  0 14:03 ?        00:00:00 /usr/sbin/hald --daemon=yes
root      1506  1498  0 14:03 ?        00:00:00 hald-runner
root      1595  1506  0 14:03 ?        00:00:00 hald-addon-input: Listening on /dev/input/event1 /dev/input/event3 /dev/input/event2
root      1626  1506  0 14:03 ?        00:00:00 hald-addon-storage: polling /dev/sr0 (every 16 sec)
104       1628  1506  0 14:03 ?        00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root      3896  3836  0 14:10 pts/0    00:00:00 grep hal
Comment 1 Forgotten User fRmEabLy0D 2009-11-04 13:29:13 UTC
My system is :
Proc : Dualcore AMD 4400+
Ram  : 8G
Disks : 160Go + 2x250 (mirror)

Remarks :
With another system disk (OpenSuse 11.1) all is OK, X works perfectly with the XEN kernel.
Comment 2 Boris Derzhavets 2009-11-04 16:29:07 UTC
Created attachment 325540 [details]
dmesg log for Xen Host
Comment 3 Boris Derzhavets 2009-11-04 16:29:46 UTC
Created attachment 325541 [details]
xend.log
Comment 4 Boris Derzhavets 2009-11-04 16:30:33 UTC
Created attachment 325542 [details]
X11 log
Comment 5 Boris Derzhavets 2009-11-04 16:35:05 UTC
Hardware config :-

CPU: C2D E8400
Board: ASUS P5Q3
Video: Radeon HD 4650
RAM: 4x2 GB Kingston KVR1333 (DDR3)
HDD: 250 GB Sata Seagate Barracuda

Issues with xend startup, X-server startup for xenified kernel.
Dmesg for booting kernel 2.6.31.5 under Xen is also attached.
Comment 6 Jan Beulich 2009-11-05 08:11:41 UTC
Could you add "mem=4G" to the Xen command line and retry?
Comment 8 Jan Beulich 2009-11-05 08:44:17 UTC
Oh, and please also provide "xm dmesg" output (after adding "loglvl=all guest_loglvl=all" to the Xen command line).
Comment 9 Boris Derzhavets 2009-11-05 09:13:16 UTC
X-Server starts now. However, xend still fails to start, so i can provide
dmesg & xend.log . View attachments
Comment 10 Boris Derzhavets 2009-11-05 09:17:00 UTC
Created attachment 325668 [details]
xend.log after adding required parameters to xen command line
Comment 11 Boris Derzhavets 2009-11-05 09:20:44 UTC
Created attachment 325670 [details]
dmesg log after adding required parameters to xen command line
Comment 12 Jan Beulich 2009-11-05 09:30:11 UTC
(In reply to comment #9)
> X-Server starts now. However, xend still fails to start, so i can provide
> dmesg & xend.log . View attachments

Can't say anything about the xend issue, you'll need a separate bug for that.

If restricting the memory to less than 4G works, then we may already have a fix available internally. We'll have to prepare a test kernel with that fix included, though (which may take some time).
Comment 13 Forgotten User fRmEabLy0D 2009-11-05 10:22:05 UTC
Hello,

I have a test with the mem=4G parameter on XEN, it works :
- X server starts
- I can start and use a VM through virt-manager
If there is a kernel patch to use the 8G in the machine I can compile a new kernel and test it.

Regards

JP P
Comment 14 Forgotten User fRmEabLy0D 2009-11-05 10:28:41 UTC
Hello,

Without the mem=4G parameter I can start a VM through command line and use it through ssh or even with X from another machine.
It works even when the keyboard is locked (after clicking on the graphic screen) while connecting to the server through ssh and launch a VM through command line.
So for me the problem is only with the X server not starting in a decent manner.
I see that if I do not click on the graphic screen all is OK (through command line) keyboard is OK and I can switch to a text console. 
If I click on the graphic screen I lose access to the keyboard, X uses 100% of a cpu but I can kill the X process and use the machine through ssh.

Regards

JP P
Comment 15 Jan Beulich 2009-11-05 11:52:08 UTC
Created attachment 325743 [details]
tentative fix

Please give this a try then.
Comment 16 Boris Derzhavets 2009-11-05 14:02:35 UTC
Where git (hg) tree is located ? 
What to clone , patch and build ?
I just installed OpenSuse 11.2 RC2 from DVD
Comment 17 Jan Beulich 2009-11-05 14:16:37 UTC
There's no tree to clone, just use kernel-source-*.<arch>.rpm.
Comment 18 Boris Derzhavets 2009-11-05 17:16:52 UTC
Sorry, my experience with Suse is limited.
I would be glad to test patch with step by step instruction.
I need xen-kernel source installed on the machine , but don't know
where to get kernel-source-???.x86_64.rpm ( i suspect kernel-xen-source ...)
Comment 19 Birger Kollstrand 2009-11-05 21:59:56 UTC
*** Bug 548010 has been marked as a duplicate of this bug. ***
Comment 20 Jan Beulich 2009-11-06 09:23:13 UTC
(In reply to comment #18)
> Sorry, my experience with Suse is limited.
> I would be glad to test patch with step by step instruction.
> I need xen-kernel source installed on the machine , but don't know
> where to get kernel-source-???.x86_64.rpm ( i suspect kernel-xen-source ...)

If you don't need the exact RC2 kernel, you could try ftp://ftp.suse.com/pub/projects/kernel/kotd/openSUSE-11.2/noarch/.
Comment 21 Boris Derzhavets 2009-11-06 19:55:08 UTC
> I can start and use a VM through virt-manager
I've reinstalled system and edited xen command line with mem=4G before
first attempt to load Xen Host. I've got alive Dom0 with running xend.
However, i was able to create F12 PV DomU only mannualy via local Apache Mirror.
Any attempt to run vm-install with --source http://IP-Dom0/f12 either
nfs:IP-Dom0:/mnt/tmp (nfs shared folder) causes vm-install to crash.
HTTP Error 404 for local or remote HTTP source.
Comment 22 Forgotten User fRmEabLy0D 2009-11-07 01:42:16 UTC
Hello,

I apply the given patch to vmalloc.c, recompile the kernel and it works.
The X server runs flawlessly even with the full memory (8G on my system) and I can use the graphical interface to launch VMs.

For me all is OK with the patch.

Regards

JP Pozzi

PS:
I will do more testing during on the daylight.
Comment 23 Boris Derzhavets 2009-11-07 11:01:58 UTC
Installed kernel-source.rpm and applied patch.
Ran make menuconfig in source directory and tuned xenified kernel per Suse as
usual.
"xm dmesg","dmesg" reports are attached.
Comment 24 Boris Derzhavets 2009-11-07 11:03:43 UTC
Created attachment 326136 [details]
xm dmesg
Comment 25 Boris Derzhavets 2009-11-07 11:04:51 UTC
Created attachment 326137 [details]
dmesg log
Comment 26 Jan Beulich 2009-11-09 08:04:45 UTC
(In reply to comment #23)
> Installed kernel-source.rpm and applied patch.
> Ran make menuconfig in source directory and tuned xenified kernel per Suse as
> usual.
> "xm dmesg","dmesg" reports are attached.

For the purposes of this bug, it would be nice to know if X now came up okay without the mem=4G workaround.
Comment 27 Boris Derzhavets 2009-11-09 09:24:43 UTC
Yes. X-Server comes up with 8 GB. You may already saw it dmesg log been attached
[   18.281144] [drm] Initialized drm 1.1.0 20060810
[   18.364297] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   18.364309] pci 0000:01:00.0: setting latency timer to 64
[   18.364491] [drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0
[   18.580107] [drm] Setting GART location based on new memory map
[   18.595268] [drm] Loading RV730/RV740 PFP Microcode
[   18.595292] [drm] Loading RV730/RV740 CP Microcode
[   18.610357] [drm] Resetting GPU
[   18.610415] [drm] writeback test succeeded in 1 usecs
Comment 28 Jan Beulich 2009-11-13 07:58:52 UTC
*** Bug 555172 has been marked as a duplicate of this bug. ***
Comment 29 Swamp Workflow Management 2010-01-04 10:53:02 UTC
Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop
Products:
openSUSE 11.2 (debug, i586, x86_64)