Date: Fri, 7 Nov 2014 20:58:07 +0100 From: Gilles Chanteperdrix Message-ID: <20141107195807.GD17476@sisyphus.hd.free.fr> References: <20141107095222.GD6724@sisyphus.hd.free.fr> <586279251.109308096.1415364479248.JavaMail.root@zimbra90-e16.priv.proxad.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <586279251.109308096.1415364479248.JavaMail.root@zimbra90-e16.priv.proxad.net> Subject: Re: [Xenomai] IMX kernel 3.0.35_4.1.0 + adeos-ipipe-3.0.43-mx6q-1.18-14 -> very slow boot List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tbultel@free.fr Cc: xenomai@xenomai.org On Fri, Nov 07, 2014 at 01:47:59PM +0100, tbultel@free.fr wrote: > > > ----- Mail original ----- > > De: "Gilles Chanteperdrix" > > À: tbultel@free.fr > > Cc: xenomai@xenomai.org, "Lennart Sorensen" > > Envoyé: Vendredi 7 Novembre 2014 10:52:22 > > Objet: Re: [Xenomai] IMX kernel 3.0.35_4.1.0 + adeos-ipipe-3.0.43-mx6q-1.18-14 -> very slow boot > > > > On Fri, Nov 07, 2014 at 10:48:43AM +0100, tbultel@free.fr wrote: > > > > > > > > > ----- Mail original ----- > > > > De: "Gilles Chanteperdrix" > > > > À: "Lennart Sorensen" > > > > Cc: tbultel@free.fr, xenomai@xenomai.org > > > > Envoyé: Jeudi 6 Novembre 2014 17:08:21 > > > > Objet: Re: [Xenomai] IMX kernel 3.0.35_4.1.0 + > > > > adeos-ipipe-3.0.43-mx6q-1.18-14 -> very slow boot > > > > > > > > On Thu, Nov 06, 2014 at 11:04:57AM -0500, Lennart Sorensen wrote: > > > > > On Thu, Nov 06, 2014 at 03:41:47PM +0100, tbultel@free.fr > > > > > wrote: > > > > > > Gilles, we do not have CONFIG_ARM_ERRATA_754327 enabled > > > > > > It is -not- enabled in the evaluation kernel that is provided > > > > > > by > > > > > > the > > > > > > manufacturer. > > > > > > That errata is said to be for CPU revs < r2p0 > > > > > > > > > > > > I am a little bit puzzled about the naming conventions for > > > > > > the > > > > > > CPU revision, > > > > > > uboot says rev1.2, the kernel says > > > > > > > > > > > > Processor : ARMv7 Processor rev 10 (v7l) > > > > > > ... > > > > > > > > > > > > CPU implementer : 0x41 > > > > > > CPU architecture: 7 > > > > > > CPU variant : 0x2 > > > > > > CPU part : 0xc09 > > > > > > CPU revision : 10 > > > > > > > > > > > > how can I do the matching ? > > > > > > > > > > > > Meanwhile, we noticed that compared to the evaluation kernel, > > > > > > we > > > > > > were missing > > > > > > CONFIG_ARM_ERRATA_754322 and CONFIG_PL310_ERRATA_769419 > > > > > > > > > > > > Adding them helps a lot, but the freeze still happens on one > > > > > > machine > > > > > > > > > > > > We are currently trying with 754322 + 769419 + 754327 + 5 > > > > > > nops in > > > > > > fec ... > > > > > > but not sure if we need 754327. > > > > > > > > > > > > Regards > > > > > > Thierry > > > > > > > > > > > > PS: Regarding the thermal issue, we have changed our > > > > > > supplier, we > > > > > > now have > > > > > > a dissipator that is big enough (it is the AMOS820 from Via > > > > > > Embedded) > > > > > > > > > > I am not sure how to read the A9 revision. I have this on a > > > > > system: > > > > > > > > I have found the method I gave in ARM documentation. I am pretty > > > > sure this is how it works. > > > > > > > > -- > > > > Gilles. > > > > > > > > > > > > > Gille, > > > we agree that as we have a r2p10, the 754327 does not apply. > > > Thus the only erratas I was missing are CONFIG_ARM_ERRATA_754322 > > > and CONFIG_PL310_ERRATA_769419, > > > that are in ./arch/arm/configs/imx6_defconfig > > > They are now part of my config. > > > Unfortunately, the network stress test still makes the freeze > > > happen with CONFIG_IPIPE enabled > > > > > > How come can that freeze only happen on -some- machines (they all > > > have the same CPU rev), > > > and that the time they stay up is dependent on them ? > > > If the freeze was reproducible without CONFIG_IPIPE, we could > > > easily say that it is simply > > > an hardware bug but unfortunately with is not the case. > > > > > > A new info: the machine that freezes the most also freezes with > > > ethernet fec unplugged. > > > All these machines work fine with CONFIG_IPIPE disabled. > > > > Well, you told me that you had freezes because of the mb() in the > > FEC code, all that I can tell you is that the bug I know related to > > mb() would probably be fixed by adding nops before the mb(). It is > > not clear to me, have you tried that? > > > > -- > > The freeze happens faster with he mb(), yes. > But it is still there without it, or when adding the 5 nops before. > And if the ethernet is unplugged (which normally leads to the code > we mention not to be called), we have the bug, too. > I have just made a test with a ethernet on USB adapter and it freezes the same way. When the freeze happens, is the timer still ticking? Have you checked that all the tricks in the idle function are disabled, in particular the switch to timer broadcast mode? Have you tried enabling I-pipe and xenomai debugs? -- Gilles.