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=-8.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,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 20043C31E40 for ; Mon, 12 Aug 2019 10:56:44 +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 E58D220820 for ; Mon, 12 Aug 2019 10:56:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E58D220820 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx80J-0007Hc-7j for qemu-devel@archiver.kernel.org; Mon, 12 Aug 2019 06:56:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57629) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hx7zT-00067I-Q6 for qemu-devel@nongnu.org; Mon, 12 Aug 2019 06:55:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hx7zS-0001OR-Qy for qemu-devel@nongnu.org; Mon, 12 Aug 2019 06:55:51 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:47608) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hx7zS-0001MH-Hs for qemu-devel@nongnu.org; Mon, 12 Aug 2019 06:55:50 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 9E49974C659; Mon, 12 Aug 2019 12:55:45 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 7F7D67456D6; Mon, 12 Aug 2019 12:55:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 77E7C7456CB; Mon, 12 Aug 2019 12:55:45 +0200 (CEST) Date: Mon, 12 Aug 2019 12:55:45 +0200 (CEST) From: BALATON Zoltan To: =?ISO-8859-15?Q?Philippe_Mathieu-Daud=E9?= In-Reply-To: <8942e49f-493f-70c4-b2a1-10b97f2a7c6d@redhat.com> Message-ID: References: <55657720-8636-6997-932d-1aa88688d184@redhat.com> <8942e49f-493f-70c4-b2a1-10b97f2a7c6d@redhat.com> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 Content-ID: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:738:2001:2001::2001 Content-Type: text/plain; CHARSET=ISO-8859-15; FORMAT=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: Re: [Qemu-devel] [PATCH 4/7] ati-vga: Fix cursor color with guest_hwcursor=true 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: Andrew Randrianasulu , qemu-devel@nongnu.org, Gerd Hoffmann Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 12 Aug 2019, Philippe Mathieu-Daud=E9 wrote: > On 8/12/19 12:28 PM, BALATON Zoltan wrote: >> On Mon, 12 Aug 2019, Philippe Mathieu-Daud=E9 wrote: >>> On 8/11/19 11:14 PM, BALATON Zoltan wrote: >>>> Fixes: a38127414bd007c5b6ae64c664d9e8839393277e >>>> Signed-off-by: BALATON Zoltan >>>> --- >>>> ?hw/display/ati.c | 2 +- >>>> ?1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/hw/display/ati.c b/hw/display/ati.c >>>> index 699f38223b..b849f5d510 100644 >>>> --- a/hw/display/ati.c >>>> +++ b/hw/display/ati.c >>>> @@ -207,7 +207,7 @@ static void ati_cursor_draw_line(VGACommonState >>>> *vga, uint8_t *d, int scr_y) >>>> ???????????????? } >>>> ???????????? } else { >>>> ???????????????? color =3D (xbits & BIT(7) ? s->regs.cur_color1 : >>>> -????????????????????????????????????????? s->regs.cur_color0) << 8 = | >>>> 0xff; >>>> +????????????????????????????????????????? s->regs.cur_color0) | >>>> 0xff000000; >>>> ???????????? } >>>> ???????????? if (vga->hw_cursor_x + i * 8 + j >=3D h) { >>>> ???????????????? return; /* end of screen, don't span to next line *= / >>>> >>> >>> Reviewed-by: Philippe Mathieu-Daud=E9 >> >> Thanks. I've noticed that cursor color may still be wrong with MacOS >> that uses big endian frame buffer so maybe this will also need to take >> frame buffer endianness into account somehow but this patch corrects a >> difference between guest_hwcursor true and false values, reproducible >> with some Linux versions (as far as I remember). While the wrong curso= r >> color with MacOS is now consistent after this patch with both >> guest_hwcursor true or false so that likely needs a different fix that >> should be applied both to this place and to ati_cursor_define. (MacOS >> does not yet boot fully, it needs patches to OpenBIOS to be able to ru= n >> an FCode ROM and will probably need the VBlank interrupt implemented i= n >> ati-vga without which it displays a desktop but freezes there). > > If you remember which Linux version had this problem, or you can link t= o > roms that behave incorrectly, please share, so we can add display > regression tests. Unfortunately I don't. I think it was Andrew who found this so maybe he=20 can remember. (You may also need latest vgabios-ati.bin from Gerd's repo to get Linux=20 drivers load and for rage128p that has to be in pc-bios dir because PCI=20 IDs are only patched in that way.) Regards, BALATON Zoltan