Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2045244pxy; Mon, 2 Aug 2021 17:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRiBIvBjpNPWkmwZVnpIhQymUbC7t9ACt0udCqVv3EPyEqe4NLpDFwJ9j0pwuNE6wsIcvE X-Received: by 2002:a17:906:82ca:: with SMTP id a10mr17717700ejy.137.1627951584779; Mon, 02 Aug 2021 17:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627951584; cv=none; d=google.com; s=arc-20160816; b=K77IAHQaWlR1lclGm29otb2x+xA5MwVe6bQsynbN287NgOqLjVrevdnqzUfXyoc7ee D+eJERlk6EwRI0den3H9/Au1O6XmxxxiPrwJp/NQbI0xp0Nhe1vK4i/Dckh0goRjPPlJ ok4X7Z70de8nWroma/ifjurBlHf7s/2DmkdGMAcQhg9gj2g69op5JVNQGueDE2Yp2XRC QYHscZFbk6zijww7SRTZ0ShxLKfn+K+KO4pxUtSBspaZ/X2t88EH66usZpOYYjPEyG96 9JnFUt4VXRuECT2RSl5/BAmZB+AqMDvQwVpdS9fWF3dLaiCiFJ52leNNYXRapU5CIRYe 7UEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=rTy3dKsPoajPmNli8ExRtsgRJClAC4+cHirejhq0af0=; b=iuAbWTp4sCdWMqOAqHHPNZJfjp90MqQ6g1NMVeT4TGw6BPGtowg5SB0nU9sttc1i9e HJczo8yAqp6OD7pHZzgKLeXXkQ7t/PH4h65ExGsPlouE0P6c6kmhCODPOmi1V1h1RzG5 2a0UncgcoAfGyFSPv/MkYLEchnaOllYt97/WRx/frsNoOfK4QxsNp/m0lnYRO0wX3K6t Ox9bKpRmeEB4VlhNQjbqOZb31PJq1lQNDcCTmHusMDWBYzgfjZtlkOraA19wYppZjkad N+v2YsVouV27kX15iXP+sz/5McenO6B331XDmao91gYzWzoLvkD+eiPjw2AoR+zf1OOG sAkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gHaOx2og; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si10821564eds.314.2021.08.02.17.45.59; Mon, 02 Aug 2021 17:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gHaOx2og; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232768AbhHCAne (ORCPT + 99 others); Mon, 2 Aug 2021 20:43:34 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:52697 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232311AbhHCAnd (ORCPT ); Mon, 2 Aug 2021 20:43:33 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 05F325C0167; Mon, 2 Aug 2021 20:43:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 02 Aug 2021 20:43:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-id:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=rTy3dKsPoajPmNli8ExRtsgRJClAC4+cHirejhq0af0=; b=gHaOx2og 7UxXtoTnVvlBJFD4rhjsp2UJzdXIfpvua6QYeqYCW2YgY/e3hv4Nw36t/S1lYSFr U0KM0VFqiXYVi31udYjYGyJUD52E2PbLvprNuq6eoV5eOm7lUqLL0fZyQf2ijPRW LB8i/V9bTp83/k/+FNHobB3gXPzd1dLAKgu+mgvFyMqZwa/TEpWpCtoq5aW8GosT +jfkGmbUoCnBjH9XhQ163V1R25hkphTuG/AtG8IUdh64gbdAh1amM1BCWwMHn4Fh J8rlSSWmXtgRCS7rZqWll3bJWLn3ALJHJ0tIkKyfVoBUMqFPRxLmX73WhmlkSL9X Bjtga70UP5z43A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrieefgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvufgjkfhfgggtsehmtderredttdejnecuhfhrohhmpefhihhnnhcuvfhh rghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrghtth gvrhhnpeetvedvueduheehkeejhedukeevheejkedvffdugeehkeffkeekgfehkedvleel teenucffohhmrghinhepfedvrdhssgenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehfthhhrghinheslhhinhhugidqmheikehkrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Aug 2021 20:43:17 -0400 (EDT) Date: Tue, 3 Aug 2021 10:43:13 +1000 (AEST) From: Finn Thain To: Stan Johnson , LEROY Christophe cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nick Piggin , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Subject: Re: [PATCH v3 31/41] powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE In-Reply-To: <9b64dde3-6ebd-b446-41d9-61e8cb0d8c39@csgroup.eu> Message-ID: <216b7b17-28f4-7976-c338-1dedeba14ce7@linux-m68k.org> References: <666e3ab4-372-27c2-4621-7cc3933756dd@linux-m68k.org> <20210731173954.Horde.fV2Xkw7-sxjG0DUcZ_JO_g3@messagerie.c-s.fr> <1d601b7c-1e39-e372-39a5-e1e98e56e2a5@linux-m68k.org> <9b64dde3-6ebd-b446-41d9-61e8cb0d8c39@csgroup.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1463811774-1281028418-1627951377=:28" Content-ID: <11d1109a-eda8-9252-f7e-84519fa8d55@nippy.intranet> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811774-1281028418-1627951377=:28 Content-Type: text/plain; CHARSET=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <86b5d84-d157-9cb8-3a40-99b6e82a91fa@nippy.intranet> On Mon, 2 Aug 2021, LEROY Christophe wrote: > Le 01/08/2021 =C3=A0 03:21, Finn Thain a =C3=A9crit=C2=A0: > > On Sat, 31 Jul 2021, Christophe Leroy wrote: > >=20 > > > >=20 > > > > Stan Johnson contacted me about a regression in mainline that he > > > > observed on his G3 Powerbooks. Using 'git bisect' we determined tha= t > > > > this patch was the cause of the regression, i.e. commit 4c0104a83fc= 3 > > > > ("powerpc/32: Dismantle EXC_XFER_STD/LITE/TEMPLATE"). > > > >=20 > > > > When testing 4c0104a83fc and all subsequent builds, various user > > > > processes were liable to segfault. Here is the console log that Sta= n > > > > provided: > > >=20 > > > Hi, i will be able to look at that more in details next week, however= I > > > have a few preliminary qurstions. > > >=20 > > > Can you reliabily reproduce the problem with the said commit, and can > > > you reliabily run without problem with the parent commit ? > >=20 > > Yes and yes. (I already asked Stan to establish those things before I > > contacted the list.) >=20 > I think I found the problem with that commit. Can you retry with the foll= owing > change: >=20 > diff --git a/arch/powerpc/kernel/head_book3s_32.S > b/arch/powerpc/kernel/head_book3s_32.S > index 0a3d7d4a9ec4..a294103a91a1 100644 > --- a/arch/powerpc/kernel/head_book3s_32.S > +++ b/arch/powerpc/kernel/head_book3s_32.S > @@ -299,7 +299,7 @@ ALT_MMU_FTR_SECTION_END_IFSET(MMU_FTR_HPTE_TABLE) > =09EXCEPTION_PROLOG_1 > =09EXCEPTION_PROLOG_2 0x300 DataAccess handle_dar_dsisr=3D1 > =09prepare_transfer_to_handler > -=09lwz=09r5, _DSISR(r11) > +=09lwz=09r5, _DSISR(r1) > =09andis.=09r0, r5, DSISR_DABRMATCH@h > =09bne-=091f > =09bl=09do_page_fault That patch doesn't apply to mainline. This version might help. diff --git a/arch/powerpc/kernel/head_book3s_32.S b/arch/powerpc/kernel/hea= d_book3s_32.S index 764edd860ed4..68e5c0a7e99d 100644 --- a/arch/powerpc/kernel/head_book3s_32.S +++ b/arch/powerpc/kernel/head_book3s_32.S @@ -300,7 +300,7 @@ ALT_MMU_FTR_SECTION_END_IFSET(MMU_FTR_HPTE_TABLE) =09EXCEPTION_PROLOG_1 =09EXCEPTION_PROLOG_2 INTERRUPT_DATA_STORAGE DataAccess handle_dar_dsisr= =3D1 =09prepare_transfer_to_handler -=09lwz=09r5, _DSISR(r11) +=09lwz=09r5, _DSISR(r1) =09andis.=09r0, r5, DSISR_DABRMATCH@h =09bne-=091f =09bl=09do_page_fault ---1463811774-1281028418-1627951377=:28--