Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1690774imm; Tue, 2 Oct 2018 12:17:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV60h9wdibco7dVYkb9YiW9DuwXf+Snq6fJAWbKCJq5zxxSLIjJVeK0O+KOb1fD1PID2NUxYZ X-Received: by 2002:a63:a309:: with SMTP id s9-v6mr15624422pge.106.1538507840052; Tue, 02 Oct 2018 12:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538507840; cv=none; d=google.com; s=arc-20160816; b=x4T7eTn82sJLwkiSUE2Z/5Bnax78FmSfsdvKEjJtQoKyM8ucv5xEAA8umgnowD2UIF Dg3vzWorUT0G99u4HCG/YAB6fVp3hrhhpJbPjtDJZCj3WLqn1OQYBrrdOMHCjc5x2lB0 JXD1kqDm1i474tYZBKLkI8S9rnma40s0LjMZ//NSLsgJUm7rhIGxdm/4cQnjNvAzAY6a 82V5sbGY1FVqfV49HrwaikfbTR5F3Vieqk38d+fi+Cx3umK0nM+VzYzg+yQ8miwaF/kf LgpscFkDSmGNU+vAiCr166BAYRyy7r5cocpb97TXqWHww3ZoCilHgpOwFu0n4Aeh0KT+ R1yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=mXBe17Enk4LvwX71Vv6NtWiqrJvB6UH8I9rIhQBzgeI=; b=wRkUZxkX0p/cul6RjenCDiEN7m1dsI4RApSJksk4xpcI5dgo9yVxeLXj+jTTG/zxU5 q4V5MXeQqYHzboE3Xp+r00YixpVI+2XNcmwj2fYbHXBg/sx8lCBF+2ywVe2zlRbwSmvi UXNX3Ms5HZBMhFIGwnZwu02xcT8fqiHpIVNjopU7q9j7gurXvym6ssQqhY5KKmpEKxR0 6d3rkkhcOWzaxlyMB9cXvisEl4QZO920JSlaFtjXiAAgygg6yBoYd0zN/I5K6RK6X/Tk 3wLhMV1KUnSOJxBLrypFpK6KURzig4NQwmRXQlVQUz8qQ7fspEfVXxSDLMGZEZeDM1sx l5dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="iQtM/gi7"; 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=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si16975453pls.207.2018.10.02.12.17.04; Tue, 02 Oct 2018 12:17:20 -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=@wdc.com header.s=dkim.wdc.com header.b="iQtM/gi7"; 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=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727733AbeJCCAA (ORCPT + 99 others); Tue, 2 Oct 2018 22:00:00 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:61573 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeJCCAA (ORCPT ); Tue, 2 Oct 2018 22:00:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1538507709; x=1570043709; h=from:to:cc:subject:date:message-id; bh=rMPk8dxyx5CybRX2rxrSyOX33/pWDxcvGzCyMW0+dcU=; b=iQtM/gi7doI1bPmITP2IjGACOFUOe5GrqZBua/FAXRndQmuqmKOw9YcT AK+u5jU84mHiI/RptByZrNpogj+AKKvtv4eaTtJuGJker6IMrSqmDUAho 37/YGi2xrk8MfTXIlTi/au7f96PfRnfyEK7CvOgyqEIeH7UT76LAus+3O wd9cLKITFkjNkCPvk9Z+w3/CKawIo+zQU8ji5/Kf9c9U1qCd1oRRrbF0y zgGsb8hucyG1qCO6Ww7ITQ/MtqlsMsrH56pvM6q/xB6olkKc0URD8g7iV XCaNmCjymMspSR3LurvOtYgf3ieutUcR61lZNZ9b0dsPdpT9NoP5+ugpB w==; X-IronPort-AV: E=Sophos;i="5.54,332,1534780800"; d="scan'208";a="91076735" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 03 Oct 2018 03:15:08 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 02 Oct 2018 12:00:49 -0700 Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 02 Oct 2018 12:15:09 -0700 From: Atish Patra To: linux-riscv@lists.infradead.org, palmer@sifive.com Cc: anup@brainfault.org, hch@infradead.org, linux-kernel@vger.kernel.org, atish.patra@wdc.com Subject: [PATCH v6 00/14] SMP cleanup and new features Date: Tue, 2 Oct 2018 12:14:53 -0700 Message-Id: <1538507707-22299-1-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series now has evolved to contain several related changes. 1. Updated the assorted cleanup series by palmer. The original cleanup patch series can be found here. http://lists.infradead.org/pipermail/linux-riscv/2018-August/001232.html 2. Implemented decoupling linux logical CPU ids from hart id. Some of the work has been inspired from ARM64. Tested on QEMU & HighFive Unleashed board with/without SMP enabled. 3. Included Anup's cleanup and IPI stat patch. All the patch series have been combined to avoid conflicts as a lot of common code is changed different patch sets. I have mostly addressed review comments and fixed checkpatch errors from palmer's and anup's series. v1->v2: 1. Dropped cpu_ops patch. 2. Moved back IRQ cause definitions to irq.h 3. Keep boot CPU hart id and assign zero as the CPU id for boot CPU. 4. Renamed CPU id and hart id correctly. v2-v3: 1. Added cleanup patches from palmer. 2. Moved the hotplug related functions to it's own file. 3. Updated stub functions as per coding guidelines. 4. Renamed __cpu_logical_map to a more coherent name. v3-v4: 1. Addressed minor typos in commit text and code. 2. Included Anup's do_IRQ patch. 3. Dropped CPU hotplug patch. As there are some concerns about approach, I will submit it separately. v4->v5: 1. Minor typo fixes in commit text. v5->v6: 1. Included Anup's IPI stat and cpuinfo patch. 2. Fixed a typo cpuid_to_hardid_map->cpuid_to_hartid_map Anup Patel (3): RISC-V: No need to pass scause as arg to do_IRQ() RISC-V: Show CPU ID and Hart ID separately in /proc/cpuinfo RISC-V: Show IPI stats Atish Patra (4): RISC-V: Disable preemption before enabling interrupts RISC-V: Use WRITE_ONCE instead of direct access RISC-V: Add logical CPU indexing for RISC-V RISC-V: Use Linux logical CPU number instead of hartid Palmer Dabbelt (7): RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} RISC-V: Filter ISA and MMU values in cpuinfo RISC-V: Comment on the TLB flush in smp_callin() RISC-V: Provide a cleaner raw_smp_processor_id() RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu RISC-V: Use mmgrab() arch/riscv/include/asm/processor.h | 2 +- arch/riscv/include/asm/smp.h | 47 +++++++++++++++----- arch/riscv/include/asm/tlbflush.h | 16 +++++-- arch/riscv/kernel/cacheinfo.c | 7 --- arch/riscv/kernel/cpu.c | 87 ++++++++++++++++++++++++++++++++------ arch/riscv/kernel/entry.S | 1 - arch/riscv/kernel/head.S | 4 +- arch/riscv/kernel/irq.c | 12 +++++- arch/riscv/kernel/setup.c | 10 +++++ arch/riscv/kernel/smp.c | 82 ++++++++++++++++++++++++++++------- arch/riscv/kernel/smpboot.c | 46 ++++++++++++++------ drivers/clocksource/riscv_timer.c | 12 ++++-- drivers/irqchip/irq-sifive-plic.c | 10 +++-- 13 files changed, 259 insertions(+), 77 deletions(-) -- 2.7.4