Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2022 21:22:19 +0900
From:      KIRIYAMA Kazuhiko <kiri@truefc.org>
To:        Greg V <greg@unrelenting.technology>
Cc:        KIRIYAMA Kazuhiko <kiri@truefc.org>, x11@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: Is there any X driver for Panfrost on PBP ?
Message-ID:  <202202211222.21LCMJbq089998@kx.truefc.org>
In-Reply-To: <C021EDAB-0887-46CA-A14F-D00FF2BB9FE1@unrelenting.technology>
References:  <202202202226.21KMQQxG082376@kx.truefc.org> <C021EDAB-0887-46CA-A14F-D00FF2BB9FE1@unrelenting.technology>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Greg !

On Mon, 21 Feb 2022 09:06:49 +0900,
Greg V wrote:
>=20
>=20
>=20
> On February 21, 2022 1:26:26 AM GMT+03:00, KIRIYAMA Kazuhiko <kiri@truefc=
.org> wrote:
> >Hi, lists
>=20
> Hi,
>=20
> [..]
>=20
> >rk_drm0: Cannot find port with phandle 10
>=20
> (hopefully this one is harmless..)
>=20
> >But I could not found panfrot X driver. Is there any panfrost
> >X driver for FreeBSD ?
>=20
> Please forget about the notion of hardware specific X drivers and just ru=
n startx.
>=20
> There is *one* relevant X video driver =E2=80=93 xf86-video-modesetting =
=E2=80=93 and it is built in.
>=20
> (Ok, -amdgpu is somewhat relevant but that's just -modesetting with TearF=
ree hacks. Meanwhile -intel is a terrible pile of abandonware that mostly c=
auses problems.)
>=20

I set Driver to "modesetting" in Device section :

kiri@kazu:~[1002]% cat /usr/local/share/X11/xorg.conf.d/30-driver-mali.conf=
=20
Section "Device"
      Identifier "Card1"
      Driver "modesetting"
EndSection
kiri@kazu:~[1003]%=20

and then `startx', X started  :-)

kiri@kazu:~[1003]% cat /var/log/Xorg.0.log
[ 47449.405]=20
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[ 47449.405] Build Operating System: FreeBSD 14.0-CURRENT arm64=20
[ 47449.405] Current Operating System: FreeBSD kazu.tfc 14.0-CURRENT FreeBS=
D 14.0-CURRENT #0 n252641-3f106af0cd92-dirty: Wed Jan 26 22:41:41 JST 2022 =
    root@tbedfc:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-DRM arm64
[ 47449.407] Build Date: 03 February 2022  10:24:33PM
[ 47449.407] =20
[ 47449.407] Current version of pixman: 0.40.0
[ 47449.407] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 47449.407] Markers: (--) probed, (**) from config file, (=3D=3D) default =
setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 47449.408] (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Mon Feb 21 20:=
21:12 2022
[ 47449.410] (=3D=3D) Using config directory: "/usr/local/etc/X11/xorg.conf=
.d"
[ 47449.411] (=3D=3D) Using system config directory "/usr/local/share/X11/x=
org.conf.d"
[ 47449.413] (=3D=3D) No Layout section.  Using the first Screen section.
[ 47449.413] (=3D=3D) No screen section available. Using defaults.
[ 47449.413] (**) |-->Screen "Default Screen Section" (0)
[ 47449.413] (**) |   |-->Monitor "<default monitor>"
[ 47449.416] (=3D=3D) No device specified for screen "Default Screen Sectio=
n".
	Using the first device section listed.
[ 47449.416] (**) |   |-->Device "Card1"
[ 47449.416] (=3D=3D) No monitor specified for screen "Default Screen Secti=
on".
	Using a default monitor configuration.
[ 47449.416] (=3D=3D) Automatically adding devices
[ 47449.416] (=3D=3D) Automatically enabling devices
[ 47449.416] (=3D=3D) Not automatically adding GPU devices
[ 47449.416] (=3D=3D) Max clients allowed: 256, resource mask: 0x1fffff
[ 47449.417] (WW) The directory "/usr/local/share/fonts/stix/" does not exi=
st.
[ 47449.417] 	Entry deleted from font path.
[ 47449.417] (WW) `fonts.dir' not found (or not valid) in "/usr/local/share=
/fonts/std.ja_JP/".
[ 47449.417] 	Entry deleted from font path.
[ 47449.417] 	(Run 'mkfontdir' on "/usr/local/share/fonts/std.ja_JP/").
[ 47449.419] (**) FontPath set to:
	/usr/local/share/fonts/cyrillic/,
	/usr/local/share/fonts/bitstream-vera/,
	/usr/local/share/fonts/misc/,
	/usr/local/share/fonts/TTF/,
	/usr/local/share/fonts/OTF/,
	/usr/local/share/fonts/Type1/,
	/usr/local/share/fonts/100dpi/,
	/usr/local/share/fonts/75dpi/,
	catalogue:/usr/local/etc/X11/fontpath.d
