From patchwork Thu Aug 1 03:46:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 170306 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4837865ile; Wed, 31 Jul 2019 20:46:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqx165eOir4ydhkYvVf9t0UUI3S3paoUgHUwnrwcrVYMjauhAAH14DyHCqUkTwovNlKQY1Qi X-Received: by 2002:a17:902:54f:: with SMTP id 73mr121509028plf.246.1564631203181; Wed, 31 Jul 2019 20:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564631203; cv=none; d=google.com; s=arc-20160816; b=rD+sHb4u/4jsEM5yL6R61lwdFk/lKALnruiK5mVSHB5kdmQiH7vZbbQc1d22cA9MZK jqu4uz0KGfbB/wQVehEnhwr3PgXAyIaXvBbTSLybJQK27O4I1yPJe1U1H1kNYkFd8ENI y8EtppqFWpFH7P+vJNIwE7kajdxfgED4zNq7/GzG3TvN6XRiyow3G/nEliX97B3SFwWy pcr79Lcz96aq3mtwIrxzYPhlaWKBdbDjNwSBaFWlVApEzUewvWBGgf9l9o6GewMnVVdY qgHZfNyxVpYjIqOxQp8L9gf5kS7cnfDvK1YOKa6bCWaAiWCPIIcqLeQ8cWTSbrY4h4x2 225Q== 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=WT7cly5eAgY2pc+K8r1y94homz6vdF1Uapi5ModI8jw=; b=Sb8XubG5WYANmseDHy/URrGekipkpIXbXxeUA6ZyLqPOcBCk/qxeoNQ+JRZVXJZLR5 DBvcfC/Wv08ay5vx5N2ZmeaPhAv9+KmCJP/56AliqW6MuoIBkWJeeDpb1LzT3OeMjA63 Cj1mpE2ZmRO86oYRCItImmFWq40AwUXDASZdKQ++q5csTB9/jfVuUI/b026kHr1LBdyn G3LUDaeYKgbI6516KqoZ1Lf583g7vfw+af3wxrEhl0SAdHfkpzZFLOj8uR+KsO5y1O1m ZYuOFL14sjBN1GQanoiGCckFoL+SVG6Kf4hnZ7ihWnX9q+TAMQH/cH+5O9dZAD+uUQ0F PBzw== 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 u12si3000140pgb.595.2019.07.31.20.46.42; Wed, 31 Jul 2019 20:46:43 -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 S1728974AbfHADqm (ORCPT + 8 others); Wed, 31 Jul 2019 23:46:42 -0400 Received: from foss.arm.com ([217.140.110.172]:57772 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727948AbfHADql (ORCPT ); Wed, 31 Jul 2019 23:46:41 -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 4E5A2344; Wed, 31 Jul 2019 20:46:41 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.30.64]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3D7BA3F575; Wed, 31 Jul 2019 20:46:41 -0700 (PDT) From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Cc: linux-acpi@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, rjw@rjwysocki.net, lenb@kernel.org, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Jeremy Linton Subject: [PATCH v4 0/2] arm64/PPTT ACPI 6.3 thread flag support Date: Wed, 31 Jul 2019 22:46:32 -0500 Message-Id: <20190801034634.26913-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. v3->v4: Remove table revision cache as this code path is only called during boot and there aren't any indications that it presents a perf issue. Rebase to 5.3 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 | 54 +++++++++++++++++++++++++++++++++++- include/linux/acpi.h | 5 ++++ 3 files changed, 63 insertions(+), 4 deletions(-) -- 2.21.0