From patchwork Thu Oct 10 13:29:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 175785 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2298659ill; Thu, 10 Oct 2019 06:33:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzc0gxO7lSoqEm6tYjdG3djPz7EtWzGDiyINd6kE9PWkHVr06/96KXZmp1sXQH0OYHfGZXf X-Received: by 2002:a05:6402:2d2:: with SMTP id b18mr8094062edx.264.1570714418284; Thu, 10 Oct 2019 06:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570714418; cv=none; d=google.com; s=arc-20160816; b=XGcIoL3k7YcDEnhhYCzT98Te36fAi7Q/rCYbuzqKamJ4nKC6ckW4axf76Xf2NRwwwJ iEdpOQJh6ht9QheFrgVjDWh4wtwvFhryC4n/b5DZXEeBFO7NCLC4gf/K8R3mlNg54nqm e42aU4qJI9T+iVZhsnpWcKeJTKssceTn/4KloYPLpc/zxPG1/E7EOc+eqVozFEIPQJuZ 2bx/UFL38IpvBR9xhUZSLRXdAIQFxYW32ipB2WNs9BYYWJOf/AthFIvj1fZKHsaCcz7V zbqowXm6Z8Za9kOwnmAKyNVSnnQ3HREkAQwmbCudYmnzTrgFGtz7P9Y1iqPvv/5UPwYA bHow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=TBaxa00c5NZqo8/I9cBXjrEwJdfUPV8vv2ZMUgTfEy8=; b=Ncn1ieqJSH7zu6exoCRSFKsZypYNeogPFUDl6KZLftb9Xs9m3EzJj42Eh1BR/b2Yco lfspQl9XzI0BAy44Cv40vrCxU6udrzxT7UE934oxtsJNTwtR7UkJg+c+oXk5gV1AeHVr oke199LzW9MTHGAtoe7962goSMgeNyVPuwIeN71WwuQFTGC6xzQClV1XCptW5sGkxYXO BEc4leHe3UlGUqDdJOuYUHb4dXfB4F6qfdqk9skTihmeLn6bICYfh9xXLQ/PZWSLwKtK 4UWkd6TelebU6S4Ho1nCF8RCKNDzkvJ5btnXmF2AHgGY8igQ0no4UyMS0mvNMPv8Iq2M bnLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 gh16si3075237ejb.150.2019.10.10.06.33.38; Thu, 10 Oct 2019 06:33:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388225AbfJJNde (ORCPT + 26 others); Thu, 10 Oct 2019 09:33:34 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3689 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387788AbfJJNdc (ORCPT ); Thu, 10 Oct 2019 09:33:32 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 62C01F00E599A21331DA; Thu, 10 Oct 2019 21:33:26 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Thu, 10 Oct 2019 21:33:18 +0800 From: John Garry To: , , , , , , , , CC: , , , , , , , John Garry Subject: [RFC PATCH 0/3] ACPI, arm64: Backport for ACPI PPTT 6.3 thread flag for stable 4.19.x Date: Thu, 10 Oct 2019 21:29:49 +0800 Message-ID: <1570714192-236724-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is a backport of the ACPI PPTT 6.3 thread flag feature for supporting arm64 systems. The background is that some arm64 implementations are broken, in that they incorrectly advertise that a CPU is mutli-threaded, when it is not - the HiSilicon Taishanv110 rev 2, aka tsv110, being an example. This leads to the system topology being incorrect. The reason being that arm64 topology code uses a combination of ACPI PPTT (Processor Properties Topology Table) and the system MPIDR (Multiprocessor Affinity Register) MT bit to determine the topology. Until ACPI 6.3, the PPTT did not have any method to determine whether a CPU was multi-threaded, so only the MT bit is used - hence the broken topology for some systems. In ACPI 6.3, a PPTT thread flag was introduced, which - when supported - would be used by the kernel to determine really if a CPU is multi-threaded or not, so that we don't get incorrect topology. Note: I'm sending this as an RFC before sending to stable proper. I also have a 5.2 and 5.3 backport which are almost the same, and only significant change being that the ACPICA patch is not required. Erik Schmauss (1): ACPICA: ACPI 6.3: PPTT add additional fields in Processor Structure Flags 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 | 52 ++++++++++++++++++++++++++++++++++++ include/acpi/actbl2.h | 7 +++-- include/linux/acpi.h | 5 ++++ 4 files changed, 77 insertions(+), 6 deletions(-) -- 2.17.1