[ 47449.419] (=3D=3D) ModulePath set to "/usr/local/lib/xorg/modules"
[ 47449.419] (II) The server relies on udev to provide the list of input de=
vices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 47449.419] (II) Loader magic: 0x43c3f8
[ 47449.419] (II) Module ABI versions:
[ 47449.419] 	X.Org ANSI C Emulation: 0.4
[ 47449.419] 	X.Org Video Driver: 24.1
[ 47449.419] 	X.Org XInput driver : 24.1
[ 47449.419] 	X.Org Server Extension : 10.0
[ 47449.419] (II) LoadModule: "glx"
[ 47449.421] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 47449.431] (II) Module glx: vendor=3D"X.Org Foundation"
[ 47449.431] 	compiled for 1.20.13, module version =3D 1.0.0
[ 47449.431] 	ABI class: X.Org Server Extension, version 10.0
[ 47449.431] (II) LoadModule: "modesetting"
[ 47449.432] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_d=
rv.so
[ 47449.440] (II) Module modesetting: vendor=3D"X.Org Foundation"
[ 47449.440] 	compiled for 1.20.13, module version =3D 1.20.13
[ 47449.440] 	Module class: X.Org Video Driver
[ 47449.440] 	ABI class: X.Org Video Driver, version 24.1
[ 47449.440] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 47449.441] (--) Using syscons driver with X support (version 358875076105=
33890.0)
[ 47449.441] (--) using VT number 9

[ 47449.441] (WW) Falling back to old probe method for modesetting
[ 47449.450] (II) modeset(0): using default device
[ 47449.450] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card su=
pport
[ 47449.451] (II) modeset(0): Creating default Display subsection in Screen=
 section
	"Default Screen Section" for depth/fbbpp 24/32
