Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp975021ybl; Fri, 24 Jan 2020 13:02:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzU97eyZZ8094ESrmGg3AbpwBuvJDi2l8tEz+75R6MbDa+pDMoeXojxYuAjCCmlhpJ0IIsz X-Received: by 2002:aca:cdca:: with SMTP id d193mr537045oig.152.1579899722910; Fri, 24 Jan 2020 13:02:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899722; cv=none; d=google.com; s=arc-20160816; b=zzysGUFZ2AM7iUygRLaE9v1UeR1sPbwSDiVngpgGNQPThg7IGsEdwUEeDgWKEbX4YE f7e/BHhTLpw9MWgbHLUi4SXPsAPoSfllDRiRJcllyvynxsEFD2sPIAJjqn7OTItKWC+S 5/JuFexIP9tOfnrfnBX629/njc9VdBnc407pBcz15UpoavjFnkp9aNd32eh7IWnFFxr3 +duGC7VuC66GFlNourxHRzvXmAqGhIVqOe6uV/7qHJahVGn2K/F8+xCYJUHxFxnsoXMK D4Lxlwm12rOldDQTme5ahqVv8WLMx2KfvoPo6kOg9bPwE80hkhOOO2NXbxIgxkgQcE5s LFNA== 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=NHiWyhQDaDsQaqZMt87KigD2GlfAn1Cbrep+VX/Q7DI=; b=i9SseQxyzhELsMCIbBkKtiprZ2l30xd9b/jl2mNCVtvtVOzSAYXU4Q2kcnyofmvcC/ vUsaVTFbCZj/iRmqqGLrSo+BaZSBFDfj9nRYOCDNF25k/gbvMHOw3hf1385wJK1UUgpI Or67D1k4rUdBciag142Pk3t4NjnCQw82tELSjllhkLB57Mkknd3CLFXZx0/YYcO2bzt1 iB/6iLh28BymyRkyItW2DNBOM36cKVLbUEspViEjNgv0ddZoHdoAbApZcD9dBEyKVElZ 1tLka56OCOmQfjPi39mtIpU+F7VjMJ7Jb8dthdFN4zEZ5i1TfS5OjUgjfDLNvuJn9dbb oPHA== 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 f21si3439724otp.56.2020.01.24.13.01.51; Fri, 24 Jan 2020 13:02:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403927AbgAXTLO (ORCPT + 99 others); Fri, 24 Jan 2020 14:11:14 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:42988 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389077AbgAXTLM (ORCPT ); Fri, 24 Jan 2020 14:11:12 -0500 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 1iv4MF-0007Zy-Ks; Fri, 24 Jan 2020 20:11:07 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id A8E081C1A60; Fri, 24 Jan 2020 20:11:06 +0100 (CET) Date: Fri, 24 Jan 2020 19:11:06 -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: Suppress per-VLPI doorbell Cc: Marc Zyngier , Zenghui Yu , x86 , LKML In-Reply-To: <20191224111055.11836-15-maz@kernel.org> References: <20191224111055.11836-15-maz@kernel.org> MIME-Version: 1.0 Message-ID: <157989306648.396.11181770657733195391.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: 3858d4dfdfb845e51ee8b4045f61ccba2c3111ee Gitweb: https://git.kernel.org/tip/3858d4dfdfb845e51ee8b4045f61ccba2c3111ee Author: Marc Zyngier AuthorDate: Tue, 24 Dec 2019 11:10:37 Committer: Marc Zyngier CommitterDate: Wed, 22 Jan 2020 14:22:21 irqchip/gic-v4.1: Suppress per-VLPI doorbell Since GICv4.1 gives us a per-VPE doorbell, avoid programming anything else on VMOVI/VMAPI/VMAPTI and on any other action that would have otherwise resulted in a per-VLPI doorbell to be programmed. Signed-off-by: Marc Zyngier Reviewed-by: Zenghui Yu Link: https://lore.kernel.org/r/20191224111055.11836-15-maz@kernel.org --- drivers/irqchip/irq-gic-v3-its.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 1d8d96a..53e91c9 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -718,7 +718,7 @@ static struct its_vpe *its_build_vmapti_cmd(struct its_node *its, { u32 db; - if (desc->its_vmapti_cmd.db_enabled) + if (!is_v4_1(its) && desc->its_vmapti_cmd.db_enabled) db = desc->its_vmapti_cmd.vpe->vpe_db_lpi; else db = 1023; @@ -741,7 +741,7 @@ static struct its_vpe *its_build_vmovi_cmd(struct its_node *its, { u32 db; - if (desc->its_vmovi_cmd.db_enabled) + if (!is_v4_1(its) && desc->its_vmovi_cmd.db_enabled) db = desc->its_vmovi_cmd.vpe->vpe_db_lpi; else db = 1023; @@ -1353,6 +1353,13 @@ static void its_vlpi_set_doorbell(struct irq_data *d, bool enable) u32 event = its_get_event_id(d); struct its_vlpi_map *map; + /* + * GICv4.1 does away with the per-LPI nonsense, nothing to do + * here. + */ + if (is_v4_1(its_dev->its)) + return; + map = dev_event_to_vlpi_map(its_dev, event); if (map->db_enabled == enable)