From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 08 Nov 2021 15:09:18 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mk5Ko-0006X0-D4 for lore@lore.pengutronix.de; Mon, 08 Nov 2021 15:09:18 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mk5Ko-0007DZ-2H; Mon, 08 Nov 2021 15:09:18 +0100 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mk5KN-0007Cw-8X; Mon, 08 Nov 2021 15:08:51 +0100 Message-ID: From: Lucas Stach To: ptxdist@pengutronix.de, christian.melki@t2data.com Date: Mon, 08 Nov 2021 15:08:50 +0100 In-Reply-To: <9007ddc4-36fe-b33e-32c0-3f088623335e@t2data.com> References: <20211108130304.GL22301@pengutronix.de> <9007ddc4-36fe-b33e-32c0-3f088623335e@t2data.com> User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Subject: Re: [ptxdist] mesalib 2021.11 broken kmsro driver? X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Am Montag, dem 08.11.2021 um 14:37 +0100 schrieb Christian Melki: > On 11/8/21 14:03, Michael Olbrich wrote: > > Hi, > > > > On Mon, Nov 08, 2021 at 11:16:11AM +0100, Christian Melki wrote: > > > The kmsro driver doesn't seem to create any .so files. > > > According to people on #dri-devel it's builtin in other .so files? > > > So the idea of kmsro library names to copy will fail in the current .make. > > > > What exactly is broken? > > ptxdist: error: missing gallium driver armada-drm_dri.so > > > In general, all gallium drivers are built into a > > single file. 'make install' creates hardlinks for all drivers that are > > built. In ptxdist we just create one gallium_dri.so and symlinks for all > > drivers. > > The 'kmsro' argument for the meson 'gallium-drivers' options just means, > > build all KMS only drivers. So the list of hardlinks/softlinks ist > > different. That's why we have the '$(subst kmsro, ....'. > > kmsro doesn't create any library hardlinks named according to whatever > list ptxdist has. Actually, adding kmsro doesn't change built number of > objects or generated library hardlinks at all. > > with kmsro: > Gallium drivers: kmsro virgl r600 nouveau swrast svga > > [1621/1621] Linking target src/mesa/drivers/dri/libmesa_dri_drivers.so > > $ ls -1gG platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/* > -rwxr-xr-x 2 94331520 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/i965_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/kms_swrast_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/nouveau_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/r600_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/swrast_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/virtio_gpu_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:25 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/vmwgfx_dri.so > > > without kmsro: > Gallium drivers: virgl r600 nouveau swrast svga > > [1621/1621] Linking target src/mesa/drivers/dri/libmesa_dri_drivers.so > $ ls -1gG platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/* > -rwxr-xr-x 2 94331520 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/i965_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/kms_swrast_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/nouveau_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/r600_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/swrast_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/virtio_gpu_dri.so > -rwxr-xr-x 12 127009440 nov 8 14:34 > platform-secplatform/packages/mesa-21.2.3/usr/lib/dri/vmwgfx_dri.so > > .. or something else that's apparently magic is happening. kmsro just wraps around other drivers that support the render GPU being different from the scanout GPU. From the list above you have not enabled any of those drivers (e.g. etnaviv, freedreno, panfrost, ...), so there isn't anything to wrap around for kmsro, so you don't get any libraries built. Regards, Lucas _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de