Received: from eggs.gnu.org ([2001:4830:134:3::10]:55373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7LBI-0004q6-4I for qemu-devel@nongnu.org; Thu, 17 Nov 2016 06:48:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7LBF-0000IV-1N for qemu-devel@nongnu.org; Thu, 17 Nov 2016 06:48:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47828) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7LBE-0000IL-RW for qemu-devel@nongnu.org; Thu, 17 Nov 2016 06:48:36 -0500 References: <1476275861-27613-1-git-send-email-ppandit@redhat.com> <33183CC9F5247A488A2544077AF19020B0429759@SZXEMA503-MBS.china.huawei.com> <9d8d6a84-1220-2e61-dbdc-b86d5e348bef@redhat.com> <292d3a97-4dc9-6678-6a4f-acb5856e91f7@reactos.org> From: Paolo Bonzini Message-ID: <61e448f4-bfb0-e471-954d-0b2915f7950f@redhat.com> Date: Thu, 17 Nov 2016 12:48:29 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: P J P , =?UTF-8?Q?Herv=c3=a9_Poussineau?= Cc: "Gonglei (Arei)" , Qemu Developers , Huawei PSIRT , Aurelien Jarno , "Michael S. Tsirkin" On 16/11/2016 07:29, P J P wrote: > +-- On Wed, 16 Nov 2016, Herv=E9 Poussineau wrote --+ > | I don't have any datasheet for this device either, so I tested with r= eal=20 > | programs. Those initialize itr field to either 0 or to 9, so your mas= k=20 > | doesn't change anything. > |=20 > | Tested-by: Herv=E9 Poussineau >=20 > Thank you so much. To confirm, do we need to update the mask to maybe= =20 > 0x000F? It's not needed if you change it as suggested elsewhere in the thread. timer_mod(s->periodic_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + NANOSECONDS_PER_SECOND / 1000 * (s->itr + 1)); Thanks, Paolo > | > > > case 0x0228: > | > > > - s->itr =3D val; > | > > > + s->itr =3D val & 0x01FF; > | > > > qemu_irq_lower(s->timer_irq);