Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3950568rwb; Tue, 20 Sep 2022 07:01:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7rbxwr0dW98cWq9iuosH/clcyZfmsYnzoYQ9oRDvXqsDgqCmEXo4PJvCqDhg7szTEoAjbi X-Received: by 2002:a17:90a:4590:b0:203:3947:1a81 with SMTP id v16-20020a17090a459000b0020339471a81mr4032378pjg.11.1663682464599; Tue, 20 Sep 2022 07:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663682464; cv=none; d=google.com; s=arc-20160816; b=O7YGXbtpj5/bcRZeJLeLCBXzFzvGUbkENPfxgyqGGPn4MO8HFuzJqo+xRmr3R0HM+j QCVFQZt7QNknI91etDSHZupGpMfoJfrH7gK5xLas9Jeyvt5qLWuaGVeTr6cadrHEqUaU sI211Ey9C6Lc71hrwpju8etKf0ecvH32g2h1Q2IURbqB8/0O580XQLJ/3bN7e4bWUpH7 D2E/3bf8GLWmnfNbtJpfp1KGdpckFQ7l9I+out2jY+KJ3gsTGqSBLmVsCt3jxQRcP5is WJ5r6Xep5CG3Jy6VevEALkUTvGPYtBu89CEJeGEHhYEl6MPFDTXWhX2mdukSSgoaaEs9 8bgQ== 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=dsaQ8xAEdNpW0+UZhHT12H8Qoay0iV6iHrSCxMiaNwE=; b=BKdRTSFWduToX2P4Vb31v5/9W2VYZBvXeh1FCHoM8ks1noh7th18HoNubK3gi62d5f lOBpSSOtnhSSdZU0/c4Pdn4D4PgacebKM/AyliiqXRcCBqUqE1FFr3ruzR33HlEkHuBr dw9+o3fruyk4YyZU10nteVuO8iizl3Cf+PWsGuR5VEmY5NST/lyvP1cXa0PDgRuGTa8b JAQrJojauNdkGFORv97sI6BPbomT9nxA3cj28d0W94t8dqnnIKtgbPDDsmzAs5D7PZJD ujUw0zHhQ4yau5rXJn3m2Lz+4lqfupDhymfXYVNB5nwQ3VtltoUBq5/AYgqFhi3lHYwn ot3A== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a656803000000b0041ab564a1ecsi1757059pgt.107.2022.09.20.07.00.51; Tue, 20 Sep 2022 07:01:04 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbiITNsn (ORCPT + 99 others); Tue, 20 Sep 2022 09:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbiITNsm (ORCPT ); Tue, 20 Sep 2022 09:48:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 274A65722A for ; Tue, 20 Sep 2022 06:48:41 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 26D0313D5; Tue, 20 Sep 2022 06:48:47 -0700 (PDT) Received: from e121896.cambridge.arm.com (e121896.cambridge.arm.com [10.1.38.12]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 715EF3F73D; Tue, 20 Sep 2022 06:48:38 -0700 (PDT) From: James Clark To: suzuki.poulose@arm.com, coresight@lists.linaro.org, mathieu.poirier@linaro.org Cc: mike.leach@linaro.org, leo.yan@linaro.org, James Clark , Alexander Shishkin , Mark Brown , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] coresight: Use new autogenerated sysreg definitions Date: Tue, 20 Sep 2022 14:48:27 +0100 Message-Id: <20220920134827.31738-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Fix the build by updating registers to use the new autogenerated format. Fixes: c0357a73fa4a ("arm64/sysreg: Align field names in ID_AA64DFR0_EL1 with architecture") Signed-off-by: James Clark --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 ++-- drivers/hwtracing/coresight/coresight-trbe.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index d39660a3e50c..80fefaba58ee 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -966,7 +966,7 @@ static inline bool cpu_supports_sysreg_trace(void) { u64 dfr0 = read_sysreg_s(SYS_ID_AA64DFR0_EL1); - return ((dfr0 >> ID_AA64DFR0_TRACEVER_SHIFT) & 0xfUL) > 0; + return ((dfr0 >> ID_AA64DFR0_EL1_TraceVer_SHIFT) & 0xfUL) > 0; } static bool etm4_init_sysreg_access(struct etmv4_drvdata *drvdata, @@ -1054,7 +1054,7 @@ static void cpu_detect_trace_filtering(struct etmv4_drvdata *drvdata) u64 trfcr; drvdata->trfcr = 0; - if (!cpuid_feature_extract_unsigned_field(dfr0, ID_AA64DFR0_TRACE_FILT_SHIFT)) + if (!cpuid_feature_extract_unsigned_field(dfr0, ID_AA64DFR0_EL1_TraceFilt_SHIFT)) return; /* diff --git a/drivers/hwtracing/coresight/coresight-trbe.h b/drivers/hwtracing/coresight/coresight-trbe.h index 30e4d7db4f8e..98ff1b17ad07 100644 --- a/drivers/hwtracing/coresight/coresight-trbe.h +++ b/drivers/hwtracing/coresight/coresight-trbe.h @@ -20,7 +20,8 @@ static inline bool is_trbe_available(void) { u64 aa64dfr0 = read_sysreg_s(SYS_ID_AA64DFR0_EL1); - unsigned int trbe = cpuid_feature_extract_unsigned_field(aa64dfr0, ID_AA64DFR0_TRBE_SHIFT); + unsigned int trbe = cpuid_feature_extract_unsigned_field(aa64dfr0, + ID_AA64DFR0_EL1_TraceBuffer_SHIFT); return trbe >= 0b0001; } -- 2.28.0