From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
qemu-devel@nongnu.org
Cc: arikalo@wavecomp.com, hpoussin@reactos.org, f4bug@amsat.org,
amarkovic@wavecomp.com
Subject: Re: [Qemu-devel] [PATCH 1/2] dma/rc4030: Fix off-by-one error in specified memory region size
Date: Tue, 25 Jun 2019 16:39:53 +0200 [thread overview]
Message-ID: <fdd0b7d8-270d-bdc6-ab56-f1925f82e97b@redhat.com> (raw)
In-Reply-To: <1561472838-32272-2-git-send-email-aleksandar.markovic@rt-rk.com>
On 6/25/19 4:27 PM, Aleksandar Markovic wrote:
> From: Aleksandar Markovic <amarkovic@wavecomp.com>
>
> The size is one byte less than it should be:
>
> address-space: rc4030-dma
> 0000000000000000-00000000fffffffe (prio 0, i/o): rc4030.dma
>
> rc4030 is used in MIPS Jazz board context.
Ah thanks :) I was planing to send this once at home tonight.
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
(qemu) info mtree
...
address-space: rc4030-dma
0000000000000000-00000000ffffffff (prio 0, i/o): rc4030.dma
address-space: dp8393x
0000000000000000-00000000ffffffff (prio 0, i/o): rc4030.dma
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> hw/dma/rc4030.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c
> index 6ccafec..88ff271 100644
> --- a/hw/dma/rc4030.c
> +++ b/hw/dma/rc4030.c
> @@ -23,6 +23,7 @@
> */
>
> #include "qemu/osdep.h"
> +#include "qemu/units.h"
> #include "hw/hw.h"
> #include "hw/mips/mips.h"
> #include "hw/sysbus.h"
> @@ -678,7 +679,7 @@ static void rc4030_realize(DeviceState *dev, Error **errp)
>
> memory_region_init_iommu(&s->dma_mr, sizeof(s->dma_mr),
> TYPE_RC4030_IOMMU_MEMORY_REGION,
> - o, "rc4030.dma", UINT32_MAX);
> + o, "rc4030.dma", 4 * GiB);
> address_space_init(&s->dma_as, MEMORY_REGION(&s->dma_mr), "rc4030-dma");
> }
>
>
next prev parent reply other threads:[~2019-06-25 14:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-25 14:27 [Qemu-devel] [PATCH 0/2] target/mips: jazz: rc4030: Minor cleanups Aleksandar Markovic
2019-06-25 14:27 ` [Qemu-devel] [PATCH 1/2] dma/rc4030: Fix off-by-one error in specified memory region size Aleksandar Markovic
2019-06-25 14:34 ` Aleksandar Rikalo
2019-06-25 14:39 ` Philippe Mathieu-Daudé [this message]
2019-07-02 4:43 ` Hervé Poussineau
2019-06-25 14:27 ` [Qemu-devel] [PATCH 2/2] dma/rc4030: Minor code style cleanup Aleksandar Markovic
2019-06-25 14:33 ` Aleksandar Rikalo
2019-06-25 14:40 ` Philippe Mathieu-Daudé
2019-07-02 4:43 ` Hervé Poussineau
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=fdd0b7d8-270d-bdc6-ab56-f1925f82e97b@redhat.com \
--to=philmd@redhat.com \
--cc=aleksandar.markovic@rt-rk.com \
--cc=amarkovic@wavecomp.com \
--cc=arikalo@wavecomp.com \
--cc=f4bug@amsat.org \
--cc=hpoussin@reactos.org \
--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).