mem resource alloc failed

Hello,
Can I helping me? I have this error in load driver nvidia.
Don't worked sysctl.
Code:
/boot/loader.conf
hw.pci.allow_unsupported_io_range=1
rc.config
Code:
/etc/rc.conf
hostname="legion5"
keymap="br.kbd"
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA  DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
moused_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="nvidia-modeset i915kms"
linux_enable="YES"
dbus_enable="YES"
Code:
pciconf -lv | grep -B3 VGA
    vendor     = 'Intel Corporation'
    device     = 'Raptor Lake-P [UHD Graphics]'
    class      = display
    subclass   = VGA
--
    vendor     = 'NVIDIA Corporation'
    device     = 'GN20-P0-R-K2 [GeForce RTX 3050 6GB Laptop GPU]'
    class      = display
    subclass   = VGA
nvidia-driver-550.120
trying file package or compiled ports no success.
Compiled driver 565.57.01, no success.
in rc.conf kld_list="nvidia-modeset", but trying nvidia-drm, only nvidia and no works.

Code:
# sysctl hw.pci.allow_unsupported_io_range=1
sysctl: unknown oid 'hw.pci.allow_unsupported_io_range'
I used linux_enable="YES" no /boot/loader.conf and no worked.

I tested in FreeBSD 14/15 - CURRENT, now i am with FreeBSD 15:
Code:
FreeBSD legion5 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n272752-d5e9faf1f329: Thu Oct 10 03:53:59 UTC 2024     [email]root@releng3.nyi.freebsd.org[/email]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
I used this wiki:
https://wiki.freebsd.org/Graphics
https://badland.io/prime-configuration.md

I tried all options. but I don't think it's the driver. Exists something tunable in kernel to alloc mem card device?
ps. why FreeBSD 15, support integrate graphics, 13 and 14 no worked.
 
Not sure what you mean, but FreeBSD 15 is the latest development version of FreeBSD so newer code and bigger changes will go in there.
but, my integrated graphics not working in old FreeBSD versions. I tried... 12, 13, 14... only 15. But thanks for helping me.
 
Things have changed greatly since the 2023 post that you mentioned. The author often helps end users in a community space elsewhere, he does have an account here however has not been seen here since May.

I tried... 12, 13, 14... only 15.

Was that 14.0 or 14.1?

14.1-RELEASE is recommended for new installations, installation of graphics/drm-kmod will (at this time) automatically install graphics/drm-61-kmod.

12 is no longer supported by the Security Officer.

I use 15.0-CURRENT with an older NVIDIA GPU (with the Intel GPU disabled, for simplicity).

For starters, you might try using the modern NVIDIA GPU alone with graphics/nvidia-drm-kmod.


In the context below, FreeBSD-CURRENT is also unsupported.

 
Things have changed greatly since the 2023 post that you mentioned. The author often helps end users in a community space elsewhere, he does have an account here however has not been seen here since May.



Was that 14.0 or 14.1?

14.1-RELEASE is recommended for new installations, installation of graphics/drm-kmod will (at this time) automatically install graphics/drm-61-kmod.

12 is no longer supported by the Security Officer.

I use 15.0-CURRENT with an older NVIDIA GPU (with the Intel GPU disabled, for simplicity).

For starters, you might try using the modern NVIDIA GPU alone with graphics/nvidia-drm-kmod.


In the context below, FreeBSD-CURRENT is also unsupported.


14.0,14.1, 13.3 and 13.4 no work for me. 'Raptor Lake-P [UHD Graphics]'.
Nvidia optimus, don't disabled iGPU. But thanks!
Used nvidia driver 470.161.03, 550.120 (ports and pkg) and 565.57.01 in nvidia website.
 
Back
Top