From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNUM3-0006NY-V3 for qemu-devel@nongnu.org; Sun, 24 Jan 2016 18:46:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNUM2-0000s0-DX for qemu-devel@nongnu.org; Sun, 24 Jan 2016 18:45:59 -0500 Date: Mon, 25 Jan 2016 10:26:18 +1100 From: David Gibson Message-ID: <20160124232618.GV27454@voom.redhat.com> References: <1453581610-23179-1-git-send-email-hpoussin@reactos.org> <1453581610-23179-10-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r+TdwuXy+OXS8TUs" Content-Disposition: inline In-Reply-To: <1453581610-23179-10-git-send-email-hpoussin@reactos.org> Subject: Re: [Qemu-devel] [PATCH 09/13] cuda: port SET_POWER_MESSAGES command to new framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Herv=E9?= Poussineau Cc: qemu-ppc@nongnu.org, Alyssa Milburn , Mark Cave-Ayland , qemu-devel@nongnu.org, Alexander Graf --r+TdwuXy+OXS8TUs Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 23, 2016 at 09:40:06PM +0100, Herv=E9 Poussineau wrote: > Signed-off-by: Herv=E9 Poussineau Revieed-by: David Gibson > --- > hw/misc/macio/cuda.c | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) >=20 > diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c > index 294e8fb..64a3e79 100644 > --- a/hw/misc/macio/cuda.c > +++ b/hw/misc/macio/cuda.c > @@ -639,6 +639,20 @@ static bool cuda_cmd_set_file_server_flag(CUDAState = *s, > return true; > } > =20 > +static bool cuda_cmd_set_power_message(CUDAState *s, > + const uint8_t *in_data, int in_le= n, > + uint8_t *out_data, int *out_len) > +{ > + if (in_len !=3D 1) { > + return false; > + } > + > + qemu_log_mask(LOG_UNIMP, > + "CUDA: unimplemented command SET_POWER_MESSAGE %d\n", > + in_data[0]); > + return true; > +} > + > static const CudaCommand handlers[] =3D { > { CUDA_AUTOPOLL, "AUTOPOLL", cuda_cmd_autopoll }, > { CUDA_SET_AUTO_RATE, "SET_AUTO_RATE", cuda_cmd_set_autorate }, > @@ -647,6 +661,8 @@ static const CudaCommand handlers[] =3D { > { CUDA_RESET_SYSTEM, "RESET_SYSTEM", cuda_cmd_reset_system }, > { CUDA_FILE_SERVER_FLAG, "FILE_SERVER_FLAG", > cuda_cmd_set_file_server_flag }, > + { CUDA_SET_POWER_MESSAGES, "SET_POWER_MESSAGES", > + cuda_cmd_set_power_message }, > }; > =20 > static void cuda_receive_packet(CUDAState *s, > @@ -694,9 +710,6 @@ static void cuda_receive_packet(CUDAState *s, > obuf[6] =3D ti; > cuda_send_packet_to_host(s, obuf, 7); > return; > - case CUDA_SET_POWER_MESSAGES: > - cuda_send_packet_to_host(s, obuf, 3); > - return; > case CUDA_COMBINED_FORMAT_IIC: > obuf[0] =3D ERROR_PACKET; > obuf[1] =3D 0x5; --=20 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 --r+TdwuXy+OXS8TUs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWpV2aAAoJEGw4ysog2bOSe+YP/iUpxWC/V6A72Roo9zYt7t+q kbXctvWZL4rXkKd2vI8tz0te78MPBFRTKwVh8Tb3802h1sRsNq+AzfJbQrt8zGln V1akMqg/CENNPmjTrnUMJS9iMuaRoG+9DXpQB/lMyssRC22U92ZF1WcP/IRzzTfd CQbYN7CtzrLBLJ4XmdpgKZ1nZfpm8c+hF9RnEsTV2TgCqO7qYTtA+rN2awbM7erB gb0iADtFPQmWYlAnujsun8W+MPfyHBoS8h6DH6aVgdThd3i9Caz3ZqoAJWriU5gD 2zoRrvxBX+oCnxY0e75GQPcjP3HLRnhoJs6EDLDpabFQNT+Q/0Pd1IQbgvBFzX9O 4lW/Jqv7yRLo/GyZg75FNRZE9oX+Z0m+BuoRBqo4FqhjG3vvfpUXJGs+JkTz1Kbu 6IxJEMwUHON0VRGOPOMHghGc7I5kvSTEkAUgFXcCLuLcx7xc8q1njccOicvgQqXp DD6sn5rBU6YfnPK4GZDRiZ074dM8jx66ZFkriVrgdz0/IxQ0nh74ctKo91gd5Z2W bm/3r4iQHbN8oie6W++4GnRBgx4GrZsvbUHLEm6ITF6c4064ju5+2+rOs7e1tJjz crlRvblQEfXhSCiNqPlNuPI6dZ6aIpLBBO7GRk4D7bB02eLqnEX8EPoVDKiLvxIz rU4KmN8est9FLsXfi7ss =7xog -----END PGP SIGNATURE----- --r+TdwuXy+OXS8TUs--