From patchwork Mon Jun 24 13:10:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 18070 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C51325CFE for ; Mon, 24 Jun 2013 13:16:19 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id bv4sf5949105qab.6 for ; Mon, 24 Jun 2013 06:16:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=5yL3y51mWPBNrhAYEIR+2buKADFc223YBimv+8W3Aoc=; b=lapS+w0YIvVnE0whv3GhZiI0DdI94l7KDWCCGDuID5yNGqM+j1b345GQJ5ixk1JWLn gtcpsBZWfAAjnmRM7R4G1KfkyoGNwNL6/2ZajJ94k5d8Obn90WJ6Qxqs5GgR9i5l5Uh7 v5z+FkqL1244dHsUIjwq2q1m59EBu3Hgu8mPMwLFYHgMylM1quHZncrLb+HP0XJKm4ei 4n8eIsanlfdbTAZYEkeSoworzVtab8jVy/ZVBnxpIkEgw0qPY2pi5f0xWY/MigVD52VB 08T4jJV++DrPa+LxQjTe4zNlOFjRhaif8XjpT9HdPeKvA9iN6bEbjrQDhJjQLSjz7ymm h3og== X-Received: by 10.224.86.200 with SMTP id t8mr25891328qal.0.1372079467697; Mon, 24 Jun 2013 06:11:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.195 with SMTP id gw3ls2033717qeb.64.gmail; Mon, 24 Jun 2013 06:11:07 -0700 (PDT) X-Received: by 10.220.250.147 with SMTP id mo19mr11131647vcb.79.1372079467509; Mon, 24 Jun 2013 06:11:07 -0700 (PDT) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [2607:f8b0:400c:c02::229]) by mx.google.com with ESMTPS id i3si4833951vdw.113.2013.06.24.06.11.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 06:11:07 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::229; Received: by mail-vb0-f41.google.com with SMTP id p13so8234361vbe.0 for ; Mon, 24 Jun 2013 06:11:07 -0700 (PDT) X-Received: by 10.58.251.144 with SMTP id zk16mr11273159vec.37.1372079467350; Mon, 24 Jun 2013 06:11:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp26937veb; Mon, 24 Jun 2013 06:11:06 -0700 (PDT) X-Received: by 10.14.178.134 with SMTP id f6mr24430802eem.91.1372079465971; Mon, 24 Jun 2013 06:11:05 -0700 (PDT) Received: from mail-ee0-x22d.google.com (mail-ee0-x22d.google.com [2a00:1450:4013:c00::22d]) by mx.google.com with ESMTPS id o41si11927389eep.319.2013.06.24.06.11.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 06:11:05 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4013:c00::22d is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:4013:c00::22d; Received: by mail-ee0-f45.google.com with SMTP id c1so5988840eek.32 for ; Mon, 24 Jun 2013 06:11:05 -0700 (PDT) X-Received: by 10.15.54.198 with SMTP id t46mr24921346eew.74.1372079465304; Mon, 24 Jun 2013 06:11:05 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id b7sm28337063eef.16.2013.06.24.06.11.02 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 06:11:03 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: ian.campbell@citrix.com, Stefano.Stabellini@eu.citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH] xen/arm: Set up Versatile Express timer frequency to 24 Mhz Date: Mon, 24 Jun 2013 14:10:58 +0100 Message-Id: <1372079458-7884-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQkt6fULjSbc6/+nLdDnb0Xox9VYixPdWeqeAtrEn9h5Yy3gljK7XKehvqbMAMTPXV94rLiw X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On TC2, the timer frequency was set to 100 Mhz which slows down the whole platform. When Linux is running on bare metal, the frequency is 24 Mhz. "sleep 60" in dom0 takes: - 4 mins with a frequency equals to 100 Mhz - 1 min with a frequency equals to 24 Mhz Signed-off-by: Julien Grall --- xen/include/asm-arm/platforms/vexpress.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/platforms/vexpress.h b/xen/include/asm-arm/platforms/vexpress.h index 982a293..014509b 100644 --- a/xen/include/asm-arm/platforms/vexpress.h +++ b/xen/include/asm-arm/platforms/vexpress.h @@ -39,7 +39,7 @@ int vexpress_syscfg(int write, int function, int device, uint32_t *data); #define V2M_GIC_BASE_ADDRESS 0x2c000000 /* Timer's frequency */ -#define V2M_TIMER_FREQUENCY 0x5f5e100 /* 100 Mhz */ +#define V2M_TIMER_FREQUENCY (24 * 1000 * 1000) /* 24 Mhz */ #endif /* __ASSEMBLY__ */