From nobody Fri Sep 09 16:00:33 2022 X-Original-To: freebsd-ppc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MPLLX5Kd6z4bk6d for ; Fri, 9 Sep 2022 16:00:36 +0000 (UTC) (envelope-from jmmv@outlook.com) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02olkn2013.outbound.protection.outlook.com [40.92.44.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MPLLW3p3Vz3w16; Fri, 9 Sep 2022 16:00:35 +0000 (UTC) (envelope-from jmmv@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DXTSYvXKBAIpk9Ec2He5ALC+3WvPezMO4q3o+LomPOUbdUf2kraDQjELo2v23sAiQTmPMYcENbAt9xPU7CkLj49mx0QBLQWXaUa1GdilEPc2n65RFm+1p8HUNp9tXRBZZ28CpBGHMYmkTZTPDPrGEcOHdOtvFSKvYWVy48wFaZRrfvzUXHcW6TTy9SYL2cIpVzBptp9pU1SFLi/QD92qrtfzIx00A+rRa1I65i29Oyi8TGNVNq/UuJq4JgEevqqMWisvUs8Pt/2qxqEYtFp3kpfhsVW1kL1PPwI6WNm1DB+66zFYm9KjqfLyEiadI5AeTP/o7CPOfBkQS2xMyK2atw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ohQki+yd6NYZa3VamwPl5CfkGN1dy8Ssi/xrbLvU7SU=; b=HDcUcSRUH3/touaM4J3HNotnFQ5hfpe6GLHBYiJjVrqCdctbIe0RJ9eS9mKcJk/eRCLURCLkI66DR74Vs4UnRVjQrTNJnQT1uSBno2YdkDZj00qWf0IpnTHgXCGJBO0ErWxArJ49p6kCefiLlB6maPUBz4XqFLsca0fVHpnewSiallt9CLPDzuVx+X+MTQx2pN3W4OCgoVReOJf039bq9IjgLDMkKN9NU0Nu+Su7uDowPyEN7BFFDfcSg7LL3YuCK2u+4rCfDAbBP/orlCAyudIOB5hYwXaMZKZlPQlO3iu58o0aKOxreFbyGin1DX7Mqh3IOH4lQhOtflsm2aCFFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ohQki+yd6NYZa3VamwPl5CfkGN1dy8Ssi/xrbLvU7SU=; b=eZuXqcoPTVftBxrS06Q1zvHXZHNL+9felL5FDfONV+NRpXmuOk9BedHJalsD1E4aF33LoIZEDJakWuIsdCYGDn/1RIubudzzUpMv+xh+PAHibwHrP6OYgd0O887plSU7ND/X0EOeBbydqJKbD6PZccH8b+wyg3whi2q3gbo9pWSRu8kVqXWhaVxGuyMO/qZovj4fqZf5NXqHSAiBTf7PgbppVysGi/zAcj05q3V3tSpo+iiVOksiokgOCTinitL4oovJvX73VpdVno6+v9rxWfIAXK9anYV3NhVRtQBU7nK6jpnZg5DTRjWHQGlvuKuikAkDYuy3ZFopo6YVXq+iUQ== Received: from PH0PR20MB3704.namprd20.prod.outlook.com (2603:10b6:510:20::22) by BN0PR20MB3877.namprd20.prod.outlook.com (2603:10b6:408:12e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.20; Fri, 9 Sep 2022 16:00:33 +0000 Received: from PH0PR20MB3704.namprd20.prod.outlook.com ([fe80::10fd:af3b:4ba6:230a]) by PH0PR20MB3704.namprd20.prod.outlook.com ([fe80::10fd:af3b:4ba6:230a%6]) with mapi id 15.20.5566.021; Fri, 9 Sep 2022 16:00:33 +0000 From: Julio Merino To: "freebsd-ppc@freebsd.org" , "jhibbits@freebsd.org" Subject: RE: PowerMac G5 crashes with "instruction storage interrupt" on recent 13 Thread-Topic: PowerMac G5 crashes with "instruction storage interrupt" on recent 13 Thread-Index: AQHYpOsmmne4KVhe90KjAGOwAMTWSq3Xf/GI Date: Fri, 9 Sep 2022 16:00:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [PokvB/WEu+f8BU8+0aPGMgj8QgdZ4gj2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 60930d21-fbdd-4a19-df90-08da927c6d4d x-ms-traffictypediagnostic: BN0PR20MB3877:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kZqmv8eEoatTUssDcmGcUPLFaS9qjAT/fg33F3omCZOZSS06mRMKmYf/2I91kvFGhNWFy2KRQxoFOipBz59gh6bRSiP2I9BSy6yW1/he0wZcGE+FR3EkbYxlPfxKLF40Fy7TPHPuY8b78Rzt/bKVmAA95toBTgv64qffKNPygDxaZbDILM5I61CkCsDMa5mJ0r3fKDczdHFhIYn345xYEQHH9FhAUQxLcAAiPa+9QChj2yYdYiSHPggfZ2nnEI1q2choKhd3VG5I75aX5mjKVtVPfe+wGdd+RVmBSQO+cNfME+yI9byAeflr4/F6+FQ4svSh9AhRqnDJXmpK0QSIezEV6YUc4oH/KJ/rMycewuY6JGxFS1ei5ymrjbfIlBB9TrH/gfltaYil0oO9zPaDLkSVR50Cvb6ObTCOXUhk8oX6M9ZP6Mg5YDM0pSXhBIZW3dBv1RkcjVsRsI8Z3eTASSn71f9cOzJJECu+pxD9ENI9+0zzHjJ2EXZsWq5siCbCMUIHLQa0RlnFIOpe3Db2uTCEnEUkJZhLZCwXSaXf9hQg7hguld9jyhT1iU8MWFk/RZ7pgwDwUSzYtbcsKIPk6e41D28vDp5amLHh880/U2+mXzuQDsfgeIcqgSvhQ+Te3m7AUShx+z0aRxBZqNXdwxmQJhIx18SoZK2iIGsXv7ITSZOTS7J0M7TkdnaMyn1/ x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?x2JWl95FoUK12Lk7z5yfQFgWAQzw+RvVMfJ5g1cavCoWHuMsdyRuW42R?= =?Windows-1252?Q?iS6b37r6y1IuQ9GlcrtGq1KyzqjHa6ERBP42tCSeyhwURHh0SXM6SxP0?= =?Windows-1252?Q?aPp6nSnc6jcDy1IfKTmyjs45sat9l/LleSHnMwlIPQ7TsaODeesKG5Wk?= =?Windows-1252?Q?8OH3LL8JnvTX1O8cvcJ0sQKVLfU4LRoYYlED/+u7r6/V426T2ZIOcW50?= =?Windows-1252?Q?2CMQk8qprY0Rv46Gfzhnk7VhSYj9oZb3gjzdzghuWvLBgzY1LN0NWzvk?= =?Windows-1252?Q?iXj1PXaDtOE2uq/GlZMpkJwTyqDfRef9uZ2QQOB7k/IHdC5yo1Fwub1n?= =?Windows-1252?Q?laywsnKRz/4HDsDJn3dezCfssQ7vHFEAqKSySMLhagZcinZ/LXiKre5L?= =?Windows-1252?Q?BvgU/IxWoN/QAsvI/aW9TmyG0QILD63SGhWNmxwBJYmPqG5QVp10YsQx?= =?Windows-1252?Q?WFuOVr0IqIIxXEqzNclvVUgjPU9cpqGrJP8abqEOGldpKghRugSNt5Ex?= =?Windows-1252?Q?gjXDphAcIbxcA15AM1iWtQzYGkDbLLoaTRm0yd2eGJGWSAkoZ7vPYpIZ?= =?Windows-1252?Q?+oRVKysLxHPjL4VCuhEOUwIz1Z+HGRDuj/VKXVvVxlyM8oa6tLZbVSE2?= =?Windows-1252?Q?5fioe3Vm9MIjEHCk6MDucyh/QvVbnB0NJmSxz5vo/RH93fFCIPLY4y8d?= =?Windows-1252?Q?FMSrxzm/euuiaFZ1JfN9OEYJ9KTsEhOWxA8lMnn/zYsHMZgNwUhobW1j?= =?Windows-1252?Q?q29Q6wAOPcM8WDg85P2u/Bj8ZHGS7HBxtj+1QcEHC9EA4k0S5iLzuayA?= =?Windows-1252?Q?WxdGgil7f44zFpqIKAeNceRT0+OEdSzOD3caD1ZlLaJ6WS/bD2xqHsKq?= =?Windows-1252?Q?tEFlrn4Xzb36md7a8xTIhIKcQ3wBabaV/2XLu5N2fc3YL+OWCmQGOJcJ?= =?Windows-1252?Q?lth94KyJEnOEHSZTVv6vDXyP+KQjD3vdCF3Yqb+kpHcWs9e3Wl1oIifL?= =?Windows-1252?Q?+wnBvfmRGrQPWH4NvXDx6UlWE/GQPmryNQYYJoht5wZMBuyNDRJku87f?= =?Windows-1252?Q?p6MZXfsCPXtdwIP/xGr8qDBukVC3lwIFx2T7kCFcTQw51AWtpO/Bqb/A?= =?Windows-1252?Q?Re4gqvN7kZ4hfV50LJVnNThJ+B2tn5IU79Uxmm0sjVm9VKj5VWtzdix0?= =?Windows-1252?Q?mcvOL5rbcmQixif76DyO5nB4lv3KMspqdaekE05ZR6AlCtt5VvhAUPHi?= =?Windows-1252?Q?numEQKTGFtIY/UwGWY3N+6OODGHGDxPmL1StxOMw4aXp/q5xbgdjtdV+?= =?Windows-1252?Q?9s5XnC2TSXpVfN/kJ9nKZ6nZOLb3j/B01FadIfgAC3BhHbokj/L4VqaO?= =?Windows-1252?Q?qTVe3RgvP1mtHg=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH0PR20MB37041E9776E86D61EB63FEBFC0439PH0PR20MB3704namp_" List-Id: Porting FreeBSD to the PowerPC List-Archive: https://lists.freebsd.org/archives/freebsd-ppc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR20MB3704.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 60930d21-fbdd-4a19-df90-08da927c6d4d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Sep 2022 16:00:33.3298 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR20MB3877 X-Rspamd-Queue-Id: 4MPLLW3p3Vz3w16 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=eZuXqcoP; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=none; spf=pass (mx1.freebsd.org: domain of jmmv@outlook.com designates 40.92.44.13 as permitted sender) smtp.mailfrom=jmmv@outlook.com X-Spamd-Result: default: False [-4.20 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[julio@meroh.net,jmmv@outlook.com]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_EQ_ADDR_ALL(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-ppc@freebsd.org]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FREEMAIL_ENVFROM(0.00)[outlook.com]; RCVD_IN_DNSWL_NONE(0.00)[40.92.44.13:from]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[outlook.com:+]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[jmmv]; RCPT_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[outlook.com:dkim]; DMARC_NA(0.00)[meroh.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[julio@meroh.net,jmmv@outlook.com]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --_000_PH0PR20MB37041E9776E86D61EB63FEBFC0439PH0PR20MB3704namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Armed with a lot of patience, I was able to bisect where the crashes are co= ming from. They seem to be due to these three consecutive and related commi= ts (because the first one broke the build and required two extra fixes for = powerpc=92s GENERIC64 to build): 9171b8068b92 cpuset: Fix the KASAN and KMSAN builds 01f281d0ee52 Fix the build after 47a57144 971cb62e0b23 cpuset: Byte swap cpuset for compat32 on big endian architectu= res Any idea on how to look into these crashes further? Thank you! From: Julio Merino Sent: Sunday, July 31, 2022 07:45 To: freebsd-ppc@freebsd.org Subject: PowerMac G5 crashes with "instruction storage interrupt" on recent= 13 Hi all, I have a PowerMac G5 that=92s running an old build of FreeBSD 13 stable (fr= om around October of last year) that I=92m trying to upgrade to recent stab= le/13. Booting into a new kernel brings two issues: the first is that the fans spi= n up to jet engine levels right before transferring control to userspace. A= n old patch I have locally to mitigate this (which I got from whichever out= standing bug exists for this in the bug tracker) doesn=92t seem to work any= longer. The second is that the kernel crashes (apparently) as soon as it tries to m= ount a ZFS pool during early stages of the boot process, but after successf= ully transferring control to userspace. Typing this from a photo of the cra= sh so omitting details that I think aren=92t going to be relevant here, lik= e addresses, here is what I get: ---- Setting hostid: =85 ZFS filesystem version: 5 ZFS storage pool version: features support (500) Fatal kernel trap: Exception =3D 0x400 (instruction storage interrupt) =85 pid =3D 64, comm =3D zpool panic: instruction storage interrupt trap cpuid =3D 1 time =3D =85 KDB: stack backtrace: #0 kdb_backtrace #1 vpanic #2 panic #3 trap #4 powerpc_interrupt Uptime: 7s ---- Any thoughts about what I could look into? Any =93recent=94 commits that yo= u think may be at fault? Thanks! --_000_PH0PR20MB37041E9776E86D61EB63FEBFC0439PH0PR20MB3704namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Armed with a lot of patience, I was able to bisect w= here the crashes are coming from. They seem to be due to these three consec= utive and related commits (because the first one broke the build and requir= ed two extra fixes for powerpc=92s GENERIC64 to build):

 

9171b8068b92 cpuset: Fix the KASAN and KMSAN builds<= /p>

01f281d0ee52 Fix the build after 47a57144

971cb62e0b23 cpuset: Byte swap cpuset for compat32 o= n big endian architectures

 

Any idea on how to look into these crashes further?<= /p>

 

Thank you!

 

 

From: Julio Merino
Sent: Sunday, July 31, 2022 07:45
To: freebsd-ppc@freebsd.o= rg
Subject: PowerMac G5 crashes with "instruction storage interrup= t" on recent 13

 

Hi all,

 

I have a PowerMac G5 that=92s running an old build o= f FreeBSD 13 stable (from around October of last year) that I=92m trying to= upgrade to recent stable/13.

 

Booting into a new kernel brings two issues: the fir= st is that the fans spin up to jet engine levels right before transferring = control to userspace. An old patch I have locally to mitigate this (which I= got from whichever outstanding bug exists for this in the bug tracker) doesn=92t seem to work any longer.

 

The second is that the kernel crashes (apparently) a= s soon as it tries to mount a ZFS pool during early stages of the boot proc= ess, but after successfully transferring control to userspace. Typing this = from a photo of the crash so omitting details that I think aren=92t going to be relevant here, like addresses, h= ere is what I get:

 

----

Setting hostid: =85

ZFS filesystem version: 5

ZFS storage pool version: features support (500)

 

Fatal kernel trap:

 

Exception =3D 0x400 (instruction storage interrupt)<= o:p>

=85

pid =3D 64, comm =3D zpool

 

panic: instruction storage interrupt trap=

cpuid =3D 1

time =3D =85

KDB: stack backtrace:

#0 kdb_backtrace

#1 vpanic

#2 panic

#3 trap

#4 powerpc_interrupt

Uptime: 7s

----

 

Any thoughts about what I could look into? Any =93re= cent=94 commits that you think may be at fault?

 

Thanks!

 

--_000_PH0PR20MB37041E9776E86D61EB63FEBFC0439PH0PR20MB3704namp_--