daily CVS update output

2022-12-19 Thread NetBSD source update


Updating src tree:
P src/bin/sh/sh.1
P src/distrib/sets/lists/debug/module.mi
P src/distrib/sets/lists/modules/mi
P src/sbin/tunefs/tunefs.c
cvs update: `src/sys/compat/common/Makefile' is no longer in the repository
cvs update: `src/sys/compat/common/Makefile.inc' is no longer in the repository
cvs update: `src/sys/compat/common/Makefile.sysio' is no longer in the 
repository
cvs update: `src/sys/compat/common/Makefile.sysv' is no longer in the repository
U src/sys/compat/common/compat_100_mod.c
P src/sys/compat/common/compat_90_mod.c
P src/sys/compat/common/compat_mod.h
P src/sys/compat/common/files.common
P src/sys/compat/netbsd32/files.netbsd32
U src/sys/compat/netbsd32/netbsd32_compat_100.c
P src/sys/compat/netbsd32/syscalls.conf
U src/sys/conf/compat_netbsd100.config
P src/sys/conf/files
P src/sys/modules/Makefile
U src/sys/modules/compat_100/Makefile
U src/sys/modules/compat_netbsd32_100/Makefile
P src/usr.sbin/dumpfs/dumpfs.8
P src/usr.sbin/dumpfs/dumpfs.c

Updating xsrc tree:
P xsrc/external/mit/libX11/dist/ChangeLog
P xsrc/external/mit/libX11/dist/README.md
P xsrc/external/mit/libX11/dist/aclocal.m4
P xsrc/external/mit/libX11/dist/configure
P xsrc/external/mit/libX11/dist/configure.ac
P xsrc/external/mit/libX11/dist/include/X11/Xlib.h
P xsrc/external/mit/libX11/dist/include/X11/Xlibint.h
P xsrc/external/mit/libX11/dist/man/XInitThreads.man
P xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c
P xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcPrs.c
P xsrc/external/mit/libX11/dist/nls/en_US.UTF-8/XLC_LOCALE.pre
P xsrc/external/mit/libX11/dist/src/ChkIfEv.c
P xsrc/external/mit/libX11/dist/src/CrGlCur.c
P xsrc/external/mit/libX11/dist/src/IfEvent.c
P xsrc/external/mit/libX11/dist/src/OpenDis.c
P xsrc/external/mit/libX11/dist/src/PeekIfEv.c
P xsrc/external/mit/libX11/dist/src/PutBEvent.c
P xsrc/external/mit/libX11/dist/src/globals.c
P xsrc/external/mit/libX11/dist/src/locking.c
P xsrc/external/mit/libX11/dist/src/xkb/XKBBind.c
P xsrc/external/mit/xorg-server/dist/Xi/sendexev.c
P xsrc/external/mit/xorg-server/dist/hw/xfree86/int10/generic.c
P xsrc/external/mit/xorg-server/dist/include/dix-config.h.in
P xsrc/external/mit/xorg-server/dist/include/os.h


Killing core files:




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  46374134 Dec 20 03:03 ls-lRA.gz


Automated report: NetBSD-current/i386 build success

2022-12-19 Thread NetBSD Test Fixture
The NetBSD-current/i386 build is working again.

The following commits were made between the last failed build and the
successful build:

2022.12.20.00.11.14 msaitoh src/sys/compat/common/Attic/Makefile,v 1.67
2022.12.20.00.11.14 msaitoh src/sys/compat/common/Attic/Makefile.inc,v 1.27
2022.12.20.00.11.14 msaitoh src/sys/compat/common/Attic/Makefile.sysio,v 
1.16
2022.12.20.00.11.14 msaitoh src/sys/compat/common/Attic/Makefile.sysv,v 1.2
2022.12.20.00.31.55 jakllsch src/distrib/sets/lists/debug/module.mi,v 1.24
2022.12.20.00.31.56 jakllsch src/distrib/sets/lists/modules/mi,v 1.158

