Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp87687rdb; Thu, 5 Oct 2023 18:11:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFD6aw6V+aDKG72ise+KmHfNyF1PpQ/iLpgt+j5yDxZkHj30aj7r05WjW+t7IUWJdshjfDy X-Received: by 2002:a17:90b:4acf:b0:268:b7a2:62e8 with SMTP id mh15-20020a17090b4acf00b00268b7a262e8mr6771663pjb.7.1696554701878; Thu, 05 Oct 2023 18:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696554701; cv=none; d=google.com; s=arc-20160816; b=VICW3SIwek9BHdiiiJlKwWDgTtyNx26RNWNzEOKt/GYgftcEw5VkSD5wPWjpuze+YV /nFfeOn71lrJSZNhawFAq2znjU3QzyPquw/WZQFhrDbGvtJtTIT3c/BosFs7SlFrQPiN Tv7QTbM0cJqvTWnOrqwz9c/ElkqPDIzWURoQczbo4qUaL17OjwKOG1KOy7CzPVmwGuk4 4wbjQyoI7XBRSHpa96yKOo/JdF3AIPphzL0ZJrUxXLDfK7qdvacJ13yotZARI7uzH8bk r3NhYUw4oM08EvaP1pqIoaaVCr1Kf+aqKR8UrQXoGCYLBqEK7OXElKK1YNJDmmJkP5K1 FMiQ== 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:dkim-signature; bh=SnMIZQ1itOmcDHvskxmE8+4KsR3yjh22yfXupSgvUf8=; fh=uHlvcHr2yZGt8o5QftkZKm/jO5/9YG0sAIiXbOKPhqg=; b=N0QmmYwgsTb+CG/PaNJW1p9ABB0mXbwNjB2BeFviyV80Q1KCrQtZ+74JO56W9uXw0i ri7Rxmm9xvh9Ry0cqkmBH+uHz9u/0FDjwQZfKNS/SthXtz4uKkAtKr/4w8VJg3RdX+tJ gx/ZkV75Iwc/4U5pPLxsy9uMDdPoXaOovC4a2Y8gxjguYU4194/0BHNqgF7f6MUDuAqY eLRWjVS3GaMCR4U0xYWiv8FcENoUd4bsh4Q+mJpwiUQ+jLAJdvntK3cTUHa8wZaMfEmW Bfcbe/hyPlrWZtBye+6YreG8jGkyjurZ1z6JeGa+j3OhhKn/xCrLYKsa3QAcuNlMAYPV wKiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PWYgoghK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bx24-20020a17090af49800b002774c17dd73si2703247pjb.11.2023.10.05.18.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 18:11:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PWYgoghK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F3393803F12C; Thu, 5 Oct 2023 18:11:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229654AbjJFBLV (ORCPT + 99 others); Thu, 5 Oct 2023 21:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjJFBLR (ORCPT ); Thu, 5 Oct 2023 21:11:17 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AC68D8 for ; Thu, 5 Oct 2023 18:11:16 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1c61bde0b4bso13278805ad.3 for ; Thu, 05 Oct 2023 18:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696554675; x=1697159475; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SnMIZQ1itOmcDHvskxmE8+4KsR3yjh22yfXupSgvUf8=; b=PWYgoghKZcko9k2AXE2SICJpVvLd/Z84zat8JvQdw+i33On3SGAeo5k3euV0jIz+x6 yfdqUnKg9U7Gd7GpSB6on7wOdJSv/52eW/6L7pOsC/wrtNoNToQzLc+EhIzS6HLekCcK xrx+L3c+LB9uL+tep9oHvvoY4OmaKYfJr+cekgwWTUiNqBDdAAsA1OGQpdYKevaPaAvq vT6cyVOXKN2NE9d7z2GWDNJlSbUTFZc5gZToGsWiRoMqAXgx7tGpbRezehRVNFWBYSgb Ey3mYSyBsvsvOhfGdQMWTA8+76Wf/ezGcpvvLzg2T95ctce4nrKJ2S1l2747pvh6RZtO 8nBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696554675; x=1697159475; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SnMIZQ1itOmcDHvskxmE8+4KsR3yjh22yfXupSgvUf8=; b=GNIxGeShrcQDlsNN0nc9BBZwzqFCqJ47iXsA2CFuxLLOUYy7b1QajVKuM6OX5IUJAq guquw42pW79FjiJTWa8g9qA1WZ/A2zFzy6JmY3a1GIzhtI2LBFfCgbgU3Kyx/IgaGb20 sYEHrYtUcdx0xKmBwRgT5VBFcSbnE5ZaBD4s/XEc+Dh1tnDDz79HWng8ZRxlfpCTsO11 PDshAyROt9k55aTKD8O/6gfmFHbmHmwiT6lSn0JghV5Ify9lLI8JVoGnac3qsUaFff8Y hzGmaAv6gcXdB3L3DhjUw2heGRJT7bDjRl3qCW+4fZK+CH1E5RFeRhY/mNlFAHTAZDF4 HvoQ== X-Gm-Message-State: AOJu0YxqhLSywqQzSRwfD4ewtKaMRK9XBIJrB8RzuICjFrYNcK3rQOLL 1cUD+62XjSYeX3eyeBnCXytPpBggfDI= X-Received: by 2002:a17:903:22ce:b0:1c7:733b:27c7 with SMTP id y14-20020a17090322ce00b001c7733b27c7mr8569944plg.56.1696554675358; Thu, 05 Oct 2023 18:11:15 -0700 (PDT) Received: from debian.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id s20-20020a170902989400b001c5b8087fe5sm2421494plp.94.2023.10.05.18.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 18:11:14 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id AF3D48209CB9; Fri, 6 Oct 2023 08:11:12 +0700 (WIB) Date: Fri, 6 Oct 2023 08:11:12 +0700 From: Bagas Sanjaya To: Erhard Furtner , Linux PowerPC , Linux Kernel Mailing List , Linux Regressions Cc: Matthew Wilcox (Oracle) , Mike Rapoport (IBM) , Andrew Morton Subject: Re: [Bisected] PowerMac G5 fails booting kernel 6.6-rc3 (BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe) Message-ID: References: <20230929132750.3cd98452@yea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Xlus9BP6q0VwNtKi" Content-Disposition: inline In-Reply-To: <20230929132750.3cd98452@yea> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 05 Oct 2023 18:11:39 -0700 (PDT) --Xlus9BP6q0VwNtKi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2023 at 01:27:50PM +0200, Erhard Furtner wrote: > Greetings! >=20 > Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails t= o boot with following dmesg shown on the OpenFirmware console (transcribed = screenshot): >=20 > [...] > SLUB: HWalign=3D128, Order=3D0-3, MinObjects=3D0, CPUs=3D2, Nodes=3D1 > rcu: Hierarchical RCU implementation. > Tracing variant of Tasks RCU enabled. > rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies. > NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16 > mpic: Setting up MPIC " MPIC 1 " version 1.2 at f8040000, max 2 CPUs > mpic: ISU size: 124, shift: 7, mask: 7f > mpic: Initializing for 124 sources > mpic: Setting up HT PICs workarounds for U3/U4 > BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe > Faulting instruction address: 0xc00000000005dc40 > Oops: Kernel access of bad area, sig: 11 [#1] > BE PAGE_SIZE=3D4K MMU=3DHash SMP NR_CPUS=3D2 PowerMac > Modules linked in: > CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMac= GS #1 > Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac > NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 > REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc= 3-PMacGS) > MSR: 9000000000001032 CR: 44004242 XER: 00000000 > IRQMASK: 3 > GPR00: 0000000000000000 c0000000022bf7b0 c0000000010c0b00 00000000000001ac > GPR04: 0000000003c80000 0000000000000300 c0000000f20001ae 0000000000000300 > GPR08: 0000000000000006 feffbb62ffec65ff 0000000000000001 0000000000000000 > GPR12: 9000000000001032 c000000002362000 c000000000f76b80 000000000349ecd8 > GPR16: 0000000002367ba8 0000000002367f08 0000000000000006 0000000000000000 > GPR20: 00000000000001ac c000000000f6f920 c0000000022cd985 000000000000000c > GPR24: 0000000000000300 00000003b0a3691d c0003e008030000e 0000000000000000 > GPR28: c00000000000000c c0000000f20001ee feffbb62ffec65fe 00000000000001ac > NIP [c00000000005dc40] hash_page_do_lazy_icache+0x50/0x100 > LR [c000000000066660] __hash_page_4K+0x420/0x590 > Call Trace: > [c0000000022bf7e0] [ffffffffffffffff] 0xffffffffffffffff > [c0000000022bf8c0] [c00000000005e164] hash_page_mm+0x364/0x6f0 > [c0000000022bf990] [c00000000005e684] do_hash_fault+0x114/0x2b0 > [c0000000022bf9c0] [c0000000000078e8] data_access_common_virt+0x198/0x1f0 > --- interrupt: 300 at mpic_init+0x4bc/0x10c4 > NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 > REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc= 3-PMacGS) > MSR: 9000000000001032 CR: 24004248 XER: 00000000 > DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 > GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 > GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 > GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 > GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 > GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 > GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 > GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90 > NIP [c00000000005dc40] mpic_init+0x4bc/0x10c4 > LR [c000000000066660] mpic_init+0x464/0x10c4 > ~~~ interrupt: 300 > [c0000000022bfd90] [c000000002022ae4] pmac_setup_one_mpic+0x258/0x2dc > [c0000000022bf2e0] [c000000002022df4] pmac_pic_init+0x28c/0x3d8 > [c0000000022bfef0] [c00000000200b750] init_IRQ+0x90/0x140 > [c0000000022bff30] [c0000000020053c0] start_kernel+0x57c/0x78c > [c0000000022bffe0] [c00000000000cb48] start_here_common+0x1c/0x20 > Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc9= 0000 7fde2214 e93e0000 712a0001 40820064 71232000 40820048 e93e0= 000 > ---[ end trace 0000000000000000 ]--- >=20 > Kernel panic - not syncing: Fatal exception > Rebooting in 40 seconds.. >=20 >=20 > I bisected the issue and got 9fee28baa601f4dbf869b1373183b312d2d5ef3d as = 1st bad commit: >=20 > # git bisect good > 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the first bad commit > commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d > Author: Matthew Wilcox (Oracle) > Date: Wed Aug 2 16:13:49 2023 +0100 >=20 > powerpc: implement the new page table range API > =20 > Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). C= hange > the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to per-f= olio. > =20 > [willy@infradead.org: re-export flush_dcache_icache_folio()] > Link: https://lkml.kernel.org/r/ZMx1daYwvD9EM7Cv@casper.infradead.o= rg > Link: https://lkml.kernel.org/r/20230802151406.3735276-22-willy@infra= dead.org > Signed-off-by: Matthew Wilcox (Oracle) > Acked-by: Mike Rapoport (IBM) > Cc: Michael Ellerman > Cc: Nicholas Piggin > Cc: Christophe Leroy > Signed-off-by: Andrew Morton >=20 > arch/powerpc/include/asm/book3s/32/pgtable.h | 5 --- > arch/powerpc/include/asm/book3s/64/pgtable.h | 6 +--- > arch/powerpc/include/asm/book3s/pgtable.h | 11 ++---- > arch/powerpc/include/asm/cacheflush.h | 14 +++++--- > arch/powerpc/include/asm/kvm_ppc.h | 10 +++--- > arch/powerpc/include/asm/nohash/pgtable.h | 16 +++------ > arch/powerpc/include/asm/pgtable.h | 12 +++++++ > arch/powerpc/mm/book3s64/hash_utils.c | 11 +++--- > arch/powerpc/mm/cacheflush.c | 41 ++++++++------------- > arch/powerpc/mm/nohash/e500_hugetlbpage.c | 3 +- > arch/powerpc/mm/pgtable.c | 53 ++++++++++++++++------= ------ > 11 files changed, 89 insertions(+), 93 deletions(-) >=20 >=20 > And indeed when I revert commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d = I get a booting kernel again. I reverted the commit on top of 864609c6a0b5f= 0464f6ec7869cb2a45a529c35d7 (HEAD) as I get build issues when I revert it o= n top of 6.6-rc3. >=20 Matthew Wilcox, did you miss this regression report? You should look into it since it is (apparently) cause by a commit of yours. Thanks. --=20 An old man doll... just what I always wanted! - Clara --Xlus9BP6q0VwNtKi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZR9esAAKCRD2uYlJVVFO o+TGAQCdrCrLD0HMpTA2w8CpBJAhudhKSVy2zSJ3jHgytqqHMgD+MVl2fKY2FZB6 6pLZlCRFuswIcZ6OhAerNePRnnzSyQ4= =/NDm -----END PGP SIGNATURE----- --Xlus9BP6q0VwNtKi--