From patchwork Thu Dec 22 08:42:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 13079522 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2EB75C4332F for ; Thu, 22 Dec 2022 08:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y85u/36hw8GrBNnJncMbuSqLoajNgVYrtuUf4d4QyVQ=; b=uq9CY36jKJppFP qojnQHfuNW0NFrhIg392c/05kyzhXF/1pz2Dqjo4EDZ43lJvB5W6N1PaxH9l+AGSZL+O+nCZ0qHaQ iz4Lm0Z+MVU1ltDGKnmWRY0nHOv0fQjZ9iTA2d98jKbGHWh/TXO+dtj1QLJbCV9njFJ/rbICR8pda tIf9gMbKfRLPurzql5SlBGrCPVaRxYhOm2S1c+UazZdsnTBhmi6OFGJcyv7p/uil+cx5VF/C4ReYs he4paqp4Dz/BhFhoLNSA/8sgZW2KkSQER5KoXWw1EeJh3OX09mPGS5HGF++hfkNt90fBPKPoWo+oo IO+Tdk44PIkKopPJG5PQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8HAV-0099nB-9Z; Thu, 22 Dec 2022 08:43:11 +0000 Received: from mail-bn8nam12on2074.outbound.protection.outlook.com ([40.107.237.74] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8HAE-0099Oa-T6 for linux-arm-kernel@lists.infradead.org; Thu, 22 Dec 2022 08:42:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TdH5rhW3J1kFXEebIb67xpeCTrw7IK/DDea3/I5mvpCAyPzgJabcR/+/vwbJ05xENiI9yTtN48wIfeTRf9NTFlQNfPnl7tqFmw1UhnFSnX9PhPAyQRk06m6/YdfF/yf6P2eoBTBVmJ1pvpXYo8TuVRPJNYO/8y9GoFegsoMwFYKtYng4FQhpQQ1zoRYRcCNLHaU/LuBjafmNeqjI12wKWrGEmuUCiEcOw1Obc0GC3T5l9gY4sZhhlXbPQat3qSDTrC+JDHooSXZyXHQnPw+KN1paWssQTPSVrpFSx217s4rysn5H8YztmEdGOnlibFXRyrAEABhe8GCN6dJ3JltxPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BZfu/y1WWd9hK6m3Ss/B3157ZoTlzL1R5OOi3nhRYG8=; b=AXI+GykO4TE51iYCA2YPbJS5y24PTLhq/BfhdRBu+fFI6PRyvbD8B0PrGko8D+LER6Xo/2buaaZxnNdaC7J7/uDT8TmHzHgEZpvteXWsr+EftIFt48XE/HvxPNyOaCvBnZXNatZAPc0aBZJ+GpzdSEl1l6HgA89L9uyrHYCmAO8GceRULDS377X5/1iHhdokunnY/LzkuDThrenEz99qhqnZ9EhpKiCEplYxcpUjoN8qB1PWxABcoSnXW+ycNUxhMXXweCokU3Qs0f9lDlEADwmZLhU1Ke8Z0XEL74IIzmQffKzGNlYxB6WyONjoDEFA/I4FrgUJt+UdUVl8UZdeiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BZfu/y1WWd9hK6m3Ss/B3157ZoTlzL1R5OOi3nhRYG8=; b=0d7JPOj0DKzKEthz6WjwJfy7I4P+LpSnMXo/jv2nhyI6/p+b3feynAnSCbhHQsCdhf3R4sY3RnkkGU9O6DSWWr5efSredcgsGkEoDArrPVnz/tLFh8OOLeYTYpD/pIy0Z3csGy0kNj0Uj5Pe/MlCSoBDgUqVOA+IOTO99C7sY/Y= Received: from MW4PR03CA0001.namprd03.prod.outlook.com (2603:10b6:303:8f::6) by DM4PR12MB5722.namprd12.prod.outlook.com (2603:10b6:8:5d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Thu, 22 Dec 2022 08:42:48 +0000 Received: from CO1NAM11FT098.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8f:cafe::2e) by MW4PR03CA0001.outlook.office365.com (2603:10b6:303:8f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.11 via Frontend Transport; Thu, 22 Dec 2022 08:42:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT098.mail.protection.outlook.com (10.13.174.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.10 via Frontend Transport; Thu, 22 Dec 2022 08:42:47 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 22 Dec 2022 02:42:46 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 22 Dec 2022 02:42:40 -0600 Received: from xhdshubhraj40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 22 Dec 2022 02:42:38 -0600 From: Shubhrajyoti Datta To: CC: , , , , Subject: [PATCH v2 1/2] dt-bindings: Add the binding doc for xilinx APM Date: Thu, 22 Dec 2022 14:12:34 +0530 Message-ID: <20221222084235.12235-2-shubhrajyoti.datta@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221222084235.12235-1-shubhrajyoti.datta@amd.com> References: <20221222084235.12235-1-shubhrajyoti.datta@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT098:EE_|DM4PR12MB5722:EE_ X-MS-Office365-Filtering-Correlation-Id: 10238098-bf3b-4f67-65b6-08dae3f880f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OR9GDuXSJ/08FHEijdEGRUSrW+uxLZRrlNJi3ox4byHR81BvPEQwiQ+c+p0pq+DE1a0heHYzd4uhI2IJiM4MC8AVNZGFFgQ9Fa484iMOgLaZJ3rBLhXPbkWM8hNm6a67g2lsBWAyzXGg4Mq5wwvw2ziCfItvbFSh0SZYFe7AOFVRs/SHX6/gTPvHL0DlsteoS4r0U4sybQQ34jlFuaBKgpOAbon+nFKDeZ7kJdAIdzM0a6dLANoBR320rjeLWoUcX4ZH4BucQcoWr2GkCoVhBPExHuY6XcgECKjFRTPvC4ju94chmFn+N6VnPPQ2OQB6TaC+8q7u4/byHJ6om0hy16Z1T2e01JXxzFHsekXu8AhCEZUgyV9SkrJN6eTaay9X4OJ0JyN/Now8OK8CRrkwgjBIcIqIo5jdgtXZpKscH6fXqafkh9BwNMm0s6pJ/+ZZ0Rqv1XhmsszhjJ8R90nZ+LdVXwKeYMO3Rr2bquNTwyW+eZBJm48evZzEKit9JqGxQ9AZ7oOtYl+dQTW2eh8X932RQmzElZVPLTmSfLfv4ttTF9PGwR0G7HZ/vf5cuIjkqCUioEPRMJYdAYffp5cAzQEjEnAHZJHMHXgql8RMpQnMJv6w2Rv5iV/TP2jqwmHy1h7UA0oqcZe8S84P69WYV3qGim6fYv8/5M6nmvo9h7aGV9sfvPw2YmkHGC+5h/oWclhw8L/vDT0uxnHN9SQpiXlZGfqv6HR0PoFzvogQ9ewox2N+Zgh2kAL//37AtWt+IiRCd0ItWUNmUODe08S46NxLgy0Yipv5ytb+qiw9uZA= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199015)(46966006)(36840700001)(40470700004)(40460700003)(86362001)(70586007)(70206006)(8676002)(4326008)(316002)(5660300002)(336012)(2616005)(36756003)(8936002)(1076003)(41300700001)(82310400005)(6666004)(36860700001)(426003)(26005)(83380400001)(356005)(186003)(47076005)(54906003)(40480700001)(6916009)(82740400003)(81166007)(478600001)(44832011)(966005)(2906002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2022 08:42:47.9482 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10238098-bf3b-4f67-65b6-08dae3f880f1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT098.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5722 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221222_004255_022435_DE9D4B10 X-CRM114-Status: GOOD ( 16.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The LogiCORE IP AXI Performance Monitor core enables AXI system performance measurement for multiple slots (AXI4/AXI3/ AXI4-Stream/AXI4-Lite) activity. Add the devicetree binding for xilinx APM. Signed-off-by: Shubhrajyoti Datta --- Changes in v2:  - Use boolean for the values xlnx,enable-profile , xlnx,enable-trace and xlnx,enable-event-count - Update the file name - use generic node name pmu .../bindings/perf/xlnx,axi-perf-monitor.yaml | 133 ++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/xlnx,axi-perf-monitor.yaml diff --git a/Documentation/devicetree/bindings/perf/xlnx,axi-perf-monitor.yaml b/Documentation/devicetree/bindings/perf/xlnx,axi-perf-monitor.yaml new file mode 100644 index 000000000000..72843504c946 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/xlnx,axi-perf-monitor.yaml @@ -0,0 +1,133 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/xlnx,axi-perf-monitor.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Axi Performance Monitor + +maintainers: + - Shubhrajyoti Datta + +properties: + compatible: + const: xlnx,axi-perf-monitor + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + xlnx,profile: + description: + Has profile mode support. Event counting in profile mode consists of a + fixed number of accumulators for each AXI4/AXI3/AXI4-Lite slot. All the + events that can be counted are detected and given to the accumulator + which calculates the aggregate value. There is no selection of events, + and in this mode, event counting is done only on AXI4/AXI3/AXI4-Lite + monitor slots. + type: boolean + + xlnx,trace: + description: + Has trace mode support. In trace mode, the APM provides event logging in a + reduced dynamic configuration. It captures the specified AXI events, + external events and the time stamp difference between two successive + events into the streaming FIFO. The selection of events to be captured + is set through parameter configuration. Streaming agents are not + supported in trace mode. + type: boolean + + xlnx,num-monitor-slots: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of monitor slots. + minimum: 1 + maximum: 8 + + xlnx,event-count: + description: + Has event counting capability.. + type: boolean + + xlnx,event-log: + type: boolean + description: + Has event logging support. + + xlnx,have-sampled-metric-cnt: + type: boolean + description: + Sampled metric counters enabled in APM. + + xlnx,metric-count-width: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [32, 64] + description: + Metric Counter width. + + xlnx,metric-count-scale: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [1, 2, 4, 8] + description: + Metric Counter scale factor. + + xlnx,num-of-counters: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of counters in APM. + + xlnx,metrics-sample-count-width: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [32, 64] + description: + Sampled metric counter width. + + xlnx,global-count-width: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [32, 64] + description: + Global Clock counter width. + + xlnx,id-filter-32bit: + description: APM is in 32-bit mode. + type: boolean + +required: + - compatible + - reg + - clocks + - interrupts + +additionalProperties: false + +examples: + - | + #include + + pmu@44a00000 { + compatible = "xlnx,axi-perf-monitor"; + interrupt-parent = <&axi_intc_1>; + interrupts = ; + reg = <0x44a00000 0x1000>; + clocks = <&clkc 15>; + xlnx,num-monitor-slots = <4>; + xlnx,event-count; + xlnx,event-log; + xlnx,have-sampled-metric-cnt; + xlnx,num-of-counters = <8>; + xlnx,metric-count-width = <32>; + xlnx,metrics-sample-count-width = <32>; + xlnx,global-count-width = <32>; + xlnx,metric-count-scale = <1>; + xlnx,id-filter-32bit; + };