Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7497356ybl; Tue, 24 Dec 2019 03:43:58 -0800 (PST) X-Google-Smtp-Source: APXvYqynxJ9pJDnj4m9BqmGi7bTeYwcVclTnKXEal2dLwpnWKwJ5dlV296gkxsX4ArQzA/awor1s X-Received: by 2002:a05:6830:1595:: with SMTP id i21mr38532099otr.29.1577187838133; Tue, 24 Dec 2019 03:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577187838; cv=none; d=google.com; s=arc-20160816; b=uZQ7Pvi7ob1eQyLwstYttIVcXfRqdkuU0jrU/c+nqIm/mPxMeRpoMZEkblIfc9cmBj sMa3y7LNqy41cSEUPXr8OZydm2ERQrfYObo+hjYaF20eizH0wSDeQeDgl5S/M/MLcWke Lm8TEQWJCn9PzKZwtIx+dLYPrppZ4PgZ4ZN/YtdSZe4onnSC5y/bdjdRLq6dPEaszL9f mENHL9kscx4P0vGTM7IgVzGKnYxzMSvDJY1mMkmssYPVZ5O6APhuq3oL1djES4VQ5OL9 UOnTSehUWnxILRrcxJg49fMSKTyVD3uzyAdZb32mNit8NzT3mm/Vv/lfGSWeT6247CoA o6aQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MjZpvf7PC4vcQIoGKaFLeUATJ1nRbuwbUQiMaq9+RcA=; b=x8OmFON/MMKCQ8WOSudncEVriVo7PKJdsc4hJu6TGSP+yrqQwIYfMngFCO4/29QcB0 vcD+530HXN4OW3rWzH0GeoF2SRNpS9qZYlY+aExJaN88kFCiz7I9RPuPdhopZVnVDyJK aqv/QvrDu8pAIRuiF3+dX356meIaKq1k6o53ykJO3HKhAOvgb+SEEjiXkXJU2emnXfP6 +MEzofTPeKncn5s4ASAYZkga7HVWP6LCCeaHyziJjEi5xolRhfI1llgMqUqfJBt5a3wX uVY0aAG23XBLYazBHAcHTw5O+N0yDrzg98ed0TL+UZNSBd5jdawNOVz0Qr44+et16/XG fupw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si11817323otg.309.2019.12.24.03.43.47; Tue, 24 Dec 2019 03:43:58 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727198AbfLXLnH (ORCPT + 99 others); Tue, 24 Dec 2019 06:43:07 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:58596 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbfLXLnH (ORCPT ); Tue, 24 Dec 2019 06:43:07 -0500 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:DHE-RSA-AES128-GCM-SHA256:128) (Exim 4.80) (envelope-from ) id 1iji69-000169-DW; Tue, 24 Dec 2019 12:11:34 +0100 From: Marc Zyngier To: kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Cc: Eric Auger , James Morse , Julien Thierry , Suzuki K Poulose , Thomas Gleixner , Jason Cooper , Lorenzo Pieralisi , Andrew Murray , Zenghui Yu , Robert Richter Subject: [PATCH v3 25/32] irqchip/gic-v4.1: Add VSGI property setup Date: Tue, 24 Dec 2019 11:10:48 +0000 Message-Id: <20191224111055.11836-26-maz@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191224111055.11836-1-maz@kernel.org> References: <20191224111055.11836-1-maz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, eric.auger@redhat.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, tglx@linutronix.de, jason@lakedaemon.net, lorenzo.pieralisi@arm.com, Andrew.Murray@arm.com, yuzenghui@huawei.com, rrichter@marvell.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the SGI configuration entry point for KVM to use. Signed-off-by: Marc Zyngier --- 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 99b33f60ac63..f3f06c5c7e54 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_SGI, + { + .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 9fbd0418f569..46c167a6349f 100644 --- a/include/linux/irqchip/arm-gic-v4.h +++ b/include/linux/irqchip/arm-gic-v4.h @@ -129,6 +129,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, -- 2.20.1