Logs can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2022.12.html#2022.12.20.00.31.56


Automated report: NetBSD-current/i386 build failure

2022-12-19 Thread NetBSD Test Fixture
This is an automatically generated notice of a NetBSD-current/i386
build failure.

The failure occurred on babylon5.netbsd.org, a NetBSD/amd64 host,
using sources from CVS date 2022.12.19.23.19.51.

An extract from the build.sh output follows:

--- checkflist ---
cd /tmp/build/2022.12.19.23.19.51-i386/src/distrib/sets &&  
DESTDIR=/tmp/build/2022.12.19.23.19.51-i386/destdir  MACHINE=i386  
MACHINE_ARCH=i386  AWK=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbawk  
CKSUM=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbcksum  
DB=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbdb  
EGREP=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbgrep\ -E  HOST_SH=/bin/sh 
 MAKE=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbmake  
MKTEMP=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbmktemp  
MTREE=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbmtree  
PAX=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbpax  COMPRESS_PROGRAM=gzip  
GZIP=-n  XZ_OPT=-9  TAR_SUFF=tgz  
PKG_CREATE=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbpkg_create  
SED=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbsed  
TSORT=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbtsort\ -q  /bin/sh 
/tmp/build/2022.12.19.23.19.51-i386/src/distrib/sets/checkflist  -L base  -M 
/tmp/build/2022.12.
 19.23.19.51-i386/destdir/METALOG.sanitised
===  2 extra files in DESTDIR  =
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
--
./stand/i386/10.99.1/modules/compat_100
./stand/i386/10.99.1/modules/compat_100/compat_100.kmod
=  end of 2 extra files  ===
*** Failed target: checkflist
*** Failed commands:
${SETSCMD} ${.CURDIR}/checkflist  ${MAKEFLIST_FLAGS} 
${CHECKFLIST_FLAGS} ${METALOG.unpriv}
=> cd /tmp/build/2022.12.19.23.19.51-i386/src/distrib/sets &&  
DESTDIR=/tmp/build/2022.12.19.23.19.51-i386/destdir  MACHINE=i386  
MACHINE_ARCH=i386  AWK=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbawk  
CKSUM=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbcksum  
DB=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbdb  
EGREP=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbgrep\ -E  HOST_SH=/bin/sh 
 MAKE=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbmake  
MKTEMP=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbmktemp  
MTREE=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbmtree  
PAX=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbpax  COMPRESS_PROGRAM=gzip  
GZIP=-n  XZ_OPT=-9  TAR_SUFF=tgz  
PKG_CREATE=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbpkg_create  
SED=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbsed  
TSORT=/tmp/build/2022.12.19.23.19.51-i386/tools/bin/nbtsort\ -q  /bin/sh 
/tmp/build/2022.12.19.23.19.51-i386/src/distrib/sets/checkflist  -L base  -M 
/tmp/build/2022
 .12.19.23.19.51-i386/destdir/METALOG.sanitised
*** [checkflist] Error code 1
nbmake[2]: stopped in /tmp/build/2022.12.19.23.19.51-i386/src/distrib/sets
1 error
nbmake[2]: stopped in /tmp/build/2022.12.19.23.19.51-i386/src/distrib/sets
nbmake[1]: stopped in /tmp/build/2022.12.19.23.19.51-i386/src
nbmake: stopped in /tmp/build/2022.12.19.23.19.51-i386/src
ERROR: Failed to make release

The following commits were made between the last successful build and
the failed build:

