lima debug dump: mapping sg segment longer than device claims to support [len=4149248] [max=65536]
I enabled a lot of kernel debug configs, but I believe this message is related to CONFIG_DEBUG_SG=y
or CONFIG_DMA_API_DEBUG=y
------------[ cut here ]------------
DMA-API: lima 1c40000.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536]
WARNING: CPU: 1 PID: 421 at /home/roman/glodroid/kernel/glodroid-megous/kernel/dma/debug.c:1163 debug_dma_map_sg+0x2bc/0x390
Modules linked in: qmi_wwan cdc_wdm usbnet mii option usb_wwan usbserial mousedev snd_soc_hdmi_codec snd_soc_bt_sco gc2145 snd_soc_simple_card snd_soc_simple_card_utils snd_soc_simple_amplifier lima gpu_
sched modem_power ohci_platform ohci_hcd sun8i_ce crypto_engine st_magn_i2c st_sensors_i2c st_magn st_sensors ov5640 leds_sgm3140 v4l2_flash_led_class goodix sunxi_cedrus(C) sun8i_codec dw_hdmi_i2s_audio
sun8i_di sun6i_csi v4l2_fwnode v4l2_async ehci_platform sha1_ce ghash_ce crct10dif_ce hci_uart btrtl sun8i_rotate bluetooth v4l2_mem2mem inv_mpu6050_i2c ecdh_generic inv_mpu6050 ecc videobuf2_dma_contig
industrialio_triggered_buffer kfifo_buf stk3310 8723cs(C) regmap_i2c sun50i_codec_analog sun4i_i2s sun8i_adda_pr_regmap snd_soc_ec25 snd_soc_core snd_pcm_dmaengine cfg80211
CPU: 1 PID: 421 Comm: HwBinder:390_2 Tainted: G C 5.15.0-rc4-00828-g8c78cd1f12fe-dirty #7
Hardware name: Pine64 PinePhone (1.2) (DT)
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : debug_dma_map_sg+0x2bc/0x390
lr : debug_dma_map_sg+0x2bc/0x390
sp : ffffffc014e4ba50
x29: ffffffc014e4ba50 x28: 0000000000000000 x27: ffffffffffffffff
x26: 0000000000000000 x25: 0000000000000001 x24: ffffffc011af7000
x23: 0000000000000001 x22: 0000000000000000 x21: ffffff8003cd6810
x20: ffffff8004162c00 x19: ffffff8042c6d980 x18: 0000000000000000
x17: 656369766564206e x16: 616874207265676e x15: 6f6c20746e656d67
x14: 657320677320676e x13: 5d36333535363d78 x12: 616d5b205d383432
x11: 393431343d6e656c x10: 5b2074726f707075 x9 : 697070616d203a75
x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffffffc011c8d8c0 x4 : 0000000000000000 x3 : 0000000000000001
x2 : 0000000000000001 x1 : 05e143a345bd2c00 x0 : 0000000000000000
Call trace:
debug_dma_map_sg+0x2bc/0x390
__dma_map_sg_attrs+0x8c/0xf0
dma_map_sgtable+0x24/0x40
drm_gem_map_dma_buf+0x5c/0xc8
dma_buf_map_attachment+0xc0/0x1e8
drm_gem_prime_import_dev+0x80/0x170
drm_gem_prime_fd_to_handle+0x204/0x210
drm_prime_fd_to_handle_ioctl+0x24/0x38
drm_ioctl_kernel+0xc4/0x118
drm_ioctl+0x2ec/0x7d0
__arm64_sys_ioctl+0xa4/0xe0
invoke_syscall+0x40/0xf8
el0_svc_common.constprop.3+0x88/0x110
do_el0_svc+0x18/0x20
el0_svc+0x50/0x1d0
el0t_64_sync_handler+0x88/0xb0
el0t_64_sync+0x15c/0x160
irq event stamp: 0
hardirqs last enabled at (0): [<0000000000000000>] 0x0
hardirqs last disabled at (0): [<ffffffc0100c5764>] copy_process+0x61c/0x1ed0
softirqs last enabled at (0): [<ffffffc0100c5764>] copy_process+0x61c/0x1ed0
softirqs last disabled at (0): [<0000000000000000>] 0x0
---[ end trace 58b26870e57e91ca ]---