Received: by 2002:a19:6911:0:0:0:0:0 with SMTP id e17csp1004642lfc; Mon, 2 Dec 2019 20:13:42 -0800 (PST) X-Google-Smtp-Source: APXvYqze9BFuQQ2ZZ+GMf5HOi5gTdOV4CeQshQRfCgliXYtli7X/A+wGA2Bl9+WR0QyOe2G6p5O7 X-Received: by 2002:a17:906:5e4d:: with SMTP id b13mr3839560eju.266.1575346422777; Mon, 02 Dec 2019 20:13:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575346422; cv=none; d=google.com; s=arc-20160816; b=YzcH2GsNstaSEiPXSReLTnVjz+qvUQV00NMUcyht72UofxNGrFcXXPxVBSwFobS8zS 5SuGtmA4pujqkGjm67vVgVsSZgdvphYNWR7cHycvfIc/fJQnZuJ5t0Rkw0tDmGH+SrL7 sbK2PBeLYQrgahvEBXY/6L7pZUXGQP7qHMKC9/rvyaSndenJpQE/oMAIZt842XqmSiM4 5CsyZe6j7QFypbwAyQAV4wXbxZxwdurrZQ/DGGWJRhsVuxK5Zy1AHupZRbg6V2ker3aX QJa3V24ct96bX7wehIi89Y4N3uFQEhN9bGuI8sFXpcm0TFYSNLF4nJVZj9g15tAGoro0 Is2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :dkim-signature; bh=QNsQgXYGYrk1YAopBqhxivrkfW0hwxhGi//jQO/OV+Y=; b=CG3IbUjdHscR0VZn756WV1POmYw7piv5btg5lBooFjeYFdi/dgZywZaTsq1C3qpXgI ZJwfEkKe4q26VESCv/3IZL4iKyaQw/gLWeIZZqTd5ppFl7BnrBtpU/MN7+iYChfRM581 NVxkuWb0aLc1HOejnPFYnU6cOSZFK56qRvW06/BcCLPAkBXxTL4VqILSwnpncNmbY1JY OBPpVl/o7BCNAAfJv+R7ofXgl8ym7fpnHs9INKA2IemM2HKJLr5bkNCLp5DGFIWpaBx0 gPE39M/+VEvpNIkn4Tk50kMgHw7QfiiN9EiospRtgPEo/V939lr+6bUTyvEKsVCeBhxY 2ZAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aj.id.au header.s=fm1 header.b=W9Ga0kap; dkim=fail header.i=@messagingengine.com header.s=fm1 header.b=DOQ9gAUd; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a26si1282228ejs.91.2019.12.02.20.13.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2019 20:13:42 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@aj.id.au header.s=fm1 header.b=W9Ga0kap; dkim=fail header.i=@messagingengine.com header.s=fm1 header.b=DOQ9gAUd; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:48162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibzZF-0005c9-5w for alex.bennee@linaro.org; Mon, 02 Dec 2019 23:13:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32869) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibzYu-0005Zz-Je for qemu-arm@nongnu.org; Mon, 02 Dec 2019 23:13:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibzYt-00013g-FD for qemu-arm@nongnu.org; Mon, 02 Dec 2019 23:13:20 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:40661) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ibzYs-00011e-TO; Mon, 02 Dec 2019 23:13:19 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 61CB25C3; Mon, 2 Dec 2019 23:13:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 02 Dec 2019 23:13:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm1; bh=QNsQgXYGYrk1YAopBqhxivrkfW 0hwxhGi//jQO/OV+Y=; b=W9Ga0kapNxAUI7CfChi/1lwKgYjYSBTH0ke+a0x9mt W8EV/L/YRFjKWsHATsaL0VAO+9By4PIq+bfInCeLgxNjIYdtEb38mof0d08MhnNi VioBEZvDe4BPvbagcCJ40wK1H4p2ONK1TPkQds7HQbQMmnlKSUn7d7ZGblzabqas 3/vHWDoBGpuB/r9Ltva0ZhOkZuf/jLXqFm7zj/QQIaIlI2IHgGcdzsVOg1D1ip+6 EopWiRgdaNfmmOaamvoIxyljgn/DDTZGW0Yotb8QXbVrD+HrE0WAjcENPzE9XAXN AhN6g0IfHoMNkJc0o53WFZqiTc/lShloI88lTYNPRdhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=QNsQgX YGYrk1YAopBqhxivrkfW0hwxhGi//jQO/OV+Y=; b=DOQ9gAUdeYVmcEArki+n0s ZJ1PpLNZ3CohTIiRNfNuJsk3SFbHoIpY+RsGoWdHbpEMRJp05XQot6Hhn9x96PaL lA2uYVD9zHD6g0FsEr1BomSNp7QIbE0/rZN6b/cKY6vorEkgp9zXwRepNEu2pFZh VTxDy3WY+dJGnMXPn5zDd/eUDzA0NxTs8SLnagcLY+MlO9NztWB5VP6Pv11zmXSm 2LAJUENoxAAnhBQn7yMOQoHe71VJe1gZzoyC+SQAh10FH8JUwAtd7IwpWbmx17E9 m06DcCn6US75U6AYUrp30Ab79//3gM74yiJvxc6InYX876ORQJYqpqfMMlzY3ZKw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudejiedgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpeetnhgurhgvficulfgvfhhfvghrhicuoegrnhgurhgvfiesrghj rdhiugdrrghuqeenucffohhmrghinhepohiilhgrsghsrdhorhhgnecukfhppedvtddvrd ekuddrudekrdeftdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdr ihgurdgruhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from mistburn.au.ibm.com (bh02i525f01.au.ibm.com [202.81.18.30]) by mail.messagingengine.com (Postfix) with ESMTPA id 1497B8005A; Mon, 2 Dec 2019 23:13:13 -0500 (EST) From: Andrew Jeffery To: qemu-arm@nongnu.org Subject: [PATCH v2 0/4] Expose GT CNTFRQ as a CPU property to support AST2600 Date: Tue, 3 Dec 2019 14:44:36 +1030 Message-Id: <20191203041440.6275-1-andrew@aj.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.24 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, clg@kaod.org, joel@jms.id.au Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: oE3gy/i1i0kg Hello, This is a v2 of the belated follow-up from a few of my earlier attempts to fix up the ARM generic timer for correct behaviour on the ASPEED AST2600 SoC. The AST2600 clocks the generic timer at the rate of HPLL, which is configured to 1125MHz. This is significantly quicker than the currently hard-coded generic timer rate of 62.5MHz and so we see "sticky" behaviour in the guest. v1 can be found here: https://patchwork.ozlabs.org/cover/1201887/ Changes since v1: * Fix a user mode build failure from partial renaming of gt_cntfrq_period_ns() * Add tags from Cedric and Richard Please review. Andrew Andrew Jeffery (4): target/arm: Remove redundant scaling of nexttick target/arm: Abstract the generic timer frequency target/arm: Prepare generic timer for per-platform CNTFRQ ast2600: Configure CNTFRQ at 1125MHz hw/arm/aspeed_ast2600.c | 3 +++ target/arm/cpu.c | 41 +++++++++++++++++++++++++++++++++-------- target/arm/cpu.h | 28 ++++++++++++++++++++++++++++ target/arm/helper.c | 24 ++++++++++++++++++------ 4 files changed, 82 insertions(+), 14 deletions(-) -- 2.20.1