From patchwork Tue Jan 19 11:49:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 8061051 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4FE6CBEEE5 for ; Tue, 19 Jan 2016 11:49:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADD3A203A0 for ; Tue, 19 Jan 2016 11:49:25 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 192432039E for ; Tue, 19 Jan 2016 11:49:25 +0000 (UTC) Received: from localhost ([::1]:36368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUmq-0007JV-Jv for patchwork-qemu-devel@patchwork.kernel.org; Tue, 19 Jan 2016 06:49:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUmj-0007J7-KH for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:49:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLUmg-0002LO-Eo for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:49:17 -0500 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:36442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUmf-0002L9-TB for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:49:14 -0500 Received: by mail-wm0-x233.google.com with SMTP id l65so134781655wmf.1 for ; Tue, 19 Jan 2016 03:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=IS2bPz/Tsu7CjE1geKo5dpHioF3d0LwkXr3Q/B0XxNQ=; b=XnPeg85RrJMPTiGUb4SLljkX0MTtPY9uZLJ9AN4C8aS3jS+/b5E4yBkue2kTUTc2Ca QILCqI1ZILumzqSgXK9AYHHIBnEs/FfnnRM4fdllq16Z7ocSxcNJW2bfli19NurY3PxB DF/n+B+OP0kpsftKgJFsHUZRriayQo6wUGqzM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IS2bPz/Tsu7CjE1geKo5dpHioF3d0LwkXr3Q/B0XxNQ=; b=JNtZl6cyKdixoWlQd+IXwDXwkmCZLjPSPhdjYV4kGz4cSQO78v/7waHshCHGkHgBP8 36+vmsbMspo8g4pRAlUDJnyZFQJbvUtaBncCpLQ50m2BWDvBh4Y4npOShlJ80jHCh2i/ RTzM6qpH+ZjeuymF/xqUjOKdGCsT3zmcOKodESDPZV3sdZR+W+yQEN30cRj6FxergX9s Pt/FEHhTL4QLYsU++QcbFoIy9C8ZXJX9TugN1jzj1gO6/Kg0+PyV9xgzLhQCFOHhbSHw 8c1AL6x/2GZX+YW9T+ICAfkaJ6sPcoDSPi3hodLKNSSwe/qOfL0djnySjHjBBrQpza96 Yx2w== X-Gm-Message-State: ALoCoQnfWjglShyp8IXOO2Ez2Xw4R7FPdsz9ZqGonQQORiT5IRSF9/4MZ4hT+hDyhwy2/t9Wwf35vs3W5rDXKoJP0l4lSRzkPg== X-Received: by 10.194.113.227 with SMTP id jb3mr30202932wjb.49.1453204152921; Tue, 19 Jan 2016 03:49:12 -0800 (PST) Received: from localhost.localdomain ([94.18.191.146]) by smtp.gmail.com with ESMTPSA id w8sm28136283wjx.21.2016.01.19.03.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 03:49:12 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Date: Tue, 19 Jan 2016 12:49:18 +0100 Message-Id: <1453204158-11412-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 Cc: Christoffer Dall Subject: [Qemu-devel] [PATCH] hw/arm/virt: Add always-on property to the virt board timer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The virt board has an arch timer, which is always on. Emit the "always-on" property to indicate to Linux that it can switch off the periodic timer and reduces the amount of interrupts injected into a guest. Signed-off-by: Christoffer Dall Reviewed-by: Andrew Jones --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 05f9087..265fe9a 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -291,6 +291,7 @@ static void fdt_add_timer_nodes(const VirtBoardInfo *vbi, int gictype) qemu_fdt_setprop_string(vbi->fdt, "/timer", "compatible", "arm,armv7-timer"); } + qemu_fdt_setprop(vbi->fdt, "/timer", "always-on", NULL, 0); qemu_fdt_setprop_cells(vbi->fdt, "/timer", "interrupts", GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_S_EL1_IRQ, irqflags, GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_NS_EL1_IRQ, irqflags,