Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1237000imm; Fri, 22 Jun 2018 12:48:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI50TR30KePZDMfachW4x6TZq+FfwFS8Ee/j4tTIgm7J8VIRqLBLeGiNp1JKqTimNOM4nHA X-Received: by 2002:a62:ec5b:: with SMTP id k88-v6mr3046511pfh.85.1529696902897; Fri, 22 Jun 2018 12:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529696902; cv=none; d=google.com; s=arc-20160816; b=u98bjF0Eay/+pc52dqqSyPgduI7TC83Ak+ueBmINFrX/MSgmccYggmA00H1HaPUPiJ AEP+c5u1QIzliJkenySPpgh7FudkBY2tpJimbOMrT/6Iu1Ka2cpvZFzTitSjHeOwLGHG iicJOmexCDKiSlG1OGYYJQRrZVdQwKOn7BnK4Yje4e+dao3Rh5vs9yIaiOM2Ci2Exfxt 0l87/V585JDDGm1VWvuShl0O33Z/e0cnPl8HL75gng1s8mU1PAnvE++IEEZVPDJTCNKM 4dFM6A7aLJANVWnM7gsPgYUvGaTrvW+3WtVcVF6OPVB4yMppZ1w6yptkzqLUQ1lUwZmj ty4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=nLpLapeLLTCbIak1TRWWGn33t4fQ+GA7289Uirqxk/U=; b=l16bl1i5sGkvzcDtHArrv50oPih6DVc+Ar7rxGJFbhxMMS25y1Y0eeuAsI76qca187 R05/TcDlbftSKJQdmXlB6Ts9+AHfX1Jw2Wbb1tovBoL66sv/J9iIRFx9UiooZ4s0fPpR y1zR59b9gEMzgox0lSbwk+qvxtYOPWpW8A9/g6OCC7C9Ybe0mENNamIcJ4jEiVZr2bPN ebVc1VWqBKQs9i0kwTp2we4BEXTgOIUa3ThrCcsjuM1xFEITRRKOnQnn9mGf2Drmzyzg Ycta+AEuMPbxPyLhMamwtmwXc66rUYbaUjAvPXg8u9px9KZPiyRaKuVv/Ximdvgbnesi ziFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=DTgGbelB; dkim=pass header.i=@codeaurora.org header.s=default header.b=HcbKKGhw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 t1-v6si6661757pgn.42.2018.06.22.12.48.08; Fri, 22 Jun 2018 12:48:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=DTgGbelB; dkim=pass header.i=@codeaurora.org header.s=default header.b=HcbKKGhw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934442AbeFVTqs (ORCPT + 99 others); Fri, 22 Jun 2018 15:46:48 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55934 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934111AbeFVTqq (ORCPT ); Fri, 22 Jun 2018 15:46:46 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2723560AD8; Fri, 22 Jun 2018 19:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529696806; bh=ie3qOV/kB96ch4FSlSY+/4tgePh/2EzqtwCJN1suZJQ=; h=From:To:Cc:Subject:Date:From; b=DTgGbelBY1o74BZQ3Pntn29v1eBp7uxKIRxGwsSM6N/37JsGfXBV/HKaZdZG929Cu ihNCH/2a5+UaPSXBd76BGHT5tl8P33iIUeetmWD4i3+TAIxvxva+J/SrvDuGhta/ky SgvSTzr9ZTyoeVDXIGNj+kd1WaAjSJGD9oh9cbT4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from azshara.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: agustinv@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0418560588; Fri, 22 Jun 2018 19:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529696805; bh=ie3qOV/kB96ch4FSlSY+/4tgePh/2EzqtwCJN1suZJQ=; h=From:To:Cc:Subject:Date:From; b=HcbKKGhw+HbcS2/Lno598gNYEEQexITISaGhtwxAAtna/AJybtW+baFlUiXjve0EQ H8Ff5b5ksHdw9rP5qCO5XIi9VsL2Y8C5Cd4YpDKf6Akwqqd3mXC8iPHzN7T8vu7TVB bw3Y6fKttozOJv1CrWv4hScPvKLLVMZZubjEpyss= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0418560588 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=agustinv@codeaurora.org From: Agustin Vega-Frias To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Will Deacon , Mark Rutland , Jeremy Linton , Catalin Marinas , Marc Zyngier , Lorenzo Pieralisi , "Rafael J. Wysocki" Cc: timur@codeaurora.org, agustinv@codeaurora.org Subject: [RFC V3 0/3] arm_pmu: acpi: variant support and QCOM Falkor extensions Date: Fri, 22 Jun 2018 15:46:29 -0400 Message-Id: <1529696792-16903-1-git-send-email-agustinv@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is a complete re-design of V1 of the QCOM Falkor extensions [1], it introduces a probe table based on the HID of a device nested under the CPU device to allow variant detection and arm_pmu customization. The first patch adds an additional section at the end of each ACPI probe table. This allows probe tables to be sentinel-delimited and better accommodate some APIs that require such tables. The second patch adds the PMUv3 ACPI probe table and plumbing to allow drivers to plug into the ACPI PMUv3 probe sequence. The third patch adds the QCOM Falkor extensions using the new probe table. If this found to be a reasonable extension approach other patches will be added to the series to build on the base QCOM extensions. [1] https://lkml.org/lkml/2017/3/1/540 Changes since V2: - Address V2 comments, which resulted in removing all uses of the PMU lock. Changes since V1: - Redesign as a separate module by adding variant detection support. Agustin Vega-Frias (3): ACPI: add support for sentinel-delimited probe tables arm_pmu: acpi: add support for CPU PMU variant detection perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support drivers/perf/Makefile | 2 +- drivers/perf/arm_pmu_acpi.c | 27 ++++ drivers/perf/qcom_arm_pmu.c | 310 ++++++++++++++++++++++++++++++++++++++ include/asm-generic/vmlinux.lds.h | 4 +- include/linux/acpi.h | 11 ++ include/linux/perf/arm_pmu.h | 1 + 6 files changed, 353 insertions(+), 2 deletions(-) create mode 100644 drivers/perf/qcom_arm_pmu.c -- Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.