On Tue, 16 Sep 2025 14:23:28 +0200
Jean-Sébastien Pédron <[email protected]> wrote:

> On 16/09/2025 14:10, Tomoaki AOKI wrote:
> > After upgrading graphics/drm-61-kmod to commit
> > 09f1e5c29432d77a992f5f554f48986ef8674e9c, X11 cannot start
> > at least the combination with:
> 
> Hi!
> 
> I was unaware that the NVIDIA drivers were relying on DRM drivers. Sorry 
> for the breakage.
> 
> Here is the change in the DRM drivers that was committed to both version 
> 6.1 and version 6.6:
> https://github.com/freebsd/drm-kmod/pull/368/files
> 
> Do you see anything wrong with this patch?

Sorry, I have too few knowledge about drm-kmod and PCI related
parts of kernel.

But FreeBSD-specific pci_get_domain() seems to be dropped and
replaced with DRM's ones, and starts using macros (maybe hard to track
without prior knowledges of macros).

I assume obtained PCI topologies / leaves are somehow changed
and misses GPU or pixman to be used.

Another possibility could be the new code always want iGPU to be
enabled. I'm disabling iGPU on UEFI firmware config.


> I don’t have any NVIDIA GPU to test. I guess you could look at dmesg(8) 
> to see more messages from the kernel, if any.

dmesg seems matches. Maybe-relevant parts are as below.

vgapci0: <VGA-compatible display> port 0x2000-0x207f mem
0xa3000000-0xa3ffffff,0x60000000-0x6fffffff,0x70000000-0x71ffffff irq
16 at device 0.0 on pci1
vgapci0: Boot video device

nvidia0: <Quadro P1000> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX
platforms  580.82.09  Fri Aug 29 17:07:24 UTC 2025

[drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
sysctl_add_oid: can't re-use a leaf (hw.dri.debug)!
[drm] Initialized nvidia-drm 0.0.0 20160202 for nvidia0 on minor 0


> You could also take snapshots of sysctls with the previous working 
> version and with the new version, and see if some values have changed. 
> I’m thinking of the last part of the patch mentioned above.

Sorry, I'm using sylpheed (Gtk2 app) as my email client, thus,
need X11 to send/receive email. So hard to obtain ones for updated
drm-61-kmod on weekdays.

Which sysctls are wanted? I can send or upload to PR sane ones of 
previous drm-61-kmod.

> 
> -- 
> Jean-Sébastien Pédron

Anyway, filed Bug 289647 for this.

  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289647

Regards.


-- 
Tomoaki AOKI    <[email protected]>

Reply via email to