From owner-freebsd-mips@freebsd.org Tue Jul 31 10:08:57 2018 Return-Path: Delivered-To: freebsd-mips@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 8C7B41054924 for ; Tue, 31 Jul 2018 10:08:57 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh604-vm7.bullet.mail.ssk.yahoo.co.jp (nh604-vm7.bullet.mail.ssk.yahoo.co.jp [182.22.90.64]) by mx1.freebsd.org (Postfix) with SMTP id DF4D582FCF for ; Tue, 31 Jul 2018 10:08:56 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 31 Jul 2018 10:06:14 -0000 Received: from [182.22.91.130] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 31 Jul 2018 10:06:14 -0000 Received: from [127.0.0.1] by omp603.mail.ssk.yahoo.co.jp with NNFMP; 31 Jul 2018 10:06:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 770158.85913.bm@omp603.mail.ssk.yahoo.co.jp Received: (qmail 37537 invoked by uid 60001); 31 Jul 2018 10:06:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1533031574; bh=WdEVOg6Yz7o3+i+r1EcpS0mgsnxh1ZkaKQU6FNt4cN8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dd3L2/4qr5FyPPe/l170qWl3d4MuFaBRVtOCIsb189ImkirUlQitrXQJ91/tVokwrXMn1Rl4sZgaXSB/CezH8rm3dypOB6yPoBSb27ot5IgMuq+kL1PQ459pblIeuRlHR2vPtn85zszDvndN8VoD5CcbEitjqKrZM424HAh4ZOg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JcsfRHGpsVLwmVr5ZZJr2m30cN9MZKI/5w4+LeJoMCa11TecqSiOIPG/vgbaExBIa9GD5adVxhAQwcnr4eMBCoruWUOjGShaN2/LR/3tHBm8XIrZ0YKeo0cPJbdmYpvUPKjTwOM2IBGCNJdO/vg4CNIe5sxRnZwud/MARf8iJYI=; Message-ID: <655985.32208.qm@web103907.mail.ssk.yahoo.co.jp> X-YMail-OSG: F09DBJMVM1kzLDNErl7zX4LZNNRc4WlieTBD.diayfrMarOZpGidXsr2rpm6RFMbmlfN7HLN_OwTAgfdX9JqxwzV_nfzModDIq17uzNPnRhtxy4sGTFx26Je24fna6LL21S83dRKo39d.0OxJJmnTnPpI_7DL.zAl7XcvwjQMceAqSEsJqsv2Al2JR0MXdJdzxrmmTOdu4o2x_pTg5nYsC50mtdwa4IPvblowHRPzrokQG2r.29Qmgftr5jp4xcMHSpJUM2J3P6W5dEi.KyEOjwu2U1RZ71EvMnHl8MrVBeVhZyQd3MPTM7_5ucFYRaZqY9hl0lTrvOMDvcUzFYcLzgs3aRN6ekYIdjJi.wzJvxCfxs9UDbwZQXj.V0uxbU57OAk.b8RHsCHJLMEAhaiqvq1ITtfx_Nbt6_D8UQRpkeF7PNU6jeUQI_ZF7WwfrlOOZOFYdhf9Jfz_Rt688vRIFidjhhIgMzXQa1gMN16vPzEs5Yh9FTkaDa6Qgf8QGdHXVJXPv1VXk6vjUYjVOQ.lJ4Tik7mM04O6ukkfIjlw7dalWZv.ZvSpThRMYWJtht5CMP9EN6nRYgWBobZE6JuNDQBbiF1uyuAmuWUuB4YJ8FTbOTYv1BGKllVvBRoHK4- Received: from [203.165.91.75] by web103907.mail.ssk.yahoo.co.jp via HTTP; Tue, 31 Jul 2018 19:06:13 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: 6R2tIBQVM1lp0XqZuVQnGB_bxjYdrBBuvAM34oprxCMD7_T6R8.KWqfzID0wFCtnm90gzRILA1ZKQwIEgkWeEltalDEaFl5g4cWwzzRa_EziAaKK7KuFcjQ5CTFUMqn0V59i Date: Tue, 31 Jul 2018 19:06:13 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: hints bug or new feature ? To: "freebsd-mips@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 10:08:57 -0000 Hi=0A=0AI seem 12CURRENT hints system is change.=0A=0AThen invalid setting = by line end comment.=0A=0AFor example like this.=0A=0Ahint.arge.1.phymask= =3D0x0 =A0 =A0 =A0 =A0 # no directly mapped PHYs=0A=0Ahint.arge.1.phymask i= s not set in kernel now.=0A=0A=0AThis is bug or new feature ?=0A=0AThanks= =0A=0AHiroki Mori From owner-freebsd-mips@freebsd.org Tue Jul 31 13:45:27 2018 Return-Path: Delivered-To: freebsd-mips@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 9FC1F105AB6A for ; Tue, 31 Jul 2018 13:45:27 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 537438B854 for ; Tue, 31 Jul 2018 13:45:27 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id E36D313E29 for ; Tue, 31 Jul 2018 13:45:26 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f45.google.com with SMTP id y200-v6so10782932lfd.7 for ; Tue, 31 Jul 2018 06:45:26 -0700 (PDT) X-Gm-Message-State: AOUpUlEo1IWn8L8PSMiqlfhw8NjkHhUbg9F83edxy17K0B35lqFiFhVr /GXj+mbygUhcGVE+42fdu+MauRM9GTVaiFW1w/U= X-Google-Smtp-Source: AAOMgpfnf95TD2LLrpoDunSNH6uGp3WVijO8ljEJ8AmIJAVPAfnZx26b+vs/m8wNd9R9pxoi5e4eoF3d92Tt+JTHkJY= X-Received: by 2002:a19:7b08:: with SMTP id w8-v6mr12865118lfc.22.1533044725341; Tue, 31 Jul 2018 06:45:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:5742:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 06:45:04 -0700 (PDT) In-Reply-To: <655985.32208.qm@web103907.mail.ssk.yahoo.co.jp> References: <655985.32208.qm@web103907.mail.ssk.yahoo.co.jp> From: Kyle Evans Date: Tue, 31 Jul 2018 08:45:04 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: hints bug or new feature ? To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 13:45:27 -0000 On Tue, Jul 31, 2018 at 5:06 AM, Mori Hiroki wrote: > Hi > > I seem 12CURRENT hints system is change. Hi, I've rototilled a lot of this. > Then invalid setting by line end comment. > > For example like this. > > hint.arge.1.phymask=0x0 # no directly mapped PHYs > > hint.arge.1.phymask is not set in kernel now. > Where are you setting this at? GENERIC.hints, loader.conf(5), or directly in your KERNCONF (via 'hints' file)? > This is bug or new feature ? I'd call it a bug. =) > Thanks > > Hiroki Mori Kyle Evans From owner-freebsd-mips@freebsd.org Tue Jul 31 13:45:52 2018 Return-Path: Delivered-To: freebsd-mips@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 C114E105ABA1 for ; Tue, 31 Jul 2018 13:45:52 +0000 (UTC) (envelope-from mail.gery@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58A908B897; Tue, 31 Jul 2018 13:45:52 +0000 (UTC) (envelope-from mail.gery@gmail.com) Received: by mail-it0-x234.google.com with SMTP id h20-v6so4411935itf.2; Tue, 31 Jul 2018 06:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=pS607VOiPmB9jg/czJrdfJof/FEtfUSbuqVaKSLc+Qs=; b=JT9kGrR1Ysh9fy+3mJXbMnnQBOtm0DQKC6hZX0gJZWhbbojxyg2owoErIk/hphRNfF zX4Gk7um3yAVLZkxHPgXR0mmK88LxHLvQ+tjXikCanWy3g4cuw7Wj6eIeTFIoVgpTik+ 9+VgQpe8QHNcQE96THau8SOITOfv9fQnCUXK4Ba1NaQx4iihyOzNSMibo8csib/6cuP6 0SvW/eZiROhjZqSe5A9TJ7WEG5RTM5hVt2FS/5Z8HLdpu0IYQT5e9jo1ynEcpkhdT1Cp PFhUBUwlfBac5LkBzNvPA1bkgta35yJC4jcNkwd+wh9PPYHpBGXsBMsKBS5I428pJplB AEsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=pS607VOiPmB9jg/czJrdfJof/FEtfUSbuqVaKSLc+Qs=; b=fH2ctHipsKhKnFjwN+5amDI4DIunLnk1c3oEpFcdmn37BKllbnKAMCs7oLiDLu1svp aIhFDZhe4ipBoUZqS84qiV5SL7G1Pua8PiMn5rL5Zo59HtrkA8llOc83+L5JGhEYz5OQ qhHsTg0SerM5wjTGntozum5AClQ185k99e7MvmRHNlPvJ9UKyxOceDCaCrZWxZIGpL+6 UdSMz2t6fsrIyZefuJS5/CdK/XQjCZ5807peqYo3qiERkZTdBrewh/SPhH3cOgdrPsT3 Z+s3WRoQLBSeerilZDDPbwWwbchYzuhnmrCK8LpBWQo6I+dSF/qjTDLo72Rdkhrki3Mt 597A== X-Gm-Message-State: AOUpUlH2rENaj070F1AICYk2kwC1RuaAMHcGuV4RVNH2NeWfG1sO1xRX YpZ04KWRWPLAc4qe2esNc3WUIIfeTQpmoB3WMo46Zerm X-Google-Smtp-Source: AAOMgpfqPODn4XH1qNViJ0oXZwWS6NU1JlFv0vaZ4nWIctQ3u+ETjs2OSl/8kM6l7PKyJCKd7P2jg3a/RU1slICbRZs= X-Received: by 2002:a24:4511:: with SMTP id y17-v6mr3211317ita.67.1533044751420; Tue, 31 Jul 2018 06:45:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:c4ca:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 06:45:50 -0700 (PDT) From: Gergely Kiss Date: Tue, 31 Jul 2018 15:45:50 +0200 Message-ID: Subject: Possible arge driver bug - interrupt storm on int2 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 13:45:53 -0000 Hi, I'm working on improving the freebsd-wifi-build project to have an out-of-the-box gateway solution built on FreeBSD for SOHO routers. For more information, please see below link: https://github.com/kissg1988/freebsd-wifi-build I've created a build script that should simplify creating a build environment from scratch: https://github.com/kissg1988/freebsd-wifi-build/blob/buildscript/scripts/build.sh The goal is to make the distribution easy to build and use so it can be flashed just as simple as OpenWrt or DD-WRT. The device I'm working with is a TP-Link WN-1043ND v1.8 which has a Realtek RTL8366RB switch and is built around the AR9132 SoC. The board runs 11.2-RELEASE currently. The ethernet controller works perfectly with a static or DHCP provided IP address, however it seems something is wrong with the way the driver handles the TX queue in case 802.1Q tagging is in use and the system tries sending PPP frames over the tagged interface (eg. vlan2). Once ppp starts establishing the connection, packets to be sent are queued but not being transmitted by the controller and an interrupt storm is generated with only the TX_UNDERRUN flag set (without the TX_PKT_SENT flag). This might be related to an issue seen a few years back: https://lists.freebsd.org/pipermail/freebsd-mips/2015-October/004137.html As PPPoE has an 8-byte overhead and VLAN tagging needs an additional 4-byte field, I have lowered the MTU on arge0 and vlan2 to 1488 bytes but it didn't make any difference, the interrupt storm still happens and it's always reproducible. Once it starts, the only way to stop the storm is to bring down arge0. If I destroy the vlan interface, and put the WAN port to an access VLAN with no tagging, the PPPoE connection works fine. I'll make some more tests later today with -HEAD to see if it makes any difference. Any help or ideas would be much appreciated in the meantime. Thanks, Gergely From owner-freebsd-mips@freebsd.org Tue Jul 31 16:11:47 2018 Return-Path: Delivered-To: freebsd-mips@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 097DA105DC6D for ; Tue, 31 Jul 2018 16:11:47 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2AF37080C for ; Tue, 31 Jul 2018 16:11:46 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 5204B14C4E for ; Tue, 31 Jul 2018 16:11:46 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f54.google.com with SMTP id l16-v6so11153005lfc.13 for ; Tue, 31 Jul 2018 09:11:46 -0700 (PDT) X-Gm-Message-State: AOUpUlHIeQKsuujJpWF6SrqdZ5ueAGDVpY+a01y+VpLU9yxx63Qcem+B LTa3zLsS/2aW8wmQsyV7RpQC4OIR0PaEKz5WoGk= X-Google-Smtp-Source: AAOMgpcyXqMZ4QjqNYOSWElRpz9s/2eGIQkIMSERQcG/7Tx0NkpiexP1g0RSEuhABaRqFPJaShR8xxgp6ZjIAaldVKw= X-Received: by 2002:a19:138b:: with SMTP id 11-v6mr13913706lft.74.1533053504821; Tue, 31 Jul 2018 09:11:44 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:5742:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 09:11:24 -0700 (PDT) In-Reply-To: References: <655985.32208.qm@web103907.mail.ssk.yahoo.co.jp> From: Kyle Evans Date: Tue, 31 Jul 2018 11:11:24 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: hints bug or new feature ? To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 16:11:47 -0000 On Tue, Jul 31, 2018 at 8:45 AM, Kyle Evans wrote: > On Tue, Jul 31, 2018 at 5:06 AM, Mori Hiroki wrote: >> Hi >> >> I seem 12CURRENT hints system is change. > > Hi, > > I've rototilled a lot of this. > >> Then invalid setting by line end comment. >> >> For example like this. >> >> hint.arge.1.phymask=0x0 # no directly mapped PHYs >> >> hint.arge.1.phymask is not set in kernel now. >> > > Where are you setting this at? GENERIC.hints, loader.conf(5), or > directly in your KERNCONF (via 'hints' file)? > I dug into it a little bit more afterwards, and tracked it down. >= r336975 should fix, you'll need to either make buildworld or make kernel-toolchain since it's a config(8) bug. Thanks, Kyle Evans From owner-freebsd-mips@freebsd.org Tue Jul 31 23:21:18 2018 Return-Path: Delivered-To: freebsd-mips@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 4207310680ED for ; Tue, 31 Jul 2018 23:21:18 +0000 (UTC) (envelope-from mail.gery@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CEB9B83048; Tue, 31 Jul 2018 23:21:17 +0000 (UTC) (envelope-from mail.gery@gmail.com) Received: by mail-it0-x244.google.com with SMTP id e14-v6so7079668itf.1; Tue, 31 Jul 2018 16:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fyzTYtC7x4PeORQKny9YMgG0P/RAIt3NS4pYZ6AQfRk=; b=bWUQLPG6Z03HHKEqSVklFKov7/RBJa0Owh8Um8I6d8YazqfcT8/Eft0pT5PKmobIbk 8AgwNEKgqhDYZcqn1wTTy7QI2SAJB9EcNBVWFKm3iTrGCP4wOdYCj2EwRa8zSsATn+m5 2k0sg3+yhQ7TkPROdw+NbG/w0lKlFM6YXsD0nOvtJqCSx7rYMpAulI6KwN9VQtLOaSFK ncbitKN5Ts9Fy8J/QPJFVnhBht2ebloB9CVEWmEjHBPyFmqP15F/0flql6MjGKZ8NoCy CPiuW2y2xAQFmPXEuqL5MdxzwhUDasSnfa6OKRJ1+ZSWB2LEiImqdQxmObLbeQuNlUI3 e8hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fyzTYtC7x4PeORQKny9YMgG0P/RAIt3NS4pYZ6AQfRk=; b=qMe8UMPcrKwY1PNb3TNB4ok4VJPQsa91ZAL840Y3e2I5IRZRCt8auNJTh8jj/7G4jA wPkhdVwBSGoFUjgzaa4rTrWweM/mbdvdJaAV50iqV3aB7/HExAKP2nmJp/9DC5csgrZU KJmEzeCO9CcfGFbG9vd0DN5WrQwuNlCHvrFPbiMINRlVT+qFva5jaQ2RgvXLHC7tIAjm m3VPFzmaXHpnwVtNBzYRWPYpR3o6Bl0WGTEW1djm4FW67LPGmvc2W2DQVNBsWI0rrUJu /MPnKDdfUqc9eL6cqQC1Bs1Rbs+SiDbom9tq4Lz1c9PPcjsvBFLgQQtyc7jPg0aNgmMc OYAw== X-Gm-Message-State: AOUpUlFAeMgt3L9ebFIjk0wU5gf2c6y5wdKeGmjpKHQBxQ1P/swfrW66 8Lc55mWKzzzXH0xAYztPFEXMbPiLRsWF78IZuNepDK0R X-Google-Smtp-Source: AAOMgpclyMCTOxw3POW9hjvuBdm5WdpjH+MOfSSH3lG5Nx7EFJIvCtFcrEAjcJ67xDWGEebPYVI30rfhRUcplGclh5A= X-Received: by 2002:a24:f5c2:: with SMTP id k185-v6mr1576177ith.106.1533079276958; Tue, 31 Jul 2018 16:21:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:c4ca:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 16:21:16 -0700 (PDT) In-Reply-To: References: From: Gergely Kiss Date: Wed, 1 Aug 2018 01:21:16 +0200 Message-ID: Subject: Re: Possible arge driver bug - interrupt storm on int2 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 23:21:18 -0000 On 31 July 2018 at 15:45, Gergely Kiss wrote: > > Hi, > > I'm working on improving the freebsd-wifi-build project to have an out-of= -the-box gateway solution built on FreeBSD for SOHO routers. For more infor= mation, please see below link: > > https://github.com/kissg1988/freebsd-wifi-build > > I've created a build script that should simplify creating a build environ= ment from scratch: > > https://github.com/kissg1988/freebsd-wifi-build/blob/buildscript/scripts/= build.sh > > The goal is to make the distribution easy to build and use so it can be f= lashed just as simple as OpenWrt or DD-WRT. > > The device I'm working with is a TP-Link WN-1043ND v1.8 which has a Realt= ek RTL8366RB switch and is built around the AR9132 SoC. The board runs 11.2= -RELEASE currently. > > The ethernet controller works perfectly with a static or DHCP provided IP= address, however it seems something is wrong with the way the driver handl= es the TX queue in case 802.1Q tagging is in use and the system tries sendi= ng PPP frames over the tagged interface (eg. vlan2). > > Once ppp starts establishing the connection, packets to be sent are queue= d but not being transmitted by the controller and an interrupt storm is gen= erated with only the TX_UNDERRUN flag set (without the TX_PKT_SENT flag). > > This might be related to an issue seen a few years back: > > https://lists.freebsd.org/pipermail/freebsd-mips/2015-October/004137.html > > As PPPoE has an 8-byte overhead and VLAN tagging needs an additional 4-by= te field, I have lowered the MTU on arge0 and vlan2 to 1488 bytes but it di= dn't make any difference, the interrupt storm still happens and it's always= reproducible. Once it starts, the only way to stop the storm is to bring d= own arge0. > > If I destroy the vlan interface, and put the WAN port to an access VLAN w= ith no tagging, the PPPoE connection works fine. > > I'll make some more tests later today with -HEAD to see if it makes any d= ifference. > > Any help or ideas would be much appreciated in the meantime. > > Thanks, > Gergely > I have made some tests with -CURRENT and could reproduce the isssue exactly the same way as with 11.2-RELEASE. The version used for my tests is: FreeBSD 12.0-CURRENT #0 409735e6b1a(master)-dirty: Tue Jul 31 22:12:37 CEST= 2018 After setting sysctl dev.arge.0.debug=3D0x16 (ARGE_DBG_INTR | ARGE_DBG_TX | ARGE_DBG_ERR), this is what I see on the console a few seconds after starting the PPPoE connection: interrupt storm detected on "int2"; throttling interrupt source arge0: int mask(filter) =3D db arge0: status(filter) =3D 2 arge0: int status(intr) =3D 2 arge0: arge_intr: TX underrun; tx_cnt=3D18 tx_cnt keeps increasing every few seconds and never resets while the console is flooded with the lines above. The only way to stop the storm is to bring down arge0 (or power cycling the device, of course). I have noticed that setting the CPU port untagged for VLAN2 (ie. the WAN interface) solves the issue, so it's possible to have a workaround where VLAN1 is tagged on the CPU port (this works fine with "standard" Ethernet frames) and VLAN2 is untagged. However, I think this would not be an elegant way to handle this issue so I think about it as a last resort only. Please someone assist me with this as I'm not a driver developer, just an enthusiastic guy trying to improve what you guys (especially Adrian) have created, so far. Thanks, Gergely From owner-freebsd-mips@freebsd.org Tue Jul 31 23:55:57 2018 Return-Path: Delivered-To: freebsd-mips@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 1B9AB1069CE0 for ; Tue, 31 Jul 2018 23:55:57 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh502-vm8.bullet.mail.kks.yahoo.co.jp (nh502-vm8.bullet.mail.kks.yahoo.co.jp [183.79.56.153]) by mx1.freebsd.org (Postfix) with SMTP id 1E8728A0A3 for ; Tue, 31 Jul 2018 23:55:55 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh502.bullet.mail.kks.yahoo.co.jp with NNFMP; 31 Jul 2018 23:52:29 -0000 Received: from [183.79.100.133] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 31 Jul 2018 23:52:29 -0000 Received: from [127.0.0.1] by omp502.mail.kks.yahoo.co.jp with NNFMP; 31 Jul 2018 23:52:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 702655.77949.bm@omp502.mail.kks.yahoo.co.jp Received: (qmail 96784 invoked by uid 60001); 31 Jul 2018 23:52:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1533081149; bh=A+dDVy87ytiyZ3RHB9RsBOjmr65smOEiLkOcG9glVj8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=W8cQYJJy98HfrzshdDLmIZtemyx0e3Ielb2SzP5FLs2nQd11o7nXbZwGDOlCplG///qYO1l0bfqwtRApwuYSj4qVLSXVK0MvuVm4Y5Lykb47yhl/9MSXxXWM4zy1HSyMi7UYk02ERUTIiYTx14AhTrkdsQ2oF2UrzXQFPEXW1Dc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=oL1FPecACDcTUYnwbuCNxY9FKeTYLVvIn7fTUC+MfuHw8r7HCGXrswmLkcjP/WmZ/uCHx/8JmauhNMlScv/BBqJ7jIOiaITpCej03Vv0iqxBqnj8lbPLJ/kpvsXpd2thjUQJWgUr0g32nfNlfCncAUFUYbOMdxWhmU1yRs5Kw5M=; Message-ID: <490598.73586.qm@web103919.mail.ssk.yahoo.co.jp> X-YMail-OSG: fytfNd0VM1k2axfkBG8jL7R_MBU.86muDRyfcZ3EsFnJTs239UeXiqOgK_NJCzwoUIktrE.vNzHxxybpZW9YM.YdOg_wOYxFkLyXvpS25X8V6x7zXNzoz77nGNnyM_50CUCa3XcSq0qWoh0QdayIynAeMtu7pFz_D8lU1Qc9bWH7iqk_fOM34I0.xWtIZ_WSS6mwhm3N3G0VqJ7BY89OtiNBZS7K7nxMjiUciPrRyFrLO_y5Pqr0Wguzd_eMypjtnEPoqk5gGVeNCvUVTcKlFfwAH34NS0k_51w36umeK0mWtgFGMsE3KRtP3jntnAzUxhIxs4S9OqQlCDyVKzSJMPOJyRBT38PF5vH4IqwFKzXNYaUJ8GZ_cE6CRH._4dVVpv6sqfqb_XiSUVorAkiS_yLr_LUc3iKyk.XMhQGYqiBWlC_h2Qz0.aZQUN8FxPUUxc.tMQ8Y1jNTpWppyNOfVLcgUXiQA5SC2Di7LpvWZYDR0IE1VLGjGbf8kGWTfgu9EdLGZiX5Z8aSIhAQYs7Yy8qN.KQEOxn8no7DVqK.RXDjMWzvCIP07Ywmxma81VCxnEWMhn81tko4.IioJ8RN3K7FcsxLKoIFM..FWDV7KJWwaIBOK0liqx_0W0paUN6U6w-- Received: from [203.165.91.75] by web103919.mail.ssk.yahoo.co.jp via HTTP; Wed, 01 Aug 2018 08:52:28 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: 6fZTuLQVM1lchjW_7FphKt56RMCUlAMUwLjNJHDx5Ah9BTgFZkI4ccPh9iFkNIfvqEjUo6RiZA8m6Fqwu4uAXqGJSMrF8fF0SLQTjbg80Ss7pJYa3zhXS3lDVrx9d1xIdexz References: <655985.32208.qm@web103907.mail.ssk.yahoo.co.jp> Date: Wed, 1 Aug 2018 08:52:28 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: hints bug or new feature ? To: Kyle Evans Cc: "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 23:55:57 -0000 Hi=0A=0AI marge to head and check it. Work fine now.=0A=0A% grep ^hint.arge= .0.phymask conf/Buffalo_WZR-HP-AG300H.hints=0Ahint.arge.0.phymask=3D0x0# te= st=0A% grep hint.arge.0.phymask `find tmp -name hints.c`=0A"hint.arge.0.phy= mask=3D0x0\0"=0A=0AThanks for your fix.=0A=0A=0AHiroki Mori=0A=0A----- Orig= inal Message -----=0A> From: Kyle Evans =0A> To: Mori H= iroki =0A> Cc: "freebsd-mips@freebsd.org" =0A> Date: 2018/8/1, Wed 01:11=0A> Subject: Re: hints bug o= r new feature ?=0A> =0A> On Tue, Jul 31, 2018 at 8:45 AM, Kyle Evans wrote:=0A>>=A0=A0On Tue, Jul 31, 2018 at 5:06 AM, Mori Hirok= i =0A> wrote:=0A>>>=A0=A0Hi=0A>>> =0A>>>=A0=A0I see= m 12CURRENT hints system is change.=0A>> =0A>>=A0=A0Hi,=0A>> =0A>>=A0=A0I'v= e rototilled a lot of this.=0A>> =0A>>>=A0=A0Then invalid setting by line e= nd comment.=0A>>> =0A>>>=A0=A0For example like this.=0A>>> =0A>>>=A0=A0hint= .arge.1.phymask=3D0x0=A0 =A0 =A0 =A0=A0=A0# no directly mapped PHYs=0A>>> = =0A>>>=A0=A0hint.arge.1.phymask is not set in kernel now.=0A>>> =0A>> =0A>>= =A0=A0Where are you setting this at? GENERIC.hints, loader.conf(5), or=0A>>= =A0=A0directly in your KERNCONF (via 'hints' file)?=0A>> =0A> =0A> I dug in= to it a little bit more afterwards, and tracked it down. >=3D=0A> r336975 s= hould fix, you'll need to either make buildworld or make=0A> kernel-toolcha= in since it's a config(8) bug.=0A> =0A> Thanks,=0A> =0A> Kyle Evans=0A> From owner-freebsd-mips@freebsd.org Wed Aug 1 03:55:35 2018 Return-Path: Delivered-To: freebsd-mips@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 6D48A1045F94 for ; Wed, 1 Aug 2018 03:55:35 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm2.bullet.mail.kks.yahoo.co.jp (nh503-vm2.bullet.mail.kks.yahoo.co.jp [183.79.56.188]) by mx1.freebsd.org (Postfix) with SMTP id 178A671EF1 for ; Wed, 1 Aug 2018 03:55:33 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 01 Aug 2018 03:52:56 -0000 Received: from [183.79.100.134] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 01 Aug 2018 03:52:56 -0000 Received: from [127.0.0.1] by omp503.mail.kks.yahoo.co.jp with NNFMP; 01 Aug 2018 03:52:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 629555.89768.bm@omp503.mail.kks.yahoo.co.jp Received: (qmail 1880 invoked by uid 60001); 1 Aug 2018 03:52:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1533095576; bh=fI5jNd6EjMrOcACxhHyfT2Xy+zTJLD8UToCz8DHdyk8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XJuQHTnLfCs8T40vbZtEM4+U/4sQwVxiCJVDQCdXN62skyksY/p7bjXmIvmQQBlvy3jNOkf7OGfPd4/A0ywBR4GiEyUUXIMuzqq4IL3IRkiEC5RDZhHIKGQgmYTr21yACrw960vVoKxb+kZcM/oKiPYhexj2hlX2xR3b2S6Y8HE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hHsWOhA32XC74rpZH8ejdmu5yggpqSkrbtrUSLwDtCGDnOKBzifTSnfZFI1N0grT9Wm+tENR3NxAnZPLQWR9ggpox24owMAKJvYJEgKA/zs0vt4lxlF1Ly+wruUcdf5/X3VJ8wbPuBrIfNwIzqSQP+OTA2tRLB/tJwZfUVntU0Q=; Message-ID: <393407.1435.qm@web103917.mail.ssk.yahoo.co.jp> X-YMail-OSG: saVkQk4VM1lzUyg3QwrDG2YdLbGY25tWsUYe46t2rwwyXWlQE9IuFeXsYuNuBcXbEgIudaTd6p3bJq5WIiOWjkSO7l2FbtSTz6KdugOSqLtiuLZKNRmCefwzGP46_vsyP6hF1uubTpmNA67RtRPJ3KL3oFOdqi7L8yDVHffaalwVRBjNgVEnXg79ewnVY3xs4Qa3qC57BYz6wGaToyynqP4_gpP6Ws9emgQn7zUzm_cX9TPy7OQboGGy2dBQbsPmI2GsrHkvLMZSInDMipG.AFrysW5hRdIC7qJq.9Ea4x33SMTP8BLxiQBU664JpcBdlVjlxct3syCPe23qgIihiL6VSWvSK3BdP0MH8KVtjwsgIgviJ_b_Eq53qeNYsQdkB5zHJF98vDNAAT.r8TCtAgigfUCb463xDW1xYF5LFlQN_71FPktrGK7BKSJQgDUfFHeGwkeVSgdlZmD1zzma6cxlPChRgf..5FKDGTnWqd5GfrzuLcqhHjZ8eSLSkk9m2k919GBNp4tFMVXgPaAun0nXdebFQI3md7_6z.mlocaKwx0NJjJHeIhr0lxfsgOWLUuSg_o95_P3Rfo_kY0QGgCWb1EJENnDWe.t_M4UUziHGkWR9H_.rWPHICuLg2iy Received: from [203.165.91.75] by web103917.mail.ssk.yahoo.co.jp via HTTP; Wed, 01 Aug 2018 12:52:55 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: LDSfU4IVM1mh9o.nXE2eY5K2pl4FFIDBy.I4c6QGMTOgyntxCCkxLlDcVP8_X587bGkh5_HAUh0o6DT.UasgjLCBDMJoIOxDkEks7ms1BNPiI0Ah1RbwzOY1C.7anQQVwhKj Date: Wed, 1 Aug 2018 12:52:54 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: panic at AR9132 by USB hi load To: "freebsd-mips@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 03:55:35 -0000 Hi=0A=0AI use=A0Buffalo WZR-HP-G300NH. This is AR9132.=0AThis target have U= SB interface.=0A=0AThis device is panic by USB hi load.=0A=0AFor example I = use USB sound module and this command make panic soon.=0A=0A% cat /dev/dsp = > /dev/null=0A=0ATrap cause =3D 5 (address error (store) - kernel mode)=0A[= thread pid 13 tid 100025 ]=0AStopped at=A0 =A0 =A0 0=0Adb> trace=0ATracing= pid 13 tid 100025 td 0x80772780=0Afeeder_matrix_oss_set_channel_order+0x19= f8 (?,?,?,?) ra 80127064 sp c06c3bc0 sz=A0=0A0=0Afeeder_matrix_oss_set_chan= nel_order+0x4690 (?,?,7bf,?) ra 0 sp c06c3bc0 sz 0=0Adb> show thread=0AThre= ad 100025 at 0x80772780:=0A=A0proc (pid 13): 0x8076c388=0A=A0name: usbus0= =0A=A0stack: 0xc06c2000-0xc06c3fff=0A=A0flags: 0x1000004=A0 pflags: 0x20000= 0=0A=A0state: RUNNING (CPU 0)=0A=A0priority: 24=0A=A0container lock: sched = lock (0x80598700)=0A=A0last voluntary switch: 34 ms ago=0A=0AI use dump1090= program by=A0RTL2838UHIDIR USB dongle on AR9132.=0AThis have no problem.= =A0I think this is not so hi load.=0A=0AI also use=A0Buffalo WZR-HP-AG300H(= AR7161).=0AThis target is work fine on hi load.=0A=0AIf you have advice, Pl= ease let me know.=0A=0ARegards=0A=0AHiroki Mori From owner-freebsd-mips@freebsd.org Thu Aug 2 01:36:36 2018 Return-Path: Delivered-To: freebsd-mips@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 06AB7104D0D7 for ; Thu, 2 Aug 2018 01:36:36 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh604-vm8.bullet.mail.ssk.yahoo.co.jp (nh604-vm8.bullet.mail.ssk.yahoo.co.jp [182.22.90.65]) by mx1.freebsd.org (Postfix) with SMTP id 3DBA59184A for ; Thu, 2 Aug 2018 01:36:34 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.106] by nh604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 02 Aug 2018 01:33:06 -0000 Received: from [182.22.91.133] by t604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 02 Aug 2018 01:33:06 -0000 Received: from [127.0.0.1] by omp606.mail.ssk.yahoo.co.jp with NNFMP; 02 Aug 2018 01:33:06 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 926762.40170.bm@omp606.mail.ssk.yahoo.co.jp Received: (qmail 87877 invoked by uid 60001); 2 Aug 2018 01:33:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1533173586; bh=BEw5Barp1yn6IAG4Kju+WlG0z4pKBRosqCsz0fwvn50=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vhmroH8Z9SPBfQCmhh//lYb5LkE4k5kwLQ31nwMOzST7iX+09UdFDokVC0+wnGhNcZYRMPgA69AkML5vqLh/4oFEdc4DxCb8oXcyFTsZVhvdWNau84Vgg6Ej6QDgUSx3z9PGB6+ka4fbV0kFgFhsi01F+WzRw1vgkq1jt/vUd+g= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HBoAqK/JelD6CoK2iaxqu7AmgiAVn3pIR+iHbyoQPj8Fz+9gUs81sg0D79Dq0s5A038WfixMZg5Cz/H2lNVaT06DIdlXuSUDklIsKcUASzNqWI10WyqaG+uMk4Yp/zMgomOM4RinztYO4Hdn5Yp9ialSsgPuctvVXZTREpFUS6Y=; Message-ID: <748670.74829.qm@web103920.mail.ssk.yahoo.co.jp> X-YMail-OSG: FrZIZJ0VM1np0NYE0bSEiEFlL2bnKv9neAJy9SAhslbCTXDjh9vfh8cRbXYaKDFLbmOVT_NPztE_eZ46VeQpU9NaiV6IPtYuD.Uj43AqaU7peFI5x8V3Ao6_Jg4xNnxyIVD9CboIg6Q927X4ILCjioj48PiJtui0KjAXlhD2iumi5chUkn_oENgGAc1sHvnbGfMrezuU4DR03LR7EUH5eZCUwB3_8X9jGHqa7syiMSOG6tHGHFJJ6LGTktngszriFCVSx5r3QPk2WBqTTG4JNfHOk7u1qOEKw2ial9QI1CeEzIKSqViPB8432yQ3jWx5Lsb0LvRhZVULtYRgHXjm4mIlY5AiB11X6mDQHkMlVSUhQuGgLWAbQi9c0UjTUdJTm9X86HmS9lJt1E0j6bM.XXn7iEIAdG8eWpl8kP4Wsw27rbolQ6JV4XbGgeOSDcZMG4056GbVsWls0gjlotj05Ivhtcjzl2Iw3JTXJgtM7zGqUIMggow5i8TTJ7MXkwco_POFG.4XfNm4GibTyJojYrxztpuCT6njLFbooB0KLBaB37agYrIWArAdeJEwlnWdGBXnY97HIuuM0umYpGD6guepheOUw7wG542RfWKmoNfomSYOcnzcKl0cnd4jlSKK Received: from [203.165.91.75] by web103920.mail.ssk.yahoo.co.jp via HTTP; Thu, 02 Aug 2018 10:33:05 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: XPkxm.0VM1lot8y7dq0CXFrN.XaUlxrDoqlt9biyIo4_FTHisGVClcEj1myfXuktn_C52UZpQ7lOM0Hk6ElEhxJinFctxFrujxskFTG93tyIF2oprJ79Q63wx_d_nbaOrxIu References: <393407.1435.qm@web103917.mail.ssk.yahoo.co.jp> Date: Thu, 2 Aug 2018 10:33:05 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: panic at AR9132 by USB hi load To: "freebsd-mips@freebsd.org" In-Reply-To: <393407.1435.qm@web103917.mail.ssk.yahoo.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2018 01:36:36 -0000 Hi=0A=0AI seem different=A0AR9132 and AR7161 USB.=0A=0AAR7161 is normal USB= but AR9132 is OTG.=0A=0A=0AI think we need OTG code for AR9132.=0A=0AThank= s=0A=0AHiroki Mori=0A=0A=0A----- Original Message -----=0A> From: Mori Hiro= ki =0A> To: "freebsd-mips@freebsd.org" =0A> Cc: =0A> Date: 2018/8/1, Wed 12:52=0A> Subject: panic at = AR9132 by USB hi load=0A> =0A> Hi=0A> =0A> I use=A0Buffalo WZR-HP-G300NH. T= his is AR9132.=0A> This target have USB interface.=0A> =0A> This device is = panic by USB hi load.=0A> =0A> For example I use USB sound module and this = command make panic soon.=0A> =0A> % cat /dev/dsp > /dev/null=0A> =0A> Trap = cause =3D 5 (address error (store) - kernel mode)=0A> [ thread pid 13 tid 1= 00025 ]=0A> Stopped at=A0 =A0 =A0 0=0A> db> trace=0A> Tracing pid 13 tid 10= 0025 td 0x80772780=0A> feeder_matrix_oss_set_channel_order+0x19f8 (?,?,?,?)= ra 80127064 sp c06c3bc0 sz=A0=0A> 0=0A> feeder_matrix_oss_set_channel_orde= r+0x4690 (?,?,7bf,?) ra 0 sp c06c3bc0 sz 0=0A> db> show thread=0A> Thread 1= 00025 at 0x80772780:=0A> =A0proc (pid 13): 0x8076c388=0A> =A0name: usbus0= =0A> =A0stack: 0xc06c2000-0xc06c3fff=0A> =A0flags: 0x1000004=A0 pflags: 0x2= 00000=0A> =A0state: RUNNING (CPU 0)=0A> =A0priority: 24=0A> =A0container lo= ck: sched lock (0x80598700)=0A> =A0last voluntary switch: 34 ms ago=0A> =0A= > I use dump1090 program by=A0RTL2838UHIDIR USB dongle on AR9132.=0A> This = have no problem.=A0I think this is not so hi load.=0A> =0A> I also use=A0Bu= ffalo WZR-HP-AG300H(AR7161).=0A> This target is work fine on hi load.=0A> = =0A> If you have advice, Please let me know.=0A> =0A> Regards=0A> =0A> Hiro= ki Mori=0A> _______________________________________________=0A> freebsd-mip= s@freebsd.org mailing list=0A> https://lists.freebsd.org/mailman/listinfo/f= reebsd-mips=0A> To unsubscribe, send any mail to =0A> "freebsd-mips-unsubsc= ribe@freebsd.org"=0A> From owner-freebsd-mips@freebsd.org Sat Aug 4 07:13:03 2018 Return-Path: Delivered-To: freebsd-mips@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 77F5F10608C7 for ; Sat, 4 Aug 2018 07:13:03 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh501-vm12.bullet.mail.kks.yahoo.co.jp (nh501-vm12.bullet.mail.kks.yahoo.co.jp [183.79.56.142]) by mx1.freebsd.org (Postfix) with SMTP id A2255891E8 for ; Sat, 4 Aug 2018 07:13:02 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh501.bullet.mail.kks.yahoo.co.jp with NNFMP; 04 Aug 2018 07:10:30 -0000 Received: from [183.79.100.133] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 04 Aug 2018 07:10:30 -0000 Received: from [127.0.0.1] by omp502.mail.kks.yahoo.co.jp with NNFMP; 04 Aug 2018 07:10:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 154121.39585.bm@omp502.mail.kks.yahoo.co.jp Received: (qmail 73596 invoked by uid 60001); 4 Aug 2018 07:10:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1533366629; bh=eR7VRWy9owqxIwcZ9vSh8A7OD8dWO7oQNY78BBFmsZI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lHvT+hhb+EUpN4Ovp9W/L4N5Azed1uuGqMV6ry4N5e9hC+2LgAhkH95xEQRBa4R+Y0Kv7GqWsL/yrXa/Tr1TdnyZTvb14YueDVljxkBXWVWtlxVHTJMr/l2PJYdoqaKQrGYuJ1tfiGNM+rg6wqGYD/2PYhp2R7dTkeaJnNMa1mY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EAJGqopjdtTqVkDbKYH2t8wfAcuR+hUnoeNYs2MXEHScEk5+oSlKmNA7Ic5xFry1rKPSYr23wZgYl5T8nZKRk2zH/95GobUNxX9QBb9OPulp8sbGwXa/bxrLl2a3xz4Av5zgtq3/9oKJv4HJojBuhv6VpNolJiuIQ2fyPZVrwWQ=; Message-ID: <825483.55796.qm@web103916.mail.ssk.yahoo.co.jp> X-YMail-OSG: fI4ikHMVM1nnpL1z0lTq.OhFJA09Nf3ibltNELsDtIW0.Ibhdba.fUEvDMrMW5R4i8JXammnFzHQBViv6ORbAylWC4NYueGa7MB.awx7ext7mAtkXcG9v6QwBuLSo7roJx5dx2yvjtS49qEup9NM_wQ2DLagQkx94sjK6glkLzE_qJplYjVr_1K8.fT25UvhwGdSz48Qu3Ccw7jAj809zsoMbKVyikLTkXf3NioMfET8KVnaHN6u2UKPf1BWCUVs6dkv98ephaM_GSW_6zThpx4qAAiyJbGfDCUglICWAyL4fgfJ_lh9bYFrR_xyX2HzRfvLeCXJ6DJWxSrX3GGZwsRKZbCJUzXNbdeV2ybHWuwOXjE3QBcwJPHXoST.9CZyoY46OmGc0dEo00Ez9wXrHtGDF8wCaF6NWabksnl_tIdEywDOhXeZ.svTXTEVNdxObBligDvYSQBQKa.1_wWbCbOeQRucpUGO6ijfNh9bWCPQ.kxEphl2UROv_GjfZeb8agqwFrep4_iOxzShzJryFpaD_._GjFYCkWSB3NM5yQSbNZhNVc1Ol.RGBPRag4Q7U3Ca6M.q7oILCn_9S9PqU_UGszGA8K66UAK_iFeZZ95elo0Rf6HIIOWXUywuF1cQ Received: from [203.165.91.75] by web103916.mail.ssk.yahoo.co.jp via HTTP; Sat, 04 Aug 2018 16:10:28 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: akriUxQVM1k5db5_F5d1nParE_w7.ieyywvrbYuI2KToWzdOlsrB2Bxan2ilBpKoqooiSACO1ZM8EHrVPiQMEQXjvWePa.Gjv9chB.toYiKSo75jKzR8pLg9teUGNSTrbGll References: <393407.1435.qm@web103917.mail.ssk.yahoo.co.jp> <748670.74829.qm@web103920.mail.ssk.yahoo.co.jp> Date: Sat, 4 Aug 2018 16:10:28 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: panic at AR9132 by USB hi load To: "freebsd-mips@freebsd.org" In-Reply-To: <748670.74829.qm@web103920.mail.ssk.yahoo.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2018 07:13:03 -0000 Hi=0A=0ASorry I seem this is OSS bug.=0A=0AOSS have MIPS or Big-Endian or U= SB-Audio bug.=0A=0AThanks=0A=0AHiroki Mori=0A=0A=0A----- Original Message -= ----=0A> From: Mori Hiroki =0A> To: "freebsd-mips@fr= eebsd.org" =0A> Cc: =0A> Date: 2018/8/2, Thu 10:3= 3=0A> Subject: Re: panic at AR9132 by USB hi load=0A> =0A> Hi=0A> =0A> I se= em different=A0AR9132 and AR7161 USB.=0A> =0A> AR7161 is normal USB but AR9= 132 is OTG.=0A> =0A> =0A> I think we need OTG code for AR9132.=0A> =0A> Tha= nks=0A> =0A> Hiroki Mori=0A> =0A> =0A> ----- Original Message -----=0A>> F= rom: Mori Hiroki =0A>> To: "freebsd-mips@freebsd.or= g" =0A>> Cc: =0A>> Date: 2018/8/1, Wed 12:52=0A= >> Subject: panic at AR9132 by USB hi load=0A>> =0A>> Hi=0A>> =0A>> I us= e=A0Buffalo WZR-HP-G300NH. This is AR9132.=0A>> This target have USB inter= face.=0A>> =0A>> This device is panic by USB hi load.=0A>> =0A>> For exam= ple I use USB sound module and this command make panic soon.=0A>> =0A>> % = cat /dev/dsp > /dev/null=0A>> =0A>> Trap cause =3D 5 (address error (store= ) - kernel mode)=0A>> [ thread pid 13 tid 100025 ]=0A>> Stopped at=A0 =A0= =A0 0=0A>> db> trace=0A>> Tracing pid 13 tid 100025 td 0x80772780=0A>> = feeder_matrix_oss_set_channel_order+0x19f8 (?,?,?,?) ra 80127064 sp =0A> c0= 6c3bc0 sz=A0=0A>> 0=0A>> feeder_matrix_oss_set_channel_order+0x4690 (?,?,= 7bf,?) ra 0 sp c06c3bc0 sz =0A> 0=0A>> db> show thread=0A>> Thread 100025= at 0x80772780:=0A>> =A0proc (pid 13): 0x8076c388=0A>> =A0name: usbus0=0A= >> =A0stack: 0xc06c2000-0xc06c3fff=0A>> =A0flags: 0x1000004=A0 pflags: 0x= 200000=0A>> =A0state: RUNNING (CPU 0)=0A>> =A0priority: 24=0A>> =A0conta= iner lock: sched lock (0x80598700)=0A>> =A0last voluntary switch: 34 ms ag= o=0A>> =0A>> I use dump1090 program by=A0RTL2838UHIDIR USB dongle on AR913= 2.=0A>> This have no problem.=A0I think this is not so hi load.=0A>> =0A>>= I also use=A0Buffalo WZR-HP-AG300H(AR7161).=0A>> This target is work fin= e on hi load.=0A>> =0A>> If you have advice, Please let me know.=0A>> =0A>= > Regards=0A>> =0A>> Hiroki Mori=0A>> __________________________________= _____________=0A>> freebsd-mips@freebsd.org mailing list=0A>> https://lis= ts.freebsd.org/mailman/listinfo/freebsd-mips=0A>> To unsubscribe, send any= mail to =0A>> "freebsd-mips-unsubscribe@freebsd.org"=0A>> =0A> __________= _____________________________________=0A> freebsd-mips@freebsd.org mailing = list=0A> https://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A> To uns= ubscribe, send any mail to =0A> "freebsd-mips-unsubscribe@freebsd.org"=0A>