More than one possible primary device found

Hi mates!
Xorg cant' start. I have ASUS Z390-P motherboard with integrated GPU and external GPU (Nvidia). I've disabled internal GPU with that guide.
marketing_onboardGPU.gif
And nothing happens. My system:
FreeBSD beast 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
pciconf -lv
Code:
hostb0@pci0:0:0:0:      class=0x060000 rev=0x0a hdr=0x00 vendor=0x8086 device=0x3ec2 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = '8th Gen Core Processor Host Bridge/DRAM Registers'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 rev=0x0a hdr=0x01 vendor=0x8086 device=0x1901 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = '6th-10th Gen Core Processor PCIe Controller (x16)'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:1:1:       class=0x060400 rev=0x0a hdr=0x01 vendor=0x8086 device=0x1905 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x8)'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:1:2:       class=0x060400 rev=0x0a hdr=0x01 vendor=0x8086 device=0x1909 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x4)'
    class      = bridge
    subclass   = PCI-PCI
vgapci1@pci0:0:2:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x3e98 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'CoffeeLake-S GT2 [UHD Graphics 630]'
    class      = display
    subclass   = VGA
xhci0@pci0:0:20:0:      class=0x0c0330 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa36d subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH USB 3.1 xHCI Host Controller'
    class      = serial bus
    subclass   = USB
none0@pci0:0:20:2:      class=0x050000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa36f subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH Shared SRAM'
    class      = memory
    subclass   = RAM
none1@pci0:0:22:0:      class=0x078000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa360 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH HECI Controller'
    class      = simple comms
ahci0@pci0:0:23:0:      class=0x010601 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa352 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
pcib4@pci0:0:27:0:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa340 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:0:28:0:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa338 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib6@pci0:0:28:4:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa33c subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib7@pci0:0:29:0:      class=0x060400 rev=0xf0 hdr=0x01 vendor=0x8086 device=0xa330 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:      class=0x060100 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa305 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Z390 Chipset LPC/eSPI Controller'
    class      = bridge
    subclass   = PCI-ISA
hdac1@pci0:0:31:3:      class=0x040300 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa348 subvendor=0x1043 subdevice=0x86c7
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH cAVS'
    class      = multimedia
    subclass   = HDA
ichsmb0@pci0:0:31:4:    class=0x0c0500 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa323 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none2@pci0:0:31:5:      class=0x0c8000 rev=0x10 hdr=0x00 vendor=0x8086 device=0xa324 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'Cannon Lake PCH SPI Controller'
    class      = serial bus
vgapci0@pci0:3:0:0:     class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x24c9 subvendor=0x1043 subdevice=0x88ac
    vendor     = 'NVIDIA Corporation'
    device     = 'GA104 [GeForce RTX 3060 Ti GDDR6X]'
    class      = display
    subclass   = VGA
hdac0@pci0:3:0:1:       class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x228b subvendor=0x1043 subdevice=0x88ac
    vendor     = 'NVIDIA Corporation'
    device     = 'GA104 High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
nvme0@pci0:4:0:0:       class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa80a subvendor=0x144d subdevice=0xa801
    vendor     = 'Samsung Electronics Co Ltd'
    device     = 'NVMe SSD Controller PM9A1/PM9A3/980PRO'
    class      = mass storage
    subclass   = NVM
re0@pci0:6:0:0: class=0x020000 rev=0x15 hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x1043 subdevice=0x8677
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
nvme1@pci0:7:0:0:       class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa808 subvendor=0x144d subdevice=0xa801
    vendor     = 'Samsung Electronics Co Ltd'
    device     = 'NVMe SSD Controller SM981/PM981/PM983'
    class      = mass storage
    subclass   = NVM
cat /var/log/Xorg.0.log
Code:
[    17.248] (--) Log file renamed from "/var/log/Xorg.pid-1358.log" to "/var/log/Xorg.0.log"
[    17.251]
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[    17.251] Current Operating System: FreeBSD beast 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
[    17.251]
[    17.251] Current version of pixman: 0.42.2
[    17.251]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    17.251] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    17.251] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 22 11:23:27 2023
[    17.253] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[    17.253] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    17.254] (==) No Layout section.  Using the first Screen section.
[    17.254] (**) |-->Screen "Screen0" (0)
[    17.254] (**) |   |-->Monitor "<default monitor>"
[    17.254] (**) |   |-->Device "Card0"
[    17.254] (==) No monitor specified for screen "Screen0".
        Using a default monitor configuration.
[    17.254] (==) Automatically adding devices
[    17.254] (==) Automatically enabling devices
[    17.254] (==) Not automatically adding GPU devices
[    17.254] (==) Automatically binding GPU devices
[    17.255] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    17.260] (==) FontPath set to:
        /usr/local/share/fonts/misc/,
        /usr/local/share/fonts/TTF/,
        /usr/local/share/fonts/OTF/,
        /usr/local/share/fonts/Type1/,
        /usr/local/share/fonts/100dpi/,
        /usr/local/share/fonts/75dpi/,
        catalogue:/usr/local/etc/X11/fontpath.d
