From nobody Tue Feb 22 10:14:15 2022 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3666D19E6791; Tue, 22 Feb 2022 10:14:18 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2w4m72gvz4VTQ; Tue, 22 Feb 2022 10:14:16 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1645524855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bfv9NdNGs61KR1LaG61J54Q7F3eXubnevxHPHaUG2Kk=; b=brgXfjAAHIl4d0jZjds37Snj3pjcXEjnFX+a7MAf1Mry1Xk0QLmcgTIXt4VxwZ2+Crh2Oh REgJYHGSAPUCEGJTT63XplOc1u33/pnwDZH9I7UhDakzWZO7VsCX+d2HaoHPZgpb6hzib3 V+vMGfcfQ13aF0sZP4VFFI4pa4uTCi4= Received: from skull.home.blih.net (lfbn-idf2-1-1209-14.w90-92.abo.wanadoo.fr [90.92.34.14]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 21cadafe (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 22 Feb 2022 10:14:15 +0000 (UTC) Date: Tue, 22 Feb 2022 11:14:15 +0100 From: Emmanuel Vadot To: KIRIYAMA Kazuhiko Cc: Greg V , x11@freebsd.org, freebsd-arm@freebsd.org Subject: Re: Is there any X driver for Panfrost on PBP ? Message-Id: <20220222111415.ae1b10b881c6471a004b8e8f@bidouilliste.com> In-Reply-To: <202202211222.21LCMJbq089998@kx.truefc.org> References: <202202202226.21KMQQxG082376@kx.truefc.org> <202202211222.21LCMJbq089998@kx.truefc.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4K2w4m72gvz4VTQ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=brgXfjAA; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; MV_CASE(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[x11,freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, 21 Feb 2022 21:22:19 +0900 KIRIYAMA Kazuhiko wrote: > Hi, Greg ! >=20 > 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 wrote: > > >Hi, lists > >=20 > > Hi, > >=20 > > [..] > >=20 > > >rk_drm0: Cannot find port with phandle 10 > >=20 > > (hopefully this one is harmless..) It is depending on the platform, it's just a warning that we couldn't find one component of the pipeline (so for example eDP on a board or HDMI on the PinebookPro in this case). > > >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 = run startx. > >=20 > > There is *one* relevant X video driver ? xf86-video-modesetting ? and i= t is built in. > >=20 > > (Ok, -amdgpu is somewhat relevant but that's just -modesetting with Tea= rFree hacks. Meanwhile -intel is a terrible pile of abandonware that mostly= causes problems.) > >=20 >=20 > I set Driver to "modesetting" in Device section : >=20 > kiri@kazu:~[1002]% cat /usr/local/share/X11/xorg.conf.d/30-driver-mali.co= nf=20 > Section "Device" > Identifier "Card1" > Driver "modesetting" > EndSection > kiri@kazu:~[1003]%=20 >=20 > and then `startx', X started :-) You shouldn't have to provide any X configuration, modesetting is the default. > kiri@kazu:~[1003]% cat /var/log/Xorg.0.log > [log trimmed] > I tried to run firefox and viewed sevral YouTube channels, > then suddenly crashed with : >=20 > kiri@kazu:~[1008]% firefox > Crash Annotation GraphicsCriticalError: |[0][GFX1-]: No GPUs detected via= PCI (t=3D5.25465) [GFX1-]: No GPUs detected via PCI > Crash Annotation GraphicsCriticalError: |[0][GFX1-]: No GPUs detected via= PCI (t=3D5.25465) |[1][GFX1-]: glxtest: process failed (received signal 11= ) (t=3D5.2565) [GFX1-]: glxtest: process failed (received signal 11) That seems to be some firefox specific thing where it looks for the DRI driver and (probably) do optimization based on this. See https://searchfox.org/mozilla-central/source/widget/gtk/GfxInfo.cpp#343 I don't really know what the correct value should be for embedded platform tbh. It's probably using the render node to get the driver name (that is what make sense at least) but even if we returned the correct value in the panfrost code right now it doesn't handle it ... > But now stable ;-) >=20 > Anyway thanx ! >=20 > --- > Kiriyama Kazuhiko >=20 --=20 Emmanuel Vadot