From nobody Thu Sep 18 01:43:31 2025 X-Original-To: virtualization@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 4cRz235645z68QGd for ; Thu, 18 Sep 2025 01:43:55 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cRz2337dtz3wvy for ; Thu, 18 Sep 2025 01:43:50 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-724b9ba77d5so5087187b3.3 for ; Wed, 17 Sep 2025 18:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1758159824; x=1758764624; darn=freebsd.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=CG6LVQfVVy1WD2e3onSDWhOlOjtJ/k/B61aT/uLxTeM=; b=jQYWp9BfCJe6Xq9Q0XTD0nEp7rntJVl175ysqadeXkye1S2hvjg/FiJd+ddta/FkhW EHYfIkUidXYX+AkkrHTQYDVc3oK2YDilKtWbzgRKeeSXscZkWL03kIz8+lzHPd5PDnUi zdfbqSqUj+x6mHKDkEoSTuszkBfW9HRRg2rIuOl+RaHhjcMcerMZJCoMOMpFm77ejXsf buRDGQ+PW9JIkf8Eusw7APotl/wnyZ+b+poAYHAlDkQcV/cHJsq+1z4wS+4XGTMx7AoW plUlfKywQXb/YGocX90nb9wqL3ZllQc25gUv2jvcwj7hHrNW8/0OqHymG0rCewuKchyT T48g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758159824; x=1758764624; 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=CG6LVQfVVy1WD2e3onSDWhOlOjtJ/k/B61aT/uLxTeM=; b=C1TVF0FHZ7jjxL9bpBYucI8w6HZc1Oqzmu1qHWmcfxJoiY62hdhPoakVuKxEjkI1dD 08/HPpJguvysfSAKDtkGRKbaT84rSk+Q3+1K+C+EeP9a3uH+QmlhBqlLwTtdKRkWkMIk hpBnr+BEtuAHKbcEOUREi7P+CRDx/NdFnW2IaCKyoVcykYbF6aR6JTXY9XZ9og24Z9sM c968k6US05WGrhnPhO4W+ETcdR8EF475Ga2RJ0Wuo75PFk/Tf1f7icWFYR1vMdJqiSP5 chqz9/+0Ua2/yCVh+aR4wi/PLIsAm5bztCHUGOuX57+YFQd+vpe061DaDfcaDqZ+GVPv YDSA== X-Gm-Message-State: AOJu0Yw9+zfrjjCs5OOdvxM9gglPmSra+Kb9ogaOxZdiNKewIoSNcgl7 w4vyHoeXoDGFvnkUGGfFn0wX7KKCxej4gJJ3p2ai2ncCjsTu7M++WgmwW22/jhaOytlblNOPoQu YoWk= X-Gm-Gg: ASbGncv4XV3KQaZ0g+HYTxxyEltzgbH7mkFwz7ZZHw8A3WFpU8OQMNrl2xNDzfLi5+Q 3j4UjVZfwPpzy+cx8xVYmKf4yFAANfmErrRsAtg3taCGZZBWhIbmc/uyOIZayRwxamIhjXrCgra iCkONUhCvKWdbpqRaDeGgFr+53/Dy9PMkuH7j/aSqg8kci4ziSaeJTd9r8b7+fsinN8ozPLE5hz tlANczcHYiXvnj5szgsoWoKGy4UJjsYygXWF5oDi/rm+RnWom7K8CArBGIt3bXGjoT3C1NiOhlo Y4M5MrLDthMtYdr50dRBOo2DqJSNbf1vNnRiL/LBp8HM91T08UZHsqaPobMCQrVY8qPyX8rWTVR AdnGwU8iv/RLBZZaUnAcsrCmqXdU4RduVCA26SnqV9BBrj+lx4ECrnaqZfGoXqMEINqJIKYK0SN vGow== X-Google-Smtp-Source: AGHT+IEFwUnnTl/X9lb5AIph/mSRM1CEdhjsOKsvgynRK6Ma5ZeXGy50hxdzFNdWoNHI0hDQH5Fvsw== X-Received: by 2002:a05:690c:7343:b0:726:9be4:97d3 with SMTP id 00721157ae682-738909ba115mr36159307b3.24.1758159824438; Wed, 17 Sep 2025 18:43:44 -0700 (PDT) Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com. [209.85.128.173]) by smtp.gmail.com with ESMTPSA id 00721157ae682-739717173ccsm3236207b3.30.2025.09.17.18.43.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Sep 2025 18:43:43 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-71d603b60cbso4610697b3.1 for ; Wed, 17 Sep 2025 18:43:43 -0700 (PDT) X-Received: by 2002:a05:690c:f93:b0:71c:1754:2696 with SMTP id 00721157ae682-73892161f9fmr41293817b3.36.1758159823141; Wed, 17 Sep 2025 18:43:43 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 References: <6CV-OY6BcErrWRit9jSpi6fWsYBG3E_Z3u6eTLPcz6foPAZV1gQpZYaZTR7JA_1ot5RQVqrWQaLxJFySXjspIhSbBJGxmckcDQyzxhALNus=@xyinn.org> <09-JQGKdIKMMp4u22KT_U_n7lXzFRKrK3mODyLvhee7a7pYyagqdi1mbgVTeq5QIe_ZrbGfkM4I03ocsBCj6ogh04hKyCcDdY65EtlrysuI=@xyinn.org> <6QpHOGTzqnqxLPCDMcDbChlobQw-mVGWb2BjQk-K7kyE3OjuLCCFLGn5nVpgEvlr3xaipUzLMWz1JaESXx9W6w7aXNyAXN5wbuoS8eaWkcU=@xyinn.org> <7YJWddCC_SUuB_mwDmHL3xecft8_rMou1xosTzBIK1UP_Fw-B786LWZX6CQ8XG6smJQRlxbfJbCq8fmTI15RouBn8GN73IfJvPOg7k6jr-s=@xyinn.org> In-Reply-To: <7YJWddCC_SUuB_mwDmHL3xecft8_rMou1xosTzBIK1UP_Fw-B786LWZX6CQ8XG6smJQRlxbfJbCq8fmTI15RouBn8GN73IfJvPOg7k6jr-s=@xyinn.org> From: Tomek CEDRO Date: Thu, 18 Sep 2025 03:43:31 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AS18NWBhAtNCHk0QQ9uoUuuCyMapAHiPOyDJvMCzjyVmgh6BebgJrE3W0E0Xvn0 Message-ID: Subject: Re: GPU Passthrough on FreeBSD 14.3 (AMD Radeon RX 6900 XT and Windows 10 Pro) To: Jonathan Vasquez Cc: "virtualization@freebsd.org" , =?UTF-8?Q?Corvin_K=C3=B6hne?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cRz2337dtz3wvy On Thu, Sep 18, 2025 at 3:03=E2=80=AFAM Jonathan Vasquez wr= ote: > - CD Projekt / Red <3. They've done an excellent job with GOG and their = games. I'm all about that DRM Offline Gaming lifestyle lol. Yup GOG rulez! :-) > - Check out the first remark. Basically I'm passing in both the integrate= d and the dedicated card (I disabled the integrated card because I need to = pass everything in that Bus if I want to use the mobo's USB/Sound stack whi= ch happens to be on there as well). I then connect my monitors HDMI cable d= irectly to the dedicated card. So no RDP/VNC. It almost feels like I didn't= even have FreeBSD installed lol. when bhyve boots up the monitor receives = the signal automatically. I'm passing my KVM into the VM through the USB as= well so my keyboard/mouse/sound also get passed into the VM. My server is = running headless (I connect over SSH) so it doesn't need any graphics. Howe= ver, the machine does have output from both cards at boot time and early on= the FreeBSD boot process, it's only once it starts too boot that the video= driver no longer sends anything to the cards and allows those devices to b= e passed through later on. So if there was an issue at boot time, I'll stil= l be able to administer the machine. It's my home server. Aaah, mystery solved, its a headless machine :-) I would need to launch bhyve from my main workstation and then go back to that workstation so this is a different setup :-) Maybe I could use onboard Intel and NV for bhyve, but its Ultra9 CPU so DRM does not work here yet.. and there are not much PCI-E ports on modern mobo to add small GTX1030 or something like this.. and probably basic gpu vendor should be different from GPU dedicated for bhyve so it is not blocked by the kernel driver etc etc etc :-P > - These instructions won't work for Intel/NVIDIA because they some differ= ent requirements and configuration options from what Corvin mentioned in hi= s talk. I know some people had to patch the kernel so have some sort of KVM= signature implemented or the NVIDIA driver wouldn't work. I'm not sure if = that's still the case. For AMD none of that was required. It just works ass= uming the system is configured correctly it seems. ACK :-) I switched back from AMD to NVIDIA after pretty decent amdgpu card was not working reliably even for the basic desktop tasks so I will stick to nvidia :-P --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info