From patchwork Sat Oct 26 20:28:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13852336 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 5F0C1D0C604 for ; Sat, 26 Oct 2024 20:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EYdW0WVK/HUf15o3sRYMMztvU9O/2v/dtyJUieuwwQk=; b=j1Z/2kg7DkQ7L6glM2NVAEyvSX qa3AWSxv+HmsUJ7RmaJs/pIdU8h85nJ6SPXCmAqmnS44A/n1yR8ovxQQkj/csCtpwg9DhXiRKf6ew gM1vLQaySExi37n6DL8oxVkb8Zk3StSTp7Xk4FSbkTJ5fhA0KgoWoaobzW/A/UbySAXks4vUbBC9l 1Wd2op4ZtUI2s0GDhJMax2612YQ7kG3dOyiYP1de88S0McqqufBH1R96yUTfo3HZaCn06l4vqGgvW q+Zr6dRGxWnX5D7eQvi75LSaqLCLH9dMBQPZWwc28dKoV1mE7gtRKe3QnGx+LJkkyG2vjb68VwFAG QO1FxkCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4nSo-00000007C8N-1cP8; Sat, 26 Oct 2024 20:32:46 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4nOi-00000007BfJ-1Y1l for linux-arm-kernel@lists.infradead.org; Sat, 26 Oct 2024 20:28:33 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2fb5fa911aaso42100891fa.2 for ; Sat, 26 Oct 2024 13:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729974510; x=1730579310; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EYdW0WVK/HUf15o3sRYMMztvU9O/2v/dtyJUieuwwQk=; b=EV5juU83jRBu7CTmcLz9eDCG2bRi8PwxjoT7u0IYLWjQ/hb2tSIMaSv4B4F5Ygep10 tDynJ4jAgxfYFPujWUn0AN8/1Ne6p7hae5TxTDEXoJi8FURNC+X+WmjYeLZ+l5fM6wYu BKdiPPK4wwKo5nrYQ5m4+aV1yQvIeHkMSmp+h4Zt3+lGiGhiYxlW7T9TNpbDI3O/uVbP foZtgtNJi6sSUsRlbo/fkmgfy3h0LUNKdtx62aeYEiahm+k2o5JzFRsc4kbqmRilt6IN y9L1R+N31ywQ3Cb4grrI7Z9W1lVal3zX+4PZa0E/hQllLSD+ByLP3G7BW6+JnZSAvXFp gxxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729974510; x=1730579310; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EYdW0WVK/HUf15o3sRYMMztvU9O/2v/dtyJUieuwwQk=; b=E8I8v/yljUzsgG9Udb7V5AkIRDPizXHyHxk+lR3so9SoC+p2+I7S58NLpIWFPRe+pZ 35n7eSqZy7UgB2dXzqSvSUAhaAecrgmAD7upJk4LiTPTPuyq3bRfXsHDhLzGLXrzGa8i s63+wIDQOCMPqkEfVqNctHUvmqxoOMI0Jr/rM6eE+qbdSThQgSoC7ff6FKaQj65+BV92 GwnkgiIem3WkirBHts6u2Ep6RqemGHq3QstA664Lj7BlCszuzevH964SW6dnQ+U79Ner KfGJDiTOi/GQE4XCjzaM72C3RhBce6jmzS5YFkH1cEqGMJhayYY59mLSTytdVqZu2w4b ltEQ== X-Gm-Message-State: AOJu0YzJDaayB+o9Ny3c7PuUCJ6dHmZPehwpsrYn8NsmikDCaV4vuwKZ 63Mivdaq0BW1bvGCJfIJcMa70yR/l3H8bUgaUEplq+almaF1yOlq X-Google-Smtp-Source: AGHT+IGedkOCrp2Ws7gHHAOMm/HoxIvaYQUxFfzfvXpg/O9OiKO8kLi7PH2WqwN8AADLmXnG+ExWzg== X-Received: by 2002:a2e:b8d2:0:b0:2fb:3960:9667 with SMTP id 38308e7fff4ca-2fcbdf7db23mr19809711fa.14.1729974509867; Sat, 26 Oct 2024 13:28:29 -0700 (PDT) Received: from [192.168.1.105] ([178.136.36.129]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2fcb451a494sm6370421fa.39.2024.10.26.13.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 13:28:29 -0700 (PDT) From: Markuss Broks Date: Sat, 26 Oct 2024 23:28:08 +0300 Subject: [PATCH 1/2] dt-bindings: arm: pmu: Add Samsung Mongoose core compatible MIME-Version: 1.0 Message-Id: <20241026-mongoose-pmu-v1-1-f1a7448054be@gmail.com> References: <20241026-mongoose-pmu-v1-0-f1a7448054be@gmail.com> In-Reply-To: <20241026-mongoose-pmu-v1-0-f1a7448054be@gmail.com> To: Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ivaylo Ivanov , Maksym Holovach , Markuss Broks X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1729974508; l=907; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=pxSfIIbbzDQhlem4rS9n5rwMaU5xP9xgQizC2pOHkCg=; b=G2bpQn6ZjZqyQNJwfwqAC4PfkPkUBEBV1PyoRzw8pi52cGKBGqKDjqX3ONoIK4vfOXmNkFOnx sdU3mKxBjSoCSB6Q7mH30fKv5cO9gm+Eti7W1UYrtP7l0Q26VVyuBVT X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_132832_430102_0FFF2A6B X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. 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 Add the compatible for the Samsung Mongoose CPU PMU to the schema. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/pmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/pmu.yaml b/Documentation/devicetree/bindings/arm/pmu.yaml index 528544d0a1614c9f9bddaafa8dac4782d09ac7e9..a148ff54f2b8a92fa3fcfa78c1bcc525dba1c6dd 100644 --- a/Documentation/devicetree/bindings/arm/pmu.yaml +++ b/Documentation/devicetree/bindings/arm/pmu.yaml @@ -74,6 +74,7 @@ properties: - qcom,krait-pmu - qcom,scorpion-pmu - qcom,scorpion-mp-pmu + - samsung,mongoose-pmu interrupts: # Don't know how many CPUs, so no constraints to specify From patchwork Sat Oct 26 20:28:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 13852337 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 7905AD10C06 for ; Sat, 26 Oct 2024 20:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CsVTZGFbY21TI4h6N0MykNeyLT86RRhuXmj+gk/1J9g=; b=p6NlKJwhJVuXJ/mgM10amgQutL fGdshb9l9lGJ8cg1ngRelTp/ExBysrkkuC3kt0hVp2NmZI1mb5HznLDque+vSerDE68P7t9r/W62F kCcDBvxSpuPwTfUY9sqSozlOqEmRXo7W9R4q0JKZTjE5SpTI2XYfmlj4/UTy3qPoCmIxw522obE1o P9lErxgXGJrfk6pyCnlgQbbFbtje2CwstOBdUON+sUTt5VWE+etO8JVxM5TyNX/dwC5RGN6MED5y1 z41jKn33NOlFck85kuZG7CF5lypUPem/8UaQ7XyZ23nDlx0uWnM4QnDdmk7cnXGqE5vOWKpy/wSE/ agrr8Y7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4nUN-00000007CVy-3gFD; Sat, 26 Oct 2024 20:34:23 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4nOj-00000007BfK-3fk5 for linux-arm-kernel@lists.infradead.org; Sat, 26 Oct 2024 20:28:35 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2fb56cb61baso24736201fa.1 for ; Sat, 26 Oct 2024 13:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729974512; x=1730579312; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CsVTZGFbY21TI4h6N0MykNeyLT86RRhuXmj+gk/1J9g=; b=NQnvysMpQOzb+l8mOmeyP3lS4xM7CffjYwiIfimtfRHViAPgd+F2dKWoDXR6MDUGIa kabXEBmPOIUAmcEF6HmNNCXUO0Aej/4iyziIa5nb/d6vD0nSBQ81FK2aicP5es3r8Jsk Jd1LvQvEhxORmSNI7U6u+8UAaJQS7JRTlmUivMuhxP6c1JCNp+igj0w4mEgZlbMFIlAn 5FCPzJnL7AaZePGmv8Hib+IDZQBfzI6c4OHhZMXpT9l88qlM5kTG53Wx29Q+J5cu3h8f hpO1QfDmsPdxZPPdFn2Dg7zD/s1IXyM3HT2cdfNApCBGnV1O2jqig7BVZG4LKPTGDvK7 hV6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729974512; x=1730579312; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CsVTZGFbY21TI4h6N0MykNeyLT86RRhuXmj+gk/1J9g=; b=QFtNU+g/oYaNseImCOjBT+DP9cUhC6+OGUGD9cQk0LamZtUX4q98Gf/97iB40lFNQm FJJotgv/upC4s7qhyX09Du2We6uvEP4MMcITosvPKGKjpTfeoLbu5kauzBtVWQgsReHr tXJ/JK151NK66l13qwbSUSbI7RE3Blzm2BiyNxtqooM4ebSUnK11TWlVxYkyYo7pSDoT +m/+dljozsSBYkspEIEmt/hwuMpTOv7A7iD+0btsK83fHxK2fwHHg+IAvlwFLVd5qqqq zIaIKFphKfiFX+72/aSIANHmGj+WzbwyuB/aNH8neViCmizLPJysfpNizyFxKjZsZn84 97gw== X-Gm-Message-State: AOJu0YwUGpW8B0Cgu8uhBLLSSS+Cb54rqHHtk/YDWqyS8Zn9cMnp3HOj 680zVPQadhZasM5S+HfF6nO5S1jecUIdrNztPeueR+Efwo+a8ID8 X-Google-Smtp-Source: AGHT+IFkHMcqEsYsUAhbqWkX2bkPWgakOe470h23dN0/WTOTTeXfHC6ixA4LqqD+dEvAB0ZuXSb+qw== X-Received: by 2002:a2e:a78a:0:b0:2fb:c6e:9a36 with SMTP id 38308e7fff4ca-2fcbdfc6495mr12308581fa.24.1729974511392; Sat, 26 Oct 2024 13:28:31 -0700 (PDT) Received: from [192.168.1.105] ([178.136.36.129]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2fcb451a494sm6370421fa.39.2024.10.26.13.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 13:28:30 -0700 (PDT) From: Markuss Broks Date: Sat, 26 Oct 2024 23:28:09 +0300 Subject: [PATCH 2/2] perf: arm_pmuv3: Add support for Samsung Mongoose PMU MIME-Version: 1.0 Message-Id: <20241026-mongoose-pmu-v1-2-f1a7448054be@gmail.com> References: <20241026-mongoose-pmu-v1-0-f1a7448054be@gmail.com> In-Reply-To: <20241026-mongoose-pmu-v1-0-f1a7448054be@gmail.com> To: Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ivaylo Ivanov , Maksym Holovach , Markuss Broks X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1729974508; l=1399; i=markuss.broks@gmail.com; s=20241024; h=from:subject:message-id; bh=J394BmadQmA1BF0F092yR1AXD6HdCMt8v36z3hVLWCg=; b=jMGqUvYaEE7eyVFSQzLzTFOFSEqQJZ5vGtuufroNlKvgKvDnsS4nuhMCzmHpP5IIzR/Nupmm3 dSciX6H/BsmDkAhEovrMcL9ZZapBv9dmxRWHNFnn8O/t3Aik9GRMTX2 X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=p3Bh4oPpeCrTpffJvGch5WsWNikteWHJ+4LBICPbZg0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_132833_942143_1B359F28 X-CRM114-Status: GOOD ( 11.14 ) 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 Add support for the Samsung Mongoose CPU core PMU. This just adds the names and links to DT compatible strings. Co-developed-by: Maksym Holovach Signed-off-by: Maksym Holovach Signed-off-by: Markuss Broks --- drivers/perf/arm_pmuv3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 0afe02f879b45a8600b9cea1bfd88e6a68096a67..9eb5603e1dda18c4bdd2745304737932a27fde8a 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -1364,6 +1364,8 @@ PMUV3_INIT_SIMPLE(armv8_neoverse_v3ae) PMUV3_INIT_SIMPLE(armv8_nvidia_carmel) PMUV3_INIT_SIMPLE(armv8_nvidia_denver) +PMUV3_INIT_SIMPLE(armv8_samsung_mongoose) + PMUV3_INIT_MAP_EVENT(armv8_cortex_a35, armv8_a53_map_event) PMUV3_INIT_MAP_EVENT(armv8_cortex_a53, armv8_a53_map_event) PMUV3_INIT_MAP_EVENT(armv8_cortex_a57, armv8_a57_map_event) @@ -1409,6 +1411,7 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = { {.compatible = "brcm,vulcan-pmu", .data = armv8_brcm_vulcan_pmu_init}, {.compatible = "nvidia,carmel-pmu", .data = armv8_nvidia_carmel_pmu_init}, {.compatible = "nvidia,denver-pmu", .data = armv8_nvidia_denver_pmu_init}, + {.compatible = "samsung,mongoose-pmu", .data = armv8_samsung_mongoose_pmu_init}, {}, };