Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp562429imw; Thu, 14 Jul 2022 06:45:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ulsII14z6Qc+ChEaSId8l6KtUlc1axem81f+WnZ0NA4V/4c9n2r5bT+kP2ZmtdUdKXCOfo X-Received: by 2002:a17:902:ef48:b0:16a:1d4b:22ca with SMTP id e8-20020a170902ef4800b0016a1d4b22camr8650508plx.6.1657806353534; Thu, 14 Jul 2022 06:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657806353; cv=none; d=google.com; s=arc-20160816; b=0MkOOhLB5+j4wPVJLdqCPPebfyVWPSsGP950BouLPwcd9oQ16GvrWmp72eZ6C0bT5N SkdCRqFBRIq2VCymoGaMQu0gIzX6o/0vjQZZayozxLKIocxMs0UbD/HAfomnsrAlA2la X9gK3QnBf8QN8/yODidsTgfdLjy8GnFRJdl0WcZrqPhnhe3iaZB1oqOQ1D9AMCevHvDu bGHDwZ2iH1qi9Dz9DGfQaEhL103jPvpItZRw/40O39yx5xeKrbP4EgxxIwpOiBZ01ftU ozLB/iXXCTG3pW2x+1BIx2tgg6pkBFAvppOeAbbEEZg0A/1A07czrftaXOIt6DC4/cFM nl0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=kXedWZeO4LCsFpkg0FRbwGA1Qk2F8zfofRQycrRtu9k=; b=ZlPLQU3EeKr2xIRYSqVVh1QnZyYqG/p0sqhhDLdO8puRfQi9B7QDIJizOSrjAiZWRA 1RflRSVF+bd2V3L8zKS8EcemVL7x9xw5G91twAL2xBXLkshO9IDRDZwGRBvkoZ8b374x 1Sw0JXOqOfBRwkjc9JAqZGA1bQAIN6IZ87meSV23rMY3GawU6iMDtJt50ERzZb3+b7Az 7fvE5lhbLfI7nEv7KNJHbRZgOiiFmKAEho9iVnOV/J0im8e0d//4PQycFwPCdzc/9LDE lOmCdF6l1wZIqmViX7kbXIozXLQs0ZdJ6A8ScdX3Di/Vo79fAMQoMEnPXkKIxIZcXt0O JGwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 188-20020a6304c5000000b00412a9c163b3si1809824pge.51.2022.07.14.06.45.40; Thu, 14 Jul 2022 06:45:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239489AbiGNNGi (ORCPT + 99 others); Thu, 14 Jul 2022 09:06:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238299AbiGNNGg (ORCPT ); Thu, 14 Jul 2022 09:06:36 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B196951430; Thu, 14 Jul 2022 06:06:35 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E6C1315A1; Thu, 14 Jul 2022 06:06:35 -0700 (PDT) Received: from FVFF77S0Q05N.cambridge.arm.com (FVFF77S0Q05N.cambridge.arm.com [10.1.26.139]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC14E3F73D; Thu, 14 Jul 2022 06:06:33 -0700 (PDT) Date: Thu, 14 Jul 2022 14:06:28 +0100 From: Mark Rutland To: Mark Brown Cc: Naresh Kamboju , open list , Linux-Next Mailing List , Linux ARM , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Catalin Marinas , Will Deacon , Arnd Bergmann , Anders Roxell , Aishwarya TCV Subject: Re: FVP: kernel BUG at arch/arm64/kernel/traps.c:497 - Internal error: Oops - BUG: 0 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2022 at 01:57:50PM +0100, Mark Rutland wrote: > On Thu, Jul 14, 2022 at 12:42:08PM +0100, Mark Brown wrote: > > On Thu, Jul 14, 2022 at 12:26:05PM +0100, Mark Rutland wrote: > > > > > I note that your log has: > > > > > | Hit any key to stop autoboot: 1 0 > > > | smh_open: ERROR fd -1 for file 'boot.img' > > > | smh_open: ERROR fd -1 for file 'Image' > > > | smh_open: ERROR fd -1 for file 'devtree.dtb' > > > | smh_open: ERROR fd -1 for file 'ramdisk.img' > > > > ... > > > > > | Hit any key to stop autoboot: 0 > > > | smh_open: ERROR fd -1 for file 'boot.img' > > > | loaded file Image from 80080000 to 82F299FF, 02EA9A00 bytes > > > | smh_open: ERROR fd -1 for file 'devtree.dtb' > > > | smh_open: ERROR fd -1 for file 'ramdisk.img' > > > | fdt - flattened device tree utility commands > > > > > ... and I wonder if that has something to do with it, given it appears that > > > your Image is corrupted somehow. > > > > Naresh's command line is putting Image directly into RAM with > > > > --data cluster0.cpu0=/tuxrun-r4_1075p-lava-1/Image@0x80080000 > > Likewise in mine: > > --data cluster0.cpu0=/mnt/data/models/fvp/naresh/Image@0x80080000 > > ... as I'm using the same command line, just with paths altered. ... and I've just reproduced the issue by running the script from a different directory, since apprarently the semihosting interface just grabs the file from the current directory. I'm pretty sure this means that *something* is clobbering the Image early on during boot, and the semihisting loading happens to refresh it. Thanks, Mark.