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=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 DE763C4361B for ; Sat, 19 Dec 2020 12:14:10 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 6385123ACA for ; Sat, 19 Dec 2020 12:14:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6385123ACA Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=nongnu.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:57668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqb7h-0000L6-JA for qemu-devel@archiver.kernel.org; Sat, 19 Dec 2020 07:14:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqb79-0008Lp-Df for qemu-devel@nongnu.org; Sat, 19 Dec 2020 07:13:35 -0500 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:59131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqb76-0007qW-6v for qemu-devel@nongnu.org; Sat, 19 Dec 2020 07:13:34 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 6CF747470E8; Sat, 19 Dec 2020 13:13:27 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 3C9167470E5; Sat, 19 Dec 2020 13:13:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 3B0717470E4; Sat, 19 Dec 2020 13:13:27 +0100 (CET) Date: Sat, 19 Dec 2020 13:13:27 +0100 (CET) To: Jiaxun Yang Subject: Re: [PATCH v2 0/8] hm/mips/fuloong2e fixes In-Reply-To: <20201219071235.35040-1-jiaxun.yang@flygoat.com> Message-ID: <516bc88e-d49-94f9-b4a2-a9d31e9026@eik.bme.hu> References: <20201219071235.35040-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=2001:738:2001:2001::2001; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: crosa@redhat.com, chenhuacai@kernel.org, qemu-devel@nongnu.org, wainersm@redhat.com, f4bug@amsat.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Reply-to: BALATON Zoltan From: BALATON Zoltan via On Sat, 19 Dec 2020, Jiaxun Yang wrote: > It can now boot Debian installer[1] as well as a custom PMON bootloader > distribution[2]. > > Note that it can't boot PMON shipped with actual machine as our ATI vgabios > is using some x86 hack that can't be handled by x86emu in original PMON. This may be similar problem that I've seen with similar PPC firmwares: https://osdn.net/projects/qmiga/wiki/SubprojectAti https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2#h3-Known.20issues TLDR; vgabios-ati.bin is compiled for i386 real mode (bacause that's what gcc can do, real x86 real mode would need something like bcc I think) that some x86emu can't handle. You can either use Bochs vga bios via romfile property of the vga emulation or try the option for x86emu when compiling vgabios-ati.bin (which did not help the firmwares I've tried). Regards, BALATON Zoltan > > Tree avilable at: https://gitlab.com/FlyGoat/qemu/-/tree/fuloong_fixes_v2 > > v2: > - Collect review tags. > - Get CPU clock via elegant method. (philmd) > - Add boot_linux_console scceptance test > > [1]: http://archive.debian.org/debian/dists/jessie/main/installer-mipsel/current/images/loongson-2e/netboot/ > [2]: https://github.com/loongson-community/pmon/releases/download/20201219/pmon-2edev.bin > > Thanks. > > - Jiaxun > > Jiaxun Yang (8): > hw/mips/fuloong2e: Remove define DEBUG_FULOONG2E_INIT > hw/mips/fuloong2e: Relpace fault links > hw/pci-host/bonito: Fixup IRQ mapping > hw/pci-host/bonito: Fixup pci.lomem mapping > hw/mips/fuloong2e: Remove unused env entry > hw/mips/fuloong2e: Correct cpuclock env > hw/mips/fuloong2e: Add highmem support > tests/acceptance: Test boot_linux_console for fuloong2e > > hw/mips/fuloong2e.c | 84 +++++++++++++++++--------- > hw/pci-host/bonito.c | 45 ++++---------- > tests/acceptance/boot_linux_console.py | 21 +++++++ > 3 files changed, 87 insertions(+), 63 deletions(-) > >