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 6E286941C06 for ; Wed, 26 Jul 2023 18:45:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=cp03VIGXngtsJi8+tT04Hgy+rfpAKT356bEf+8WqLME=; 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:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1690397120; v=1; b=DCyE6MQNRDvjaO2WfFzGi99bvubyq/y7LQt6AwLfu+k7D3ccNL8ei2j9KARJO0spJDdMn6zE 8F4Y8SoM+HCe3CNWFE9+rJI4jpgeNb9/AtQPUSAtKO2b9W5JX3CcuWPwUfl80vj8qfXhUMENLZY LpLG4JfV7yWNUMBbbOsyr25Y= X-Received: by 127.0.0.2 with SMTP id nYctYY7687511xBNGhnhJTXp; Wed, 26 Jul 2023 11:45:20 -0700 X-Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web11.2889.1690397119540572121 for ; Wed, 26 Jul 2023 11:45:19 -0700 X-Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1b8ad356fe4so613495ad.2 for ; Wed, 26 Jul 2023 11:45:19 -0700 (PDT) X-Gm-Message-State: oVPm9jKFAWJMwsn7rO5Ej4RXx7686176AA= X-Google-Smtp-Source: APBJJlFUZdaSKBkfW+lorzL27GDBuZzTPiQHwLqRuc1/rtX1RuDe7TS+RPm0+wLXmwmcwsIgUvmSfg== X-Received: by 2002:a17:902:eccb:b0:1b3:b3c5:1d1f with SMTP id a11-20020a170902eccb00b001b3b3c51d1fmr2770046plh.8.1690397118825; Wed, 26 Jul 2023 11:45:18 -0700 (PDT) X-Received: from ?IPV6:2001:4898:d8:33:6cc1:ccbd:4e17:c541? ([2001:4898:80e8:a:ecd9:ccbd:4e17:c541]) by smtp.gmail.com with ESMTPSA id p17-20020a170902b09100b001b8c689060dsm13498386plr.28.2023.07.26.11.45.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 11:45:18 -0700 (PDT) Message-ID: <3b648d9d-ddab-ba72-dd1e-e84f32c84f7e@gmail.com> Date: Wed, 26 Jul 2023 11:45:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH v1 0/3] Add support for handling SGI and pending interrupts To: Ard Biesheuvel Cc: devel@edk2.groups.io, Leif Lindholm , Ard Biesheuvel , Sami Mujawar References: <20230724201523.852-1-kuqin12@gmail.com> From: "Kun Qin" In-Reply-To: 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-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=DCyE6MQN; 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 Hi Ard, Our current use case is around AP core suspension and wake-ups. The program can suspend the secondary cores through PSCI interfaces=20 (after powering them on). BSP can then wake up the suspended cores through SGI on demand. The pending interrupt manipulation is to support BSP suspension and=20 wakeup. We currently use watchdog timer to wake up suspended BSPs after a timeout. Platforms can perform needed tasks during suspension, such as core power=20 consumption analysis, in UEFI environment. Please let me if you have any suggestions. Thanks, Kun On 7/26/2023 1:45 AM, Ard Biesheuvel wrote: > On Mon, 24 Jul 2023 at 22:15, Kun Qin wrote: >> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4466 >> >> 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 v= 2 >> 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 interrupt= s >> > Hello Kun, > > Could you please explain how this will be used by platforms? > > SGIs are only used by the MPcore SEC code, which is deprecated and > shouldn't be used. And manipulating pending interrupts is another > thing we should only support if there is a compelling use case. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107276): https://edk2.groups.io/g/devel/message/107276 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-