Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1274318yba; Thu, 16 May 2019 18:12:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEkdDh+oK8vUkEzoKMJo7wgRvzHN3hk/GpJI4R+MAa/9a5OA1f/QXn6nQHf93QtHzLqwYX X-Received: by 2002:a17:902:ac1:: with SMTP id 59mr53695977plp.294.1558055559692; Thu, 16 May 2019 18:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558055559; cv=none; d=google.com; s=arc-20160816; b=d8zSTnxjMPotC0WTMyomkGwnJLqs6qudmyE6xqwqY9w5nIiR0RnbaDUtSV+CuOUuxT p7Tnszsb05sJnqR1Ed1Bpp9g9jGkOfvgqN1fxeSRS3ESvJtz8MjjMf2H3YTHB1508lvs F5NwKtRQyhPKdGruZ5Okmw8v+ZlciHvQeL3qdagePs7jHY9vdKWwf5rn+5buGbw9xb6S wAPkVFciHMaqt1OiwFcci58+nSBFc9RIwonYMSYzz50quPlS0n48RK6X+6QTLjrvYI5G zsr+fydwCAyO2LuJIhYBN4iChxUtite5EuFE2rjH02kXWj4ToCOXQP2smy1V4dcU34ac xXMg== 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=jUqvnYGakfbu3X+S19cL7CMuDFcJHkA4STcR5kbvbv4=; b=vybJ11s/Ctjzhn7lh6Tc7tN3HwQcOoy9WbwZGT8AUcC8wj0eHnEgagHEQaN6iKSa/Z UIGAwaQ8tGfZHIAX3SIh3yDC5FZBe6m2jrcMEwZ/TgL6IQvlv2xHu71P3aO6FH234Uio CS2eetIsPCw0VBOGbb6HgCszhZF/CGKHyZwu4qoysq29FOUDHE4N2pYskgcgEVk3pd5i Z7yFoRUNiumdJGO2d7N6j5sPUtcWrBngHMOFow8CFOdGIMoHD3uiRlhdqEQj66qyA5VO DMkEZiXLoRILV4JR9/9wXfwxFhVbHq2kQ0n5qaNrcDXER9OJ1xpUNhO1bgv5j/Cm+2SG EIbQ== 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 t19si6575959pgv.91.2019.05.16.18.12.24; Thu, 16 May 2019 18:12:39 -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 S1726913AbfEQA1h (ORCPT + 99 others); Thu, 16 May 2019 20:27:37 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38759 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbfEQA1g (ORCPT ); Thu, 16 May 2019 20:27:36 -0400 Received: by mail-pf1-f195.google.com with SMTP id b76so2717480pfb.5 for ; Thu, 16 May 2019 17:27:36 -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=jUqvnYGakfbu3X+S19cL7CMuDFcJHkA4STcR5kbvbv4=; b=XUVM3nuth2dSoRdQsvLH/QH2/XPE3o+1s7zYCcVUxPw42UwqUirKGmm93npNKEbWxp oIgljOoiu0BDCQyBtsvBmaP+kaAKScz8x2rPpTbC+W9sIlAOqmxkZJorfr9J3nb4W6Yq tXz0x5MrDTyw4Z0VUHO1IBamv8+Q4+lD2e8FaoKG+xufSphdmjzETPVbydV915aD8oxO 2EhCtdqw1U84tYK86xTOBCXeDD1skjBZIIgI4++fnvXJ7n/sH5pvlP9Kn2k1BNchtCfE aNpmR/tufJhKI8MNLh+PLvZPagwyXTobsmw+5q4NHFYIGoWAuT2sIJhmpt9I4md4CkdP MGRw== X-Gm-Message-State: APjAAAXN2pzPwuceOwPKy/QMHTvofinyJDypYGmdoj5SU5eq6HSWStks AdFFv0wdXuH7X5JpI/gTDOj60Q== X-Received: by 2002:a63:1354:: with SMTP id 20mr52472775pgt.356.1558052855801; Thu, 16 May 2019 17:27:35 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id z125sm10673250pfb.75.2019.05.16.17.27.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 17:27:35 -0700 (PDT) Date: Thu, 16 May 2019 17:27:35 -0700 (PDT) X-Google-Original-Date: Thu, 16 May 2019 17:23:56 PDT (-0700) Subject: [GIT PULL] RISC-V Patches for the 5.2 Merge Window, Part 1 v2 CC: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.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-mw1 for you to fetch changes up to 81eba518d95f43d9f81ed5eb6dd9edb4179687aa: RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs (2019-05-15 18:40:14 -0700) ---------------------------------------------------------------- RISC-V Patches for the 5.2 Merge Window, Part 1 v2 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. * The arch/riscv support for SiFive's L2 cache controller has been merged, which should un-block the EDAC framework work. 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. This patch set rebased my "5.2 MW, Part 1" patch set which includes an erronous empty file. That patch set has not been merged. ---------------------------------------------------------------- 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 Yash Shah (2): RISC-V: Add DT documentation for SiFive L2 Cache Controller RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs .../devicetree/bindings/riscv/sifive-l2-cache.txt | 51 ++++++ 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/sifive_l2_cache.h | 16 ++ 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.c | 22 ++- arch/riscv/kernel/stacktrace.c | 14 +- arch/riscv/kernel/traps.c | 30 +++- arch/riscv/kernel/vdso/Makefile | 2 +- arch/riscv/mm/Makefile | 2 + arch/riscv/mm/cacheflush.c | 61 +++++++ arch/riscv/mm/context.c | 69 ++++++++ arch/riscv/mm/fault.c | 6 +- arch/riscv/mm/sifive_l2_cache.c | 175 +++++++++++++++++++++ drivers/tty/hvc/hvc_riscv_sbi.c | 1 - modules.builtin.modinfo | Bin 0 -> 46064 bytes 37 files changed, 633 insertions(+), 320 deletions(-) create mode 100644 Documentation/devicetree/bindings/riscv/sifive-l2-cache.txt create mode 100644 arch/riscv/include/asm/sifive_l2_cache.h create mode 100644 arch/riscv/mm/context.c create mode 100644 arch/riscv/mm/sifive_l2_cache.c create mode 100644 modules.builtin.modinfo