[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [for-4.18] [PATCH v2] ARM: GICv3 ITS: flush caches for newly allocated ITT
- To: Julien Grall <julien@xxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Mon, 25 Sep 2023 22:19:47 +0000
- Accept-language: zh-CN, 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M+A79WTnZ4wCEKv7zqjA6PY0bO8lRTiLZNyKKkz0WLo=; b=Zvf6tT0JsOumAWvXHFxxK88L26zoNC7W8cnOnqnrniRXhEXMo4gKZvGqNtrZ6S6quFqiwjgBkc73OgwLAqVwoSPP/0LDq9X9hq3Q7Xpvox9las04wt/rRkZGCX5o4cHPzIyWJ3MzYLn2rNuoX/bGorRq+FcyLKs1/IjuSlHQ3pu1i7wKQ/tQMHaEJkQwoy5JTLEzOH+WRqg2wtfLClDYkyzyvuRnM4XM2u9u4sZdOEqMgvdXql4QcFOk8UvKZvhgejfaL5avx040CEgsugq9j33c3jP20aGsDkGaALmWBc5nuTNd0sbNxMexXSDhAizyk+NjVVL5AN+rMeF/UYQqYw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mGcgoNQyEdEVriuFoy5Eg2kz+3GpXR+GUW4kIibvgX0RIW2R71dq8x/cbw70Ihr5kQ9iNO3j4nsKfF7uvCytu/a8+nTL7AJnLId7FU8mDePDXmsZG98VTSuXc9sNglQCqcmD+WRrH5YsOL3WpKms7bORf0fS8TU8fXICsGM2/eticw5vOmkB2OP7FBSh2LEaYUqsYmWP+x5vRbsfQvHwJ4xaZWW9OKcjteALIGSYmhjL2cAR9N061wlFy2izAth3RngJKPxb1n3S9cUPbnhAB8FHdg7EQMsSk8x+/M0FP3IP6VDmJTBhfgFj16N9/1yQgNvVAgzImy2E2zr/gSnywA==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Delivery-date: Mon, 25 Sep 2023 22:20:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHZ7/5kPD04AjZsh0qcsfrVnvYmOQ==
- Thread-topic: [for-4.18] [PATCH v2] ARM: GICv3 ITS: flush caches for newly allocated ITT
Hi Julien,
> On Sep 26, 2023, at 02:33, Julien Grall <julien@xxxxxxx> wrote:
>
> Hi,
>
> (Adding [for-4.18] in the title for Henry to spot the request)
Thanks!
>
> On 22/09/2023 23:27, Volodymyr Babchuk wrote:
>> ITS manages Device Tables and Interrupt Translation Tables on its own,
>> so generally we are not interested in maintaining any coherence with
>> CPU's view of those memory regions, except one case: ITS requires that
>> Interrupt Translation Tables should be initialized with
>> zeroes. Existing code already does this, but it does not cleans
>> caches afterwards. This means that ITS may see un-initialized ITT and
>> CPU can overwrite portions of ITT later, when it finally decides to
>> flush caches. Visible effect of this issue that there are not
>> interrupts delivered from a device.
>> Fix this by calling clean_and_invalidate_dcache_va_range() for newly
>> allocated ITT.
>
> I would consider to add:
>
> Fixes: 69082e1c210d ("ARM: GICv3 ITS: introduce device mapping")
>
>> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
>
> Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>
>
> @Henry, this patch should be low-risk. We are cleaning & invalidating the
> cache, so there should be no change for platform not requiring cache
> maintenance. This should hopefully had support for more platform. Note that
> the GICv3 ITS feature is still experimental.
>
> Based on what I wrote above, would you be OK to have this patch in 4.18?
Yes, I was about to ask the same question but somehow forgot it. This is a quite
low risk patch and I think it is fine to have this in 4.18, so if the "Fixes”
tag
can be added on commit, please also add:
Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>
Kind regards,
Henry
>
> Cheers,
>
> --
> Julien Grall
|