From patchwork Wed Jun 28 15:03:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 9814761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3E7BD603D7 for ; Wed, 28 Jun 2017 15:48:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3172A27FA9 for ; Wed, 28 Jun 2017 15:48:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2645B28584; Wed, 28 Jun 2017 15:48:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A9FB027FA9 for ; Wed, 28 Jun 2017 15:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Q7GfKvquXMNlLCogh71HUDNSHAu4ULuWHQpD5fF2eaU=; b=VrqY4fWwRDK/7ytgFIcO8aPqTe xYErZlAhQvKloelfXlX5XDZFDl8HQ60NF03UbcsOnA8T+gYKNjYrvYtWeVvb0bAf0KmZ7NnJXCWMe X28dKTyHBvfzZiLQBkY3woFh/h1MHgVc+1MEZ2G1eq1D1bWPv//Lp147A35HKTEuI4fA7dSzBEg63 tCdT/O4+vLhY4OPVNDV4F69Rz8EONxFYysnaOSevvy0DCF8EYF+SHlRxRJNzr3mrt8f/CeVBjNICd Q4v5UI+JkawerwNz0XzuCqrugRkPCEWj+HkRHzaKg3OdRDX8AtPK6Xt+2lZfhnwA49iNeCWrkMwAB cexgWH9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQFCH-0003J1-ID; Wed, 28 Jun 2017 15:48:05 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQFBO-0001fS-Mt for linux-arm-kernel@bombadil.infradead.org; Wed, 28 Jun 2017 15:47:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PyVzlsi1hgeASNwwMUG4tItKlTm4xTe9wXzsJIwDS7I=; b=dvZXi0S+UX8Xkb58sjDVn799C DmVccC1kszYoSeOmII3Ru9toVRtfkoFPgYbXAgg1ot66b8/BUpMAj8nDpJbXHFpnjvwaD1yB+OX66 itAwLPKyepkQVSD7JmkkFJXMfxsS/1dKKyUTx9QDXTnzlcA+hEqT++pio/7qtHhn5YaLkQ/l4XS1J 3cR7QoQ60VVWWTlHmSz5WNq4P3/iOlpkBG4WDwH+Tg9GD5WNx7Rayz4ZV0651jb+Ri1cdq6X7lUFd E2szwoK740WOcbbSDy4dg8/m2Z0lQuCqDF7hdv3+WZ3LDXjy5vb3M9NWj8SaurgTSWvxMi+U+XFnp bH36DiZcQ==; Received: from foss.arm.com ([217.140.101.70]) by merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQEWy-0000EP-DC for linux-arm-kernel@lists.infradead.org; Wed, 28 Jun 2017 15:05:25 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD387169E; Wed, 28 Jun 2017 08:05:02 -0700 (PDT) Received: from approximate.cambridge.arm.com (approximate.cambridge.arm.com [10.1.207.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 43C173F4FF; Wed, 28 Jun 2017 08:05:01 -0700 (PDT) From: Marc Zyngier To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 15/52] irqchip/gic-v3-its: Add GICv4 ITS command definitions Date: Wed, 28 Jun 2017 16:03:34 +0100 Message-Id: <20170628150411.15846-16-marc.zyngier@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170628150411.15846-1-marc.zyngier@arm.com> References: <20170628150411.15846-1-marc.zyngier@arm.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Jason Cooper , Eric Auger , Christoffer Dall , Thomas Gleixner , Shanker Donthineni MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the new GICv4 ITS command definitions, most of them, being defined in terms of their physical counterparts. Reviewed-by: Eric Auger Reviewed-by: Thomas Gleixner Signed-off-by: Marc Zyngier --- 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 af8c55105fc2..7c6fd8f3e36c 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h @@ -348,6 +348,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