Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2953546rwl; Mon, 27 Mar 2023 07:27:50 -0700 (PDT) X-Google-Smtp-Source: AKy350aS7CZIl8shm8yEGdItor3oaa/SBsgH5X+V09iLLw4yqrtjf1g3IxDET6Flhr8YWdnQfDvj X-Received: by 2002:a17:906:9b89:b0:8a9:e031:c4b7 with SMTP id dd9-20020a1709069b8900b008a9e031c4b7mr15975703ejc.4.1679927270354; Mon, 27 Mar 2023 07:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679927270; cv=none; d=google.com; s=arc-20160816; b=0QwOU2SVfaEf2eUXl9U/RcL1kRDZkcHBuwbOcGn1cPa6ec5QE+p51/y3Jw8G1s8BQu Z426rwwYopwbf5jYJtF+rMKyFvLMzciJZlRSNXsCZSAqP6Dv8+NBzqlsyl1EmntmG9Kc kJ41KdAFkso4Dmyxgt1LQ6sGRYppOFYm/XzdbeEkTBo8kgjcHU8npOsnsF0rtxf0Qyle 9CsJcPopWJmKaiLYgo/MO9rRIq1L0mCIsmu/+iuQsG7zNLXvRTaASbKKJ81Iqkibd+Jk reeHxEbssXb29vFdN7xtk31M+0BYuG8As/jB25Jp00/KrMRIyTf/NVy4mr+bp73cucUP OQnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=+Pz8SlfpGIqrewSlPxPa2n2k6JV2RTms17Dv7m3grr0=; b=i3NYqNMU6deamqUQoA1hHIU+Fio/3jEy4d7HscS7yp7sTi2JqDLFdW4KUKUNTZnkr2 5LyPwqtqgBhO2TXMSA7jPnihaPaJKqX3NxH5IW4Mq7UWb8fKCElOdiHuX2jjU/pOwcpw EbuBngha6HNNW6JAd2Qg9vmOWGmWixrrrI0QmYI/785C2WK7f2OwD1g+W+TmKBw0o2rG TOQcylktuRtOQdlWKlbcDc7c2fq31Oa61wBmwYkNMJTiZlWsvwNcIGqcQKs/a/wo1aHC dquEM0zG0Py+nHyl4+LWvv8SDYdzFvmssr2FtXZfefmb6gzqSUV47qO0/rPsPVxLZV0j qptw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CI+yLzL4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka20-20020a170907991400b0092a39f75d8asi22964193ejc.623.2023.03.27.07.27.24; Mon, 27 Mar 2023 07:27:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=CI+yLzL4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232776AbjC0OTp (ORCPT + 99 others); Mon, 27 Mar 2023 10:19:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232853AbjC0OTW (ORCPT ); Mon, 27 Mar 2023 10:19:22 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B27E4769B for ; Mon, 27 Mar 2023 07:17:33 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id r29so8941968wra.13 for ; Mon, 27 Mar 2023 07:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679926652; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=+Pz8SlfpGIqrewSlPxPa2n2k6JV2RTms17Dv7m3grr0=; b=CI+yLzL4DhcLMT1dJ4emqbAt5YS3YorgcrVYDBmV2xyGs5JVw5VaOprpsMKjLglzQD ls0hwkkTA+BH29kBz5LuoKCyriZHaOPgttAfIOEAVgLhucpThxhRKi7FJy13c4WIUi83 hOgCCLBIj64UcFQXZFgdE4w31QRoGqKqaZalRzi2LawOI14rd+gyxOUrTq9Z8Pi45KmF gJPmb9MMQYEMJE5ZjmxxpTXpgpBLeJ7yFSQLlK68GIOoxz7Sa8CCAzhPzyZMb0qH/Rcf 366gi1NUy0C0Vbc0XJz57PHKNaqLml+F5J2gpv/TGYCtLnNC0y0KTGRw4g50egI0W7J6 xq7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926652; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+Pz8SlfpGIqrewSlPxPa2n2k6JV2RTms17Dv7m3grr0=; b=pSlpjYwRNM352LRrubraSOWMJJ+q1HROjcBTm2CimHUXCcg5LpzRyNypqYC90T8qZI 9Q5TRVHHswnqmteqfoC+jZ0qWm17Ne5m/YGGJyUe25PEMSS2s8PX5p9jApPn195GG4qe L5s2ekXumHqT/gsFN9mNVuE84es7k55ItwOJXT1eB7Fjw5u/tlSs9G+512XOKDuOKf/b gDgASeB25GKqxGokIaXnBYBWs2SRbJhlFaKrZ8ipflQ9hkq8B9ylv/m263qmQV1cOzdf 9MfbtOumJ/JYm2BRaXsPXeLIRunlyRaspEMjw4xnPorfUXqhq515XZr4t36VHqb17jzL Zvyw== X-Gm-Message-State: AAQBX9fFTDD4dm/wyGWXmATzbg/8RVtSd/3xjeP3tdtImkrHePADFoaM roxrSDTR2Qvh/fOL7gUa3K4p8A== X-Received: by 2002:a5d:590d:0:b0:2d4:7e19:a7fa with SMTP id v13-20020a5d590d000000b002d47e19a7famr8656742wrd.50.1679926652222; Mon, 27 Mar 2023 07:17:32 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:ef3b:2a41:93d:75f2? ([2a01:e0a:982:cbb0:ef3b:2a41:93d:75f2]) by smtp.gmail.com with ESMTPSA id e11-20020a5d65cb000000b002c55de1c72bsm25149264wrw.62.2023.03.27.07.17.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Mar 2023 07:17:31 -0700 (PDT) Message-ID: Date: Mon, 27 Mar 2023 16:17:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 3/3] perf/amlogic: adjust register offsets Content-Language: en-US To: Will Deacon , Marc Gonzalez Cc: Marc Gonzalez , Jiucheng Xu , Pierre-Hugues Husson , Jerome Brunet , Kevin Hilman , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , Mark Rutland References: <20230327120932.2158389-1-mgonzalez@freebox.fr> <20230327120932.2158389-4-mgonzalez@freebox.fr> Organization: Linaro Developer Services In-Reply-To: <20230327120932.2158389-4-mgonzalez@freebox.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 Hi, On 27/03/2023 14:09, Marc Gonzalez wrote: > 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"); Reviewed-by: Neil Armstrong Will, I've applied DT patches 1 & 2, can you apply this one via your fixes tree for v6.3 ? Thanks, Neil