Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6097169imu; Wed, 26 Dec 2018 15:10:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vh1V9Zcl3q69R6s7xJRYc5I+z+PEDfi0QS9CDPZujJi1s6Lo7WtPnRmvs/w1UR20hIhvna X-Received: by 2002:a62:1a44:: with SMTP id a65mr22321780pfa.30.1545865817083; Wed, 26 Dec 2018 15:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545865817; cv=none; d=google.com; s=arc-20160816; b=WEF02fTvBsvivbsY6pNTb6WkfwU65PYB6FGGof4/1IyTl6fz+DDbTXbCYSQnVivpdX 1iaiivnrXM/inztZGd97hpCGoPzvnfs+mj+aLd384rpJjb3oloDKfF3wnN+75gNiTr8G wGj3VkXnZHbEMWzwBD6YI8rH5Nelqq3OyOxN0xbVaD64zXncl4beBQA2MccnucnEH89B FBzU9TFs/B79DloajBoaO7Urxz3JWTjIBl56uGGRyupAMBcjsnLZZf7dA1vBFXrfaJgD tWhhZlZGdwXTGP2f2/Ps88Fs+c/9JoANGT3GeOPf+yqM3x5W5FkuVurYdp1Jo0mBfoKY WSAA== 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=ML7lSG0LaNlL7XLJ+0zoEHwsY86ZMOt9iftscf8EvZE=; b=Vlc0h0T4QePLW5XWni7yY9KaR4Kj42D/7+7Fh0HBuQ2rukk+aWzvcCZLtpWORlazzB frZdz326nOV065t+r7RK2pkMhlwVG/8nYHvnR69enVscmscmqI02hvlvJ/70C4Rio0Z5 VYsJ4mAH3T4Ixi4ovTTRNpylw9ttrjAIZA9gWUTJ+kDLzC04PHMIdcgPlJsQ6km4Ql60 9DffX4DM7dQIS6Stt216NJcoPsMBr5IJqA++u3QPkuld0AyHmT2b/VDrX5S8J1G6o0nG 8PWRZmcYoRnFKz1+jrgfROlWsSCa8MoKoE6IzuYbrc2xKAoZ1NWhMmBBDzPT4YjgF/bA AfSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=a4ymj2uP; 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 z6si32076599pln.66.2018.12.26.15.10.01; Wed, 26 Dec 2018 15:10:17 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=a4ymj2uP; 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 S1727397AbeLZXJH (ORCPT + 99 others); Wed, 26 Dec 2018 18:09:07 -0500 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:20021 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbeLZXJH (ORCPT ); Wed, 26 Dec 2018 18:09:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1545865747; x=1577401747; h=from:to:cc:subject:date:message-id; bh=D2ricm/sbPYel2rJ3/2ozWijyVugQCb4BhRoHhAiq5Y=; b=a4ymj2uPlQKUMjth2/rBc0NMCPiUy/wouaJ4znBYr2NSpae3Q5PQ1Bml nyWutOq+5D4BwEeos6mM3rX7E+e+4RxBCdAtVgNrz75QlJ2kb2Wer6sQd +Dq5bKktKE5kUNFY8ErblOqyw+WpcI5nKKJ5y77CV97jZIdkwiWycHw0Z YretJXAVJqHqaYXUUcowIm5bK26j2HpyzSjRrYSC/ovjDys8k+inw8Ge5 ggLbnRiTfgDaQbwa90r1E3mSZItR6IcmIaQk45V9KHDqHVnpP+QvjPhhs Jpq2BqFSKiF12NIzKPVVoX6n5WCEHVRs/yndezFIQ+oV2INeib1jx0ko9 w==; X-IronPort-AV: E=Sophos;i="5.56,401,1539619200"; d="scan'208";a="98702972" 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; 27 Dec 2018 07:09:07 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 26 Dec 2018 14:49:51 -0800 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; 26 Dec 2018 15:09:07 -0800 From: Atish Patra To: linux-riscv@lists.infradead.org Cc: Atish Patra , Albert Ou , Anup Patel , Daniel Lezcano , Dmitriy Cherkasov , Jason Cooper , linux-kernel@vger.kernel.org, Marc Zyngier , Michael Clark , Palmer Dabbelt , =?UTF-8?q?Patrick=20St=C3=A4hlin?= , Rob Herring , Thomas Gleixner , Damien Le Moal Subject: [PATCH 0/3] Non-smp configuration fix Date: Wed, 26 Dec 2018 15:08:58 -0800 Message-Id: <1545865741-22795-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 The existing upstream kernel doesn't boot for non-smp configuration. This patch series address various issues with non-smp configurations. Tested on QEMU and HiFive Unleashed board. Atish Patra (3): RISC-V: Do not wait indefinitely in __cpu_up RISC-V: Move cpuid to hartid mapping to SMP. RISC-V: Fix non-smp kernel boot on SMP systems arch/riscv/include/asm/smp.h | 13 +++++++++++-- arch/riscv/kernel/cpu.c | 4 ---- arch/riscv/kernel/setup.c | 2 ++ arch/riscv/kernel/smp.c | 1 - arch/riscv/kernel/smpboot.c | 19 ++++++++++++++++--- drivers/clocksource/riscv_timer.c | 21 ++++++++++++++++++--- drivers/irqchip/irq-sifive-plic.c | 5 +++++ 7 files changed, 52 insertions(+), 13 deletions(-) -- 2.7.4