Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp694943ybl; Fri, 30 Aug 2019 05:56:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqySaDgDAefVuwkh9rvwI9emnwRuT8nOAfY79yXtmMjOmZCTNrHRXZezrLLygayjgr51Fb7E X-Received: by 2002:aa7:8746:: with SMTP id g6mr17192097pfo.191.1567169770361; Fri, 30 Aug 2019 05:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567169770; cv=none; d=google.com; s=arc-20160816; b=tdUzASzfPpKVYKKCi/4nnCAPpVxeeJp/dAphA3vl2zEs5E+N4A3El1+HlOvNlATnRS Nq/8o0Xg031mqTzB5npqxHDkKWsMeFkdA/kMM5FBfDsU6kpPYUnH6E/Gg0Dwozhl4ziJ oaUA7+KLp6hCUHErWaIU3b/Ks3po3F2DlxR4YIUO+//mtj3jwDarhzUkZNKq6aTLW0uv GP07BegbR5oafLDMWP++zbNvYdQhI9eLUrgUEGIGldF7N9ruFsRE9CfaA3Y0iXIRH59X Dojl+ArhSc0KtrQvU1As5F9UcFV8kRuFbYlwJlxDVFv3rWuKMPLxAsJ/yirLe7/lAjdX af1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ZEiY82eKE2uACV/S5DxtDNOMIZl6DIjOCif0L4VFLrU=; b=Dg8mxN3WFHxgWXSk+3miSC3dkdTtklopjcwr25LTOb/dSWwEvkMwn+VFR9DX7/R9Cn AltfWQu1A1T143AiCug6BJArtUX+279rmOZssDe55IM8zprRleDVrwNgYEz1cdZ17u1Y LpbIq2ilUqK+RLO740XoQfnOTgA3DRzzdkctkqSBbJ4R/fMBYnx4WI7as5fCqFuqwuew dHEGF+NeJQrUa6qn1zAS5n5k7HcP8myjMmiqj/UH84YR6QdAdoaLvx3COJoBQzwU7bkp k4QOGIQRbbb4rJFENRIj9cic9k3oc1TQTgp21ZcQvNFGvRytd9rJvvCGhaD8KEaO3aPD ZZgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k839JJSe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si4609471plk.77.2019.08.30.05.55.55; Fri, 30 Aug 2019 05:56:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k839JJSe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728181AbfH3My5 (ORCPT + 99 others); Fri, 30 Aug 2019 08:54:57 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38696 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727718AbfH3My5 (ORCPT ); Fri, 30 Aug 2019 08:54:57 -0400 Received: by mail-pg1-f195.google.com with SMTP id e11so3521580pga.5; Fri, 30 Aug 2019 05:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZEiY82eKE2uACV/S5DxtDNOMIZl6DIjOCif0L4VFLrU=; b=k839JJSeGmhijFzWPRyX49gb6r8QPZLMmkUaUjp1GiFqnFD38Vlq+JvhhG3u7UTf9t Up/j5M8GMYhb1xKkzsrHtCT5xzJJ9J6pBZGurlPUU+Yqv0lFIfXLfeuHy1QaAd7yHlyf g1bjWCe41mSNkKAib32HB7ykqkeOaMjCwxTFEHtRhOoFy44ZXaJpm+hwvd3Vgvtxdah2 lu8P9rpI8KsQzGF/31Ubfm7qnwT2/Rh9KYTmiRroPMyAoHmsmUExwCev/6CVAOka1aWh FS3/nS9LqUUwOuikgsL2ohEGiuP8eVP0HyDU3hfKiLghNx6SKnX4DZn2QA88vodTBOKU RHwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZEiY82eKE2uACV/S5DxtDNOMIZl6DIjOCif0L4VFLrU=; b=HOyeru+RVHBY2L4Gg1M3aY40kPp3v0cKEpabo8sgzSe0q7dXdF1wMF2iV3/KJCzJOi nl5BOkkJ3gxXOj36w0gyAfXGuRwP6o2K7nWEV6t1vuHFpGeBKPjX0u9wUcCm2t8ILXKp LD4VOu6IBqMnaKyCJYHgDVXJdI+JASvJdU8CrjR/qivVdWpGgpnTpzCikTn0kxU1C/eb oGNQ2lDBr2Bu3jxH+4hXulbWzVuuX9oF2wgd8sc3JN/uJsguBmkEvNCAIKZciEk3Ylgf YgHRmUOAexBc1imsyFwmpqGjSNwlaE02hE3vc26wo9vhngufllr/lOhg3eUvswNcVBU6 B8ug== X-Gm-Message-State: APjAAAU0E3rCDpUYeOHKAugRFXz50ZSoEbLeFOAVtI2htXm84U8X0usG lDpFyiQKZ4l1eE7Wa037yNIXhfDw X-Received: by 2002:a63:9d43:: with SMTP id i64mr12985521pgd.306.1567169696440; Fri, 30 Aug 2019 05:54:56 -0700 (PDT) Received: from localhost.localdomain.com ([115.113.156.3]) by smtp.gmail.com with ESMTPSA id e189sm5871043pgc.15.2019.08.30.05.54.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Aug 2019 05:54:55 -0700 (PDT) From: ganapat X-Google-Original-From: ganapat To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: will@kernel.org, mark.rutland@arm.com, corbet@lwn.net, jnair@marvell.com, rrichter@marvell.com, jglauber@marvell.com, gkulkarni@marvell.com Subject: [PATCH v5 1/2] Documentation: perf: Update documentation for ThunderX2 PMU uncore driver Date: Fri, 30 Aug 2019 18:24:35 +0530 Message-Id: <20190830125436.16959-2-ganapat@localhost.localdomain> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190830125436.16959-1-ganapat@localhost.localdomain> References: <20190830125436.16959-1-ganapat@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ganapatrao Kulkarni Add documentation for Cavium Coherent Processor Interconnect (CCPI2) PMU. Signed-off-by: Ganapatrao Kulkarni --- .../admin-guide/perf/thunderx2-pmu.rst | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Documentation/admin-guide/perf/thunderx2-pmu.rst b/Documentation/admin-guide/perf/thunderx2-pmu.rst index 08e33675853a..01f158238ae1 100644 --- a/Documentation/admin-guide/perf/thunderx2-pmu.rst +++ b/Documentation/admin-guide/perf/thunderx2-pmu.rst @@ -3,24 +3,26 @@ Cavium ThunderX2 SoC Performance Monitoring Unit (PMU UNCORE) ============================================================= The ThunderX2 SoC PMU consists of independent, system-wide, per-socket -PMUs such as the Level 3 Cache (L3C) and DDR4 Memory Controller (DMC). +PMUs such as the Level 3 Cache (L3C), DDR4 Memory Controller (DMC) and +Cavium Coherent Processor Interconnect (CCPI2). The DMC has 8 interleaved channels and the L3C has 16 interleaved tiles. Events are counted for the default channel (i.e. channel 0) and prorated to the total number of channels/tiles. -The DMC and L3C support up to 4 counters. Counters are independently -programmable and can be started and stopped individually. Each counter -can be set to a different event. Counters are 32-bit and do not support -an overflow interrupt; they are read every 2 seconds. +The DMC and L3C support up to 4 counters, while the CCPI2 supports up to 8 +counters. Counters are independently programmable to different events and +can be started and stopped individually. None of the counters support an +overflow interrupt. DMC and L3C counters are 32-bit and read every 2 seconds. +The CCPI2 counters are 64-bit and assumed not to overflow in normal operation. PMU UNCORE (perf) driver: The thunderx2_pmu driver registers per-socket perf PMUs for the DMC and -L3C devices. Each PMU can be used to count up to 4 events -simultaneously. The PMUs provide a description of their available events -and configuration options under sysfs, see -/sys/devices/uncore_; S is the socket id. +L3C devices. Each PMU can be used to count up to 4 (DMC/L3C) or up to 8 +(CCPI2) events simultaneously. The PMUs provide a description of their +available events and configuration options under sysfs, see +/sys/devices/uncore_; S is the socket id. The driver does not support sampling, therefore "perf record" will not work. Per-task perf sessions are also not supported. -- 2.17.1