HomeDefectsLIN1025-2661
Fixed

LIN1025-2661 : WARNING: at /kernel/dma/debug.c:1185 check_sg_segment+0x190/0x200

Created: Jul 13, 2025    Updated: May 10, 2026
Resolved Date: May 10, 2026
Found In Version: 10.25.33.1
Fix Version: 10.25.33.9
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: BSP

Description

enable CONFIG_DMA_API_DEBUG, Detailed warning trace as below:

[ 1606.716513] ------------[ cut here ]------------
[ 1606.716524] DMA-API: platform 13800000.display:nvdisplay-niso: mapping sg segment longer than device claims to support [len=77824] [max=65536]
[ 1606.716546] WARNING: CPU: 0 PID: 5142 at /kernel/dma/debug.c:1185 check_sg_segment+0x190/0x200
[ 1606.716564] Modules linked in: xt_conntrack xt_MASQUERADE ip6table_nat ip6table_filter ip6_tables iptable_nat xt_addrtype iptable_filter ip_tables x_tables xfrm_user rfcomm algif_hash bnep snd_soc_tegra186_asrc(O) snd_soc_tegra210_admaif(O) snd_soc_tegra_pcm snd_soc_tegra210_mixer(O) snd_soc_tegra186_arad(O) snd_soc_tegra186_dspk(O) snd_soc_tegra210_afc(O) snd_soc_tegra210_ope(O) snd_soc_tegra210_mvc(O) snd_soc_tegra210_amx(O) snd_soc_tegra210_dmic(O) snd_soc_tegra210_adx(O) snd_soc_tegra210_sfc(O) snd_soc_tegra210_i2s(O) rtw88_8822ce rtw88_8822c rtw88_pci rtw88_core mac80211 nvme nvme_core libarc4 cfg80211 snd_soc_tegra210_ahub(O) tegra210_adma ucsi_ccg rtk_btusb(O) typec_ucsi mttcan(O) btusb typec tegra_cactmon_mc_all(O) btrtl can_dev tegra234_aon(O) btintel tegra_aconnect btbcm snd_hda_codec_hdmi nvethernet(O) snd_hda_tegra snd_soc_rt5640 snd_hda_codec snd_soc_rl6231 snd_hda_core phy_tegra194_p2u tegra_xudc pwm_tegra_tachometer(O) host1x_fence(O) nvpps(O) mc_hwpm(O) spi_tegra114 pwm_tegra pcie_tegra194
[ 1606.716664]  nvhost_nvcsi_t194(O) nv_imx477(O) nvhost_isp5(O) nvhost_vi5(O) nvvrs_pseq_rtc(O) governor_userspace tegra_camera(O) v4l2_dv_timings v4l2_fwnode nvhost_nvcsi(O) snd_soc_tegra_machine_driver(O) nvidia_vrs_pseq(O) snd_soc_tegra_utils(O) capture_ivc(O) lm90 snd_soc_simple_card_utils tegra23x_perf_uncore(O) tegra_camera_platform(O) tegra234_oc_event(O) i2c_nvvrs11(O) nvpmodel_clk_cap(O) tegra_mce(O) tegra_bpmp_thermal thermal_trip_event(O) tegra_drm(O) tegra_camera_rtcpu(O) nvhost_pva(O) nvhost_nvdla(O) tegra_wmark(O) ivc_bus(O) hsp_mailbox_client(O) ivc_ext(O) v4l2_async videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc nvhost_capture(O) nvhwpm(O) drm_display_helper tegra_se(O) drm_dp_aux_bus sch_fq_codel pwm_fan openvswitch nsh nf_conncount nf_nat nvidia_drm(O) nvidia_modeset(O) nvidia(O) tegra_dce(O) tsecriscv(O) host1x_nvhost(O) nvgpu(O) governor_pod_scaling(O) nvmap(O) nvsciipc(O) host1x(O) mc_utils(O) ina3221
[ 1606.716756] CPU: 0 UID: 0 PID: 5142 Comm: Xorg Tainted: G           O       6.12.36-yocto-standard #1
[ 1606.716761] Tainted: [O]=OOT_MODULE
[ 1606.716763] Hardware name: NVIDIA NVIDIA Jetson AGX Orin Developer Kit/Jetson, BIOS 36.4.3-gcid-38968081 01/08/2025
[ 1606.716766] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 1606.716769] pc : check_sg_segment+0x190/0x200
[ 1606.716773] lr : check_sg_segment+0x190/0x200
[ 1606.716777] sp : ffff80008e873320
[ 1606.716778] x29: ffff80008e873320 x28: ffff800081ba7000 x27: ffff000083b4c780
[ 1606.716783] x26: 0000000000000001 x25: 0000000000000002 x24: 0000000000000000
[ 1606.716787] x23: ffffffffffffffff x22: ffff000091ede810 x21: ffff8000820c3488
[ 1606.716791] x20: 0000000000010000 x19: ffff0000ae52c560 x18: ffffffffffffffff
[ 1606.716795] x17: 0000000000000e01 x16: 0000000000000000 x15: ffff800082eeae44
[ 1606.716799] x14: 0000000000000001 x13: ffff800082eeae4c x12: 6f70707573206f74
[ 1606.716803] x11: ffff8000820f1d28 x10: 00000000000118c5 x9 : ffff80008015476c
[ 1606.716807] x8 : ffff80008e873040 x7 : ffff80008e874000 x6 : ffff80008e870000
[ 1606.716810] x5 : 0000000000000000 x4 : ffff80008e873130 x3 : 0000000000000002
[ 1606.716814] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000822120c0
[ 1606.716818] Call trace:
[ 1606.716820]  check_sg_segment+0x190/0x200
[ 1606.716823]  debug_dma_map_sg+0x13c/0x1b0
[ 1606.716827]  __dma_map_sg_attrs+0xc4/0x128
[ 1606.716831]  dma_map_sg_attrs+0x18/0x38
[ 1606.716834]  nv_map_dma_map_scatterlist+0x7c/0xd0 [nvidia]
[ 1606.716932]  nv_dma_map_scatterlist.constprop.0+0x84/0x1a0 [nvidia]
[ 1606.716992]  nv_dma_map_pages+0x25c/0x2c0 [nvidia]
[ 1606.717045]  nv_dma_map_alloc+0x184/0x2d0 [nvidia]
[ 1606.717098]  osIovaMap+0x1bc/0x520 [nvidia]
[ 1606.717158]  iovaspaceAcquireMapping_IMPL+0x210/0x420 [nvidia]
[ 1606.717220]  memdescMapIommu+0x160/0x320 [nvidia]
[ 1606.717278]  memdescAlloc+0x23c/0x400 [nvidia]
[ 1606.717333]  instmemStateInitLocked_IMPL+0x2e4/0x4e0 [nvidia]
[ 1606.717388]  kdispStateInitLocked_IMPL+0x88/0x200 [nvidia]
[ 1606.717442]  gpuStateInit_IMPL+0x7c/0x120 [nvidia]
[ 1606.717495]  gpumgrStateInitGpu+0x48/0x80 [nvidia]
[ 1606.717549]  RmInitAdapter+0x5b4/0xe80 [nvidia]
[ 1606.717602]  rm_init_adapter+0xa8/0xc0 [nvidia]
[ 1606.717654]  nv_start_device+0x3d0/0x678 [nvidia]
[ 1606.717711]  nv_open_device+0x90/0x198 [nvidia]
[ 1606.717765]  nvidia_dev_get+0x78/0xf0 [nvidia]
[ 1606.717818]  nvkms_open_gpu+0x68/0xc0 [nvidia_modeset]
[ 1606.717889]  nvRmAllocDeviceEvo+0x654/0x840 [nvidia_modeset]
[ 1606.717934]  nvidia_frontend_unlocked_ioctl+0x4c/0x70 [nvidia]
[ 1606.717990]  __arm64_sys_ioctl+0xb4/0x100
[ 1606.717996]  invoke_syscall+0x5c/0x128
[ 1606.718003]  el0_svc_common.constprop.0+0xc8/0xf8
[ 1606.718007]  do_el0_svc+0x24/0x40
[ 1606.718011]  el0_svc+0x48/0x148
[ 1606.718016]  el0t_64_sync_handler+0x120/0x130
[ 1606.718020]  el0t_64_sync+0x190/0x198
[ 1606.718024] irq event stamp: 0
[ 1606.718025] hardirqs last  enabled at (0): [<0000000000000000>] 0x0
[ 1606.718033] hardirqs last disabled at (0): [<ffff8000800a841c>] copy_process+0x6c4/0x1470
[ 1606.718039] softirqs last  enabled at (0): [<ffff8000800a841c>] copy_process+0x6c4/0x1470
[ 1606.718044] softirqs last disabled at (0): [<0000000000000000>] 0x0
[ 1606.718046] ---[ end trace 0000000000000000 ]---

