From: Shanker Donthineni <shankerd@codeaurora.org>
To: Auger Eric <eric.auger@redhat.com>, Alexander Graf <agraf@suse.de>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Philip Elcan <pelcan@codeaurora.org>,
Vikram Sethi <vikrams@codeaurora.org>,
Eric Auger <eric.auger@linaro.org>,
qemu-devel <qemu-devel@nongnu.org>,
Kaya Sinan <okaya@codeaurora.org>,
Alex Williamson <alex.williamson@redhat.com>,
qemu-arm <qemu-arm@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2] hw/vfio/platform: Add Qualcomm Technologies, Inc HIDMA device support
Date: Fri, 19 Aug 2016 11:52:40 -0500 [thread overview]
Message-ID: <04969b6b-8de2-a6c8-3de4-e07003e94d6b@codeaurora.org> (raw)
In-Reply-To: <0e6787de-e1f8-5c58-5e4e-9a93a98893f1@redhat.com>
Eric/Alex,
Seems everyone was agreed, and add support for a generic vfio platform
device class. I'm going to drop this HIDMA patch since the new generic
vfio platform device class will cover.
Shanker
On 08/19/2016 06:43 AM, Auger Eric wrote:
> Hi Alex,
>
> On 19/08/2016 00:35, Alexander Graf wrote:
>>> On 18 Aug 2016, at 05:37, Auger Eric <eric.auger@redhat.com> wrote:
>>>
>>> Hi Shanker,
>>>
>>> Adding Alex in CC for (*)
>>>
>>> On 14/08/2016 17:42, Shanker Donthineni wrote:
>>>> This patch introduces the Qualcomm Technologies, Inc HIDMA device and
>>>> allows passthrough the host HIDMA device to a guest machine using the
>>>> vfio-platform framework.
>>>>
>>>> A platform device tree node is created for the guest machine which
>>>> contains the compat string 'qcom,hidma-1.0', mmio regions, active high
>>>> SPIs, and an optional property dma-coherent.
>>>>
>>>> Signed-off-by: Vikram Sethi <vikrams@codeaurora.org>
>>>> Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
>>>> ---
>>>> Changes sicnce v1:
>>>> combined patches [v1 1/2] and [v1 2/2].
>>> Some general comments:
>>> - I preferred the previous series organization where we had the
> creation
>>> of the VFIO device first and its sysbus-fdt dynamic instantiation in a
>>> separate patch.
>>>
>>> Peter requested sysbus-fdt stops growing and advised to split the fine
>>> into generic helpers and specific dt creation functions in separate
>>> files. This sounds the right moment to do it with looming new VFIO
> devices.
>>> (*) Also I am now reconsidering the relevance of creating specific VFIO
>>> devices per compat string. At the begining of VFIO QEMU integration
>>> history we made that choice, advised by Alex (Graf), considering the
>>> QEMU VFIO device could not be generic. With a little more experience
> now
>>> we could see the specialization is currently done in the dt creation
>>> function (sysbus-fdt) and in the kernel reset module. So I would now
>>> advocate using a non abstract base VFIO device that could be
>>> instantiated passing its compat string as property. Creating
>>> hw/vfio/qcom-hidma.c and include/hw/vfio/vfio-qcom-hidma.h then would
>>> become useless. Alex, what is your feeling now?
>> Back when we set up the rule we were concerned with a few things that a
> generic sysbus devices can’t implement properly:
>> * generic reset
>> * power control
>> * clock control
>>
>> I guess the first two are mostly a matter of the in-kernel driver, not
> the user space one. Clock control hopefully isn’t much of a thing with
> real hardware ;).
>> So yes, if you can make a generic driver work, I’m not opposed.
> Thank you for the confirmation!
>
> Best Regards
>
> Eric
>>
>> Alex
>>
--
Shanker Donthineni
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
prev parent reply other threads:[~2016-08-19 16:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-14 15:42 [Qemu-devel] [PATCH v2] hw/vfio/platform: Add Qualcomm Technologies, Inc HIDMA device support Shanker Donthineni
2016-08-15 16:03 ` Peter Maydell
2016-08-15 16:47 ` [Qemu-arm] " Sinan Kaya
2016-08-18 9:37 ` [Qemu-arm] [Qemu-devel] " Auger Eric
2016-08-18 13:52 ` Sinan Kaya
2016-08-18 22:35 ` Alexander Graf
2016-08-19 11:43 ` Auger Eric
2016-08-19 16:52 ` Shanker Donthineni [this message]
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=04969b6b-8de2-a6c8-3de4-e07003e94d6b@codeaurora.org \
--to=shankerd@codeaurora.org \
--cc=agraf@suse.de \
--cc=alex.williamson@redhat.com \
--cc=eric.auger@linaro.org \
--cc=eric.auger@redhat.com \
--cc=okaya@codeaurora.org \
--cc=pelcan@codeaurora.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vikrams@codeaurora.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).