[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH 05/10] iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro
- To: Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
- Date: Tue, 14 Dec 2021 12:06:41 +0000
- Accept-language: ja-JP, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3W5IVQyfR/x1Llh/Gab+PDEOaMjzQAq4z29MrhmMMvs=; b=AhqLfxQ7s4oG6xUrrCq1AG7lR2IJxcTVLa1ee/RfcLhwNccB37zaOtJPu3W4Xkx4V3pKKrLWl6bAEJ0Vw1oCjsYGMNW3SromSoRXb31gRaHCLs7D2GnxlqkL167ri0q3vaOyM6UiSl0JkXeExEM2pzeC8DA/Yoz4adwlFAwBlNI/t5Jpk7wckzGJYfwM8IjJlOmmxAp9ozRYV2GgyxIA7AwY3U5cQAqRAO35QfJcIuNf1bgSHg7UH10cdjcF391sUwSeCTF7aLiZdQUArsKfBIi33kLQxKFvcULvsq/A2G9GjSiSUUD61/c+8kKhWP/hOOvx+Q6cFCZx+zB6vIgxNw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nMKwrQMcZWpYGtU3QfzqYxGUlnNK1BYK7v0g+NFOsdHtbn9SxdX9n7xS7J13P7jWifukKU4BCnIsPqkBNOvJ/9mp+dEHtwaR+ppI3PNdtbjTbi5cAOulm9Ecr0Zxc3cVu6CXhpc/of2qN+bDD4gkaM4rYrmIUKO8jJgC4EyWolh2PNssRr13KGTK3EPYqGoGy9T8aVEG3JVMFbIj4Zgjdt6WtV+7lGH5givNIasS0AQZeqbcdN9H65ikbUDGHvifJOCjdTn+mDm/quUKLJvToHOLNcfQbVDrRe7fogr8Qpx/RL+pYcjWGqa5xa95WS72W8oaRrMGbX3RYcTPHze1Iw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com;
- Cc: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
- Delivery-date: Tue, 14 Dec 2021 12:06:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHX47d6LazdN1mBlEi6ZMYdv27fAawx+SqA
- Thread-topic: [PATCH 05/10] iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro
Hello Oleksandr-san,
> From: Oleksandr Tyshchenko, Sent: Sunday, November 28, 2021 2:52 AM
>
> From: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
>
> This is a non-verbatim port of corresponding Linux upsteam commit:
> 3dc28d9f59eaae41461542b27afe70339347ebb3
>
> Original commit message:
> commit 3dc28d9f59eaae41461542b27afe70339347ebb3
> Author: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> Date: Wed Nov 6 11:35:48 2019 +0900
>
> iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro
>
> Since we will have changed memory mapping of the IPMMU in the future,
> this patch uses ipmmu_features values instead of a macro to
> calculate context registers offset. No behavior change.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>
> Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
>
> **********
>
> This is a prereq work needed to add support for S4 series easily
> in the future.
>
> Almost the same change as original commit makes, but without updating
> struct ipmmu_features_default which Xen driver doesn't have (there is
> no support of old Arm32 based Gen2 SoCs).
>
> No change in behavior.
>
> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
Thank you for the patch!
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
Best regards,
Yoshihiro Shimoda
|