[    17.261] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    17.261] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    17.261] (II) Module ABI versions:
[    17.261]    X.Org ANSI C Emulation: 0.4
[    17.261]    X.Org Video Driver: 25.2
[    17.261]    X.Org XInput driver : 24.4
[    17.261]    X.Org Server Extension : 10.0
[    17.262] (!!) More than one possible primary device found
[    17.262] (--) PCI: (0@0:2:0) 8086:3e98:1043:8694 rev 0, Mem @ 0xb2000000/16777216, 0x90000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536
[    17.262] (--) PCI: (3@0:0:0) 10de:24c9:1043:88ac rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/65536
[    17.262] (II) LoadModule: "glx"
[    17.263] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    17.274] (II) Module glx: vendor="X.Org Foundation"
[    17.274]    compiled for 1.21.1.8, module version = 1.0.0
[    17.274]    ABI class: X.Org Server Extension, version 10.0
[    17.274] (II) LoadModule: "nvidia"
[    17.274] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[    17.281] (II) Module nvidia: vendor="NVIDIA Corporation"
[    17.281]    compiled for 1.6.99.901, module version = 1.0.0
[    17.281]    Module class: X.Org Video Driver
[    17.281] (II) NVIDIA dlloader X Driver  515.86.01  Wed Oct 26 08:55:51 UTC 2022
[    17.281] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    17.282] (--) Using syscons driver with X support (version 2.0)
[    17.282] (++) using VT number 9

[    17.282] (EE) No devices detected.
[    17.282] (EE)
Fatal server error:
[    17.282] (EE) no screens found(EE)
[    17.282] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    17.282] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    17.282] (EE)
[    17.282] (EE) Server terminated with error (1). Closing log file.
kldstat
Code:
Id Refs Address                Size Name
 1   69 0xffffffff80200000  1f3e2d0 kernel
 2    1 0xffffffff8213f000   59dfa8 zfs.ko
 3    1 0xffffffff826dd000     a4a0 cryptodev.ko
 4    1 0xffffffff82e10000    fa330 nvidia-modeset.ko
 5    1 0xffffffff83000000  24ed8b0 nvidia.ko
 6    2 0xffffffff82f0b000    31a80 linux.ko
 7    3 0xffffffff82f3d000     be88 linux_common.ko
 8    1 0xffffffff82f49000    14b98 netlink.ko
 9    1 0xffffffff82f5e000     3378 acpi_wmi.ko
10    1 0xffffffff82f62000     3250 ichsmb.ko
11    1 0xffffffff82f66000     2180 smbus.ko
12    1 0xffffffff82f69000     e538 snd_uaudio.ko
13    1 0xffffffff82f78000     3340 uhid.ko
14    1 0xffffffff82f7c000     3380 usbhid.ko
15    1 0xffffffff82f80000     31f8 hidbus.ko
16    1 0xffffffff82f84000     3320 wmt.ko
17    1 0xffffffff82f88000     4350 ums.ko
18    1 0xffffffff82f8d000     2a08 mac_ntpd.ko
If I use BusID for /usr/local/etc/X11/xorg.conf.d/20-nvidia.conf file, it works for one time. After reboot BusID change and X server failed to start. Is it possible to disable internal GPU in system?
 
Code:
[    17.013] (II) Module ABI versions:
[    17.013]     X.Org ANSI C Emulation: 0.4
[    17.013]     X.Org Video Driver: 25.2
[    17.013]     X.Org XInput driver : 24.4
[    17.014]     X.Org Server Extension : 10.0
[    17.014] (--) PCI:*(1@0:0:0) 10de:24c9:1043:88ac rev 161, Mem @ 0xa2000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/65536
[    17.014] (II) LoadModule: "glx"
[    17.015] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    17.026] (II) Module glx: vendor="X.Org Foundation"
[    17.026]     compiled for 1.21.1.8, module version = 1.0.0
[    17.026]     ABI class: X.Org Server Extension, version 10.0
[    17.026] (II) LoadModule: "nvidia"
[    17.026] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[    17.032] (II) Module nvidia: vendor="NVIDIA Corporation"
[    17.032]     compiled for 1.6.99.901, module version = 1.0.0
[    17.033]     Module class: X.Org Video Driver
[    17.033] (II) NVIDIA dlloader X Driver  515.86.01  Wed Oct 26 08:55:51 UTC 2022
[    17.033] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    17.034] (--) Using syscons driver with X support (version 2.0)
[    17.034] (++) using VT number 9
Boot again with only PCIE option. As you see that X server detect only one card PCI:*(1@0:0:0)
cat /usr/local/etc/X11/xorg.conf.d/20-nvidia.conf
Code:
Section "Device"
    Identifier "Card0"
    Driver     "nvidia"
    #BusID      "pci0:2:0:0"
