From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752141AbdCPI7F (ORCPT ); Thu, 16 Mar 2017 04:59:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54090 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbdCPI7D (ORCPT ); Thu, 16 Mar 2017 04:59:03 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4906F7F081 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eric.auger@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4906F7F081 Subject: Re: [RFC PATCH 16/33] irqchip/gic-v3-its: Add GICv4 ITS command definitions To: Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu References: <1484648454-21216-1-git-send-email-marc.zyngier@arm.com> <1484648454-21216-17-git-send-email-marc.zyngier@arm.com> Cc: Thomas Gleixner , Jason Cooper , Christoffer Dall From: Auger Eric Message-ID: <01036799-4239-0c0c-4100-3a8e3afafa3e@redhat.com> Date: Thu, 16 Mar 2017 09:58:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1484648454-21216-17-git-send-email-marc.zyngier@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 16 Mar 2017 08:58:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 17/01/2017 11:20, Marc Zyngier wrote: > Add the new GICv4 ITS command definitions, most of them, being > defined in terms of their physical counterparts. > > Signed-off-by: Marc Zyngier Reviewed-by: Eric Auger Eric > --- > include/linux/irqchip/arm-gic-v3.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h > index dc7dcc6..1b3a070 100644 > --- a/include/linux/irqchip/arm-gic-v3.h > +++ b/include/linux/irqchip/arm-gic-v3.h > @@ -338,6 +338,18 @@ > #define GITS_CMD_SYNC 0x05 > > /* > + * GICv4 ITS specific commands > + */ > +#define GITS_CMD_GICv4(x) ((x) | 0x20) > +#define GITS_CMD_VINVALL GITS_CMD_GICv4(GITS_CMD_INVALL) > +#define GITS_CMD_VMAPP GITS_CMD_GICv4(GITS_CMD_MAPC) > +#define GITS_CMD_VMAPTI GITS_CMD_GICv4(GITS_CMD_MAPTI) > +#define GITS_CMD_VMOVI GITS_CMD_GICv4(GITS_CMD_MOVI) > +#define GITS_CMD_VSYNC GITS_CMD_GICv4(GITS_CMD_SYNC) > +/* VMOVP is the odd one, as it doesn't have a physical counterpart */ > +#define GITS_CMD_VMOVP GITS_CMD_GICv4(2) > + > +/* > * ITS error numbers > */ > #define E_ITS_MOVI_UNMAPPED_INTERRUPT 0x010107 >