From: Auger Eric <eric.auger@redhat.com>
To: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>,
qemu-devel@nongnu.org, qemu-arm@nongnu.org, imammedo@redhat.com,
peter.maydell@linaro.org, shannon.zhaosl@gmail.com,
sameo@linux.intel.com, sebastien.boeuf@intel.com
Cc: linuxarm@huawei.com, xuwei5@hisilicon.com
Subject: Re: [Qemu-devel] [PATCH v2 01/11] hw/acpi: Move constant definitions to header files
Date: Fri, 8 Mar 2019 17:09:18 +0100 [thread overview]
Message-ID: <7490ad1c-d4a6-ad5b-ebbf-c27a674d9629@redhat.com> (raw)
In-Reply-To: <20190308114218.26692-2-shameerali.kolothum.thodi@huawei.com>
Hi,
On 3/8/19 12:42 PM, Shameer Kolothum wrote:
> From: Sebastien Boeuf <sebastien.boeuf@intel.com>
>
> By moving the definition of memory hotplug related constants used
> by ACPI for both CPU and memory, this commits allows those to be
> used from other parts of the code.
Maybe elaborate on where you intend to use them.
>
> Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
> ---
> hw/acpi/memory_hotplug.c | 26 --------------------------
> include/hw/acpi/memory_hotplug.h | 26 ++++++++++++++++++++++++++
> 2 files changed, 26 insertions(+), 26 deletions(-)
>
> diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c
> index 921cad2..a6beb10 100644
> --- a/hw/acpi/memory_hotplug.c
> +++ b/hw/acpi/memory_hotplug.c
> @@ -8,32 +8,6 @@
> #include "qapi/error.h"
> #include "qapi/qapi-events-misc.h"
>
> -#define MEMORY_SLOTS_NUMBER "MDNR"
> -#define MEMORY_HOTPLUG_IO_REGION "HPMR"
> -#define MEMORY_SLOT_ADDR_LOW "MRBL"
> -#define MEMORY_SLOT_ADDR_HIGH "MRBH"
> -#define MEMORY_SLOT_SIZE_LOW "MRLL"
> -#define MEMORY_SLOT_SIZE_HIGH "MRLH"
> -#define MEMORY_SLOT_PROXIMITY "MPX"
> -#define MEMORY_SLOT_ENABLED "MES"
> -#define MEMORY_SLOT_INSERT_EVENT "MINS"
> -#define MEMORY_SLOT_REMOVE_EVENT "MRMV"
> -#define MEMORY_SLOT_EJECT "MEJ"
> -#define MEMORY_SLOT_SLECTOR "MSEL"
> -#define MEMORY_SLOT_OST_EVENT "MOEV"
> -#define MEMORY_SLOT_OST_STATUS "MOSC"
> -#define MEMORY_SLOT_LOCK "MLCK"
> -#define MEMORY_SLOT_STATUS_METHOD "MRST"
> -#define MEMORY_SLOT_CRS_METHOD "MCRS"
> -#define MEMORY_SLOT_OST_METHOD "MOST"
> -#define MEMORY_SLOT_PROXIMITY_METHOD "MPXM"
> -#define MEMORY_SLOT_EJECT_METHOD "MEJ0"
> -#define MEMORY_SLOT_NOTIFY_METHOD "MTFY"
> -#define MEMORY_SLOT_SCAN_METHOD "MSCN"
> -#define MEMORY_HOTPLUG_DEVICE "MHPD"
> -#define MEMORY_HOTPLUG_IO_LEN 24
> -#define MEMORY_DEVICES_CONTAINER "\\_SB.MHPC"
Do we really need to expose all of them. I just can see
MEMORY_SLOT_SCAN_METHOD used in hw/acpi/ged.c? Maybe I missed some though?
Also at the beginning I tried to find some specification details for
those stuff but I failed. It would be helpful for a non specialist
reader to add a comment that helps to understand what is part of a
specification (link?) and what is arbitrarily defined.
Thanks
Eric
> -
> static uint16_t memhp_io_base;
>
> static ACPIOSTInfo *acpi_memory_device_status(int slot, MemStatus *mdev)
> diff --git a/include/hw/acpi/memory_hotplug.h b/include/hw/acpi/memory_hotplug.h
> index 77c6576..fbfcbe6 100644
> --- a/include/hw/acpi/memory_hotplug.h
> +++ b/include/hw/acpi/memory_hotplug.h
> @@ -5,6 +5,32 @@
> #include "hw/acpi/acpi.h"
> #include "hw/acpi/aml-build.h"
>
> +#define MEMORY_SLOTS_NUMBER "MDNR"
> +#define MEMORY_HOTPLUG_IO_REGION "HPMR"
> +#define MEMORY_SLOT_ADDR_LOW "MRBL"
> +#define MEMORY_SLOT_ADDR_HIGH "MRBH"
> +#define MEMORY_SLOT_SIZE_LOW "MRLL"
> +#define MEMORY_SLOT_SIZE_HIGH "MRLH"
> +#define MEMORY_SLOT_PROXIMITY "MPX"
> +#define MEMORY_SLOT_ENABLED "MES"
> +#define MEMORY_SLOT_INSERT_EVENT "MINS"
> +#define MEMORY_SLOT_REMOVE_EVENT "MRMV"
> +#define MEMORY_SLOT_EJECT "MEJ"
> +#define MEMORY_SLOT_SLECTOR "MSEL"
> +#define MEMORY_SLOT_OST_EVENT "MOEV"
> +#define MEMORY_SLOT_OST_STATUS "MOSC"
> +#define MEMORY_SLOT_LOCK "MLCK"
> +#define MEMORY_SLOT_STATUS_METHOD "MRST"
> +#define MEMORY_SLOT_CRS_METHOD "MCRS"
> +#define MEMORY_SLOT_OST_METHOD "MOST"
> +#define MEMORY_SLOT_PROXIMITY_METHOD "MPXM"
> +#define MEMORY_SLOT_EJECT_METHOD "MEJ0"
> +#define MEMORY_SLOT_NOTIFY_METHOD "MTFY"
> +#define MEMORY_SLOT_SCAN_METHOD "MSCN"
> +#define MEMORY_HOTPLUG_DEVICE "MHPD"
> +#define MEMORY_HOTPLUG_IO_LEN 24
> +#define MEMORY_DEVICES_CONTAINER "\\_SB.MHPC"
> +
> /**
> * MemStatus:
> * @is_removing: the memory device in slot has been requested to be ejected.
>
next prev parent reply other threads:[~2019-03-08 16:09 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-08 11:42 [Qemu-devel] [PATCH v2 00/11] ARM virt: ACPI memory hotplug support Shameer Kolothum
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 01/11] hw/acpi: Move constant definitions to header files Shameer Kolothum
2019-03-08 16:09 ` Auger Eric [this message]
2019-03-08 17:16 ` Shameerali Kolothum Thodi
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 02/11] hw/acpi: Make ACPI IO address space configurable Shameer Kolothum
2019-03-08 16:13 ` Auger Eric
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 03/11] hw/acpi: Do not create memory hotplug method when handler is not defined Shameer Kolothum
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 04/11] hw/arm/virt: Add virtual ACPI device Shameer Kolothum
2019-03-11 13:24 ` Auger Eric
2019-03-11 17:36 ` Shameerali Kolothum Thodi
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 05/11] hw/arm/virt: Add memory hotplug framework Shameer Kolothum
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 06/11] hw/arm/virt: Add ACPI support for device memory cold-plug Shameer Kolothum
2019-03-11 13:32 ` Auger Eric
2019-03-11 17:37 ` Shameerali Kolothum Thodi
2019-03-11 17:58 ` Auger Eric
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 07/11] hw/arm/virt-acpi-build: Add PC-DIMM in SRAT Shameer Kolothum
2019-03-11 14:55 ` Igor Mammedov
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 08/11] hw/arm/boot: Expose the PC-DIMM nodes in the DT Shameer Kolothum
2019-03-11 14:58 ` Igor Mammedov
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 09/11] hw/acpi: Add ACPI Generic Event Device Support Shameer Kolothum
2019-03-11 20:23 ` Auger Eric
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 10/11] hw/arm/virt: Add GED device configuration and build aml Shameer Kolothum
2019-03-11 21:11 ` Auger Eric
2019-03-08 11:42 ` [Qemu-devel] [PATCH v2 11/11] hw/arm/virt: Add GED irq routing and Enable memory hotplug Shameer Kolothum
2019-03-08 15:54 ` [Qemu-devel] [PATCH v2 00/11] ARM virt: ACPI memory hotplug support Auger Eric
2019-03-08 16:00 ` Shameerali Kolothum Thodi
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=7490ad1c-d4a6-ad5b-ebbf-c27a674d9629@redhat.com \
--to=eric.auger@redhat.com \
--cc=imammedo@redhat.com \
--cc=linuxarm@huawei.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sameo@linux.intel.com \
--cc=sebastien.boeuf@intel.com \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=shannon.zhaosl@gmail.com \
--cc=xuwei5@hisilicon.com \
/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).