Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1815814imc; Fri, 22 Feb 2019 11:43:42 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibki5lwDSV/1Zh00hKVE7UqlcStL7KncAmUol/8hrVsOF0IlHkAQmZRT4dzi6a+p+ojj3yY X-Received: by 2002:a17:902:7d89:: with SMTP id a9mr5713234plm.33.1550864622163; Fri, 22 Feb 2019 11:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550864622; cv=none; d=google.com; s=arc-20160816; b=DXPAzgwMEli+9zr8PUep8LqzeXnEobsiuVQDe6d+T5Z0ZyaXF6ZVG0BqH9jLX30owh VhKy2C4VfpzwPfnG+eJ7+ous4XB2DgiGpJzdx7Q53Rj5UFAm6TzOn4COkk+H59bJic73 7QwTl/+CdvJrZmlsSf+006agcY2Tr6JuiXIxunUC/cbrI2m8z2sUDOQ6QPppLKet2fWF ZrNLRLoErS4SHFFrO1OBHR0Gc9Jieyx4I+FawKt5ihzymVJbHcv/Na4Czr3FN0DxxpoG tWXzVplWhw8/LWN+kzNTPRvYHh57W1TZfzhVQClc/DW7XuKPVMgmnHzF7wsNUQv6JiFM l8dg== 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=N+xyWjDJb8ip1qPAAviL2KZ6pUBKJMmqiITOTqJcVG8=; b=N0RkSfV4sop5T3wmu/L+fypnnLf+pN0keEE1/ARrRUxHArieqL7JY6qSDUrA9mVsYD n2di3MeUNTnC2OnWfEyvqHjMF73okBw9PMVS5KrIyzb0Ne/9PniTehHVvl8YiICSMJrS d4v7rU3VfslLMwQa+BF7SUEbiwrkaJ6y5PCRhCfe5/V7DjHkKoN/JeijvXXZSxDjlcFE BYgfDZa258LRE5ZNwVICV14wn/LR8U6BwmO7XpNnO5K1gUw0lb8KG8/zBLlzwNHe4xgt F8uWG4qYTcYP50LRt571DVTPDw+nAiylCsmY1S2w2+s0zFtREyPfDOgl3lLqOfqBo0DE Mr1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=e3XwWCyI; 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 z3si1680558pfa.121.2019.02.22.11.43.26; Fri, 22 Feb 2019 11:43:42 -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=e3XwWCyI; 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 S1726525AbfBVTlo (ORCPT + 99 others); Fri, 22 Feb 2019 14:41:44 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:9380 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfBVTlo (ORCPT ); Fri, 22 Feb 2019 14:41:44 -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=1550864504; x=1582400504; h=from:to:cc:subject:date:message-id; bh=wb0dw4T5YMS0q07wWKgtgtrcUdnKjfeD2XfS99Hk2IU=; b=e3XwWCyIA4JWcB2ooNn2wx7De/sSq10Zh9WVOwbr2RALHqLl1xonUsnI aoctuXpLXuP3rj46ifzCWxmZwbvLDMo9sCtyrgjCXNOac6jwKn60nlEsn 5Pa5r48Vi1bTWPZN18Ecgiav8m9aOQUvKigcAaAS6+ImV4MlBdPuRSOSd I36YhWq3ABIJjLnwKhNXvg1Inp+Kdk+JPWmiO1wtQKGXLQhnfJyY+tSPP 7ehFYz//9sgKm8btjAFoThT5gY48zxWcTRLtUZdbUf1OpiV9AqC4exo/v 6/bExBdc3kBOlke4Om0YYT9neqokVItwu9fJdsi4JUIuLZg8SXvBBso10 A==; X-IronPort-AV: E=Sophos;i="5.58,400,1544457600"; d="scan'208";a="103727132" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 23 Feb 2019 03:41:44 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 22 Feb 2019 11:22:03 -0800 Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip01.wdc.com with ESMTP; 22 Feb 2019 11:41:44 -0800 From: Atish Patra To: linux-riscv@lists.infradead.org Cc: Atish Patra , Alan Kao , Albert Ou , Andreas Schwab , Anup Patel , Dmitriy Cherkasov , Johan Hovold , linux-kernel@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Thomas Gleixner Subject: [v6 PATCH 0/6] Various SMP related fixes Date: Fri, 22 Feb 2019 11:41:34 -0800 Message-Id: <1550864500-13652-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-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(-) -- 2.7.4