From nobody Thu Aug 19 18:56:41 2021 X-Original-To: freebsd-x11@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 98412175D505 for ; Thu, 19 Aug 2021 18:56:51 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GrDX31cFsz3QMd; Thu, 19 Aug 2021 18:56:50 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 41e66e10; Thu, 19 Aug 2021 18:56:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=jLCe06Gz9pER2H W4xhv69MI/kuk=; b=GppnfwxbBOjbx910nrdtzMBKfTEojNq4LbBde28+kjxMuv NzqkIbhpu2iKh47A0I53vB27rIHKv7IlnayNlj/wcZw0eCeBNts62LCY+0JX51Rc FYWmkGCaW3IWsOxDChLNfN3YT2Cn8va7fmtZZknumPZNAa7znJt4Bvn0vTCyB6UR wD4SKEfOREiI8XWfWPQO4XzrBKkOURxF4J2KhFx0K7S9OgpjyDTpyo9BOoCUhuTY gdKCMGu0Ex5UGQaPrf0LHQlxmIWh8wYYKZyTG5ShpRT43InJLbup567cp/vgUVlc Qul0CQVKDxspwDUSNFBvK2CPfo/jI/YCqxVkZFSQ== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=XS3KPkKC R7uJHnB+Tgq+LBtYxMGeh4iVB1qzuj4TxwoNnYDUBO8JWYUmAl1t4vG7QTJVE9p4 eXKPlzIIlBLbH9IFLSPoQ1Q5K628T3DDclKNAlGmfKgN/LwMC/9vLsuMjixX8FAZ MTFWlWZU702yGwuxzcRO30wtU/PsRP6yB97ufeuzHjWdP6huA/tKFvBN2mVwB1JT 1K8vImv+7hAtTZSObHZSSmxlGaZQJQzb63lYSMmNRIpRgBDm/XruiuzJPJVveHb3 cIv97dSToU/2QYTm9fuR2Y3ywyeLeyPQgPr20bsMApZgyIUK5z1GTi13RlQMdV70 QtL2egqHIIurKA== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 3c9f606a (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Thu, 19 Aug 2021 18:56:41 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: 3.0-STABLE / drm-kmod / dual radeon problems From: Michael Gmelin In-Reply-To: Date: Thu, 19 Aug 2021 20:56:41 +0200 Cc: freebsd-x11@freebsd.org Message-Id: <3F70D469-0992-42BB-B8DC-738E5162C5C6@grem.de> References: To: John Kennedy X-Mailer: iPhone Mail (18F72) X-Rspamd-Queue-Id: 4GrDX31cFsz3QMd X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N > On 19. Aug 2021, at 20:53, John Kennedy wrote: >=20 > =EF=BB=BF[resending to freebsd-x11@ vs x11@] >=20 > I'm making my semi-annual attempt to convert a windows box to a FreeBSD b= ox > and having the same kind of issues. It is a Dell Optiplex 9020 with dual > radeon cards (and currently 3 monitors, 4 if I can get it to work). >=20 > TL;DR: I can get it to work with any one card, but not both cards. >=20 > [uname -aUK] > FreeBSD admin 13.0-STABLE FreeBSD 13.0-STABLE #4 stable/13-n246840-86a9= 6281df03: Wed Aug 18 09:55:41 PDT 2021 warlock@admin:/usr/obj/usr/src/am= d64.amd64/sys/GENERIC amd64 1300514 1300514 >=20 > [pkg info | grep -E -e 'drm-.*kmod' -e 'xorg-([0-9]|server)' -e video-ati= ] > drm-fbsd13-kmod-5.4.92.g20210720_1 DRM modules for the linuxkpi-based K= MS components > drm-kmod-g20190710_1 Metaport of DRM modules for the linuxkpi= -based KMS components > xf86-video-ati-19.1.0_4,1 X.Org ati display driver > xorg-7.7_3 X.Org complete distribution metaport > xorg-server-1.20.11_3,1 X.Org X server and related programs >=20 > Kernel drivers are loaded (although I don't think no-.conf setup tries to= use the radeon bits): >=20 > [kldstat | grep -e radeon -e ^Id -e drm] > Id Refs Address Size Name > 5 1 0xffffffff830f9000 150c80 radeonkms.ko > 6 2 0xffffffff8324a000 7f548 drm.ko > 10 1 0xffffffff832e9000 4358 radeon_oland_pfp_bin.ko > 11 1 0xffffffff832ee000 4358 radeon_oland_me_bin.ko > 12 1 0xffffffff832f3000 4358 radeon_oland_ce_bin.ko > 13 1 0xffffffff832f8000 41d8 radeon_oland_rlc_bin.ko > 14 1 0xffffffff832fd000 9dd8 radeon_oland_mc_bin.ko > 15 1 0xffffffff83307000 11410 radeon_oland_smc_bin.ko > 16 1 0xffffffff83319000 37af0 radeon_TAHITI_uvd_bin.ko > 17 1 0xffffffff83351000 de00 radeon_TAHITI_vce_bin.ko >=20 > X sees both cards: >=20 > [grep -e 'More than one' -e 'PCI:' /var/log/Xorg.0.log -e WW] > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > [ 80926.514] (!!) More than one possible primary device found > [ 80926.514] (--) PCI: (1@0:0:0) 1002:6611:1028:210b rev 0, Mem @ 0xe00= 00000/268435456, 0xf7e00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/= 65536 > [ 80926.514] (--) PCI: (5@0:0:0) 1002:6611:1028:210b rev 0, Mem @ 0xd00= 00000/268435456, 0xf7d00000/262144, I/O @ 0x0000d000/256, BIOS @ 0x????????/= 65536 > [ 80926.517] (WW) VGA arbiter: cannot open kernel arbiter, no multi-car= d support >=20 > I've seem people claim that VGA arbiter doesn't mean I can't use both car= ds > at once the same time, but I'll call it out here. OS obviously sees both c= ards > and reports them like this: >=20 > [pciconf -lv] > vgapci0@pci0:1:0:0: class=3D0x030000 rev=3D0x00 hdr=3D0x00 vendor=3D= 0x1002 device=3D0x6611 subvendor=3D0x1028 subdevice=3D0x210b > vendor =3D 'Advanced Micro Devices, Inc. [AMD/ATI]' > device =3D 'Oland [Radeon HD 8570 / R5 430 OEM / R7 240/340 / R= adeon 520 OEM]' > class =3D display > subclass =3D VGA > vgapci1@pci0:5:0:0: class=3D0x030000 rev=3D0x00 hdr=3D0x00 vendor=3D= 0x1002 device=3D0x6611 subvendor=3D0x1028 subdevice=3D0x210b > vendor =3D 'Advanced Micro Devices, Inc. [AMD/ATI]' > device =3D 'Oland [Radeon HD 8570 / R5 430 OEM / R7 240/340 / R= adeon 520 OEM]' > class =3D display > subclass =3D VGA >=20 > X with no .conf only uses one monitor (or, more correctly, just the monit= ors > that are associated with the card it defaulted to). I can play games with= a > .conf using the device section and BusIDs to get it to use the two monitor= s on > the 2nd card, but then the first gets ignored. I've experimented with > AutoAddGPU (true), and GPUDevice (2nd card) with no love. >=20 > It seems like X doesn't want to recognize both cards (I think this is the= one with radeon driver): >=20 > [xrandr --listproviders)] > Providers: number : 1 > Provider 0: id: 0x53 cap: 0xf, Source Output, Sink Output, Source Offlo= ad, Sink Offload crtcs: 2 outputs: 2 associated providers: 0 name:OLAND @ pc= i:0000:05:00.0 >=20 > With no .conf, it just shows this: >=20 > [xrandr --listproviders] > Providers: number : 1 > Provider 0: id: 0x43 cap: 0xa, Sink Output, Sink Offload crtcs: 2 outpu= ts: 2 associated providers: 0 name:modesetting >=20 > Depending on which card I've picked with the .conf, it'll show that. > It seems like my first hurdle is to get X running on all cards at the > same time, then dig into Xinerama and monitor layouts so things show > up where they're supposed to. >=20 > Any suggestions? There has been a LOT of water under the bridge for the > DRM drivers and X11 from the web hits I'm finding. I've attached the > Xorg.0.log when I don't have a custom configuration, but I assume it's > pretty useless since it says "Not automatically adding GPU devices", > which would seem to preclude my 2nd card. >=20 > 3.0-STABLE gives me warm fuzzy feelings :)