From patchwork Wed Mar 3 15:16:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 392119 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5206991jap; Wed, 3 Mar 2021 07:17:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs/tNdCZvhxzaX+ThyailCqUsd40o+OjScMXvOKe17Af3C+SJZcAQW4zdMN7e7tsX9JiLY X-Received: by 2002:aca:3e87:: with SMTP id l129mr7500784oia.22.1614784665096; Wed, 03 Mar 2021 07:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614784665; cv=none; d=google.com; s=arc-20160816; b=svP7Usuo7V+PMThnVZk+TDzFAHZH0n1foEaA0BhD3pd4KaroDxGRKzoeE2zIAT6DWQ ux+rXQd5WA0KP3kEtoDDm817tSpTWs5zyWUvp7Wtivoz9eWRWhaosZdvllyACUSJxhFn scZBKJC97TlgEL0bdUACJ9SWV1FCaKfSQjhyUnnSWuJEOttP05dtSDlj89ykIAR1Fw6O jC03udOlnocPiDC5J7DHEfmvkgSq7r5VCYFTH8aIEZMKzL5/kzsduB32r2MeK5x/eflH JcQ0M8x3AjTUQ/Jd1loemzF6+kL7skx0k5HWmLBKWm6K1xYXjSb36/pygpK8rX58Ra0x FKoQ== 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; bh=Z6r8W5vhy8nhZlydjEupFAthleHQ06p/bbp0EAjeqEU=; b=C/9BBhQLtOsGyJhioyiBwRBV5GiziW3ARjwIuQV0d82USU9PcUbm6LD5xO5vXngKRg ABxXQ+LuzgujttYHyo5tWGoVQeRZwsl1v2HvLZq90FPKrH7i/oi3Y99Rt2dfY8lVmy78 loj8ynnkmOSGuZg/Fen6J1UKUszxmMPIcyGp7OiVO/kLy1uy20xcdtSuZPyIjCVHgKIr PFC0DuJd8ajJLN59iL2vCGkVVT0nQYtw7JibtkwudZ9BUR4s8NXi+zMlPZE2PI216zuA YxQ2SWVb2OeN3f3/zAtDjP8wwrPeUIpK4RhcocEgguhrKORyc6+qEvCaoKQK6PdMaP+e OTAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v26si18124975oth.311.2021.03.03.07.17.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Mar 2021 07:17:45 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHTFw-0004li-H2 for patch@linaro.org; Wed, 03 Mar 2021 10:17:44 -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) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl 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) 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 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 Reviewed-by: Leif Lindholm 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 #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 */ #ifndef CONFIG_USER_ONLY