Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2014 18:00:03 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        Nathan Whitehorn <nwhitehorn@freebsd.org>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: Xorg/xfce4 failing on Dual Processor G4 PowerMac's BUT Single Processor G4 PowerMac works (same boot SSD)...
Message-ID:  <6DE6C98D-F553-4F59-A72A-AEA881DC1C65@dsl-only.net>
In-Reply-To: <5408976A.5080106@freebsd.org>
References:  <4D86DDCB-FF04-4EA2-9703-8B74BBF31C7E@dsl-only.net> <EDE36402-30CE-4747-8BDD-EDD82D8C308F@dsl-only.net> <D42F3E26-8D35-4C8B-A695-AA380ED888E1@dsl-only.net> <EF019CAD-6BAB-431D-A239-0644C0634C24@dsl-only.net> <540386C6.4060004@freebsd.org> <7AFF7E0F-6BB0-4972-A629-61910CE001C2@dsl-only.net> <540393F3.5060508@freebsd.org> <D53F6E61-13E3-4473-ABAD-F72BD86E1083@dsl-only.net> <2B74B670-7463-47D1-B0AF-BDBFEE8823A4@dsl-only.net> <1B729E38-6495-4240-B9E2-A48238E4E830@dsl-only.net> <D960F3AF-7498-4222-96E9-654E9B672EF7@dsl-only.net> <38A1300F-E5A4-4A71-A9CF-A7BED66E0BDF@dsl-only.net> <5408976A.5080106@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The below includes it reporting getting a "failed to set mtrr: File =
exists" notice. (A Intel P6+ concept?)


I have since rebuilt (buildworld, kernel, installworld; portmaster -af) =
from the same /usr/src/... and /usr/ports/... on that same SSD based on =
/etc/make.conf having:

WITH_DEBUG_FILES=3D
WITHOUT_CLANG=3D # because otherwise it leads to buildworld failures =
with the above enabled
WITH_DEBUG=3D

Unfortunately uname -a loses the r268571 reference in the process, =
leaving less of a clue what the build is based on.

In this context the script logfile for running on a PowerMac G4 ends up =
recording "failed to set mtrr: File exists":

> root@FBSDG4S0:~ # startxfce4 -- -logverbose 9^M
> /usr/local/bin/startxfce4: Starting X server
>=20
>=20
> X.Org X Server 1.12.4
> Release Date: 2012-08-27
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 10.0-STABLE powerpc=20
> Current Operating System: FreeBSD FBSDG4S0 10.0-STABLE FreeBSD =
10.0-STABLE #0: Thu Sep  4 00:50:31 PDT 2014     =
root@FBSDG4S0:/usr/obj/usr/src/sys/GENERIC powerpc
> Build Date: 04 September 2014  06:13:34AM
> =20
> Current version of pixman: 0.32.4
>         Before reporting problems, check http://wiki.x.org
>         to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (=3D=3D) default setting,
>         (++) from command line, (!!) notice, (II) informational,
>         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Thu Sep  4 15:14:07 =
2014
> (=3D=3D) Using config file: "/etc/X11/xorg.conf"
> failed to set mtrr: File exists
> xfce4-session: Fatal IO error 35 (Resource temporarily unavailable) on =
X server :0.
> xinit: connection to X server lost
> root@FBSDG4S0:~ # xfwm4: Fatal IO error 35 (Resource temporarily =
unavailable) on X server :0.0.
> root@FBSDG4S0:~ #=20

The G5 PowerMac does not display the "failed to set mtrr: File exists" =
message when booted from the same boot SSD and startxfce4 -- -logverbose =
9 is used (but with xorg.conf's BusID changed to match the =
PowerMac7,11's BusID). The G5 context works fine. (I've not tried the =
single processor G4 context yet.)

Note: I'm using the G4 NVIDIA PowerMac for most G4 expirements because =
it allows me to Option-Fn to get to VTn and see thing there and so I can =
avoid reboots.


The last thing that dmesg -a shows after the G4 startxfce4 -- =
-logverbose 9 is my logging in as root:

> $ dmesg -a | tail
> Configuring syscons: blanktime.
> Performing sanity check on sshd configuration.
> Starting sshd.
> Starting sendmail_submit.
> Starting sendmail_msp_queue.
> Starting cron.
> Starting background file system checks in 60 seconds.
>=20
> Thu Sep  4 14:21:42 PDT 2014
> Sep  4 14:21:48 FBSDG4S0 login: ROOT LOGIN (root) ON ttyv0

