From patchwork Fri Jun 28 18:14:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 168117 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4011041ilk; Fri, 28 Jun 2019 11:14:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzISBpzDxi6sfL5ErlY8TQMleH85dwKJef7h97PdUXtAaULi9cU38qLbvtkwENusp/zdz3c X-Received: by 2002:a17:902:54d:: with SMTP id 71mr12984255plf.140.1561745699052; Fri, 28 Jun 2019 11:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561745699; cv=none; d=google.com; s=arc-20160816; b=ipi6wWn0w4iCeh/rOA0xWcgZJ7hR7cU+t6hscxRbNNrgvKS+DPkAwEXJBtnP2SkUpH gQiL2FD6i8XR69viI8/zeEWUK0wLSUjZV3rSdlOfSPE+AreR4s027aOs1myjvCZbSfpC Gm0aMo4oe1Cdn1kbOTOlObj/Q1YFQ70MirhmsylaToLGiMaTjf1dAWd7NmluKP9jmVkU MdPllKNOi8pREYW4MFvCQ3e40eb4bovTjbhIlIbt/ieFdEMB/NohiKx7C/2MgUzD854M Nrk16o/01CLSLL+uQWrINMKi6meZJdBtbxpldbwXt8KOYDTVSbZS5JJ4Kv+c49QYY0mv pfWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WfY+F6b9BwIOO2RJjuZT9q74VljFxX7KhUxspv4gEEs=; b=UwIXfR6Ex7Q6NyQAZ6uhN7yvp94yrHNVFfP6ImZJ5HEgb4JUEeQbJ8obrRnZIhlBQY 7XUgSoiD55yhu4muR14jWiit6DWgQdBZrkWuuJS1GM2lOn7/a804CZD/VdwKp1Mj/xSF YMXa9S2hBE+u5LTkCMGiYeYg7Dr1jF0X5ol/KTWLzOm7rb8aZBN10p+lJQzazErlqM2z UHEjpQL6HMsouJ4Z99q6HSAlKvGIwEh613w5ZS+KkRui6Ak2jAxJ6512CofFPQAqt8o3 YP4e0qnA1T/J7+gLvW6q/Pnimv/mo7O46BqUkqtoEzOAreaChh1JnljdO+uFsW/vpvVO itAw== 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 6si3190201pfd.2.2019.06.28.11.14.58; Fri, 28 Jun 2019 11:14:59 -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 S1726498AbfF1SO6 (ORCPT + 8 others); Fri, 28 Jun 2019 14:14:58 -0400 Received: from foss.arm.com ([217.140.110.172]:53252 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfF1SO6 (ORCPT ); Fri, 28 Jun 2019 14:14:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6CC442B; Fri, 28 Jun 2019 11:14:57 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.30.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 51FC83F718; Fri, 28 Jun 2019 11:14:57 -0700 (PDT) From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Cc: linux-acpi@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, rjw@rjwysocki.net, lenb@kernel.org, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Jeremy Linton Subject: [PATCH v3 0/2] arm64/PPTT ACPI 6.3 thread flag support Date: Fri, 28 Jun 2019 13:14:55 -0500 Message-Id: <20190628181457.6609-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org ACPI 6.3 adds a flag to the CPU node to indicate whether the given CPU is a thread. Add a function to return that information for a given linux logical CPU and then utilize it while building the arm64 topology. v2->v3: Clarify and tweak the return from check_acpi_cpu_flag() Cache the PPTT table revision to avoid repeat acpi_table_get/put calls in the case of missing or old PPTT tables. v1->v2: Return ENOENT instead on ENONET. Jeremy Linton (2): ACPI/PPTT: Add support for ACPI 6.3 thread flag arm64: topology: Use PPTT to determine if PE is a thread arch/arm64/kernel/topology.c | 8 +++-- drivers/acpi/pptt.c | 62 +++++++++++++++++++++++++++++++++++- include/linux/acpi.h | 5 +++ 3 files changed, 71 insertions(+), 4 deletions(-) -- 2.21.0