From owner-freebsd-arm@freebsd.org Tue Oct 15 21:20:28 2019 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 301A9154C39 for ; Tue, 15 Oct 2019 21:20:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t7cq18Ypz3Mxm for ; Tue, 15 Oct 2019 21:20:26 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 313e90ff; Tue, 15 Oct 2019 23:20:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=quaZtero8T/okAsSJGIkm1nLMcE=; b=CFTNOSeIs2MsGvOwWxKuiLE4iqY1 WCL1PxxqCwhXcI2yOJTbGzJs2gCd6JHXiTn90FN7h9xZQleE0C+11xwPR+PQWLnw rfOTW/lUK3hu1B3RW0k1mgSV0vpgQ7hUYpX5ZaYsQ8t8zjfsZr80dxtWy3KYpelB CwQTRcJij+CU7MI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=iITTirkZJEnM31I11HzJSzYANQQ3mYb2H+FlzGWsbvOlyl04xDpFWh0N YJCekeSLP0d7+ZkOfN4LwpG2VwisIWFkto0r7Tn+41IFgGG0tzw3V//k0j7q9UDj cfnWvXUIotmNaAGE5YiNs7tE/MaltteE3IH8fS3eyk2vcNnqkw8= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id c4047deb TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 23:20:25 +0200 (CEST) Date: Tue, 15 Oct 2019 23:20:26 +0200 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Message-Id: <20191015232026.4b25b064c358eb6ae1e4d711@bidouilliste.com> In-Reply-To: <4A09598C-3097-4F52-A21F-E82F5D84A72C@gmail.com> References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com> <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> <4A09598C-3097-4F52-A21F-E82F5D84A72C@gmail.com> 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: 46t7cq18Ypz3Mxm X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=CFTNOSeI; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-0.12 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.72)[-0.720,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32:c]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.88)[-0.884,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.38)[ip: (-0.66), ipnet: 212.83.160.0/19(2.44), asn: 12876(0.11), country: FR(-0.00)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2019 21:20:28 -0000 On Tue, 15 Oct 2019 23:02:54 +0200 S=F8ren Schmidt wrote: >=20 >=20 > >>=20 > >> Success, I now have all 4 cores running, took a little experimenting t= hough, release the power switch/clamp is non-std too. > >=20 > > Cool. > >=20 > >> Now to the last part, the gmac 1G ether controller :) > >=20 > > What's missing ? is it dwc or awg ? >=20 > As far as I can tell it is awg type, but possibly with its own deficienci= es :) I guess it's awg since it's sun8i. The dts seems to say that it needs the ccu to be a syscon interface which will be not hard to do but seems very wrong. > >> PS: I have had to add devices to the .dtsi and dts files for the r40/v= 40 for this to work at all, std-linux doesn?t support this setup either. > >=20 > > What was missing ? >=20 > It misses the dma controller and iosc clock, and possibly the gmac clocks= in sun8i-r40.dtsi, ahci, echi2, and the gmac stuff in sun8i-v40-m2-berry.d= ts For what I can see the gmac clocks are there.=20 Is the iosc the 16MHz clock that I see in the clock diagram ? If yes I wonder why it's not present in the dts ... > >=20 > >> PPS: when this is all done, any chance for it to get into the official= sources ? (Yeah I retired my src commit bit long ago :))=20 > >=20 > > Sure open a review on phabricator and add me as a reviewer. >=20 > OK, will do, but I?ll give the gmac a try first and get more testing done= , its compiling world now on a SATA SSD, that will take some time :) >=20 > -S=F8ren --=20 Emmanuel Vadot