[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 0/8] xen/arm: Add support for SMMUv3 driver


  • To: Julien Grall <julien@xxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Mon, 14 Dec 2020 20:01:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k8OenHzXt6Q1vtDdwB5EEOrKrVTMPFSG0ASsxJqAA3U=; b=AfWTuBGwpMfXhDnbnDTf31qcpo7UrrbKKQKz4EUrDkqNBq6LBSoRhlumLuNYA2dsA3hRGtd1kJPasfKWJRRNMwxloovL+EURop2Bv6dQ8QnNIrXrbCGUNQ7ANVtYRchJQPAvoXeqSMicric/lltvT4PCgTiJje3ACA8WcD3S8Ad9VhTyXsaNR5rDM0vIXCahvxrRMoLcnd32F9x89pE9nR6urp8wf+yz7jR+h69VHAboOzO4O9o1JgdTAsNcXOaTrbdTThwn4CHJkYgtnQQKltQ4wYjFOJKCJsr8XkVDxs89VoX4lB46GW3cQmEXiTvkEqQtSmpxJlCf3R93fwxV6Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBmM6FgfzDFddi+nFbYWbiUzJQ6NBl4/IED4OqxE3mU/nEtbp2Hb0nnKelzt8YiLzsTixYwOtopMELdTZm8c0/NUBGHt9PyE7D1JyEaAWX53GfnfgdfWU6SKElynpdV7AGGzejS9tySSBu7bPUDCzunIeUabxb9Kk5GeS46JYV+xDMm+79Ow2yJGFPk7kyBR5igb8QVzxt7Rnm9fkl77cD+A9uBhj6XwKG8XQ7cBOmUxix0RQ6p/WGhWZYw6bc1vDLpz8qLnss5zOCkhjrxiGVVk2ywCsnRriF93ZuOI9dxsdGMUsiGgbInLdmkewq4jSFA8PBoYBYufZMcxOAtGNQ==
  • Authentication-results-original: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>, Paul Durrant <paul@xxxxxxx>
  • Delivery-date: Mon, 14 Dec 2020 20:01:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWzxWmv96s8jlSw0aSETONfL1Dbanx9eOAgAUTqAA=
  • Thread-topic: [PATCH v3 0/8] xen/arm: Add support for SMMUv3 driver

Hello Julien,Stefano

> On 11 Dec 2020, at 2:29 pm, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi Rahul,
> 
> On 10/12/2020 16:56, Rahul Singh wrote:
>> This patch series is v3 of the work to add support for the SMMUv3 driver.
>> Approach taken is to first merge the Linux copy of the SMMUv3 driver
>> (tag v5.8.18) and then modify the driver to build on XEN.
>> MSI and PCI ATS functionality are not supported. Code is not tested and
>> compiled. Code is guarded by the flag CONFIG_PCI_ATS and CONFIG_MSI to 
>> compile
>> the driver.
>> Code specific to Linux is removed from the driver to avoid dead code.
>> Driver is currently supported as tech preview.
>> Following functionality should be supported before driver is out for tech
>> preview
>> 1. Investigate the timing analysis of using spin lock in place of mutex when
>>    attaching a  device to SMMU.
>> 2. Merged the latest Linux SMMUv3 driver code once atomic operation is
>>    available in XEN.
>> 3. PCI ATS and MSI interrupts should be supported.
>> 4. Investigate side-effect of using tasklet in place of threaded IRQ and fix
>>    if any.
> In your last e-mail, you wrote that you would investigate and then come back 
> to use. It wasn't clear that this meant you will not deal with it in this 
> series.
> 

Yes, I will investigate the side-effect of using tasklet but not part of this 
patch series. It will be great if we proceed on this patch series as it is 
(using tasklet in place of threaded-IRQ).

>> 5. fallthorugh keyword should be supported.
> 
> This one should really be done now... It is not a complicated one...

Ok. I will implement in next version.
 
> 
>> 6. Implement the ffsll function in bitops.h file.

While implementing the code I found out that Linux is using the built-in 
function “__builtin_ffsll() “ for ffsll and there is no implementation 
available in Linux for ffsll.
If we implement the ffsll in XEN we will diverge from Linux. I am thinking of 
adding the below code in "xen/include/asm-arm/bitops.h”. 
Please suggest if it is okay?

static always_inline int ffsll(long long x)                                     
      
{                                                                               
    return __builtin_ffsll(x);                                                  
  
}

Regards,
Rahul

> 
> ... same here.
> 
> Cheers,
> 
> -- 
> Julien Grall


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.