Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1559272rdb; Wed, 31 Jan 2024 02:16:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzHE1jkGf9VKHpP4bwBbThu/4j51juBPTJiZiNw5IXzYWgwhWstMpRub4TF/MxkzaDQLyr X-Received: by 2002:a05:6214:2021:b0:686:1c06:4436 with SMTP id 1-20020a056214202100b006861c064436mr1110953qvf.48.1706696196560; Wed, 31 Jan 2024 02:16:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706696196; cv=pass; d=google.com; s=arc-20160816; b=jX5yC8bSdLbNCvPdSYtv+h8151CQQq8gt7TpKo3UgWGaewl3jxvolwe1tVo92qG6NB JLjdTe/0IE5pP3avKwpIed0+ttzxhCxHV5OVsu2uNo2EUh8VNuDVVgHpTWerF66CtmEI IrYEYF5l0GhQdMVghzZTURn8ZCRtdz0uOwI4YUuaF5eri2pgoE/iu5NBbSimXST0B3al Mhgnm7LUOCMjXkhCnHqrvFb7/hhrZ9J3BFcPWh4i28kFiTOCjvH3rdCuNtZWlKFeHNZ4 LIBQN91r935fL1xNxVPOXHSR+3wcSMgVrAQD0I27vOoGTdS9CfLy9tTdWYqaEYlyuP/L Vy2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:in-reply-to:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=5tyegbiyKMRHBpruSR3SD+zuevJv2n0Zdf+ny9ON4Ss=; fh=9bN3A9AsZldeHuF1MFozXWP4JMF1/wyoCTjY7GER6Rw=; b=iDqPppbl4NRnOiBd3TYuZ96b52eekm6JJ5aPffx2T5cuSoBfK1jlpN/J8Vt15Lvlji bJSFxKRHC9I5iZdvhDlLdNn0SN3jChAYoY/hHpfaBHpFT51pm1x2sv5a9686S9movtO8 I/HxYM8h3ABMr6fgJesnx80+OCr840HUs7IOdXvdnlsCFbw/sljiQKPxgkSzcjAZBtV4 wbMBEax+FslVmthm0ysm+s0n0LBdYexmDym+rUlIeYomGuCL9XI98yE6u55hVP69cVz8 IbEp6INVXjlaaLqzzqSXsFXL+oBtuyTVWh1+th7zW3dNcchQahBZ2+8Y11fXRovZ4j13 jP7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-46191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn X-Forwarded-Encrypted: i=1; AJvYcCUqbtjHzw+KzdR90+VbFW5z4qCcMKXyFoVFzuApjoKmcTS4G4Ssf+z/AiirVqK2UQh+MSJ4iFoSyvkuAmRr4EbRh/Zk7iMuWogzbpPHFQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q5-20020a05621419e500b00686b151b5ddsi11796945qvc.386.2024.01.31.02.16.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 02:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-46191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 52A991C25F83 for ; Wed, 31 Jan 2024 10:16:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84D0474E15; Wed, 31 Jan 2024 10:15:17 +0000 (UTC) Received: from smtpbguseast3.qq.com (smtpbguseast3.qq.com [54.243.244.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C275769D04; Wed, 31 Jan 2024 10:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.243.244.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706696117; cv=none; b=obCz5M8LCXJ0FtXhaRF7tLPR2A51gAHmRN/Fsa91q0bIGBgLWcsik2gqnyFdKAfuI0k1zdeKVWfEBOh2fLIaKVL/DR2aomkOcoiCFFFiPZCNKJk87qUvT6iEnt5PLlvYWoMWQYxr5myo1ilVhBpNnad/1XBkI8R4Xizk29enUAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706696117; c=relaxed/simple; bh=zE7atyhsB0ICjwTR+4a5X+RwGnLd9/RTMpK45EX4/Sk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=irukf6QYAI05OsMEhq+EMRoT7v6ah1h5n9Rrn9gvePIOyRTjECTEeGgmFFPnsBftsLLl3iirAoS229nQ1e+xMboPFymlotU3/I2oZsI2F8lv+Phnkc8rVn2+bzfxhhwWiH3g1mcpnu7aShZgQ+OkxTnKAxtdpAQbvlxwWiT/28I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=54.243.244.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp67t1706696090tpl50zk7 X-QQ-Originating-IP: 3hDmSx9p51noouzTbxu7X1MNULxVwlzajyDazx5QWYE= Received: from [127.0.0.1] ( [223.112.234.130]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 31 Jan 2024 18:14:01 +0800 (CST) X-QQ-SSF: 00400000000000B0B000000A0000000 X-QQ-FEAT: rZJGTgY0+YPUJhLXtt3+osp2Psjk3ByoCl76BXgBr0QrdHFoKwX6kgAxfK7u8 ho/jY25nBKHhHUuuIIEbEHuoRESE5IJQcrRePeJzddZ0+Lgro/JatUEphZpnhRoFr80MIsJ XSW2buqSC/BCRHHAzzpQEp30HlR2dnrC9D/HPvjArKg2EciNsmxO8Zidv+L9sg0scditkWL BQ4+CxXIsbMEGxyQwKR8LhbG/qo7/a7DuC14CvghMz7Ga0iwCZt2LJ+w0FYiZYag3hu6nR2 Upm34/LoT4+8yqotb9C++oS62WmwVJlSzSglww6K+HzppHUWeJw4AvsMg4+0cUDyVr63gBe 1QfuoelBm9J5Wqfy4fxGI9DlaD9Hkv398NOTKJSnieb5/LJwlJ4jyevDN8zmAc2Eb5jLgeQ BvjLQqPgIH57IX1xQr8vbg== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 6898810250905804753 Message-ID: <9B1126DC832EF7F2+2a6c2a9c-30ba-48d2-a808-3a25337441b7@shingroup.cn> Date: Wed, 31 Jan 2024 18:14:48 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] perf/hx_arm_ni: Support uncore ARM NI-700 PMU Content-Language: en-US To: Rob Herring Cc: shenghui.qu@shingroup.cn, Rob Herring , Conor Dooley , Mark Rutland , devicetree@vger.kernel.org, zhijie.ren@shingroup.cn, Will Deacon , linux-arm-kernel@lists.infradead.org, ke.zhao@shingroup.cn, linux-kernel@vger.kernel.org, Krzysztof Kozlowski References: <20240130081745.13750-1-jialong.yang@shingroup.cn> <170660659476.701701.9606670675803489364.robh@kernel.org> From: =?UTF-8?B?WWFuZyBKaWFsb25nIOadqOS9s+m+mQ==?= In-Reply-To: <170660659476.701701.9606670675803489364.robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz6a-1 在 2024/1/30 17:23, Rob Herring 写道: > > On Tue, 30 Jan 2024 16:17:43 +0800, JiaLong.Yang wrote: >> This code is based on uncore PMUs arm_smmuv3_pmu and arm-cmn. >> One ni-700 can have many clock domains. Each of them has only one PMU. >> Here one PMU corresponds to one 'struct ni_pmu' instance. >> PMU name will be ni_pmu_N_M, which N means different NI-700s and M means >> different PMU in one NI-700. If only one NI-700 found in NI-700, name will >> be ni_pmu_N. >> Node interface event name will be xxni_N_eventname, such as asni_0_rdreq_any. >> There are many kinds of type of nodes in one clock domain. Also means that >> there are many kinds of that in one PMU. So we distinguish them by xxni string. >> Besides, maybe there are many nodes have same type. So we have number N in >> event name. >> By ni_pmu_0_0/asni_0_rdreq_any/, we can pinpoint accurate bus traffic. >> Example1: perf stat -a -e ni_pmu_0_0/asni_0_rdreq_any/,ni_pmu_0_0/cycles/ >> EXample2: perf stat -a -e ni_pmu_0_0/asni,id=0,event=0x0/ >> >> Signed-off-by: JiaLong.Yang >> --- >> If I should send Doc*/bindings/perf/*.yaml seperately? >> >> .../bindings/perf/hx,c2000-arm-ni.yaml | 58 + >> .../devicetree/bindings/vendor-prefixes.yaml | 2 + >> MAINTAINERS | 6 + >> drivers/perf/Kconfig | 10 + >> drivers/perf/Makefile | 1 + >> drivers/perf/hx_arm_ni.c | 1308 +++++++++++++++++ >> 6 files changed, 1385 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml >> create mode 100644 drivers/perf/hx_arm_ni.c >> > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > yamllint warnings/errors: > ./Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml:54:1: [error] syntax error: found character '\t' that cannot start any token (syntax) > > dtschema/dtc warnings/errors: > make[2]: *** Deleting file 'Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.example.dts' > Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml:54:1: found a tab character where an indentation space is expected > make[2]: *** [Documentation/devicetree/bindings/Makefile:26: Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.example.dts] Error 1 > make[2]: *** Waiting for unfinished jobs.... > ./Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml:54:1: found a tab character where an indentation space is expected > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/perf/hx,c2000-arm-ni.yaml: ignoring, error parsing file > make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1428: dt_binding_check] Error 2 > make: *** [Makefile:240: __sub-make] Error 2 > > doc reference errors (make refcheckdocs): > > See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240130081745.13750-1-jialong.yang@shingroup.cn > > The base for the series is generally the latest rc1. A different dependency > should be noted in *this* patch. > > If you already ran 'make dt_binding_check' and didn't see the above > error(s), then make sure 'yamllint' is installed and dt-schema is up to > date: > > pip3 install dtschema --upgrade > > Please check and re-submit after running the above command yourself. Note > that DT_SCHEMA_FILES can be set to your schema file to speed up checking > your schema. However, it must be unset to test all examples with your schema. > Done. >