Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4516063imm; Tue, 11 Sep 2018 13:09:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZlKH8T0NQFWzCWCiFZrA1Wqpqey9LIAAm+7SjhFp0We+ng7Is2N6UeTOrdemrc3CPkVKuq X-Received: by 2002:a63:2f45:: with SMTP id v66-v6mr29569356pgv.91.1536696562423; Tue, 11 Sep 2018 13:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536696562; cv=none; d=google.com; s=arc-20160816; b=dzZp8LW9OzrGaNTW33JTnN6cRStit57VA71mbv8SlBbXa/qsqU97nX9dFfzhqVz9h2 L/gxj3QtA8lRIU61J0pHZfYOzt+fc2nPP6k1+/s6ooMj5tdStzzBmno9w8Q39H/JBKnC fTK6FcC/uGNCagEAgfYiwP2WZ13MpCPif6p5qcArYJGE5vwVYRb2pJXA1l7C+bVm4eg6 M9evBbDUMcSYRGCXWJQRrS77BXEaC4HIVSLR3Gf7Z2kc9w9YRgqKHWQ7AiGfpdBp5Yd1 AI+6zn7GXdYYLhnSUK3h305Ozn+ENavKwM1D0yMPS1x8BlNZOMpzzaiiKAbZftFIsnGN I/BA== 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=mfWcCZYyWqoU0OByx984xiF2IdJCsCBpH91gM8FOlY8=; b=nurkWn69OOth93K1u7zpRmXZCTuCtpEXDIirWqqUtCnJRetO6US8vc+p2lQyjB1Oh9 yV/UFS6zjEDgeLcNu8bqWYtTPK8jYN5FYEkGbFxm6LHgJ/qkD6+cHjYxfEfbFNkXZwoC nyQ4t84QBmkkF3O5QLssfJWEwc5enMdn1Y46OX7ng5gldWzwq5t4GkeGB/zXKh6RHyCW BLjuhRuMrmkhLy40/jRRP7V7W4jWURXkVq2gIq2u1NC4ZCeIMB1/uxA/l7xEikmTXtd2 ARNA5Hwb5lqN++Zn0dYeKVP55gV0km7bWHLvkTqABEYlcKMV3zMXPVlpJAPe7NSNG2Jw BWZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=SRtJnMAy; 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 m37-v6si20134796plg.340.2018.09.11.13.09.07; Tue, 11 Sep 2018 13:09:22 -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=SRtJnMAy; 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 S1727626AbeILBGd (ORCPT + 99 others); Tue, 11 Sep 2018 21:06:33 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:52878 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbeILBGd (ORCPT ); Tue, 11 Sep 2018 21:06:33 -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=1536696340; x=1568232340; h=from:to:cc:subject:date:message-id; bh=ZLogkIlkfLLZrpZWANuoPB7Me8QHxPVvVo+WbqnGtis=; b=SRtJnMAySDRLTHNPGSQl2VbfNxnEZFloVKucka42fEpwazLek5bKOirc +R0EpEJiuYzdhDAkoBuN4s2H9WmTNExn5cJty3Bxl/UX375V3Dpeb2Oyb 9QfQ5ggI7lvd9yctDnI7lZW9HFn/XsFfIcTDHLE0GP8sLe77e9wSdEuD7 Izvj+vPUM1bTOmVPfXRNiFZ4SRe4fLt5PCZ9+D78qCYUpNWNPBahWUpDf Mpz5HBwbLiHrYpBkON9pgMX1CVXS3iFdHz5XyesgNQUZqc+q0G6+NuvR4 IVwbZGtzmxgXACTamuoOTCjrfWYfAM8TQKWCTh5F0QFblBWmYOb33N+56 g==; X-IronPort-AV: E=Sophos;i="5.53,361,1531756800"; d="scan'208";a="193728817" 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; 12 Sep 2018 04:05:40 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 11 Sep 2018 12:52:14 -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; 11 Sep 2018 13:05:40 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org Cc: mark.rutland@arm.com, hch@infradead.org, anup@brainfault.org, atish.patra@wdc.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, Damien.LeMoal@wdc.com, marc.zyngier@arm.com, jeremy.linton@arm.com, gregkh@linuxfoundation.org, jason@lakedaemon.net, catalin.marinas@arm.com, dmitriy@oss-tech.org, ard.biesheuvel@linaro.org Subject: [PATCH v4 00/12] SMP cleanup and new features Date: Tue, 11 Sep 2018 13:05:27 -0700 Message-Id: <1536696339-15204-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 has 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 It also implemented decoupling linux logical cpu ids from hardware cpu id. Some of the work has been inspired from ARM64. Tested on QEMU & HighFive Unleashed board with/without SMP enabled. Both the patch series have been combined to avoid conflicts as a lot of common code is changed in both the series. I have mostly addressed review comments and fixed checkpatch errors from palmer'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. Anup Patel (1): RISC-V: No need to pass scause as arg to do_IRQ() Atish Patra (4): RISC-V: Disable preemption before enabling interrupts RISC-V: User 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 | 38 ++++++++++++----- arch/riscv/include/asm/tlbflush.h | 16 ++++++-- arch/riscv/kernel/cacheinfo.c | 7 ---- arch/riscv/kernel/cpu.c | 83 ++++++++++++++++++++++++++++++++------ arch/riscv/kernel/entry.S | 1 - arch/riscv/kernel/head.S | 4 +- arch/riscv/kernel/irq.c | 4 +- arch/riscv/kernel/setup.c | 10 +++++ arch/riscv/kernel/smp.c | 43 +++++++++++++++----- arch/riscv/kernel/smpboot.c | 46 ++++++++++++++------- drivers/clocksource/riscv_timer.c | 12 ++++-- drivers/irqchip/irq-sifive-plic.c | 10 +++-- 13 files changed, 207 insertions(+), 69 deletions(-) -- 2.7.4