The reason is that NVIDIA dma code is not full compatible with dma debug api 

Nvidia SDK also has this issue, this warning doesn't affect the display feature.

Steps to Reproduce

INFO: HTTP shared image: http://pek-lpgtest7408.wrs.com/buildarea1/SharedImage/LTS25/BSP/nvidia-orin-agx_standard_glibc-std-sato_GIT/20250713_001237

/lpg-build/cdc/fast_prod/WRL10_25/WRL10_25_GIT/wrlinux-10/setup.sh --machines nvidia-orin-agx --distro wrlinux-graphics --templates feature/docker --dl-layers=1 --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build


echo 'BB_NUMBER_THREADS ?= "24"' >> conf/local.conf
echo 'PARALLEL_MAKE ?= "-j 24"' >> conf/local.conf
export https_proxy=147.11.252.42:9090
export http_proxy=147.11.252.42:9090
bitbake-layers add-layer /net/pek-lpgtest16.wrs.com/buildarea1/wgao/wassp-linux/testcases/wrlinux/wr-testing/bts-dev

#####To Clone a whole new testcases layer#####
git clone --depth 1 -b master git://lxgit.wrs.com/wrlinux-testing/testcases.git ../layers/testcases/wrlinux/
bitbake-layers add-layer ../layers/testcases/wrlinux/wr-testing/bts-dev
#####End#####

