From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1C462740039 for ; Mon, 24 Jul 2023 20:15:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=dHpXfxNa8LP7/SsMMfBx5HedZvm9RVjn81CgoqfAWy8=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-Received:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:X-Received:From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1690229728; v=1; b=fEtm7LxZyTq72Xw/jmA7FZst5il6GeTHeldEFI4LzEhCjLquGuKey5/bKpEQEYk76LBrBYgl KKAQRGPGR9JdlmduSGHyyIjN5hoQjou7u4TsLik1ZCCLhAB/js9QOq+e0uh+1IGiwqDZakyrgvr 882ABVhVmuMQDRn5P/LrWtSU= X-Received: by 127.0.0.2 with SMTP id w0J6YY7687511xieWfxudukl; Mon, 24 Jul 2023 13:15:28 -0700 X-Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web11.4785.1690229728330900095 for ; Mon, 24 Jul 2023 13:15:28 -0700 X-Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1bb81809ca8so20564415ad.3 for ; Mon, 24 Jul 2023 13:15:28 -0700 (PDT) X-Gm-Message-State: yQFDEwZX4PPej3M80rbS8XLHx7686176AA= X-Google-Smtp-Source: APBJJlGpeSkO3ZCty9UPuzTPmbp4z+nV/sMVu8e3TczYdSnaxabF2VCK88ZQga0raw8g0LBYc4QWmQ== X-Received: by 2002:a17:903:18e:b0:1b5:5052:5af7 with SMTP id z14-20020a170903018e00b001b550525af7mr16206533plg.8.1690229727415; Mon, 24 Jul 2023 13:15:27 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:0:18a3:9b95:e44:14fd]) by smtp.gmail.com with ESMTPSA id y7-20020a1709029b8700b001b89045ff03sm9398104plp.233.2023.07.24.13.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 13:15:27 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [PATCH v1 0/3] Add support for handling SGI and pending interrupts Date: Mon, 24 Jul 2023 13:15:19 -0700 Message-ID: <20230724201523.852-1-kuqin12@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kuqin12@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=fEtm7LxZ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4466 This patch series introduce a few improvements related to interrupt handling for ArmGic driver and library. 1. The current implementation of the `ArmGicSendSgiTo` is based on GIC v2 and does not work on GIC v3 and on. 2. The pending interrupt related primitives does not exist for end users. The change added the SGI support compatible with GIC v3 and v4. A few pending interrupt related utility functions were also added. This change was tested on QEMU, FVP and proprietary hardware platforms. Pathc v1 branch: https://github.com/kuqin12/edk2/tree/improve_gic_v1 Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Kun Qin (3): ArmPkg: ArmGic: Added support to send SGI to NS G1 EL1 ArmPkg: ArmGicLib: Added GIC v3 and v4 support to ArmGicSendSgiTo ArmPkg: ArmGic: Added functionalities to manipulate pending interrupts ArmPkg/Drivers/ArmGic/ArmGicLib.c | 214 +++++++++++++++++++- ArmPkg/ArmPkg.ci.yaml | 3 + ArmPkg/Drivers/ArmGic/GicV3/AArch64/ArmGicV3.S | 11 + ArmPkg/Drivers/ArmGic/GicV3/Arm/ArmGicV3.S | 10 + ArmPkg/Include/Library/ArmGicLib.h | 76 +++++++ 5 files changed, 308 insertions(+), 6 deletions(-) -- 2.41.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107187): https://edk2.groups.io/g/devel/message/107187 Mute This Topic: https://groups.io/mt/100337221/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-