From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7217DC43381 for ; Mon, 4 Mar 2019 14:26:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E1A3206BA for ; Mon, 4 Mar 2019 14:26:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GhNuOxm2"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nmLyh7UE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E1A3206BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m7fJAUewfZHRn+bB6CDE2zxqs8mnv5NTauhV9CIg1NQ=; b=GhNuOxm2foll3IR5k8+wjpIXB WUeJEepCXjMTJnTO+CvfcyDaSyDZT6aEXAISuYRbSRG3XG9qFGjhKZHATyt5269kVeEbidg2ZsiCK vo5rodcSk57DBLqvoQDlw5F9VAo9BHDVY4zT/L1Vc5tE4nH1mFg7P/r/8YtnFKTiP6IW/j9BvKkpW Rf5IIVE7Ej/i83on6HUIinx8x+pm6qH8bYS/Osb7/HsHcyArR7E3RujD8EI/pPoeWep90C6yyZ5Om tM7odjl4IjMoLq9G+k9jpPzsk8jsv/yhEJ+2Hhks9m2FWMrqCDFsm/ebxVZjfmJji4AtrDD/MoTfp HHXLCWjYA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0oXT-0004KT-0n; Mon, 04 Mar 2019 14:25:55 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0oXP-0004Jz-M4 for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2019 14:25:53 +0000 Received: by mail-wm1-x343.google.com with SMTP id f65so3385351wma.2 for ; Mon, 04 Mar 2019 06:25:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5yIgup8cZVGodOoeZBJZ+NJgyAG5nkNJV2ON5xXxKEc=; b=nmLyh7UEQYNC+7rUs5HGHSSHNhWaxlmyJ1JyWS+hSe5B289F7kNWWkfopW/OE0266f YKzJRRtET4U+uMCKlmrmXXKrFlYtPEhwq3cnsViaBi3tbpTn4dPvoJx9xOaC8dPZYFa3 JFErGjMfmvjdqvbqL39Gt1ABRtR3XbujGCi0QP1cmSdxxLT1B4LX1uTxuC1zSgQEayhy 698Ni2H/N2WAaSJZb5UJmjAUa0MgXyfuz7VEd9VJToL/na0Qj4Ve8HmnUYLqH/YLMNCE b5jlvW10+k+swKO8aTM9s8GbwfhvF0p4qGxpyMAhfrvRLM1XyNt8N1pXAgy0/gosbEKP OE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5yIgup8cZVGodOoeZBJZ+NJgyAG5nkNJV2ON5xXxKEc=; b=HoSQkTF1+OeflxAOv9G+bfuCd1Q+7R8r3f39+KHEsOA7TZSbk+5VDmzbs6Txa9QHg7 ehVAiw0wPGkikxFObJMe3zTdiSDr2uSBKotVOZvyuohcOCjVVJdCAjhJ8NIrxaN2XuoY 6SmwR6TMOBH6wrwHEi2w7ufFw2B/43X7O2KOLXmc3hMrfatgVzxckEb92UAojMhxbM8R V+OFzMGhfu4lxRAWxEgp/VxbrfLmSWRNWTI+giBxMOXo3uLi1SmGAF8nzR5M5RzdKeXO HuNCOdT2sXBFrdCd0GztWkWlXV9tvxGrTy5mpoEQw4/a6tIzKh6Uuu1hgXnCrxgDSUGt 0dYw== X-Gm-Message-State: APjAAAVbvn+Q/7d5IhcMD7TDsLvP+sqaWHnHHVR6oY+a7R5/BEeTSUQF eDsz3poTSXv3zVmwxNLm9nw= X-Google-Smtp-Source: APXvYqyL2b1ZGDbG9B1TSrHhcF+DFj7NjmKcvA98fcp1S7WzJVLmdcz8PqG2obANnK+cTkhXcQqs6Q== X-Received: by 2002:a7b:c0c3:: with SMTP id s3mr10876976wmh.141.1551709549687; Mon, 04 Mar 2019 06:25:49 -0800 (PST) Received: from localhost (pD9E51D2D.dip0.t-ipconnect.de. [217.229.29.45]) by smtp.gmail.com with ESMTPSA id n130sm8945434wma.48.2019.03.04.06.25.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Mar 2019 06:25:48 -0800 (PST) Date: Mon, 4 Mar 2019 15:25:46 +0100 From: Thierry Reding To: Embedded Engineer Subject: Re: Unstable Kernel behavior on an ARM based board Message-ID: <20190304142546.GB24676@ulmo> References: <20190302113651.zerdonykcvv5ex3e@shell.armlinux.org.uk> <20190302115729.zbowssfwf4j7jf22@shell.armlinux.org.uk> <20190302123907.qoe46qs6qmx7qnjs@shell.armlinux.org.uk> <453072a9-52e2-7591-750f-624ca27e0bbf@gmx.net> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_062551_747095_2803E83D X-CRM114-Status: GOOD ( 17.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, Vladimir Murzin , linux-arm-kernel@lists.infradead.org, Jon Hunter Content-Type: multipart/mixed; boundary="===============6044456638626528228==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6044456638626528228== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 04, 2019 at 05:25:28PM +0500, Embedded Engineer wrote: > On Mon, Mar 4, 2019 at 3:26 PM Vladimir Murzin = wrote: > > > > You can try in-kernel memtest: > > > > - CONFIG_MEMTEST=3Dy > > - pass memtest in kernel's command line > > >=20 > Thanks Vladimir, I tried running mtest as suggested by Clemens in > u-boot and memtest in kernel as suggested by you. Both tests didn't > show any errors, however the board sometime hangs at "Starting kernel > ...". Following logs were obtained when it booted but ended in a > crash: >=20 > https://pastebin.com/sZZjUcbh Other than the memory corruption issue this looks like a fairly regular boot. It's not clear whether the crash of your /sbin/init is related to any memory issues. The earlier boot log that you had posted showed that it was failing to mount the root filesystem and dropped you to a maintenance shell, so that could be an indication that something isn't right about the root filesystem. Or it could indicate that something is wrong when loading files from the root filesystem. The earlier log showed EMEM address decode errors, which are odd because the addresses clearly lie in regions that should be system memory. EMEM address decode usually only happens if the memory controller thinks you are trying to access memory outside of system memory. The good news is that I think you're pretty close. The memory corruption is somewhat worrying, but at the same time it's unlikely that you'd get as far as you do if your memory timings are completely off. However, I think we need to gather more information to narrow down what's going wrong. All of the memory related configuration is part of a file called the BCT. I think if you could provide that it would be very useful to have. Also, it looks like you're using the Jetson TK1 device tree to boot, so can I assume you haven't modified it at all? Other bits of information that would be good to know are how you are generating the BCT and your boot images, what exactly you do to flash the board and which release of L4T you use. Perhaps also try to run a recent linux-next just to exclude any issues that may have been part of the 4.8.0-rc7 that you tested. Also adding Jon and linux-tegra for a broader audience. Thanks, Thierry --dc+cDN39EJAMEtIO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlx9NWcACgkQ3SOs138+ s6GofA//doOYFzTD0CyBiYRTvwMCRFPDoVeepK8xLxdE45UjgQ0UnQ0EGHjzb89g UgxE5AFm3mH1IDrvyQ43A0/zhU31U34IKrjXbnk+mgxm6VnssFFrpIldoNKiw5p8 szKgahtpJfcN9YU3c9a9j6J5IT1OMhSqJdow1BaMQ9jBBpH7Hoxs0X/AG45r8ecr pqpR/CpUKH87hw/QLmjGMh5tBwG0NWblcmelr64Qlyf3uNSfKZXrUQoKA7U4NOFU mtQKO/k3G9qrlkAk8NMVy+BRLN0OccRGUzLqLMOcpJ4gx7EZbDDC9rpbUh7GTD/U hcqDo2UyBlfCFAsrCdpQXscJ1KJv60lAh3GO5kJXLty80fLuH8eK7kp8n81+Pg2s Nof/y1x6BcWF3Y35k3FxfF1ILLpRbGjiyZnP2PK+ahIMSBNCK2356L/ZcSHzEEa7 c8FUPNJSYonqcz4jocZuexeKTp+RNY+yX1ev6EyQIsLNFH5hJzdQDL8gh+s1euSI VzUPjN0MWNb6kZ43EdMCJWCzk1Dp6/J+opkiDZtP8DkNDJHITtxrxjrjvmyEc7RN vWjXzd+kDSuNFdUoRcfKp8scVI0Q6FhkI55RXQZaxHhhkdfMlsNPYazb6iBZ2NUU oeuP8Lmh56pL8fm8RvKwNOCTLyGDId9OERIw5OnsbdoCO5Uj8iQ= =rkMS -----END PGP SIGNATURE----- --dc+cDN39EJAMEtIO-- --===============6044456638626528228== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6044456638626528228==--