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.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 84560C433B4 for ; Sat, 15 May 2021 10:08:50 +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 8C9B361073 for ; Sat, 15 May 2021 10:08:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C9B361073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csgroup.eu 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 4Fj1M36hzmz308r for ; Sat, 15 May 2021 20:08:47 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=csgroup.eu (client-ip=93.17.235.10; helo=pegase2.c-s.fr; envelope-from=christophe.leroy@csgroup.eu; receiver=) Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) (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 4Fj1Lf0CNyz2yYP for ; Sat, 15 May 2021 20:08:21 +1000 (AEST) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4Fj1LW2Hc7z9sZx; Sat, 15 May 2021 12:08:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71uUNgqQvqJQ; Sat, 15 May 2021 12:08:19 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4Fj1LW17l1z9sZw; Sat, 15 May 2021 12:08:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F03318B76E; Sat, 15 May 2021 12:08:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id DW0Ta4PfXQm9; Sat, 15 May 2021 12:08:18 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 67E7A8B765; Sat, 15 May 2021 12:08:18 +0200 (CEST) Subject: Re: [FSL P50x0] KVM HV doesn't work anymore To: Christian Zigotzky , linuxppc-dev , "kvm-ppc@vger.kernel.org" References: <04526309-4653-3349-b6de-e7640c2258d6@xenosoft.de> <34617b1b-e213-668b-05f6-6fce7b549bf0@xenosoft.de> From: Christophe Leroy Message-ID: <9af2c1c9-2caf-120b-2f97-c7722274eee3@csgroup.eu> Date: Sat, 15 May 2021 12:08:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <34617b1b-e213-668b-05f6-6fce7b549bf0@xenosoft.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit 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" 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. Or if you are using gzipped uImage you can try with an lzma uImage. You can find a way to get an lzma uImage here: https://github.com/linuxppc/issues/issues/208#issuecomment-477479951 Christophe > > Thanks, > Christian > > [1] https://forum.hyperion-entertainment.com/viewtopic.php?p=53209#p53209 > > On 14 May 2021 at 10:10 am, Christian Zigotzky wrote: >> Hi All, >> >> The RC1 of kernel 5.13 doesn't boot in a virtual e5500 QEMU machine with KVM HV anymore. I see in >> the serial console that the uImage doesn't load. I use the following QEMU command for booting: >> >> qemu-system-ppc64 -M ppce500 -cpu e5500 -enable-kvm -m 1024 -kernel uImage-5.13 -drive >> format=raw,file=MintPPC32-X5000.img,index=0,if=virtio -netdev user,id=mynet0 -device >> e1000,netdev=mynet0 -append "rw root=/dev/vda" -device virtio-vga -device virtio-mouse-pci -device >> virtio-keyboard-pci -device pci-ohci,id=newusb -device usb-audio,bus=newusb.0 -smp 4 >> >> The kernel boots without KVM HV. >> >> Have you already tested KVM HV with the kernel 5.13? >> >> Thanks, >> Christian >> >> From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Leroy Date: Sat, 15 May 2021 10:08:10 +0000 Subject: Re: [FSL P50x0] KVM HV doesn't work anymore Message-Id: <9af2c1c9-2caf-120b-2f97-c7722274eee3@csgroup.eu> List-Id: References: <04526309-4653-3349-b6de-e7640c2258d6@xenosoft.de> <34617b1b-e213-668b-05f6-6fce7b549bf0@xenosoft.de> In-Reply-To: <34617b1b-e213-668b-05f6-6fce7b549bf0@xenosoft.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Christian Zigotzky , linuxppc-dev , "kvm-ppc@vger.kernel.org" Cc: Darren Stevens , "R.T.Dickinson" , mad skateman , Christian Zigotzky 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. Or if you are using gzipped uImage you can try with an lzma uImage. You can find a way to get an lzma uImage here: https://github.com/linuxppc/issues/issues/208#issuecomment-477479951 Christophe > > Thanks, > Christian > > [1] https://forum.hyperion-entertainment.com/viewtopic.php?pS209#p53209 > > On 14 May 2021 at 10:10 am, Christian Zigotzky wrote: >> Hi All, >> >> The RC1 of kernel 5.13 doesn't boot in a virtual e5500 QEMU machine with KVM HV anymore. I see in >> the serial console that the uImage doesn't load. I use the following QEMU command for booting: >> >> qemu-system-ppc64 -M ppce500 -cpu e5500 -enable-kvm -m 1024 -kernel uImage-5.13 -drive >> format=raw,file=MintPPC32-X5000.img,index=0,if=virtio -netdev user,id=mynet0 -device >> e1000,netdev=mynet0 -append "rw root=/dev/vda" -device virtio-vga -device virtio-mouse-pci -device >> virtio-keyboard-pci -device pci-ohci,id=newusb -device usb-audio,bus=newusb.0 -smp 4 >> >> The kernel boots without KVM HV. >> >> Have you already tested KVM HV with the kernel 5.13? >> >> Thanks, >> Christian >> >>