qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH target-arm v1 6/7] dma/pl330: Fix buffer depth
Date: Wed, 12 Feb 2014 18:36:09 +0000	[thread overview]
Message-ID: <CAFEAcA-aJSx0ifwVXMQ-pKXtBbLU_vUvY5DjwrcmOdQsSfQzyw@mail.gmail.com> (raw)
In-Reply-To: <ab2b8c96ce4e8aaaadcd5f2dcf99c6c3cfdf8f16.1392099904.git.peter.crosthwaite@xilinx.com>

On 11 February 2014 06:31, Peter Crosthwaite
<peter.crosthwaite@xilinx.com> wrote:
> This is the product of the data-width and the depth arguments, I.e the
> depth of the FIFO is in terms of data entries and not bytes (which is
> what the original implementation was suggesting). Fix.
>
> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> ---
>
>  hw/dma/pl330.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c
> index 303f8b8..fe437cb 100644
> --- a/hw/dma/pl330.c
> +++ b/hw/dma/pl330.c
> @@ -1606,7 +1606,7 @@ static void pl330_realize(DeviceState *dev, Error **errp)
>
>      pl330_queue_init(&s->read_queue, s->rd_q_dep, s);
>      pl330_queue_init(&s->write_queue, s->wr_q_dep, s);
> -    pl330_fifo_init(&s->fifo, s->data_buffer_dep);
> +    pl330_fifo_init(&s->fifo, s->data_width / 4  * s->data_buffer_dep);

Stray double space after '4'.

-- PMM

  reply	other threads:[~2014-02-12 18:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11  6:28 [Qemu-devel] [PATCH target-arm v1 0/7] PL330 Changes Peter Crosthwaite
2014-02-11  6:28 ` [Qemu-devel] [PATCH target-arm v1 1/7] dma/pl330: Delete overly verbose debug printf Peter Crosthwaite
2014-02-11  6:29 ` [Qemu-devel] [PATCH target-arm v1 2/7] dma/pl330: Fix misleading type Peter Crosthwaite
2014-02-11  6:29 ` [Qemu-devel] [PATCH target-arm v1 3/7] dma/pl330: printf format type sweep Peter Crosthwaite
2014-02-11  6:30 ` [Qemu-devel] [PATCH target-arm v1 4/7] dma/pl330: Rename parent_obj Peter Crosthwaite
2014-02-11  6:30 ` [Qemu-devel] [PATCH target-arm v1 5/7] dma/pl330: Add event debugging printfs Peter Crosthwaite
2014-02-11  6:31 ` [Qemu-devel] [PATCH target-arm v1 6/7] dma/pl330: Fix buffer depth Peter Crosthwaite
2014-02-12 18:36   ` Peter Maydell [this message]
2014-02-11  6:32 ` [Qemu-devel] [PATCH target-arm v1 7/7] dma/pl330: implement dmaadnh instruction Peter Crosthwaite
2014-02-12 19:15   ` Peter Maydell
2014-02-12 19:16 ` [Qemu-devel] [PATCH target-arm v1 0/7] PL330 Changes Peter Maydell

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=CAFEAcA-aJSx0ifwVXMQ-pKXtBbLU_vUvY5DjwrcmOdQsSfQzyw@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=qemu-devel@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).