Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp605732pxu; Fri, 11 Dec 2020 09:46:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVH1EowyzWh8X9YGSSvWLmtTVnaCnThyYsJf7HvurfbehNsnJNasFwqyZXAceN+kvBwvYa X-Received: by 2002:a17:906:304c:: with SMTP id d12mr12340663ejd.84.1607708815928; Fri, 11 Dec 2020 09:46:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607708815; cv=none; d=google.com; s=arc-20160816; b=c+FnvfJK2mO/31Kl0sCqyxNhFGSoRHvVABd30Jzvh7yvKSurZzhJ7gZ0llm468CExd ANxEh66SzRI+Nr2Lrvrw8b9qNh2lwPsDQwkeg2UNW1pGiwwHXdF0hkCtM28hTxl5+BjJ 81X78ENYfU9VHdM0ixXEMujtc0gkq3Nnp2vlOuIF+hjnPXy8Q3BiUrA0Wph/ZfuxUoBQ pT+CHMQ+KRH5vGpfYA4OTbQ/ZerSvXhWDepht7Xo8GVyOQAj4RJfwnDVePFlzKTld5S3 IRQzCcQ4tVXKlDx5Xmu7auVukptY2txjAaM+VxYsCFhQ6BZjQK24YhRyDhX5hFJKBbYv 28EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=sYqYduDkUukwxgxgmWqTZcKXb7Iz6dWIZ/h9dTTZ9vI=; b=K0xGVeEs9OfwA/e3UPr4tFWQOm4rlxSGr7KpEOjW7KlBpnIqqErZwFk7yrInAkVxIf Y7bKJxNscuDWrl6WEDMiWNjdtNgi8p8lxfoZDobS1XhB1Tvt0/8ZKF65YkBcXtwngHTR S/u+G8X3+JsLPNFl0qrYZ6TswVAUPYR27wuf7dZdhM3VAZUqaH1HgeS8vQeODkTXSE6Q ZV/d2adpBYLBF7/T18+7sSR4vrwTSl9OJ1Wf101prUkLqA+MMQuHTdPLHo0YCnNatoOz P2MSZiVZd2yJu9yKqXLkOkvN33Bvwe93TlvQ7/rSLwa2Jhc7M3htDsvPTWDpIQ6T3ac3 wI5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="UCFl/kQo"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=SrDG7D2c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si6785197edj.402.2020.12.11.09.46.33; Fri, 11 Dec 2020 09:46:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="UCFl/kQo"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=SrDG7D2c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437099AbgLKPAc (ORCPT + 99 others); Fri, 11 Dec 2020 10:00:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436769AbgLKPAQ (ORCPT ); Fri, 11 Dec 2020 10:00:16 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76CF3C06138C for ; Fri, 11 Dec 2020 06:58:49 -0800 (PST) Date: Fri, 11 Dec 2020 14:58:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607698725; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sYqYduDkUukwxgxgmWqTZcKXb7Iz6dWIZ/h9dTTZ9vI=; b=UCFl/kQoFu1+Jg8lLspwfG6DWh9wwzd8v2MDgHG06HxbX0Ho4BG4IpXPZFlVIzLmnXaxuj hgh25WYvN25cY/Na7U0ufK1iYnItILGaD1EG8FvomfBOOH0J4IAlg4SfRY+f974xer3wn/ pestgdeVF6lIC/IT5wWaPMPQApT/6d9Dh+Dj45USIAACLspPHqOwfkO0ptF+2pteV8x2b6 pmrhYftGz9eiwILqf/+Gn8PFVbc8Orb7HweUmctvg/1acln70I4nIyJRRN7OG64GIaLjb+ ptHh+D5SPhjH402VbCd49ogeqGZPdv49j1i9esNRJwsHA3UDfYigOZBUpdR3/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607698725; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sYqYduDkUukwxgxgmWqTZcKXb7Iz6dWIZ/h9dTTZ9vI=; b=SrDG7D2c5KR5k4SWm4PH0RIOkMd4UAdR9ahvGFDqIcbCQzfiXTtUhNQUO0aMGUXmVz1wcO wo9v9Mfnfz8JYnCA== From: "irqchip-bot for Shenming Lu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/gic-v4.1: Reduce the delay when polling GICR_VPENDBASER.Dirty Cc: Shenming Lu , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20201128141857.983-2-lushenming@huawei.com> References: <20201128141857.983-2-lushenming@huawei.com> MIME-Version: 1.0 Message-ID: <160769872547.3364.17606433720729162482.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 0b39498230ae53e6af981141be99f4c7d5144de6 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/0b39498230ae53e6af981141be99f4c7d5144de6 Author: Shenming Lu AuthorDate: Sat, 28 Nov 2020 22:18:56 +08:00 Committer: Marc Zyngier CommitterDate: Fri, 11 Dec 2020 14:47:10 irqchip/gic-v4.1: Reduce the delay when polling GICR_VPENDBASER.Dirty The 10us delay of the poll on the GICR_VPENDBASER.Dirty bit is too high, which might greatly affect the total scheduling latency of a vCPU in our measurement. So we reduce it to 1 to lessen the impact. Signed-off-by: Shenming Lu Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20201128141857.983-2-lushenming@huawei.com --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 4069c21..d74ef41 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -3808,7 +3808,7 @@ static void its_wait_vpt_parse_complete(void) WARN_ON_ONCE(readq_relaxed_poll_timeout_atomic(vlpi_base + GICR_VPENDBASER, val, !(val & GICR_VPENDBASER_Dirty), - 10, 500)); + 1, 500)); } static void its_vpe_schedule(struct its_vpe *vpe)