qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] mac_newworld: always enable disable_direct_reg3_writes for ADB machines
Date: Fri, 22 Jun 2018 20:25:50 +1000	[thread overview]
Message-ID: <20180622102550.GI612@umbus.fritz.box> (raw)
In-Reply-To: <20180622080009.5707-3-mark.cave-ayland@ilande.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]

On Fri, Jun 22, 2018 at 09:00:09AM +0100, Mark Cave-Ayland wrote:
> Commit 84051eb400 "adb: add property to disable direct reg 3 writes" added a
> workaround for MacOS 9 incorrectly setting the mouse address during boot of
> PMU machines.
> 
> Further testing has shown that since fb6649f172 "adb: fix read reg 3 byte
> ordering" this can still sometimes happen with the CUDA mac99 machine,
> so let's enable this workaround for all New World machines using ADB for now.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

Applied to ppc-for-3.0, thanks.

> ---
>  hw/ppc/mac_newworld.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
> index ff715ffffd..2b13fcdde5 100644
> --- a/hw/ppc/mac_newworld.c
> +++ b/hw/ppc/mac_newworld.c
> @@ -407,11 +407,11 @@ static void ppc_core99_init(MachineState *machine)
>  
>          adb_bus = qdev_get_child_bus(dev, "adb.0");
>          dev = qdev_create(adb_bus, TYPE_ADB_KEYBOARD);
> -        qdev_prop_set_bit(dev, "disable-direct-reg3-writes", has_pmu);
> +        qdev_prop_set_bit(dev, "disable-direct-reg3-writes", true);
>          qdev_init_nofail(dev);
>  
>          dev = qdev_create(adb_bus, TYPE_ADB_MOUSE);
> -        qdev_prop_set_bit(dev, "disable-direct-reg3-writes", has_pmu);
> +        qdev_prop_set_bit(dev, "disable-direct-reg3-writes", true);
>          qdev_init_nofail(dev);
>      }
>  

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-06-22 10:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-22  8:00 [Qemu-devel] [PATCH 0/2] ppc: minor Mac fixes Mark Cave-Ayland
2018-06-22  8:00 ` [Qemu-devel] [PATCH 1/2] mac_dbdma: only dump commands for debug enabled channels Mark Cave-Ayland
2018-06-22 10:25   ` David Gibson
2018-06-22  8:00 ` [Qemu-devel] [PATCH 2/2] mac_newworld: always enable disable_direct_reg3_writes for ADB machines Mark Cave-Ayland
2018-06-22 10:25   ` David Gibson [this message]
2018-06-22 11:16 ` [Qemu-devel] [PATCH 0/2] ppc: minor Mac fixes no-reply
2018-06-22 11:19   ` Mark Cave-Ayland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180622102550.GI612@umbus.fritz.box \
    --to=david@gibson.dropbear.id.au \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).