Message ID | 20230920095443.1126617-1-anshuman.khandual@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4015922vqi; Wed, 20 Sep 2023 03:06:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHq1z0I41BzQ1Jfl7IfkvP3JlqnZ5kuUpck2DN/fGyPkuMSGK7xdBTwkTBshG4dg/BReIRw X-Received: by 2002:aca:1b17:0:b0:3a7:208c:4406 with SMTP id b23-20020aca1b17000000b003a7208c4406mr1897636oib.1.1695204380696; Wed, 20 Sep 2023 03:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695204380; cv=none; d=google.com; s=arc-20160816; b=taGEQ9o+tgghEgO5eRXrYW+m4OYMpv8pbAkBrYoXh22PszQdE/2vRoC8z2rFqtm7kr e2l9TikhgxbmQBaCQGQnR3oNf6OvS2djtm9vi4kYgmPcgEiKzmrK/pEYPt4RTJEazMMG SiDSXnj4TMlOsUEYYEvJe9IDX+kAQ0m3UoUFhOM+yAkCVt987mOrWwt2e8jW1+PFV2eM ardKQELFXfs0CzflIoEA+NBvewjn009vlGVaL1bSdyhRSL1eINnzqGJVJPwpNCyJ7xn2 yUseFNHuYxT0Sk4VDoNEok9zp327eN3Yqw2wPrkL32PIwYrCIRypOmUx+ckI+E1cscYL Ymvg== 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=n4X98/UgkxTGr/+IOQe+7KW+SoenVm798n3AmGk4WSg=; fh=1B1+mkCYVeZZz1DAsIIoOA2jU5pSNu/8Q01YDfzUzC8=; b=pOAiA1dcnqFd95FEyV6PWrVu4K++joHMO/tZ24PrtYaLXjKKjEVSJ3LG+YTceKrkGt zMjtW15Ksp/xVt1FcpP5QbaOu9tWg9rTSABtuqBdJJ/qkF2zdeeY7qMJTaxBmwvuJPvY rV53YAIIZkEmZQC4rib55Nv0RzenSGedU+TiKzaMW6jtqQMnySnRRi6YQRlDikW6ET7D eRkEawyChxitpco8QDwtg/gIL1mj2BxB4JM+5q/NbEqnXGFDQp6FRIyKsdA8hBIG4bKg pipP59OarD5PIpdoP8gZF2fHZkg/WueWzA8Pld6AObPgkVgjkuXuzOTkRhMJt/+owthZ FuQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ef6-20020a056a002c8600b00690f291a06esi985908pfb.1.2023.09.20.03.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 03:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7920C829BD56; Wed, 20 Sep 2023 02:55:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234258AbjITJzL (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 05:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234270AbjITJzB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 05:55:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 158E1AD; Wed, 20 Sep 2023 02:54:55 -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 EC41B1FB; Wed, 20 Sep 2023 02:55:31 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.59.204]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EB6F23F5A1; Wed, 20 Sep 2023 02:54:49 -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 V6 0/3] coresight: etm: Make cycle count threshold user configurable Date: Wed, 20 Sep 2023 15:24:40 +0530 Message-Id: <20230920095443.1126617-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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:55:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777550500177200661 X-GMAIL-MSGID: 1777550628347204564 |
Series |
coresight: etm: Make cycle count threshold user configurable
|
|
Message
Anshuman Khandual
Sept. 20, 2023, 9:54 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 coresight/for-next/queue. 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 V6: - Renamed etm4_core_reads_wrong_ccitmin() as etm4_fixup_wrong_ccitmin() - Moved drvdata->ccitmin fixup inside etm4_fixup_wrong_ccitmin() Changes in V5: https://lore.kernel.org/all/20230821045216.641499-1-anshuman.khandual@arm.com/ https://lore.kernel.org/all/20230915093649.435163-1-anshuman.khandual@arm.com/ - Replaced 'where as' with single word 'whereas' - Reworked 'cc_threshold' fallback to ETM_CYC_THRESHOLD_DEFAULT Changes in V4: https://lore.kernel.org/all/20230818112051.594986-1-anshuman.khandual@arm.com/ - Fixed a typo s/rangess/ranges, - Renamed etm4_work_around_wrong_ccitmin() as etm4_core_reads_wrong_ccitmin() - Moved drvdata->ccitmin value check for 256 inside etm4_core_reads_wrong_ccitmin() - Moved the comment inside etm4_core_reads_wrong_ccitmin() Changes in V3: https://lore.kernel.org/all/20230811034600.944386-1-anshuman.khandual@arm.com/ - 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 | 46 ++++++++++++++++++- 4 files changed, 60 insertions(+), 2 deletions(-)