From owner-freebsd-bugs@freebsd.org Sun Aug 5 00:51:36 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A89B10594DE for ; Sun, 5 Aug 2018 00:51:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AB6AF7042E for ; Sun, 5 Aug 2018 00:51:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 70EFA10594DC; Sun, 5 Aug 2018 00:51:35 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36C4A10594DB for ; Sun, 5 Aug 2018 00:51:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFA7170428 for ; Sun, 5 Aug 2018 00:51:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0A2A11FA97 for ; Sun, 5 Aug 2018 00:51:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w750pXYB000682 for ; Sun, 5 Aug 2018 00:51:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w750pXtO000681 for bugs@FreeBSD.org; Sun, 5 Aug 2018 00:51:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230370] [sound] Panic at sound mono recode on mips Date: Sun, 05 Aug 2018 00:51:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yamori813@yahoo.co.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2018 00:51:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230370 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@FreeBSD.org Reporter: yamori813@yahoo.co.jp I work on AR7161(mips big endian) with USB device. I make simple recode com= mand that is 44.1kHz mono recoding. I do this command soon happen panic. I change recoding to stereo then no problem. Trap cause =3D 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 c439bbf= 0 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 : 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 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=20=20=20=20 hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/Z= Router/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Buffalo_WZR-HP-AG300H mips # cat /dev/sndstat Installed devices: pcm0: (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=20=20=20=20=20=20 dev.pcm.0.feedback_rate: 0 dev.pcm.0.mixer.mute_7.desc:=20 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:=20 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:=20 dev.pcm.0.%location:=20 dev.pcm.0.%driver: pcm dev.pcm.0.%desc: USB audio dev.pcm.%parent:=20 # --=20 You are receiving this mail because: You are the assignee for the bug.=