[ 47449.451] (=3D=3D) modeset(0): Depth 24, (=3D=3D) framebuffer bpp 32
[ 47449.451] (=3D=3D) modeset(0): RGB weight 888
[ 47449.451] (=3D=3D) modeset(0): Default visual is TrueColor
[ 47449.451] (II) Loading sub module "glamoregl"
[ 47449.451] (II) LoadModule: "glamoregl"
[ 47449.453] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 47449.573] (II) Module glamoregl: vendor=3D"X.Org Foundation"
[ 47449.574] 	compiled for 1.20.13, module version =3D 1.0.1
[ 47449.574] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 47452.771] (II) modeset(0): Refusing to try glamor on llvmpipe
[ 47452.815] (EE) modeset(0): glamor initialization failed
[ 47452.815] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[ 47452.820] (II) modeset(0): Output eDP-1 has no monitor section
[ 47452.824] (II) modeset(0): EDID for output eDP-1
[ 47452.827] (II) modeset(0): Printing probed modes for output eDP-1
[ 47452.827] (II) modeset(0): Modeline "1920x1080"x60.0  141.40  1920 1968 =
2000 2142  1080 1083 1089 1100 +hsync -vsync (66.0 kHz eP)
[ 47452.827] (II) modeset(0): Modeline "1920x1080"x48.0  113.12  1920 1968 =
2000 2142  1080 1083 1089 1100 +hsync -vsync (52.8 kHz e)
[ 47452.827] (II) modeset(0): Output eDP-1 connected
[ 47452.827] (II) modeset(0): Using exact sizes for initial modes
[ 47452.827] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0
[ 47452.827] (=3D=3D) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 47452.827] (=3D=3D) modeset(0): DPI set to (96, 96)
[ 47452.827] (II) Loading sub module "fb"
[ 47452.827] (II) LoadModule: "fb"
[ 47452.829] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 47452.835] (II) Module fb: vendor=3D"X.Org Foundation"
[ 47452.835] 	compiled for 1.20.13, module version =3D 1.0.0
[ 47452.835] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 47452.855] (=3D=3D) modeset(0): Backing store enabled
[ 47452.855] (=3D=3D) modeset(0): Silken mouse enabled
[ 47452.883] (II) modeset(0): Initializing kms color map for depth 24, 8 bp=
c.
[ 47452.886] (=3D=3D) modeset(0): DPMS enabled
[ 47452.888] (II) Initializing extension Generic Event Extension
[ 47452.894] (II) Initializing extension SHAPE
[ 47452.898] (II) Initializing extension MIT-SHM
[ 47452.903] (II) Initializing extension XInputExtension
[ 47452.911] (II) Initializing extension XTEST
[ 47452.916] (II) Initializing extension BIG-REQUESTS
[ 47452.921] (II) Initializing extension SYNC
[ 47452.928] (II) Initializing extension XKEYBOARD
[ 47452.934] (II) Initializing extension XC-MISC
[ 47452.938] (II) Initializing extension SECURITY
[ 47452.942] (II) Initializing extension XFIXES
[ 47452.949] (II) Initializing extension RENDER
[ 47452.953] (II) Initializing extension RANDR
[ 47452.961] (II) Initializing extension COMPOSITE
[ 47452.965] (II) Initializing extension DAMAGE
[ 47452.969] (II) Initializing extension MIT-SCREEN-SAVER
[ 47452.975] (II) Initializing extension DOUBLE-BUFFER
[ 47452.979] (II) Initializing extension RECORD
[ 47452.983] (II) Initializing extension DPMS
[ 47452.987] (II) Initializing extension Present
[ 47452.991] (II) Initializing extension DRI3
[ 47452.991] (II) Initializing extension X-Resource
[ 47452.995] (II) Initializing extension XVideo
[ 47453.002] (II) Initializing extension XVideo-MotionCompensation
[ 47453.002] (II) Initializing extension GLX
[ 47453.008] (II) AIGLX: Screen 0 is not DRI2 capable
[ 47453.432] (II) IGLX: Loaded and initialized swrast
[ 47453.432] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 47453.432] (II) Initializing extension XFree86-VidModeExtension
[ 47453.436] (II) Initializing extension XFree86-DGA
[ 47453.440] (II) Initializing extension XFree86-DRI
[ 47453.440] (II) Initializing extension DRI2
[ 47453.445] (II) modeset(0): Damage tracking initialized
[ 47453.445] (II) modeset(0): Setting screen physical size to 508 x 285
[ 47454.785] (II) config/udev: Adding input device System mouse (/dev/input=
/event0)
[ 47454.785] (**) System mouse: Applying InputClass "libinput pointer catch=
all"
[ 47454.785] (II) LoadModule: "libinput"
[ 47454.788] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[ 47454.938] (II) Module libinput: vendor=3D"X.Org Foundation"
[ 47454.938] 	compiled for 1.20.13, module version =3D 0.30.0
[ 47454.938] 	Module class: X.Org XInput Driver
[ 47454.938] 	ABI class: X.Org XInput driver, version 24.1
[ 47454.940] (II) Using input driver 'libinput' for 'System mouse'
[ 47454.940] (**) System mouse: always reports core events
[ 47454.941] (**) Option "Device" "/dev/input/event0"
[ 47454.944] (**) Option "_source" "server/udev"
[ 47455.076] (II) event0  - System mouse: is tagged by udev as: Mouse
[ 47455.084] (II) event0  - System mouse: device is a pointer
[ 47455.095] (II) event0  - System mouse: device removed
[ 47455.096] (**) Option "config_info" "udev:/dev/input/event0"
[ 47455.096] (II) XINPUT: Adding extended input device "System mouse" (type=
: MOUSE, id 6)
[ 47455.098] (**) Option "AccelerationScheme" "none"
[ 47455.098] (**) System mouse: (accel) selected scheme none/0
[ 47455.098] (**) System mouse: (accel) acceleration factor: 2.000
[ 47455.098] (**) System mouse: (accel) acceleration threshold: 4
[ 47455.111] (II) event0  - System mouse: is tagged by udev as: Mouse
[ 47455.119] (II) event0  - System mouse: device is a pointer
[ 47455.127] (II) config/udev: Adding input device System keyboard multiple=
xer (/dev/input/event1)
[ 47455.128] (**) System keyboard multiplexer: Applying InputClass "Evdev k=
eyboard"
[ 47455.128] (**) System keyboard multiplexer: Applying InputClass "libinpu=
t keyboard catchall"
[ 47455.128] (II) Using input driver 'libinput' for 'System keyboard multip=
lexer'
[ 47455.128] (**) System keyboard multiplexer: always reports core events
[ 47455.128] (**) Option "Device" "/dev/input/event1"
[ 47455.128] (**) Option "_source" "server/udev"
[ 47455.142] (II) event1  - System keyboard multiplexer: is tagged by udev =
as: Keyboard
[ 47455.146] (II) event1  - System keyboard multiplexer: device is a keyboa=
rd
[ 47455.158] (II) event1  - System keyboard multiplexer: device removed
[ 47455.159] (**) Option "config_info" "udev:/dev/input/event1"
[ 47455.159] (II) XINPUT: Adding extended input device "System keyboard mul=
tiplexer" (type: KEYBOARD, id 7)
[ 47455.159] (**) Option "xkb_rules" "evdev"
[ 47455.609] (II) event1  - System keyboard multiplexer: is tagged by udev =
as: Keyboard
[ 47455.613] (II) event1  - System keyboard multiplexer: device is a keyboa=
rd
[ 47455.626] (II) config/udev: Adding input device HAILUCK CO. (/dev/input/=
event2)
[ 47455.626] (**) HAILUCK CO.: Applying InputClass "Evdev keyboard"
[ 47455.626] (**) HAILUCK CO.: Applying InputClass "libinput keyboard catch=
all"
[ 47455.626] (II) Using input driver 'libinput' for 'HAILUCK CO.'
[ 47455.626] (**) HAILUCK CO.: always reports core events
[ 47455.627] (**) Option "Device" "/dev/input/event2"
[ 47455.627] (**) Option "_source" "server/udev"
[ 47455.639] (II) event2  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: is tagged by udev as: Keyboard
[ 47455.643] (II) event2  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: device is a keyboard
[ 47455.663] (II) event2  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: device removed
[ 47455.663] (**) Option "config_info" "udev:/dev/input/event2"
[ 47455.663] (II) XINPUT: Adding extended input device "HAILUCK CO." (type:=
 KEYBOARD, id 8)
