Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6839325pxv; Fri, 30 Jul 2021 03:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/RP8InOqVdfCAn+Amwshjeq9hAz6gUhV8/ulM38LaoZminT8d9s/LvBKry2kOXErXg2N+ X-Received: by 2002:a02:ccec:: with SMTP id l12mr1680639jaq.61.1627642106982; Fri, 30 Jul 2021 03:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627642106; cv=none; d=google.com; s=arc-20160816; b=XJHQDY+NsbEOs5R1OxvH1ZldiA4b33Etasc5TLkzjN3l75IZhPgjiwKtI7mzbNIx5y KQFp1oCwJmh9AH2IDLoQjj5AcjEy+m1WxpYx1qB5xavz9gHyOUP9Y3OBJDBrwEaKPfoE GsKi56R7F+Hnj1s5GaKcXNGYwWhIGqsmvCSVyZ+h9QwPIlHZyZTWFgKDXs2cXEW8fN7p oQAhekwMLzyJ6dqJBO2wTMDFuv0ur7FB3INEXrMpCv0+hpISMfXOuQTV09F3OYpoOHVg g2zqGQyoko4AUel5Z5ABLD3dfvQfed4nhM/dcMhNs5B1SxNW7RLWOnHwo68GphwMDtEw JjUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=Wm+xyOymoHp+yXT7BTj6qo3DO63UmHeE08UQgMp2wSE=; b=BbpgBgpnj0gYxZAmsqkLUHYXsPCQyhrv7upxY3/CnjKaCRgU4c5UW4yrqkRD06ClU7 TIhXeIUwuQGDiX/q0a8IODJjUxOt1/Uj0ZBh9SjpB24iWHgf5RD+HBir6hK8EDiPQjX7 TWxzVRY9N2otSwvRHYaGjmNHegiJXzcdeVzBS5VpB/ifbKGq3pNrcLZrTPNvbzKZ3cF0 X3nyOtMIoni/45/y5sMpN65DW07vWPneRSueb4mJ12qISY6gpcznx/Atc9mUHFKixcNS V4zv//ttAR8lyyxcTTZNnnkjczTTPEUMHsGOevyB/Sr/jC1tbrWO3IivMoXV03yZHxiA 9j9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si1552015ioh.98.2021.07.30.03.48.14; Fri, 30 Jul 2021 03:48:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238461AbhG3Kra (ORCPT + 99 others); Fri, 30 Jul 2021 06:47:30 -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