Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp832269yba; Wed, 15 May 2019 10:41:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPNYDswInsz8xSy2+8KBq7oMOh+iSQRq2esfVpWStZ4nKC3tFu/nOXkskniIXipBqBIZzL X-Received: by 2002:aa7:8f2f:: with SMTP id y15mr38187333pfr.124.1557942073255; Wed, 15 May 2019 10:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557942073; cv=none; d=google.com; s=arc-20160816; b=Hz13uumZlpPtUk9sv49AFGreP1L1vnXjO3ZScoqe8IQIQ7oChIdpxKU4jEwuhZacZk p65KTcpzwogGTaG7GfeO0nBZpKDBNpvjTxLBw8ARP9jSSa9qmYIorTPTk4flSC/ayRmT elehInGT4PQtbVtu6pLvz+PSv1dFuTly2N/givPCR5Ze/bTCInmDS4wlNZofhnERm8I+ sUNvjJ1Gpu4LiXzJ8U4nspQjk4L51z25kG68WNDZQ+m5gZlHlUmPb6vChDHrGfghxL5f uLebqrUhQ/NV7vxN0md8i4xHB0pPIsoEykKsMIdRK68l/RfSj6hAEKxzsCXqBXkgeA+B zcdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:to:from:cc:subject:date; bh=OyqkAInMJ4afJyiF2nb2YB2wdpcRhAB6c/71WOYyPas=; b=Eb708VrAV1ilhxXF7bTPEtdNp/dnwEZlLJJlE+4l/3s6MD5LonnDGPobaIBUbZ3SXB uDZBMnUIXQdbT6GiMPMxb1Vjfd4Vu6KrR40OzM5qy/4C7eBhw6AxjYOfFROcHxmyrSK2 tYUwYD9IKJytnTZhg5jhvWAbQ8uDRLmHagXolw8m8CPP/C8FE2rEpC2B8UDrLt0aMNRd kBcnL2WgangeFVsyTGSLRpJustU6N3xHWMeETOlcoZ1rGYOg/BYEOhLxQKN9cvbiptHn WjeWBsnrOADs9BYE6+oLUz2s9qT0QpTc/FEuMroIfAeX/st80769dkqokucHxHUd9zTZ XqdQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j15si2559857pfi.8.2019.05.15.10.40.57; Wed, 15 May 2019 10:41:13 -0700 (PDT) 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; 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 S1726842AbfEORjx (ORCPT + 99 others); Wed, 15 May 2019 13:39:53 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44525 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfEORjw (ORCPT ); Wed, 15 May 2019 13:39:52 -0400 Received: by mail-pl1-f193.google.com with SMTP id c5so199640pll.11 for ; Wed, 15 May 2019 10:39:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:cc:from:to:message-id; bh=OyqkAInMJ4afJyiF2nb2YB2wdpcRhAB6c/71WOYyPas=; b=h2TiBIUd9T8geImxIN/sm5NZfWgzAsl4xr9UBeUV1OMK5YHWPb5SGj1tTIRSxv0fp0 6xACpgnG2TaC07XJnwh8SBvDJOfupVXaVOWwWe+2IqVEwcxG86VP2YKNji1p3MqsovpN 0095UdkuSRAuCeO0yXNYHAs56Xb1C/nA+IZEU/E9hmfegIWDoLnAiE76bfafzGKfz4QM jMDeA4tXs5Nun1RQs/+PySPnp/UQ8+blyFXGPaVFpXJcCj5eDy3uDgbtyxJR7EMsN3U+ YOfZ7XOlXH1PGchds37VeMLIkUxJBCk5L4OyOLVoKOPp4PWA0TAylndUUPpdJEvEWM6R 0mPQ== X-Gm-Message-State: APjAAAVoVTSRRHE2fZpgeoFK8l1iTs7gP/bii1Z8EpzGoQt8XWMozeL8 4PvPLR4sKWoSLSZPPa5wK0M7ZEaA+uA= X-Received: by 2002:a17:902:bd95:: with SMTP id q21mr8947972pls.159.1557941990986; Wed, 15 May 2019 10:39:50 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id m123sm5011080pfm.39.2019.05.15.10.39.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 May 2019 10:39:50 -0700 (PDT) Date: Wed, 15 May 2019 10:39:50 -0700 (PDT) X-Google-Original-Date: Wed, 15 May 2019 10:39:46 PDT (-0700) Subject: [GIT PULL] RISC-V Patches for the 5.2 Merge Window, Part 1 CC: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: Linus Torvalds Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following changes since commit 085b7755808aa11f78ab9377257e1dad2e6fa4bb: Linux 5.1-rc6 (2019-04-21 10:45:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux.git tags/riscv-for-linus-5.2-mw0 for you to fetch changes up to e23fc917f04ffac8c156fdb4ee8b56f3867fa50b: RISC-V: Avoid using invalid intermediate translations (2019-05-08 15:06:18 -0700) ---------------------------------------------------------------- RISC-V Patches for the 5.2 Merge Window, Part 1 This patch set contains an assortment of RISC-V related patches that I'd like to target for the 5.2 merge window. Most of the patches are cleanups, but there are a handful of user-visible changes: * The nosmp and nr_cpus command-line arguments are now supported, which work like normal. * The SBI console no longer installs itself as a preferred console, we rely on standard mechanisms (/chosen, command-line, hueristics) instead. * sfence_remove_sfence_vma{,_asid} now pass their arguments along to the SBI call. * Modules now support BUG(). * A missing sfence.vma during boot has been added. This bug only manifests during boot. I've only tested this on QEMU again, as I didn't have time to get things running on the Unleashed. The latest master from this morning merges in cleanly and passes the tests as well. ---------------------------------------------------------------- Anup Patel (4): RISC-V: Use tabs to align macro values in asm/csr.h RISC-V: Add interrupt related SCAUSE defines in asm/csr.h RISC-V: Access CSRs using CSR numbers tty: Don't force RISCV SBI console as preferred console Atish Patra (4): RISC-V: Add RISC-V specific arch_match_cpu_phys_id RISC-V: Implement nosmp commandline option. RISC-V: Support nr_cpus command line option. RISC-V: Fix minor checkpatch issues. Christoph Hellwig (11): riscv: use asm-generic/extable.h riscv: turn mm_segment_t into a struct riscv: remove unreachable big endian code riscv: remove CONFIG_RISCV_ISA_A riscv: clear all pending interrupts when booting riscv: simplify the stack pointer setup in head.S riscv: cleanup the parse_dtb calling conventions riscv: remove unreachable !HAVE_FUNCTION_GRAPH_RET_ADDR_PTR code riscv: remove duplicate macros from ptrace.h riscv: print the unexpected interrupt cause riscv: call pm_power_off from machine_halt / machine_power_off Gary Guo (3): riscv: move flush_icache_{all,mm} to cacheflush.c riscv: move switch_mm to its own file riscv: fix sbi_remote_sfence_vma{,_asid}. Guo Ren (1): riscv/signal: Fixup additional syscall restarting Nick Desaulniers (1): riscv: vdso: drop unnecessary cc-ldoption Palmer Dabbelt (1): RISC-V: Avoid using invalid intermediate translations Vincent Chen (3): riscv: support trap-based WARN() riscv: Add the support for c.ebreak check in is_valid_bugaddr() riscv: Support BUG() in kernel module arch/riscv/Kconfig | 6 +- arch/riscv/Makefile | 5 +- arch/riscv/include/asm/Kbuild | 1 + arch/riscv/include/asm/bug.h | 35 ++++++---- arch/riscv/include/asm/cacheflush.h | 2 +- arch/riscv/include/asm/csr.h | 123 ++++++++++++++++++++++------------- arch/riscv/include/asm/elf.h | 6 -- arch/riscv/include/asm/futex.h | 13 ---- arch/riscv/include/asm/irqflags.h | 10 +-- arch/riscv/include/asm/mmu_context.h | 59 +---------------- arch/riscv/include/asm/ptrace.h | 21 ++---- arch/riscv/include/asm/sbi.h | 19 ++++-- arch/riscv/include/asm/thread_info.h | 4 +- arch/riscv/include/asm/uaccess.h | 28 +++----- arch/riscv/kernel/asm-offsets.c | 3 - arch/riscv/kernel/cpu.c | 3 +- arch/riscv/kernel/entry.S | 22 +++---- arch/riscv/kernel/head.S | 33 ++++++---- arch/riscv/kernel/irq.c | 19 ++---- arch/riscv/kernel/perf_event.c | 4 +- arch/riscv/kernel/reset.c | 15 +++-- arch/riscv/kernel/setup.c | 6 +- arch/riscv/kernel/signal.c | 6 ++ arch/riscv/kernel/smp.c | 61 +++-------------- arch/riscv/kernel/smpboot. | 0 arch/riscv/kernel/smpboot.c | 22 ++++++- arch/riscv/kernel/stacktrace.c | 14 ++-- arch/riscv/kernel/traps.c | 30 ++++++--- arch/riscv/kernel/vdso/Makefile | 2 +- arch/riscv/mm/Makefile | 1 + arch/riscv/mm/cacheflush.c | 61 +++++++++++++++++ arch/riscv/mm/context.c | 69 ++++++++++++++++++++ arch/riscv/mm/fault.c | 6 +- drivers/tty/hvc/hvc_riscv_sbi.c | 1 - 34 files changed, 390 insertions(+), 320 deletions(-) create mode 100644 arch/riscv/kernel/smpboot. create mode 100644 arch/riscv/mm/context.c