Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1679722rdb; Tue, 20 Feb 2024 04:00:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZ8j28PjA94TeVQrK4foMZdClPaHJo9gC7PaK42Qjy+yQOjc+HOFQjYcfKRaEcRaYX2Wppm1Nc3mCiuujEFGiTSPp9ov0EKwWajWqYGQ== X-Google-Smtp-Source: AGHT+IEWh/beS7HJ+josNRuoa6+9rk+gSzDonHb92BUo/E4muygMSwwqXfdQ6ycDXQ1j8879FVt0 X-Received: by 2002:a17:90a:fe93:b0:299:7b37:9221 with SMTP id co19-20020a17090afe9300b002997b379221mr4446394pjb.12.1708430451751; Tue, 20 Feb 2024 04:00:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708430451; cv=pass; d=google.com; s=arc-20160816; b=Y0qLVgOB46nCBzHtJhEtCl2641mjliKvMCtPFebRCM7/RqkyI3h23WUYxLaztJFPwA v7KvM2zljNOQVJwJ8XpsAdqrttkwTW/AwLW76DcfrxZew84YSadfBuc7BJdG8HgzQ0Vu JqThEoyuP+rxuJZiHycTrVciBS2hBzW707lycGMWzVQuED+JkGStpwW8m7X4fSHjCwi6 7dT/vwVDJ1JiKNcqQmnNkCvwMzyPrdPLFXG+jvkrqKdQ/DN7K+EtK0McB387xaslrXjK oxgUljPKlL7/EO6vo66cbm3HEjc9FhMl4oUNn524Eie8MN864G08HPEn1rDp89PrK2sM meoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Q+DL0TDfgMPK+9E8Bz9tp/9hEyPowlOU3A05yiRowOY=; fh=J2NDR8PeRA1KoFEjCoxJIZUe8NdvEjfkm4U/NnZoCzs=; b=KRubJfpOhOSxH2blORsknFyNP6Sjq2J5V8B7JL5Z2Ey9t2H4G+NLAsviiZB2omDS/e wLPy1I5ae5CxfPovZueghYGPHDFtSWNwDJvTstviZfe2e8bx6f6rbEXys9ch5it7Jtmh 6nujQdwvdSq6ECGa5sg9Y90oeaxFBIwQzfMsqv7SLe4XhhJBB13LsRp3fBO6d3Z24ZX2 kRbIlG35pc27bGnq+bJiqpwO6oqp7M+0UjjPGQ46w6TxqUtDZF+p4PRzK2X+NawnnKqS qHnbk/nZVJhKmr+HQ0H/G9yZxexbbClw06LN4LkT4q489sJC0BKrrTtTaT1uaStvvKGw GNww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cbz06NmB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-72966-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id qb18-20020a17090b281200b00297040c5cf5si6288498pjb.55.2024.02.20.04.00.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 04:00:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72966-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cbz06NmB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-72966-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BBE0B281E66 for ; Tue, 20 Feb 2024 11:59:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7F536930B; Tue, 20 Feb 2024 11:58:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cbz06NmB" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27D18692F9; Tue, 20 Feb 2024 11:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708430334; cv=none; b=OhNkKo9nBDmbFCylXwvdrv6o65DtGJyQ+0ZaUe6NpHybjXxYhTbqrz4iwNFVaY00QLKmq/tzxd+8c+c1I8qtyssefsBsz9x4ZRM8J9Lkc3QtHobyNM9y09xuGAOt4sC4BX+SMi4c5pT8uircA5hXRqDzB/d3vABKFjTvhdya+7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708430334; c=relaxed/simple; bh=VT7eFyMVVEeBFSqPyu67ezPvXvQVtLFmMvTWDzFp+Z4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Wuifx2ay+AfS+7zyURtzZYpyPY0ZBEw/ji7TsdDWNHphTb9M2KvX9U20NapAGSIDt3rTszvwHpbh/yW0aG7xTlTe0q7jd39YYlyEKs4oq15CKA6QP//wW5FXTLt1qt2AbvX6RFZV3DztAH3B4CRtHkqjjxgl9/xXqgLSbnmvThU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cbz06NmB; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6e4741b23d7so902159b3a.0; Tue, 20 Feb 2024 03:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708430331; x=1709035131; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Q+DL0TDfgMPK+9E8Bz9tp/9hEyPowlOU3A05yiRowOY=; b=cbz06NmB0FNlZGWnqa9gSAO/TankzGnmz5E9dco8KhniJr/sNxbgajkhrbYcNZSoPq GFxHd/JxpXGREBO08twEp5Zy+FcgUduSG0U4pZU10dVY2D/z7QjBusTjG/3A6KoACPlk bHGAhR8h7u8TuYV8G0cdl30CjMJ2fXESDxP2aw5BZB5+rEJ2KQ/yD5zbUlMvoLfiZS34 51Q8mlnfYa2+isyPowOPS+k4E+Pt023oNLkVGympvcOdaHFrDxeK9gG5Sw4kkm1B42Ea VHBfBNMw7qyCyZq4c0aHuvl2CWRTqvZTJEi2j8LHbgNCO57E4usGKoo71yQCXiBOX94R vDkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708430331; x=1709035131; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q+DL0TDfgMPK+9E8Bz9tp/9hEyPowlOU3A05yiRowOY=; b=YjtixKylfE5CGvLeX7Z/yr2mI4YR52yXuHPw1lV0QCe7yQW/CRs6ZeZYJT3FYjH3P9 CwWWklQ6LjyUDfDmbYuJqazXwJ9nv9Ufl+2ZkoUtUwef+4kbE0kqphi1op2bHxMLS5wM dKf3P2UX0Kwjaqq7+Bv5wzYn3E44Wz2cvNsPwDbUO7hTAL9T5qWI47XlDvwWIno3MO3s QsoulYoVS528vtU0ZNhDdHEdVdzvhfI5GdZn/Im94hpVeYrB4gO1knaVvviIioXWB565 mqUxwx5NdjmdSBEKzCAYvADDo4cLfQpjVuY2fgxPRNW60ZC+7QUxn4wtqOhrvDX6AyOS rtnA== X-Forwarded-Encrypted: i=1; AJvYcCX2BJmSwX136RLnCYgKZyfYx1tqX2iHRuOkUNFaGIF9Vd5sPIeGp0RUylmghjSGVHuDN8xLKWRYBZ3lVdgL9NVj/jWRBDY2RlsgVBYGduOpHSwY9LFmZYXw+lOgygtFu0J6Q04T3vkdi9RRhpHynA0= X-Gm-Message-State: AOJu0Yxye/7c1b6VduDLdZTSwViEhvAtCI2txdWFgqMGWW/lkEuJx5dG IHQkx/zaCiZJtCXUfxy+MUuA8T4yulwOSHZoqxSeEuA4p+IS/qdee/P1ImhIWPnYxu49LwVlMYx 7NE9AFn4nXlfGiXOQTwlkPrK9CdE= X-Received: by 2002:a05:6a20:6009:b0:19e:9c5f:d01d with SMTP id r9-20020a056a20600900b0019e9c5fd01dmr11323186pza.19.1708430331202; Tue, 20 Feb 2024 03:58:51 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <6be2558b8462fc08095c24c9257563ab5f3ae013.1708001398.git.geert+renesas@glider.be> <1ff513b9-d4fd-4663-b46b-bb9662e3881c@imgtec.com> In-Reply-To: From: Adam Ford Date: Tue, 20 Feb 2024 05:58:39 -0600 Message-ID: Subject: Re: [PATCH v2] drm/imagination: DRM_POWERVR should depend on ARCH_K3 To: Matt Coster Cc: Maxime Ripard , Biju Das , Geert Uytterhoeven , Frank Binns , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Sarah Walker , Javier Martinez Canillas , Nishanth Menon , Marek Vasut , "linux-renesas-soc@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2024 at 5:26=E2=80=AFAM Adam Ford wrot= e: > > On Tue, Feb 20, 2024 at 3:21=E2=80=AFAM Matt Coster wrote: > > > > Hi Adam, > > > > On 19/02/2024 20:38, Adam Ford wrote: > > > On Mon, Feb 19, 2024 at 3:00=E2=80=AFAM Matt Coster wrote: > > >> > > >> Hi Adam, > > >> > > >> On 18/02/2024 23:26, Adam Ford wrote: > > >>> On Fri, Feb 16, 2024 at 8:14=E2=80=AFAM Maxime Ripard wrote: > > >>>> > > >>>> On Fri, Feb 16, 2024 at 09:13:14AM +0000, Biju Das wrote: > > >>>>> Hi Maxime Ripard, > > >>>>> > > >>>>>> -----Original Message----- > > >>>>>> From: Maxime Ripard > > >>>>>> Sent: Friday, February 16, 2024 9:05 AM > > >>>>>> Subject: Re: RE: [PATCH v2] drm/imagination: DRM_POWERVR should = depend on > > >>>>>> ARCH_K3 > > >>>>>> > > >>>>>> On Fri, Feb 16, 2024 at 08:47:46AM +0000, Biju Das wrote: > > >>>>>>> Hi Adam Ford, > > >>>>>>> > > >>>>>>>> -----Original Message----- > > >>>>>>>> From: Adam Ford > > >>>>>>>> Sent: Thursday, February 15, 2024 11:36 PM > > >>>>>>>> Subject: Re: [PATCH v2] drm/imagination: DRM_POWERVR should de= pend > > >>>>>>>> on > > >>>>>>>> ARCH_K3 > > >>>>>>>> > > >>>>>>>> On Thu, Feb 15, 2024 at 11:22=E2=80=AFAM Adam Ford wrote: > > >>>>>>>>> > > >>>>>>>>> On Thu, Feb 15, 2024 at 11:10=E2=80=AFAM Adam Ford > > >>>>>> wrote: > > >>>>>>>>>> > > >>>>>>>>>> On Thu, Feb 15, 2024 at 10:54=E2=80=AFAM Geert Uytterhoeven > > >>>>>>>>>> wrote: > > >>>>>>>>>>> > > >>>>>>>>>>> Hi Maxime, > > >>>>>>>>>>> > > >>>>>>>>>>> On Thu, Feb 15, 2024 at 5:18=E2=80=AFPM Maxime Ripard > > >>>>>>>>>>> > > >>>>>>>> wrote: > > >>>>>>>>>>>> On Thu, Feb 15, 2024 at 01:50:09PM +0100, Geert Uytterhoev= en > > >>>>>>>> wrote: > > >>>>>>>>>>>>> Using the Imagination Technologies PowerVR Series 6 GPU > > >>>>>>>>>>>>> requires a proprietary firmware image, which is currently > > >>>>>>>>>>>>> only available for Texas Instruments K3 AM62x SoCs. Henc= e > > >>>>>>>>>>>>> add a dependency on ARCH_K3, to prevent asking the user > > >>>>>>>>>>>>> about this driver when configuring a kernel without Texas > > >>>>>>>>>>>>> Instruments K3 > > >>>>>>>> Multicore SoC support. > > >>>>>>>>>>>> > > >>>>>>>>>>>> This wasn't making sense the first time you sent it, and n= ow > > >>>>>>>>>>>> that commit log is just plain wrong. We have firmwares for > > >>>>>>>>>>>> the G6110, GX6250, GX6650, BXE-4-32, and BXS-4-64 models, > > >>>>>>>>>>>> which can be found on (at least) Renesas, Mediatek, > > >>>>>>>>>>>> Rockchip, TI and StarFive, so across three > > >>>>>>>>>>> > > >>>>>>>>>>> I am so happy to be proven wrong! > > >>>>>>>>>>> Yeah, GX6650 is found on e.g. R-Car H3, and GX6250 on e.g. > > >>>>>>>>>>> R-Car M3- > > >>>>>>>> W. > > >>>>>>>>>>> > > >>>>>>>>>>>> architectures and 5 platforms. In two months. > > >>>>>>>>>>> > > >>>>>>>>>>> That sounds like great progress, thanks a lot! > > >>>>>>>>>>> > > >>>>>>>>>> Geert, > > >>>>>>>>>> > > >>>>>>>>>>> Where can I find these firmwares? Linux-firmware[1] seems t= o > > >>>>>>>>>>> lack all but the original K3 AM62x one. > > >>>>>>>>>> > > >>>>>>>>>> I think PowerVR has a repo [1], but the last time I checked = it, > > >>>>>>>>>> the BVNC for the firmware didn't match what was necessary fo= r > > >>>>>>>>>> the GX6250 on the RZ/G2M. I can't remember what the > > >>>>>>>>>> corresponding R-Car3 model is. I haven't tried recently bec= ause > > >>>>>>>>>> I was told more documentation for firmware porting would be > > >>>>>>>>>> delayed until everything was pushed into the kernel and Mesa= . > > >>>>>>>>>> Maybe there is a better repo and/or newer firmware somewhere= else. > > >>>>>>>>>> > > >>>>>>>>> I should have doubled checked the repo contents before I sent= my > > >>>>>>>>> last e-mail , but it appears the firmware [2] for the RZ/G2M= , > > >>>>>>>>> might be present now. I don't know if there are driver update= s > > >>>>>>>>> necessary. I checked my e-mails, but I didn't see any > > >>>>>>>>> notification, or I would have tried it earlier. Either way, = thank > > >>>>>>>>> you Frank for adding it. I'll try to test when I have some t= ime. > > >>>>>>>>> > > >>>>>>>> > > >>>>>>>> I don't have the proper version of Mesa setup yet, but for wha= t it's > > >>>>>>>> worth, the firmware loads without error, and it doesn't hang. > > >>>>>>> > > >>>>>>> Based on [1] and [2], > > >>>>>>> > > >>>>>>> kmscube should work on R-Car as it works on RZ/G2L with panfros= t as > > >>>>>>> earlier version of RZ/G2L which uses drm based on RCar-Du, late= r changed > > >>>>>> to rzg2l-du. > > >>>>>> > > >>>>>> IIRC, the mesa support isn't there yet for kmscube to start. > > >>>>> > > >>>>> What about glmark2? I tested glmark2 as well. > > >>>> > > >>>> It's not really a matter of kmscube itself, but the interaction wi= th the > > >>>> compositor entirely. You can run a headless vulkan rendering, but = an > > >>>> application that renders to a window won't work. > > >>> > > >>> I have made a little progress. I have Ubuntu running on an RZ/G2M > > >>> (Rogue GX6250) with a device tree configuring the GPU and the GPU > > >>> loads with firmware. > > >>> > > >>> powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.45.2.= 58_v1.fw > > >>> powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) > > >>> [drm] Initialized powervr 1.0.0 20230904 for fd000000.gpu on mino= r 0 > > >>> > > >>> drmdevice lists card0 and renderD128 > > >>> --- Checking the number of DRM device available --- > > >>> --- Devices reported 2 --- > > >>> --- Retrieving devices information (PCI device revision is ignored)= --- > > >>> device[0] > > >>> +-> available_nodes 0x05 > > >>> +-> nodes > > >>> | +-> nodes[0] /dev/dri/card0 > > >>> | +-> nodes[2] /dev/dri/renderD128 > > >>> +-> bustype 0002 > > >>> | +-> platform > > >>> | +-> fullname /soc/gpu@fd000000 > > >>> +-> deviceinfo > > >>> +-> platform > > >>> +-> compatible > > >>> renesas,r8a774a1-gpu > > >>> img,img-axe > > >>> > > >>> There is more to this dump, but it seems to repeat. I wanted to sho= w > > >>> that it seems like it's trying to work. > > >>> > > >>> I think I need to modify the powervr code in mesa to recognize the > > >>> renesas,r8a774a1-gpu and associate it with the rcar-du, but I am no= t > > >>> sure, and I am hoping someone might be able to provide some guidanc= e, > > >>> since I think I am missing something somewhere. I modified > > >>> pvr_device.c in the mesa driver to attempt do this: > > >>> > > >>> /* This is the list of supported DRM render/display driver configs.= */ > > >>> static const struct pvr_drm_device_config pvr_drm_configs[] =3D { > > >>> DEF_CONFIG("mediatek,mt8173-gpu", "mediatek-drm"), > > >>> DEF_CONFIG("ti,am62-gpu", "ti,am625-dss"), > > >>> DEF_CONFIG("renesas,r8a774a1-gpu", "rcar-du"), > > >>> }; > > >>> > > >>> When I run modetest -M rcar-du, I can see the encoders and connecto= rs > > >>> and I can display test patterns, so the rcar-du is working. > > >>> > > >>> I built Mesa 24.0.1 with the following options: > > >>> > > >>> meson setup builddir -Dvulkan-drivers=3Dimagination-experimental > > >>> -Dimagination-srv=3Dtrue -Dtools=3Dall -Dgallium-drivers=3Dzink,kms= ro,swrast > > >>> > > >>> I have tried to set PVR_I_WANT_A_BROKEN_VULKAN_DRIVER=3D1 the Mesa > > >>> documentation for the powerVR, and I have exported the variable for > > >>> VK_ICD_FILENAMES to point to the powervr json file. > > >>> > > >>> when I try to run glmark2-drm, I was expecting the GL reddered to b= e > > >>> the powervr, but it keeps using the > > >>> GL_RENDERER: llvmpipe (LLVM 15.0.7, 128 bits) > > >>> > > >>> I realize this driver is still in its infancy, but I was hoping > > >>> someone could give me some guidance to let me know if the work to d= o > > >>> is on the Mesa side or the rcar-du driver side, or something else. > > >>> > > >>> I rebuilt both libdrm and mesa. While I don't get any errors, I al= so > > >>> don't get the hardware acceleration I was hoping for. > > >>> > > >>> I even tried PVR_I_WANT_A_BROKEN_VULKAN_DRIVER=3D1 > > >>> MESA_LOADER_DRIVER_OVERRIDE=3Dzink MESA_DEBUG=3Dcontect glmark2-drm > > >>> > > >>> ...but it only renders with llvmpipe > > >>> > > >>> glmark2 2023.01 > > >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > > >>> OpenGL Information > > >>> GL_VENDOR: Mesa > > >>> GL_RENDERER: llvmpipe (LLVM 15.0.7, 128 bits) > > >>> GL_VERSION: 4.5 (Compatibility Profile) Mesa 24.0.1 > > >>> Surface Config: buf=3D32 r=3D8 g=3D8 b=3D8 a=3D8 depth=3D32 ste= ncil=3D0 samples=3D0 > > >>> Surface Size: 3840x2160 fullscreen > > >>> > > >>> > > >>> I am not as familiar with the Mesa side, but if I can get this work= ing > > >>> to a point where something is rendered, even if it's not 100% > > >>> compliant, I'd like to push patches to the kernel and/or Mesa if > > >>> necessary. > > >>> > > >>> adam > > >>> > > >>> > > >>> > > >>> > > >>>> > > >>>> Maxime > > >> > > >> I suggest you try running Vulkan demos (we use Sascha Willems=E2=80= =99 [1]) > > >> instead of GL at this stage. Support for Zink is currently under hea= vy > > >> development so you may have trouble differentiating between issues w= ith > > >> your kernel changes and the incompleteness in Mesa. > > > > > > I hacked the look-up-tables in the Mesa PowerVR driver to match the > > > values of the other GX6250. I know there must be some minor > > > differences, but I don't know what they are right now. > > > > In case you missed my other email, we have device info for the GX6250 > > variant you=E2=80=99re using in [2]. I=E2=80=99ve been informed that br= anch should be > > usable as-is =E2=80=93 can you give that a try? > > I did migrate to the branch you referenced and remove my hacked > lookup-table, but I get similar results. > > > > > > I also had to tweak src/imagination/vulkan/pvr_device.c again to th= e > > > following: > > > DEF_CONFIG("renesas,r8a774a1-gpu", "renesas,du-r8a774a1"), > > > > Ah yes, not perfectly as-is then. These lines (pvr_drm_configs) declare > > the pairing of GPU to display hardware. You=E2=80=99ll still need this = tweak. Should I push this tweak to gitlab? I think there are a few other Renesas SoC's that have the same GX6250 GPU. > > > > > I am not positive that is the correct thing to do, but with that, I > > > can now run vulkaninfo. > > > I know that it's not fully Vulkan compliant yet, but it appears there > > > is some progress: > > > > > > Layers: count =3D 2 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan > > > version 1.3.211, layer version 1: > > > Layer Extensions: count =3D 0 > > > Devices: count =3D 2 > > > GPU id =3D 0 (Imagination PowerVR Rogue GX6250) > > > Layer-Device Extensions: count =3D 0 > > > > > > GPU id =3D 1 (llvmpipe (LLVM 15.0.7, 128 bits)) > > > Layer-Device Extensions: count =3D 0 > > > > > > VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.3.211, > > > layer version 1: > > > Layer Extensions: count =3D 0 > > > Devices: count =3D 2 > > > GPU id =3D 0 (Imagination PowerVR Rogue GX6250) > > > Layer-Device Extensions: count =3D 0 > > > > > > GPU id =3D 1 (llvmpipe (LLVM 15.0.7, 128 bits)) > > > Layer-Device Extensions: count =3D 0 > > > > > > > > > I then tried to redndr with vkgears, but it didn't redner. When I ru= n > > > vkgears, I get the following: > > > > > > LAYER: Searching for layer manifest files > > > LAYER: In following locations: > > > LAYER: /home/aford/.config/vulkan/implicit_layer.d > > > LAYER: /etc/xdg/xdg-ubuntu/vulkan/implicit_layer.d > > > LAYER: /etc/xdg/vulkan/implicit_layer.d > > > LAYER: /etc/vulkan/implicit_layer.d > > > LAYER: /home/aford/.local/share/vulkan/implicit_laye= r.d > > > LAYER: /usr/share/ubuntu/vulkan/implicit_layer.d > > > LAYER: /usr/share/gnome/vulkan/implicit_layer.d > > > LAYER: /usr/local/share/vulkan/implicit_layer.d > > > LAYER: /usr/share/vulkan/implicit_layer.d > > > LAYER: /var/lib/snapd/desktop/vulkan/implicit_layer.= d > > > LAYER: Found the following files: > > > LAYER: > > > /usr/share/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json > > > LAYER: Searching for layer manifest files > > > LAYER: In following locations: > > > LAYER: /home/aford/.config/vulkan/explicit_layer.d > > > LAYER: /etc/xdg/xdg-ubuntu/vulkan/explicit_layer.d > > > LAYER: /etc/xdg/vulkan/explicit_layer.d > > > LAYER: /etc/vulkan/explicit_layer.d > > > LAYER: /home/aford/.local/share/vulkan/explicit_laye= r.d > > > LAYER: /usr/share/ubuntu/vulkan/explicit_layer.d > > > LAYER: /usr/share/gnome/vulkan/explicit_layer.d > > > LAYER: /usr/local/share/vulkan/explicit_layer.d > > > LAYER: /usr/share/vulkan/explicit_layer.d > > > LAYER: /var/lib/snapd/desktop/vulkan/explicit_layer.= d > > > LAYER: Found the following files: > > > LAYER: > > > /usr/share/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json > > > ERROR: loader_validate_instance_extensions: Instance > > > extension VK_KHR_wayland_surface not supported by available ICDs or > > > enabled layers. > > > Failed to create Vulkan instance. > > > > > > I have tried running in X.org mode instead of Wayland, but I get a > > > different set of errors: > > > > We haven=E2=80=99t been testing with window systems yet =E2=80=93 can y= ou try building > > the Sascha Willems demos [1] with -DUSE_D2D_WSI=3DON and try running > > triangle? > > I didn't realize you hadn't tried window systems yet. > > I'll give that a try. I appreciate the suggestions. > > adam > > > > Matt Matt, I cloned and built the repo you suggested with -DUSE_D2D_WSI=3DON, and cmake threw a warning: CMake Warning (dev) at /usr/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (WAYLAND) does not match the name of the calling package (Wayland). This can lead = to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): I then built with make and executed the triangle demo with the following du= mp: INFO | LAYER: Insert instance layer "VK_LAYER_MESA_device_select" (libVkLayer_MESA_device_select.so) LAYER: vkCreateInstance layer callstack setup to: LAYER: LAYER: || LAYER: LAYER: || LAYER: VK_LAYER_MESA_device_select LAYER: Type: Implicit LAYER: Disable Env Var: NODEVICE_SELECT LAYER: Manifest: /usr/share/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json LAYER: Library: libVkLayer_MESA_device_select.so LAYER: || LAYER: WARNING: terminator_CreateInstance: Failed to CreateInstance in ICD 2. Skipping ICD. WARNING: terminator_CreateInstance: Failed to CreateInstance in ICD 5. Skipping ICD. MESA: error: Render device '/dev/dri/renderD128' has no compatible display device. DEBUG: Copying old device 0 into new device 0 DEBUG: Copying old device 1 into new device 1 DEBUG: Copying old device 0 into new device 0 DEBUG: Copying old device 1 into new device 1 DEBUG: Copying old device 0 into new device 0 DEBUG: Copying old device 1 into new device 1 INFO | LAYER: Failed to find vkGetDeviceProcAddr in layer "libVkLayer_MESA_device_select.so" LAYER: vkCreateDevice layer callstack setup to: LAYER: LAYER: || LAYER: LAYER: || LAYER: LAYER: Using "Imagination PowerVR Rogue GX6250" with driver: "/usr/lib/aarch64-linux-gnu/libvulkan_powervr_mesa.so" Validation error: Incorrect coeff register usage list. /* USC program */ Aborted (core dumped) When the renderD128 has no compatible display device, does that mean there is more I should have done to somehow connect the rcar-du to the GX6250? > > > > [2]: https://gitlab.freedesktop.org/imagination/mesa/-/tree/dev/devinfo > > > > > [ 11102.013] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so > > > [ 11102.014] (II) Module fbdevhw: vendor=3D"X.Org Foundation" > > > [ 11102.014] compiled for 1.21.1.7, module version =3D 0.0.2 > > > [ 11102.014] ABI class: X.Org Video Driver, version 25.2 > > > [ 11102.015] (II) FBDEV(0): using default device > > > [ 11102.016] (II) modeset(G0): using drv /dev/dri/card1 > > > [ 11102.016] (EE) > > > Fatal server error: > > > or all framebuffer devices > > > [ 11102.016] (EE) > > > [ 11102.017] (EE) > > > Please consult the The X.Org Foundation support at http://wiki.x.org = for help. > > > > > > I think I am close. > > > > > > adam > > >> > > >> Matt > > >> > > >> [1]: https://github.com/SaschaWillems/Vulkan