Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4617779rwj; Tue, 20 Dec 2022 12:41:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UY6Cj1VKIJapUO+mF8Jq+i+VSjykWGbUG6KnkD2qWxUZewwWvQ6WBCRZfpmWBfx9kMQ8V X-Received: by 2002:a17:903:2449:b0:190:c219:ae1e with SMTP id l9-20020a170903244900b00190c219ae1emr42809649pls.31.1671568902948; Tue, 20 Dec 2022 12:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671568902; cv=none; d=google.com; s=arc-20160816; b=QbzjIkC2i/jWuJnfxsQFQ8hIQKH5xebx7CTtjvo1F60HHHFCcR/niKOooSUDELZtKL c0HwZqeiJotyn1IAvZG3TCnl1odgMAStsbrpOSMwtmmACz4iI3N7Ea0AlOGOtBX0t13n pyOhku8QmYXf3ZlfPC4InWOWd+Wnks7HY2gu/3P999B6dCwY9gYhZg7rieT3t/XWakyJ l+8Ysupk85kLaDDtwqbFqMbS/wiXja41V2aARgNL9BivvG40kI3tl+W2/KULhV+Piups 2vpQREBuipsvNmW9bHiHSWMaz8DxcpuK32qsKrhHJs7eik+Zj7lkRhsOkgCjxuYp6B82 9wwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0qYHUO3OwucyhnGztGaurfQ++kvWiCjT8JLVwnnblfo=; b=JRSdVdd8k5WHtclkIB8psMXWLCXn3YfN6SdiT5amECjy1xpWEA1clShTSGioWIoBgs uAOhku7eiIJWDwj+peXscgJmoDatAjQUNX8cQ6Dq6MUjlzdcDdSy0vvbfHAVLzifBpqH kfwBheQaBMKLKE3cKBatwFamHQxsEaTMqZwCw+HOhg1VSP4KQsbkoN3zLl++HLkI3zQV B7uaAoOfSYkn4E2fgCytGt8K5oOvgyEo8r/TJlrsutt4/FZmpdBAKE/bBYf4xfaTYSkA MPS1JaOLNqiNTSAt/wjfHXTqv5LwLutDojF2o5CYDtyHUTemx/WT4NPT5OrKC4QmGYH7 jyTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G34FYUrt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a17090274cc00b001781e393237si13899518plt.443.2022.12.20.12.41.34; Tue, 20 Dec 2022 12:41:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G34FYUrt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbiLTUWL (ORCPT + 68 others); Tue, 20 Dec 2022 15:22:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234279AbiLTUVg (ORCPT ); Tue, 20 Dec 2022 15:21:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339841EED1 for ; Tue, 20 Dec 2022 12:21:15 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C060D61572 for ; Tue, 20 Dec 2022 20:21:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F30C9C433EF; Tue, 20 Dec 2022 20:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671567674; bh=tHGz5rErrLmMZswKrJCJRdthAcEj2+aPBGfougwOjec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G34FYUrtRYg9MSVFa2eP9SoW49WUoAfMSA93CucR6zljg7QDsS84SO1TNSTUIzVH/ IjhHz74cSFBc29V5/aeYy6VOJ5UiraLLtZOmeXgA0cFiAMnWW3wb8U5jL2EldZOLyM r4CZLbRhS/wfbmfXQe3CzlAPoNdvTWkakIloSgLeBPAYw5AHMIEhuD/BiGn5wm/EP1 /OPHUgnF8nsLLkyM93hRTz3uTGfjrT8FCmp9yzAafKpnRzKm2Ku2J+mFF/xw9q+wso rKAzUNgg9fv/fky3GLR7872JeJPYKj3BZJqHOLbIzhNgynQQgo/nm2YUiXQyqNFfAy +0RJ9t8vIqfYg== Received: by pali.im (Postfix) id B11D7963; Tue, 20 Dec 2022 21:21:11 +0100 (CET) Date: Tue, 20 Dec 2022 21:21:11 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , jbglaw@lug-owl.de, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 5/5] powerpc/epapr: Don't use wrteei on non booke Message-ID: <20221220202111.jpxsyviplco6sbsm@pali> References: <38a8d765ed9149bc6b5484a7142e3bc59ffa3b1a.1671475543.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 19 December 2022 19:46:00 Christophe Leroy wrote: > wrteei is only for booke. Use the standard mfmsr/ori/mtmsr > when non booke. > > Reported-by: Jan-Benedict Glaw > Signed-off-by: Christophe Leroy > --- > Not sure this is needed at all, the commit that introduced the code says it is for e500, but there's no such limitation in Kconfig. Maybe we should limit all the file to CONFIG_PPC_E500 This ePAPR code is according to ePAPR v1.1. So it does not have to be e500 specific. But is there anything else in this category? > --- > arch/powerpc/kernel/epapr_hcalls.S | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/powerpc/kernel/epapr_hcalls.S b/arch/powerpc/kernel/epapr_hcalls.S > index 69a912550577..033116e465d0 100644 > --- a/arch/powerpc/kernel/epapr_hcalls.S > +++ b/arch/powerpc/kernel/epapr_hcalls.S > @@ -21,7 +21,13 @@ _GLOBAL(epapr_ev_idle) > ori r4, r4,_TLF_NAPPING /* so when we take an exception */ > PPC_STL r4, TI_LOCAL_FLAGS(r2) /* it will return to our caller */ > > +#ifdef CONFIG_BOOKE_OR_40x > wrteei 1 > +#else > + mfmsr r4 > + ori r4, r4, MSR_EE > + mtmsr r4 > +#endif > > idle_loop: > LOAD_REG_IMMEDIATE(r11, EV_HCALL_TOKEN(EV_IDLE)) > -- > 2.38.1 >