Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 22:46:18 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        =?ISO-8859-1?Q?S=F8ren?= Schmidt <soren.schmidt@gmail.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed?
Message-ID:  <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com>
In-Reply-To: <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com>
References:  <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <C3E6AB41-30DA-4BB7-A6E8-533D536413E2@gmail.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Oct 2019 22:26:35 +0200
S=F8ren Schmidt <soren.schmidt@gmail.com> wrote:

>=20
>=20
> >>=20
> >>>=20
> >>> R40 seems to use different registers for cpu bringup, so you will need
> >>> to define a new platform for it in aw_machdep.c and defines some new
> >>> function for ap bringup in aw_mp.c
> >>> The User Manual section 3.2 of the R40 have all the needed info.
> >>>=20
> >>=20
> >> Yeps, already did that, and I can reset the cores etc, that seems to w=
ork (register bits flips), but there are no mention of regs to put the star=
ting address into.
> >>=20
> >> Chap 3.2 doesn?t mention anything in that regard (at least in the docs=
 I?ve found online) its moved to chap 4.2 in the latest R40/V40/T3 docs I?v=
e found bu still no mention of starting address.
> >>=20
> >> I looks somewhat like the A20 ie it has control for 2 cpu?s the last t=
wo are missing from the register ref, which suggests to me that the docs mi=
ght be inaccurate at best.
> >>=20
> >> I looked into ?Tina-linux? that they made for it, but I havn?t found o=
ut how they start it there either..
> >>=20
> >> I might also just have stared me blind at it :)
> >=20
> > Found that the start adresse is somewhere else:
> >=20
> > CPU software entry register offset 00bc in sysctl instead of cpuctl?
> >=20
> > I?ll try that when I get home later today,,,
>=20
> Success, I now have all 4 cores running, took a little experimenting thou=
gh, release the power switch/clamp is non-std too.

 Cool.

> Now to the last part, the gmac 1G ether controller :)

 What's missing ? is it dwc or awg ?

> PS: I have had to add devices to the .dtsi and dts files for the r40/v40 =
for this to work at all, std-linux doesn?t support this setup either.

 What was missing ?

> PPS: when this is all done, any chance for it to get into the official so=
urces ? (Yeah I retired my src commit bit long ago :))=20

 Sure open a review on phabricator and add me as a reviewer.

> -S=F8ren
>=20
>=20


--=20
Emmanuel Vadot <manu@bidouilliste.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191015224618.3448bd3496ec15df60b64f58>