From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-4.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.6 Received: by atuin.qyliss.net (Postfix, from userid 496) id D763E61C81; Wed, 16 Mar 2022 16:55:35 +0000 (UTC) Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 9053461C47; Wed, 16 Mar 2022 16:55:10 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 49F4061BBF; Wed, 16 Mar 2022 16:55:08 +0000 (UTC) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by atuin.qyliss.net (Postfix) with ESMTPS id 25A8661C1F for ; Wed, 16 Mar 2022 16:55:04 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 046F63201FEA; Wed, 16 Mar 2022 12:55:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 16 Mar 2022 12:55:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=rhDFWNVpAe1qTj04cDwfVoHJ6Cu0oKvt3MiqzU tJPI0=; b=tXFZc44xCRlVaQ7h7aOEsWUIa222gA5Naw27+7DzRanJMIzzCtnUAC z8f38F9QfelXD4emxv9ltcyKIbEO4tbtoWw0YhNid/rc8xhN2QL3YgwFP5GDSZyX wgAHDv0PfoK/Z60Z63axL4H3s4caQYivkdJTRYg5HAlic9g+HeuB/byKdcA6lt4e 1tn/Xo8GOjXftYCYll/shSj2gJJXl2eQPVX6E0hfx014LWOaDWp6zqzjg8SJEN6q cf74jPG4KvwKjt3hdDz6Pig8vv6Gmp2Xb+gJarQqRuOE8FdOSIlt9VGC50Czd6a8 BhPnDuhu3+CgcyqxkD0mKgUtU1aC9+Bw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=rhDFWNVpAe1qTj04c DwfVoHJ6Cu0oKvt3MiqzUtJPI0=; b=f9mGFlNixcJ9SQwcUYMGR42sAe5j6gdy3 MhBgY09cjRg4QyJn+kvTfOjwJS3ANIJi5F2I/mqKBNeuhIqfB33u4ZmBLfW0+ikn 63N6g2eC/mQQ26IBkDoTA6HsjfWD5/lMsehPNk9Hl35koMjc1K2DJD4g6u/fEJuu ChXQRNhUiAYzmntqc+12C7QZteHmj3r16qhpDkfksXL2muRxWPNbH6HEsSYEdu8W Y/WDpZkTqwEwi2B1K6k1VAsKDrxTRsg/1q+OBcBkK8BriPeUgq8Tii1l0q334WMy SP9gSSgGK/QOzxfBOTiQ66YDw4E4BB9jxw1/uNU9es0Bd18G0mVYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefvddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhi sheqnecuggftrfgrthhtvghrnhepteejheekjeevhfehveeuieejfeejtefgvefhudetud eludevjeejgeefieekhfehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepqhihlhhishhssegvvhgvrdhqhihlihhsshdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Mar 2022 12:54:59 -0400 (EDT) Received: by eve.qyliss.net (Postfix, from userid 1000) id 7CE2C84D7; Wed, 16 Mar 2022 16:54:57 +0000 (UTC) Date: Wed, 16 Mar 2022 16:54:57 +0000 From: Alyssa Ross To: Thomas Leonard Subject: Re: Using virtio-gpu instead of virtwl Message-ID: <20220316165457.rhowkmzcrawyygpn@eve> References: <20210309162556.ctiy3yfp7plkbdqs@x220.qyliss.net> <87o871tqqu.fsf@alyssa.is> <87bl2sp3p3.fsf@alyssa.is> <20220315140604.ta433j557jsoknkv@eve> <20220315202339.6bqrzsf4yjkggbup@eve> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="milupg7lg33bmzk3" Content-Disposition: inline In-Reply-To: Message-ID-Hash: NKKS4T7JLPXYKX3LYKZKWNFJWMDG2OFL X-Message-ID-Hash: NKKS4T7JLPXYKX3LYKZKWNFJWMDG2OFL X-MailFrom: qyliss@eve.qyliss.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-discuss.spectrum-os.org-0; header-match-discuss.spectrum-os.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: discuss@spectrum-os.org X-Mailman-Version: 3.3.5 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --milupg7lg33bmzk3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > I tried running with `crosvm --gpu`, but after `modprobe virtio-gpu`, > crosvm crashed with: > > [ 31.326763] Invalid ELF header magic: != ELF > [ 31.331450] [drm] pci: virtio-gpu-pci detected at 0000:00:07.0 > [ 31.333020] [drm] Host memory window: 0x200000000 +0x200000000 > [ 31.333983] [drm] features: +virgl -edid +resource_blob +host_visible > [ 31.333984] [drm] features: +context_init > [ 31.337289] [drm] number of scanouts: 1 > [ 31.337938] [drm] number of cap sets: 1 > [ERROR:src/linux.rs:3264] child pcivirtio-gpu (pid 63446) died: signo > 17, status 11, code 2 > [ERROR:devices/src/proxy.rs:212] failed write to child device process > pcivirtio-gpu: failed to send packet: Broken pipe (os error 32) > > Then I tried with `--gpu=backend=2d` and that didn't crash, but > instead opened a window showing some bootloader stuff. I now have > /dev/dri/{card0, renderD128} devices, so I guess the next step is > figuring out what they do! When I've previously attempted this, I had some crosvm thread crash with a seccomp violation because it tried to log something. If you --disable-sandbox, it might work or at least give you a clearer error message. > > Good luck! Let me know if I can help with anything else. > > If you happen to know of any documentation, that would be great. But I > guess I probably just need to spend a load of time reading crosvm, > Linux, and Sommelier source code. There might be some helpful stuff in the Mesa repo as well, because lots of the latest graphics stuff is being done for crosvm. A quick grep found me the Venus (Vulkan over virtio-gpu) documentation, which describes testing with crosvm, and the script they use to run crosvm in CI. It also reminded me that there are two different virgl implementations in crosvm, virgl_renderer and virgl_renderer_next. I think last time I tried I had better luck with virgl_renderer. You can set buildFeatures in the Nix expression to experiment with them. I hope some of that's helpful. I really wish I'd taken better notes the one time I got this to work. --milupg7lg33bmzk3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmIyFlkACgkQ+dvtSFmy ccAhTw//VBH/yf1o/6rcwZZSLRI1H0ZNla//S4jBs5MJGNXqHbh074AmGTEY0Vky f/OmX6bXw2eMELgxIK6O6TsWWPmaa/UktGJekdSKtvG+BPicof3482FS/Kn71v+Q KVVT+B7X86OWQnPpr0rfdaC2tpI/hpLAer/fmFry5LLMqM05fEqirJJhRqQaCWvG UE68+uJ73Hr5PK+Au/JggETkLo+sFkgTAIgzykbUBo0v61CwdJKBS5LOHKr8ko7V CdIIhCzXLbWXL2aHQJ9hM6wSCyjll97PLeDLJXYTBc6VkEQyfJCx7ZGcxh3mHHyz 2NqfKGgFHGX6Ka6osm3mI6nB3m8xJ7C99MBz04PzKZpLr+8RsEfT8uTjaTM6FMiY zL3imvaunH8Eo/r4jRmQ5956lNngrNxZndMPgA/kiVfRAE41qMGpaLsktf92RTeQ oG5RItrur5mCrk6etg7Js1xbJQPVs1jWGHElDVzY5R38L/wdRTzTPlnXtDFq+md+ sX++gq+4TY/HazaKFpHjGH0vq17EBp3xP9sZxQvw2PY8d4i39KyDJ8gAJfYxADGw xVXICuZ+np0NekXGAK0pL4oTyWJi8zrr6TI2Se2xDAfyke5uHejKajfxwwZCfdf8 nU31RP6a8YryJ6p4P0jIfvS4R6FHfSmHl/TxwBVk6+PJXUxu1sU= =ZKxo -----END PGP SIGNATURE----- --milupg7lg33bmzk3--