Received: by 10.223.176.5 with SMTP id f5csp1087030wra; Wed, 7 Feb 2018 12:26:02 -0800 (PST) X-Google-Smtp-Source: AH8x226KPFvRTlDO/yVDmfUemFY7z377jUJHiMicc/Qe/1W0dGRRWoQq/ASht/KwZsNLc+lmWVKQ X-Received: by 2002:a17:902:14d:: with SMTP id 71-v6mr7258853plb.42.1518035162271; Wed, 07 Feb 2018 12:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518035162; cv=none; d=google.com; s=arc-20160816; b=NXW7zXXUp8fpL82m0uUKKEuQH8HEoOJkFhHXVupgzTjzDNQNN0hLN02XzBmvtM5mJa CElOwlv2VNR/w6gKrN4cTgTnrRLIulJH65ar5Ud1lop03N7P8k9dH9kChqpC+IGtfmBO wZbDfHEVyg8fZg5hlzxMzEEfThxojaRP3Ga1Gyxdlip7dPDV1oFuBRZOxM5HutI5WBSY vJFlRJBuiC+1qbzj5CWp8LlUos4Yi4zvxOeEF8jViY+AQG3aoDfNxjlhqoplYlpuK1wp 28ond7JN3jLNLxJu6MAocFqgIsfkfaklBcSrbRdk8QM+EePGL8iaYggyUFMk9GXTkp8J LIBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=LQ0+a9TV+aJVi+F1XxErQ/hgbDZnjIyZYs54gcB7uvM=; b=XO7Ipei3gwH93zl65JpoFncZCUWC6p/9bhryN0jt7/ecrfwkhVcaYsjtR/ZBV46E20 0SVe8jWBqIrpdpVMyO1aaX5O6YBGYFvEAk5nhabm0OLBq5XuUDbP0B9K6zZrMoEJJKco wKE+Q+B+0+KbyRTamB+9uyXqtcrZk7djeeftQ+pAV0bgxxYc5FRmcOCyuWjcGWtZvdSK Vm8/Fxs2DOYrVAddfbvlYQAdO1K9kQ4QsTfWyfqAUpPP61754QkShDMH6hsP0PcODFlJ Bl18+jXX50Nz4FjNTFGLZB/vAZ3U87V9HZzgMt2uUSZU1ehz2RooctRW4zW/8iJ9DGWm 946g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CX41jxve; 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 q61-v6si1592298plb.183.2018.02.07.12.25.48; Wed, 07 Feb 2018 12:26:02 -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=pass header.i=@sifive.com header.s=google header.b=CX41jxve; 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 S932078AbeBGUZC (ORCPT + 99 others); Wed, 7 Feb 2018 15:25:02 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:36219 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754696AbeBGUY7 (ORCPT ); Wed, 7 Feb 2018 15:24:59 -0500 Received: by mail-pl0-f68.google.com with SMTP id v3-v6so744303plg.3 for ; Wed, 07 Feb 2018 12:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=LQ0+a9TV+aJVi+F1XxErQ/hgbDZnjIyZYs54gcB7uvM=; b=CX41jxvew+sUH27T3xfFUhWWgP661SdZA9Bgl+GUPe2eELNjSscbZLjKBox0sonM9L 9sU+jyqU9fR4AxDHsz+c8yWwMwuxSiNMpN74keiW069nsOB9h8cK5McZxEHKuVhuVHn2 psn5UZVa6Xnf00dPKHg0N9DZpJkud+6SZg6bzi/qwAi29CqT6CZ8UndpTFkSeOMgDsji ksB2SyoQIO3rAY8H2HFC5xV3WU1ou8Hnj/YKRZqsh9TQYTNxQVgwZi/YGg6fD+opx/TK kbmr19MdmVMFVGz6C/2d/quRHAxdKnS8aVhXlQc4MNtliOAhlXK8tZNuDuUpU0nH/y5f kCqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=LQ0+a9TV+aJVi+F1XxErQ/hgbDZnjIyZYs54gcB7uvM=; b=fDhm+RPE5jGBf2IzDe3DVj7BYZIumqsoAxeXFj4vk3NXHcj69cyc8zgU9CEYvociP+ rvo7jWFJOfpRbWOJf88VunI2NjOgkzLqNXU7OttiQmXXKGMoRaKbvuIyuhOQXUF6ziGi UShXFZ1xyQ4lQAlrkeQOvPHDP4mJN8PsDqROC4farvllfw8DlalP2x8iweW9LVKi71wT 7YJTAOGSM8HiyqObytin7WqhV+zvZWh4iXLTDDqYQqj+YRZd5K8Lc3GtBaWJwiJxk5Hg thDU24wS2JJzdHZXvyl//BIRzV4KUpfdB+gCbykYRNvdJtIC5D7B3hkUeamlIJCdB5iZ y0MQ== X-Gm-Message-State: APf1xPBoNKN0xkvXQ77daq2C+N5R3xCAQ5l9evzoZMgP9hvUH1iy9K0P 39qxMz1p+QAk0ISTNOawImlqaA== X-Received: by 2002:a17:902:7889:: with SMTP id q9-v6mr7137047pll.114.1518035098218; Wed, 07 Feb 2018 12:24:58 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id r10sm3394813pfh.127.2018.02.07.12.24.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 12:24:57 -0800 (PST) Date: Wed, 07 Feb 2018 12:24:57 -0800 (PST) X-Google-Original-Date: Wed, 07 Feb 2018 12:24:55 PST (-0800) Subject: Re: [GIT PULL] RISC-V changes for 4.16 In-Reply-To: CC: Linus Torvalds , linux-riscv@lists.infradead.org, patches@groups.riscv.org From: Palmer Dabbelt To: linux-kernel@vger.kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding linux-kernel, which I forgot. Sorry! On Wed, 07 Feb 2018 09:58:15 PST (-0800), Palmer Dabbelt wrote: > The following changes since commit d8a5b80568a9cb66810e75b182018e9edb68e8ff: > > Linux 4.15 (2018-01-28 13:20:33 -0800) > > are available in the git repository at: > > ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux.git tags/riscv-for-linus-4.16-merge_window > gpg: Signature made Tue 30 Jan 2018 07:16:17 PM PST > gpg: using RSA key 00CE76D1834960DFCE886DF8EF4CA1502CCBAB41 > gpg: issuer "palmer@dabbelt.com" > gpg: Good signature from "Palmer Dabbelt " [ultimate] > gpg: aka "Palmer Dabbelt " [ultimate] > > for you to fetch changes up to 4889dec6c87d90619cc1e8436327b91f4bb0e467: > > riscv: inline set_pgdir into its only caller (2018-01-30 19:16:17 -0800) > > ---------------------------------------------------------------- > RISC-V changes for 4.16 > > This tag contains the fixes we'd like to target for the 4.16 merge > window. It's not as much as I was originally hoping to do but between > glibc, the chip, and FOSDEM there just wasn't enough time to get > everything put together. As such, this merge window is essentially just > going to be small changes. This includes mostly cleanups: > > * A build fix failure to the audit test cases. RISC-V doesn't have > renameat because the generic syscall ABI moved to renameat2 by the > time of our port. The syscall audit test cases don't understand this, > so I added a trivial fix. This went through mailing list review > during the 4.15 merge window, but nobody has picked it up so I think > it's best to just do this here. > * The removal of our command-line argument processing code. The > "mem_end" stuff was broken and the rest duplicated generic device tree > code. The generic code was already being called. > * Some unused/redundant code has been removed, including > __ARCH_HAVE_MMU, current_pgdir, and the initialization of init_mm.pgd. > * SUM is disabled upon taking a trap, which means that user memory is > protected during traps taking inside copy_{to,from}_user(). > * The sptbr CSR has been renamed to satp in C code. We haven't changed > the assembly code in order to maintain compatibility with binutils > 2.29, which doesn't understand the new name. > > Additionally, we're adding some new features: > > * Basic ftrace support, thanks to Alan Kao! > * Support for ZONE_DMA32. This is necessary for all the normal reasons, > but also to deal with a deficiency in the Xilinx PCIe controller we're > using on our FPGA-based systems. While the ZONE_DMA32 addition should > be sufficient for most uses, it doesn't complete the fix for the > Xilinx controller. > * TLB shootdowns now only target the harts where they're necessary, > instead of applying to all harts in the system. > > These patches have all been sitting on our linux-next branch for a while > now. Due to time constraints this is all I feel comfortable submitting > during the 4.16 merge window, hopefully we'll do better next time! > > ---------------------------------------------------------------- > Alan Kao (1): > riscv/ftrace: Add basic support > > Andrew Waterman (1): > RISC-V: Limit the scope of TLB shootdowns > > Christoph Hellwig (6): > riscv: disable SUM in the exception handler > riscv: add ZONE_DMA32 > riscv: remove the unused current_pgdir function > riscv: don't read back satp in paging_init > riscv: rename sptbr to satp > riscv: inline set_pgdir into its only caller > > Michael Clark (1): > RISC-V: Remove duplicate command-line parsing logic > > Palmer Dabbelt (2): > audit: Avoid build failures on systems without renameat > RISC-V: Remove mem_end command line processing > > Tobias Klauser (2): > riscv: remove unused __ARCH_HAVE_MMU define > riscv: remove redundant unlikely() > > arch/riscv/Kconfig | 10 +++ > arch/riscv/include/asm/Kbuild | 1 - > arch/riscv/include/asm/csr.h | 14 ++-- > arch/riscv/include/asm/ftrace.h | 10 +++ > arch/riscv/include/asm/mmu_context.h | 17 ++--- > arch/riscv/include/asm/tlbflush.h | 20 +++--- > arch/riscv/include/asm/unistd.h | 1 - > arch/riscv/kernel/Makefile | 7 ++ > arch/riscv/kernel/entry.S | 9 ++- > arch/riscv/kernel/ftrace.c | 41 +++++++++++ > arch/riscv/kernel/head.S | 6 +- > arch/riscv/kernel/mcount.S | 126 ++++++++++++++++++++++++++++++++++ > arch/riscv/kernel/setup.c | 44 +++--------- > arch/riscv/kernel/vdso.c | 2 +- > arch/riscv/mm/fault.c | 4 ++ > arch/riscv/mm/init.c | 12 ++-- > include/asm-generic/audit_dir_write.h | 2 + > 17 files changed, 250 insertions(+), 76 deletions(-) > create mode 100644 arch/riscv/include/asm/ftrace.h > create mode 100644 arch/riscv/kernel/ftrace.c > create mode 100644 arch/riscv/kernel/mcount.S