[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value |
Date: |
Thu, 17 Nov 2016 12:48:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 16/11/2016 07:29, P J P wrote:
> +-- On Wed, 16 Nov 2016, Hervé Poussineau wrote --+
> | I don't have any datasheet for this device either, so I tested with real
> | programs. Those initialize itr field to either 0 or to 9, so your mask
> | doesn't change anything.
> |
> | Tested-by: Hervé Poussineau <address@hidden>
>
> Thank you so much. To confirm, do we need to update the mask to maybe
> 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 = val;
> | > > > + s->itr = val & 0x01FF;
> | > > > qemu_irq_lower(s->timer_irq);