Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp543308imw; Fri, 15 Jul 2022 08:14:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uL8sDwdUS7f+MghQE5aZRWQfqEIdQjji8LfeVUUXnfSsO8Rm1b3B1UZfTD/K2Ky4qYeMFT X-Received: by 2002:a05:6808:f14:b0:335:c50a:ce08 with SMTP id m20-20020a0568080f1400b00335c50ace08mr10618800oiw.296.1657898074192; Fri, 15 Jul 2022 08:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657898074; cv=none; d=google.com; s=arc-20160816; b=C5bHMqPk0Q7ghTLTuMT3F4NnIJa3SqZ+rx/nGspFUuT18SOC+JUiafwRhjDyML26qH ATpJTy1A+B82/+izDIzAfaHbsXBTRhv74z9dFArN2Ujq4zzp77KKfw5tbEuRHtu+uFIm Pb5fXLperZc+D4WsjeT9RTNomgR+FZlV/2hN7dxnyXW8bbZF6YVqk6YOUACoTupMsMB0 aLgS3oZ1rWLeS803qu8KvlkmT9SYd/kRrPA43lePeicCjkZ5dSoyZ4vlRqBjWV5qlxSQ F4JeKc+jjdWGCZcLLu0n9P/M2yf5JzRRYT7odjPuZv8Abozr7Je2SXaeOfyDeu/D8JCl 1OBA== 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=JrzdQLZ2TRuPHdZrreppGVYZqwWphnOnDt+6Yv/I35U=; b=RVOpRd5/jXZzY/xXehbkubq6GLtzFdvJpbGeEqo2m0zsw9HZkPPRkRBw+P6FTVYwbH LFWgpUmz6oAdglwpetzcYevYWBKy5e/M5b3nWE7dLfcfptrp17Qbkkv3JHeALeO9gHxa CDGzyyuFqQijJmvS/baxVNKy++O9/YhaiOR0khE52CqE9Zatl8lG8Y4hWFp0dwLQeGvV Oal1wE0wiQiKnwG7QKJtqWi9B4n8Lk1qXyaKQtAWVhuDr7gP+6/6tMSfEaSlMBU0MfZA zOOgFDD+IUnBqx9gPmE09XRPJub0IEz9VRL3BTTWmZZBl45K62zbGLE0IjNYvDpldk4D BlOg== 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 o44-20020a05687096ac00b000fb3c29306asi4287435oaq.250.2022.07.15.08.14.20; Fri, 15 Jul 2022 08:14:34 -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 S232952AbiGOPNa (ORCPT + 99 others); Fri, 15 Jul 2022 11:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiGOPN2 (ORCPT ); Fri, 15 Jul 2022 11:13:28 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 342007CB4D for ; Fri, 15 Jul 2022 08:13:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;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_---0VJPkRJU_1657897993; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VJPkRJU_1657897993) by smtp.aliyun-inc.com; Fri, 15 Jul 2022 23:13:20 +0800 From: Shuai Xue To: Jonathan.Cameron@Huawei.com, 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: [RESEND PATCH v2 0/3] drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC Date: Fri, 15 Jul 2022 23:13:07 +0800 Message-Id: <20220715151310.90091-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 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 | 8 + drivers/perf/Kconfig | 8 + drivers/perf/Makefile | 1 + drivers/perf/alibaba_uncore_drw_pmu.c | 793 ++++++++++++++++++ 6 files changed, 911 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