From nobody Fri May 17 11:28:44 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1614784682; cv=none; d=zohomail.com; s=zohoarc; b=AsvLgXc/2uX/4ire6qNuM1IryptYkYaukUf6HOpXrfzjgxIsbBfCQFiEp32vOIn3vYzj7L0zjliRbRpFLXVkbZ3Y7RQEWnURebmQlmHruTXxR7uVbNG7TqQipKN45cKb798zHZn2kpUBQjddolOJhDj837dOKVoNO18tjYn2Fp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614784682; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Z6r8W5vhy8nhZlydjEupFAthleHQ06p/bbp0EAjeqEU=; b=YntlWkjrTIeCpdagHY4/q/Z4LBF3uee4YwdpBUhJ6wVPJmwyGpo83ERDsHS1FFMKdZZmIFrmshvWecvOPo+VvRpP+QYpJJ1ONSyxQ2aMdiqHQ1y2N/VWa27vL7jRc1eiFk5FvLZ91Ufe6yIJ6gR+HebpS4KG71g9KYEp4VAyVVQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1614784682416895.2541517179696; Wed, 3 Mar 2021 07:18:02 -0800 (PST) Received: from localhost ([::1]:49874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHTGD-0005d2-77 for importer@patchew.org; Wed, 03 Mar 2021 10:18:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHTF4-0004lY-0N; Wed, 03 Mar 2021 10:16:50 -0500 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]:55822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHTF2-0003pP-6B; Wed, 03 Mar 2021 10:16:49 -0500 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 28278260AD8; Wed, 3 Mar 2021 16:16:44 +0100 (CET) Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yqQziC_f4iEX; Wed, 3 Mar 2021 16:16:42 +0100 (CET) Received: from puchatek.lan (89-67-26-161.dynamic.chello.pl [89.67.26.161]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id A366B2606A7; Wed, 3 Mar 2021 16:16:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl From: Marcin Juszkiewicz To: qemu-arm@nongnu.org Subject: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS Date: Wed, 3 Mar 2021 16:16:34 +0100 Message-Id: <20210303151634.3421880-1-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcin Juszkiewicz , Peter Maydell , Leif Lindholm , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Arm BSA (Base System Architecture) specification says: B_PE_09: PEs must implement the FEAT_PMUv3p1 extension, and the base system must expose a minimum of four programmable PMU counters to the operating system. B_PE_21: The base system must expose a minimum of two programmable PMU counters to a hypervisor. It is then repeated in SBSA (Server Base System Architecture) specification in level 3 requirements: Each PE must implement a minimum of six programmable PMU counters. So let make QEMU provide those 6 PMU counters. SBSA-ACS says now: 12 : Check number of PMU counters : Result: PASS Signed-off-by: Marcin Juszkiewicz Reviewed-by: Leif Lindholm --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/helper.c b/target/arm/helper.c index 0e1a3b9421..02e25b5c22 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -38,7 +38,7 @@ #endif =20 #define ARM_CPU_FREQ 1000000000 /* FIXME: 1 GHz, should be configurable */ -#define PMCR_NUM_COUNTERS 4 /* QEMU IMPDEF choice */ +#define PMCR_NUM_COUNTERS 6 /* QEMU IMPDEF choice */ =20 #ifndef CONFIG_USER_ONLY =20 --=20 2.29.2