echo '
require templates/feature/bts/template.conf
IMAGE_FSTYPES += " tar.bz2"
bitbake-layers add-layer /net/pek-lpgtest7408/buildarea1/SharedImage/wrlinux-testing-dl
echo 'LICENSE_FLAGS_ACCEPTED += "commercial_faad2 commercial_x264 commercial"
CUSTOMER_RECIPES:networking-layer += 'mosquitto'
CUSTOMER_RECIPES:meta-python += 'python3-kconfiglib python3-smbus2'
CUSTOMER_RECIPES:openembedded-layer += 'libglvnd faad2 libwebsockets uthash'
CUSTOMER_RECIPES:tegra += 'tegra-flashtools tegra-bootfiles tegra-minimal-initramfs tegra-espimage edk2-firmware-tegra tegra-tools nvidia-kernel-oot-dtb nvidia-kernel-oot'
CUSTOMER_RECIPES:tegra += 'edk2-firmware-tegra-minimal tegra-initrd-flash-initramfs tos-optee cuda-samples argus-samples l4t-graphics-demos nvgstapps cudnn-samples nvidia-docker'
CUSTOMER_RECIPES:tegra += 'optee-nvsamples optee-test optee-client optee-os optee-os-tadevkit standalone-mm-optee-tegra'
CUSTOMER_RECIPES:tegra += 'nativesdk-packagegroup-cuda-sdk-host tegra-firmware tegra-minimal-init tegra-flash-init'
CUSTOMER_RECIPES:tegra += 'libgcc-for-nvcc gcc-for-nvcc-runtime gcc-for-nvcc-cross-aarch64 gcc-for-nvcc gcc-for-nvcc-cross-canadian-aarch64 gcc-source-for-nvcc-10.3.0'
CUSTOMER_RECIPES:tegra += 'tegra-nvfancontrol tegra-helper-scripts tegra-flashvars tegra-binaries tegra-eks-image tegra-storage-layout'
CUSTOMER_RECIPES:tegra += 'arm-trusted-firmware tar-l4t-workaround-native cudnn libgstnvcustomhelper cupva'
CUSTOMER_RECIPES:tegra += 'cuda-profiler-api cuda-cudart cuda-compatibility-workarounds cuda-crt cuda-compiler cuda-libraries'
CUSTOMER_RECIPES:tegra += 'tegra-mmapi tegra-cmake-overrides tegra-libraries-multimedia-utils tegra-drm-headers tegra-libraries-nvdsseimeta tegra-libraries-multimedia'
CUSTOMER_RECIPES:tegra += 'tegra-wifi tegra-nvstartup tegra-bluetooth tegra-nvsciipc tegra-nvphs tegra-nvs-service tegra-configs tegra-redundant-boot tegra-redundant-boot-base tegra-libraries-cuda'
CUSTOMER_RECIPES:tegra += 'gstreamer1.0-plugins-nvvideosinks gstreamer1.0-plugins-nvvidconv gstreamer1.0-plugins-nvdrmvideosink gstreamer1.0-plugins-nvarguscamerasrc'
CUSTOMER_RECIPES:tegra += 'gstreamer1.0-plugins-nvcompositor gstreamer1.0-plugins-nveglgles gstreamer1.0-plugins-nvipcpipeline gstreamer1.0-plugins-nvjpeg gstreamer1.0-plugins-nvtee'
CUSTOMER_RECIPES:tegra += 'gstreamer1.0-plugins-nvunixfd gstreamer1.0-plugins-nvv4l2camerasrc gstreamer1.0-plugins-nvvideo4linux2 gstreamer1.0-plugins-tegra gstreamer1.0-plugins-tegra-binaryonly'
CUSTOMER_RECIPES:tegra += 'tensorrt-trtexec tensorrt-samples tegra-mmapi-samples libcublas nv-tegra-release tegra-nvpmodel nvidia-container-toolkit tegra-libraries-multimedia-v4l'
CUSTOMER_RECIPES:tegra += 'libusbgx-tegra-initrd-flash tegra-flash-reboot tegra-storage-layout-base tegra-nvpower tegra-nvpmodel-base tegra-eks-image-base tegra-configs-alsa'
CUSTOMER_RECIPES:tegra += 'cuda-cccl cuda-cuxxfilt cuda-driver cuda-nvcc-headers cuda-nvprune cuda-nvvm cuda-cuobjdump cuda-nvcc cuda-nvml cuda-nvrtc cuda-target-environment'
CUSTOMER_RECIPES:tegra += 'libnvjitlink libnvvpi3 libcusolver libcurand libcudla libcufft libcusparse libcufile libnpp libnvidia-container libnvfatbin'
CUSTOMER_RECIPES:tegra += 'l4t-nvidia-glheaders l4t-graphics-demos l4t-launcher-rootfs-ab-config l4t-launcher-extlinux'
CUSTOMER_RECIPES:tegra += 'tegra-libraries-glescore tegra-argus-daemon tegra-eeprom-tool tegra-libraries-camera tegra-libraries-core tegra-libraries-dla-compiler tegra-libraries-eglcore'
CUSTOMER_RECIPES:tegra += 'tegra-libraries-gbm-backend tegra-libraries-glxcore tegra-libraries-multimedia-ds tegra-libraries-nvml tegra-libraries-nvsci tegra-libraries-pva'
CUSTOMER_RECIPES:tegra += 'egl-wayland nvidia-drm-loadconf egl-gbm tegra-nvs-base tegra-nvsciipc-base tegra-nvphs-base tegra-cuda-utils tegra-container-passthrough'
CUSTOMER_RECIPES:tegra += 'xserver-xorg-video-nvidia nativesdk-cuda-environment tegra-nv-boot-control-config setup-nv-boot-control tensorrt-plugins tensorrt-core eglexternalplatform'
CUSTOMER_RECIPES:tegra-community += 'gstreamer-tests tegra-mmapi-tests vpi3-tests tensorrt-tests deepstream-tests python3-jetson-stats nvidia-docker-tests'
CUSTOMER_RECIPES:tegra-community += 'vpi3-samples deepstream-7.1-pyds deepstream-7.1 python3-cuda openssl111 yaml-cpp-070 python3-pyclibrary'
BUILD_NVIDIA_PROPRIETARY_PACKAGE = "1"
BB_NO_NETWORK = '0'' >> conf/local.conf
bitbake wrlinux-image-std-sato