Bug 259995 - x11/nvidia-driver: Not initialized when running inside Hyper-V.
Summary: x11/nvidia-driver: Not initialized when running inside Hyper-V.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 16:37 UTC by Ka Ho Ng
Modified: 2021-12-05 22:47 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ka Ho Ng freebsd_committer freebsd_triage 2021-11-23 16:37:17 UTC
The following is the kernel log output:
----
vgapci0: <VGA-compatible display> mem 0x41000000-0x41ffffff,0xff0000000-0xfffffffff,0xfe2000000-0xfe3ffffff at device 0.0 on pci0
nvidia0: <NVIDIA GeForce GTX 1050 Ti> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
last message repeated 1 times
NVRM: The NVIDIA GPU afeb:00:00.0
NVRM: (PCI ID: 10de:1c82) installed in this system has
NVRM: fallen off the bus and is not responding to commands.
nvidia0: NVRM: NVIDIA driver attach failed.
device_attach: nvidia0 attach returned 6
----

The pciconf -bclv output:
----
vgapci0@pci45035:0:0:0:	class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1c82 subvendor=0x1462 subdevice=0x8c96
    vendor     = 'NVIDIA Corporation'
    device     = 'GP107 [GeForce GTX 1050 Ti]'
    class      = display
    subclass   = VGA
    bar   [10] = type Memory, range 32, base rx41000000, size 16777216, enabled
    bar   [14] = type Prefetchable Memory, range 64, base rxf0000000, size 268435456, enabled
    bar   [1c] = type Prefetchable Memory, range 64, base rxe2000000, size 33554432, enabled
    cap 01[60] = powerspec 3  supports D0 D3  current D0
    cap 05[68] = MSI supports 1 message, 64 bit
    cap 10[78] = PCI-Express 2 legacy endpoint max data 256(256) RO
                 max read 512
                 link x16(x16) speed 2.5(8.0) ASPM disabled(L0s/L1) ClockPM enabled
    ecap 0002[100] = VC 1 max VC0
    ecap 0004[128] = Power Budgeting 1
    ecap 0001[420] = AER 2 0 fatal 0 non-fatal 0 corrected
    ecap 000b[600] = Vendor [1] ID 0001 Rev 1 Length 36
    ecap 0019[900] = PCIe Sec 1 lane errors 0
----

The guide I followed is:
https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/deploy/deploying-graphics-devices-using-dda
Comment 1 Ka Ho Ng freebsd_committer freebsd_triage 2021-11-23 16:38:06 UTC
(In reply to Ka Ho Ng from comment #0)

On the other hand, this works on Fedora 35.
Comment 2 Ka Ho Ng freebsd_committer freebsd_triage 2021-12-05 22:47:54 UTC
Fixed by 75412a521f60d4b0393c730ffb284e7c6ff9d2de.