Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2375009ybp; Thu, 10 Oct 2019 06:34:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp8NQuseo6YvhErmUP5nOk9TQHW9nbaChVr7IGfho8YrkABJjG6deg+nnPrfUj7T5Zla2f X-Received: by 2002:aa7:d915:: with SMTP id a21mr8235379edr.46.1570714446141; Thu, 10 Oct 2019 06:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570714446; cv=none; d=google.com; s=arc-20160816; b=l4HXrXPMd+q6CZ0MvPX3okPq9uHnCj2aHzDUgjy1L5Ot7GPz33oj66wzDaP7mNzLa9 DgOnK6EQ9ToQ/02Op4slCE8PC8Ou1PwF5gxyoHgOO9mpUpdVJ8FUWmO9O4MMyvMmsopW PtrlB2xs2561pXnhP3gtb01I2fYJ1A7+tdGpe2VZhFBiP4IXwqbDxXPtbsqIwzaxfGFj QFpt5Szf6VdeiHhu8w88a4tYst66hBUwXfBJF9X305aBabCQ3I+yTe/m3pxATukbXr3y cN0KSE9uEi1SZLSR8KwQmscWDZAMafTD2sLvKHOVXNLBDeHldy1+fGGOSLjbS5r0InBk Ep0Q== 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 n8si3013816ejz.22.2019.10.10.06.33.41; Thu, 10 Oct 2019 06:34:06 -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 S2388211AbfJJNdd (ORCPT + 99 others); Thu, 10 Oct 2019 09:33:33 -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 Content-Type: text/plain 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