Received: from eggs.gnu.org ([2001:4830:134:3::10]:46409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ban2M-0003Yn-J8 for qemu-devel@nongnu.org; Fri, 19 Aug 2016 12:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ban2K-0006ag-G7 for qemu-devel@nongnu.org; Fri, 19 Aug 2016 12:52:53 -0400 Reply-To: shankerd@codeaurora.org References: <1471189341-21103-1-git-send-email-shankerd@codeaurora.org> <68663F72-90AF-4F78-AD29-E182E3670D03@suse.de> <0e6787de-e1f8-5c58-5e4e-9a93a98893f1@redhat.com> From: Shanker Donthineni Message-ID: <04969b6b-8de2-a6c8-3de4-e07003e94d6b@codeaurora.org> Date: Fri, 19 Aug 2016 11:52:40 -0500 MIME-Version: 1.0 In-Reply-To: <0e6787de-e1f8-5c58-5e4e-9a93a98893f1@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] hw/vfio/platform: Add Qualcomm Technologies, Inc HIDMA device support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Auger Eric , Alexander Graf Cc: Peter Maydell , Philip Elcan , Vikram Sethi , Eric Auger , qemu-devel , Kaya Sinan , Alex Williamson , qemu-arm Eric/Alex, Seems everyone was agreed, and add support for a generic vfio platform=20 device class. I'm going to drop this HIDMA patch since the new generic=20 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 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 an= d >>>> allows passthrough the host HIDMA device to a guest machine using th= e >>>> 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 hi= gh >>>> SPIs, and an optional property dma-coherent. >>>> >>>> Signed-off-by: Vikram Sethi >>>> Signed-off-by: Shanker Donthineni >>>> --- >>>> 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 fin= e >>> 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 VF= IO >>> 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=92t 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=92t much of a thing wit= h > real hardware ;). >> So yes, if you can make a generic driver work, I=92m not opposed. > Thank you for the confirmation! > > Best Regards > > Eric >> >> Alex >> --=20 Shanker Donthineni Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Techno= logies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux= Foundation Collaborative Project.