From owner-freebsd-arm@freebsd.org Sun Sep 18 11:48:44 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D4D9BDFD47 for ; Sun, 18 Sep 2016 11:48:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0861AE07 for ; Sun, 18 Sep 2016 11:48:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id 04389BDFD46; Sun, 18 Sep 2016 11:48:44 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03D5EBDFD45 for ; Sun, 18 Sep 2016 11:48:44 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83825E06 for ; Sun, 18 Sep 2016 11:48:42 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.81.13]) by kabab.cs.huji.ac.il with esmtp id 1blaaE-0006wq-Qh; Sun, 18 Sep 2016 14:48:30 +0300 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: ALLWINNER/h3 malfunction From: Daniel Braniss In-Reply-To: <20160917195544.a2a8bbdb113029700fa7642d@bidouilliste.com> Date: Sun, 18 Sep 2016 14:48:30 +0300 Cc: arm@freebsd.org, Jared McNeill Message-Id: <588E44BB-40BF-40B8-9C5A-BA025AB87E00@cs.huji.ac.il> References: <20160917171911.a2ec80da747ba373ba3d1b4a@bidouilliste.com> <5ADFE16E-FD60-45B1-8CF1-6FFC10BABBDE@cs.huji.ac.il> <20160917195544.a2a8bbdb113029700fa7642d@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3124) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 11:48:44 -0000 > On 17 Sep 2016, at 20:55, Emmanuel Vadot = wrote: >=20 > On Sat, 17 Sep 2016 20:41:09 +0300 > Daniel Braniss > = wrote: >=20 >>=20 >>> On 17 Sep 2016, at 6:19 PM, Emmanuel Vadot = wrote: >>>=20 >>> On Wed, 7 Sep 2016 16:34:48 +0300 >>> Daniel Braniss wrote: >>>=20 >>>> Hi All! >>>>=20 >>>> I am playing with an orangepi-one, and I now compiled a kernel = without INVARIANTS & WITNESS >>>> and it panics, when compiled without WITNESS, it boots, but for = example the awg comes up >>>> with a semi random ethernet address, so clearly there is some = timing issues. I have placed the panic in >>>> http://www.cs.huji.ac.il/~danny/orangepi/op1.panic.1 >>>>=20 >>>> and so if someone can point me to where some delay can be added ? >>>>=20 >>>> thanks, >>>> danny >>>>=20 >>>=20 >>> Hello Daniel, >>>=20 >>> I'll admit that I've never tested ALLWINNER kernel without = INVARIANTS >>> or WITNESS recently, I'll try that. >>> I assume that you've patched your DTS for ethernet support, can you >>> try with the unpatched one ? >>=20 >> i searched high and low for such one, can you send me one? >=20 > It's in the tree in sys/gnu/dts/arm/ > Yes it doesn't have the awg node, I know, h3 emac bindings aren't > stable for now. I couldn=E2=80=99t find any orange-one.dts, so I=E2=80=99m using the one = I created, adding the a83t-sid and a83t-ts got both recognized: sysctl -a | grep sid kern.proc_vmmap_skip_resident_count: 0 kern.geom.label.ufsid.enable: 1 net.inet.sctp.min_residual: 1452 dev.aw_sid.0.rootkey: 02004620043548045028028e0400005b dev.aw_sid.0.%parent: simplebus0 dev.aw_sid.0.%pnpinfo: name=3Deeprom@01c14000 = compat=3Dallwinner,sun8i-a83t-sid dev.aw_sid.0.%location:=20 dev.aw_sid.0.%driver: aw_sid dev.aw_sid.0.%desc: Allwinner Secure ID Controller dev.aw_sid.%parent:=20 sysctl -a | grep -i therma dev.aw_thermal.0.gpu: 191C dev.aw_thermal.0.cluster1: 191C dev.aw_thermal.0.cluster0: 191C dev.aw_thermal.0.%parent: simplebus0 dev.aw_thermal.0.%pnpinfo: name=3Drtp@01f04000 = compat=3Dallwinner,sun8i-a83t-ts dev.aw_thermal.0.%location:=20 dev.aw_thermal.0.%driver: aw_thermal dev.aw_thermal.0.%desc: Allwinner Thermal Sensor Controller dev.aw_thermal.%parent: my guess there is something fishy here since 191C is a bit high=E2=80=A6 cheers, danny >=20 >>> It seems that it panic because the mod0 clk doesn't have the correct >>> parent. >>>=20 >>> For the semi random MAC address this is expected. The awg driver >>> generate a random one if it can't use the SID root key as >>> the "source", which we don't support for now on H3 (it shouldn't be=20= >>> hard to add support for the H3). >>>=20 >>> Cheers, >>>=20 >>> --=20 >>> Emmanuel Vadot >=20 >=20 > --=20 > Emmanuel Vadot > = >