I do not see anything earlier that looks to be of interest. About the =
only thing remotely error-like are some examples of "hid_get_item: =
Number of items truncated to 255".


/var/log/Xorg.0.log's ends in:

> [   182.354] (II) Module mouse: vendor=3D"X.Org Foundation"
> [   182.354]    compiled for 1.12.4, module version =3D 1.9.0
> [   182.354]    Module class: X.Org XInput Driver
> [   182.354]    ABI class: X.Org XInput driver, version 16.0
> [   182.354] (II) Using input driver 'mouse' for 'Apple Optical USB =
Mouse'
> [   182.354] (**) Apple Optical USB Mouse: always reports core events
> [   182.354] (**) Option "Device" "/dev/sysmouse"
> [   182.354] (=3D=3D) Apple Optical USB Mouse: Protocol: "Auto"
> [   182.354] (**) Apple Optical USB Mouse: always reports core events
> [   182.355] (=3D=3D) Apple Optical USB Mouse: Emulate3Buttons, =
Emulate3Timeout: 50
> [   182.355] (**) Apple Optical USB Mouse: ZAxisMapping: buttons 4 and =
5
> [   182.355] (**) Apple Optical USB Mouse: Buttons: 5
> [   182.355] (**) Option "config_info" =
"hal:/org/freedesktop/Hal/devices/usb_device_5ac_304_noserial_if0"
> [   182.355] (II) XINPUT: Adding extended input device "Apple Optical =
USB Mouse" (type: MOUSE, id 7)
> [   182.356] (**) Apple Optical USB Mouse: (accel) keeping =
acceleration scheme 1
> [   182.356] (**) Apple Optical USB Mouse: (accel) acceleration =
profile 0
> [   182.356] (**) Apple Optical USB Mouse: (accel) acceleration =
factor: 2.000
> [   182.356] (**) Apple Optical USB Mouse: (accel) acceleration =
threshold: 4
> [   182.356] (II) Apple Optical USB Mouse: SetupAuto: hw.iftype is 4, =
hw.model is 0
> [   182.356] (II) Apple Optical USB Mouse: SetupAuto: protocol is =
SysMouse

I.e., the Xorg quit is silent. Again I do not see anything earlier that =
looks to be of interest.



Xorg is suddenly, silently quitting. And it is leaving all associated =
log files with older modification date/times/content from what I can =
tell. No core file either. "failed to set mtrr: File exists" may explain =
this. I've not started investigating it yet.



Side notes:

I've not investigated yet if there is a way around gdb Xorg's run :0 =
under powerpc/GENERIC getting:

> cannot get thread event message: generic error


and gdb's cont then getting:

> suspend error: generic error


I've also seen for other things I've tried with Xorg involved:

> cannot find new threads: generic error


and

> no thread to satisfy query


On the G5 PowerMac's using powerpc64/GENERIC64 boot SSD's I have no such =
problems with threading for gdb Xorg: only the powerpc/GENERIC boot =
SSD's have this problem and the gdb thread issues happen on G4's and =
G5's when booted from powerpc/GENERIC boot SSD's.



=3D=3D=3D
Mark Millard
markmi@dsl-only.net

On Sep 4, 2014, at 9:46 AM, Nathan Whitehorn <nwhitehorn@freebsd.org> =
wrote:

Anything in dmesg or in /var/log/Xorg.0.log? What happens if you set =
logverbose 9?
-Nathan

