Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EC24C27C53 for ; Wed, 5 Jun 2024 10:53:53 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.735710.1141822 (Exim 4.92) (envelope-from ) id 1sEoGx-0007Q9-9G; Wed, 05 Jun 2024 10:53:39 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 735710.1141822; Wed, 05 Jun 2024 10:53:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sEoGx-0007Q2-6l; Wed, 05 Jun 2024 10:53:39 +0000 Received: by outflank-mailman (input) for mailman id 735710; Wed, 05 Jun 2024 10:53:38 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sEoGw-0007Pw-HA for xen-devel@lists.xenproject.org; Wed, 05 Jun 2024 10:53:38 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sEoGw-0004ly-38; Wed, 05 Jun 2024 10:53:38 +0000 Received: from [62.28.225.65] (helo=[172.20.145.71]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1sEoGv-0002mi-RN; Wed, 05 Jun 2024 10:53:37 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=5qzugHp7KExUdLWJSFm7YS2nF/mvOqvBE96BNngndcU=; b=k8TriZiBEGKsfBeDwZbBspjltz T5Qbt3GY5h0CMzwPOCY6eokgC+g3ZFDXlygXz2u9zqfOyctc1uzBD9kQ/C0WE85YaVxn944PvRFy1 XZopvSBiWgOb0tNsq4MdS46oM+uoYx+oSKDX1l60wmxecwx5ewn4raB8/fNPv757uJy8=; Message-ID: <8a372ac1-2ccb-40b6-89d9-c7bcbf95669b@xen.org> Date: Wed, 5 Jun 2024 11:53:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [XEN PATCH v5 4/7] xen/arm: allow dynamically assigned SGI handlers Content-Language: en-GB To: Jens Wiklander , xen-devel@lists.xenproject.org Cc: patches@linaro.org, Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk References: <20240529072559.2486986-1-jens.wiklander@linaro.org> <20240529072559.2486986-5-jens.wiklander@linaro.org> From: Julien Grall In-Reply-To: <20240529072559.2486986-5-jens.wiklander@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Jens, On 29/05/2024 08:25, Jens Wiklander wrote: > Updates so request_irq() can be used with a dynamically assigned SGI irq > as input. This prepares for a later patch where an FF-A schedule > receiver interrupt handler is installed for an SGI generated by the > secure world. > > From the Arm Base System Architecture v1.0C [1]: > "The system shall implement at least eight Non-secure SGIs, assigned to > interrupt IDs 0-7." > > gic_route_irq_to_xen() don't gic_set_irq_type() for SGIs since they are > always edge triggered. > > gic_interrupt() is updated to route the dynamically assigned SGIs to > do_IRQ() instead of do_sgi(). The latter still handles the statically > assigned SGI handlers like for instance GIC_SGI_CALL_FUNCTION. > > [1] https://developer.arm.com/documentation/den0094/ > > Signed-off-by: Jens Wiklander Acked-by: Julien Grall Cheers, -- Julien Grall