From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D59AC4338F for ; Fri, 30 Jul 2021 10:47:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F247460FE7 for ; Fri, 30 Jul 2021 10:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238517AbhG3Krb (ORCPT ); Fri, 30 Jul 2021 06:47:31 -0400 Received: from foss.arm.com ([217.140.110.172]:40290 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238438AbhG3Kr3 (ORCPT ); Fri, 30 Jul 2021 06:47:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 191291FB; Fri, 30 Jul 2021 03:47:25 -0700 (PDT) Received: from e113632-lin (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 63E1E3F73D; Fri, 30 Jul 2021 03:47:24 -0700 (PDT) From: Valentin Schneider To: James Morse , linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Marc Zyngier Subject: Re: [PATCH 1/2] irqchip/gic-v3: Add __gic_get_ppi_index() to find the PPI number from hwirq In-Reply-To: <20210729172748.28841-2-james.morse@arm.com> References: <20210729172748.28841-1-james.morse@arm.com> <20210729172748.28841-2-james.morse@arm.com> Date: Fri, 30 Jul 2021 11:47:19 +0100 Message-ID: <87fsvwkrig.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/07/21 17:27, James Morse wrote: > gic_get_ppi_index() is a useful concept for ppi partitions, as the GIC > has two PPI ranges but needs mapping to a single range when used as an > index in the gic_data.ppi_descs[] array. > > Add a double-underscore version which takes just the intid. This will > be used in the partition domain select and translate helpers to enable > partition support for the EPPI range. > > Signed-off-by: James Morse Reviewed-by: Valentin Schneider