Author: br
Date: Tue May 26 16:40:40 2020
New Revision: 361532
URL: https://svnweb.freebsd.org/changeset/base/361532
Log:
Rename dmar_get_dma_tag() to acpi_iommu_get_dma_tag().
This is needed for a new IOMMU controller support.
Reviewed by: kib
Differential Revision:https://rev
Author: br
Date: Tue May 26 16:44:05 2020
New Revision: 361533
URL: https://svnweb.freebsd.org/changeset/base/361533
Log:
Fix entering KDB with dtrace-enabled kernel.
Reviewed by: markj, jhb
Differential Revision:https://reviews.freebsd.org/D24018
Modified:
head/sys/cddl/dev/d
added)
+++ head/sys/arm64/coresight/coresight_cmd.cTue Jun 9 15:56:41 2020
(r361968, copy of r361967, head/sys/arm64/coresight/coresight-cmd.c)
@@ -0,0 +1,156 @@
+/*-
+ * Copyright (c) 2018 Ruslan Bukin
+ * All rights reserved.
+ *
+ * This software was developed by SRI International and
Author: br
Date: Tue Jun 9 16:06:10 2020
New Revision: 361969
URL: https://svnweb.freebsd.org/changeset/base/361969
Log:
Fix style: wrap long lines.
Sponsored by: DARPA, AFRL
Modified:
head/sys/arm64/coresight/coresight.c
Modified: head/sys/arm64/coresight/coresight.c
=
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/arm64/coresight/coresight_etm4x_acpi.c Tue Jun 9 16:43:16
2020(r361974)
@@ -0,0 +1,79 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2020 Ruslan Bukin
Author: br
Date: Tue Jun 9 17:07:42 2020
New Revision: 361976
URL: https://svnweb.freebsd.org/changeset/base/361976
Log:
Similar to UART on ThunderX2, the ARM Coresight (ETM component)
set ResourceProducer on memory resources: ignore it.
Tested on ARM N1SDP board.
Sponsored by: DARP
(r362011)
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2018 Ruslan Bukin
+ * Copyright (c) 2018-2020 Ruslan Bukin
* All rights reserved.
*
* This software was developed by BAE Systems, the University of Cambridge
@@ -43,9 +43,6 @@ __FBSDID("$FreeBSD$");
#include
#include
Author: br
Date: Wed Jun 10 14:39:54 2020
New Revision: 362012
URL: https://svnweb.freebsd.org/changeset/base/362012
Log:
All the ARM Coresight interconnect devices set ResourceProducer on memory
resources, ignore it.
The devices found in the ARM Neoverse N1 System Development Platform
/coresight_dynamic_replicator.c)
@@ -0,0 +1,172 @@
+/*-
+ * Copyright (c) 2018 Ruslan Bukin
+ * All rights reserved.
+ *
+ * This software was developed by BAE Systems, the University of Cambridge
+ * Computer Laboratory, and Memorial University under DARPA/AFRL contract
+ * FA8650-15-C-7558 ("CADETS&
acpi.c Fri Jun 12 13:59:58
2020(r362099)
@@ -0,0 +1,79 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2020 Ruslan Bukin
+ *
+ * This software was developed by SRI International and the University of
+ * Cambridge Computer Laboratory (Department of Computer Sc
dded: head/sys/arm64/coresight/coresight_replicator.h
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/arm64/coresight/coresight_replicator.h Fri Jun 12 17:31:38
2020(r362109)
@@ -0,0 +1,46 @@
+/*-
+ * Copyright (c) 2020 Ruslan Bukin
+ * All
Author: br
Date: Fri Oct 13 15:02:29 2017
New Revision: 324598
URL: https://svnweb.freebsd.org/changeset/base/324598
Log:
o Support for Kabylake CPU PMCs (fall down to PMC_CPU_INTEL_SKYLAKE).
o Fix bugs in events descriptions for Skylake, Skylake Xeon and Haswell.
Reviewed by: kib
Spon
Author: br
Date: Tue Oct 24 16:28:00 2017
New Revision: 324959
URL: https://svnweb.freebsd.org/changeset/base/324959
Log:
Extract a set of pmcstat functions and interfaces to the new internal
library -- libpmcstat.
This includes PMC logging module, symbols lookup functions,
ELF parsing,
Author: br
Date: Sun Nov 12 23:13:04 2017
New Revision: 325747
URL: https://svnweb.freebsd.org/changeset/base/325747
Log:
Add Intel Processor Trace (PT) MSRs.
Sponsored by: DARPA, AFRL
Modified:
head/sys/x86/include/specialreg.h
Modified: head/sys/x86/include/specialreg.h
==
Author: br
Date: Fri Nov 17 17:54:10 2017
New Revision: 325952
URL: https://svnweb.freebsd.org/changeset/base/325952
Log:
Add Intel Processor Trace registers for:
- CPUID
- Table of Physical Addresses (ToPA).
Sponsored by: DARPA, AFRL
Modified:
head/sys/x86/include/specialreg.h
Modi
Author: br
Date: Wed Nov 22 14:10:58 2017
New Revision: 326092
URL: https://svnweb.freebsd.org/changeset/base/326092
Log:
o Invalidate the correct page in pmap_protect().
With this bug fix we don't need to invalidate all the entries.
o Remove a call to pmap_invalidate_all(). This was never
Author: br
Date: Fri Feb 7 14:36:28 2020
New Revision: 357653
URL: https://svnweb.freebsd.org/changeset/base/357653
Log:
Fix xae(4) driver attachement on the Government Furnished Equipment (GFE)
riscv cores.
GFE cores come with standard DTS file that lacks standard 'dmas ='
property, w
Author: br
Date: Sat Feb 8 21:02:20 2020
New Revision: 357682
URL: https://svnweb.freebsd.org/changeset/base/357682
Log:
Fix a KASSERT since chained mbufs are accepted by the xdma bounce
buffer loader. m_copydata() will copy entire chain to a single buffer.
Sponsored by: DARPA, AFRL
Mod
Author: br
Date: Sat Feb 8 23:07:29 2020
New Revision: 357686
URL: https://svnweb.freebsd.org/changeset/base/357686
Log:
Enter the network epoch in the xdma interrupt handler if required
by a peripheral device driver.
Sponsored by: DARPA, AFRL
Modified:
head/sys/dev/altera/atse/if_ats
:09 2020
(r357762)
@@ -0,0 +1,350 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Andrew Turner
+ * Copyright (c) 2019 Ruslan Bukin
+ *
+ * This software was developed by SRI International and the University of
+ * Cambridge Computer Laboratory (Department of
Author: br
Date: Fri Jun 29 10:55:42 2018
New Revision: 335793
URL: https://svnweb.freebsd.org/changeset/base/335793
Log:
Include UART driver since it is now provided in QEMU.
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/conf/GENERIC
Modified: head/sys/riscv/conf/GENERIC
=
Author: br
Date: Tue Jul 3 10:51:59 2018
New Revision: 335887
URL: https://svnweb.freebsd.org/changeset/base/335887
Log:
Add GCC 8.1.0 compiler warning flags.
Sponsored by: DARPA, AFRL
Modified:
head/share/mk/bsd.sys.mk
Modified: head/share/mk/bsd.sys.mk
===
Author: br
Date: Tue Jul 3 13:53:54 2018
New Revision: 335888
URL: https://svnweb.freebsd.org/changeset/base/335888
Log:
o Ensure va_list is declared by including stdarg.h.
o Also move printf.h to go after it since it does require declaration
of va_list.
This fixes build with latest
On Tue, Jul 03, 2018 at 10:56:48AM +, Mark Linimon wrote:
> On Tue, Jul 03, 2018 at 10:51:59AM +0000, Ruslan Bukin wrote:
> > Add GCC 8.1.0 compiler warning flags.
>
> I'm sorry, but that is a "what" not a "why".
>
> As someone who
Author: br
Date: Tue Jul 3 14:32:15 2018
New Revision: 335889
URL: https://svnweb.freebsd.org/changeset/base/335889
Log:
Fix build: utf8strvisx() does signed data comparisons, but 'char' type
is unsigned in riscv GCC, so use guaranted signed char type.
Sponsored by: DARPA, AFRL
Modified
On Tue, Jul 03, 2018 at 07:57:00AM -0700, John Baldwin wrote:
> On 7/3/18 6:53 AM, Ruslan Bukin wrote:
> > Author: br
> > Date: Tue Jul 3 13:53:54 2018
> > New Revision: 335888
> > URL: https://svnweb.freebsd.org/changeset/base/335888
> >
> > Log:
> >
Author: br
Date: Tue Jul 3 15:48:34 2018
New Revision: 335893
URL: https://svnweb.freebsd.org/changeset/base/335893
Log:
Revert 335888 ("Ensure va_list is declared by including stdarg.h.")
The issue was caused by header pollution brought by GCC 8.1.
We now have to remove include-fixed
On Tue, Jul 03, 2018 at 08:21:58AM -0700, John Baldwin wrote:
> On 7/3/18 8:02 AM, Ruslan Bukin wrote:
> > On Tue, Jul 03, 2018 at 07:57:00AM -0700, John Baldwin wrote:
> >> On 7/3/18 6:53 AM, Ruslan Bukin wrote:
> >>> Author: br
> >>> Date: Tue Jul
Author: br
Date: Wed Jul 18 11:31:15 2018
New Revision: 336455
URL: https://svnweb.freebsd.org/changeset/base/336455
Log:
Add a GCC 8.1 warning flag.
This is required to build ATF.
Sponsored by: DARPA, AFRL
Modified:
head/share/mk/bsd.sys.mk
Modified: head/share/mk/bsd.sys.mk
=
Author: br
Date: Thu Jul 19 12:56:54 2018
New Revision: 336480
URL: https://svnweb.freebsd.org/changeset/base/336480
Log:
Add a GCC 7.1.0 no-error warning flag.
This is required to build libdevdctl.
Note this flag is not required for GCC 8.1.0.
Sponsored by: DARPA, AFRL
Modified:
Author: br
Date: Thu Jul 19 13:02:29 2018
New Revision: 336482
URL: https://svnweb.freebsd.org/changeset/base/336482
Log:
PROFILE, TESTS and CXX build options are no longer broken for RISC-V.
Sponsored by: DARPA, AFRL
Modified:
head/share/mk/src.opts.mk
Modified: head/share/mk/src.opts.
Author: br
Date: Mon Jul 23 09:54:28 2018
New Revision: 336633
URL: https://svnweb.freebsd.org/changeset/base/336633
Log:
Fix setjmp for RISC-V:
o The correct value for _JB_SIGMASK is 27.
o The storage size for double-precision floating
point register is 8 bytes.
Submitted by: "Jame
Author: br
Date: Wed Jul 25 15:44:49 2018
New Revision: 336712
URL: https://svnweb.freebsd.org/changeset/base/336712
Log:
Remove unused string.
Reported by: markj@
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/riscv/swtch.S
Modified: head/sys/riscv/riscv/swtch.S
Author: br
Date: Wed Jul 25 16:07:35 2018
New Revision: 336716
URL: https://svnweb.freebsd.org/changeset/base/336716
Log:
Disable 'C'-compressed ISA extension.
It works excellent, but KDB disassembler and DTrace FBT provider for
RISC-V do lack support for it. They currently handle 4-byte
Author: br
Date: Thu Jul 26 14:15:04 2018
New Revision: 336738
URL: https://svnweb.freebsd.org/changeset/base/336738
Log:
Disable OFED for RISC-V: it does not build.
Sponsored by: DARPA, AFRL
Modified:
head/share/mk/src.opts.mk
Modified: head/share/mk/src.opts.mk
===
2015-2016 Ruslan Bukin
+ * Copyright (c) 2015-2018 Ruslan Bukin
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -41,7 +41,7 @@
#include
#defineTRAPF_PC(tfp) ((tfp)->tf_ra)
-#defineTRAPF_USERMODE(tfp) (((
Author: br
Date: Mon Jul 30 12:22:49 2018
New Revision: 336900
URL: https://svnweb.freebsd.org/changeset/base/336900
Log:
Disable VIMAGE on RISC-V.
Similar to r326179 ("Temporarily disable VIMAGE on arm64") creation of
if_lagg or epair on RISC-V results a kernel panic.
Sponsored by:
Author: br
Date: Thu Aug 2 12:08:52 2018
New Revision: 337125
URL: https://svnweb.freebsd.org/changeset/base/337125
Log:
o Correctly set user tls base: consider TP_OFFSET.
o Ensure tp (thread pointer) saved before copying the pcb.
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/ris
Author: br
Date: Thu Aug 2 12:12:13 2018
New Revision: 337126
URL: https://svnweb.freebsd.org/changeset/base/337126
Log:
o Don't overwrite tp in fork_trampoline().
o Save and restore tp in cpu_switch().
o Restore tp in cpu_throw().
o Save tp in savectx().
This makes libthr tests happ
Author: br
Date: Thu Aug 2 12:13:52 2018
New Revision: 337127
URL: https://svnweb.freebsd.org/changeset/base/337127
Log:
Don't overwrite tp in set_mcontext().
This makes libthr/swapcontext_test:swapcontext1 happy.
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/riscv/machdep.c
@@
/*-
- * Copyright (c) 2015 Ruslan Bukin
+ * Copyright (c) 2015-2018 Ruslan Bukin
* All rights reserved.
*
* This software was developed by SRI International and the University of
@@ -64,7 +64,7 @@ END(.rtld_start)
*/
ENTRY(_rtld_bind_start)
/* Save the arguments and ra */
- addisp, sp
Author: br
Date: Thu Aug 2 12:24:34 2018
New Revision: 337129
URL: https://svnweb.freebsd.org/changeset/base/337129
Log:
Implement pt_fpreg_to_ucontext(), pt_ucontext_to_fpreg().
Sponsored by: DARPA, AFRL
Modified:
head/lib/libthread_db/arch/riscv/libpthread_md.c
Modified: head/lib/lib
Author: br
Date: Fri Aug 3 12:16:02 2018
New Revision: 337237
URL: https://svnweb.freebsd.org/changeset/base/337237
Log:
Increase timeout for nop_test:stripesize.
It takes 49s to complete this test in QEMU/RISC-V.
Sponsored by: DARPA, AFRL
Modified:
head/tests/sys/geom/class/nop/no
Author: br
Date: Fri Aug 3 12:47:54 2018
New Revision: 337238
URL: https://svnweb.freebsd.org/changeset/base/337238
Log:
Replace __riscv__ with __riscv.
__riscv__ is not pre-defined anymore by latest version of GNU compiler.
Sponsored by: DARPA, AFRL
Modified:
head/contrib/netbsd-t
Author: br
Date: Fri Aug 3 16:05:03 2018
New Revision: 337264
URL: https://svnweb.freebsd.org/changeset/base/337264
Log:
MAXLOGNAME changed to 33 in r243023.
Update man pages.
Sponsored by: DARPA, AFRL
Modified:
head/lib/libc/sys/getlogin.2
head/lib/libc/sys/getloginclass.2
Modifie
@@
/*-
- * Copyright (c) 2015 Ruslan Bukin
+ * Copyright (c) 2015-2018 Ruslan Bukin
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -133,5 +133,8 @@ ENTRY(copyinstr)
sd a5, 0(a3) /* done = count */
4: mv a0, x0
Author: br
Date: Mon Aug 6 15:55:58 2018
New Revision: 337381
URL: https://svnweb.freebsd.org/changeset/base/337381
Log:
Increase timeout for timedmutex_test:mutex2, timedmutex_test:mutex3
tests.
Default value is 300. It takes ~310s to complete each of these tests
in QEMU/RISC-V.
Author: br
Date: Wed Aug 8 16:08:38 2018
New Revision: 337459
URL: https://svnweb.freebsd.org/changeset/base/337459
Log:
Implement uma_small_alloc(), uma_small_free().
Reviewed by: markj
Obtained from:arm64
Sponsored by: DARPA, AFRL
Differential Revision:https://revi
Author: br
Date: Mon Aug 13 16:07:18 2018
New Revision: 337712
URL: https://svnweb.freebsd.org/changeset/base/337712
Log:
Add RISC-V instructions encoding.
This is the output of
$ cat opcodes opcodes-rvc-pseudo opcodes-rvc opcodes-custom |
./parse-opcodes -c
It is confirmed by
16:03:03 2018
(r337763)
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2016 Ruslan Bukin
+ * Copyright (c) 2016-2018 Ruslan Bukin
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -41,232 +41,26 @@ __FBSDID("$FreeBSD$");
#include
Author: br
Date: Wed Mar 27 16:26:03 2019
New Revision: 345581
URL: https://svnweb.freebsd.org/changeset/base/345581
Log:
Grab timer frequency from FDT.
RISC-V timer has no dedicated DTS node and we have to get timer
frequency from cpus node.
Tested on Government Furnished Equipment
Author: br
Date: Tue Apr 2 12:02:35 2019
New Revision: 345796
URL: https://svnweb.freebsd.org/changeset/base/345796
Log:
o Grab the number of devices supported by PLIC from FDT.
o Fix bug in PLIC_ENABLE macro when irq >= 32.
Tested on the real hardware, which is HiFive Unleashed board.
Hi I just got this:
UART 16550 configured with options: baud = 115200 | freq = 5000
bbl loader
r vv
rrr
Author: br
Date: Wed Apr 24 13:41:46 2019
New Revision: 346633
URL: https://svnweb.freebsd.org/changeset/base/346633
Log:
Implement pic_pre_ithread(), pic_post_ithread().
Reviewed by: markj
Sponsored by: DARPA, AFRL
Differential Revision:https://reviews.freebsd.org/D19819
Modi
Author: br
Date: Wed Apr 24 13:44:30 2019
New Revision: 346634
URL: https://svnweb.freebsd.org/changeset/base/346634
Log:
Add support for Cadence network controller found in HiFive Unleashed board.
Reviewed by: markj
Sponsored by: DARPA, AFRL
Differential Revision:https://revie
Author: br
Date: Mon Apr 29 16:27:15 2019
New Revision: 346896
URL: https://svnweb.freebsd.org/changeset/base/346896
Log:
o Rewrite softdma_process_tx() of Altera SoftDMA engine driver
so it does not require a bounce buffer. The only need for this was
to align the buffer address. Impleme
Author: br
Date: Wed May 1 15:03:12 2019
New Revision: 346994
URL: https://svnweb.freebsd.org/changeset/base/346994
Log:
Deactivate IRQ resource by calling to intr_deactivate_irq().
This is the part of INTRNG support that was missed.
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/
Author: br
Date: Tue May 7 13:41:43 2019
New Revision: 347225
URL: https://svnweb.freebsd.org/changeset/base/347225
Log:
Provide a template for busdma code for RISC-V.
RISC-V ISA specifies no cache management instructions so leave cache
operations in cpufunc.h as no-op for now.
Note
Author: br
Date: Tue May 7 14:32:17 2019
New Revision: 347226
URL: https://svnweb.freebsd.org/changeset/base/347226
Log:
Disable interrupts first and then set spinlock_count to 1.
Otherwise interrupt can be generated just after setting spinlock_count
and before disabling interrupts.
Sp
-- head/sys/dev/xdma/xdma.cWed May 8 15:20:16 2019(r347336)
+++ head/sys/dev/xdma/xdma.cWed May 8 15:22:27 2019(r347337)
@@ -1,7 +1,8 @@
/*-
- * Copyright (c) 2016-2018 Ruslan Bukin
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
*
+ * Copyright (c) 2
file is newly added)
+++ head/sys/dev/xilinx/axidma.cWed May 8 15:43:17 2019
(r347344)
@@ -0,0 +1,648 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Ruslan Bukin
+ *
+ * This software was developed by SRI International and the University of
+ * Cambridge
Ruslan Bukin
+ *
+ * This software was developed by SRI International and the University of
+ * Cambridge Computer Laboratory (Department of Computer Science and
+ * Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the
+ * DARPA SSITH research programme.
+ *
+ * Redistri
Author: br
Date: Wed May 8 16:06:54 2019
New Revision: 347351
URL: https://svnweb.freebsd.org/changeset/base/347351
Log:
Connect Xilinx AXI drivers and Cadence Ethernet MAC to the RISC-V build.
Sponsored by: DARPA, AFRL
Modified:
head/sys/conf/files.riscv
head/sys/riscv/conf/GENERIC
Author: br
Date: Fri May 10 11:21:57 2019
New Revision: 347427
URL: https://svnweb.freebsd.org/changeset/base/347427
Log:
RISC-V ISA does not specify how to manage physical memory attributes (PMA).
So do nothing in pmap_page_set_memattr() and don't panic.
Reviewed by: markj
Sponsored b
Author: br
Date: Sun May 12 16:17:05 2019
New Revision: 347514
URL: https://svnweb.freebsd.org/changeset/base/347514
Log:
Add support for HiFive Unleashed -- the board with a multi-core RISC-V SoC
from SiFive, Inc.
The first core on this SoC (hart 0) is a 64-bit microcontroller.
o Pi
Author: br
Date: Wed Apr 12 10:34:50 2017
New Revision: 316728
URL: https://svnweb.freebsd.org/changeset/base/316728
Log:
Provide a NULL pointer to device tree blob so GENERIC kernel
can be compiled.
We will need to get pointer to DTB from hardware, so mark as TODO.
Sponsored by: DARPA,
Author: br
Date: Wed Apr 12 10:40:30 2017
New Revision: 316729
URL: https://svnweb.freebsd.org/changeset/base/316729
Log:
Disable fformat-extensions for RISC-V target as GCC 6.1 external compiler
has no support for that.
Sponsored by: DARPA, AFRL
Differential Revision:https://re
Author: br
Date: Wed Apr 12 10:45:19 2017
New Revision: 316730
URL: https://svnweb.freebsd.org/changeset/base/316730
Log:
Include RISC-V target to universe build.
Check if RISC-V external toolchain package is installed,
otherwise skip build.
Reviewed by: emaste
Sponsored by: DARPA
0x0 0x7f806000 0x0 0x10
- 0x0 0x7f806080 0x0 0x10
- 0x0 0x7f806100 0x0 0x10>;
- interrupts = <0 1 2 3 4>;
- hard-interrupt-sources = <64>;
- soft-interrupt-sources
This break RISC-V world build:
/home/br/obj//riscv.riscv64/usr/home/br/dev/freebsd-head/tmp/usr/lib/libprivatezstd.so:
undefined reference to `__bswap
si2'
/home/br/obj//riscv.riscv64/usr/home/br/dev/freebsd-head/tmp/usr/lib/libprivatezstd.so:
undefined reference to `__bswap
di2'
Here is patch t
Author: br
Date: Wed Apr 19 15:24:33 2017
New Revision: 317144
URL: https://svnweb.freebsd.org/changeset/base/317144
Log:
Don't use __builtin_bswap for RISC-V due to undefined reference
in compiler.
This unbreaks RISC-V world build.
Sponsored by: DARPA, AFRL
Modified:
head/contrib
On Wed, Apr 19, 2017 at 04:53:25PM +0200, Baptiste Daroussin wrote:
> On Wed, Apr 19, 2017 at 02:21:06PM +0000, Ruslan Bukin wrote:
> > This break RISC-V world build:
> > /home/br/obj//riscv.riscv64/usr/home/br/dev/freebsd-head/tmp/usr/lib/libprivatezstd.so:
> > undefined
Author: br
Date: Wed Apr 19 17:06:32 2017
New Revision: 317151
URL: https://svnweb.freebsd.org/changeset/base/317151
Log:
Follow r317061 "Remove struct vmmeter from struct pcpu"
with MD changes for RISC-V.
This unbreaks RISC-V build.
Sponsored by: DARPA, AFRL
Modified:
head/sys/ri
Author: br
Date: Thu Apr 27 22:40:39 2017
New Revision: 317530
URL: https://svnweb.freebsd.org/changeset/base/317530
Log:
Use unconditional jr (jump register) so cerror relocation offset fits.
This fixes libc build on riscv64sf.
Reviewed by: jhb
Sponsored by: DARPA, AFRL
Modified:
Author: br
Date: Tue Aug 14 16:22:14 2018
New Revision: 337767
URL: https://svnweb.freebsd.org/changeset/base/337767
Log:
Remove unused code.
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/include/riscvreg.h
Modified: head/sys/riscv/include/riscvreg.h
===
Author: br
Date: Tue Aug 14 16:26:44 2018
New Revision: 337769
URL: https://svnweb.freebsd.org/changeset/base/337769
Log:
Avoid repeated address calculation for malta_ap_boot.
Submitted by: "James Clarke"
Reviewed by: br, arichardson
Sponsored by: DARPA, AFRL
Differential Revision:
Author: br
Date: Tue Aug 14 16:29:10 2018
New Revision: 337771
URL: https://svnweb.freebsd.org/changeset/base/337771
Log:
Query MVPConf0.PVPE for number of CPUs.
Rather than hard-coding the number of CPUs to 2, look up the PVPE field
in MVPConf0, as the valid VPE numbers are from 0 to PVP
Author: br
Date: Fri Aug 31 16:15:46 2018
New Revision: 338409
URL: https://svnweb.freebsd.org/changeset/base/338409
Log:
Fix an integer overflow while setting the kernel address (MODINFO_ADDR).
This eliminates build warning and makes kldstat happy.
Approved by: re (marius)
Modified:
Copyright 2016 Ruslan Bukin
+ * Portions Copyright 2016-2018 Ruslan Bukin
*
* $FreeBSD$
*
@@ -42,8 +42,8 @@ __FBSDID("$FreeBSD$");
#include
#include
#include
+#include
#include
-#include
#include
#include
#include
@@ -77,7 +77,6 @@ dtrace_invop(uintptr_t addr, str
Author: br
Date: Mon Sep 3 14:43:16 2018
New Revision: 338445
URL: https://svnweb.freebsd.org/changeset/base/338445
Log:
Enable 'C'-compressed ISA extension.
This was disabled recently due to lack of support in KDB disassembler
and DTrace FBT provider. Support for 'C'-extension to both o
Author: br
Date: Wed Sep 5 09:53:55 2018
New Revision: 338466
URL: https://svnweb.freebsd.org/changeset/base/338466
Log:
Fix bug: compare uaddr to VM_MAXUSER_ADDRESS, not to a tmp value
left by SET_FAULT_HANDLER().
Approved by: re (kib)
Sponsored by: DARPA, AFRL
Modified:
head/sys/
/sys/riscv/include/asm.hWed Sep 5 11:34:58 2018
(r338467)
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2015 Ruslan Bukin
+ * Copyright (c) 2015-2018 Ruslan Bukin
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -62,5 +62,13
Author: br
Date: Wed Sep 12 08:05:33 2018
New Revision: 338608
URL: https://svnweb.freebsd.org/changeset/base/338608
Log:
Don't mark module data as static on RISC-V.
Similar to arm64, riscv compiler uses PC-relative loads/stores,
and with static data compiler does not emit relocations.
Author: br
Date: Wed Sep 12 08:12:34 2018
New Revision: 338609
URL: https://svnweb.freebsd.org/changeset/base/338609
Log:
Use elf_relocaddr() to find the address for R_RISCV_RELATIVE
relocation.
elf_relocaddr() has a hook to handle VIMAGE data addresses.
This fixes VIMAGE support for
Author: br
Date: Wed Sep 12 08:13:54 2018
New Revision: 338610
URL: https://svnweb.freebsd.org/changeset/base/338610
Log:
Enable VIMAGE support for RISC-V.
Approved by: re (gjb)
Sponsored by: DARPA, AFRL
Modified:
head/sys/riscv/conf/GENERIC
Modified: head/sys/riscv/conf/GENERIC
Author: br
Date: Mon Oct 1 16:16:05 2018
New Revision: 339064
URL: https://svnweb.freebsd.org/changeset/base/339064
Log:
Fix build with GCC 8.1.
GCC 8.1 failed to build LLVM's libc++ when -Wshadow is set,
so lower down WARNS flag to 3.
This is similar to dtc(1) which uses libc++ and
:00:00 1970 (empty, because file is newly added)
+++ head/sys/dev/uart/uart_dev_lowrisc.cFri Oct 12 15:19:41 2018
(r339330)
@@ -0,0 +1,393 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2018 Ruslan Bukin
+ * All rights reserved.
+ *
+ * This software was
Author: br
Date: Fri Oct 12 15:51:41 2018
New Revision: 339332
URL: https://svnweb.freebsd.org/changeset/base/339332
Log:
Initialize interrupt priority to 0 on all sources.
Without this hardware raises an interrupt regardless of any
pending bits set.
This fixes operation on RocketChi
Author: br
Date: Tue Oct 16 16:03:17 2018
New Revision: 339381
URL: https://svnweb.freebsd.org/changeset/base/339381
Log:
Invalidate TLB on a local hart.
This was missed in r339367 ("Various fixes for TLB management on RISC-V.").
This fixes operation on lowRISC.
Reviewed by: jhb
ap_t, vm_offset_t, pd_entry_t
*
#definepmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list))
+int pmap_fault_fixup(pmap_t, vm_offset_t, vm_prot_t);
+
#endif /* _KERNEL */
#endif /* !LOCORE */
Modified: head/sys/riscv/include/pte.h
=
-153,8 +153,6 @@ boolpmap_get_tables(pmap_t, vm_offset_t, pd_entry_t
*
#definepmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list))
-int pmap_fault_fixup(pmap_t, vm_offset_t, vm_prot_t);
-
#endif /* _KERNEL */
#endif /* !LOCORE */
Modified: head/sys/riscv/inclu
07 2018
(r339423)
@@ -1,6 +1,6 @@
/*-
* Copyright (c) 2014 Andrew Turner
- * Copyright (c) 2015-2016 Ruslan Bukin
+ * Copyright (c) 2015-2018 Ruslan Bukin
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -65,7 +65,7 @@ typedef u
On Thu, Oct 18, 2018 at 09:13:20AM -0600, Ian Lepore wrote:
> On Thu, 2018-10-18 at 15:08 +0000, Ruslan Bukin wrote:
> > Author: br
> > Date: Thu Oct 18 15:08:14 2018
> > New Revision: 339421
> > URL: https://svnweb.freebsd.org/changeset/base/339421
> &g
Author: br
Date: Fri Oct 26 12:27:07 2018
New Revision: 339774
URL: https://svnweb.freebsd.org/changeset/base/339774
Log:
o Add pmap lock around pmap_fault_fixup() to ensure other thread will not
modify l3 pte after we loaded old value and before we stored new value.
o Preset A(accessed),
Author: br
Date: Mon Mar 19 18:59:15 2018
New Revision: 331220
URL: https://svnweb.freebsd.org/changeset/base/331220
Log:
Import Intel Processor Trace decoder library from
vendor/processor-trace/24982c1a6fce48f1e416461d42899805f74fbb26
Sponsored by: DARPA, AFRL
Added:
head/contrib/proc
Author: br
Date: Wed Mar 21 14:37:04 2018
New Revision: 331293
URL: https://svnweb.freebsd.org/changeset/base/331293
Log:
Add new shared library -- libipt.
libipt is the Intel Processor Trace (Intel PT) packets decoder.
- Include libipt to amd64 build.
- Install libipt headers to /us
/rocket.dts Thu Sep 1 14:58:11 2016
(r305208)
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2016 Ruslan Bukin
+ * Copyright (c) 2015-2016 Ruslan Bukin
* All rights reserved.
*
* Portions of this software were developed by SRI International and the
@@ -37,8 +37,8 @@
/dts-v1
Author: br
Date: Wed Sep 7 15:48:44 2016
New Revision: 305541
URL: https://svnweb.freebsd.org/changeset/base/305541
Log:
o Update QEMU device tree.
QEMU was updated to privileged architecture v1.9
and we now fully support it.
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Modified
Author: br
Date: Thu Sep 8 17:37:13 2016
New Revision: 305621
URL: https://svnweb.freebsd.org/changeset/base/305621
Log:
Allow the use of soft-interrupts for sending IPIs.
This will be required for SMP support on MIPS Malta platform.
Reviewed by: adrian
Sponsored by: DARPA, AFRL
Spo
)
+++ head/sys/mips/malta/asm_malta.S Fri Sep 9 14:50:44 2016
(r305664)
@@ -0,0 +1,89 @@
+/*-
+ * Copyright (c) 2016 Ruslan Bukin
+ * All rights reserved.
+ *
+ * Portions of this software were developed by SRI International and the
+ * University of Cambridge Computer Laboratory under
201 - 300 of 643 matches
Mail list logo