2022.12.19.23.19.51 pgoyette src/sys/compat/common/compat_100_mod.c,v 1.1
2022.12.19.23.19.51 pgoyette src/sys/compat/common/compat_90_mod.c,v 1.4
2022.12.19.23.19.51 pgoyette src/sys/compat/common/compat_mod.h,v 1.7
2022.12.19.23.19.51 pgoyette src/sys/compat/common/files.common,v 1.8
2022.12.19.23.19.51 pgoyette src/sys/compat/netbsd32/files.netbsd32,v 1.54
2022.12.19.23.19.51 pgoyette 
src/sys/compat/netbsd32/netbsd32_compat_100.c,v 1.1
2022.12.19.23.19.51 pgoyette src/sys/compat/netbsd32/syscalls.conf,v 1.18
2022.12.19.23.19.51 pgoyette src/sys/conf/compat_netbsd100.config,v 1.1
2022.12.19.23.19.51 pgoyette src/sys/conf/files,v 1.1305
2022.12.19.23.19.51 pgoyette src/sys/modules/Makefile,v 1.275
2022.12.19.23.19.51 pgoyette src/sys/modules/compat_100/Makefile,v 1.1
2022.12.19.23.19.51 pgoyette src/sys/modules/compat_netbsd32_100/Makefile,v 
1.1

Logs can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2022.12.html#2022.12.19.23.19.51


Re: i915 observations

2022-12-19 Thread RVP

On Mon, 19 Dec 2022, Mayuresh wrote:


I tried using Linux's xorg.conf on NetBSD as well as the other way round.

- Both work on the system they are taken from, but both don't work on the
  other system.
- Both use the driver intel, but still when they use the other's file they
  both give the same error Driver not found : intel.



Not surprising that you can't use the xorg.conf from NetBSD on
Linux, or vice-versa. If you look at the full x.org.conf that's
being used you'll see many OS-specific things in there. Eg. references
to the "wheel" group in the NetBSD config, and to "/dev/input/*"
devices in the Linux one. Other critical things like ModulePath are
different too.

Really, just use the xorg.conf fragments and let the X server use
its defaults for the rest.


On Linux:

If I do NOT have xorg.conf startx works.

But if I generate one using X -configure then it doesn't (no matter I set
UXA or not).

Backtrace:
0: /usr/libexec/Xorg (xorg_backtrace+0x7d) [0x55bec268d9cd]
1: /usr/libexec/Xorg (0x55bec2549000+0x14f9b5) [0x55bec26989b5]
2: /usr/lib/libpthread.so.0 (0x7f976534f000+0x13900) [0x7f9765362900]
3: /usr/libexec/Xorg (xf86OptionValue+0x7) [0x55bec26a4cf7]
4: /usr/lib64/xorg/modules/extensions/libvnc.so (0x7f9764862000+0x362c0) 
[0x7f97648982c0]
5: /usr/libexec/Xorg (InitExtensions+0x89) [0x55bec2590329]
6: /usr/libexec/Xorg (0x55bec2549000+0x3aa3e) [0x55bec2583a3e]
7: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7f9764e61e0a]
8: /usr/libexec/Xorg (_start+0x2a) [0x55bec2584e0a]

Segmentation fault at address 0x10011

Caught signal 11 (Segmentation fault). Server aborting



I think what's happening here is that the full xorg.conf file
generated using `-configure' tried to load the "vnc" module which
is what's segfaulting.


The correct one (when it works on Linux) is attached now.



The internally autogenerated one (in the absence of a xorg.conf
file), does not load the "vnc" module. In both instance, the "intel"
driver is loaded with "SNA" as the AccelMethod. Also on Linux, since
the DRI module failed to load the software GL rasterizer is used
as a fallback:

```
[   428.237] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed 
(/usr/lib64/dri/i965_dri.so: cannot open shared object
file: No such file or directory)
[   428.237] (EE) AIGLX error: unable to load driver i965
[   428.295] (II) IGLX: Loaded and initialized swrast
[   428.295] (II) GLX: Initialized DRISWRAST GL provider for screen 0
```

On NetBSD, prsumably the `i965_dri.so' DRI module loads (but, I
haven't seen the Xorg.0.log from NetBSD yet.) You can make NetBSD
behave like Linux here by disabling DRI as I suggested before:

```
Option "DRI" "off"
```


With above settings, after connecting hdmi monitor and running xrandr
rotate the system instantly rebooted!



Well, OK, after a bit of experimentation I've _finally_ got both
"modesetting" and "intel" working on my card which is a:

