Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp412128rwb; Thu, 22 Sep 2022 01:05:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bpbV1OYd0B2rpQ4BwE3oesPKi3ciBD87YHybVNI4+AuxwCvIExh19i02E7II2UPvhdld2 X-Received: by 2002:a05:6402:2949:b0:451:fabf:d88a with SMTP id ed9-20020a056402294900b00451fabfd88amr1953703edb.324.1663833919711; Thu, 22 Sep 2022 01:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663833919; cv=none; d=google.com; s=arc-20160816; b=toN2yq+KMJXxwgjtvt1EiNx8ev4P53nXcYjGWIUwbQ15mvuO0TXJb6UlTgN7ad2Rl9 XDZD1s4+XKL9jXkuOu/jDgRr6LOCkxRNIJDL/DW4YaLFddMLytRqJa12JGkw729K2ivT bksWe2d5ustgvdcLtPWec3RJOjjhzA/FfQB/3FzU9L8djPDez5Oh9LEVSz63Vj8BQteL oC7cFAQZh9zmIZQqw9ya1lMIPRj0QBPY0Ud1d/bhUs+7jqcmWDqVkwgnj3q5A50eEqyU blCO0xsgbXnFng9uuRhFWdYRT57J51vftaEU2z5hPscm/NlH/C7+lceK70gtjeFut3sp S9aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jFx0NN1Dezc//5JMLMPKj6ZSUsKS6i/RaPn9YaQkLak=; b=M0dD01V1/3FxOCmlrKBbK3ik2R8+2Xae5pZQfpJJ+YBvV1T6k9ppmG8pLb0WfgdmKI kYoapf/5zcViHi3ZWMAv5X+xXZ8UGhyNU0nyDLL0lymDwWQyFXL4+Q19Mwi76Z29NgPO 0KLkfOfIf+ER8Sz94fzpSmJf0/DV9Z6KC+tmK7yD4FuK0zl6vAVEKi9nxFMWk/4InnG0 jWPKMrtAfHnudyHf9X2keVEqPOsCdWrgf1mZAdFAf3h+LEuXIblGW+LKJGUahM+5jEU3 UE9vmDBUWUNrzuzs8vrKnzJiBljrlIFK7+pCcwTMhJqbLKrARl2oRqM/mJbaGBGBFTB/ siKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj19-20020a170906b05300b00773e2cce08fsi4322974ejb.115.2022.09.22.01.04.52; Thu, 22 Sep 2022 01:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbiIVHh6 (ORCPT + 99 others); Thu, 22 Sep 2022 03:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231138AbiIVHh4 (ORCPT ); Thu, 22 Sep 2022 03:37:56 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B857ACDCF6 for ; Thu, 22 Sep 2022 00:37:55 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MY6WD1RqWzpVRd; Thu, 22 Sep 2022 15:35:04 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 15:37:53 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 15:37:53 +0800 From: Liu Shixin To: Will Deacon , Mark Rutland , "Mark Brown" CC: , , Liu Shixin Subject: [PATCH] drivers/perf: arm_spe: fix ID_AA64DFR0_PMSVER_* undeclared Date: Thu, 22 Sep 2022 16:11:36 +0800 Message-ID: <20220922081136.2508758-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert ID_AA64DFR0_PMSVER_* to ID_AA64DFR0_EL1_PMSVer_*. Signed-off-by: Liu Shixin --- drivers/perf/arm_spe_pmu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index db8a0a841062..00e3a637f7b6 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c @@ -676,9 +676,9 @@ static irqreturn_t arm_spe_pmu_irq_handler(int irq, void *dev) static u64 arm_spe_pmsevfr_res0(u16 pmsver) { switch (pmsver) { - case ID_AA64DFR0_PMSVER_8_2: + case ID_AA64DFR0_EL1_PMSVer_IMP: return SYS_PMSEVFR_EL1_RES0_8_2; - case ID_AA64DFR0_PMSVER_8_3: + case ID_AA64DFR0_EL1_PMSVer_V1P1: /* Return the highest version we support in default */ default: return SYS_PMSEVFR_EL1_RES0_8_3; @@ -960,7 +960,7 @@ static void __arm_spe_pmu_dev_probe(void *info) struct device *dev = &spe_pmu->pdev->dev; fld = cpuid_feature_extract_unsigned_field(read_cpuid(ID_AA64DFR0_EL1), - ID_AA64DFR0_PMSVER_SHIFT); + ID_AA64DFR0_EL1_PMSVer_SHIFT); if (!fld) { dev_err(dev, "unsupported ID_AA64DFR0_EL1.PMSVer [%d] on CPU %d\n", -- 2.25.1