From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-arm] [PATCH 1/8] memory.h: Move MemTxResult type to memattrs.h
Date: Sat, 5 Aug 2017 02:59:49 +0200 [thread overview]
Message-ID: <20170805005949.GY4859@toto> (raw)
In-Reply-To: <1501867249-1924-2-git-send-email-peter.maydell@linaro.org>
On Fri, Aug 04, 2017 at 06:20:42PM +0100, Peter Maydell wrote:
> Move the MemTxResult type to memattrs.h. We're going to want to
> use it in cpu/qom.h, which doesn't want to include all of
> memory.h. In practice MemTxResult and MemTxAttrs are pretty
> closely linked since both are used for the new-style
> read_with_attrs and write_with_attrs callbacks, so memattrs.h
> is a reasonable home for this rather than creating a whole
> new header file for it.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> ---
> include/exec/memattrs.h | 10 ++++++++++
> include/exec/memory.h | 10 ----------
> 2 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h
> index e601061..d4a1642 100644
> --- a/include/exec/memattrs.h
> +++ b/include/exec/memattrs.h
> @@ -46,4 +46,14 @@ typedef struct MemTxAttrs {
> */
> #define MEMTXATTRS_UNSPECIFIED ((MemTxAttrs) { .unspecified = 1 })
>
> +/* New-style MMIO accessors can indicate that the transaction failed.
> + * A zero (MEMTX_OK) response means success; anything else is a failure
> + * of some kind. The memory subsystem will bitwise-OR together results
> + * if it is synthesizing an operation from multiple smaller accesses.
> + */
> +#define MEMTX_OK 0
> +#define MEMTX_ERROR (1U << 0) /* device returned an error */
> +#define MEMTX_DECODE_ERROR (1U << 1) /* nothing at that address */
> +typedef uint32_t MemTxResult;
> +
> #endif
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index 400dd44..1dcd312 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -112,16 +112,6 @@ static inline void iommu_notifier_init(IOMMUNotifier *n, IOMMUNotify fn,
> n->end = end;
> }
>
> -/* New-style MMIO accessors can indicate that the transaction failed.
> - * A zero (MEMTX_OK) response means success; anything else is a failure
> - * of some kind. The memory subsystem will bitwise-OR together results
> - * if it is synthesizing an operation from multiple smaller accesses.
> - */
> -#define MEMTX_OK 0
> -#define MEMTX_ERROR (1U << 0) /* device returned an error */
> -#define MEMTX_DECODE_ERROR (1U << 1) /* nothing at that address */
> -typedef uint32_t MemTxResult;
> -
> /*
> * Memory region callbacks
> */
> --
> 2.7.4
>
>
WARNING: multiple messages have this Message-ID (diff)
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org,
Richard Henderson <rth@twiddle.net>,
patches@linaro.org
Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH 1/8] memory.h: Move MemTxResult type to memattrs.h
Date: Sat, 5 Aug 2017 02:59:49 +0200 [thread overview]
Message-ID: <20170805005949.GY4859@toto> (raw)
In-Reply-To: <1501867249-1924-2-git-send-email-peter.maydell@linaro.org>
On Fri, Aug 04, 2017 at 06:20:42PM +0100, Peter Maydell wrote:
> Move the MemTxResult type to memattrs.h. We're going to want to
> use it in cpu/qom.h, which doesn't want to include all of
> memory.h. In practice MemTxResult and MemTxAttrs are pretty
> closely linked since both are used for the new-style
> read_with_attrs and write_with_attrs callbacks, so memattrs.h
> is a reasonable home for this rather than creating a whole
> new header file for it.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> ---
> include/exec/memattrs.h | 10 ++++++++++
> include/exec/memory.h | 10 ----------
> 2 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h
> index e601061..d4a1642 100644
> --- a/include/exec/memattrs.h
> +++ b/include/exec/memattrs.h
> @@ -46,4 +46,14 @@ typedef struct MemTxAttrs {
> */
> #define MEMTXATTRS_UNSPECIFIED ((MemTxAttrs) { .unspecified = 1 })
>
> +/* New-style MMIO accessors can indicate that the transaction failed.
> + * A zero (MEMTX_OK) response means success; anything else is a failure
> + * of some kind. The memory subsystem will bitwise-OR together results
> + * if it is synthesizing an operation from multiple smaller accesses.
> + */
> +#define MEMTX_OK 0
> +#define MEMTX_ERROR (1U << 0) /* device returned an error */
> +#define MEMTX_DECODE_ERROR (1U << 1) /* nothing at that address */
> +typedef uint32_t MemTxResult;
> +
> #endif
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index 400dd44..1dcd312 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -112,16 +112,6 @@ static inline void iommu_notifier_init(IOMMUNotifier *n, IOMMUNotify fn,
> n->end = end;
> }
>
> -/* New-style MMIO accessors can indicate that the transaction failed.
> - * A zero (MEMTX_OK) response means success; anything else is a failure
> - * of some kind. The memory subsystem will bitwise-OR together results
> - * if it is synthesizing an operation from multiple smaller accesses.
> - */
> -#define MEMTX_OK 0
> -#define MEMTX_ERROR (1U << 0) /* device returned an error */
> -#define MEMTX_DECODE_ERROR (1U << 1) /* nothing at that address */
> -typedef uint32_t MemTxResult;
> -
> /*
> * Memory region callbacks
> */
> --
> 2.7.4
>
>
next prev parent reply other threads:[~2017-08-05 1:00 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 17:20 [Qemu-arm] [PATCH 0/8] Implement ARM external abort handling Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 17:20 ` [Qemu-arm] [PATCH 1/8] memory.h: Move MemTxResult type to memattrs.h Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 17:47 ` [Qemu-arm] " Richard Henderson
2017-08-04 17:47 ` [Qemu-devel] " Richard Henderson
2017-08-05 0:59 ` Edgar E. Iglesias [this message]
2017-08-05 0:59 ` [Qemu-devel] [Qemu-arm] " Edgar E. Iglesias
2017-08-07 23:11 ` [Qemu-arm] [Qemu-devel] " Alistair Francis
2017-08-07 23:11 ` [Qemu-devel] [Qemu-arm] " Alistair Francis
2017-08-04 17:20 ` [Qemu-arm] [PATCH 2/8] cpu: Define new cpu_transaction_failed() hook Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 18:42 ` [Qemu-arm] " Richard Henderson
2017-08-04 18:42 ` [Qemu-devel] " Richard Henderson
2017-08-05 1:06 ` [Qemu-arm] " Edgar E. Iglesias
2017-08-05 1:06 ` [Qemu-devel] " Edgar E. Iglesias
2017-08-05 16:51 ` Peter Maydell
2017-08-05 16:51 ` [Qemu-devel] " Peter Maydell
2017-08-05 1:12 ` Edgar E. Iglesias
2017-08-05 1:12 ` [Qemu-devel] " Edgar E. Iglesias
2017-08-05 17:18 ` Peter Maydell
2017-08-05 17:18 ` [Qemu-devel] " Peter Maydell
2017-08-04 17:20 ` [Qemu-arm] [PATCH 3/8] cputlb: Support generating CPU exceptions on memory transaction failures Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-05 1:15 ` [Qemu-arm] " Edgar E. Iglesias
2017-08-05 1:15 ` [Qemu-devel] " Edgar E. Iglesias
2017-12-13 16:39 ` Peter Maydell
2017-12-13 16:39 ` [Qemu-devel] " Peter Maydell
2017-12-14 9:03 ` Paolo Bonzini
2017-12-14 9:03 ` [Qemu-devel] " Paolo Bonzini
2017-08-04 17:20 ` [Qemu-arm] [PATCH 4/8] boards.h: Define new flag ignore_memory_transaction_failures Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 18:09 ` [Qemu-arm] " Philippe Mathieu-Daudé
2017-08-04 18:09 ` [Qemu-devel] " Philippe Mathieu-Daudé
2017-08-04 19:23 ` Richard Henderson
2017-08-05 10:13 ` Peter Maydell
2017-08-05 10:13 ` Peter Maydell
2017-08-17 10:25 ` Peter Maydell
2017-08-17 10:25 ` [Qemu-devel] " Peter Maydell
2017-08-22 3:45 ` Philippe Mathieu-Daudé
2017-08-22 3:45 ` [Qemu-devel] " Philippe Mathieu-Daudé
2017-08-22 8:36 ` Peter Maydell
2017-08-22 8:36 ` [Qemu-devel] " Peter Maydell
[not found] ` <CAFEAcA_rSqsrfd_qJijtPFRe1qKEA=JiyHE+3J5atAgxAX8NBg@mail.gmail.com>
2017-08-24 20:28 ` Richard Henderson
2017-08-25 12:02 ` Peter Maydell
2017-08-05 10:29 ` Peter Maydell
2017-08-05 10:29 ` [Qemu-devel] " Peter Maydell
2017-08-05 1:23 ` Edgar E. Iglesias
2017-08-05 1:23 ` [Qemu-devel] " Edgar E. Iglesias
2017-08-04 17:20 ` [Qemu-arm] [PATCH 5/8] hw/arm: Set ignore_memory_transaction_failures for most ARM boards Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-05 1:24 ` [Qemu-arm] " Edgar E. Iglesias
2017-08-05 1:24 ` [Qemu-devel] " Edgar E. Iglesias
2017-08-04 17:20 ` [Qemu-arm] [PATCH 6/8] target/arm: Factor out fault delivery code Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 20:10 ` [Qemu-arm] " Richard Henderson
2017-08-04 20:10 ` [Qemu-devel] " Richard Henderson
2017-08-05 1:40 ` [Qemu-arm] " Edgar E. Iglesias
2017-08-05 1:40 ` [Qemu-devel] " Edgar E. Iglesias
2017-08-04 17:20 ` [Qemu-arm] [PATCH 7/8] target/arm: Allow deliver_fault() caller to specify EA bit Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 20:15 ` [Qemu-arm] " Richard Henderson
2017-08-04 20:15 ` [Qemu-devel] " Richard Henderson
2017-08-05 1:45 ` [Qemu-devel] [Qemu-arm] " Edgar E. Iglesias
2017-08-05 1:45 ` Edgar E. Iglesias
2017-08-04 17:20 ` [Qemu-arm] [PATCH 8/8] target/arm: Implement new do_transaction_failed hook Peter Maydell
2017-08-04 17:20 ` [Qemu-devel] " Peter Maydell
2017-08-04 20:26 ` [Qemu-arm] " Richard Henderson
2017-08-04 20:26 ` [Qemu-devel] " Richard Henderson
2017-08-05 1:44 ` [Qemu-arm] " Edgar E. Iglesias
2017-08-05 1:44 ` [Qemu-devel] " Edgar E. Iglesias
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=20170805005949.GY4859@toto \
--to=edgar.iglesias@gmail.com \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.