Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1813235ybb; Sun, 29 Mar 2020 14:09:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs27GJWM/xWtDAS8P3c/jWSgsTZRdRjXqBp5TvshN+OL8wx7bwe6du5k+QBSZ2xcsjLXvOx X-Received: by 2002:a4a:a126:: with SMTP id i38mr7526376ool.11.1585516171850; Sun, 29 Mar 2020 14:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585516171; cv=none; d=google.com; s=arc-20160816; b=ettor3ExP74e3PSAOZ2jtg+fPm2yK5eLIl4lSM2KT/zQmj8RiQTMg1g0Kn8XpBNtyf 7Ev7aMDDEJ+rZ3gfq0lipe+nh8cSVpWNGfb9F8EcpQ2WfjADHkK0DYdYXwwYjGQdyV8d ACgq3Lq2xZgF5MHpc7U5/zdOTYON+wv0MDPo5gcG0XjX7SGUeK7AJxkTu+5z54ZSFmy7 /w4wHjExYH30l6hRD9xfb4iigTCLIi1jFmT6aZMz5NGHZf49cF2z2eBzMBYEv1Lb0Z2W yJHGlZOCSg7OUFzYJpjY3w3O6t3w/dxLWDcL/KHC3eUJ936pPcpg6MxT0nliAMK/2ja/ RioQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=hcKETUCXHjfKDvLzJJSs/Jcl1Mvxa1jAKFNsaykTN5M=; b=P3ygmI5Z2r57FjUAztf/DwWOs3gVezoPXnFDVf2OFcHsoTJoKXERSJZkXe/BW2T4uf vrLFDLU1kOdIqKaSwNbskY1ycWN9/59+RW8WCpiVh2JDasN+5viqPyQPkeELjFq/pqqr b3mnX2BNTXmdk94YuuBC9VfwDnL/LgjiJMGMBqxt2AFGACo9Mpk1yGARVHQojXNDRpkB jcH+fTyOnuRdBlrObFXy9DbBguLeoZGv6ubjAFckluQLyGgrWB7DNXc9ZSmWnk/Jxun7 rdxTQPwr6UHVUdEOjjamYyS3HTKJN9U1ROKku1DP4xnrKTjOrPLBjUSBf+a6G/r/XlFt uPxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si5562051ook.91.2020.03.29.14.09.15; Sun, 29 Mar 2020 14:09:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbgC2U0Q (ORCPT + 99 others); Sun, 29 Mar 2020 16:26:16 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56923 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728716AbgC2U0N (ORCPT ); Sun, 29 Mar 2020 16:26:13 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jIeVS-0001JB-Hf; Sun, 29 Mar 2020 22:26:06 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 1C2601C0450; Sun, 29 Mar 2020 22:26:06 +0200 (CEST) Date: Sun, 29 Mar 2020 20:26:05 -0000 From: "tip-bot2 for Marc Zyngier" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/gic-v4.1: Add VSGI property setup Cc: Marc Zyngier , Zenghui Yu , x86 , LKML In-Reply-To: <20200304203330.4967-16-maz@kernel.org> References: <20200304203330.4967-16-maz@kernel.org> MIME-Version: 1.0 Message-ID: <158551356576.28353.8044983928206914105.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: d50676f5ce8481b98f9bbc1514b5d3f8747dd3c2 Gitweb: https://git.kernel.org/tip/d50676f5ce8481b98f9bbc1514b5d3f8747dd3c2 Author: Marc Zyngier AuthorDate: Wed, 04 Mar 2020 20:33:22 Committer: Marc Zyngier CommitterDate: Tue, 24 Mar 2020 12:15:51 irqchip/gic-v4.1: Add VSGI property setup Add the SGI configuration entry point for KVM to use. Signed-off-by: Marc Zyngier Reviewed-by: Zenghui Yu Link: https://lore.kernel.org/r/20200304203330.4967-16-maz@kernel.org --- drivers/irqchip/irq-gic-v4.c | 13 +++++++++++++ include/linux/irqchip/arm-gic-v4.h | 1 + 2 files changed, 14 insertions(+) diff --git a/drivers/irqchip/irq-gic-v4.c b/drivers/irqchip/irq-gic-v4.c index 99b33f6..0c18714 100644 --- a/drivers/irqchip/irq-gic-v4.c +++ b/drivers/irqchip/irq-gic-v4.c @@ -320,6 +320,19 @@ int its_prop_update_vlpi(int irq, u8 config, bool inv) return irq_set_vcpu_affinity(irq, &info); } +int its_prop_update_vsgi(int irq, u8 priority, bool group) +{ + struct its_cmd_info info = { + .cmd_type = PROP_UPDATE_VSGI, + { + .priority = priority, + .group = group, + }, + }; + + return irq_set_vcpu_affinity(irq, &info); +} + int its_init_v4(struct irq_domain *domain, const struct irq_domain_ops *vpe_ops, const struct irq_domain_ops *sgi_ops) diff --git a/include/linux/irqchip/arm-gic-v4.h b/include/linux/irqchip/arm-gic-v4.h index b120a01..6976b83 100644 --- a/include/linux/irqchip/arm-gic-v4.h +++ b/include/linux/irqchip/arm-gic-v4.h @@ -134,6 +134,7 @@ int its_map_vlpi(int irq, struct its_vlpi_map *map); int its_get_vlpi(int irq, struct its_vlpi_map *map); int its_unmap_vlpi(int irq); int its_prop_update_vlpi(int irq, u8 config, bool inv); +int its_prop_update_vsgi(int irq, u8 priority, bool group); struct irq_domain_ops; int its_init_v4(struct irq_domain *domain,