Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1039303imm; Thu, 13 Sep 2018 11:39:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbEYDBlsbBmAUPkiszTXiFw8tYen8bwgaabEVBP/xQehTPyVwcx1XsnJb9fZYhN65Eo5KMI X-Received: by 2002:a63:5b63:: with SMTP id l35-v6mr8331452pgm.50.1536863966237; Thu, 13 Sep 2018 11:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536863966; cv=none; d=google.com; s=arc-20160816; b=k9BmLaeyf2oH1UzhOGiW7eo9BIQe4wGMjLSf3HvP0D99P5SO/FcK73jbR+w5SZDKdu 4W7YhaTlCs9DO3BB7V32Nv90TvWqhkI5dkjOvYGEQAtKoNXjm5eAYtiE63zn2lAgvBtR 0lmEuMwtFyjpWMnRGOiDj8iO3YKsLiPEABwihcG0/yYXJHLJ/HfTisyb36gfNNwRaObc mvXYHYwxrGKfjVDrmqYDRqnJAPHFLEoMXMaBRJTIitWf0HQe2NVJDh3NX5zNZ0TLbHae njLPp26VaInqH28YS6ueXKKJMt/3AEy1G6iKTmH6r1IY3HrNyvaaQWxB0u/k4n+SyQX0 /7rA== 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=sw5bQx+9tEP8Q8A6fKtom1TG2gsuplznGqyTlrU2ejM=; b=nIiLmNpPikQsMKpwOqeUDIwIHLlVA46DZ5nCuPM9nsJTlz7t+Qq14jiAwDAGagqRQU n4omCJzRX7WL1X6oEQZGPwS2BGKyvgve1XlHechO95Qaf3X4So+uyT0z2Jam0IdMKz45 PHBgJnzUxEB4sqX3kCsLVKvDjA+8rdy8SBxoeJQLQd3tfr3RAY4YLT/l+Tjh27IPCSko cjs4JBZ0rvh2y/q6hlh247CTuTZF4P1PYk2utC9w/rp5KJYzsWTPHVAi78/M5fdYrAXK YaIII1sNjhJXxlwkUMtf4u/b6Ps1zB33KMYCpzXdISJ+j2AF5I9NVI4505OFilzOX793 bqkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=oLrgsrov; 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 t1-v6si4558831pfb.208.2018.09.13.11.39.11; Thu, 13 Sep 2018 11:39:26 -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=oLrgsrov; 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 S1728034AbeIMXrs (ORCPT + 99 others); Thu, 13 Sep 2018 19:47:48 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:26981 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbeIMXrs (ORCPT ); Thu, 13 Sep 2018 19:47:48 -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=1536863827; x=1568399827; h=from:to:cc:subject:date:message-id; bh=abM7eJv4Ofvb9p/aDLW83mk2wtFxsZlnq+oxgbAdUJ8=; b=oLrgsrovR2gPaMHPa8VKvlIpxPn4YGBfZjhKjLnpMfrpW2mTGsrVyCFu 12vA0MMsSTyFK0/X01t3N3EwC/cZ9STGJD90V4dNtP2QblnWXiyyNEWlH avVUp7ouq/5D4GH67k3O+/+8YsKN+PFC9p5E4g3oseF31z5HfuDMAPg50 y4XEKmRzh2W4hlscciGQgjuf4r6usIDdbkeIo8hLdWjBlpk4cyEokp9Ov 53SoaIOUOTirzUk5j6s7NGl794h1H6BH9Ja57MkM30wK1N48eEOXzzgIj cniJMOuqrtv3HXa1U4ltAGiTh4cQzBWQy63tlvWW4O4fEX+3oXagUbsNU Q==; X-IronPort-AV: E=Sophos;i="5.53,370,1531756800"; d="scan'208";a="89712004" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 14 Sep 2018 02:37:06 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 13 Sep 2018 11:23:37 -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; 13 Sep 2018 11:37:06 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org Cc: mark.rutland@arm.com, 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, schwab@linux-m68k.org Subject: [PATCH v5 00/12] SMP cleanup and new features Date: Thu, 13 Sep 2018 11:36:53 -0700 Message-Id: <1536863825-66808-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 hart 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. v4->v5: 1. Minor typo fixes in commit text. 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: 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 | 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