From patchwork Thu Aug 8 20:40:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 170839 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp9073314ile; Thu, 8 Aug 2019 13:41:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjrNHMyOPntHAhpM1asnHjmvSHq59HZAL4pAHT4wBU7oW5xmxZ1m5vEXwL64uOGJTaVTBl X-Received: by 2002:a17:90a:b104:: with SMTP id z4mr5922383pjq.102.1565296905924; Thu, 08 Aug 2019 13:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565296905; cv=none; d=google.com; s=arc-20160816; b=zrMFh4GsC98NWHquYpGeSSvdatupXyWikLQEo7KV1rGKOMfhLJ0Ow32RqT8W2phcgo TZhtEnwR3LeeZmeFSSQrl7RfczNllv799zycpajt/8yCVBBE6P5rC6B9y4H+Dcg3duPK mSUkpIFR5G9BuYh2ZWjp9QYVSzWGDQbmm5USHjShYEa2Y3GkDIH9EEzWnCgyU/i8LvmE 0zjzXYoCRiKfjRNs8NhwHQjeuhMhdVYfc+niQ4s4F4eH5eHX+B7IK2IWtYHRfHFdW6dR OxTki1gKymt4vtB9sZ/aDeQLDLkcogwNQhFyzLU8Ww4vdopXn2btdeRXXpjbo4abq5QT KfNA== 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=GG1djLYKm5qY1t8geZ0nkxDPu8TdxfMKyb7bfMA5rA8=; b=wjsqO/M/rTXslv+Ur+etVjKOH8jUotW3gfnRxX7R9YtEaxLydtPXjl0jwuR3/Uk87k zZyh5XLjcHnrXb5XMZHmnKFWMzbFsaQixVOu6EmxQn2Rp6qW/z7yyNDEMBL477Z0bFII RrgH1ZN4aTZEeiBcDGJLsjJQWgdEWcSF6QQ1OUvA6df7v2m5ZiZP2XW5yPt2JMZ9VTuW 5pt4twxr5ZcarBNPhZYfQ5jaWCd+JCPMO5jdk+JwoboWh1kHj25ZMnSqRC31bNaBbPGg XLvhVBLZnLwiVL6wZKhDyMK/2FZBHeqEmOmfDUecofVj4fXFm/enrPWUXKhowPJUyLeG sLmg== 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 y16si55793905pgj.169.2019.08.08.13.41.45; Thu, 08 Aug 2019 13:41:45 -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 S2390322AbfHHUlp (ORCPT + 7 others); Thu, 8 Aug 2019 16:41:45 -0400 Received: from foss.arm.com ([217.140.110.172]:38420 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390148AbfHHUlp (ORCPT ); Thu, 8 Aug 2019 16:41:45 -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 56D1A1596; Thu, 8 Aug 2019 13:41:44 -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 45EBB3F694; Thu, 8 Aug 2019 13:41:44 -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, rric@kernel.org, Jeremy Linton Subject: [PATCH v4 0/2] arm64/PPTT ACPI 6.3 thread flag support Date: Thu, 8 Aug 2019 15:40:05 -0500 Message-Id: <20190808204007.30110-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. v4->v5: Add Sudeep's Reviewed tag Trivial comment tweaks Move is_threaded logic from parse_acpi_topology() to apci_cpu_is_threaded() 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 | 19 ++++++++++--- drivers/acpi/pptt.c | 53 +++++++++++++++++++++++++++++++++++- include/linux/acpi.h | 5 ++++ 3 files changed, 72 insertions(+), 5 deletions(-) -- 2.21.0