Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2779280rwl; Mon, 27 Mar 2023 05:19:27 -0700 (PDT) X-Google-Smtp-Source: AKy350Y1q0luuA1nM5sZaQ8EJtjwfwxLZbnICdMJMc8S8NpPPudBAjNC21ShaYayzfU7EVCwGrg5 X-Received: by 2002:a17:906:c4f:b0:8f1:937c:f450 with SMTP id t15-20020a1709060c4f00b008f1937cf450mr11774248ejf.13.1679919567280; Mon, 27 Mar 2023 05:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679919567; cv=none; d=google.com; s=arc-20160816; b=jtFy+76clN2o7MNqa4+AZnn2kwCGxOrO/3kzsNVbTVmGMKN9d3jaCwXRgXPsfjRVcA zE93aOiLD8gAmEaA4x29BCLpadumh395MRCu9VjO0qd5xINHmSWROla+1Wo3g8Nu7f1a n1Y18vr2Sufa197hbW1LPMutc4DO2+EcpUoLqZoZNMNn6fRsX9MzgCEEefLsC0nBpMjk UAzn2kjel5wJtTcyJThrf9key3NgBX4RymnYSgwVSTa1g02cW5T4NxKOveeDFhC4RQc4 eNKpM56a9HWeIhuRVyBwhnIJ5xjYpE4cje8PPjFIzgfE3yMvzfG/0ytqv9CIqy1PnooK R2JA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bOu7sHyuVXQyk7oAfFNimPfCCTvs8Ky7mGm6v8ISALw=; b=NMoKmMLqAD3n7pyL0X7CUqHarg76Nb+OKQLnHNmcOOkntyc1ALsMfWWxKsLOp6CB25 CCMZ+o4+FgqjZFDLHm03fVcrKxDCGSNWwtYtxfV2YnIeRGJdEJtpUywXyQmlQ2myv/GK nZjGnYGTK/Syik86vpFfj2/DYRColdUVjd8Bs6Ii5DV1l92L0Pmk+4wASKMGLZqbqG1D TRXX6LXJwXdFOszkft3DLzfeCVUNVAe61mPMUny3GHSnfHY1hGcpOnmG00m7r+D/jieF 2rdbqxT7a0ONd2GuO3+mjS5BorvbS22hAxlfji6a/xdAClxm4iaRbjJOvnmpbXsi0HII NduQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb39-20020a1709071ca700b009334f4a14cfsi25023689ejc.483.2023.03.27.05.19.01; Mon, 27 Mar 2023 05:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232115AbjC0MSy (ORCPT + 99 others); Mon, 27 Mar 2023 08:18:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232366AbjC0MSQ (ORCPT ); Mon, 27 Mar 2023 08:18:16 -0400 Received: from ns.iliad.fr (ns.iliad.fr [212.27.33.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EFAD5FEC for ; Mon, 27 Mar 2023 05:16:54 -0700 (PDT) Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 46B1821093; Mon, 27 Mar 2023 14:11:16 +0200 (CEST) Received: from venus.iliad.local (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 346B621081; Mon, 27 Mar 2023 14:11:16 +0200 (CEST) From: Marc Gonzalez To: Jiucheng Xu , Will Deacon , Mark Rutland , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Marc Gonzalez , Pierre-Hugues Husson , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] perf/amlogic: adjust register offsets Date: Mon, 27 Mar 2023 14:09:32 +0200 Message-Id: <20230327120932.2158389-4-mgonzalez@freebox.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230327120932.2158389-1-mgonzalez@freebox.fr> References: <20230327120932.2158389-1-mgonzalez@freebox.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org Commit "perf/amlogic: resolve conflict between canvas & pmu" changed the base address. Fixes: 2016e2113d35 ("perf/amlogic: Add support for Amlogic meson G12 SoC DDR PMU driver") Signed-off-by: Marc Gonzalez --- drivers/perf/amlogic/meson_g12_ddr_pmu.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/perf/amlogic/meson_g12_ddr_pmu.c b/drivers/perf/amlogic/meson_g12_ddr_pmu.c index a78fdb15e26c2..8b643888d5036 100644 --- a/drivers/perf/amlogic/meson_g12_ddr_pmu.c +++ b/drivers/perf/amlogic/meson_g12_ddr_pmu.c @@ -21,23 +21,23 @@ #define DMC_QOS_IRQ BIT(30) /* DMC bandwidth monitor register address offset */ -#define DMC_MON_G12_CTRL0 (0x20 << 2) -#define DMC_MON_G12_CTRL1 (0x21 << 2) -#define DMC_MON_G12_CTRL2 (0x22 << 2) -#define DMC_MON_G12_CTRL3 (0x23 << 2) -#define DMC_MON_G12_CTRL4 (0x24 << 2) -#define DMC_MON_G12_CTRL5 (0x25 << 2) -#define DMC_MON_G12_CTRL6 (0x26 << 2) -#define DMC_MON_G12_CTRL7 (0x27 << 2) -#define DMC_MON_G12_CTRL8 (0x28 << 2) - -#define DMC_MON_G12_ALL_REQ_CNT (0x29 << 2) -#define DMC_MON_G12_ALL_GRANT_CNT (0x2a << 2) -#define DMC_MON_G12_ONE_GRANT_CNT (0x2b << 2) -#define DMC_MON_G12_SEC_GRANT_CNT (0x2c << 2) -#define DMC_MON_G12_THD_GRANT_CNT (0x2d << 2) -#define DMC_MON_G12_FOR_GRANT_CNT (0x2e << 2) -#define DMC_MON_G12_TIMER (0x2f << 2) +#define DMC_MON_G12_CTRL0 (0x0 << 2) +#define DMC_MON_G12_CTRL1 (0x1 << 2) +#define DMC_MON_G12_CTRL2 (0x2 << 2) +#define DMC_MON_G12_CTRL3 (0x3 << 2) +#define DMC_MON_G12_CTRL4 (0x4 << 2) +#define DMC_MON_G12_CTRL5 (0x5 << 2) +#define DMC_MON_G12_CTRL6 (0x6 << 2) +#define DMC_MON_G12_CTRL7 (0x7 << 2) +#define DMC_MON_G12_CTRL8 (0x8 << 2) + +#define DMC_MON_G12_ALL_REQ_CNT (0x9 << 2) +#define DMC_MON_G12_ALL_GRANT_CNT (0xa << 2) +#define DMC_MON_G12_ONE_GRANT_CNT (0xb << 2) +#define DMC_MON_G12_SEC_GRANT_CNT (0xc << 2) +#define DMC_MON_G12_THD_GRANT_CNT (0xd << 2) +#define DMC_MON_G12_FOR_GRANT_CNT (0xe << 2) +#define DMC_MON_G12_TIMER (0xf << 2) /* Each bit represent a axi line */ PMU_FORMAT_ATTR(event, "config:0-7"); -- 2.25.1