Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1789818ybb; Sun, 29 Mar 2020 13:29:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuWEnZTOOb239kuczGPbt5gEx9WtaZJdyQNebEGDUdkmkW8R9vLrtmdOETWCyJLHyDCE0qV X-Received: by 2002:a9d:b8f:: with SMTP id 15mr6770852oth.256.1585513776619; Sun, 29 Mar 2020 13:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585513776; cv=none; d=google.com; s=arc-20160816; b=0iTNPeGdNAB7jWoGh1ie5jHDR2Alwqdrs42m+UjeEn5YwVwrEyLIA9CcxRtlbZdEsO E6ZCK7d8FapU4eq8s4Gf/l2rcNJbi5UlBmTfqOCMwcOIS3aC1dq9EjnjksPZZoqXsV5I wpeYAYRfTHY6sMxmAKyTHxPUBXzH3+8IThYVHnXbMUji+6qXpatFosVmaULPD7igOEGG gLoX7pswPtdHX9KB9Z8W/x5XSnnA/E/2eZ2taMyLqFrsX+TSdLvMWoibeZx+yUqS0T08 0PteU/YtjmUZ6LW8EpV1xrRYY9UK1KNZ0gUe85G9dNy96qzTJ3GBXWF8VK+oB0xxXggJ pvGg== 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=HRcjBzI2ckYWxGnw2qMoQPvCU38tonZ8H5xN+2ig3o8=; b=hBEEOdp012b2usDZelp79+UXnTXV/kZZwOeZWbhyytf1GIs7YgLeUn2bpMjD1lpvwD S5r8jLre5qVQJPTy+PbVcFgj8/FZL0LSHj4X2x58nJU/esTYTYzAkE+Q3O6dFKPb76nq o4Hpr0KQHjnTsHQcsnpMjIsuqTUYMMmbAmWWLpdVn4+8275SJkwiVU8LR+GZ2QHfMeKa EKictPQvqWVo7ZbxIDihxs9TY7Pq970U6u72DAOAos7LEmBax0FwTKLG9ujKl//XK/z8 z3X0UvawQu0pJ3ffQrdc+97HgEJLzsxLZcbnGRJB/C44iqf5sGuGUM05oni4aO790ZF2 W+sg== 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 k20si5091456otb.168.2020.03.29.13.29.24; Sun, 29 Mar 2020 13:29:36 -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 S1729190AbgC2U2c (ORCPT + 99 others); Sun, 29 Mar 2020 16:28:32 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:56922 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728719AbgC2U0N (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 1jIeVU-0001KW-Oc; Sun, 29 Mar 2020 22:26:08 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5E3841C0450; Sun, 29 Mar 2020 22:26:08 +0200 (CEST) Date: Sun, 29 Mar 2020 20:26:08 -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: Plumb mask/unmask SGI callbacks Cc: Marc Zyngier , Zenghui Yu , Eric Auger , x86 , LKML In-Reply-To: <20200304203330.4967-11-maz@kernel.org> References: <20200304203330.4967-11-maz@kernel.org> MIME-Version: 1.0 Message-ID: <158551356804.28353.15755655132659131079.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: b4e8d644ec623cbb66f192a7fefbd0a66e314be8 Gitweb: https://git.kernel.org/tip/b4e8d644ec623cbb66f192a7fefbd0a66e314be8 Author: Marc Zyngier AuthorDate: Wed, 04 Mar 2020 20:33:17 Committer: Marc Zyngier CommitterDate: Tue, 24 Mar 2020 12:05:09 irqchip/gic-v4.1: Plumb mask/unmask SGI callbacks Implement mask/unmask for virtual SGIs by calling into the configuration helper. Signed-off-by: Marc Zyngier Reviewed-by: Zenghui Yu Reviewed-by: Eric Auger Link: https://lore.kernel.org/r/20200304203330.4967-11-maz@kernel.org --- drivers/irqchip/irq-gic-v3-its.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 28c856a..bc6666a 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -3944,6 +3944,22 @@ static void its_configure_sgi(struct irq_data *d, bool clear) its_send_single_vcommand(find_4_1_its(), its_build_vsgi_cmd, &desc); } +static void its_sgi_mask_irq(struct irq_data *d) +{ + struct its_vpe *vpe = irq_data_get_irq_chip_data(d); + + vpe->sgi_config[d->hwirq].enabled = false; + its_configure_sgi(d, false); +} + +static void its_sgi_unmask_irq(struct irq_data *d) +{ + struct its_vpe *vpe = irq_data_get_irq_chip_data(d); + + vpe->sgi_config[d->hwirq].enabled = true; + its_configure_sgi(d, false); +} + static int its_sgi_set_affinity(struct irq_data *d, const struct cpumask *mask_val, bool force) @@ -3958,6 +3974,8 @@ static int its_sgi_set_affinity(struct irq_data *d, static struct irq_chip its_sgi_irq_chip = { .name = "GICv4.1-sgi", + .irq_mask = its_sgi_mask_irq, + .irq_unmask = its_sgi_unmask_irq, .irq_set_affinity = its_sgi_set_affinity, };