From patchwork Wed May 30 20:14:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dann frazier X-Patchwork-Id: 923008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40x1zb4b82z9s0w; Thu, 31 May 2018 06:15:07 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fO7Um-0000oO-RC; Wed, 30 May 2018 20:14:56 +0000 Received: from complete.lackof.org ([198.49.126.79]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1fO7Uk-0000ni-Ej for kernel-team@lists.ubuntu.com; Wed, 30 May 2018 20:14:54 +0000 Received: from localhost (c-73-78-137-212.hsd1.co.comcast.net [73.78.137.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by complete.lackof.org (Postfix) with ESMTPSA id 80AFE33E018A for ; Wed, 30 May 2018 14:14:51 -0600 (MDT) Date: Wed, 30 May 2018 14:14:50 -0600 From: dann frazier To: kernel-team@lists.ubuntu.com Subject: [PULL][SRU Bionic] Parse the ACPI PPTT table Message-ID: <20180530201450.GA6801@xps13.dannf> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.5 (2018-04-13) X-Virus-Scanned: clamav-milter 0.99.4 at complete.lackof.org X-Virus-Status: Clean X-Spam-Status: No, score=0.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on complete.lackof.org X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" This PR comprises all clean cherry-picks from upstream & linux-next, except for one which required very minor backporting. I've tested on a HiSilicon D06 arm64 server and a Qualcomm QDF2400, which both provides a PPTT table. I also regression tested on a POWER9 system, since some of the changes are to device-tree code, and that's the other Ubuntu architecture that supports device-tree. Details, including a patch-by-patch regression risk analysis are in the bug. BugLink: https://bugs.launchpad.net/bugs/1770231 The following changes since commit b7be50f6450d62d2a2e3ad7599b63c6ca5c0006f: UBUNTU: Ubuntu-4.15.0-23.25 (2018-05-23 18:56:27 +0200) are available in the Git repository at: git://git.launchpad.net/~dannf/ubuntu/+source/linux/+git/linux pptt-bionic for you to fetch changes up to b56660e8d5307418a39c7c273c49870a0ef7d20f: arm64: topology: divorce MC scheduling domain from core_siblings (2018-05-30 10:40:01 -0600) ---------------------------------------------------------------- Jeremy Linton (13): ACPICA: ACPI 6.2: Additional PPTT flags drivers: base: cacheinfo: move cache_setup_of_node() drivers: base: cacheinfo: setup DT cache properties early cacheinfo: rename of_node to fw_token arm64/acpi: Create arch specific cpu to acpi id helper ACPI/PPTT: Add Processor Properties Topology Table parsing ACPI: Enable PPTT support on ARM64 drivers: base cacheinfo: Add support for ACPI based firmware tables arm64: Add support for ACPI based firmware tables arm64: topology: rename cluster_id arm64: topology: enable ACPI/PPTT based CPU topology ACPI: Add PPTT to injectable table list arm64: topology: divorce MC scheduling domain from core_siblings dann frazier (1): UBUNTU: [Config] CONFIG_ACPI_PPTT=y arch/arm64/Kconfig | 1 + arch/arm64/include/asm/acpi.h | 4 + arch/arm64/include/asm/topology.h | 6 +- arch/arm64/kernel/cacheinfo.c | 15 +- arch/arm64/kernel/topology.c | 107 ++++- arch/riscv/kernel/cacheinfo.c | 1 - debian.master/config/config.common.ubuntu | 1 + drivers/acpi/Kconfig | 3 + drivers/acpi/Makefile | 1 + drivers/acpi/pptt.c | 655 ++++++++++++++++++++++++++++++ drivers/acpi/tables.c | 3 +- drivers/base/cacheinfo.c | 157 +++---- include/acpi/actbl1.h | 14 + include/linux/acpi.h | 4 + include/linux/cacheinfo.h | 25 +- 15 files changed, 890 insertions(+), 107 deletions(-) create mode 100644 drivers/acpi/pptt.c Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza