Re: EE Xorg.bin xf86PlatformMatchDriver - Segmentation fault - Server aborting

2014-09-06 Thread poma
On 06.09.2014 10:21, Hans de Goede wrote:
> Hi poma,
> 
> On 09/05/2014 11:19 PM, poma wrote:
>> ...
>>
>> - xorg-x11-server-Xorg-1.16.99.1-1.fc21.x86_64
>>   commit 3a51418
>>   *auto-detection* PASSED
>>
>> - xorg-x11-server-Xorg-1.16.99.1-2.fc21.x86_64
>>   commit 3a51418 + xorg-non-pci-v2.patch[1] (rebased xorg-non-pci.patch)
>>   *auto-detection* BROKEN
> 
> As discussed in another email discussion, we're dropping xorg-non-pci.patch,
> as upstream has a different solution. I've just kicked of builds for F-21+
> with this patch dropped, which should resolve your issue.
> 
> Regards,
> 
> Hans
> 

Thanks!


poma


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: EE Xorg.bin xf86PlatformMatchDriver - Segmentation fault - Server aborting

2014-09-06 Thread poma
...

Rebased[1] patch[2] for the modesetting also didn't help, 
- xorg-x11-drv-modesetting-0.9.0-4.fc21.x86_64

[1] 
RFC-modesetting-Add_workaround_for_platform_devices_and_supreme_xserver.patch

--- a/src/driver.c  2014-06-26 10:20:17.0 +0200
+++ b/src/driver.c  2014-09-06 06:56:32.862956426 +0200
@@ -136,6 +136,8 @@
 
 int modesettingEntityIndex = -1;
 
+static Bool supports_non_pci_platform_devs = FALSE;
+
 static MODULESETUPPROTO(Setup);
 
 static XF86ModuleVersionInfo VersRec = {
@@ -229,6 +231,28 @@
 fd = open_hw(dev);
 if (fd != -1) {
 int ret = check_outputs(fd);
+/* if called in platformProbe path, and server does not
+ * supports_non_pci_platform_devs then we need to reject
+ * and fallback to old probe.   Otherwise things won't
+ * even work if user has a .conf file, thanks to autoAddGPU
+ * loop.
+ */
+if (platform_dev && !supports_non_pci_platform_devs) {
+drmSetVersion sv;
+char *busid;
+
+sv.drm_di_major = 1;
+sv.drm_di_minor = 4;
+sv.drm_dd_major = -1;   /* Don't care */
+sv.drm_dd_minor = -1;   /* Don't care */
+
+drmSetInterfaceVersion(fd, &sv);
+
+busid = drmGetBusid(fd);
+if (busid && !strncmp(busid, "platform:", 9))
+ret = FALSE;
+drmFreeBusid(busid);
+}
 close(fd);
 return ret;
 }
@@ -284,6 +308,10 @@
 return Options;
 }
 
+#if 1 /* XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(???) */
+#  define SERVER_SUPPORTS_NON_PCI_PLATFORM_DEVS 12
+#endif
+
 static Bool
 ms_driver_func(ScrnInfoPtr scrn, xorgDriverFuncOp op, void *data)
 {
@@ -298,6 +326,9 @@
 case SUPPORTS_SERVER_FDS:
 return TRUE;
 #endif
+case SERVER_SUPPORTS_NON_PCI_PLATFORM_DEVS:
+supports_non_pci_platform_devs = TRUE;
+return TRUE;
default:
return FALSE;
 }


I wonder whether this has anything to do with DisplayLink USB Display Adapter 
per se, and are these devices properly supported from day one.
Mr. Keith I see[3] you also have one such device, can you help with advice?


poma


[2] http://lists.x.org/archives/xorg-devel/2014-June/042819.html
[3] http://keithp.com/blogs/hotplug-displaylink/

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: EE Xorg.bin xf86PlatformMatchDriver - Segmentation fault - Server aborting

2014-09-05 Thread poma
...

- xorg-x11-server-Xorg-1.16.99.1-1.fc21.x86_64
  commit 3a51418
  *auto-detection* PASSED

- xorg-x11-server-Xorg-1.16.99.1-2.fc21.x86_64
  commit 3a51418 + xorg-non-pci-v2.patch[1] (rebased xorg-non-pci.patch)
  *auto-detection* BROKEN

