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

Re: [XEN v2 12/12] xen/Arm: GICv3: Enable GICv3 for AArch32


  • To: Julien Grall <julien.grall.oss@xxxxxxxxx>, Ayan Kumar Halder <ayankuma@xxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 4 Nov 2022 12:52:02 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=VFEIUwlv5vt9leYEZ50wsW/8cwkFnoT1YEVs5Imbq5c=; b=Dd/HdGhDk8RjGhHBnyiXSsJPiNBFYK80J32UKop8JWJuT3qxX5DdWE0g9mXGLl1w/7SxDqNxnUYE+kd5e189XjzdLEKhKEzu7GPtME1GM9OLBl92sf2dvdpWw2RxIWgZDdS2owWa6Lwqp/NdEqrjU8jrJsceHjf+PeXpKAuR9y5gWuQZlq5tnTcKpd/KLO8gXzBxJbQCtTs+iyUUblKU1l3iJP+Y7WuVhUWCJ1xGwg+C6WrWkLV+WZcKEl9BFUqE2H8hn8FdBCMo1hx9QjLy3rIphHzNu2esH6DQK6pOD3Js5J3IUASHC9KG9zd7zP0/o9OBoZ+qk2HnCmanntvBsg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ik396+UXLMhOuGXPHPzmF0qJqj5oDbMV+D9WkNNUY7HssyhHgPcFHIqQUmjrZSFH1nk6Xm/tZxGREonAjOFP3po/FcW1x8kwjsBQxSE68OGM+1yzr9rq41B+OmN0pW2WHv+ANIu45bJEQHc3cWYIz8e+jEaLOhF1/4S0oz5D9ubh0JC8NCplc64K0Pd326gUfayNQh9FS88oQh5vTSBAy1P6H61Li96eB3MueziE5xZIqOqpqaHdUHDJ084jLc9pTN6DM7N63goenR4XXPpBo2WAyMkKUSa2N7GZEvrZfxqTzEwpN9yXN0E+D1ZlB05GO4qlNVZ8avOAguZ8G/SNVg==
  • Cc: <Bertrand.Marquis@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <burzalodowa@xxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <stefanos@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 04 Nov 2022 11:52:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 04/11/2022 12:30, Julien Grall wrote:
>       
> 
> 
> 
> 
> On Fri, 4 Nov 2022 at 12:09, Ayan Kumar Halder <ayankuma@xxxxxxx 
> <mailto:ayankuma@xxxxxxx>> wrote:
> 
> 
>     On 04/11/2022 09:55, Michal Orzel wrote:
>     > Hi Ayan,
>     Hi Michal,
>     >
>     > On 31/10/2022 16:13, Ayan Kumar Halder wrote:
>     >>
>     >> Refer ARM DDI 0487G.b ID072021,
>     >> D13.2.86 -
>     >> ID_PFR1_EL1, AArch32 Processor Feature Register 1
>     >>
>     >> GIC, bits[31:28] == 0b0001 for GIC3.0 on Aarch32
>     >>
>     >> One can now enable GICv3 on AArch32 systems. However, ITS is not 
> supported.
>     >> The reason being currently we are trying to validate GICv3 on an 
> AArch32_v8R
>     >> system. Refer ARM DDI 0568A.c ID110520, B1.3.1,
>     >> "A Generic Interrupt Controller (GIC) implemented with an Armv8-R PE 
> must not
>     >> implement LPI support."
>     >>
>     >> Updated SUPPORT.md.
>     >>
>     >> Signed-off-by: Ayan Kumar Halder <ayankuma@xxxxxxx 
> <mailto:ayankuma@xxxxxxx>>
>     >> ---
>     >>
>     >> Changed from :-
>     >> v1 - 1. Remove "ARM_64 || ARM_32" as it is always true.
>     >> 2. Updated SUPPORT.md.
>     >>
>     >>   SUPPORT.md                            | 6 ++++++
>     >>   xen/arch/arm/Kconfig                  | 4 ++--
>     >>   xen/arch/arm/include/asm/cpufeature.h | 1 +
>     >>   3 files changed, 9 insertions(+), 2 deletions(-)
>     >>
>     >> diff --git a/SUPPORT.md b/SUPPORT.md
>     >> index cf2ddfacaf..0137855c66 100644
>     >> --- a/SUPPORT.md
>     >> +++ b/SUPPORT.md
>     >> @@ -82,6 +82,12 @@ Extension to the GICv3 interrupt controller to 
> support MSI.
>     >>
>     >>       Status: Experimental
>     >>
>     >> +### ARM/GICv3 + AArch32 ARM v8
>     >> +
>     >> +GICv3 is supported on AArch32 ARMv8 (besides AArch64)
>     > Looking at the CONFIG_GICV3, it can be enabled on arm32, which at the 
> moment
>     > supports only ARMv7 (see __lookup_processor_type -> proc-v7.S).
>     > What will prevent the user from enabling GICv3 for ARMv7 based CPU?
> 
> 
>     Yes, this is my mistake.
> 
>     ARMv7 does not support GICv3.
> 
> 
> The same could be said for Xen on Aarch32 Armv8. This is not officially 
> supported but works with some tweak in the lookup function.
> 
> 
> 
>     I should have introduced a new macro AArch32_v8R so that GICV3 is
>     defined for it.
> 
> 
> I would rather not have such config. There are no issue to allow someone to 
> build it for 32-bit because Xen is perfectly capable to detect which GIC 
> version is in use.
> 
> Instead we could simply disable GICv3 by default for arm32.
+1

~Michal



 


Rackspace

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