```
i915drmkms0 at pci0 dev 2 function 0: Intel Ivy Bridge Integrated Graphics 
Device (rev. 0x09)
```

As I reported before, both previously either hung the X server
process, or produced horribly slow screen updates coupled with
streaky screen effects. I can make all my problems vanish (a Christmas
Miracle?) by _not doing_ either of these things:

1. Adding `gop 0' to /boot.cfg. ie. use the default BIOS video mode
   (1024x768) That was something I've always had in the config. Now removed
   since you don't need it with the DRMKMS driver.

2. Adding a non-default FONT to the kernel config.
   For example, I'd had this for a long time:
```
#optionsFONT_BOLD8x16
#optionsFONT_BOLD16x32
options FONT_SPLEEN12x24
```
   This too, bizarrely, caused my issue. (I noticed this last year[1].)

[1]: https://mail-index.netbsd.org/current-users/2022/01/04/msg041887.html

So, a) remove `gop 0' from /boot.cfg, and b) leave the standard
fonts alone!

BTW, the working xorg.conf fragments are the standard ones, ie:

```
Section "Device"
Identifier  "Card0"
Driver  "modesetting" # or, "intel"
EndSection
```

Of course, YMMV. See you folks next year!

-RVP


Re: i915 observations

2022-12-19 Thread Mayuresh
On Mon, Dec 19, 2022 at 09:26:33PM +0530, Mayuresh wrote:
> On Mon, Dec 19, 2022 at 09:20:53PM +0530, Mayuresh wrote:
> > I do not know if there is a way to make a running X dump its conf. I
> > searched for it, though could not find.
> 
> On Linux, when X11 works (i.e. when xorg.conf is absent) I am attaching
> its log - just in case if there is any way to figure out which driver and
> options it might be using.

Apologies.. Attached a wrong log to the previous mail.

The correct one (when it works on Linux) is attached now.

-- 
Mayuresh
[  1597.889] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[  1597.889] Current Operating System: Linux asus2 6.0.10_1 #1 SMP 
PREEMPT_DYNAMIC Mon Nov 28 03:42:58 UTC 2022 x86_64
[  1597.889] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.0.10_1 
root=UUID=4147e9fb-400b-449c-a1b0-a64b6b720900 ro loglevel=4
[  1597.889]  
[  1597.889] Current version of pixman: 0.40.0
[  1597.889]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[  1597.889] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1597.890] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Dec 19 21:28:53 
2022
[  1597.890] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1597.890] (==) No Layout section.  Using the first Screen section.
[  1597.890] (==) No screen section available. Using defaults.
[  1597.890] (**) |-->Screen "Default Screen Section" (0)
[  1597.890] (**) |   |-->Monitor ""
[  1597.890] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[  1597.891] (==) Automatically adding devices
[  1597.891] (==) Automatically enabling devices
[  1597.891] (==) Automatically adding GPU devices
[  1597.891] (==) Automatically binding GPU devices
[  1597.891] (==) Max clients allowed: 256, resource mask: 0x1f
[  1597.891] (WW) The directory "/usr/share/fonts/X11/OTF" does not exist.
[  1597.891]Entry deleted from font path.
[  1597.891] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/TTF,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi
[  1597.891] (==) ModulePath set to "/usr/lib64/xorg/modules"
[  1597.891] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[  1597.891] (II) Module ABI versions:
[  1597.891]X.Org ANSI C Emulation: 0.4
[  1597.891]X.Org Video Driver: 25.2
[  1597.891]X.Org XInput driver : 24.4
[  1597.891]X.Org Server Extension : 10.0
[  1597.891] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1597.891] (II) Platform probe for 
/sys/devices/pci:00/:00:02.0/drm/card0
[  1597.910] (--) PCI:*(0@0:2:0) 8086:3184:1043:1232 rev 6, Mem @ 
0xa000/16777216, 0x9000/268435456, I/O @ 0xf000/64, BIOS @ 
0x/131072
[  1597.910] (II) Open ACPI successful (/var/run/acpid.socket)
[  1597.910] (II) LoadModule: "glx"
[  1597.910] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[  1597.912] (II) Module glx: vendor="X.Org Foundation"
[  1597.912]compiled for 1.21.1.4, module version = 1.0.0
[  1597.912]ABI class: X.Org Server Extension, version 10.0
[  1597.912] (==) Matched intel as autoconfigured driver 0
[  1597.912] (==) Matched modesetting as autoconfigured driver 1
[  1597.912] (==) Matched fbdev as autoconfigured driver 2
[  1597.912] (==) Matched vesa as autoconfigured driver 3
[  1597.912] (==) Assigned the driver to the xf86ConfigLayout
[  1597.912] (II) LoadModule: "intel"
[  1597.912] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[  1597.913] (II) Module intel: vendor="X.Org Foundation"
[  1597.913]compiled for 1.21.1.3, module version = 2.99.917
[  1597.913]Module class: X.Org Video Driver
[  1597.913]ABI class: X.Org Video Driver, version 25.2
[  1597.913] (II) LoadModule: "modesetting"
[  1597.913] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[  1597.913] (II) Module modesetting: vendor="X.Org Foundation"
[  1597.913]compiled for 1.21.1.4, module version = 1.21.1
[  1597.913]Module class: X.Org Video Driver
[  1597.913]ABI class: X.Org Video Driver, version 25.2
[  1597.913] (II) LoadModule: "fbdev"
[  1597.913] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[  1597.914] (II) Module fbdev: vendor="X.Org Foundation"
[  1597.914]compiled for 1.21.1.3, module version = 0.5.0
[  1597.914]Module class: X.Org Video Driver
[  1597.914]ABI class: X.Org Video Driver, version 25.2
[  1597.914] (II) LoadModule: "vesa"
[  1597.914] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[  1597.914] (II) Module vesa: vendor="X.Org Foundation"
[  1597.914]