/var/log/Xorg.0.log
[29.408] 
This is a pre-release version of the X server from Fedora Project.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
[29.409] 
X.Org X Server 1.16.99.1
Release Date: 2014-07-17
[29.409] X Protocol Version 11, Revision 0
[29.409] Build Operating System: lnx 3.17.0-0.rc3.git0.1.fc22.x86_64 
[29.409] Current Operating System: Linux rawhide642 
3.17.0-0.rc3.git0.1.fc22.x86_64 #1 SMP Mon Sep 1 14:47:34 UTC 2014 x86_64
[29.409] Kernel command line: 
BOOT_IMAGE=/vmlinuz-3.17.0-0.rc3.git0.1.fc22.x86_64 
root=UUID=a07556d2-6fe2-417f-8202-c54c07fd9386 
drm_kms_helper.edid_firmware=DVI-I-1:edid/848x480.bin  
initrd=/initramfs-3.17.0-0.rc3.git0.1.fc22.x86_64.img
[29.409] Build Date: 05 September 2014  09:11:28PM
[29.410] Build ID: xorg-x11-server 1.16.99.1-2.fc21 
[29.410] Current version of pixman: 0.32.6
[29.410]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[29.410] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[29.411] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep  5 22:40:21 
2014
[29.411] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[29.426] (==) No Layout section.  Using the first Screen section.
[29.426] (==) No screen section available. Using defaults.
[29.426] (**) |-->Screen "Default Screen Section" (0)
[29.427] (**) |   |-->Monitor ""
[29.427] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[29.427] (==) Automatically adding devices
[29.427] (==) Automatically enabling devices
[29.427] (==) Automatically adding GPU devices
[29.428] (==) FontPath set to:
catalogue:/etc/X11/fontpath.d,
built-ins
[29.428] (==) ModulePath set to "/usr/lib64/xorg/modules"
[29.428] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[29.428] (II) Loader magic: 0x81be40
[29.428] (II) Module ABI versions:
[29.428]X.Org ANSI C Emulation: 0.4
[29.428]X.Org Video Driver: 18.0
[29.428]X.Org XInput driver : 21.0
[29.428]X.Org Server Extension : 8.0
[29.434] (EE) systemd-logind: failed to get session: PID 655 does not 
belong to any known session
[29.435] (II) xfree86: Adding drm device (/dev/dri/card1)
[29.436] (II) xfree86: Adding drm device (/dev/dri/card0)
[29.460] (--) PCI:*(0:1:0:0) 10de:087d:1849:087d rev 177, Mem @ 
0xfb00/16777216, 0xe000/268435456, 0xf600/33554432, I/O @ 
0xec00/128, BIOS @ 0x/131072
[29.461] (II) LoadModule: "glx"
[29.462] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[29.487] (II) Module glx: vendor="X.Org Foundation"
[29.487]compiled for 1.16.99.1, module version = 1.0.0
[29.488]ABI class: X.Org Server Extension, version 8.0
[29.488] (==) AIGLX enabled
[29.488] (EE) 
[29.488] (EE) Backtrace:
[29.490] (EE) 0: /usr/libexec/Xorg.bin (OsSigHandler+0x29) [0x59ab89]
[29.491] (EE) 1: /lib64/libpthread.so.0 (__restore_rt+0x0) [0x7f0d482947cf]
[29.492] (EE) 2: /usr/libexec/Xorg.bin (xf86PlatformMatchDriver+0x31d) 
[0x49a3fd]
[29.494] (EE) 3: /usr/libexec/Xorg.bin 
(listPossibleVideoDrivers.constprop.0+0x3d) [0x49d54d]
[29.508] (EE) 4: /usr/libexec/Xorg.bin (autoConfigDevice+0xfe) [0x49da3e]
[29.509] (EE) 5: /usr/libexec/Xorg.bin (InitOutput+0xb56) [0x47b9e6]
[29.510] (EE) 6: /usr/libexec/Xorg.bin (dix_main+0x1ea) [0x43cd5a]
[29.512] (EE) 7: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f0d47edd0e0]
[29.514] (EE) 8: /usr/libexec/Xorg.bin (_start+0x29) [0x4273ae]
[29.516] (EE) 9: ? (?+0x29) [0x29]
[29.516] (EE) 
[29.516] (EE) Segmentation fault at address 0x0
[29.517] (EE) 
Fatal server error:
[29.517] (EE) Caught signal 11 (Segmentation fault). Server aborting
[29.517] (EE) 
[29.517] (EE) 
Please consult the Fedora Project support 
 at http://wiki.x.org
 for help. 
[29.517] (EE) Please also check the log file at "/var/log/Xorg.0.log" for 
additional information.
[29.517] (EE) 


[1] xorg-non-pci-v2.patch

diff -ur a/hw/xfree86/common/xf86Init.c

EE Xorg.bin xf86PlatformMatchDriver - Segmentation fault - Server aborting

2014-09-04 Thread poma

First of all, I welcome the revered readership.
Graciously invite you to help me figure out what's going on here.

With:
- xorg-x11-server-Xorg-1.16.0-5.fc22.x86_64
- xorg-x11-server-Xorg-1.16.0-6.fc22.x86_64
including:
http://pkgs.fedoraproject.org/cgit/xorg-x11-server.git/commit/?id=5556cee
  ...
  # submitted http://lists.x.org/archives/xorg-devel/2014-June/042826.html
  # needed to allow X to start on arm and other devices without video on pci 