On 08/31/14 17:27, Mark Millard wrote:
> As an example of how sudden and arbitrary the silent-quit of the X =
server is:
>=20
> The partial display update currently on my ADC display has =
approximating the top 1/2 updated and the bottom half not updated (still =
black).
>=20
> But the boundary is somewhat interesting: The last updated =
raster/pixel line has its left side updated (a uniform grey desktop =
color) and its right side not updated (still black).
>=20
> So the silent abort stopped the update mid-raster/pixel line.
>=20
> =3D=3D=3D
> Mark Millard
> markmi at dsl-only.net
>=20
> On Aug 31, 2014, at 4:49 PM, Mark Millard <markmi@dsl-only.net> wrote:
>=20
> [E-mail history trimmed this time.]
>=20
> I used script to log my startxfce4 command and what it produces. With =
only the ADC connected this results in various "Unhandled monitor type =
0" notices as part of normal operation.
>=20
> The script output shows that the X server quit. There is no core file =
left in the directory.
>=20
> Thunar: Fatal IO error 35 (Resource temporarily unavailable) on X =
server :0.
> xfwm4: Fatal IO error 35 (Resource temporarily unavailable) on X =
server :0.0.
> xinit: connection to X server lost
> xfdesktop: Fatal IO error 35 (Resource temporarily unavailable) on X =
server :0.0.
>=20
> (xfsettingsd:984): GVFS-RemoteVolumeMonitor-WARNING **: invoking =
IsSupported() failed for remote volume monitor with dbus name =
org.gtk.Private.GPhoto2VolumeMonitor: =
org.freedesktop.DBus.Error.Disconnected: Connection was disconnected =
before a reply was received
> root@FBSDG4S0:~ # xfsettingsd: Fatal IO error 2 (No such file or =
directory) on X server :0.0.
>=20
> The full script file contents are:
>=20
> Script started on Sun Aug 31 16:34:12 2014
> You have mail.
> root@FBSDG4S0:~ # startxfce4^M
> /usr/local/bin/startxfce4: Starting X server
>=20
>=20
> X.Org X Server 1.12.4
> Release Date: 2012-08-27
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 10.0-STABLE powerpc=20
> Current Operating System: FreeBSD FBSDG4S0 10.0-STABLE FreeBSD =
10.0-STABLE #0 r268571: Sun Jul 13 05:15:31 UTC 2014     =
root@grind.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC =
powerpc
> Build Date: 21 July 2014  07:18:49PM
> =20
> Current version of pixman: 0.32.4
>         Before reporting problems, check http://wiki.x.org
>         to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (=3D=3D) default setting,
>         (++) from command line, (!!) notice, (II) informational,
>         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 31 16:34:23 =
2014
> (=3D=3D) Using config file: "/etc/X11/xorg.conf"
>   XRANDR name: DVI-1
>   Connector: DVI-I
>   CRT2: INTERNAL_DAC2
>   DFP1: INTERNAL_TMDS1
>   DDC reg: 0x64
>   XRANDR name: DVI-0
>   Connector: DVI-I
>   CRT1: INTERNAL_DAC1
>   DFP2: INTERNAL_DVO1
>   DDC reg: 0x60
>   XRANDR name: S-video
>   Connector: S-video
>   TV1: INTERNAL_DAC2
>   DDC reg: 0x0
> finished output detect: 0
> Unhandled monitor type 0
> finished output detect: 1
> finished output detect: 2
> finished all detect
> Unhandled monitor type 0
> Entering TV Save
> Save TV timing tables
> saveTimingTables: reading timing tables
> TV Save done
> disable FP1
> disable FP1
> disable TV
> disable FP1
> init memmap
> init common
> init crtc1
> init pll1
> freq: 117130000
> best_freq: 117132353
> best_feedback_div: 295
> best_frac_feedback_div: 0
> best_ref_div: 34
> best_post_div: 2
> restore memmap
> restore common
> restore crtc1
> restore pll1
> finished PLL1
> set RMX
> set FP1
> enable FP1
> disable TV
> Unhandled monitor type 0
> Thunar: Fatal IO error 35 (Resource temporarily unavailable) on X =
server :0.
> xfwm4: Fatal IO error 35 (Resource temporarily unavailable) on X =
server :0.0.
> xinit: connection to X server lost
> xfdesktop: Fatal IO error 35 (Resource temporarily unavailable) on X =
server :0.0.
>=20
> (xfsettingsd:984): GVFS-RemoteVolumeMonitor-WARNING **: invoking =
IsSupported() failed for remote volume monitor with dbus name =
org.gtk.Private.GPhoto2VolumeMonitor: =
org.freedesktop.DBus.Error.Disconnected: Connection was disconnected =
before a reply was received
> root@FBSDG4S0:~ # xfsettingsd: Fatal IO error 2 (No such file or =
directory) on X server :0.0.
>=20
> =3D=3D=3D
> Mark Millard
> markmi at dsl-only.net
>=20
>=20
>=20





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6DE6C98D-F553-4F59-A72A-AEA881DC1C65>