[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v1 4/5] xen/arm: allow dynamically assigned SGI handlers
- To: Jens Wiklander <jens.wiklander@xxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Thu, 11 Apr 2024 08:44:32 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org 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 (0)
- 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=M1mC/AbtcsIMaL1lRIHIxpnoE7XbVh+GDiW7Cyo0btg=; b=jIlnYw9HqwcO6E8sEs+jSy72j0apmSL9pqvyf+hMzqtyBTXgUzmAYjNDgAT9rUJSlq3oBRhzV5j0h7t+1sY5+TcPKThMxt9vw7sKft9DhwEDrtGtZSZeSmdan0YMo73SZ4qW+9EqDebveNM3q+HprCM+AFV8R0epMnCBmtrq544VQqvlZKPJeeoib1eil2LvL2HOr2Ujlv+r09OCdptQxqk+srWxXIJE19zRHbkr20YBfD0nuRipL0wKP5F8uHuFTADyxAxqUXFl1xs93Uf1pqa/hLKDwnLNtS9UI5lAoLpW7TIHw+3ahSTVmiPBbkjixlx2FuYBIvwzo+Pl2EzR6Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b/x0xFkJCx6WKhSV8JXTGRNReU+OzR1gUMs+3SxAjqHcK+BtySfOMW/AjNcH0xPAmWWZ++R9YNv9xeSRWbIws3Es8rbjBX73clLiTa7xKWtXGd8GPCWlF4Jre/uM23Iqds7w96/lfCAdhlfIFDIYae1TEPRRhG5aT/5rz/WjG8E74ljV1byc+9T262M3bPrlKtN1Y5PYDzjf2eGRB6t4Ii39CkoOi4y8zKex6gVv4xbNiB8kny3xI/frwqrpqh05SwzYWd92r29kFJVbffeHNjq6/3az86bGgYiAYv46LeDKejQ9MBpCCOOSvZfy8YT1Tm0H15nWW5rs+vjHZFoqfQ==
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <patches@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Thu, 11 Apr 2024 06:44:46 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi Jens,
On 11/04/2024 08:12, Jens Wiklander wrote:
>
>
> Hi Michal,
>
> On Wed, Apr 10, 2024 at 3:24 PM Michal Orzel <michal.orzel@xxxxxxx> wrote:
>>
>> Hi Jens,
>>
>> On 09/04/2024 17:36, Jens Wiklander wrote:
>>>
>>>
>>> Updates so request_irq() can be used with a dynamically assigned SGI irq
>>> as input.
>> At this point it would be handy to mention the use case for which you need
>> to add this support
>
> OK, I'll add something like:
> This prepares for a later patch where an FF-A schedule receiver
> interrupt handler is installed for an SGI generated by the secure
> world.
ok
>
>>
>>>
>>> gic_route_irq_to_xen() don't gic_set_irq_type() for SGIs since they have
>>> their type assigned earlier during boot
>> Could you elaborate more on that? Do you mean that SGIs are always edge
>> triggered and there's no need
>> for setting the type?
>
> Yes, see https://developer.arm.com/documentation/ihi0069/h
> 4.4 Software Generated Interrupts
> SGIs are typically used for inter-processor communication, and are
> generated by a write to an SGI register in the
> GIC. SGIs can be either Group 0 or Group 1 interrupts, and they can
> support only edge-triggered behavior.
Exactly. But you wrote "have their type assigned earlier during boot" which is
not true.
There is no write to ICFGR0 in Xen codebase. They are implicitly edge triggered.
So I would write:
"... for SGIs since they are always edge triggered"
~Michal
|