From patchwork Sat Feb 9 00:47:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 10803967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A81B14E1 for ; Sat, 9 Feb 2019 00:48:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47DB82E787 for ; Sat, 9 Feb 2019 00:48:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 395552EB2E; Sat, 9 Feb 2019 00:48:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E321C2E787 for ; Sat, 9 Feb 2019 00:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=LVLu0w/whGBWH05DYFMFqdhWGbZBxLT7qTct2V907Og=; b=ew8 m0sgFmYMLQTTErIrGzYpmQlo0+OzqDl5o1Jxf/yFObKm999/adu6BpRiUGcgx6jB65K9rmVk3FTY5 Md2oV64JCC9N+482xPPGzm7a0DWZ5cj6OROhLt6XZtwvSpcNLLscnviUa7A4EpBVIWmw3wyi/gpKY GNHu0j6vY1g2gzeOh3WUSr+NZDt6F4/B9ddwiIglC0vQpddM7UYUSqfoMFpjWJoGSvffMPELrocrb gOPipI+z21vkKWelQBrAauG4PpBH1Stw0GYTF5lQwRW3faBFsBw1qAkMohSyOeguUAQgphu/ka0/d dZNxExeTa9gxin6riM4dvGo0xEXWpcA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gsGoa-0006LL-Cj; Sat, 09 Feb 2019 00:48:16 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gsGnv-0005cx-OX for linux-arm-kernel@lists.infradead.org; Sat, 09 Feb 2019 00:47:39 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A612A78; Fri, 8 Feb 2019 16:47:28 -0800 (PST) Received: from beelzebub.austin.arm.com (beelzebub.austin.arm.com [10.118.12.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 681083F719; Fri, 8 Feb 2019 16:47:27 -0800 (PST) From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Subject: [RFC 0/3] arm64: SPE ACPI enablement Date: Fri, 8 Feb 2019 18:47:15 -0600 Message-Id: <20190209004718.3292087-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.17.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_164735_994227_2ADD4B70 X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, catalin.marinas@arm.com, rafael.j.wysocki@intel.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, Jeremy Linton , robert.moore@intel.com, linux-acpi@vger.kernel.org, lenb@kernel.org, erik.schmauss@intel.com, devel@acpica.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series enables the Arm Statistical Profiling Extension (SPE) on ACPI platforms. This is possible because ACPI 6.3 uses a previously reserved field in the MADT to store the SPE interrupt number, similarly to how the normal PMU is described. If a consistent valid interrupt exists across all the cores in the system, a platform device is registered. That then triggers the SPE module, which runs as normal. Jeremy Linton (3): ACPICA: ACPI 6.3: Add MADT/GICC/SPE extension. arm_pmu: acpi: spe: Add initial MADT/SPE probing perf: arm_spe: Enable ACPI/Platform automatic module loading arch/arm64/include/asm/acpi.h | 4 +++ drivers/perf/arm_pmu_acpi.c | 67 +++++++++++++++++++++++++++++++++++ drivers/perf/arm_spe_pmu.c | 11 ++++-- include/acpi/actbl2.h | 5 +-- 4 files changed, 83 insertions(+), 4 deletions(-)