Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5546059rwb; Wed, 17 Aug 2022 21:02:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR61o/bD5ADg7zYtBXhZKiunJ4lAR1tUB0qDjtVL+sYA229cVu4ju9wySWiXcBKaIL9M0Yc+ X-Received: by 2002:a63:1c7:0:b0:428:ae08:ccf7 with SMTP id 190-20020a6301c7000000b00428ae08ccf7mr1090989pgb.12.1660795346585; Wed, 17 Aug 2022 21:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660795346; cv=none; d=google.com; s=arc-20160816; b=SOzfRBEpL9iusY55FoRA2T03qOibZ80VnNT3B6jGx+RFWtPN3wSmg/VPhttMD5HGGP ryPgU8NA6ulRrJIdPEUEU4dlXDSX57VuXUOcCwQj/CKYukvmwiOplWol4EADDoYIkw/E HanwzrpJd2TZZmcOLPYWeQ7oVk+3JG84+DAy1LFqBMPSbHU+Uy+TYJ5tOUl1NXSrKIQT oSo2D+ieVld7NlebGh89B20EkUIH/FHDnBXDmINVvHIAnSlhVAjmUATNPAwB51ZyMaUh 2OHuwHCSqdUsgdVsLCShf/2cGnxc07KAXsyK35jm54DYdJyZJ9Hsqh7EQWP0C0BtY6gv gySA== 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=42B+GxyMS2NKIpTARYISH9qTT/bnS5ixD+dZ9FhzHjk=; b=RsvLmUK1UWNlGPzjG6S6GZf/V2y2hrFxWRnd/kl53eRKWyzjQoq5gs+LVeBmqlFahh 7Y1Gprb/2WndwDaGTASNpSsHANqW0wNXpyZE/hCu7n5npZsXfLwb7nTviQytSvCMqZ90 0LKGzx1t1PfyK5zrTi2HUFnJWkrJDwWGWOlzYZXO3VlWWZT0lgGtK2Oql02PMj5IgC8Y mt563r+aoWwor6xaqQFkifLSeGjDHQkCxKfQmLNLtJ6CA5A/vasloeG6baweEKXiG/hl FuEEzValz52kzDKrQPfIIpxzwqFb3nnyy9MTaiVI4T7X+KPx7d7pTc8LrnhizJd9Jho6 Yjxw== 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 s12-20020a17090a760c00b001f32a2ba5b1si3102462pjk.149.2022.08.17.21.02.15; Wed, 17 Aug 2022 21:02:26 -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 S243076AbiHRDSt (ORCPT + 99 others); Wed, 17 Aug 2022 23:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240708AbiHRDSi (ORCPT ); Wed, 17 Aug 2022 23:18:38 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01D422B2E for ; Wed, 17 Aug 2022 20:18:31 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VMZAdDx_1660792707; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VMZAdDx_1660792707) by smtp.aliyun-inc.com; Thu, 18 Aug 2022 11:18:29 +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: [PATCH v4 0/3] drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC Date: Thu, 18 Aug 2022 11:18:19 +0800 Message-Id: <20220818031822.38415-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,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/#m1116abc4b0bda1943ab436a45d95359f9bbe0858 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