Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2092388ybb; Sat, 11 Apr 2020 20:25:11 -0700 (PDT) X-Google-Smtp-Source: APiQypL6vYCu1koeQb/2cDQ0y4cijQKGmZ8b9I3oLun1rALow9L/phJxtEnL7NMcOma9Nx46lDRK X-Received: by 2002:a37:85c2:: with SMTP id h185mr10515413qkd.446.1586661911656; Sat, 11 Apr 2020 20:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586661911; cv=none; d=google.com; s=arc-20160816; b=giRWzfzmvyaDSatcN/phkZwcqcu2ocT4/OMJvkPazAkp1KLUZrSsJ8DCkVkYdEJx8b HszH5KLlfWU7+QeR/n5AYqozMJmGY9iAoVfOePNEnWpSZ7hOtzbtEX8snUWH/a2JH1vJ qIUIuewR1JqqUvIBk7KXZroOErRqTzBtnV1zuFNtFlI3PwR9dgzKtGT+WIwXEQEOEPUX pFooZWniW5LPpmB2Yo4RqT6d/kZZjjSkFEiDpPp8MHJAIc4vsNlY//tlKzVwgdlaVE4K 1U4U7B/RgtOZwGMrY4n/+5MoX4O/8wneoxRxEkGM/9kGJKuw6b2aZ9IwMx/o4bOV3Uvz ph+w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PWsR5KGG8Yge6r3KT2XfbyDrolB60DWWemjYST1b6pI=; b=xsOhY3dP+amOoV9S12ahtfOxCSWExrlFy/jsneGFJD9EPK5lT21ofgya45Q/zA1ENV HUiF1Qgg7jdQdUfkP/PU8kGzIchSX6xahvctiUptbAhgKBSg+LoeKKp0YNBUJBC3V2TC Fv3Cf66YNOq4ulK4ni7+R3q8f9SsPoTSO/Lezs08VrGAJOuTYUa6PjJ6eUAMkdLmjj1P GL54jVHibLmFskvIoWMsX5KgoVTyp8vm7aZh45otjYAPJBdT1SFl+6wxur6IFoD64DTi +RrmBi1jGbyYMWvw1hLBLYTOVcZ+K9K4PfamLCYtsWSr46EEMhVAieBd3c/pQ2KqvZke gR7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b="u/40V0UJ"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si3622844qvr.54.2020.04.11.20.24.19; Sat, 11 Apr 2020 20:25:11 -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; dkim=fail header.i=@flygoat.com header.s=vultr header.b="u/40V0UJ"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726879AbgDLDXB (ORCPT + 99 others); Sat, 11 Apr 2020 23:23:01 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:54464 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbgDLDXB (ORCPT ); Sat, 11 Apr 2020 23:23:01 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 7692C20D01; Sun, 12 Apr 2020 03:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1586661775; bh=Z4RAigTBiOP7VvrfTLiBE6exmQIE7e1mafncBvapIM8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u/40V0UJINdoLfz3CVg+vOTwg/UlBNYosFwSbKUPg+0bUj1Nr7BmT5c+H+R3qFWO7 woPslrmOU1yrBoNztw3F6/JPqb5XcziGGOUMrjCdSOmV3UR5ubuZVeqxG5mZ0Ez7tD 7P+ccYAJtXVbB5pisjQT/Z7KR8k6JTqfYWnNo6T7GwHdCSsw3wvBWQavMGjeMGl0Dk dQYSWHqYFCWRqVmUu8SlffBHQ1IrlzuaiA+Us23y/ENJq8VQKrsSNbpd4eKu6Ts/Uq HEhtagU/Sn58L2tKtG5b+8UfuP0aZBqQ5BWZwEBePewzivfyt4wZSKwtgAeELa8yML Jib2DP7XRlyZQ== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: dietmar.eggemann@arm.com, Jiaxun Yang , Thomas Bogendoerfer , Huacai Chen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Florian Fainelli , Robert Richter , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Kate Stewart , Vladimir Kondratiev , Richard Fontana , Paul Cercueil , Zhou Yanjie , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= , YunQiang Su , Arnd Bergmann , Serge Semin , Matt Redfearn , Alexios Zavras , Steve Winslow , afzal mohammed , Peter Xu , Kamal Dasu , Mike Rapoport , Oleksij Rempel , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net, linux-pm@vger.kernel.org Subject: [PATCH v2 00/11] MIPS: Topology & DeviceTree CPU rework v2 Date: Sun, 12 Apr 2020 11:20:30 +0800 Message-Id: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: 20200408113505.2528103-1-jiaxun.yang@flygoat.com References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This set mainly added DeviceTree based CPU probe support and reworked topology handling for MIPS. In order to prepare for pure DeviceTree boot for Loongson64. It can also convinient Yanjie's Inegnic jz4780/X2000 SMP/SMT support. I've done build test for bmips, nlm, ip27 and boot test for malta with 34Kf, I6400 in QEMU, Loongson64 on a Loongson-3B1500 real machine. Thanks. v2: - Fixes Jiaxun Yang (11): MIPS: setup: Drop prefill_possible_map MIPS: prom: Add helper to parse CPU node in dt arch_topology: Make it avilable for MIPS arch_topology: Reset all cpus in reset_cpu_topology MIPS: Switch to arch_topology MIPS: Kernel: Switch to new topology interface MIPS: CPS & MT: Switch to new topology interface irqchip: mips-cpu: Switch to new topology interface MIPS: bmips: Switch to new topology interface MIPS: nlm: Switch to new topology interface MIPS: Loongson64: Switch to new topology interface arch/mips/Kconfig | 1 + arch/mips/include/asm/cpu-info.h | 49 -------- arch/mips/include/asm/mach-ip27/mmzone.h | 2 + arch/mips/include/asm/mach-ip27/topology.h | 2 + .../include/asm/mach-loongson64/topology.h | 2 + arch/mips/include/asm/mips-cm.h | 9 +- arch/mips/include/asm/mips-cps.h | 2 + arch/mips/include/asm/prom.h | 6 + arch/mips/include/asm/smp-ops.h | 2 - arch/mips/include/asm/smp.h | 2 - arch/mips/include/asm/sn/addrs.h | 1 + arch/mips/include/asm/topology.h | 68 +++++++++- arch/mips/kernel/cacheinfo.c | 19 +-- arch/mips/kernel/cpu-probe.c | 43 ------- arch/mips/kernel/mips-cm.c | 4 +- arch/mips/kernel/mips-cpc.c | 4 +- arch/mips/kernel/perf_event_mipsxx.c | 4 +- arch/mips/kernel/pm-cps.c | 12 +- arch/mips/kernel/proc.c | 8 +- arch/mips/kernel/prom.c | 97 ++++++++++++++ arch/mips/kernel/setup.c | 22 +--- arch/mips/kernel/smp-bmips.c | 3 +- arch/mips/kernel/smp-cmp.c | 5 +- arch/mips/kernel/smp-cps.c | 41 +++--- arch/mips/kernel/smp-mt.c | 3 +- arch/mips/kernel/smp.c | 55 +------- arch/mips/kernel/topology.c | 42 +++++++ arch/mips/loongson64/smp.c | 20 +-- arch/mips/mm/c-r4k.c | 4 +- arch/mips/mm/context.c | 4 +- arch/mips/netlogic/common/smp.c | 4 +- arch/mips/oprofile/op_model_mipsxx.c | 4 +- drivers/base/arch_topology.c | 118 +++++++++--------- drivers/cpuidle/cpuidle-cps.c | 3 +- drivers/irqchip/irq-mips-cpu.c | 2 +- 35 files changed, 361 insertions(+), 306 deletions(-) -- 2.26.0.rc2