[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that ha
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that handle IO |
Date: |
Tue, 26 Jun 2018 21:55:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 2018-06-25 15:12, Gerd Hoffmann wrote:
> Currently, the HDA device tries to sync itself with the QEMU audio
> backend by waiting for the guest driver to handle buffer completion
> interrupts. This causes the backend to often read too much data from the
> device, as well as running out of data whenever the guest takes too long
> to handle the interrupt.
>
> According to the HDA specification, the guest is also not required to
> use interrupts, but can also sync itself by polling the LPIB registers.
>
> This patch will introduce high frequency (1000Hz) timers that interface
> with the device and allow for much smoother emulation of the LPIB
> registers. Since the timing is now provided by these timers, the need
> to wait for buffer completion interrupts also ceases.
>
> Signed-off-by: Martin Schrodt <address@hidden>
> Signed-off-by: Gerd Hoffmann <address@hidden>
> Message-id: address@hidden
> Message-id: address@hidden
>
> [ kraxel: keep old code for compatibility with older qemu versions,
> add property to switch code paths at runtime ]
> [ kraxel: new code is disabled by default, use-timer=on enables it ]
>
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> hw/audio/hda-codec.c | 263
> ++++++++++++++++++++++++++++++++++++++++++++++-----
> hw/audio/intel-hda.c | 7 --
> 2 files changed, 237 insertions(+), 33 deletions(-)
This patch breaks compilation on clang with -m32 for me, because I
apparently I don't have 64 bit atomics there. Should there be
CONFIG_ATOMIC64 guards and handling for when that isn't defined?
Max
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PULL 0/6] Audio 20180625 patches, Gerd Hoffmann, 2018/06/25
- [Qemu-devel] [PULL 3/6] audio/hda: tweak timer adjust logic, Gerd Hoffmann, 2018/06/25
- [Qemu-devel] [PULL 2/6] audio/hda: turn some dprintfs into trace points, Gerd Hoffmann, 2018/06/25
- [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that handle IO, Gerd Hoffmann, 2018/06/25
- Re: [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that handle IO,
Max Reitz <=
- Re: [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that handle IO, Gerd Hoffmann, 2018/06/27
- Re: [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that handle IO, Thomas Huth, 2018/06/27
- [Qemu-devel] Drop support for 32bit hosts in qemu? (was: [PULL 1/6] audio/hda: create millisecond timers that handle IO), Markus Armbruster, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu?, Thomas Huth, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu?, Gerd Hoffmann, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu?, Alex Bennée, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu?, Thomas Huth, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu? (was: [PULL 1/6] audio/hda: create millisecond timers that handle IO), BALATON Zoltan, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu? (was: [PULL 1/6] audio/hda: create millisecond timers that handle IO), Gerd Hoffmann, 2018/06/27
- Re: [Qemu-devel] Drop support for 32bit hosts in qemu? (was: [PULL 1/6] audio/hda: create millisecond timers that handle IO), Thomas Huth, 2018/06/27