From owner-freebsd-x11@freebsd.org Mon Sep 21 17:14:45 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 0B3F33F69E7 for ; Mon, 21 Sep 2020 17:14:45 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (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 "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bw9zR3Cybz4X1s; Mon, 21 Sep 2020 17:14:43 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-23-243-161-111.socal.res.rr.com [23.243.161.111]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id b3924e49 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 21 Sep 2020 17:14:35 +0000 (UTC) Subject: Re: GPU selection To: Grzegorz Junka , Jan Beich Cc: freebsd-x11@freebsd.org References: <2468547c-e4c8-ec5d-413f-e8f5816d9471@gjunka.com> <85b0dff6-ba6d-2fd9-b321-0da2e4721f5e@gjunka.com> From: Pete Wright Message-ID: <8b5f31d8-225b-4fa1-298f-fe0bbef7b9cb@nomadlogic.org> Date: Mon, 21 Sep 2020 10:14:30 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <85b0dff6-ba6d-2fd9-b321-0da2e4721f5e@gjunka.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4Bw9zR3Cybz4X1s X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-2.55 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_HAM_LONG(-1.05)[-1.048]; RECEIVED_SPAMHAUS_PBL(0.00)[23.243.161.111:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.21)[-0.215]; NEURAL_HAM_MEDIUM(-0.99)[-0.990]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11]; RCVD_COUNT_TWO(0.00)[2] 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 17:14:45 -0000 On 9/21/20 12:09 AM, Grzegorz Junka wrote: > 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? You can still use an xorg.conf with xorg-1.20.x, but the recommend method is to let auto-detection work.  what i do is drop configuration snippets in /usr/local/etc/x11/xorg.conf.d/.  for example when testing out adjustments to my GPU I have a file 10-amdgpu.conf which includes the pertinent configuration section for that device - for example: Section "Device"     Identifier  "Card0"     Driver      "amdgpu"     BusID       "PCI:38:0:0" EndSection hope this is helpful, -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA