From: "Michael S. Tsirkin" <mst@redhat.com>
To: Graeme Gregory <graeme.gregory@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Shannon Zhao <shannon.zhao@linaro.org>,
linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCH] virtio_mmio: add ACPI probing
Date: Tue, 28 Jul 2015 13:08:59 +0300 [thread overview]
Message-ID: <20150728130604-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1438076642-12080-1-git-send-email-graeme.gregory@linaro.org>
On Tue, Jul 28, 2015 at 10:44:02AM +0100, Graeme Gregory wrote:
> Added the match table and pointers for ACPI probing to the driver.
>
> This uses the same identifier for virt devices as being used for qemu
> ARM64 ACPI support.
>
> http://git.linaro.org/people/shannon.zhao/qemu.git/commit/d0bf1955a3ecbab4b51d46f8c5dda02b7e14a17e
>
> Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
> ---
> drivers/virtio/virtio_mmio.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
> index 10189b5..f499d9d 100644
> --- a/drivers/virtio/virtio_mmio.c
> +++ b/drivers/virtio/virtio_mmio.c
> @@ -58,6 +58,7 @@
>
> #define pr_fmt(fmt) "virtio-mmio: " fmt
>
> +#include <linux/acpi.h>
> #include <linux/highmem.h>
> #include <linux/interrupt.h>
> #include <linux/io.h>
> @@ -732,12 +733,21 @@ static struct of_device_id virtio_mmio_match[] = {
> };
> MODULE_DEVICE_TABLE(of, virtio_mmio_match);
>
> +#ifdef CONFIG_ACPI
> +static const struct acpi_device_id virtio_mmio_acpi_match[] = {
> + { "LNRO0005", },
> + { }
> +};
Hmm - we have reserved QEMUXXXX in ASWG explicitly for this purpose.
Pater - do you think it's a good idea to change this before QEMU 2.4
is released?
> +MODULE_DEVICE_TABLE(acpi, virtio_mmio_acpi_match);
> +#endif
> +
> static struct platform_driver virtio_mmio_driver = {
> .probe = virtio_mmio_probe,
> .remove = virtio_mmio_remove,
> .driver = {
> .name = "virtio-mmio",
> .of_match_table = virtio_mmio_match,
> + .acpi_match_table = ACPI_PTR(virtio_mmio_acpi_match),
> },
> };
>
> --
> 2.1.4
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Graeme Gregory <graeme.gregory@linaro.org>
Cc: virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org,
"Shannon Zhao" <shannon.zhao@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: Re: [PATCH] virtio_mmio: add ACPI probing
Date: Tue, 28 Jul 2015 13:08:59 +0300 [thread overview]
Message-ID: <20150728130604-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1438076642-12080-1-git-send-email-graeme.gregory@linaro.org>
On Tue, Jul 28, 2015 at 10:44:02AM +0100, Graeme Gregory wrote:
> Added the match table and pointers for ACPI probing to the driver.
>
> This uses the same identifier for virt devices as being used for qemu
> ARM64 ACPI support.
>
> http://git.linaro.org/people/shannon.zhao/qemu.git/commit/d0bf1955a3ecbab4b51d46f8c5dda02b7e14a17e
>
> Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
> ---
> drivers/virtio/virtio_mmio.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
> index 10189b5..f499d9d 100644
> --- a/drivers/virtio/virtio_mmio.c
> +++ b/drivers/virtio/virtio_mmio.c
> @@ -58,6 +58,7 @@
>
> #define pr_fmt(fmt) "virtio-mmio: " fmt
>
> +#include <linux/acpi.h>
> #include <linux/highmem.h>
> #include <linux/interrupt.h>
> #include <linux/io.h>
> @@ -732,12 +733,21 @@ static struct of_device_id virtio_mmio_match[] = {
> };
> MODULE_DEVICE_TABLE(of, virtio_mmio_match);
>
> +#ifdef CONFIG_ACPI
> +static const struct acpi_device_id virtio_mmio_acpi_match[] = {
> + { "LNRO0005", },
> + { }
> +};
Hmm - we have reserved QEMUXXXX in ASWG explicitly for this purpose.
Pater - do you think it's a good idea to change this before QEMU 2.4
is released?
> +MODULE_DEVICE_TABLE(acpi, virtio_mmio_acpi_match);
> +#endif
> +
> static struct platform_driver virtio_mmio_driver = {
> .probe = virtio_mmio_probe,
> .remove = virtio_mmio_remove,
> .driver = {
> .name = "virtio-mmio",
> .of_match_table = virtio_mmio_match,
> + .acpi_match_table = ACPI_PTR(virtio_mmio_acpi_match),
> },
> };
>
> --
> 2.1.4
next prev parent reply other threads:[~2015-07-28 10:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 9:44 [PATCH] virtio_mmio: add ACPI probing Graeme Gregory
2015-07-28 10:08 ` Michael S. Tsirkin [this message]
2015-07-28 10:08 ` Michael S. Tsirkin
2015-07-28 10:12 ` Peter Maydell
2015-07-28 10:12 ` Peter Maydell
2015-07-28 10:27 ` Michael S. Tsirkin
2015-07-28 10:27 ` Michael S. Tsirkin
2015-07-28 10:33 ` G Gregory
2015-07-28 10:33 ` G Gregory
2015-07-29 17:52 ` Peter Maydell
2015-07-29 17:52 ` Peter Maydell
2015-07-29 18:03 ` Michael S. Tsirkin
2015-07-29 18:03 ` Michael S. Tsirkin
2015-07-28 20:12 ` Peter Maydell
2015-07-28 20:12 ` Peter Maydell
2015-07-28 20:28 ` G Gregory
2015-07-28 21:10 ` Peter Maydell
2015-07-28 21:10 ` Peter Maydell
2015-07-29 2:01 ` Shannon Zhao
2015-07-29 10:01 ` Michael S. Tsirkin
2015-07-29 10:01 ` Michael S. Tsirkin
2015-07-29 2:01 ` Shannon Zhao
2015-07-28 20:28 ` G Gregory
2015-07-29 18:17 ` Michael S. Tsirkin
2015-08-27 14:55 ` Graeme Gregory
2015-08-27 14:55 ` Graeme Gregory
2015-07-29 18:17 ` Michael S. Tsirkin
-- strict thread matches above, loose matches on Subject: below --
2015-07-28 9:44 Graeme Gregory
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=20150728130604-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=graeme.gregory@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.maydell@linaro.org \
--cc=shannon.zhao@linaro.org \
--cc=virtualization@lists.linux-foundation.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 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.