Re: i915 observations

2022-12-19 Thread Mayuresh
On Mon, Dec 19, 2022 at 09:20:53PM +0530, Mayuresh wrote:
> I do not know if there is a way to make a running X dump its conf. I
> searched for it, though could not find.

On Linux, when X11 works (i.e. when xorg.conf is absent) I am attaching
its log - just in case if there is any way to figure out which driver and
options it might be using.

-- 
Mayuresh
[   142.152] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   142.158] Current Operating System: Linux asus2 6.0.10_1 #1 SMP 
PREEMPT_DYNAMIC Mon Nov 28 03:42:58 UTC 2022 x86_64
[   142.158] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.0.10_1 
root=UUID=4147e9fb-400b-449c-a1b0-a64b6b720900 ro loglevel=4
[   142.163]  
[   142.165] Current version of pixman: 0.40.0
[   142.170]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   142.170] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   142.180] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 20 02:34:34 
2022
[   142.180] (II) Module ABI versions:
[   142.180]X.Org ANSI C Emulation: 0.4
[   142.180]X.Org Video Driver: 25.2
[   142.180]X.Org XInput driver : 24.4
[   142.180]X.Org Server Extension : 10.0
[   142.181] (II) xfree86: Adding drm device (/dev/dri/card0)
[   142.181] (II) Platform probe for 
/sys/devices/pci:00/:00:02.0/drm/card0
[   142.198] (--) PCI:*(0@0:2:0) 8086:3184:1043:1232 rev 6, Mem @ 
0xa000/16777216, 0x9000/268435456, I/O @ 0xf000/64, BIOS @ 
0x/131072
[   142.200] List of video drivers:
[   142.201]amdgpu
[   142.201]ati
[   142.202]dummy
[   142.203]intel
[   142.204]nouveau
[   142.205]radeon
[   142.206]vmware
[   142.208]modesetting
[   142.210]fbdev
[   142.211]vesa
[   142.211] (II) LoadModule: "amdgpu"
[   142.231] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
[   142.314] (II) Module amdgpu: vendor="X.Org Foundation"
[   142.314]compiled for 1.21.1.3, module version = 22.0.0
[   142.314]Module class: X.Org Video Driver
[   142.314]ABI class: X.Org Video Driver, version 25.2
[   142.314] (II) LoadModule: "ati"
[   142.315] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[   142.331] (II) Module ati: vendor="X.Org Foundation"
[   142.331]compiled for 1.21.1.3, module version = 19.1.0
[   142.331]Module class: X.Org Video Driver
[   142.331]ABI class: X.Org Video Driver, version 25.2
[   142.331] (II) LoadModule: "dummy"
[   142.332] (II) Loading /usr/lib64/xorg/modules/drivers/dummy_drv.so
[   142.345] (II) Module dummy: vendor="X.Org Foundation"
[   142.345]compiled for 1.21.1.3, module version = 0.3.8
[   142.345]Module class: X.Org Video Driver
[   142.345]ABI class: X.Org Video Driver, version 25.2
[   142.345] (II) LoadModule: "intel"
[   142.345] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   142.393] (II) Module intel: vendor="X.Org Foundation"
[   142.393]compiled for 1.21.1.3, module version = 2.99.917
[   142.393]Module class: X.Org Video Driver
[   142.393]ABI class: X.Org Video Driver, version 25.2
[   142.393] (II) LoadModule: "nouveau"
[   142.393] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[   142.395] (II) Module nouveau: vendor="X.Org Foundation"
[   142.395]compiled for 1.21.1.3, module version = 1.0.17
[   142.395]Module class: X.Org Video Driver
[   142.395]ABI class: X.Org Video Driver, version 25.2
[   142.395] (II) LoadModule: "radeon"
[   142.395] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[   142.414] (II) Module radeon: vendor="X.Org Foundation"
[   142.414]compiled for 1.21.1.3, module version = 19.1.0
[   142.414]Module class: X.Org Video Driver
[   142.414]ABI class: X.Org Video Driver, version 25.2
[   142.414] (II) LoadModule: "vmware"
[   142.414] (II) Loading /usr/lib64/xorg/modules/drivers/vmware_drv.so
[   143.631] (II) Module vmware: vendor="X.Org Foundation"
[   143.631]compiled for 1.21.1.4, module version = 13.3.0
[   143.631]Module class: X.Org Video Driver
[   143.631]ABI class: X.Org Video Driver, version 25.2
[   143.631] (II) LoadModule: "modesetting"
[   143.631] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   143.649] (II) Module modesetting: vendor="X.Org Foundation"
[   143.649]compiled for 1.21.1.4, module version = 1.21.1
[   143.649]Module class: X.Org Video Driver
[   143.649]ABI class: X.Org Video Driver, version 25.2
[   143.649] (II) LoadModule: "fbdev"
[   143.649] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[   143.650] (II) Module fbdev: vendor="X.Org Foundation"
[   143.650]compiled for 1.21.1.3, module version = 0.5.0
[   143.650]Module class: X.Org Video Driver
[   143.650]ABI class: X.Org 

