Bug 233069 - x11/nvidia-driver-340: panic with GeForce 320M
Summary: x11/nvidia-driver-340: panic with GeForce 320M
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-08 11:18 UTC by Tim Preston
Modified: 2024-01-09 22:43 UTC (History)
5 users (show)

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


Attachments
Core dump summary (26.97 KB, application/x-bzip)
2018-11-08 11:18 UTC, Tim Preston
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Preston 2018-11-08 11:18:09 UTC
Created attachment 199077 [details]
Core dump summary

I'm running 12.0-BETA3 but have experienced this issue with other versions of 11.2, stable/11, and 12-CURRENT.

Loading the nvidia-driver-340 and running startx will crash the machine every time. This is a 2010 Mac Mini and uniquely the graphics card shares system memory. I believe the Device ID is 0x08a4, and is listed as supported here: https://www.nvidia.com/object/IO_32667.html

I have tried loading the kernel extension via kldload, /etc/rc.conf, and /boot/loader.conf, and building with ports.

Configuration details are:

pciconf -lv | grep display -B 3 -A 1
vgapci0@pci0:5:0:0:	class=0x030000 card=0x00c0106b chip=0x08a410de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'MCP89 [GeForce 320M]'
    class      = display
    subclass   = VGA

/usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf
Section "Device"
	Identifier "Card0"
	Driver     "nvidia"
	BusId      "PCI:5:0:0"
EndSection

A core dump summary is attached.

Thank you,
Tim
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-11 14:00:34 UTC
Maintainer feedback, please!
Comment 2 Alexandre C. Guimarães freebsd_committer freebsd_triage 2019-10-30 21:41:06 UTC
IDK if this is the exactly same problem but upgrading to 410.104:

>ln: /usr/local/lib/xorg/modules/extensions/.nvidia/libglx.so.1:
> No such file or directory
>pkg: POST-INSTALL script failed

Then, as expected, the driver don't work.

>12.1-STABLE f97711e483f(stable/12)

Thank you.
Comment 3 Alex S 2019-10-30 22:49:43 UTC
(In reply to Alexandre C. Guimarães from comment #2)

libglx.so was renamed to libglxserver_nvidia.so in 410.x, so your problem is related to bug 232645.
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2019-10-31 08:53:58 UTC
(In reply to Alexandre C. Guimarães from comment #2)

Yes, SUB_FILES were not adjusted in the update to 410.104.  Please try with the latest update to 430.50 in ports r516138.
Comment 5 Alexandre C. Guimarães freebsd_committer freebsd_triage 2019-10-31 15:00:11 UTC
(In reply to Alexey Dokuchaev from comment #4)

Thank you.
Comment 6 probono 2022-01-02 15:16:09 UTC
On Mac mini Mid 2010 (Macmini4,1) the NVIDIA GeForce 320M GPU is not recognized correctly by initgfx.

Has anyone ever gotten it to work? If so, how?

Reference:
https://github.com/helloSystem/ISO/issues/358
Comment 7 Greg A. Woods 2024-01-09 22:43:19 UTC
I've been trying (without much vigour) to solve this problem for several years now too.

I've got a MacBook Pro 13", with a GeForce 320M GPU, i.e. a MacBookPro7,1.

I've been trying FreeBSD on it since 11.0 or so I think, but of course I've never managed to get X11 working.

Recently I upgraded it to 14.0 and tried again with the nvidia-driver-340, but to no avail -- it just panics after blanking the screen.

I get a rather less than helpful crash backtrace just as Tim posted originally.

I've rebuilt it from ports with WITH_DEBUG=yes and DEBUG_FLAGS=-g in /etc/make.conf, and with manually installing the nvidia.ko.debug file into /usr/lib/debug/boot/kernel and still there are no symbols for any (but maybe one) of the calls in nvidia.ko.

I have tried manually running kgdb and manually loading the nvidia.ko.debug file with the add-symbol-file command and still there are no symbols for the nvidia.ko function calls.

Does anyone have any other hints as to how to make any progress on this?

I can upload my latest core.txt file if that might help.