Re: GTX 1650 could not work on nvidia-driver-470.63.01_1

From: Gary Jennejohn <gljennjohn_at_gmail.com>
Date: Thu, 09 Sep 2021 09:37:14 UTC
On Thu, 09 Sep 2021 14:59:11 +0900
KIRIYAMA Kazuhiko <kiri@truefc.org> wrote:

> On Thu, 09 Sep 2021 12:39:53 +0900,
> Pete Wright via freebsd-x11 wrote:
> > 
> > 
> > 
> > On 9/8/21 7:23 PM, KIRIYAMA Kazuhiko wrote:  
> > > Hi, all
> > >
> > > I've upgrade machine with NVIDIA GPU GeForce 1650 on Supermicro
> > > X11SPM-F [1]. And I instaled nvidia-driver-470.63.01_1 with
> > > FreeBSD 14.0-CURRENT (n248730-cc1345056b11), but could not
> > > work :  
> >   
> > > EndSection
> > >
> > > Section "Device"
> > >      Identifier     "Card0"
> > >      Driver         "nvidia"
> > >      BusID          "PCI:101:0:0"
> > > EndSection  
> > 
> > you might want to verify that your nvidia card is listed at that pci bus 
> > ID.__ alternatively, you can also try to start Xorg with no configuration 
> > in place.__ Recent Xorg versions do a very good job at auto-detecting 
> > devices correctly, so that may help.__ and finally, verify you have 
> > followed the instructions that the nvidia-driver pkg outputs regarding 
> > loading either the "nvidia" or "nvidia-modeset" driver (1).  
> 
> No xorg.conf results is as follows :
> 

The output in Xorg.0.log shows that Xorg is using
	/usr/local/lib/xorg/modules/drivers/modesetting_drv.so
rather than nvidia-modeset.  Probably not optimal.

I use xorg.conf and modesetting_drv.so is not in my Xorg.0.log.  So
using xorg.conf may be the best approach.

[removed Xorg.0.log]

In the boot output this appears:

nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX
platforms 470.63.01 Tue Aug 3 20:24:32 UTC 2021

so it appears that nvidia-modeset was loaded.

> > if none of those options help, it may be useful to see you dmesg output 
> > to see how the kernel is loading the driver.  
> 
> According to dmesg.boot, NVIDIA VGA bus is PCI5 :
> 

From the boot output:

> vgapci0:  <VGA-compatible display> port 0x3000-0x307f mem
> 0xa9000000-0xa9ffffff,0xaa000000-0xaa01ffff irq 17 at device 0.0
> numa-domain 0 on pci3

> vgapci1:  <VGA-compatible display> port 0x7000-0x707f mem
> 0xc4000000-0xc4ffffff,0xb0000000-0xbfffffff,0xc0000000-0xc1ffffff
> irq 32 at device 0.0 numa-domain 0 on pci5

The first one is on pci3 and the second one is on pci5.

> nvidia1: <NVIDIA GeForce GTX 1650> numa-domain 0 on vgapci1
> vgapci1: child nvidia1 requested pci_enable_io
> vgapci1: child nvidia1 requested pci_enable_io
> vgapci1: Boot video device

This indicates that the console is on vgapci1, which is on pci5.

vgapci0 never requested pci_enable_io.  Whether that causes a problem
later when Xorg starts is unclear to me.

[removed ---<<BOOT>>---]

-- 
Gary Jennejohn