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

Re: [PATCH] xen/arm: smmuv1: Revert associating the group pointer with the S2CR


  • To: Julien Grall <julien@xxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Fri, 16 Apr 2021 16:05:26 +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=8KFReuE0FmVr3GvtQBInnd0NKFlbfuUdNy9x3RKwJ6g=; b=ktDQtScD5ROVsUQN3YQ+5sGTqsP57aJHwugM8rgHUvTg3l/LCS0qUVFUfWa7M2+otOJYFhJcLmRQJFXdidav/CyFMikKmwMBbzcaEnd0R8vzdMJDo5LCqsM9eHTitjb1BNzuUphxLZrXKkrsMggo1dZD9DBqJMObZKAkaYuh55QpYuZfh3iu50plfyjcY9BBAyViiej1EmT4PWDWuGMziLrFjPFywWIqgSQ4E6xWOtR7TkSHSmHdmee+qeGulGuH/iVy6SsH1yMhardVIKwxZT9WBIMEV7v5e8/7zjZvRq+YWTsQlMOQq7lVNdlehA/arhqarvEG/qwD9Nu5XYfcXw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kuKpRaLkTCFwnM5nbDYbaBJZ7KRNfcTv9yMNTNNtK2Pq4W2lNtfNSNTCcHwXm3ZKYYp472ItpgT5EkUBJ0+IRa/VnDJje0XyHz+1uWK/v+d4JTxzO+cEDTgk1/coQ0htdRofqY71F6mpnKLj+xb50a+rCajBzBTWUQK1mq9MAUgpxZPqkDoceTFVo+Lz9S1Ilh43iuxE2xEUoeRkVseTIaulMyOlwuNdckURPFeV4OvHO6Xw6WxuftB7NzFsFJ075VxDXRwH7aMOB1v9VehySUVrz3oqMjagHRQ5ZZqCTuMPtdFQs3tuLitKGHOGN2a8V48H7VHqffilpbbOTjE6kw==
  • 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 <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 16 Apr 2021 16:05:44 +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: AQHXMrMxW8Hpcs9A7Ei4/6fuLjr236q3NfuAgAAHXICAAAYsgIAAC7YA
  • Thread-topic: [PATCH] xen/arm: smmuv1: Revert associating the group pointer with the S2CR

Hi Julein

> On 16 Apr 2021, at 4:23 pm, Julien Grall <julien@xxxxxxx> wrote:
> 
> 
> 
> On 16/04/2021 16:01, Rahul Singh wrote:
>> Hi Julien,
> 
> Hi Rahul,
> 
>>> On 16 Apr 2021, at 3:35 pm, Julien Grall <julien@xxxxxxx> wrote:
>>> 
>>> Hi,
>>> 
>>> On 16/04/2021 12:25, Rahul Singh wrote:
>>>> Revert the code that associates the group pointer with the S2CR as this
>>>> code causing an issue when the SMMU device has more than one master
>>>> device.
>>> 
>>> It is not clear to me why this change was first added. Are we missing any 
>>> feature when reverting it?
>> This feature was added when we backported the code from Linux to fix the 
>> stream match conflict issue
>> as part of commit "xen/arm: smmuv1: Intelligent SMR allocation”.
>> This is an extra feature added to allocate IOMMU group based on stream-id. 
>> If two device has the
>> same stream-id then we assign those devices to the same group. 
> 
> If we revert the patch, then it would not be possible to use the SMMU if two 
> devices use the same stream-id. Is that correct?

No. If we revert the patch we can use the SMMU if two devices use the same 
stream-id without any issue but each device will be in a separate group.This is 
same behaviour before the code is merged.
 
> 
>> This code was removed from Linux
>> later point in time when IOMMU group handling is done by Linux code not by a 
>> specific IOMMU driver.
> 
> Right.... But Linux still support that option. Is that correct?

Yes Linux support IOMMU groups handling at Linux code level and not by every 
IOMMU driver. 
That why I though when we add the support for IOMMU group at XEN level we can 
add this functionality.

> 
>> Therefore I think it is ok revert the code.
> 
> I am ok with the principle of (partially) reverting patch to unblock the 
> situation. But I have to admit, I don't quite understand why this is reverted 
> rather than fixed.

As I mention earlier I reverted this patch until we have proper support for 
IOMMU groups for ARM. Once we have IOMMU group support for ARM we can add this 
functionality.

Regards,
Rahul
> 
> Cheers,
> 
> -- 
> Julien Grall


 


Rackspace

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