Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5185508imw; Wed, 20 Jul 2022 00:05:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+d5dWNBBsbFJIHNU0c9vxVAu3+VHsbaD9JSvPMs0RsXb/3LMNk/dIOkEJIe4jC2kVfHDz X-Received: by 2002:a17:902:ccc9:b0:16c:f878:163 with SMTP id z9-20020a170902ccc900b0016cf8780163mr11162854ple.170.1658300702222; Wed, 20 Jul 2022 00:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658300702; cv=none; d=google.com; s=arc-20160816; b=03tQMaSMHRU3+9QcdaHdg72JMm1ySYJyCmC8CCQ3N/vyLiuMX1pLzFAfCpcCwAX4Yn NxleRV10OlQ6UpNtk+vC+5S6mDfNrdAZ4hUwhnoE5UgviRUPUChK/RqbJuICTJEqeyln tmHPQtH5NwKQwDOJV5tkacIWvrR9pIqcvC561OWja301Ztaq1Et+BP3oBEk1SqtBPOCp vLTlzgoolwYescX76NvJp4bu+7QTpG/ChWVV1trwvNlziR0FEKrUatSyU5WsYblCfWpJ /tFch1WGrPP4DSrL7xLbLqYVruExj5d8WgyHAUcmPWrZ6dhZLNuC0b2TWENnpLvoDGLP npkQ== 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=lE1Xxp3IrJT0uGMuzJjTlglg7F7OEUgA0xqOACKmO3k=; b=I5JHzwcBioFRsVgG/GIklkJ6FRnOETW4MM4haheJiDwaf54MNz+9MMJavK/qCtYMz6 31jYIo3fAM1nybaeby8Enx75UNvOsIee9OU9njm5dWzQ6BKtApbHjavYxmJoHoqwYh69 9nksptj2w71gU6okU8de2PRze0t4pBt2Wbi0g9e0eCzX9vzlC8CIP+mTJpdbM0OG8pBx /YRcLuhpGoprzyYxNlRpYo/Ixlhe/XN23GJbfOuwuzKI7LzLfZOp4zqgL6A96eFKe5m6 pHiEkiErPgQKq4PonqIgXRVdK4t8J66JxIONUfFOGlRtWlEgOGyP8HYfOe+OPi3pUrlC wVKw== 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 c2-20020a170903234200b0016bb24f5d1esi1637453plh.179.2022.07.20.00.04.46; Wed, 20 Jul 2022 00:05:02 -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 S235321AbiGTG6m (ORCPT + 99 others); Wed, 20 Jul 2022 02:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233698AbiGTG6k (ORCPT ); Wed, 20 Jul 2022 02:58:40 -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 A6EE92E9DE for ; Tue, 19 Jul 2022 23:58:38 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R501e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VJvhhM._1658300302; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VJvhhM._1658300302) by smtp.aliyun-inc.com; Wed, 20 Jul 2022 14:58:34 +0800 From: Shuai Xue To: Jonathan.Cameron@Huawei.com, rdunlap@infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will@kernel.org, mark.rutland@arm.com Cc: baolin.wang@linux.alibaba.com, yaohongbo@linux.alibaba.com, nengchen@linux.alibaba.com, zhuo.song@linux.alibaba.com, xueshuai@linux.alibaba.com Subject: [PATCH v3 0/3] drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC Date: Wed, 20 Jul 2022 14:58:12 +0800 Message-Id: <20220720065815.60772-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, 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 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. 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/ 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 | 7 + drivers/perf/Kconfig | 7 + drivers/perf/Makefile | 1 + drivers/perf/alibaba_uncore_drw_pmu.c | 810 ++++++++++++++++++ 6 files changed, 926 insertions(+) create mode 100644 Documentation/admin-guide/perf/alibaba_pmu.rst create mode 100644 drivers/perf/alibaba_uncore_drw_pmu.c -- 2.20.1.9.gb50a0d7