Message ID | 20230811034600.944386-1-anshuman.khandual@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp845820vqi; Thu, 10 Aug 2023 21:15:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1A/h3t/YuRgn1jQ54DYtMAFtcFDxIZzbbRSHvsKjO+hlCNmMFL6QDivbybfW4BGX7riEF X-Received: by 2002:a17:902:ea0a:b0:1b8:6952:5381 with SMTP id s10-20020a170902ea0a00b001b869525381mr1360697plg.9.1691727327241; Thu, 10 Aug 2023 21:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691727327; cv=none; d=google.com; s=arc-20160816; b=h/vKYYKNC/vGz+YuxbJay9g5r0QzYIKqaljwj1mDK/o59PwjxwzwwCSj/Khtr1RZtb KFYJP7uWxoodShol2ZH2Ljf0bUo5lNp4C58j1OlGsFoYHm44OrqMzT+E/L7wgw7BjKPz /Ap75IzejGMDCzPPGnx0syRizowglqLOXPSjyH9Oce3QErOpil81R2fpEk9wNRKyk3tl Ehl8COck1AC/tuRdu620vFr/fgSl4RldbaiEd9M6fAHyKBt5PACOgHcOdNyH89q/5d4P 7CxaGMGoJ7QGoukotRkDBVJaJUvF7ISRfW2H9JjMDqGHmAhv6GKXEhgDSuME4KDL3tAX mklg== 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=oDLWM4fxFoXzx4F3RIZgLujkgvO+1T4ZB3PI3iiyq+c=; fh=i7k4OkcaLUFocIK64fg5M0UL6Z7MqFc0/WYsE6IUDvI=; b=LQ8T4REAkh0WD5Lxf67Ysq0ItChlHe1+rQoZ72XPaLcHXCuO1GmDi7xankilTFuyC6 8fJvnjt23RqPkMJzOBPTzsMfp+bygoptU4bDB5J+GdIvWlaARyQzh1mMIfVW4+I2A9go KuKVmZ5/4/fJuK+icH6yLQiVST0d2Q5o6+fwhXVBJi/nK3yNiBSQAKZBbkY7Qjgp16sZ n/G86uaGm2Z5HrG7ulXecRtl3scxJtIg6eRdyI0kQlTGfyUEEn+QF1V485vu5S+GyGwv Rh6KHuFAiPqNpRr6mOFdryFwA3IgWqRZggYWHe/ageYFamXfyBq02KoxOzMT6BXM2ZIS EWOA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020a170902a38900b001b9d5d4d75dsi2661319pla.112.2023.08.10.21.15.13; Thu, 10 Aug 2023 21:15:27 -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 S232178AbjHKDqO (ORCPT <rfc822;shaohuahua6@gmail.com> + 99 others); Thu, 10 Aug 2023 23:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjHKDqM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 23:46:12 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 229532D57; Thu, 10 Aug 2023 20:46:11 -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 1B550D75; Thu, 10 Aug 2023 20:46:53 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.54.13]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4F1E33F6C4; Thu, 10 Aug 2023 20:46:06 -0700 (PDT) From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mike Leach <mike.leach@linaro.org>, James Clark <james.clark@arm.com>, Leo Yan <leo.yan@linaro.org>, Jonathan Corbet <corbet@lwn.net>, linux-doc@vger.kernel.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 0/3] coresight: etm: Make cycle count threshold user configurable Date: Fri, 11 Aug 2023 09:15:57 +0530 Message-Id: <20230811034600.944386-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773904673775359955 X-GMAIL-MSGID: 1773904673775359955 |
Series |
coresight: etm: Make cycle count threshold user configurable
|
|
Message
Anshuman Khandual
Aug. 11, 2023, 3:45 a.m. UTC
This series makes ETM TRCCCCTRL based 'cc_threshold' user configurable via the perf event attribute. But first, this implements an errata work around affecting ETM TRCIDR3.CCITMIN value on certain cpus, overriding the field. This series applies on v6.5-rc5. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Mike Leach <mike.leach@linaro.org> Cc: James Clark <james.clark@arm.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Changes in V3: - Added errata work around affecting TRCIDR3.CCITMIN - Split the document update into a separate patch Changes in V2: https://lore.kernel.org/all/20230808074533.380537-1-anshuman.khandual@arm.com/ - s/treshhold/threshold Changes in V1: https://lore.kernel.org/all/20230804044720.1478900-1-anshuman.khandual@arm.com/ Anshuman Khandual (3): coresight: etm: Override TRCIDR3.CCITMIN on errata affected cpus coresight: etm: Make cycle count threshold user configurable Documentation: coresight: Add cc_threshold tunable Documentation/arch/arm64/silicon-errata.rst | 10 ++++ Documentation/trace/coresight/coresight.rst | 4 ++ .../hwtracing/coresight/coresight-etm-perf.c | 2 + .../coresight/coresight-etm4x-core.c | 49 ++++++++++++++++++- 4 files changed, 63 insertions(+), 2 deletions(-)