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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4243AC48BC3 for ; Mon, 19 Feb 2024 15:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xPah4svZkvRCAGbaBDCvxo1SV/iDk+6zttnNpyeLJ3s=; b=h4DFlBxTNpDjESKJPt8lJZMqOA YEXvLq1y2Sj4mx8Zg2PK34bPoSmFHoqDtp7voHcxfy6bbMUEv5yr6KCmIbr0ZnlWfExCmejbiO03B 23Y4hwQAMsovNHZbQ+4kCD7uaKlXYw74Dbtuo5/S9j+nXntX2JaqxW8LCSZa2r17+j7mDe5JlyoBu jjnAUEum5PoW43qQRbHDQkEoSJvFWA9MvKiObPMfS8gwkWc4pNzzrVR3JG9rwrlOMkGOA8QtWX9XP o32aLrjLOSij2zWehah4UppvaKGcb8zog0FmDvR3veaWbq2pMJrPbsf0f4OyUziYhSPmsKoQ81OBa tf0w+Iuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc59u-0000000Az7j-3sKx; Mon, 19 Feb 2024 15:02:18 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc59s-0000000Az6Z-2mA7 for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 15:02:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0957360D2C; Mon, 19 Feb 2024 15:02:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD934C433F1; Mon, 19 Feb 2024 15:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708354935; bh=qkvjpH6GcUSoKvmAK9+dudgyRxq2VO9xR86tq/v/1SU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FlLLfKxp4qgMC3C+sIlHLlkwXCefLV63VVOU7xikaY+/U2s1DyNILgjPgkCN+9epS 24t2pX3PJxpwd+TqdIaKSwyiw8cIrzttU0/pSnExtwmqvEcHUeruUUVshtOENlFeoJ 8Uinxezxeiu+aXba0uQEA/astLhhW9EMzc7gO6JBvfINHQ94jo8AqAcH7nJygp2Dzr mws6VTHRkOfWzgG3Elyt+HbmA/Vq5gWt9gcd4h2ND8QkeFeklew+akKdJ23K05c8YN 1A5GsMuaPEPK1eBr/0x3GjtN6jQnFGLttEgzPXBTFzftoR/3rxWpDEuyPL/azbMjUI 7NV9lMjXDL48A== Received: from disco-boy.misterjones.org ([217.182.43.188] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rc59k-004bwO-7z; Mon, 19 Feb 2024 15:02:08 +0000 MIME-Version: 1.0 Date: Mon, 19 Feb 2024 15:02:07 +0000 From: Marc Zyngier To: Zenghui Yu Cc: Naresh Kamboju , open list , Linux ARM , lkft-triage@lists.linaro.org, Linux Regressions , Catalin Marinas , Arnd Bergmann , Dan Carpenter , Anders Roxell Subject: Re: next-20240219: arm64: boot failed - gic_of_init In-Reply-To: References: <86edd84wer.wl-maz@kernel.org> <86cyss4rl7.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.15 Message-ID: <20adfff58d44d09d0e968f5c502f28ce@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 217.182.43.188 X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, naresh.kamboju@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lkft-triage@lists.linaro.org, regressions@lists.linux.dev, catalin.marinas@arm.com, arnd@arndb.de, dan.carpenter@linaro.org, anders.roxell@linaro.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_070216_834229_13A60763 X-CRM114-Status: GOOD ( 18.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2024-02-19 14:46, Zenghui Yu wrote: > On 2024/2/19 19:32, Marc Zyngier wrote: >> For what it is worth, I've just tested both defconfig and my own >> configuration with both 4k (kvmtool, QEMU+KVM and on SynQuacer) and >> 16k (kvmtool), without any obvious problem. > > I had a quick test on top of next-20240219 with defconfig. I can > reproduce it with QEMU parameter '-cpu max -accel tcg', but things are > fine with '-cpu max,lpa2=off -accel tcg'. > > Bisection shows that the problem happens when we start putting the > latest arm64 and kvmarm changes together. The following hack fixes the > problem for me (but I **only** write it for kernel built with defconfig > with ARM64_4K_PAGES=y atm). > > I can investigate it further tomorrow (as it's too late now ;-) ). Or > maybe Marc or Catalin can help fix it with a proper approach. > > diff --git a/arch/arm64/kernel/cpufeature.c > b/arch/arm64/kernel/cpufeature.c > index 4f7662008ede..babdc3f4721b 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -2798,6 +2798,7 @@ static const struct arm64_cpu_capabilities > arm64_features[] = { > | .sign = FTR_SIGNED, > | .field_pos = ID_AA64MMFR0_EL1_TGRAN4_SHIFT, > | .min_field_value = ID_AA64MMFR0_EL1_TGRAN4_52_BIT, > |+ .max_field_value = BIT(ID_AA64MMFR0_EL1_TGRAN4_WIDTH - 1) - 1, > | #else > | .sign = FTR_UNSIGNED, > | .field_pos = ID_AA64MMFR0_EL1_TGRAN16_SHIFT, Yup, got to that point too. Working on a slightly more elaborate fix. Thanks, M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel