From patchwork Fri Feb 16 00:08:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13559309 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 DC1BCC48BC4 for ; Fri, 16 Feb 2024 00:09:02 +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=PbMXmAPBEOHjtU44w+l2diX8HzTSkoWkox3NPDsIk80=; b=MkBcqnBcpM6Pd9 5OK4kE/PdtUBSfwS0LOwcTpTJ8RpEMyI92mxg1fSXMt+PAkR2S+vzlxDwlbHpx+5z9ABbBLIOcNCi mKU020ym7VRbTRRQJLYNOqG+xqlWb+yHcbSVI4fvzZjRXsq5f2Bun243VUdCy9T8ub2vYB/WkEqXe Y8ltq23KtQamK9MYuwsO7oRuWLPkLH7v9wqGePLdxLCW7PXj6HEjKoHYSTlh1owr06qMd8yMrYVBe H11U1+3G1K2Ix5JqvkBYf57iILsLpu16ppVh5H1+2OtUQyJ6lCbVM0tU9PPDfu2qt7hUd+K+9Jl+h dnj0NDLmZLnXTlXd0vYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ralmd-00000000Yby-09T3; Fri, 16 Feb 2024 00:08:51 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ralmU-00000000YYN-2oyO for linux-arm-kernel@lists.infradead.org; Fri, 16 Feb 2024 00:08:43 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d70b0e521eso12111205ad.1 for ; Thu, 15 Feb 2024 16:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1708042122; x=1708646922; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oULp81TNDm6rtXJp1+1NlVw8kUN7N6Lx6G6xlg9BNVs=; b=juz9ECDbLTUJLK/MIS9qE0PrCoT40x3AhrTXbwF7oFt7Wjm//4ffwzDVz0zVOC95FU Gqyidum2Dd3aVexh+DOfELrgS0pmxpse3NTS2EVzGx6uWS7YjBmpnz5T6+zQnD5cI0qf TUYs+MjVUulZWfwL8Ux48hnOns9tbD8sWVkWRQWdxKMhJOfq8w6k8r/reuRwU/Rkb64y KyTIu6POGB+s58Uajl4kvjBNhh5jti/OEtJQ2QunjOOv9xG1svMJJT4Soq5Vy2mwfNR0 8/+iisaH1r/BQrL+1rF/oNIFFfZ5KxnTUYsdDFDH5OffhEDd8FFUJ+/y8x+90/bPPOLh mMKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708042122; x=1708646922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oULp81TNDm6rtXJp1+1NlVw8kUN7N6Lx6G6xlg9BNVs=; b=m93MZt3UJ1iCx7uIrvbCjQy1fp1wu7Dhhsp0pv0nrd6DvJ2Q2AZDy7zNh21rMT4r30 g2Q+6g9uu0oTiUlYXMwAfnZkenA8ba/6kbqQGXDOtDJj8cerAbLWLu5A/vRG6xoUhhsr u/72VIOAKMts4wWadJpdME1UjgL6A9UkKZ329DZZJUIzLuhk+8huzcURu5J/J3gZ7xXW piIST8sQ1LOs6EYG27DApp2zqDUnoWzdaaPO575zLq0nM5zjijktAOJ52pC/ty0Jaze/ vOVQFOUCKIIMVuwSXxMj3YNFl1y5gbpgB870/DAX7NLH0Nc9Iw449jfUnnOcZFO+EUK+ 8BYg== X-Forwarded-Encrypted: i=1; AJvYcCVa0xIabeFHQ74wqSzBkQEimqXq/RGilqt6zhfXIk6UKuMP3+vc++ywZDnwIu6pkWFjOD8mO1v/OIixHHfYhzoJIk3paKfKA3ihQApbT1mqtAt/ISs= X-Gm-Message-State: AOJu0Yxu3G0x81uxdAR0qdxKWoxJ881zmGqWDG5fBGS1OjB6Bnt8xH87 hlvjZL7/basPYe8VRu4ezGSkXCvpP9UqwM8gxU9yfP7rq+S5aHACiX9N8JYvQ6I= X-Google-Smtp-Source: AGHT+IG7WoMFGu0/RfCzt3XOL546mMsF4SOL7oXhsNzvqoggBob9r4cZ+ZAFJwFNFVhaS4ZZGy8jhQ== X-Received: by 2002:a17:903:1212:b0:1d9:14fb:d142 with SMTP id l18-20020a170903121200b001d914fbd142mr3570668plh.32.1708042122114; Thu, 15 Feb 2024 16:08:42 -0800 (PST) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id bb6-20020a170902bc8600b001db3d365082sm1789486plb.265.2024.02.15.16.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 16:08:41 -0800 (PST) From: Samuel Holland To: Will Deacon , Mark Rutland , Eric Lin , Conor Dooley Cc: Palmer Dabbelt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, Samuel Holland Subject: [PATCH v1 1/6] dt-bindings: cache: Document the sifive,perfmon-counters property Date: Thu, 15 Feb 2024 16:08:13 -0800 Message-ID: <20240216000837.1868917-2-samuel.holland@sifive.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240216000837.1868917-1-samuel.holland@sifive.com> References: <20240216000837.1868917-1-samuel.holland@sifive.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240215_160842_758654_2B0BE229 X-CRM114-Status: GOOD ( 10.62 ) 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 SiFive Composable Cache controller contains an optional PMU with a configurable number of event counters. Document a property which describes the number of available counters. Signed-off-by: Samuel Holland --- Documentation/devicetree/bindings/cache/sifive,ccache0.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml b/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml index 7e8cebe21584..100eda4345de 100644 --- a/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml +++ b/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml @@ -81,6 +81,11 @@ properties: The reference to the reserved-memory for the L2 Loosely Integrated Memory region. The reserved memory node should be defined as per the bindings in reserved-memory.txt. + sifive,perfmon-counters: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: Number of PMU counter registers + allOf: - $ref: /schemas/cache-controller.yaml#