Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2321225pxu; Sat, 28 Nov 2020 10:04:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzv6G3Id5BiIxAtW7JvVfZJQgfb/r3ftmzDNtjk0ik0CQ7a9maMbdhSYBek/NAFUiVZXf1X X-Received: by 2002:a17:906:268c:: with SMTP id t12mr13409983ejc.91.1606586672717; Sat, 28 Nov 2020 10:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606586672; cv=none; d=google.com; s=arc-20160816; b=leSH1adjGXpe9gFy+ztnmfRxE8hsTVye/ri8v53wcuMyXfuhINICxkO9C6GbX1to7B jZXCT7DqagrdmseJ0rCuG3e9kxgE74N+zXmo4iu1l43BZUF4sp6lLNWP5VHp5sIrz0DB nxYIQxuKVnoy9CeBxxQusRNpxyv6A86uH8RoPLGzeWlDEA7QMMG84YXWVC67gu7AZlzQ ZgoDOEQnUnhrcUstKhJVFMhG1vf4hMn6qwwkIezoREb25V60FKw8a4Z8UdjoW7gnge4k q5ue7PS2NbgBB5wbM8U3t801B455AuR1rMpON4THAVkrIUshfom00VYOalk/M5IFE19d ahgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Bi+j9V36h9nCluh61wCKRSxp9uLLcVc9APfmg3CUymQ=; b=Koqem8qfrpsWlPoloJmi4L7kY7ZcVntIgDOjR4M7FDSfIp+7Hy1gCgpIy6+hfMiuYn dBCz1GkSl3eswT141tVINz1gD7MlnzoT2WtjrMHlUocHLd4vqK5s298uVPZpkof6GDoC /eEj2Y3opFaazKJXp5o4tamKOCfLaaf1Gmo74otEgsSbBtX+lLNQ1UIBqO4ZjeBL9xQd DGTMs70zlwu/TwRumWnDU/cOKDm7WiZVn3PTJAnc+5ptBjqdKoBv7UbwB4rCh01DfbQM ncl0P1XL+TqeNDRLTb/E6Qy6sHRz6U9y4JRuhKFXKL2dKCXd25765m8fK3kmAgVzILBd tn0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd3si532172edb.558.2020.11.28.10.04.09; Sat, 28 Nov 2020 10:04:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732497AbgK1R7B (ORCPT + 99 others); Sat, 28 Nov 2020 12:59:01 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8526 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733144AbgK1R4j (ORCPT ); Sat, 28 Nov 2020 12:56:39 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cjtsh1WnPzhj5H; Sat, 28 Nov 2020 22:19:20 +0800 (CST) Received: from DESKTOP-7FEPK9S.china.huawei.com (10.174.187.74) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sat, 28 Nov 2020 22:19:33 +0800 From: Shenming Lu To: Marc Zyngier , Thomas Gleixner , "Jason Cooper" , , , , , James Morse , Julien Thierry , Suzuki K Poulose , Catalin Marinas , Will Deacon , Eric Auger , Christoffer Dall CC: , , Subject: [PATCH v2 1/2] irqchip/gic-v4.1: Reduce the delay time of the poll on the GICR_VPENDBASER.Dirty bit Date: Sat, 28 Nov 2020 22:18:56 +0800 Message-ID: <20201128141857.983-2-lushenming@huawei.com> X-Mailer: git-send-email 2.27.0.windows.1 In-Reply-To: <20201128141857.983-1-lushenming@huawei.com> References: <20201128141857.983-1-lushenming@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.187.74] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 10 delay_us 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 --- 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 0fec31931e11..22f427135c6b 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -3809,7 +3809,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) -- 2.23.0