From patchwork Tue Jul 24 11:45:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shameerali Kolothum Thodi X-Patchwork-Id: 142772 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp7166256ljj; Tue, 24 Jul 2018 04:46:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecir3FsyDMQu89Y9K///Oi7hTAPsLQY2nCEe2teQDXaPPS5CNV27xPIsOvQ9xYl0qJ4XZD X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr16447460plv.342.1532432788798; Tue, 24 Jul 2018 04:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532432788; cv=none; d=google.com; s=arc-20160816; b=IQIDNJgy22HfZP6CfLe26ZPXTRvAAHa2YRQvpjwIM766biYjOtV/7x5hTEDYK17r6o wnmcTkrPMuvyN5kqDG7+Md3YiS/4SObxisrtfRWleKildM63tGcDys7ok8u2JoQVnR/N 5Uj0oqqjrR0qoKC1nPJk+7G3TcmHACWHcGVUUkWcGVafmF7IpICY7GCldVdivGQaKN1D xgTVRoSGSu6h07tzV6ELW+sV9YLBh4UItex9NcRysQgHsSnOwEgCEOxds3CLKrspEmov KRd3hGwsb75Lxp93r7w9dy+gNt5AXdO8NmLoBqN0d5k8HT/0lQAEBqDc4hIdM/5sX543 sazQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=ggryhFHMP4Sc5a3nS4mOH7eNvsJ6u7j6m+dX//8fC2M=; b=VkCNb7fTbfXe7dj6W0dkKrdkN8MYbzY1jVelpO+mZo2QXUUY4UGHT9jBnrVs4KmHDK 7sN+pu0w6cxZpAmHeUn6PCQFPKHFRfJeSaV1FKNIE/6cfy27Tz0GI1OZBEkgu+wmezsl v/zAjcK+LMpYnl7ppPSBSWRsmarusq9esR2G39tE5QhgyCP+8zB491nHVkdX6ASxL43q dqXRpoB0+0e59oiCpCH2FvfmTXjlER5hf6p+EEnFnvxnvVbd/Qg4frEa5BpAyX5fYKWK cU+kvTXXy+/ZDmhRDZDFroBGgppiQKn/uVHG+kahsUclRB3TaH+mmwfTTfveBRV2T9FV lSMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si10356604plz.379.2018.07.24.04.46.28; Tue, 24 Jul 2018 04:46:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388248AbeGXMwc (ORCPT + 9 others); Tue, 24 Jul 2018 08:52:32 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10110 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388172AbeGXMwc (ORCPT ); Tue, 24 Jul 2018 08:52:32 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D20DA50A3C598; Tue, 24 Jul 2018 19:46:19 +0800 (CST) Received: from S00345302A-PC.china.huawei.com (10.202.227.237) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.382.0; Tue, 24 Jul 2018 19:46:13 +0800 From: Shameer Kolothum To: , CC: , , , , , , , , , , , Subject: [PATCH v2 0/4] arm64 SMMUv3 PMU driver with IORT support Date: Tue, 24 Jul 2018 12:45:11 +0100 Message-ID: <20180724114515.21764-1-shameerali.kolothum.thodi@huawei.com> X-Mailer: git-send-email 2.12.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.202.227.237] X-CFilter-Loop: Reflected Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This adds a driver for the SMMUv3 PMU into the perf framework. It includes an IORT update to support PM Counter Groups. This is based on the initial work done by Neil Leeder[1] SMMUv3 PMCG devices are named as arm_smmu_v3_x_pmcg_y where x denotes the associated smmuv3 dev id(if any) and y denotes the pmu dev id. Usage example: For common arch supported events: perf stat -e arm_smmu_v3_0_pmcg_6/transaction,filter_enable=1, filter_span=1,filter_stream_id=0x42/ -a pwd For IMP DEF events: perf stat -e arm_smmu_v3.0_pmcg.6/event=id/ -a pwd Sanity tested on HiSilicon platform. Further testing on supported platforms are very much welcome. v1 --> v2 - Addressed comments from Robin. - Added an helper to retrieve the associated smmu dev and named PMUs to make the association visible to user. - Added MSI support for overflow irq [1]https://www.spinics.net/lists/arm-kernel/msg598591.html Neil Leeder (2): acpi: arm64: add iort support for PMCG perf: add arm64 smmuv3 pmu driver Shameer Kolothum (2): acpi: arm64: iort helper to find the associated smmu of pmcg node perf/smmuv3: Add MSI irq support drivers/acpi/arm64/iort.c | 179 +++++++-- drivers/perf/Kconfig | 9 + drivers/perf/Makefile | 1 + drivers/perf/arm_smmuv3_pmu.c | 901 ++++++++++++++++++++++++++++++++++++++++++ include/linux/acpi_iort.h | 4 + 5 files changed, 1063 insertions(+), 31 deletions(-) create mode 100644 drivers/perf/arm_smmuv3_pmu.c -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html