Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7381131rwn; Tue, 13 Sep 2022 19:59:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR5QaKCKrZm2H2uAf0yy8f+KomFiSeLowTsClbbm0MR2eB+5ikTvJFxELdljlXY2nV41VVsT X-Received: by 2002:a17:907:2ced:b0:773:6f77:f10f with SMTP id hz13-20020a1709072ced00b007736f77f10fmr20936453ejc.34.1663124386980; Tue, 13 Sep 2022 19:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663124386; cv=none; d=google.com; s=arc-20160816; b=Sh53KM3P2aT7kcZTaw6DQiSyPyN6/fPMKY7nl885ezbderb9Y4hKmyYWoIfa9MRXHN JXXmXyf6bU9kaWZ6KhOcZCqNg+jTR3Ks2oF3Hwo2RHnviMThw6sqHNFPYnqmPcU96uxU ytU3ZeGJvqcHDSjZQ8m4D1M8bb9bMsAEDOYY+SqGctVVynIcAA1vXz1NucD9e17jxcgF U0TEN4VBvWqd4JW5uk8fsHsxWZQ4FpNiEu/NDgr/SOSwk2l66K9uXe9DcRRhzG0I7h2B /gk2JfRUPh/Vw5Eu6bV1AsS0XelWUaqQqH7El6+lAER5DQ4AayUXCNbCp+2ZDaNuj8Zm 5kBg== 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=J0YsS8gTNXTqeY79vydcUVuC6YyGSmIZWwzgAljTBfc=; b=vfKOTklVnkDDksRSmZIIGRM0vSSnhKY5dPrrwHPk4HQDQUfMgvbwb4czcE2LaXRf7m GDYK9DIAaCN5FD3g0TVeB5RXSLAIW0c+kAr1T5GxBuK7JujuUI+YwHZfn2W+qkZZ328X 5rK0ZmocJ9aWARfKRBHHpLgmvkn5i1xpYooHdakFar71IK7PNXUOhUypVjOsXEo2UYls Wq0dRBgs471t8NBtvrcopwImHZ/fieQn9XymC6x7lOeckaI/ux+lP984ostq/Rry4wKt teJCR+4xPsHp+bFIN8c1VNZvS4UJHFq8FK1vV6y5bPnNvYLWiXiQQJvyCKKByPegiKpw R5hA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170906794500b00779237a422dsi13120512ejo.198.2022.09.13.19.59.21; Tue, 13 Sep 2022 19:59:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiINCXo (ORCPT + 99 others); Tue, 13 Sep 2022 22:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbiINCXg (ORCPT ); Tue, 13 Sep 2022 22:23:36 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C095D12E for ; Tue, 13 Sep 2022 19:23:34 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VPl45j1_1663122209; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VPl45j1_1663122209) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 10:23:31 +0800 From: Shuai Xue To: will@kernel.org, Jonathan.Cameron@Huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: rdunlap@infradead.org, robin.murphy@arm.com, mark.rutland@arm.com, baolin.wang@linux.alibaba.com, zhuo.song@linux.alibaba.com, xueshuai@linux.alibaba.com Subject: [RESEND PATCH v4 0/3] drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC Date: Wed, 14 Sep 2022 10:23:23 +0800 Message-Id: <20220914022326.88550-1-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220617111825.92911-1-xueshuai@linux.alibaba.com> References: <20220617111825.92911-1-xueshuai@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham 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, Will, I am wondering that do you have any comments to this patch set? If/when you're happy with them, cloud you please queue them up? Thank you :) Cheers, Shuai. Changes since v3: - add Reviewed-by of Baolin - Rebase on Linux v6.0 rc1 Changes since v2: - relaxe build constraints and add COMPILE_TEST - explicitly include dependent headers - add Reviewed-by, thanks Jonathan Cameron and Randy Dunlap for their valuable review and comments - Link: https://lore.kernel.org/linux-arm-kernel/20220715151310.90091-4-xueshuai@linux.alibaba.com/T/ Changes since v1: - add high level workflow about DDRC so that user cloud better understand the PMU hardware mechanism - rewrite patch description and add interrupt sharing constraints - delete event perf prefix - add a condition to fix bug in ali_drw_pmu_isr - perfer CPU in the same Node when migrating irq - use FIELD_PREP and FIELD_GET to make code more readable - add T-Head HID and leave ARMHD700 as CID for compatibility - Link: https://lore.kernel.org/linux-arm-kernel/eb50310d-d4a0-c7ff-7f1c-b4ffd919b10c@linux.alibaba.com/T/ This patchset adds support for Yitian 710 DDR Sub-System Driveway PMU driver, which custom-built by Alibaba Group's chip development business, T-Head. Shuai Xue (3): docs: perf: Add description for Alibaba's T-Head PMU driver drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC MAINTAINERS: add maintainers for Alibaba' T-Head PMU driver .../admin-guide/perf/alibaba_pmu.rst | 100 +++ Documentation/admin-guide/perf/index.rst | 1 + MAINTAINERS | 6 + drivers/perf/Kconfig | 7 + drivers/perf/Makefile | 1 + drivers/perf/alibaba_uncore_drw_pmu.c | 810 ++++++++++++++++++ 6 files changed, 925 insertions(+) create mode 100644 Documentation/admin-guide/perf/alibaba_pmu.rst create mode 100644 drivers/perf/alibaba_uncore_drw_pmu.c -- 2.20.1.12.g72788fdb