Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1105842imj; Thu, 7 Feb 2019 17:53:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IZPolRxshZkZWTvAXtn9VvTmJE72LtGhfHxMahomIrW9WHkih/lrS0liqQzNNewRZkK2b5w X-Received: by 2002:a62:931a:: with SMTP id b26mr20187192pfe.65.1549590802608; Thu, 07 Feb 2019 17:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549590802; cv=none; d=google.com; s=arc-20160816; b=SXYeXuMCrxsvvwkiNrsSgLXTM4BhYnEOQerI5w4NOf/Wog6hRh+R0kJ9Ykw+3/jS6R bEVjtc23X3F9XhOerXk9ay3X+MQdn/DR0PWGHgH2hmKKLERQ9Epukl/iQAB5K0s1+zaL AiUDXmppkNjEcXLtG0k3C+5/rnabqe7t1eSa1LBM/3L0JLHBs5qABaunXTwZr6p2bnMR keEYRXiE19SkrtGFDr8moHgNLPYUJ037JFIzvNBR4LOKIhmGqmzcOIyNy/7sWsUrp4mJ 4chIrvDxjtXBlbOWLCeyybJHavSOjCdzlnJ+FBenz+BU2tW6X1oE3FtvTE465zM5tNJA w+8A== 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=CAGMdJxWf+zTX3egWF/E0WE+uqnVJPQznPFWjZMoLd4=; b=0nDYu2FJWIfikwFSFitCwr2qCi5DvoeJFg4Zzl1awB+CnH3Zs4ISmtqWz9om97wEH/ bliAluLaS+NeuS4QgB0nELKlCrA9vF2YJBcqCC/RYPGpLtZQODDFwJvOc8jeer3q+7LT YynPfiRKSL0Qoid/6jBal51en8pI/6ujiCFJsk4IT+D3B8WdaDBG7JJm3vBXcXLv4YFU Y4wYyCLbqyjGJOacup+4jn5EifcyPUWVMJW5cbzxH1KlpKkYUwhJK5CZnIrhMI8GJAqA VRUeRSrNb1v9qKEZAXheEKAserH6gXyCID9Rb5GF28EKNbcI0pD2kXHP4tIo0Znzu6ZR 54QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=kmfCsVtV; 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 f34si734070ple.280.2019.02.07.17.53.07; Thu, 07 Feb 2019 17:53:22 -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=kmfCsVtV; 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 S1727180AbfBHBvf (ORCPT + 99 others); Thu, 7 Feb 2019 20:51:35 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:13327 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726876AbfBHBvf (ORCPT ); Thu, 7 Feb 2019 20:51:35 -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=1549590695; x=1581126695; h=from:to:cc:subject:date:message-id; bh=ekA27SFnkSXYPCaYcQ+ZFq+nJ4ufZt1MgKQdXNWxxgQ=; b=kmfCsVtV1ujjQCLo/lySEVxQEGUbHGhxHr7PIuM2udJ7r0XKrd00289H eA1ex66zPJyRHGlDTayeWti9Z31LP9wjn79zZvQg1YntTh7Z43xBwY3Tv hjpSeW/Z566D10sulJJEqZfWPyLk9ZP78Qa3GuAWWMtn1Y4HqJfQIY6kg XCE3VIv8/7icAPiXWPsdmqhI0wuT2x8JXuLi+cTg91XoT58s9haSHt09t eAgxQTzmndiaTn3IfPfOjuO94djhvv1soYU+yzrCaGy7yRzib/1osSmwt uFD4v9kfdKjwplFf2NpLr8xhPOda74iYHWIiFG9Q6q/2MzKukjVqeTgjU A==; X-IronPort-AV: E=Sophos;i="5.58,346,1544457600"; d="scan'208";a="100752776" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 08 Feb 2019 09:51:35 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 07 Feb 2019 17:32:18 -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; 07 Feb 2019 17:51:35 -0800 From: Atish Patra To: linux-riscv@lists.infradead.org Cc: Atish Patra , Alan Kao , Albert Ou , Andreas Schwab , Anup Patel , Daniel Lezcano , Dmitriy Cherkasov , Jason Cooper , linux-kernel@vger.kernel.org, Marc Zyngier , Palmer Dabbelt , =?UTF-8?q?Patrick=20St=C3=A4hlin?= , Paul Walmsley , Thomas Gleixner , Zong Li , Damien Le Moal Subject: [v3 PATCH 0/8] Various SMP related fixes Date: Thu, 7 Feb 2019 17:51:13 -0800 Message-Id: <1549590681-24125-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. The patch series is based on 5.0-rc5. Tested on QEMU and HiFive Unleashed board using both OpenSBI & BBL. 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 hartd id 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 (8): 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. clocksource/drivers/riscv: Add required checks during clock source init irqchip/irq-sifive-plic:: Check and continue in case of an invalid cpuid. RISC-V: Assign hwcap only according to boot cpu. arch/riscv/include/asm/smp.h | 14 ++++++++--- arch/riscv/kernel/cpu.c | 4 --- arch/riscv/kernel/cpufeature.c | 52 +++++++++++++++++++++++++++------------ arch/riscv/kernel/setup.c | 9 ------- arch/riscv/kernel/smp.c | 10 +++++++- arch/riscv/kernel/smpboot.c | 20 ++++++++++++--- drivers/clocksource/timer-riscv.c | 23 ++++++++++++++--- drivers/irqchip/irq-sifive-plic.c | 5 ++++ 8 files changed, 98 insertions(+), 39 deletions(-) -- 2.7.4