# Failed to get memory pages for NvKmsKapiMemory

**URL:** <https://forums.developer.nvidia.com/t/failed-to-get-memory-pages-for-nvkmskapimemory/176712>\
**Category:** Linux\
**Created:** [April 30, 2021, 1:56pm UTC](https://forums.developer.nvidia.com/t/failed-to-get-memory-pages-for-nvkmskapimemory/176712 "2021-04-30T13:56:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![p.d](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@p.d](https://forums.developer.nvidia.com/u/p.d)\
**Post date:** [April 30, 2021, 1:56pm UTC](https://forums.developer.nvidia.com/t/failed-to-get-memory-pages-for-nvkmskapimemory/176712/1 "2021-04-30T13:56:30Z")

</div>

Hello,

I have replaced nvidia with a competitors one to get system running, so I can not generate now with Your skript the logs You asks. But I can provide the logs from System and on request more information. Issue accourse after upgrade from fedora 33 to 34.

I use NVIDIA GPU GeForce GTX 1660 (TU116-A) at PCI:45:0:0 (GPU-0)

tested with this drivers:  
NVIDIA-Linux-x86\_64-465.24.02  
NVIDIA-Linux-x86\_64-465.27

[drm:\_\_nv\_drm\_gem\_nvkms\_memory\_prime\_get\_sg\_table [nvidia\_drm]] _ERROR_ [nvidia-drm] [GPU ID 0x00002d00] Failed to get memory pages for NvKmsKapiMemory 0x00000000bcbe86fe  
BUG: kernel NULL pointer dereference, address: 000000000000000c  
#PF: supervisor read access in kernel mode  
#PF: error\_code(0x0000) - not-present page  
PGD 0 P4D 0  
Oops: 0000 [#1] SMP NOPTI  
CPU: 6 PID: 2312 Comm: gnome-shell Tainted: P OE 5.11.16-300.fc34.x86\_64 #1  
Hardware name: Micro-Star International Co., Ltd. MS-7C35/MEG X570 UNIFY (MS-7C35), BIOS A.80 01/22/2021  
RIP: 0010:drm\_gem\_map\_dma\_buf+0x3f/0xb0 [drm]  
Code: 00 00 83 fe 03 74 6d 48 8b 87 40 01 00 00 48 8b 40 38 48 85 c0 74 6f 41 89 f5 e8 5c 8d 8f cc 49 89 c4 48 3d 00 f0 ff ff 77 21 \<8b\> 50 0c 48 8b 7b 08 41 b8 20 00 00 00 44 89 e9 48 8b 30 e8 d9 70  
RSP: 0018:ffffb9b3c70afcf8 EFLAGS: 00010207  
RAX: 0000000000000000 RBX: ffff9bd8a423b5a0 RCX: 0000000000000000  
RDX: ffff9bdf5eba6ba0 RSI: ffff9bdf5eb98ac0 RDI: ffff9bdf5eb98ac0  
RBP: ffff9bd8a423b5a0 R08: 0000000000000000 R09: ffffb9b3c70afa98  
R10: ffffb9b3c70afa90 R11: ffffffff8db44f08 R12: 0000000000000000  
R13: 0000000000000000 R14: ffff9bd880efc000 R15: ffff9bd840fefdd8  
FS: 00007fc5f2873d80(0000) GS:ffff9bdf5eb80000(0000) knlGS:0000000000000000  
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033  
CR2: 000000000000000c CR3: 00000001961b8000 CR4: 0000000000350ee0  
Call Trace:  
dma\_buf\_map\_attachment+0x7e/0xf0  
drm\_gem\_prime\_import\_dev+0x64/0x150 [drm]  
drm\_gem\_prime\_fd\_to\_handle+0x196/0x1d0 [drm]  
? drm\_prime\_destroy\_file\_private+0x20/0x20 [drm]  
drm\_ioctl\_kernel+0x86/0xd0 [drm]  
drm\_ioctl+0x20f/0x3c0 [drm]  
? drm\_prime\_destroy\_file\_private+0x20/0x20 [drm]  
radeon\_drm\_ioctl+0x49/0x80 [radeon]  
\_\_x64\_sys\_ioctl+0x82/0xb0  
do\_syscall\_64+0x33/0x40  
entry\_SYSCALL\_64\_after\_hwframe+0x44/0xa9  
RIP: 0033:0x7fc5f6a8c4eb  
Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 55 b9 0c 00 f7 d8 64 89 01 48  
RSP: 002b:00007ffcd26af708 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010  
RAX: ffffffffffffffda RBX: 00007ffcd26af74c RCX: 00007fc5f6a8c4eb  
RDX: 00007ffcd26af74c RSI: 00000000c00c642e RDI: 0000000000000012  
RBP: 00000000c00c642e R08: 00007ffcd26af7f0 R09: 00007fc5f6b58a00  
R10: 0000000000000000 R11: 0000000000000246 R12: 000056553779d410  
R13: 0000000000000012 R14: 0000000000100000 R15: 00007ffcd26aff00  
Modules linked in: rfcomm snd\_seq\_dummy snd\_hrtimer xt\_CHECKSUM xt\_MASQUERADE xt\_conntrack ipt\_REJECT nf\_reject\_ipv4 ip6table\_mangle ip6table\_nat ip6table\_filter ip6\_tables iptable\_mangle iptable\_nat nf\_nat nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 iptable\_filter bridge stp llc cmac bnep sunrpc squashfs vfat fat loop intel\_rapl\_msr intel\_rapl\_common usblp snd\_hda\_codec\_realtek snd\_hda\_codec\_generic ledtrig\_audio iwlmvm snd\_hda\_codec\_hdmi snd\_hda\_intel snd\_intel\_dspcfg soundwire\_intel soundwire\_generic\_allocation mac80211 snd\_soc\_core snd\_compress snd\_pcm\_dmaengine edac\_mce\_amd soundwire\_cadence libarc4 snd\_hda\_codec kvm\_amd snd\_hda\_core ucsi\_ccg ccp ac97\_bus snd\_seq btusb typec\_ucsi typec iwlwifi snd\_seq\_device btrtl snd\_hwdep snd\_pcm btbcm kvm btintel snd\_timer irqbypass bluetooth rapl snd cfg80211 k10temp i2c\_piix4 joydev soundcore pcspkr wmi\_bmof ecdh\_generic i2c\_nvidia\_gpu ecc rfkill binfmt\_misc zram ip\_tables dm\_crypt hid\_logitech\_hidpp nvidia\_drm(POE)  
nvidia\_modeset(POE) nvidia(POE) hid\_logitech\_dj radeon i2c\_algo\_bit drm\_ttm\_helper ttm drm\_kms\_helper crct10dif\_pclmul crc32\_pclmul crc32c\_intel cec nvme mxm\_wmi drm ghash\_clmulni\_intel sp5100\_tco e1000e r8169 nvme\_core wmi pinctrl\_amd fuse  
CR2: 000000000000000c  
—[end trace 186b69729a9a88bc]—

5.11.16-300.fc34.x86\_64 …ernel01.iad2.fedoraproject.org) (gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0), GNU ld version 2.35.1-41.fc34) #1 SMP Wed Apr 21 13:18:33 UTC 2021

[journal\_gnome-shell.txt](https://forums.developer.nvidia.com/uploads/short-url/9WesR06vprb7HvTdmA2JoVPUdXq.txt) (12.9 KB)  
[journal\_nvidia.txt](https://forums.developer.nvidia.com/uploads/short-url/twSvma6CwWsjoGSN0EodTQOKC1k.txt) (3.5 MB)  
[nvidia\_issue\_fc34.txt](https://forums.developer.nvidia.com/uploads/short-url/b7LHqZZ5INX4OhglooDjsElF4aS.txt) (17.6 KB)

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [April 30, 2021, 3:43pm UTC](https://forums.developer.nvidia.com/t/failed-to-get-memory-pages-for-nvkmskapimemory/176712/2 "2021-04-30T15:43:56Z")

</div>

It’s rather a guessing game but it seems with the upgrade fedora was switched from Xorg to Wayland and the necessary module parameter was not set  
nvidia-drm.modeset=1

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [April 30, 2021, 3:45pm UTC](https://forums.developer.nvidia.com/t/failed-to-get-memory-pages-for-nvkmskapimemory/176712/3 "2021-04-30T15:45:32Z")

</div>

Or disable wayland in /etc/gdm/custom.conf

---

<div class="post-metadata">

**Author:** ![p.d](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@p.d](https://forums.developer.nvidia.com/u/p.d)\
**Post date:** [May 1, 2021, 11:57am UTC](https://forums.developer.nvidia.com/t/failed-to-get-memory-pages-for-nvkmskapimemory/176712/4 "2021-05-01T11:57:48Z")

</div>

“nvidia-drm.modeset=1” was enabled in configs. Wayland in /etc/gdm/custom.conf disabled and tried with Nvidia GPU. Works well.  
the issue I have with 2 GPUs, one from Nvidia and second one was from old HP workstation, from competitor. So without this second GPU all works now also well also with enabled Wayland. Looks like GPU driver collision.

Case is closed. thx.
