Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2677269imb; Mon, 4 Mar 2019 11:07:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwqUqesQcEj8zEOZrrLkyVGvrrAmrrtDOzSYnms3q9ATChFH+G+kpBNxTBS3MlV9tIbCg6X X-Received: by 2002:a62:1283:: with SMTP id 3mr21903571pfs.122.1551726470247; Mon, 04 Mar 2019 11:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551726470; cv=none; d=google.com; s=arc-20160816; b=HYDPx0YIKtmjeSUyB6D4CoMr0m+OHrY2H21YWilgfKadXl5j+23bPcZNU2LUnk/qc/ /PNYn/FzqJJE3dQcc/DNjlKbqwQyQkugwjzVemvFCFEVfzfpYN2BT3MARJNzYV2kWsGK cCZhY4doBKPm/SFBYpM2rJ094YfsT0UB+x+FSWsX/bJ+eJcaEaLUrcwLUGk+9O+mIlxc KVsP6eL+eQ096aAe5vNlvUF6VhcvGZD2iytMDoijBPMJlS9WF30sLuwIXuieU0U2/LTC RzGv1Ug8+VBZ6aihWGo/nGGYYgGnW0AvonFt1e0aLokQCei/xGQ9VpJxFPzQpsjNDmqN nZiQ== 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=fsyumd3cYkUPXCx3sxWWz65F7VdbF/BpDrgSmoCGI7E=; b=NCe95EQ/pyPAdZpAEv3uq+GgInkZjkkCP4YgITv4RzmDwpVLAeFvfekZSLJz0kosQ5 MFWdurlnvpDkgH1XfGaHD11UkoCZMQfqE9U7OPz+hAWk7iJXo5+etmulEP6uMvrk+vyr QG6sLCNLcuD9fu/uU4f4JSfgLl5xnfY3khbiGdqUJyYTINLLepq1IpM6TGml5+ZXUhcU 0Oqua2r8C170qFpDmK/RUUKgpxa2HkJ28BqZ+M1OnMZHjWjG4Al2FyhQ3AM/JiAATVXB ag32cDteqNWtiThKaPhbP6qip67WywFVp6ylAVY+X9JhpbeHlP/4BPX883pl0H4uRhK2 l2HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SNRrPeiP; 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 a23si5991803pls.338.2019.03.04.11.07.33; Mon, 04 Mar 2019 11:07:50 -0800 (PST) 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=SNRrPeiP; 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 S1727438AbfCDTGm (ORCPT + 99 others); Mon, 4 Mar 2019 14:06:42 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33903 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbfCDTGk (ORCPT ); Mon, 4 Mar 2019 14:06:40 -0500 Received: by mail-pf1-f193.google.com with SMTP id u9so3687089pfn.1 for ; Mon, 04 Mar 2019 11:06:39 -0800 (PST) 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=fsyumd3cYkUPXCx3sxWWz65F7VdbF/BpDrgSmoCGI7E=; b=SNRrPeiPmCZ40ZCzXnA5d+cPrKqQUjOSDWFH7Ft8rbQh9PqVBJFNLOvMLKBxfm9ho2 HrEg/VRhgzZ89iNdAToXKZpM/WI/EmRjYuHtzr5YG1OSN2kaIINfe85IZSysD3ntI29l ja2BV/ouYIFt6NIXPA2QLXswoJIqaNR2Wpoby/IpkDF4yMpQG3h2J9HIrndu5xi0TkEX tNsdPf9f+eUiUaabj6o0pWfP70yKEDyaRGQWxiqKlSu0ic+8FMqEXw6kSS/dBRlmQ1LI 4DkYzgQfJIp6lY0PCsejNqNDFFLzF/yQf5lIQZju1Siirn3pjDyzeh6XAI5jIJGTvzJK P2Pw== 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=fsyumd3cYkUPXCx3sxWWz65F7VdbF/BpDrgSmoCGI7E=; b=hRLrNJEp7jqnsm88520Oe6W5Yk2MEDbF6Om1ZFAi9pUpRlA+SSyM1oJOy6bm1T4ErH RTjKTWA3aX2Foaj+64wbaZI3DNrjnXuHbU1QKXkhmQ8JBSeHW0jglUXO9nuryFgitpwJ y7DB840gWoWiLDXsQPGMBTMlY0oE9YShwAa63i+JWMH0sds9cArpgg+sFJVj04m5TCva FfvW5qoTE+ZS10Wjr0loa0YwZtEnOA7RdkdJkO67oOfhN0dGwNqsjmfBM9nxEkTbhvL3 /3JltvFFmWreJvC9dVIFrTGPq2Ezr+IxAovFc+nt6dCnfiOySGZTV0PwdKvgcaFaycM+ saxw== X-Gm-Message-State: AHQUAuacPPS06ZJPpKa6TUo8i6YMNvGt3qVIo1wUbhsui/rGPRbja+xr BGyDBKDDZ/HZ5r6xJTZAMAhm9DJr8E8= X-Received: by 2002:a62:6453:: with SMTP id y80mr21207844pfb.203.1551726398577; Mon, 04 Mar 2019 11:06:38 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id f192sm12087077pfc.180.2019.03.04.11.06.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 11:06:37 -0800 (PST) Date: Mon, 04 Mar 2019 11:06:37 -0800 (PST) X-Google-Original-Date: Mon, 04 Mar 2019 11:06:35 PST (-0800) Subject: Re: [v6 PATCH 0/6] Various SMP related fixes In-Reply-To: <1550864500-13652-1-git-send-email-atish.patra@wdc.com> CC: linux-riscv@lists.infradead.org, atish.patra@wdc.com, alankao@andestech.com, aou@eecs.berkeley.edu, schwab@suse.de, anup@brainfault.org, dmitriy@oss-tech.org, johan@kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , tglx@linutronix.de 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 Fri, 22 Feb 2019 11:41:34 PST (-0800), atish.patra@wdc.com wrote: > The existing upstream kernel doesn't boot for non-smp configuration. > This patch series address various issues with non-smp configurations. > > The patch series is based on 5.0-rc7 + Johan's below mentioned patch > series. Tested on both QEMU and HiFive Unleashed board using both > OpenSBI & BBL. > > https://lore.kernel.org/lkml/20190118140308.9599-1-johan@kernel.org/ > > Changes from v5->v6 > 1. Dropped driver patches as they have been accepted via drivers tree. > > Changes from v4->v5 > 1. Continue processing other harts even if isa string is incorrect for > a single hart during HWCAP processing. > > Changes from v3->v4 > 1. Fixed commit text length issues. > 2. Updated hwcap patch to use common capabilities of all harts. > 3. Rebased on Johan's patch series. > > Changes from v2->v3 > > 1. Fixed spurious white space. > 2. Added lockdep for smpboot completion variable. > 2. Added a sanity check for hwcap. > > Changes from v1->v2 > > 1. Move the cpuid to hartid map to smp.c from setup.c > 2. Split 3rd patch into several small patches based on > logical grouping. > 3. Added a new patch that fixes an issue in hwcap query. > 4. Changed the title of the patch series. > > Atish Patra (6): > RISC-V: Do not wait indefinitely in __cpu_up > RISC-V: Move cpuid to hartid mapping to SMP. > RISC-V: Remove NR_CPUs check during hartid search from DT > RISC-V: Allow hartid-to-cpuid function to fail. > RISC-V: Compare cpuid with NR_CPUS before mapping. > RISC-V: Assign hwcap as per comman capabilities. > > arch/riscv/include/asm/smp.h | 18 +++++++++++++----- > arch/riscv/kernel/cpu.c | 4 ---- > arch/riscv/kernel/cpufeature.c | 41 ++++++++++++++++++++++------------------- > arch/riscv/kernel/setup.c | 9 --------- > arch/riscv/kernel/smp.c | 10 +++++++++- > arch/riscv/kernel/smpboot.c | 20 +++++++++++++++++--- > 6 files changed, 61 insertions(+), 41 deletions(-) I've taken this v6 into for-next, thanks!