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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 C434FC4361B for ; Sat, 19 Dec 2020 12:39:38 +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 4AE6E23443 for ; Sat, 19 Dec 2020 12:39:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4AE6E23443 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=flygoat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:41992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqbWL-0006tM-AC for qemu-devel@archiver.kernel.org; Sat, 19 Dec 2020 07:39:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqbV9-0006Ra-BN for qemu-devel@nongnu.org; Sat, 19 Dec 2020 07:38:23 -0500 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:53475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqbV5-0007Lu-04 for qemu-devel@nongnu.org; Sat, 19 Dec 2020 07:38:23 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 1A4CF60E; Sat, 19 Dec 2020 07:38:16 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute6.internal (MEProxy); Sat, 19 Dec 2020 07:38:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type:content-transfer-encoding; s=fm1; bh=nSGfy ll8oJ/HLtxR59BC/5tieR9f195uSH0+/+PBOsI=; b=o3ClACCP4qC32bWaPKhP2 dJb3VEbW+jN2ybXAysFjK5+puBo6OSUHajL8xhKCjofcjvFBSekzBi8XqBH38bQ1 2F8rxojT9Y6M5qIDwTi1Fg4WByfbI7/kE/Q8tlxKQNYh+I8f/lmspU0GbzcrlNZY VF8egjZXfWcyBSqNpGfaPKY1bXkb6xvw2A5i4P6zfEymgrILSVoR80TgrrTFdfBQ fSkFIonQ5vL5hFDOZtOXXxxv4LFFst5l4QyRqDAnGqZ8sKbyinnk+tTWh2I4rCTl kXdX3lhjAzL3U+qiQWKtnDhXJE9jxVjwT5sbyd6eslP/cvDkwHvq5qZK2muQS+Fr g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=nSGfyll8oJ/HLtxR59BC/5tieR9f195uSH0+/+PBO sI=; b=aByN5zQrUoQp+A4qg22sf7MMZxlUniANIU0fhAD9bSVIhLmMJQEFD2hNK KqBjWiBOCHvHUcSy9hLalB/VmPvyeDrtQe1AaOIwBRp3QF2BmJGn3mqcfVO2LLrT 9cQI2qDPrIQlluI0+PJot2rEdejdBciv1NdMA+wn0vjpnSKvOsBKAddPZlkVgSOv SxvwdzI/3ZRUjaY3sKjpNKeZ4a1T74SIK2lWuiN0v+n7AvkN29Vy5BUKtLiTexPp heY4kkY2Yb94iSUxmIZq/LrjdE26y8rsbjDBNisZVYhONlpCC/gorYOBpyON4NiD qlXBVU6kmqcII4wAg/OeYh6YFxlaA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelkedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedflfhi rgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh eqnecuggftrfgrthhtvghrnhepudfhjeeuheekteeftdeiieegfeduhfdvteetudehleeg hedtleefkeetkeekvdfgnecuffhomhgrihhnpehoshgunhdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhg sehflhihghhorghtrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 282F9C200A5; Sat, 19 Dec 2020 07:38:15 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 Mime-Version: 1.0 Message-Id: <5cb09aab-f425-4faa-969d-9df324768af2@www.fastmail.com> In-Reply-To: <516bc88e-d49-94f9-b4a2-a9d31e9026@eik.bme.hu> References: <20201219071235.35040-1-jiaxun.yang@flygoat.com> <516bc88e-d49-94f9-b4a2-a9d31e9026@eik.bme.hu> Date: Sat, 19 Dec 2020 20:37:42 +0800 From: "Jiaxun Yang" To: "BALATON Zoltan" Subject: Re: [PATCH v2 0/8] hm/mips/fuloong2e fixes Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: permerror client-ip=64.147.123.27; envelope-from=jiaxun.yang@flygoat.com; helo=wnew2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, T_SPF_PERMERROR=0.01 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" =E5=9C=A82020=E5=B9=B412=E6=9C=8819=E6=97=A5=E5=8D=81=E4=BA=8C=E6=9C=88 = =E4=B8=8B=E5=8D=888:13=EF=BC=8CBALATON Zoltan=E5=86=99=E9=81=93=EF=BC=9A= > On Sat, 19 Dec 2020, Jiaxun Yang wrote: > > It can now boot Debian installer[1] as well as a custom PMON bootloa= der > > 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 P= MON. >=20 > This may be similar problem that I've seen with similar PPC firmwares:= >=20 > https://osdn.net/projects/qmiga/wiki/SubprojectAti > https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2#h3-Known.20iss= ues >=20 > TLDR; vgabios-ati.bin is compiled for i386 real mode (bacause that's w= hat=20 > gcc can do, real x86 real mode would need something like bcc I think) = that=20 > some x86emu can't handle. You can either use Bochs vga bios via romfil= e=20 > property of the vga emulation or try the option for x86emu when compil= ing=20 > vgabios-ati.bin (which did not help the firmwares I've tried). Hi, Thinks for your reminder! To be more specified, our x86emu in PMON can handle i386 real mode, however vgabios-ati uses INT15h when INT10h ax=3D0x4f01 (Get VESA Mode) is called. And x86emu won't process INT15h properly. My workround[1] is to allow 0x4f01 to be failed in PMON, as ax=3D0x4f02 (Set VESA Mode) do work, it won't be a actual problem. - Jiaxun