Wind River Support Network

HomeDefectsLIN6-9098
Fixed

LIN6-9098 : amd-steppeeagle: audio test sometimes has kernel memeory leak

Created: Dec 22, 2014    Updated: Dec 3, 2018
Resolved Date: Jan 14, 2015
Found In Version: 6.0
Fix Version: 6.0.0.17
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP - Async

Description

<<start Play music with aplay>>
********************
root@localhost:/opt/wr-test/test_runner# aplay -Dhw:0,3 /opt/wr-test/testcases/bts/audio_aplay/little_apple.wav 
Playing WAVE '/opt/wr-test/testcases/bts/audio_aplay/little_apple.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
underrun!!! (at least 693.081 ms long)[  765.324904] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
<<end Play music with aplay>>
********************
<<start check testcase call trace>>
********************
root@localhost:/opt/wr-test/test_runner# dmesg |grep -w -E -B10 -A50 'Call Trace|BUG:' ||exit 0

<<end check testcase call trace>>
********************
<<start check kmemleak>>
********************
root@localhost:/opt/wr-test/test_runner# cat /sys/kernel/debug/kmemleak |grep -E -B10 -A50 'kmemleak_alloc|kmem_cache_alloc' ||exit 0
unreferenced object 0xffff8800630b0180 (size 32):
  comm "swapper/0", pid 1, jiffies 4294670466 (age 984.710s)
  hex dump (first 32 bytes):
    37 37 00 63 00 88 ff ff 00 00 00 00 00 00 00 00  77.c............
    fb af ff ff b0 bc ff ff 00 00 01 23 00 80 88 60  ...........#...`
  backtrace:
    [<ffffffff8178d176>] kmemleak_alloc+0x26/0x50
    [<ffffffff811386f0>] kmem_cache_alloc_trace+0x160/0x2e0
    [<ffffffff813adee2>] populate_msi_sysfs+0x102/0x220
    [<ffffffff813ae7b0>] pci_enable_msi_block+0x1a0/0x2b0
    [<ffffffff8166030d>] azx_probe_continue+0x8ad/0xb70
    [<ffffffff81660b79>] azx_probe+0x379/0x900
    [<ffffffff8139b854>] pci_device_probe+0x84/0xe0
    [<ffffffff8144d1e5>] driver_probe_device+0x105/0x260
    [<ffffffff8144d413>] __driver_attach+0x93/0xa0
    [<ffffffff8144b12b>] bus_for_each_dev+0x6b/0xb0
    [<ffffffff8144cc6e>] driver_attach+0x1e/0x20
    [<ffffffff8144c838>] bus_add_driver+0x1f8/0x2b0
    [<ffffffff8144da54>] driver_register+0x64/0xf0
    [<ffffffff8139b67d>] __pci_register_driver+0x7d/0x90
    [<ffffffff81d212ad>] azx_driver_init+0x19/0x1b
    [<ffffffff810002d2>] do_one_initcall+0x102/0x160
unreferenced object 0xffff8800630b01a0 (size 32):
  comm "swapper/0", pid 1, jiffies 4294670466 (age 984.710s)
  hex dump (first 32 bytes):
    80 01 0b 63 00 88 ff ff 24 01 00 00 00 00 00 00  ...c....$.......
    00 e0 3a 81 ff ff ff ff 00 00 00 00 00 00 00 00  ..:.............
  backtrace:
    [<ffffffff8178d176>] kmemleak_alloc+0x26/0x50
    [<ffffffff811386f0>] kmem_cache_alloc_trace+0x160/0x2e0
    [<ffffffff813adefb>] populate_msi_sysfs+0x11b/0x220
    [<ffffffff813ae7b0>] pci_enable_msi_block+0x1a0/0x2b0
    [<ffffffff8166030d>] azx_probe_continue+0x8ad/0xb70
    [<ffffffff81660b79>] azx_probe+0x379/0x900
    [<ffffffff8139b854>] pci_device_probe+0x84/0xe0
    [<ffffffff8144d1e5>] driver_probe_device+0x105/0x260
    [<ffffffff8144d413>] __driver_attach+0x93/0xa0
    [<ffffffff8144b12b>] bus_for_each_dev+0x6b/0xb0
    [<ffffffff8144cc6e>] driver_attach+0x1e/0x20
    [<ffffffff8144c838>] bus_add_driver+0x1f8/0x2b0
    [<ffffffff8144da54>] driver_register+0x64/0xf0
    [<ffffffff8139b67d>] __pci_register_driver+0x7d/0x90
    [<ffffffff81d212ad>] azx_driver_init+0x19/0x1b
    [<ffffffff810002d2>] do_one_initcall+0x102/0x160
<<end check kmemleak>>
********************

Steps to Reproduce

Project Configure Line:
# Generated by wrlinux configure at Mon Dec 22 14:38:59 CST 2014
/wrlinux-6/wrlinux/configure --enable-board=amd-steppeeagle --enable-kernel=preempt-rt --enable-rootfs=glibc-std-sato --enable-parallel-pkgbuilds=30 --enable-jobs=30 --with-layer=/wrlinux-newnew/wr-testing/bts-dev --enable-reconfig=yes --with-template=feature/bts --with-rcpl-version=0

Kernel Boot Parameter:
root@localhost:/opt/wr-test/test_runner# cat /proc/cmdline
BOOT_IMAGE=/boot/bzImage root=/dev/nfs nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/15445/rootfs ip=dhcp enforcing=0 

Kernel source top 10 commits:
51811b3 spi: amd-steppeeagle: Add amd steppeeagle spi kernel module Wed Dec 17 22:51:31 2014 -0800
41d43f6 gpio: amd-steppeeagle: Add amd steppeeagle gpio kernel module Wed Dec 17 22:51:30 2014 -0800
11c7da0 i2c: piix4: Add support for AMD ML and CZ SMBus changes Wed Dec 17 22:51:30 2014 -0800
5bd17f3 Yaffs: fix softlockup cauesed by inode deleted when scanning s_inodes list Wed Dec 17 02:16:42 2014 -0800
51a4adb Revert "Crashdump-Accepting-Active-IOMMU-Flags-and-Prototype" Wed Dec 17 02:13:59 2014 -0800
cc21485 Revert "Crashdump-Accepting-Active-IOMMU-Utility-functions" Wed Dec 17 02:13:47 2014 -0800
49114a7 Revert "Crashdump-Accepting-Active-IOMMU-Domain-Interfaces" Wed Dec 17 02:13:36 2014 -0800
b42be5d Revert "Crashdump-Accepting-Active-IOMMU-Copy-Translations" Wed Dec 17 02:13:25 2014 -0800
9f40be8 Revert "Crashdump-Accepting-Active-IOMMU-Debug-Print-IOMMU" Wed Dec 17 02:13:14 2014 -0800
f5a5505 Revert "Crashdump-Accepting-Active-IOMMU-Call-From-Mainline" Wed Dec 17 02:13:03 2014 -0800

root@localhost:/opt/wr-test/test_runner# aplay -Dhw:0,3 /opt/wr-test/testcases/bts/audio_aplay/little_apple.wav

Other Downloads


Live chat
Online