DMA-API: nouveau 0000:01:00.0: mapping sg segment longer than device claims to support [len=8388608] [max=65536]
After trying 5.16-rc1 to verify fix for #91 (closed) , I'm getting the following warning:
[ 48.787916] ------------[ cut here ]------------
[ 48.787933] DMA-API: nouveau 0000:01:00.0: mapping sg segment longer than device claims to support [len=8388608] [max=65536]
[ 48.787945] WARNING: CPU: 1 PID: 819 at kernel/dma/debug.c:1162 debug_dma_map_sg+0x32a/0x380
[ 48.787956] Modules linked in: sunrpc uvcvideo intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal videobuf2_vmalloc intel_powerclamp videobuf2_memops videobuf2_v4l2 coretemp videobuf2_common kvm_intel videodev iwldvm mc snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi kvm snd_hda_intel mac80211 snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec irqbypass iTCO_wdt snd_hda_core intel_pmc_bxt rapl libarc4 iTCO_vendor_support intel_cstate snd_hwdep snd_seq mei_hdcp intel_uncore snd_seq_device snd_pcm dell_laptop snd_timer iwlwifi dell_smm_hwmon cfg80211 snd i2c_i801 soundcore i2c_smbus mei_me rfkill mei lpc_ich dell_wmi joydev ledtrig_audio dell_smbios dcdbas sparse_keymap dell_wmi_descriptor wmi_bmof dell_smo8800 fuse zram ip_tables nouveau i915 hid_logitech_hidpp crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw r8169 drm_ttm_helper mxm_wmi hid_logitech_dj ttm wmi video ipmi_devintf ipmi_msghandler
[ 48.788201] CPU: 1 PID: 819 Comm: Xorg Not tainted 5.16.0-0.rc1.20211119git4c388a8e740d.17.fc36.x86_64 #1
[ 48.788206] Hardware name: Dell Inc. Dell System XPS L502X/0YR8NN, BIOS A06 07/20/2011
[ 48.788210] RIP: 0010:debug_dma_map_sg+0x32a/0x380
[ 48.788217] Code: 24 18 48 8b 54 24 20 44 8b 44 24 28 48 89 c6 4c 8b 4c 24 30 48 c7 c7 80 35 83 9c 4c 89 4c 24 18 4c 89 5c 24 10 e8 a6 61 c5 00 <0f> 0b 4c 8b 4c 24 18 4c 8b 5c 24 10 8b 15 e4 b3 2f 02 85 d2 0f 85
[ 48.788222] RSP: 0018:ffffbd27c17afbf8 EFLAGS: 00010292
[ 48.788230] RAX: 0000000000000070 RBX: ffff9c0bc242c0d0 RCX: 0000000000000000
[ 48.788234] RDX: 0000000000000001 RSI: ffffffff9c8922f0 RDI: 00000000ffffffff
[ 48.788239] RBP: ffff9c0bc7252f40 R08: 0000000000000000 R09: ffffbd27c17afa38
[ 48.788243] R10: ffffbd27c17afa30 R11: ffffffff9d165e48 R12: 0000000000000000
[ 48.788247] R13: 0000000000000001 R14: 0000000000000001 R15: ffff9c0bc1064280
[ 48.788251] FS: 00007fc7f3bb8f00(0000) GS:ffff9c0bf8c00000(0000) knlGS:0000000000000000
[ 48.788256] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 48.788260] CR2: 0000558249cabaa8 CR3: 000000011cef2003 CR4: 00000000000606e0
[ 48.788265] Call Trace:
[ 48.788268] <TASK>
[ 48.788292] __dma_map_sg_attrs+0x91/0xe0
[ 48.788307] dma_map_sgtable+0x1d/0x30
[ 48.788314] i915_gem_map_dma_buf+0xea/0x130 [i915]
[ 48.788442] __map_dma_buf+0x18/0x60
[ 48.788452] dma_buf_map_attachment+0xc5/0x1e0
[ 48.788462] drm_gem_prime_import_dev+0x64/0x140
[ 48.788477] drm_gem_prime_fd_to_handle+0x19a/0x1d0
[ 48.788487] ? drm_prime_destroy_file_private+0x20/0x20
[ 48.788497] drm_ioctl_kernel+0x8f/0x120
[ 48.788514] drm_ioctl+0x220/0x3e0
[ 48.788526] ? drm_prime_destroy_file_private+0x20/0x20
[ 48.788536] ? sched_clock_cpu+0xb/0xc0
[ 48.788548] ? lock_release+0x151/0x460
[ 48.788558] ? _raw_spin_unlock_irqrestore+0x2d/0x60
[ 48.788566] ? lockdep_hardirqs_on+0x7e/0x100
[ 48.788574] ? _raw_spin_unlock_irqrestore+0x3e/0x60
[ 48.788590] nouveau_drm_ioctl+0x55/0xa0 [nouveau]
[ 48.788711] __x64_sys_ioctl+0x82/0xb0
[ 48.788725] do_syscall_64+0x3b/0x90
[ 48.788735] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 48.788785] RIP: 0033:0x7fc7f444d39b
[ 48.788792] 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 5d 2a 0f 00 f7 d8 64 89 01 48
[ 48.788796] RSP: 002b:00007ffff9dc1688 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 48.788804] RAX: ffffffffffffffda RBX: 00007ffff9dc16cc RCX: 00007fc7f444d39b
[ 48.788808] RDX: 00007ffff9dc16cc RSI: 00000000c00c642e RDI: 0000000000000017
[ 48.788812] RBP: 00000000c00c642e R08: 0000000000000000 R09: 0000000000000000
[ 48.788816] R10: 000055824a6d4ce0 R11: 0000000000000246 R12: 0000000000000030
[ 48.788820] R13: 0000000000000017 R14: 0000558249d96018 R15: 0000000000000000
[ 48.788856] </TASK>
[ 48.788860] irq event stamp: 1170805
[ 48.788863] hardirqs last enabled at (1170811): [<ffffffff9b178d80>] __up_console_sem+0x60/0x70
[ 48.788870] hardirqs last disabled at (1170816): [<ffffffff9b178d65>] __up_console_sem+0x45/0x70
[ 48.788876] softirqs last enabled at (1170740): [<ffffffff9b0f25b7>] __irq_exit_rcu+0x107/0x170
[ 48.788882] softirqs last disabled at (1170735): [<ffffffff9b0f25b7>] __irq_exit_rcu+0x107/0x170
[ 48.788888] ---[ end trace 5c7f662acb720090 ]---
This is Fedora 35 with rawhide kernel 5.16.0-0.rc1.20211119git4c388a8e.17.fc36.x86_64 on an old Dell XPS 15 (L502X) laptop.
# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [8086:0101] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b5)
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b5)
00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b5)
00:1c.5 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 [8086:1c1a] (rev b5)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation HM67 Express Chipset LPC Controller [8086:1c4b] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Mobile SATA AHCI Controller [8086:1c03] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 05)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 525M] [10de:0df5] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
02:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7231 [1131:7231] (rev ca)
03:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] [8086:008a] (rev 34)
04:00.0 USB controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 04)
06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)