[Bug 230370] [sound] Panic at sound mono recode on mips

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 5 00:51:36 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230370

            Bug ID: 230370
           Summary: [sound] Panic at sound mono recode on mips
           Product: Base System
           Version: CURRENT
          Hardware: mips
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: yamori813 at yahoo.co.jp

I work on AR7161(mips big endian) with USB device. I make simple recode command
that is 44.1kHz mono recoding.

I do this command soon happen panic. I change recoding to stereo then no
problem.

Trap cause = 5 (address error (store) - kernel mode)
[ thread pid 13 tid 100020 ]
Stopped at      0
db> where
Tracing pid 13 tid 100020 td 0x80782b40
feeder_matrix_oss_set_channel_order+0x1848 (?,?,?,?) ra 8014295c sp c439bbf0 sz
0
feeder_matrix_oss_set_channel_order+0x43a8 (?,?,3fe3,?) ra 0 sp c439bbf0 sz 0
db> show reg
at          0xffffffe0
v0          0xffffffff
v1          0xfffffffe
a0          0xc09b3d38
a1          0xc09bd001
a2                0x53  _DYNAMIC_LINKING+0x52
a3          0xc09b3d3c
t0                   0
t1              0xdcb0  _DYNAMIC_LINKING+0xdcaf
t2                   0
t3              0xdc80  _DYNAMIC_LINKING+0xdc7f
t4                   0
t5                   0
t6                 0x1  _DYNAMIC_LINKING
t7          0x81998800
s0          0xc09bd001
s1          0x81944200
s2               0x2c2  _DYNAMIC_LINKING+0x2c1
s3               0x2c2  _DYNAMIC_LINKING+0x2c1
s4                   0
s5                0x50  _DYNAMIC_LINKING+0x4f
s6               0x69d  _DYNAMIC_LINKING+0x69c
s7               0x69e  _DYNAMIC_LINKING+0x69d
t8                   0
t9           0xe0e0e0e
k0               0x962  _DYNAMIC_LINKING+0x961
k1          0x81944200
gp                   0
sp          0xc439bbf0
s8               0x181  _DYNAMIC_LINKING+0x180
ra          0x8014295c  feeder_matrix_oss_set_channel_order+0x43a8
sr              0xf803  _DYNAMIC_LINKING+0xf802
lo               0x2c2  _DYNAMIC_LINKING+0x2c1
hi                0x10  _DYNAMIC_LINKING+0xf
bad         0xc09bd001
cs                0x14  _DYNAMIC_LINKING+0x13
pc          0x8013fdfc  feeder_matrix_oss_set_channel_order+0x1848

This is disassemble.

8013fdac <z_feed_linear_S16BE>:
8013fdac:       8c880010        lw      t0,16(a0)
8013fdb0:       8c82005c        lw      v0,92(a0)
8013fdb4:       8c830024        lw      v1,36(a0)
8013fdb8:       8c86003c        lw      a2,60(a0)
8013fdbc:       71021002        mul     v0,t0,v0
8013fdc0:       70c33002        mul     a2,a2,v1
8013fdc4:       8c870028        lw      a3,40(a0)
8013fdc8:       00021040        sll     v0,v0,0x1
8013fdcc:       00473821        addu    a3,v0,a3
8013fdd0:       00081840        sll     v1,t0,0x1
8013fdd4:       00063582        srl     a2,a2,0x16
8013fdd8:       00e32023        subu    a0,a3,v1
8013fddc:       84e30000        lh      v1,0(a3)
8013fde0:       84820000        lh      v0,0(a0)
8013fde4:       2508ffff        addiu   t0,t0,-1
8013fde8:       00431023        subu    v0,v0,v1
8013fdec:       70c21002        mul     v0,a2,v0
8013fdf0:       24e70002        addiu   a3,a3,2
8013fdf4:       00021203        sra     v0,v0,0x8
8013fdf8:       00431021        addu    v0,v0,v1
8013fdfc:       a4a20000        sh      v0,0(a1)
8013fe00:       24840002        addiu   a0,a0,2
8013fe04:       1500fff5        bnez    t0,8013fddc <z_feed_linear_S16BE+0x30>
8013fe08:       24a50002        addiu   a1,a1,2
8013fe0c:       03e00008        jr      ra
8013fe10:       00000000        nop

# uname -a
FreeBSD  12.0-CURRENT FreeBSD 12.0-CURRENT #2 e0f72fe(zrouter): Sun Aug  5
08:13:29 JST 2018    
hiroki at microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Buffalo_WZR-HP-AG300H
 mips

# cat /dev/sndstat
Installed devices:
pcm0: <USB audio> (play/rec) default
No devices installed from userspace.

# mixer
Mixer vol      is currently set to  75:75
Mixer bass     is currently set to  50:50
Mixer treble   is currently set to  50:50
Mixer pcm      is currently set to  75:75
Mixer mic      is currently set to   0:0

# sysctl dev.pcm      
dev.pcm.0.feedback_rate: 0
dev.pcm.0.mixer.mute_7.desc: 
dev.pcm.0.mixer.mute_7.max: 1
dev.pcm.0.mixer.mute_7.min: 0
dev.pcm.0.mixer.mute_7.val: 0
dev.pcm.0.mixer.vol_6.desc: 
dev.pcm.0.mixer.vol_6.max: 7936
dev.pcm.0.mixer.vol_6.min: 4096
dev.pcm.0.mixer.vol_6.val: 4096
dev.pcm.0.mixer.mute_5.desc: Plantronics Headset
dev.pcm.0.mixer.mute_5.max: 1
dev.pcm.0.mixer.mute_5.min: 0
dev.pcm.0.mixer.mute_5.val: 0
dev.pcm.0.mixer.vol_4_1.desc: Plantronics Headset
dev.pcm.0.mixer.vol_4_1.max: 768
dev.pcm.0.mixer.vol_4_1.min: -10496
dev.pcm.0.mixer.vol_4_1.val: -4224
dev.pcm.0.mixer.vol_4_0.desc: Plantronics Headset
dev.pcm.0.mixer.vol_4_0.max: 768
dev.pcm.0.mixer.vol_4_0.min: -10496
dev.pcm.0.mixer.vol_4_0.val: -4224
dev.pcm.0.mixer.bass_3.desc: Plantronics Headset
dev.pcm.0.mixer.bass_3.max: 48
dev.pcm.0.mixer.bass_3.min: -48
dev.pcm.0.mixer.bass_3.val: -1
dev.pcm.0.mixer.treble_2.desc: Plantronics Headset
dev.pcm.0.mixer.treble_2.max: 48
dev.pcm.0.mixer.treble_2.min: -48
dev.pcm.0.mixer.treble_2.val: -1
dev.pcm.0.mixer.agc_1.desc: Plantronics Headset
dev.pcm.0.mixer.agc_1.max: 1
dev.pcm.0.mixer.agc_1.min: 0
dev.pcm.0.mixer.agc_1.val: 0
dev.pcm.0.mixer.boost_0.desc: Plantronics Headset
dev.pcm.0.mixer.boost_0.max: 1
dev.pcm.0.mixer.boost_0.min: 0
dev.pcm.0.mixer.boost_0.val: 0
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 0
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 1
dev.pcm.0.hwvol_mixer: vol
dev.pcm.0.hwvol_step: 5
dev.pcm.0.%parent: uaudio0
dev.pcm.0.%pnpinfo: 
dev.pcm.0.%location: 
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: USB audio
dev.pcm.%parent: 
#

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list