From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E337C282C4 for ; Tue, 12 Feb 2019 11:11:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE2C02184A for ; Tue, 12 Feb 2019 11:11:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="qvqUoYwH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729399AbfBLLLM (ORCPT ); Tue, 12 Feb 2019 06:11:12 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:42875 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729255AbfBLLKd (ORCPT ); Tue, 12 Feb 2019 06:10:33 -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=1549969889; x=1581505889; h=from:to:cc:subject:date:message-id; bh=Ygj8maI0lqiZee0HQRoDREeYciIeU77A8sNRqIHAMqI=; b=qvqUoYwHItt7pZTDMYY6Lx75MPr0xsiChZyu+WoBh8D4F8vFDDSSbNqB TlGZ4bK3YlBK2MKNmiP08VbuDmh1eqOJyXWBxYQFHSA2lYEOCRsm5X8KH fGLFfvoaT4xtwKhl0MJo7OZdnMTmn5SCwjBcz6K6EJtFzYv+VkMATFX4a E7OVEtm+UMMwgQcDltMeY3IXpkAZXJf8T2FRvjgTdrWxmmElv8pgagn/v 6XPuvSxYOkNlThGfdJ8pX8qYLLHixmrKNt6fjtNDB5TlEiwK9fWtOHFbs bKVzMDM6QwsDkx4uoRm8wzTF01SDiTCKjSMWW6Pv4/7jcHE5pog2HLRE8 A==; X-IronPort-AV: E=Sophos;i="5.58,361,1544457600"; d="scan'208";a="199201824" 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; 12 Feb 2019 19:11:09 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 12 Feb 2019 02:50:56 -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; 12 Feb 2019 03:10:20 -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 , Johan Hovold , linux-kernel@vger.kernel.org, Marc Zyngier , Palmer Dabbelt , Paul Walmsley , Rob Herring , Thomas Gleixner Subject: [v4 PATCH 0/8] Various SMP related fixes Date: Tue, 12 Feb 2019 03:10:04 -0800 Message-Id: <1549969812-22502-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 + 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 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 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 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 ++++++++++++++++--- drivers/clocksource/timer-riscv.c | 23 +++++++++++++++++++--- drivers/irqchip/irq-sifive-plic.c | 5 +++++ 8 files changed, 86 insertions(+), 44 deletions(-) -- 2.7.4