From owner-svn-src-head@freebsd.org Fri Oct 9 14:45:42 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 83D653FCD1C; Fri, 9 Oct 2020 14:45:42 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C79qB2pznz4TgM; Fri, 9 Oct 2020 14:45:42 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3FB8E1AE79; Fri, 9 Oct 2020 14:45:42 +0000 (UTC) (envelope-from mhorne@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 099EjfKb025071; Fri, 9 Oct 2020 14:45:41 GMT (envelope-from mhorne@FreeBSD.org) Received: (from mhorne@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 099EjfFf025070; Fri, 9 Oct 2020 14:45:41 GMT (envelope-from mhorne@FreeBSD.org) Message-Id: <202010091445.099EjfFf025070@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mhorne set sender to mhorne@FreeBSD.org using -f From: Mitchell Horne Date: Fri, 9 Oct 2020 14:45:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366574 - head/sys/riscv/conf X-SVN-Group: head X-SVN-Commit-Author: mhorne X-SVN-Commit-Paths: head/sys/riscv/conf X-SVN-Commit-Revision: 366574 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2020 14:45:42 -0000 Author: mhorne Date: Fri Oct 9 14:45:41 2020 New Revision: 366574 URL: https://svnweb.freebsd.org/changeset/base/366574 Log: RISC-V LINT kernel config Create the RISC-V NOTES and LINT files. As of r366559, LINT configs are no longer generated but checked in to the tree. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D26502 Added: head/sys/riscv/conf/LINT (contents, props changed) head/sys/riscv/conf/NOTES (contents, props changed) Added: head/sys/riscv/conf/LINT ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/riscv/conf/LINT Fri Oct 9 14:45:41 2020 (r366574) @@ -0,0 +1,4 @@ +# $FreeBSD$ + +include "../../conf/NOTES" +include NOTES Added: head/sys/riscv/conf/NOTES ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/riscv/conf/NOTES Fri Oct 9 14:45:41 2020 (r366574) @@ -0,0 +1,96 @@ +# +# NOTES -- Lines that can be cut/pasted into kernel and hints configs. +# +# This file contains machine dependent kernel configuration notes. For +# machine independent notes, look in /sys/conf/NOTES. +# +# $FreeBSD$ +# + +cpu RISCV + +makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols +makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support + +options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. +options KDTRACE_FRAME # Ensure frames are compiled in +options KDTRACE_HOOKS # Kernel DTrace hooks +options DDB_CTF # Kernel ELF linker loads CTF data +options FPE # Floating-point extension support +options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default +options INTRNG # Include INTRNG framework + +# RISC-V SBI console +device rcons + +# EXT_RESOURCES pseudo devices +options EXT_RESOURCES +device clk +device phy +device regulator +device syscon +device syscon_power +device riscv_syscon + +# Backlight subsystem +device backlight + +# VirtIO support +device virtio # Generic VirtIO bus (required) +device virtio_pci # VirtIO PCI device +device vtnet # VirtIO Ethernet device +device virtio_blk # VirtIO Block device +device virtio_mmio # VirtIO MMIO bus +device virtio_random # VirtIO Entropy device + +# NOTE: dtrace introduces CDDL-licensed components into the kernel +device dtrace # dtrace core +device dtraceall # include all dtrace modules + +# Serial (COM) ports +device uart_lowrisc # lowRISC UART driver +device uart_ns8250 # ns8250-type UART driver + +# RTC +device goldfish_rtc # QEMU RTC + +# Ethernet drivers +device xae # Xilinx AXI Ethernet MAC + +# DMA support +device xdma # DMA interface +device axidma # Xilinx AXI DMA Controller + +# SPI +device xilinx_spi # Xilinx AXI Quad-SPI Controller + +# SOC-specific +device fe310aon +device fu540spi +files "../sifive/files.sifive" + +# Flattened Device Tree +options FDT +makeoptions MODULES_EXTRA+="dtb/sifive" + +# FreeBSD/riscv didn't exist for these releases +nooptions COMPAT_FREEBSD4 +nooptions COMPAT_FREEBSD5 +nooptions COMPAT_FREEBSD6 +nooptions COMPAT_FREEBSD7 +nooptions COMPAT_FREEBSD9 +nooptions COMPAT_FREEBSD10 +nooptions COMPAT_FREEBSD11 + +# No support for remote GDB +nooptions GDB + +# riscv doesn't support inb/outb, so disable chipset probing which needs it +nooptions PPC_PROBE_CHIPSET + +# Makes assumptions about bus tags that aren't true on riscv +nodevice snd_cmi + +# Don't yet have hwpmc(4) +nodevice hwpmc +nooptions HWPMC_HOOKS