Re: i915 observations

2022-12-19 Thread Mayuresh
On Sun, Dec 18, 2022 at 11:35:26PM +, RVP wrote:
> In any case, do your tests after forcing `UXA' on Linux too.

Following things are weird:

On Linux:

If I do NOT have xorg.conf startx works.

But if I generate one using X -configure then it doesn't (no matter I set
UXA or not).

I do not know if there is a way to make a running X dump its conf. I
searched for it, though could not find.

Attaching log, with xorg.conf present on Linux.

This is grep -w EE of the log with up to EE) trimmed to keep it short

AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed 
(/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or 
directory)
AIGLX error: unable to load driver i965

Backtrace:
0: /usr/libexec/Xorg (xorg_backtrace+0x7d) [0x55bec268d9cd]
1: /usr/libexec/Xorg (0x55bec2549000+0x14f9b5) [0x55bec26989b5]
2: /usr/lib/libpthread.so.0 (0x7f976534f000+0x13900) [0x7f9765362900]
3: /usr/libexec/Xorg (xf86OptionValue+0x7) [0x55bec26a4cf7]
4: /usr/lib64/xorg/modules/extensions/libvnc.so (0x7f9764862000+0x362c0) 
[0x7f97648982c0]
5: /usr/libexec/Xorg (InitExtensions+0x89) [0x55bec2590329]
6: /usr/libexec/Xorg (0x55bec2549000+0x3aa3e) [0x55bec2583a3e]
7: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7f9764e61e0a]
8: /usr/libexec/Xorg (_start+0x2a) [0x55bec2584e0a]

Segmentation fault at address 0x10011

Caught signal 11 (Segmentation fault). Server aborting


Please also check the log file at "/var/log/Xorg.1.log" for additional 
information.

Server terminated with error (1). Closing log file.


BTW /usr/lib64/dri/i965_dri.so is actually present.

I'd rather not chase Linux specific issues. I'd use Linux to the extent of
differentially diagnosing the problems with X11 on NetBSD, but looks like
it's not helping much in that and adding its own mysteries that may
digress us.


-- 
Mayuresh
[   428.190] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   428.191] Current Operating System: Linux asus2 6.0.10_1 #1 SMP 
PREEMPT_DYNAMIC Mon Nov 28 03:42:58 UTC 2022 x86_64
[   428.191] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.0.10_1 
root=UUID=4147e9fb-400b-449c-a1b0-a64b6b720900 ro loglevel=4
[   428.193]  
[   428.193] Current version of pixman: 0.40.0
[   428.195]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   428.195] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   428.198] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Dec 19 21:09:23 
2022
[   428.199] (==) Using config file: "/etc/X11/xorg.conf"
[   428.199] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   428.200] (==) ServerLayout "X.org Configured"
[   428.200] (**) |-->Screen "Screen0" (0)
[   428.200] (**) |   |-->Monitor "Monitor0"
[   428.200] (**) |   |-->Device "Card0"
[   428.200] (**) |-->Input Device "Mouse0"
[   428.200] (**) |-->Input Device "Keyboard0"
[   428.200] (==) Automatically adding devices
[   428.200] (==) Automatically enabling devices
[   428.200] (==) Automatically adding GPU devices
[   428.200] (==) Automatically binding GPU devices
[   428.200] (==) Max clients allowed: 256, resource mask: 0x1f
[   428.200] (WW) The directory "/usr/share/fonts/X11/OTF" does not exist.
[   428.200]Entry deleted from font path.
[   428.200] (WW) The directory "/usr/share/fonts/X11/OTF" does not exist.
[   428.200]Entry deleted from font path.
[   428.200] (**) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/TTF,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/TTF,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi
[   428.200] (**) ModulePath set to "/usr/lib64/xorg/modules"
[   428.200] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 
'vmmouse' will be disabled.
[   428.200] (WW) Disabling Mouse0
[   428.200] (WW) Disabling Keyboard0
[   428.200] (II) Module ABI versions:
[   428.200]X.Org ANSI C Emulation: 0.4
[   428.200]X.Org Video Driver: 25.2
[   428.200]X.Org XInput driver : 24.4
[   428.200]X.Org Server Extension : 10.0
[   428.201] (II) xfree86: Adding drm device (/dev/dri/card0)
[   428.201] (II) Platform probe for 
/sys/devices/pci:00/:00:02.0/drm/card0
[   428.219] (--) PCI:*(0@0:2:0) 8086:3184:1043:1232 rev 6, Mem @ 
0xa000/16777216, 0x9000/268435456, I/O @ 0xf000/64, BIOS @ 
0x/131072
[   428.219] (II) Open ACPI successful (/var/run/acpid.socket)
[   428.219] (II) "glx" will be loaded. This was enabled by default and also 
specified in the config file.
[   428.219] (II) LoadModule: "glx"