EndSection
Look at BusID, id was changed below
pciconf -lv
Code:
vgapci0@pci0:1:0:0:    class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x24c9 subvendor=0x1043 subdevice=0x88ac
    vendor     = 'NVIDIA Corporation'
    device     = 'GA104 [GeForce RTX 3060 Ti GDDR6X]'
    class      = display
    subclass   = VGA
Try to reboot again.
 
Again 2 cards. BIOS option don't change.
Code:
[    17.580] (!!) More than one possible primary device found
[    17.580] (--) PCI: (0@0:2:0) 8086:3e98:1043:8694 rev 0, Mem @ 0xb2000000/16777216, 0x90000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536
[    17.580] (--) PCI: (3@0:0:0) 10de:24c9:1043:88ac rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/65536
[    17.580] (II) LoadModule: "glx"
[    17.581] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    17.592] (II) Module glx: vendor="X.Org Foundation"
[    17.592]    compiled for 1.21.1.8, module version = 1.0.0
[    17.592]    ABI class: X.Org Server Extension, version 10.0
[    17.592] (II) LoadModule: "nvidia"
[    17.592] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[    17.599] (II) Module nvidia: vendor="NVIDIA Corporation"
[    17.599]    compiled for 1.6.99.901, module version = 1.0.0
[    17.599]    Module class: X.Org Video Driver
[    17.600] (II) NVIDIA dlloader X Driver  515.86.01  Wed Oct 26 08:55:51 UTC 2022
[    17.600] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    17.600] (--) Using syscons driver with X support (version 2.0)
[    17.600] (++) using VT number 9

[    17.600] (EE) No devices detected.
pciconf -lv
Code:
vgapci1@pci0:0:2:0:     class=0x030000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x3e98 subvendor=0x1043 subdevice=0x8694
    vendor     = 'Intel Corporation'
    device     = 'CoffeeLake-S GT2 [UHD Graphics 630]'
    class      = display
    subclass   = VGA

vgapci0@pci0:3:0:0:     class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x24c9 subvendor=0x1043 subdevice=0x88ac
    vendor     = 'NVIDIA Corporation'
    device     = 'GA104 [GeForce RTX 3060 Ti GDDR6X]'
    class      = display
    subclass   = VGA
Again BusID randomly changed.
It's a miracle😂
 
Sometimes X server started successfully and what I see in Xorg.0.log
Code:
[    31.271] (--) PCI: (0@0:2:0) 8086:3e98:1043:8694 rev 0, Mem @ 0xa2000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64
[    31.271] (--) PCI:*(1@0:0:0) 10de:24c9:1043:88ac rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/65536
That time primary device marked with a star PCI:*(1@0:0:0). After reboot again more than one
Code:
[    24.262] (--) PCI: (0@0:2:0) 8086:3e98:1043:8694 rev 0, Mem @ 0xb2000000/16777216, 0x90000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536
[    24.262] (--) PCI: (3@0:0:0) 10de:24c9:1043:88ac rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/65536
Also found sysctl variables
Code:
$ sysctl -a | grep vgapci
vgapci0: <VGA-compatible display> port 0x4000-0x407f mem 0xb3000000-0xb3ffffff,0xa0000000-0xafffffff,0xb0000000-0xb1ffffff irq 18 at device 0.0 on pci3
vgapci0: Boot video device
vgapci1: <VGA-compatible display> port 0x5000-0x503f mem 0xb2000000-0xb2ffffff,0x90000000-0x9fffffff irq 16 at device 2.0 on pci0
nvidia0: <NVIDIA GeForce RTX 3060 Ti> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
irq147: vgapci0:299 @cpu0(domain0): 0
hw.pci.default_vgapci_unit: 0
dev.nvidia.0.%parent: vgapci0
dev.vgapci.1.%parent: pci0
dev.vgapci.1.%pnpinfo: vendor=0x8086 device=0x3e98 subvendor=0x1043 subdevice=0x8694 class=0x030000
dev.vgapci.1.%location: slot=2 function=0 dbsf=pci0:0:2:0 handle=\_SB_.PCI0.GFX0
dev.vgapci.1.%driver: vgapci
dev.vgapci.1.%desc: VGA-compatible display
dev.vgapci.0.wake: 0
dev.vgapci.0.%parent: pci3
dev.vgapci.0.%pnpinfo: vendor=0x10de device=0x24c9 subvendor=0x1043 subdevice=0x88ac class=0x030000
dev.vgapci.0.%location: slot=0 function=0 dbsf=pci0:3:0:0 handle=\_SB_.PCI0.PEG2.PEGP
dev.vgapci.0.%driver: vgapci
dev.vgapci.0.%desc: VGA-compatible display
dev.vgapci.%parent:
 
Back
Top