[ 47455.663] (**) Option "xkb_rules" "evdev"
[ 47455.677] (II) event2  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: is tagged by udev as: Keyboard
[ 47455.681] (II) event2  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: device is a keyboard
[ 47455.701] (II) config/udev: Adding input device HAILUCK CO. (/dev/input/=
event3)
[ 47455.701] (**) HAILUCK CO.: Applying InputClass "libinput pointer catcha=
ll"
[ 47455.701] (II) Using input driver 'libinput' for 'HAILUCK CO.'
[ 47455.701] (**) HAILUCK CO.: always reports core events
[ 47455.701] (**) Option "Device" "/dev/input/event3"
[ 47455.702] (**) Option "_source" "server/udev"
[ 47455.714] (II) event3  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: is tagged by udev as: Mouse
[ 47455.722] (II) event3  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: device is a pointer
[ 47455.734] (II) event3  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: device removed
[ 47455.734] (**) Option "config_info" "udev:/dev/input/event3"
[ 47455.734] (II) XINPUT: Adding extended input device "HAILUCK CO." (type:=
 MOUSE, id 9)
[ 47455.736] (**) Option "AccelerationScheme" "none"
[ 47455.736] (**) HAILUCK CO.: (accel) selected scheme none/0
[ 47455.736] (**) HAILUCK CO.: (accel) acceleration factor: 2.000
[ 47455.736] (**) HAILUCK CO.: (accel) acceleration threshold: 4
[ 47455.748] (II) event3  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: is tagged by udev as: Mouse
[ 47455.756] (II) event3  - HAILUCK CO.,LTD USB KEYBOARD, class 0/0, rev 1.=
10/1.00, addr 2: device is a pointer
[ 47473.793] (II) config/udev: Adding input device Logitech USB Receiver (/=
dev/input/event4)
[ 47473.793] (**) Logitech USB Receiver: Applying InputClass "libinput poin=
ter catchall"
[ 47473.793] (II) Using input driver 'libinput' for 'Logitech USB Receiver'
[ 47473.793] (**) Logitech USB Receiver: always reports core events
[ 47473.793] (**) Option "Device" "/dev/input/event4"
[ 47473.793] (**) Option "_source" "server/udev"
[ 47473.807] (II) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: is tagged by udev as: Mouse
[ 47473.816] (II) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: device is a pointer
[ 47473.828] (II) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: device removed
[ 47473.829] (**) Option "config_info" "udev:/dev/input/event4"
[ 47473.829] (II) XINPUT: Adding extended input device "Logitech USB Receiv=
er" (type: MOUSE, id 10)
[ 47473.831] (**) Option "AccelerationScheme" "none"
[ 47473.832] (**) Logitech USB Receiver: (accel) selected scheme none/0
[ 47473.832] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 47473.832] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[ 47473.846] (II) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: is tagged by udev as: Mouse
[ 47473.854] (II) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: device is a pointer
[ 47892.921] (EE) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: client bug: event processing lagging behind by 23ms, your system=
 is too slow
[ 47948.174] (EE) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: client bug: event processing lagging behind by 11ms, your system=
 is too slow
[ 47951.197] (EE) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: client bug: event processing lagging behind by 41ms, your system=
 is too slow
[ 47988.409] (EE) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: client bug: event processing lagging behind by 15ms, your system=
 is too slow
[ 48004.732] (EE) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: client bug: event processing lagging behind by 37ms, your system=
 is too slow
[ 48004.732] (EE) event4  - Logitech USB Receiver, class 0/0, rev 2.00/30.0=
0, addr 6: WARNING: log rate limit exceeded (5 msgs per 60min). Discarding =
future messages.


I tried to run firefox and viewed sevral YouTube channels,
then suddenly crashed with :

kiri@kazu:~[1008]% firefox
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: No GPUs detected via P=
CI (t=3D5.25465) [GFX1-]: No GPUs detected via PCI
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: No GPUs detected via P=
CI (t=3D5.25465) |[1][GFX1-]: glxtest: process failed (received signal 11) =
(t=3D5.2565) [GFX1-]: glxtest: process failed (received signal 11)

But now stable ;-)

Anyway thanx !

---
Kiriyama Kazuhiko <kiri@truefc.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202211222.21LCMJbq089998>