From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C319C433ED for ; Mon, 17 May 2021 09:43:36 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69117611EE for ; Mon, 17 May 2021 09:43:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69117611EE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xenosoft.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FkDj20CX1z30H2 for ; Mon, 17 May 2021 19:43:34 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=b8luP57g; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.helo=mo4-p01-ob.smtp.rzone.de (client-ip=85.215.255.54; helo=mo4-p01-ob.smtp.rzone.de; envelope-from=chzigotzky@xenosoft.de; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=xenosoft.de header.i=@xenosoft.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=b8luP57g; dkim-atps=neutral Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FkDhT6xZ3z2xxn for ; Mon, 17 May 2021 19:43:03 +1000 (AEST) ARC-Seal: i=1; a=rsa-sha256; t=1621244566; cv=none; d=strato.com; s=strato-dkim-0002; b=Bb80fHfWsl2as0Bzja3tmAaZ9msvugut1/sG21fSivbAd+Ci5k77xAo1vY49KvSfgL 0p1ngQsBhhrOgCyHGtGJt7POPNMLCrSwCP7FmFYtj4UEeG6UrKB+2V+THYr5/sTQ8pHg r1L90+LASdtNq/zM+pNkqkVifhFFcZNc02UaNyRHHBg3dCBrC3uLnqAEmO7NC9UcYjw+ kjnO3Xq+09ADSVK4eWN86kCuCWI3x8UVM5XBeSFnS0YgZ8OpPqU6PMDrTyDUgQgRe7l/ MohnAOn0DN8gIkZEQjGd9HC8NIaespq7X2HMW7tchJRsGvqXKX0Qj9s83U0Wr0t4glAH f80Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1621244566; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=Rl/Gdkc7egQWIBOSMIJX1XaY9AiyuXx2nuAj0o6wsks=; b=GbXH6pkiDdNME/8kFE6Qgu3m1019Wh/liU76uViiBP95222qAhDpDa7NJlV6Vqev71 fOXPzyMrQ/nf3aiYwmn6NSitros3S/UylHr5EKMGOZ3SZJ73f4iibNixWEPo+x40cmaI 2WmN9/vcSZztAAE6GSJXwK7JXvqLs+O25/zMM5IO3+k/vIHJoHebeEIONdAxTQHk5nax z97Ga1P153ZgFz4kaLzGY/HPejuGbojafCwD94sykMSX3SLV2FMGAb6C7sL4PZLC5w+m TFpjwvmyjw1b00bhuL2aSf/qz7yPAOTL8hyTBbJL5eGCecSnh4q84O7QVEFbjLPcx8Qc b6WQ== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1621244566; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=Rl/Gdkc7egQWIBOSMIJX1XaY9AiyuXx2nuAj0o6wsks=; b=b8luP57gpmrZBcfUwwdMzFRTcocewx8zMH8sYzg/rMu7djzRfVaOPgagdkh2b2hNk1 IXPyIVybF5pmseiY4Psw66sZ818HgedyFsIG/8uG38vhnYXAEy3rhgKMzDEx9OxsOo2b JolbvIS4ZDkobhCeK0QWL34vUXsTsvkq2mXdAR6FklDAcfMQc4Iblh1hTtCV6qMcV9zy CSj1XROYuldh+sNEcqgp0QDVL9iTKYrZr08jpsJJBIoFnj1yXqP2tEof4WxxpO6vJVN9 e91+l1MaKn+s6p8rmBMBbXIr6Qvw0Eixs3N/6pnbS6tkJHYh2udlv9zYAZEq3RQbMaZ2 wyXw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGM4l4Hio94KKxRySfLxnHfJ+Dkjp5DdBJSrwuuqxvPhbL1/HFNrQWNLFP5JgxJd3+MH2JA==" X-RZG-CLASS-ID: mo00 Received: from Christians-iMac.fritz.box by smtp.strato.de (RZmta 47.26.0 AUTH) with ESMTPSA id f051dfx4H9gj0nU (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 May 2021 11:42:45 +0200 (CEST) Subject: Re: [FSL P50x0] KVM HV doesn't work anymore To: Nicholas Piggin , Christophe Leroy , "kvm-ppc@vger.kernel.org" , linuxppc-dev References: <04526309-4653-3349-b6de-e7640c2258d6@xenosoft.de> <34617b1b-e213-668b-05f6-6fce7b549bf0@xenosoft.de> <9af2c1c9-2caf-120b-2f97-c7722274eee3@csgroup.eu> <199da427-9511-34fe-1a9e-08e24995ea85@xenosoft.de> <1621236734.xfc1uw04eb.astroid@bobo.none> From: Christian Zigotzky Message-ID: Date: Mon, 17 May 2021 11:42:45 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <1621236734.xfc1uw04eb.astroid@bobo.none> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-DE X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Darren Stevens , "R.T.Dickinson" , mad skateman , Christian Zigotzky Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On 17 May 2021 at 09:42am, Nicholas Piggin wrote: > Excerpts from Christian Zigotzky's message of May 15, 2021 11:46 pm: >> On 15 May 2021 at 12:08pm Christophe Leroy wrote: >>> >>> Le 15/05/2021 à 11:48, Christian Zigotzky a écrit : >>>> Hi All, >>>> >>>> I bisected today [1] and the bisecting itself was OK but the >>>> reverting of the bad commit doesn't solve the issue. Do you have an >>>> idea which commit could be resposible for this issue? Maybe the >>>> bisecting wasn't successful. I will look in the kernel git log. Maybe >>>> there is a commit that affected KVM HV on FSL P50x0 machines. >>> If the uImage doesn't load, it may be because of the size of uImage. >>> >>> See https://github.com/linuxppc/issues/issues/208 >>> >>> Is there a significant size difference with and without KVM HV ? >>> >>> Maybe you can try to remove another option to reduce the size of the >>> uImage. >> I tried it but it doesn't solve the issue. The uImage works without KVM >> HV in a virtual e5500 QEMU machine. > Any more progress with this? I would say that bisect might have just > been a bit unstable and maybe by chance some things did not crash so > it's pointing to the wrong patch. > > Upstream merge of powerpc-5.13-1 was good and powerpc-5.13-2 was bad? > > Between that looks like some KVM MMU rework. You could try the patch > before this one b1c5356e873c ("KVM: PPC: Convert to the gfn-based MMU > notifier callbacks"). That won't revert cleanly so just try run the > tree at that point. If it works, test the patch and see if it fails. > > Thanks, > Nick Hi Nick, Thanks a lot for your answer. Yes, there is a little bit of progress. The RC2 of kernel 5.13 successfully boots with -smp 3 in a virtual e5500 QEMU machine. -smp 4 doesn't work anymore since the PowerPC updates 5.13-2. I used -smp 4 before 5.13 because my FSL P5040 machine has 4 cores. Could you please post a patch for reverting the commit before b1c5356e873c ("KVM: PPC: Convert to the gfn-based MMU notifier callbacks")? Thanks in advance, Christian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Zigotzky Date: Mon, 17 May 2021 09:42:45 +0000 Subject: Re: [FSL P50x0] KVM HV doesn't work anymore Message-Id: List-Id: References: <04526309-4653-3349-b6de-e7640c2258d6@xenosoft.de> <34617b1b-e213-668b-05f6-6fce7b549bf0@xenosoft.de> <9af2c1c9-2caf-120b-2f97-c7722274eee3@csgroup.eu> <199da427-9511-34fe-1a9e-08e24995ea85@xenosoft.de> <1621236734.xfc1uw04eb.astroid@bobo.none> In-Reply-To: <1621236734.xfc1uw04eb.astroid@bobo.none> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Nicholas Piggin , Christophe Leroy , "kvm-ppc@vger.kernel.org" , linuxppc-dev Cc: Darren Stevens , "R.T.Dickinson" , mad skateman , Christian Zigotzky On 17 May 2021 at 09:42am, Nicholas Piggin wrote: > Excerpts from Christian Zigotzky's message of May 15, 2021 11:46 pm: >> On 15 May 2021 at 12:08pm Christophe Leroy wrote: >>> >>> Le 15/05/2021 à 11:48, Christian Zigotzky a écrit : >>>> Hi All, >>>> >>>> I bisected today [1] and the bisecting itself was OK but the >>>> reverting of the bad commit doesn't solve the issue. Do you have an >>>> idea which commit could be resposible for this issue? Maybe the >>>> bisecting wasn't successful. I will look in the kernel git log. Maybe >>>> there is a commit that affected KVM HV on FSL P50x0 machines. >>> If the uImage doesn't load, it may be because of the size of uImage. >>> >>> See https://github.com/linuxppc/issues/issues/208 >>> >>> Is there a significant size difference with and without KVM HV ? >>> >>> Maybe you can try to remove another option to reduce the size of the >>> uImage. >> I tried it but it doesn't solve the issue. The uImage works without KVM >> HV in a virtual e5500 QEMU machine. > Any more progress with this? I would say that bisect might have just > been a bit unstable and maybe by chance some things did not crash so > it's pointing to the wrong patch. > > Upstream merge of powerpc-5.13-1 was good and powerpc-5.13-2 was bad? > > Between that looks like some KVM MMU rework. You could try the patch > before this one b1c5356e873c ("KVM: PPC: Convert to the gfn-based MMU > notifier callbacks"). That won't revert cleanly so just try run the > tree at that point. If it works, test the patch and see if it fails. > > Thanks, > Nick Hi Nick, Thanks a lot for your answer. Yes, there is a little bit of progress. The RC2 of kernel 5.13 successfully boots with -smp 3 in a virtual e5500 QEMU machine. -smp 4 doesn't work anymore since the PowerPC updates 5.13-2. I used -smp 4 before 5.13 because my FSL P5040 machine has 4 cores. Could you please post a patch for reverting the commit before b1c5356e873c ("KVM: PPC: Convert to the gfn-based MMU notifier callbacks")? Thanks in advance, Christian