buses
  # There's a slight variant upstream but it doesn't build against 1.16.0 atm
  # rebase of Rob Clark's patches
  Patch10300: xorg-non-pci.patch
  ...
  %changelog
  ...
  * Mon Aug 25 2014 Peter Robinson  1.16.0-5
  - re-add support for non pci platform devices
  ...
i.e.
http://pkgs.fedoraproject.org/cgit/xorg-x11-server.git/plain/xorg-non-pci.patch

this happens *with* *auto-detection* i.e. without "xorg.conf[.d/*.conf]" 
configuration files:

$ cat /var/log/Xorg.0.log
[29.277] 
X.Org X Server 1.16.0
Release Date: 2014-07-16
[29.277] X Protocol Version 11, Revision 0
[29.277] Build Operating System:  3.15.8-200.fc20.x86_64 
[29.277] Current Operating System: Linux rawhide642 
3.17.0-0.rc3.git0.1.fc22.x86_64 #1 SMP Mon Sep 1 14:47:34 UTC 2014 x86_64
[29.277] Kernel command line: 
BOOT_IMAGE=/vmlinuz-3.17.0-0.rc3.git0.1.fc22.x86_64 
root=UUID=a07556d2-6fe2-417f-8202-c54c07fd9386 
drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin 
drm_kms_helper.edid_firmware=DVI-I-1:edid/848x480.bin  
initrd=/initramfs-3.17.0-0.rc3.git0.1.fc22.x86_64.img
[29.278] Build Date: 26 August 2014  07:34:52PM
[29.278] Build ID: xorg-x11-server 1.16.0-5.fc22 
[29.278] Current version of pixman: 0.32.6
[29.278]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[29.278] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[29.279] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep  4 23:22:47 
2014
[29.296] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[29.296] (==) No Layout section.  Using the first Screen section.
[29.296] (==) No screen section available. Using defaults.
[29.297] (**) |-->Screen "Default Screen Section" (0)
[29.297] (**) |   |-->Monitor ""
[29.297] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[29.297] (==) Automatically adding devices
[29.298] (==) Automatically enabling devices
[29.298] (==) Automatically adding GPU devices
[29.298] (==) FontPath set to:
catalogue:/etc/X11/fontpath.d,
built-ins
[29.298] (==) ModulePath set to "/usr/lib64/xorg/modules"
[29.298] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[29.298] (II) Loader magic: 0x81de40
[29.298] (II) Module ABI versions:
[29.298]X.Org ANSI C Emulation: 0.4
[29.298]X.Org Video Driver: 18.0
[29.298]X.Org XInput driver : 21.0
[29.298]X.Org Server Extension : 8.0
[29.324] (EE) systemd-logind: failed to get session: PID 712 does not 
belong to any known session
[29.326] (II) xfree86: Adding drm device (/dev/dri/card1)
[29.328] (II) xfree86: Adding drm device (/dev/dri/card0)
[29.380] (--) PCI:*(0:1:0:0) 10de:087d:1849:087d rev 177, Mem @ 
0xfb00/16777216, 0xe000/268435456, 0xf600/33554432, I/O @ 
0xec00/128, BIOS @ 0x/131072
[29.383] (II) LoadModule: "glx"
[29.384] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[29.421] (II) Module glx: vendor="X.Org Foundation"
[29.430]compiled for 1.16.0, module version = 1.0.0
[29.430]ABI class: X.Org Server Extension, version 8.0
[29.430] (==) AIGLX enabled
[29.430] (EE) 
[29.430] (EE) Backtrace:
[29.432] (EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59bea9]
[29.456] (EE) 1: /lib64/libc.so.6 (__restore_rt+0x0) [0x7fb5636ae98f]
[29.457] (EE) 2: /usr/libexec/Xorg.bin (xf86PlatformMatchDriver+0x253) 
[0x49a8b3]
[29.470] (EE) 3: /usr/libexec/Xorg.bin (config_fini+0x1bcd) [0x49f9fd]
[29.471] (EE) 4: /usr/libexec/Xorg.bin (config_fini+0x20be) [0x4a031e]
[29.472] (EE) 5: /usr/libexec/Xorg.bin (InitOutput+0xb56) [0x47bc06]
[29.499] (EE) 6: /usr/libexec/Xorg.bin (remove_fs_handlers+0x22a) [0x43cfca]
[29.526] (EE) 7: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7fb5636990e0]
[29.527] (EE) 8: /usr/libexec/Xorg.bin (_start+0x29) [0x42761e]
[29.551] (EE) 9: ? (?+0x29) [0x29]
[29.552] (EE) 
[29.552] (EE) Segmentation fault at address 0x0
[29.552] (EE) 
Fatal server error:
[29.552] (EE) Caught signal 11 (Segmentation fault). Server aborting
[29.552] (EE) 
[29.552] (EE) 
Please cons