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

Re: [PATCH v1 0/2] Fix ARM Generic Timer interrupt parsing


  • To: "Andrei Cherechesu (OSS)" <andrei.cherechesu@xxxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Tue, 7 Mar 2023 15:27:19 +0000
  • Accept-language: en-GB, 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=39TtagBEJpHWqEuAdKldn4Ewj5WiElEj/f3CGEoWGaA=; b=iv2Wob6lcWLHF7/qd6FOHDvk9gxGlOkmMaxv4T0oJnurFIULzX/q2WFC60EXXrYEzCgeV3oQ9LB7XiVIrEJgZr4akpd/fZnTV6xWfLAFWGev8n9AQMgob5TiTGWG1ldGpGyPzfsSErFiDco9UGGMoVIMYHPV9idCJwk8my3+sDeYP3HcLFcntdIoST4ZIV/GjwM6ydEzX5XtotspXilZ6DgawUh8J/dnK6ThcEgiGwMucfJNCzuLbMmk6v+BuvC82ErShqd8lT+tNSoR4Im5O0IoERtbTi6jn2aBPcrpJ97DT24nrKJlypeWDqpVGREYP2KOu+mN+x/kFEsh1lnx7A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KlN+q3+m9HWQPr8gycaTRhZNPIRjK83L/4irmvOb4VdTnS5Vc26290ffDjK2FcR4AcF/yfiZntGqvQEbwBhtd1YnBhLCBoLHnYQMxf9JkOnTG/Kx12BiWzvNijTtiNsMMQ2auHpqsNpuMqGpuZwwx6E771aa90B5JSyi8btCT4QNPaRCNi+enL/Y9MSLmV4pNv6GVhOfc37JQcjK8jkP1LOsamky0XWUT6vEroF+W5Ve05ASnTjankdM70r95e5n0cvgJUnuv+g0L+MMm6+95N3heW2FZbDR/plhW8nf3xXGYAVkgJMptPOqZx1P2zPKNWUJLJ64FuBIkZP4oLcghg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrei Cherechesu <andrei.cherechesu@xxxxxxx>
  • Delivery-date: Tue, 07 Mar 2023 15:27:40 +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: AQHZUN0kJnuAhQfQv0iYnuJGnTc3ZK7vcNOA
  • Thread-topic: [PATCH v1 0/2] Fix ARM Generic Timer interrupt parsing

Hi Andrei,

When submitting patches, please use the add_maintainer.pl script so that 
maintainers of the code
modified are added in CC.

> On 7 Mar 2023, at 11:09, Andrei Cherechesu (OSS) 
> <andrei.cherechesu@xxxxxxxxxxx> wrote:
> 
> From: Andrei Cherechesu <andrei.cherechesu@xxxxxxx>
> 
> This 2-patch series fixes the parsing of the ARM Generic Timer
> interrupts from the device tree.
> 
> If the generic timer interrupts order in the DT was different than
> the expected order in Xen code, these interrupts would no longer be
> correctly parsed and registered by Xen, and would result in boot failure.
> 
> This method with using "interrupt-names" for the generic timer interrupts
> instead of having them hardcoded in the DTB in a specific order is the newer
> approach already implemented in Linux. Xen did not have the necessary code for
> this approach, and it has been implemented by the means of this patch series.

Would mind giving a link to an example or the Linux documentation if there is 
one ?

Cheers
Bertrand

> 
> Functionality should remain the same if "interrupt-names" is not present in 
> the
> Generic Timer DTB node of the platform, but the interrupts should then still 
> be
> present in the expected "sec-phys", "phys", "virt", "hyp-phys", "hyp-virt" 
> order.
> If "interrupt-names" is present, now it is also correctly handled.
> 
> Andrei Cherechesu (2):
>  arch/arm: irq: Add platform_get_irq_byname() implementation
>  arch/arm: time: Add support for parsing interrupts by names
> 
> xen/arch/arm/include/asm/irq.h        |  2 ++
> xen/arch/arm/include/asm/time.h       |  3 ++-
> xen/arch/arm/irq.c                    | 14 +++++++++++
> xen/arch/arm/time.c                   | 26 +++++++++++++++++---
> xen/drivers/passthrough/arm/smmu-v3.c | 35 +++++----------------------
> 5 files changed, 46 insertions(+), 34 deletions(-)
> 
> -- 
> 2.35.1
> 
> 




 


Rackspace

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