Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1712309imm; Tue, 2 Oct 2018 12:40:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV63yrV56QRC1d+HH4pADumhoBLygCxnuam1M3bdX2DKJyn14wjvwlWADSzY6dKgF1Q05IFkY X-Received: by 2002:a62:d110:: with SMTP id z16-v6mr16095100pfg.229.1538509245586; Tue, 02 Oct 2018 12:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538509245; cv=none; d=google.com; s=arc-20160816; b=YRzQV7AxOF6JUofgcCJcMcdu6nFlWRpRMwVVLt4p6+VZKc7GsFRVznu0nhyiGlSzOq Brf+1WQWTpKxW2ZP6ZOFP0U/4VjX/Bm/Ft+aiTCr8VjDqJ1wWoqKKNHe/MLzt9Y/l87V 5RAQd0NorKWnm4i1qobE/hyfgYbcx+V0dROZdLxOKmdTDYe5AP33+r38Xt1qfRiqoi9h XtExwHwGsqtn4HTtM5A1zeYUhyjgLkP44Egv8t2RqfcOOhX2dHwajmgCeXwd7zPTb+g0 uyVI8VQBBmG/dCVrBAjKSuqXuq2aDn/Ioc1UlSx0xj3BHWUkzsLZe8p6ig2Jjrvg2sWx 5rHQ== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=7suzKwatlHr9M7xGO4UQp1KUv/TEhtWrQAPSE+rrWZo=; b=gdJGqbztkRmiT2LhMiE94T9t9Sx6mVPRo05lqmKsuxlmrFq5ofRlP7lt+Y0Pu1faIm xUFDTB5zTH8cH/JTYewAFD1gdz+UzXNZDbAVkLvuhiDPJVwJwctIt9a58THawQIKL0pu gSgSyt7rvmPRrBCe12ov2pHWtMk4kCdNMwM0caDmuusy+PpkC46Av1qo895jH0nH+Wyd j9g60FPaIghgq18QUrhEONe4+k/ZLcp1gDqkFOF8tOZ5BE6JJZkfFm+f5Lju2p2j3JZr R1W/LJl9GakzFKwIDpHxsq14t7GmOZQ+J3/mnST1+5mQVpwLofQzibUfmtVa6BiOpClQ 0LzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=nl6b4mFH; 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 n15-v6si14956381pgi.537.2018.10.02.12.40.30; Tue, 02 Oct 2018 12:40:45 -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=pass header.i=@sifive.com header.s=google header.b=nl6b4mFH; 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 S1727271AbeJCCZI (ORCPT + 99 others); Tue, 2 Oct 2018 22:25:08 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35340 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbeJCCZI (ORCPT ); Tue, 2 Oct 2018 22:25:08 -0400 Received: by mail-pg1-f193.google.com with SMTP id v133-v6so439353pgb.2 for ; Tue, 02 Oct 2018 12:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=7suzKwatlHr9M7xGO4UQp1KUv/TEhtWrQAPSE+rrWZo=; b=nl6b4mFHsmqjSB4PwRcBn9itnYvHC/2M35mVZYfBwax5a+F23wBYnUZVzTV8xnXN62 BxhZwaj/9+FhD3jH0nh9mC3hhwXkeezBz0B25TONHu7xKHcohvuvLddtMRZxbOC+gbYC DAUKkQgEQtydcQvzeSMRz6ZuxYNSf9Q/7PBCMqrQC0wt8nwa148rIWOc8TgBvqB+n/Lm PPSIgkZwTl1Kl+SrVUZDZbk5ZEGIT0EDKQPK2/t7Z/RaaIBJHKVNRMlzfykDe616uAIY QIUmvhIEpDqXK88iOParrKaGHvDaJ7eeGf5VpMhigfyS8fRQezdldXeu/pY+cexYvnXY my5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=7suzKwatlHr9M7xGO4UQp1KUv/TEhtWrQAPSE+rrWZo=; b=Wqo+sA3LcaeUnlt19JNagUs+a9RiMM6G4rhuE7DnmYGkWJNO6Ilt+TW23jB1po4yZS dQ+8gmSjL8h6jjM7X0S4fcX/v/UBGy5lvBtDKbkyIOC1Vi4+DncSv0uMGxOl64sLWBfJ emsTRrCfB7QrCciF2jbXKcEeX7nMsMTXXcoRLnam22KQZ9EqJpccNdUSJYKl2VF86qoJ jTxiWtnrBzXHgDtR0TB7UUwN3zzLWjtG0y3heC2mnE8OdbsAhu4VXNCcAEw3USZkCDrm sacvxUur+78NE3t5NY/INOHsbPUSmexcnuiAlxHSJxjXfzr8NwR3p/f3S0+WxgmL1fw9 EGyw== X-Gm-Message-State: ABuFfojUIbtCRt7XNDmRckLxzk1u6OISVhWiMMCizAMCBs6CUW89mgFF 7/cJXOQw1B6DA0cAvOLTbCky0QilldM= X-Received: by 2002:a65:4849:: with SMTP id i9-v6mr15341070pgs.350.1538509209554; Tue, 02 Oct 2018 12:40:09 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id 64-v6sm7681043pfq.10.2018.10.02.12.40.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 12:40:08 -0700 (PDT) Date: Tue, 02 Oct 2018 12:40:08 -0700 (PDT) X-Google-Original-Date: Tue, 02 Oct 2018 12:39:57 PDT (-0700) Subject: Re: [PATCH v6 00/14] SMP cleanup and new features In-Reply-To: <1538507707-22299-1-git-send-email-atish.patra@wdc.com> CC: linux-riscv@lists.infradead.org, anup@brainfault.org, Christoph Hellwig , linux-kernel@vger.kernel.org, atish.patra@wdc.com From: Palmer Dabbelt To: atish.patra@wdc.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 02 Oct 2018 12:14:53 PDT (-0700), atish.patra@wdc.com wrote: > 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(-) These are on my "next-smp" branch, and will land in for-next as soon as it's done regenerating. I've replaced the "next-cleanups" branch. Thanks!