From owner-freebsd-x11@freebsd.org Mon Sep 21 07:09:07 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DF7E63E8083 for ; Mon, 21 Sep 2020 07:09:07 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa2.yoonka.com (yoonka.com [88.98.225.149]) (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 "msa2.yoonka.com", Issuer "msa2.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BvwXg1xx6z3ZFQ; Mon, 21 Sep 2020 07:09:06 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from venus.yoonka.com (venus.yoonka.com [10.70.7.24]) by msa2.yoonka.com (8.15.2/8.15.2) with ESMTPS id 08L795xG031449 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Mon, 21 Sep 2020 07:09:05 GMT (envelope-from list1@gjunka.com) Subject: Re: GPU selection To: Jan Beich Cc: freebsd-x11@freebsd.org References: <2468547c-e4c8-ec5d-413f-e8f5816d9471@gjunka.com> From: Grzegorz Junka Message-ID: <85b0dff6-ba6d-2fd9-b321-0da2e4721f5e@gjunka.com> Date: Mon, 21 Sep 2020 07:09:05 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4BvwXg1xx6z3ZFQ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-2.29 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gjunka.com]; NEURAL_HAM_LONG(-1.03)[-1.028]; MID_RHS_MATCH_FROM(0.00)[]; NEURAL_SPAM_SHORT(0.03)[0.027]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-x11] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2020 07:09:07 -0000 On 21/09/2020 00:45, Jan Beich wrote: > Grzegorz Junka writes: > >> With the new drm-kmod, is it possible to specify which card should be >> used for X11? > Do you mean BusID in xorg.conf(5) ? That's the reason why I am asking, in the new X11 there is no xorg.conf file. At least I don't seem to be able to find one. It's all configured automatically through mode setting if I understand this correctly? >> For example, say I have two GPUs, a high-end NVidia that I would like >> to use when booting Windows, and some older well supported AMD to work >> with Wayland on FreeBSD. > Disclaimer: I only have one GPU+display combo, so didn't test. > > Example scenarios: > - Run Windows on NVIDIA GPU but use Hyper-V to expose AMD GPU to FreeBSD guest > - Don't install x11/nvidia-driver: keep unused or expose to Windows guest > - Use libglvnd from https://reviews.freebsd.org/D25020 > > With libglvnd one can start a Wayland session on AMD GPU (e.g., for working) > and a native X11 session on NVIDIA GPU (e.g., for gaming, screen sharing). > Make sure WAYLAND_DISPLAY and DISPLAY defined in environ(7) don't leak between > the sessions in order to avoid applications starting on the wrong monitor. I was thinking more about using one card exclusively for Windows and one for FreeBSD, but if I could use both with different drivers that could be even more interesting. And I wasn't planning to do any HyperV, just to boot to either FreeBSD or Windows. GrzegorzJ