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 A1A50C43334 for ; Fri, 1 Jul 2022 14:35:31 +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: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:From:Date:Reply-To: To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=48vljNnNsD41EXcTQtmLP+CxSXXf4nnmzHgYx8/u97w=; b=AOR1Yons4GUHgNZqnlhnRZ2Suu InhFuHJqVVYUVBNCmrIE+22uyeS650M5l57Su9gL5X7mzpReGsgfE4WdOf9LdGyM3/uxYibuYk9dO HNrpfizGnzg9izfrJ+Zcd+GxwM5kSUfVoisXloxuHLD+2g900bECeH5jKlcH3HOS3PH7/odh0Ti3I GqslKCq+Q2b6i5dUJP8hbbwjGasbMRDCkwEr0zq7ApA9bThIQEkKyuBLSbss6GpEsUqbRvNq72tXv n8cALnb6eHqmaqgxknM0mLdWCsiztkInO5vUmDB5CHfNYyUXIQcOCY+Q5SOoXOufy58f+ZjWhNqxc 9shVkClQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7Hj9-005Md3-0V; Fri, 01 Jul 2022 14:34:35 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7Hj4-005Mbo-S6 for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2022 14:34:33 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 493B0CE3403; Fri, 1 Jul 2022 14:34:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0246FC3411E; Fri, 1 Jul 2022 14:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656686065; bh=IiEyKa4x8MDVckwVabFm2ouH3c52tfG1O2lwaRPpGmc=; h=Date:From:Cc:Subject:References:In-Reply-To:From; b=T519mld3syJZByWZZ5BYPRGQEgwoX+AKHpvxC+C/WC1irI6X3vPp1z5QwhVPPNo2t pn12n3wp66tWoRmJifVDOYRVxaG0N5VPb7fM0Z3guHeUmt9AW+u5yjiBjuS+8dtBN0 xSh2IEZwBynFm/J3npnHip0vAlOZKlPymQk7EPXN/0I6ejpLQ6eB6TH/8okxoG7zdy 6xmEc/v+lHlu4kxD0aHAAWUzFCLsxELAO7qGrXJBu0+yr0COe7Zil+TrLmHkfDIT06 oguxnGmWA7Ed/1pUe/JzYWfU44aaCGa6qhY8zPH3SzvBhOljUfubcasBJPBEdR6ljh DYsQ6/qnI4CRw== Date: Fri, 1 Jul 2022 15:34:21 +0100 From: Mark Brown Cc: kernelci-results@groups.io, bot@kernelci.org, gtucker@collabora.com, linux-arm-kernel@lists.infradead.org Subject: Re: ardb/for-kernelci bisection: baseline.login on meson-gxl-s905d-p230 Message-ID: References: <62bf02db.1c69fb81.0b3d.a9c5@mx.google.com> MIME-Version: 1.0 In-Reply-To: <62bf02db.1c69fb81.0b3d.a9c5@mx.google.com> X-Cookie: GIVE UP!!!! X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220701_073431_301765_101197CB X-CRM114-Status: GOOD ( 27.59 ) 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-Type: multipart/mixed; boundary="===============3691786394790136643==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3691786394790136643== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mpmkyINN4Rp8Vxu9" Content-Disposition: inline --mpmkyINN4Rp8Vxu9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 01, 2022 at 07:21:15AM -0700, KernelCI bot wrote: The KernelCI bot found a boot failure in Ard's test branch on at least meson-gxl-s905d-p230 (an arm64 platform) with defconfig+BIG_ENDIAN triggered by ce6caf72d162d ("arm64: head: avoid cache invalidation when entering with the MMU on"). I've left the full report below including links to things like full boot logs, in the failing case the kernel dies with no output (as might be expected for a change in early boot). > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * This automated bisection report was sent to you on the basis * > * that you may be involved with the breaking commit it has * > * found. No manual investigation has been done to verify it, * > * and the root cause of the problem may be somewhere else. * > * * > * If you do send a fix, please include this trailer: * > * Reported-by: "kernelci.org bot" * > * * > * Hope this helps! * > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >=20 > ardb/for-kernelci bisection: baseline.login on meson-gxl-s905d-p230 >=20 > Summary: > Start: 3ed2d2fa189b2 arm64: mm: add support for WXN memory transla= tion attribute > Plain log: https://storage.kernelci.org/ardb/for-kernelci/v5.19-rc3-44= -g3ed2d2fa189b/arm64/defconfig+CONFIG_CPU_BIG_ENDIAN=3Dy/gcc-10/lab-baylibr= e/baseline-meson-gxl-s905d-p230.txt > HTML log: https://storage.kernelci.org/ardb/for-kernelci/v5.19-rc3-44= -g3ed2d2fa189b/arm64/defconfig+CONFIG_CPU_BIG_ENDIAN=3Dy/gcc-10/lab-baylibr= e/baseline-meson-gxl-s905d-p230.html > Result: ce6caf72d162d arm64: head: avoid cache invalidation when en= tering with the MMU on >=20 > Checks: > revert: PASS > verify: PASS >=20 > Parameters: > Tree: ardb > URL: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.= git > Branch: for-kernelci > Target: meson-gxl-s905d-p230 > CPU arch: arm64 > Lab: lab-baylibre > Compiler: gcc-10 > Config: defconfig+CONFIG_CPU_BIG_ENDIAN=3Dy > Test case: baseline.login >=20 > Breaking commit found: >=20 > -------------------------------------------------------------------------= ------ > commit ce6caf72d162db53c94659e935916eb7c6176239 > Author: Ard Biesheuvel > Date: Wed Mar 30 12:15:44 2022 +0200 >=20 > arm64: head: avoid cache invalidation when entering with the MMU on > =20 > If we enter with the MMU on, there is no need for explicit cache > invalidation for stores to memory, as they will be coherent with the > caches. > =20 > Let's take advantage of this, and create the ID map with the MMU still > enabled if that is how we entered, and avoid any cache invalidation > calls in that case. > =20 > Signed-off-by: Ard Biesheuvel >=20 > diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S > index a79c842395eeb..42fc7e980b352 100644 > --- a/arch/arm64/kernel/head.S > +++ b/arch/arm64/kernel/head.S > @@ -88,9 +88,9 @@ > SYM_CODE_START(primary_entry) > bl record_mmu_state > bl preserve_boot_args > + bl create_idmap > bl init_kernel_el // w0=3Dcpu_boot_mode > mov x20, x0 > - bl create_idmap > =20 > /* > * The following calls CPU setup code, see arch/arm64/mm/proc.S for > @@ -130,11 +130,13 @@ SYM_CODE_START_LOCAL(preserve_boot_args) > stp x21, x1, [x0] // x0 .. x3 at kernel entry > stp x2, x3, [x0, #16] > =20 > + cbnz x19, 0f // skip cache invalidation if MMU is on > dmb sy // needed before dc ivac with > // MMU off > =20 > add x1, x0, #0x20 // 4 x 8 bytes > b dcache_inval_poc // tail call > +0: ret > SYM_CODE_END(preserve_boot_args) > =20 > SYM_FUNC_START_LOCAL(clear_page_tables) > @@ -371,12 +373,13 @@ SYM_FUNC_START_LOCAL(create_idmap) > * accesses (MMU disabled), invalidate those tables again to > * remove any speculatively loaded cache lines. > */ > + cbnz x19, 0f // skip cache invalidation if MMU is on > dmb sy > =20 > adrp x0, init_idmap_pg_dir > adrp x1, init_idmap_pg_end > bl dcache_inval_poc > - ret x28 > +0: ret x28 > SYM_FUNC_END(create_idmap) > =20 > SYM_FUNC_START_LOCAL(create_kernel_mapping) > -------------------------------------------------------------------------= ------ >=20 >=20 > Git bisection log: >=20 > -------------------------------------------------------------------------= ------ > git bisect start > # good: [a111daf0c53ae91e71fd2bfe7497862d14132e3e] Linux 5.19-rc3 > git bisect good a111daf0c53ae91e71fd2bfe7497862d14132e3e > # bad: [3ed2d2fa189b2f472547045b3af344e7806f7779] arm64: mm: add support = for WXN memory translation attribute > git bisect bad 3ed2d2fa189b2f472547045b3af344e7806f7779 > # good: [fbf6ad5efe95665c188248b6abee94f4bf296604] arm64: lds: use PROVID= E instead of conditional definitions > git bisect good fbf6ad5efe95665c188248b6abee94f4bf296604 > # bad: [ce6caf72d162db53c94659e935916eb7c6176239] arm64: head: avoid cach= e invalidation when entering with the MMU on > git bisect bad ce6caf72d162db53c94659e935916eb7c6176239 > # good: [af03256f03e5778febc5ed68fdc9bc57187b5cef] Merge remote-tracking = branch 'arm64/for-next/kpti' into HEAD > git bisect good af03256f03e5778febc5ed68fdc9bc57187b5cef > # good: [cfb53f613ffaea171638847cb20f4079d5c4943a] arm64: lds: reduce eff= ective minimum image alignment to 64k > git bisect good cfb53f613ffaea171638847cb20f4079d5c4943a > # good: [37eb93735927e84eef73523556c769c4d65ac634] arm64: head: record th= e MMU state at primary entry > git bisect good 37eb93735927e84eef73523556c769c4d65ac634 > # first bad commit: [ce6caf72d162db53c94659e935916eb7c6176239] arm64: hea= d: avoid cache invalidation when entering with the MMU on > -------------------------------------------------------------------------= ------ >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#28788): https://groups.io/g/kernelci-results/message/= 28788 > Mute This Topic: https://groups.io/mt/92110331/1131744 > Group Owner: kernelci-results+owner@groups.io > Unsubscribe: https://groups.io/g/kernelci-results/unsub [broonie@kernel.o= rg] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- >=20 >=20 --mpmkyINN4Rp8Vxu9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmK/BewACgkQJNaLcl1U h9C27Af/VykAdYMxtuTcpRjCfOXC3muXFoqYDAx9VcdOFfGvJG9afmECFryUgbEp r6JSqQavmsRlQ4AVDNl9f+mwL00f+1hp14mqbHmMmEB4Xjb7JEE4ifzNkkdtFQ37 9XRdIfIII7EbCTyyDYPmKUanzeEPKTNP0U8xDlTKQlBG/TIPlacxBb3Dw6SW+0IM CN5wbtRCtVXglV1YVFNT3KJB+yvugmjWceXxZIBPSNva3i/+v3qG/amkKsGW6343 HWZO8/aItDYMoN1/QR+jZe1UfXXU4vC1y12jqVqkZQBtXq+B2tXamJYS4gH75ziD QU5dwET8L6GUL/QvYqn6kzM5BMEc9w== =3t+J -----END PGP SIGNATURE----- --mpmkyINN4Rp8Vxu9-- --===============3691786394790136643== 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 --===============3691786394790136643==--