Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp797523pxf; Thu, 11 Mar 2021 15:27:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNZdwke9UMhFCLgTdMcoNgLAT7AdaTUj0olNOhqxGlrtJ3UW+m4oAv3Memu5HJvbB+t7r8 X-Received: by 2002:a17:906:7102:: with SMTP id x2mr5571170ejj.355.1615505279539; Thu, 11 Mar 2021 15:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615505279; cv=none; d=google.com; s=arc-20160816; b=V05kYM92MhKKoD/DOA6dmZF8nBcbnJcclNW7qRXWiGBmerMnJnsiS0wqkx+NNzuSHY r/dGF+ODVH7vUrKy3OOluP3FCbwtgHm6AkghySsTEsMQc8eP32iIE8gI84Pom/Z67d+F iZvSwWU8/VwRRYU9Z5Bf14DbYkz+aQbbAJu+Is1eHd6t6ORo7WLKnflQ8IKfEs+7yrNV Y0yKSTghB6aF34sSvw/3cGa4YeKSCXRnrgd5CfcRxzyshc+vaS/GGG4VGQy/3uIlEUbx jLYYcd/jsVhPwaMOdiTiV0FafCsF0Nr65u5StT7V/2sUx3dAXlogIOMby5g7gX+PqYnW 3Izw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=Ay9CNeXy9l7Q/UlunqIb/16kjMD1A+lJooziGdDiOWE=; b=I5wWJQmkG5TYV8zuN3ur6hzTe0z+/gxP3IuySjiGwlZ3Hp2q1OP7woBxv8F+OK/J4n OaZG9vrHvTJ/j3LiNP4Edyn0a0Q8xpf5fhSrrqW8hC3Lc1DQugLxKGkFo8BJJ8VWKSFA dwprne8wwpQwoLKbB63/g+TlCeT4ubRzaXX7SjLPzV/jlL13sraW+jTjElSvTiCFbhqq ubslvobV2FPP6Oo4N9Lm0bwgELvl9/jjHl9rxIqfxdJMsaSb7ZIBlFUtc2TxPAt0lyow vFZ/TZzNR8vmXhA/XtBBCcpGkK+2dctaI8lvXmUM8NMzFgeOP3ln2e5/7orUoqMrH8zr AvUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Mp9KtA2w; 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 g12si2726333eds.274.2021.03.11.15.27.36; Thu, 11 Mar 2021 15:27:59 -0800 (PST) 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=@ellerman.id.au header.s=201909 header.b=Mp9KtA2w; 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 S231305AbhCKX0i (ORCPT + 99 others); Thu, 11 Mar 2021 18:26:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231374AbhCKX0J (ORCPT ); Thu, 11 Mar 2021 18:26:09 -0500 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 285FBC061574 for ; Thu, 11 Mar 2021 15:26:09 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4DxQ711CXQz9sVt; Fri, 12 Mar 2021 10:26:04 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1615505165; bh=E/wjRfTwLwTeZtdF+8K681lQgpnJDWERQYIyr2pWj1A=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Mp9KtA2wbabfGNEAG4yTlb3/fMM0Tv1eaZo6pwYit0dnQQf2ydQGk3IHRd5RQTCwl /0wzOYdhQ1nqZRO9YxSYrX81QsYksW6q1EG4QBAhaWsfbW9L/56v32LBvwbpE0fkjb acBf9fVvF3ss2/CCA+jka/ZahwElg+HaUEEhbWAHcIGj/sep5vlj1x3RJ8dXIKD1XU l2tcL3b+FufTlHB77twz4EiPRYz8rAOUM6MhHhnfjLaNseZiQB/xG4BlaOjo9PazuR 0k/JMy6SguGvK9L/Yct1RltMbwMp+5U0cSR8eiRGl9Gfwsbr9AHG38SzGUF6HOQuK2 FwybpQUleqVVg== From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , npiggin@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 25/43] powerpc/32: Replace ASM exception exit by C exception exit from ppc64 In-Reply-To: <0296d1bc-b37e-43c8-06cf-00ec458fb74e@csgroup.eu> References: <87tuphkdkz.fsf@mpe.ellerman.id.au> <0296d1bc-b37e-43c8-06cf-00ec458fb74e@csgroup.eu> Date: Fri, 12 Mar 2021 10:26:02 +1100 Message-ID: <87r1kljmr9.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > Le 11/03/2021 =C3=A0 14:46, Michael Ellerman a =C3=A9crit=C2=A0: >> Christophe Leroy writes: >>> This patch replaces the PPC32 ASM exception exit by C exception exit. >>> >>> Signed-off-by: Christophe Leroy >>> --- >>> arch/powerpc/kernel/entry_32.S | 481 +++++++++----------------------- >>> arch/powerpc/kernel/interrupt.c | 4 + >>> 2 files changed, 132 insertions(+), 353 deletions(-) >>=20 >> Bisect points to this breaking qemu mac99 for me, with pmac32_defconfig. >>=20 >> I haven't had time to dig any deeper sorry. > > Embarrasing ... Nah, these things happen. > I don't get this problem on the 8xx (nohash/32) or the 83xx (book3s/32). > I don't get this problem with qemu mac99 when using my klibc-based initra= mfs. > > I managed to reproduce it with the rootfs.cpio that I got some time ago f= rom linuxppc github Wiki. OK. I'm using the ppc-rootfs.cpio.gz from here: https://github.com/linuxppc/ci-scripts/blob/master/root-disks/Makefile And the boot script is: https://github.com/linuxppc/ci-scripts/blob/master/scripts/boot/qemu-mac99 I've been meaning to write docs on how to use those scripts, but haven't got around to it. There's nothing really special though it's just a wrapper around qemu -M ma= c99. > I'll investigate it tomorrow. Thanks. cheers