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

Re: [PATCH v2 4/8] xen/arm: Remove support for MSI on SMMUv3


  • To: Julien Grall <julien@xxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Thu, 3 Dec 2020 12:59:22 +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=VYGW/pOXP38DWcAUaDYijjkZxd8MUBtl4szVtA1Qfss=; b=PM74SHrfcPp+YYObxxq5lFGEyhnryEXw95836pT7U6hbDK+orj0RLw0x5LtVyMGHo+JqQCU7/Sx91xTXxk751e6RddXC0qHvtbUS5dI7cI5kInTa70Jq5WppQg6ooLNhzFlZ7NRTOllZyu3e8cJB8CwzOQUsL0H5+FgqdSaT4+C+tDkhase+JFKmgzla3FGdCNN0H7XZVhKX5XwAQP7OBE5jvUHmiO7VqXaHbLRki/cVq8U8ExY+kfrA0LXq9FX2iu6B0JjmEkn2do0EV4RFYwO2+lCEiknJzEufYyWWEgc/53l/PjrGJh2loSePRw4CSR8N6O82xEtwGRVK86y/XQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=exEUrM5JQjvloBIXHy+l+4MIh/XVTRQysRkr1cpqpmlifleBMJAUYnSdEjVseYloK+X2pM9v9q21Xujm+jU7tcUnIpY1rSJg918uEqOionNic1MoBjPkFTJ9Hgva81MpvYdlLm/5Fd+dulnIOkTFdJKrDJMBXgG3ji18DG7L2DZzMe/yohFqfpaFppQmhh0nBQ530ArR73pgsOPfp2LzeYU3Q7t0Ojy9GmjAhQ48zN4axBFNZrhmKyaA7C0vRNG4B/0mySEAR1+CI8yafSHmPoX/vYFj0e8box1DFnzQIVnI3/wjNi84bfOQpM+E0NM4AqrV4fGo96Uy3J0MBfNuGQ==
  • Authentication-results-original: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 03 Dec 2020 12:59:47 +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: AQHWxBX8l+Fkiiynvkqd+dcwplqzQKni/UOAgAAB/QCAANIPAIAAEHgAgAF+SgA=
  • Thread-topic: [PATCH v2 4/8] xen/arm: Remove support for MSI on SMMUv3

Hello Julien,

> On 2 Dec 2020, at 2:11 pm, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi Rahul,
> 
> On 02/12/2020 13:12, Rahul Singh wrote:
>> Hello Stefano,
>>> On 2 Dec 2020, at 12:40 am, Stefano Stabellini <sstabellini@xxxxxxxxxx> 
>>> wrote:
>>> 
>>> On Tue, 1 Dec 2020, Stefano Stabellini wrote:
>>>> On Thu, 26 Nov 2020, Rahul Singh wrote:
>>>>> XEN does not support MSI on ARM platforms, therefore remove the MSI
>>>>> support from SMMUv3 driver.
>>>>> 
>>>>> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
>>>> 
>>>> I wonder if it makes sense to #ifdef CONFIG_MSI this code instead of
>>>> removing it completely.
>>> 
>>> One more thought: could this patch be achieved by reverting
>>> 166bdbd23161160f2abcea70621adba179050bee ? If this patch could be done
>>> by a couple of revert, it would be great to say it in the commit
>>> message.
>>> 
>>  Ok will add in next version.
>>> 
>>>> In the past, we tried to keep the entire file as textually similar to
>>>> the original Linux driver as possible to make it easier to backport
>>>> features and fixes. So, in this case we would probably not even used an
>>>> #ifdef but maybe something like:
>>>> 
>>>>  if (/* msi_enabled */ 0)
>>>>      return;
>>>> 
>>>> at the beginning of arm_smmu_setup_msis.
>>>> 
>>>> 
>>>> However, that strategy didn't actually work very well because backports
>>>> have proven difficult to do anyway. So at that point we might as well at
>>>> least have clean code in Xen and do the changes properly.
> 
> It was difficult because Linux decided to rework how IOMMU drivers works. I 
> agree the risk is still there and therefore clean code would be better with 
> some caveats (see below).
> 
>> Main reason to remove the feature/code that is not usable in XEN is to have 
>> a clean code.
> 
> I agree that short term this feature will not be usable. However, I think we 
> need to think about {medium, long}-term plan to avoid extra effort in the 
> future because the driver evolve in a way making the revert of revert 
> impossible.
> 
> Therefore I would prefer to keep both the MSI and PCI ATS present as they are 
> going to be useful/necessary on some platforms. It doesn't matter that they 
> don't work because the driver will be in tech preview.

Ok. As Stefano also agreed the same I will keep the PC ATS and MSI 
functionality in next version.

Regards,
Rahul

> 
> Cheers,
> 
> -- 
> Julien Grall




 


Rackspace

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