From owner-freebsd-arm@freebsd.org Sun Jul 5 16:10:13 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B4C336EB84 for ; Sun, 5 Jul 2020 16:10:13 +0000 (UTC) (envelope-from furkan@fkardame.com) Received: from sender4-of-o53.zoho.com (sender4-of-o53.zoho.com [136.143.188.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0DDz6xymz46KV for ; Sun, 5 Jul 2020 16:10:11 +0000 (UTC) (envelope-from furkan@fkardame.com) ARC-Seal: i=1; a=rsa-sha256; t=1593965408; cv=none; d=zohomail.com; s=zohoarc; b=K13EhuEGshPZA/OShNQn/3GsbtfVK7DcI0cF49gnhUgZ0qCwLlgczFJNyVcgimQgXZVj4+sXravd8XqQ1OqXZ9wCd6FgOLHzj4FANt1LlAoSU4G7N6dQnJIsX8zGo39hQgsTfnL5XPbOUqk0Y3akz7zaRNjK5Cokn86HTkUhqtw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593965408; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=E8Uk+6CVRB5DiNCqV3EzmpKJVnjG5DIMpEWZirnkFNY=; b=JMWrP0Fkn+wt/+9omLizc2Doyj/kcIgQMMUbS/kB9XEbncl3YpF6+mInODL5a4zYUVuib2ZMptjmOdCHSABvrqf6b2Cz3PfwILabgZt3OBzxl5BZDbVHlMNdVtTXOOvhWNWXrZPLqXj+bh325LNV0FomTVfZPKWOomTDQuHHOmU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=fkardame.com; spf=pass smtp.mailfrom=furkan@fkardame.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1593965408; s=fktech; d=fkardame.com; i=furkan@fkardame.com; h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=E8Uk+6CVRB5DiNCqV3EzmpKJVnjG5DIMpEWZirnkFNY=; b=ci/Q5ItzhgW+pGsI3noOQ/6C9CT/SCroDShr6s9tTLuR2mlEeRM/gjmEYafkcUou IEeGz9qNQRCjRfQ+H62PEnk7Qd/BllWoP8XYvvjapuGOHXTas28ZrphYGk6ZOnyQDhX iYlXdhr/0lUYYLCsI8my/gG/hYcc8k9U4z8cXFFQ= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1593965407532421.30173377991764; Sun, 5 Jul 2020 09:10:07 -0700 (PDT) Date: Sun, 05 Jul 2020 19:10:07 +0300 From: Furkan Salman To: "freebsd-arm" Message-Id: <1731fbded28.10a3342f0357159.8148813293316485882@fkardame.com> In-Reply-To: References: Subject: Re: freebsd-arm Digest, Vol 740, Issue 7 MIME-Version: 1.0 Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Rspamd-Queue-Id: 4B0DDz6xymz46KV X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=fkardame.com header.s=fktech header.b=ci/Q5Itz; dmarc=pass (policy=none) header.from=fkardame.com; spf=pass (mx1.freebsd.org: domain of furkan@fkardame.com designates 136.143.188.53 as permitted sender) smtp.mailfrom=furkan@fkardame.com X-Spamd-Result: default: False [-5.13 / 15.00]; NEURAL_HAM_MEDIUM(-1.04)[-1.039]; RWL_MAILSPIKE_VERYGOOD(0.00)[136.143.188.53:from]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:136.143.188.0/23]; NEURAL_HAM_LONG(-1.00)[-1.003]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[fkardame.com:~]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[136.143.188.53:from]; NEURAL_HAM_SHORT(-1.30)[-1.302]; R_DKIM_PERMFAIL(0.00)[fkardame.com:s=fktech]; DMARC_POLICY_ALLOW(-0.50)[fkardame.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:2639, ipnet:136.143.188.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; ARC_ALLOW(-1.00)[zohomail.com:s=zohoarc:i=1] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 16:10:13 -0000 Hello Peter, I have rockpiE which is somewhat similar to Rock64, If s133pwa1k9r@ or gonz= o@ can confirm if rockpie can be used to test RK3328 Lan issue then I am ha= ppy to help with testing. ---- On Sun, 05 Jul 2020 15:00:02 +0300 = wrote ---- Send freebsd-arm mailing list submissions to=20 =C2=A0=C2=A0=C2=A0=C2=A0mailto:freebsd-arm@freebsd.org=20 =20 To subscribe or unsubscribe via the World Wide Web, visit=20 =C2=A0=C2=A0=C2=A0=C2=A0https://lists.freebsd.org/mailman/listinfo/freebsd-= arm=20 or, via email, send a message with subject or body 'help' to=20 =C2=A0=C2=A0=C2=A0=C2=A0mailto:freebsd-arm-request@freebsd.org=20 =20 You can reach the person managing the list at=20 =C2=A0=C2=A0=C2=A0=C2=A0mailto:freebsd-arm-owner@freebsd.org=20 =20 When replying, please edit your Subject line so it is more specific=20 than "Re: Contents of freebsd-arm digest..."=20 =20 =20 Today's Topics:=20 =20 1. RBPI3B/3B+ builtin WIFI support (Stefan Parvu)=20 2. RK3328/Rock64 GigE testers needed. (Peter Jeremy)=20 =20 =20 ----------------------------------------------------------------------=20 =20 Message: 1=20 Date: Sat, 4 Jul 2020 22:07:44 +0300=20 From: Stefan Parvu =20 To: mailto:freebsd-arm@freebsd.org=20 Subject: RBPI3B/3B+ builtin WIFI support=20 Message-ID: = =20 Content-Type: text/plain;=C2=A0=C2=A0=C2=A0=C2=A0charset=3Dus-ascii=20 =20 Hi,=20 =20 Is there any progress to have support for the built-in Wifi on RBPI3/3B+ ?= =20 We want to test our product based on FreeBSD for IoT. Preferable we dont wa= nt to use any additional USB dongles.=20 =20 Thank you,=20 Stefan=20 =20 ------------------------------=20 =20 Message: 2=20 Date: Sun, 5 Jul 2020 10:06:43 +1000=20 From: Peter Jeremy =20 To: mailto:freebsd-arm@freebsd.org=20 Subject: RK3328/Rock64 GigE testers needed.=20 Message-ID: =20 Content-Type: text/plain; charset=3D"us-ascii"=20 =20 Head r362736 has enabled the internal RGMII delay lines in the RK3328=20 (and RK3399) and this breaks networking on my Rock64 v2.0 (that I've=20 modded to use the higher RGMII bus voltage, as per the v3.0).=20 =20 gonzo@ and I would be interested in other people's experiences with=20 this revision - particularly other people with Rock64 v2 or Rock64 v3=20 boards.=20 =20 --=20 Peter Jeremy=20 -------------- next part --------------=20 A non-text attachment was scrubbed...=20 Name: signature.asc=20 Type: application/pgp-signature=20 Size: 963 bytes=20 Desc: not available=20 URL: =20 =20 ------------------------------=20 =20 Subject: Digest Footer=20 =20 _______________________________________________=20 mailto:freebsd-arm@freebsd.org mailing list=20 https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 To unsubscribe, send any mail to "mailto:freebsd-arm-unsubscribe@freebsd.or= g"=20 =20 =20 ------------------------------=20 =20 End of freebsd-arm Digest, Vol 740, Issue 7=20 ******************************************* From owner-freebsd-arm@freebsd.org Sun Jul 5 17:14:50 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DBC0A3484CB for ; Sun, 5 Jul 2020 17:14:50 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0FgY5r3Kz4BYC for ; Sun, 5 Jul 2020 17:14:49 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.nyi.freebsd.org (Postfix) id C84013484C9; Sun, 5 Jul 2020 17:14:49 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C7F753485C0 for ; Sun, 5 Jul 2020 17:14:49 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0FgX22lfz4BKd for ; Sun, 5 Jul 2020 17:14:47 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1593969279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KwxHDwapje6ANL+KyzuwEkLGaifUfg4Xw7PreN7rXYA=; b=cEnFnifXqjEOjb3t9AETR19TvNQIhmAaOLtDCV08H23UqCxFfu5F+f5eTiQt3QL1QwmQUz yQ+v2RE6rpUi/8j6Rsqsy73sVVSr3xsAwWuNa07QOoJVdwR22GItEa32wVv2Ha3oUUaHjD QDqsUqPffziz4BbWqGaoJByrMOPhARo= Received: from skull.home.blih.net (lfbn-idf2-1-686-145.w86-247.abo.wanadoo.fr [86.247.139.145]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 74002f1e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 5 Jul 2020 17:14:39 +0000 (UTC) Date: Sun, 5 Jul 2020 19:14:35 +0200 From: Emmanuel Vadot To: Daniel Braniss Cc: Manuel =?ISO-8859-1?Q?St=FChn?= , "freebsd-arm@freebsd.org" Subject: Re: allwinner/i2c interrupt storm detected Message-Id: <20200705191435.c9c65caf64026ee881020f3a@bidouilliste.com> In-Reply-To: References: <10ACCB56-E18D-4102-B4E2-094157854AB7@cs.huji.ac.il> <20200704122944.64723bbb606d6e73128d2568@freenet.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4B0FgX22lfz4BKd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=cEnFnifX; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.01)[-1.007]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-0.65)[-0.647]; NEURAL_HAM_MEDIUM(-1.04)[-1.044]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[freenet.de,freebsd.org] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 17:14:50 -0000 Hi Daniel, Manuel, On Sat, 4 Jul 2020 13:45:50 +0300 Daniel Braniss wrote: >=20 >=20 > > On 4 Jul 2020, at 13:29, Manuel St=FChn wrot= e: > >=20 > > On Tue, 30 Jun 2020 16:01:41 +0300 > > Daniel Braniss > wrote: > >=20 > >> Hi, > >>=20 > >> after a long time I decided to try and upgrade to stable 12.1 r362793 = since I saw some changes where done=20 > >> with respect to the DTS and twsi.c,=20 > >>=20 > >> if nothing is connected to the i2c, i2c -s just hangs, > >>=20 > >> if something is connected this is what i get on the console after typi= ng ?i2c -s? > >>=20 > >>=20 > >> Hardware may not support START/STOP scanning; trinterrupt storm detect= ed on "gic0,s6:"; throttling interrupt source > >> ying less-reliable read method. > >> interrupt storm detected on "gic0,s6:"; throttling interrupt source > >> interrupt storm detected on "gic0,s6:"; throttling interrupt source > >> ? > >>=20 > >> and > >> neo-04> vmstat -i > >> interrupt total rate > >> gic0,p13:-ic_timer0 16052 164 > >> gic0,s0: uart2 318 3 > >> gic0,s6: iichb0 13034 133 > >> gic0,s60: aw_mmc0 1293 13 > >> gic0,s82: awg0 334 3 > >> gic0,s120: pmu0 49725 509 > >> cpu0:rendezvous 18 0 > >> cpu1:rendezvous 50 1 > >> cpu2:rendezvous 51 1 > >> cpu3:rendezvous 40 0 > >> cpu0:preempt 2691 28 > >> cpu1:preempt 3165 32 > >> cpu2:preempt 2778 28 > >> cpu3:preempt 2986 31 > >> cpu0:hardclock 15 0 > >> Total 92550 946 > >>=20 > >>=20 > >> the hardware is an NanoPi Neo > >> ---<>--- > >> KDB: debugger backends: ddb > >> KDB: current backend: ddb > >> Copyright (c) 1992-2020 The FreeBSD Project. > >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 19= 94 > >> The Regents of the University of California. All rights reserved. > >> FreeBSD is a registered trademark of The FreeBSD Foundation. > >> FreeBSD 12.1-STABLE #0 r362793M: Tue Jun 30 11:39:11 IDT 2020 > >> danny@nrnd:/home/obj/nrnd/arm/neo/vol/rnd/stable/12/arm.armv7/sys/AW= GEN arm > >> FreeBSD clang version 10.0.0 (git@github.com :l= lvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b) > >> VT: init without driver. > >> No PSCI/SMCCC call function found > >> CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) > >> ? > >>=20 > >=20 > > I do not have a IRQ-Storm on my NanoPI NEO2, but a "i2s -s" does never = return. Commit v356609 broke i2c-support on my hardware (reverting this sin= gle commit fixed it, bugreport filed: https://bugs.freebsd.org/bugzilla/sho= w_bug.cgi?id=3D247576 ). > >=20 > > Perhaps it is worth a try for you also to revert this commit and test a= gain... > >=20 >=20 > before the latest changes it works fine, and if you add my patch to it, i= 2s -s will not hang: >=20 > > -- twsi.c (revision 346538) > > +++ twsi.c (working copy) > > @@ -458,8 +458,15 @@ > > if (sc->msg->len =3D=3D 1) > > sc->control_val &=3D ~TWSI_CONTROL_ACK; > > TWSI_WRITE(sc, sc->reg_control, sc->control_val | TWSI_CONTROL_START); > > - while (sc->error =3D=3D 0 && sc->transfer !=3D 0) { > > - pause_sbt("twsi", SBT_1MS * 30, SBT_1MS, 0); > > + { > > + int count =3D 10; > > + while (sc->error =3D=3D 0 && sc->transfer !=3D 0) { > > + pause_sbt("twsi", SBT_1MS * 30, SBT_1MS, 0); > > + if(count-- =3D=3D 0) { > > + sc->error =3D EDEADLK; > > + break; > > + } > > + } > > } > >=20 > > debugf(dev, "Done with msg[%d]\n", i); >=20 >=20 > cheers, > danny >=20 > >=20 > > BR > > Manuel Could you test the patch I've just attached to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247576 please ? It doesn't fix everything and I'm still working on doing test on a lot of different boards but this is clearly needed. --=20 Emmanuel Vadot