svn commit: r336027 - head/gnu/usr.bin/binutils/libbfd

2018-07-06 Thread Andrew Turner
Author: andrew Date: Fri Jul 6 11:50:59 2018 New Revision: 336027 URL: https://svnweb.freebsd.org/changeset/base/336027 Log: Teach binutils that arm64 is a 64bit architecture. This is needed to cross build from arm64 to other architectures that use binutils. Sponsored by: ABT Systems

Re: svn commit: r336011 - head/usr.sbin/config

2018-07-05 Thread Andrew Turner
> On 5 Jul 2018, at 18:53, Kyle Evans wrote: > > Author: kevans > Date: Thu Jul 5 17:53:51 2018 > New Revision: 336011 > URL: https://svnweb.freebsd.org/changeset/base/336011 > > Log: > config(8): De-dupe hint/env vars within a single file > > r335653 flipped the order in which hints/env

svn commit: r336007 - in head: share/man/man9 sys/compat/linuxkpi/common/src sys/kern sys/mips/mips sys/mips/nlm sys/netinet sys/netpfil/ipfw sys/powerpc/powerpc sys/sys sys/vm sys/x86/xen

2018-07-05 Thread Andrew Turner
Author: andrew Date: Thu Jul 5 17:13:37 2018 New Revision: 336007 URL: https://svnweb.freebsd.org/changeset/base/336007 Log: Create a new macro for static DPCPU data. On arm64 (and possible other architectures) we are unable to use static DPCPU data in kernel modules. This is because

svn commit: r335649 - in head/sys/arm64: arm64 linux

2018-06-25 Thread Andrew Turner
Author: andrew Date: Mon Jun 25 22:36:25 2018 New Revision: 335649 URL: https://svnweb.freebsd.org/changeset/base/335649 Log: Make cpu_set_syscall_retval common between the existing FreeBSD ABI and the Linuxulator. We need to translate error values onto Linux errno values and return them to

Re: svn commit: r334329 - head/sys/arm64/arm64

2018-06-25 Thread Andrew Turner
ous DMAP mapping. > > > 2018-05-29 15:52 GMT+02:00 Andrew Turner : >> Author: andrew >> Date: Tue May 29 13:52:25 2018 >> New Revision: 334329 >> URL: https://svnweb.freebsd.org/changeset/base/334329 >> >> Log: >> On ThunderX2 we need to be caref

svn commit: r335440 - head/sys/arm/arm

2018-06-20 Thread Andrew Turner
Author: andrew Date: Wed Jun 20 11:13:10 2018 New Revision: 335440 URL: https://svnweb.freebsd.org/changeset/base/335440 Log: Move the SYSINIT to allow userspace access to the ARM generic timer later in the boot. It doesn't need to be early, so move it to the SI_ORDER_ANY stage of

svn commit: r335439 - head/sys/dev/psci

2018-06-20 Thread Andrew Turner
Author: andrew Date: Wed Jun 20 10:57:29 2018 New Revision: 335439 URL: https://svnweb.freebsd.org/changeset/base/335439 Log: Move the SMCCC SYSINIT later in the boot so the psci driver has attached. Sponsored by: DARPA, AFRL Modified: head/sys/dev/psci/smccc.c Modified:

svn commit: r335438 - head/sys/dev/psci

2018-06-20 Thread Andrew Turner
Author: andrew Date: Wed Jun 20 10:02:50 2018 New Revision: 335438 URL: https://svnweb.freebsd.org/changeset/base/335438 Log: Fix the SMCCC signatures, they are all 32-bit calls. This fixes SMCCC version detection. Sponsored by: DARPA, AFRL Modified: head/sys/dev/psci/smccc.h

svn commit: r335373 - in head/sys: arm/arm arm64/arm64

2018-06-19 Thread Andrew Turner
Author: andrew Date: Tue Jun 19 16:14:23 2018 New Revision: 335373 URL: https://svnweb.freebsd.org/changeset/base/335373 Log: Move common GIC interrupt numbers to the common header. These are the same across the GICv2 and GICv3 drivers so we only need a single copy of them. Sponsored by:

svn commit: r335065 - head/sys/arm64/arm64

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 15:58:33 2018 New Revision: 335065 URL: https://svnweb.freebsd.org/changeset/base/335065 Log: Add ThunderX2 to the list of CPUs we need to apply the branch predictor hardening to. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/cpu_errata.c

svn commit: r335064 - head/sys/arm64/arm64

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 15:56:24 2018 New Revision: 335064 URL: https://svnweb.freebsd.org/changeset/base/335064 Log: Switch to the SMCCC function for branch predictor hardening. The previous method may not have worked as the firmware checks for the ARCH_WORKAROUND_1 function ID.

svn commit: r335063 - head/sys/dev/psci

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 15:41:22 2018 New Revision: 335063 URL: https://svnweb.freebsd.org/changeset/base/335063 Log: Add the SMCCC return codes from ARM DEN 0070A. While here add a comment with the document the function IDs come from. Sponsored by: DARPA, AFRL Modified:

svn commit: r335062 - in head/sys: conf dev/psci

2018-06-13 Thread Andrew Turner
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/psci/smccc.c Wed Jun 13 15:32:00 2018(r335062) @@ -0,0 +1,93 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2018 Andrew Turner + * + * This software was developed

svn commit: r335061 - head/sys/dev/psci

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 15:24:07 2018 New Revision: 335061 URL: https://svnweb.freebsd.org/changeset/base/335061 Log: Move psci_call to a header file so we can use it in other files to communicate with the firmware. Sponsored by: DARPA, AFRL Modified: head/sys/dev/psci/psci.c

svn commit: r335056 - head/sys/dev/psci

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 12:33:47 2018 New Revision: 335056 URL: https://svnweb.freebsd.org/changeset/base/335056 Log: Add a handler for the PSCI_FEATURES function. This needs PSCI 1.0, so check for this, returning an error if the version is too old. Sponsored by: DARPA, AFRL

svn commit: r335055 - head/sys/dev/psci

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 12:32:04 2018 New Revision: 335055 URL: https://svnweb.freebsd.org/changeset/base/335055 Log: Find and cache the PSCI version on driver attach. Sponsored by: DARPA, AFRL Modified: head/sys/dev/psci/psci.c Modified: head/sys/dev/psci/psci.c

svn commit: r335054 - head/sys/dev/psci

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 12:26:37 2018 New Revision: 335054 URL: https://svnweb.freebsd.org/changeset/base/335054 Log: Add the PSCI_FEATURES function ID. This is found in PSCI 1.0 and is used to query if a given function is implemented and its features. Sponsored by: DARPA, AFRL

svn commit: r335052 - in head/sys/arm64: arm64 cavium include

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 12:17:11 2018 New Revision: 335052 URL: https://svnweb.freebsd.org/changeset/base/335052 Log: Rename the ThunderX CPU identification macros to include the X. This is the name people know the product by, and is consistent with the later SoC ID macros.

svn commit: r335051 - head/sys/arm64/include

2018-06-13 Thread Andrew Turner
Author: andrew Date: Wed Jun 13 11:58:41 2018 New Revision: 335051 URL: https://svnweb.freebsd.org/changeset/base/335051 Log: Add more Cavium CPU part numbers. While here split the lists by vendor. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/include/cpu.h Modified:

svn commit: r334999 - head/sys/dev/psci

2018-06-12 Thread Andrew Turner
Author: andrew Date: Tue Jun 12 14:54:17 2018 New Revision: 334999 URL: https://svnweb.freebsd.org/changeset/base/334999 Log: Rework PSCI so it only searches for the call function once. This is in preperation for supporting newer smccc functions that also use the same call method.

svn commit: r334932 - in head/sys: arm64/arm64 arm64/conf conf

2018-06-10 Thread Andrew Turner
Author: andrew Date: Sun Jun 10 19:42:44 2018 New Revision: 334932 URL: https://svnweb.freebsd.org/changeset/base/334932 Log: Remove the psci option from arm64. It is now a standard option as it is required to boot correctly. Sponsored by: DARPA, AFRL Modified:

svn commit: r334926 - head/sys/arm64/arm64

2018-06-10 Thread Andrew Turner
Author: andrew Date: Sun Jun 10 16:21:21 2018 New Revision: 334926 URL: https://svnweb.freebsd.org/changeset/base/334926 Log: Clean up handling of unexpected exceptions. Previously we would issue a breakpoint instruction, however this would lose information that may be useful for debugging.

svn commit: r334880 - head/sys/dev/vnic

2018-06-09 Thread Andrew Turner
Author: andrew Date: Sat Jun 9 14:47:49 2018 New Revision: 334880 URL: https://svnweb.freebsd.org/changeset/base/334880 Log: In the ThunderX BGX network driver we were skipping the NULL terminator when parsing the phy type, however this is included in the length returned by OF_getprop. To

svn commit: r334424 - head/sys/arm64/arm64

2018-05-31 Thread Andrew Turner
Author: andrew Date: Thu May 31 12:37:34 2018 New Revision: 334424 URL: https://svnweb.freebsd.org/changeset/base/334424 Log: Move the code to print the EFI memory table to a new function and call it in teh bootverbose path after cninit(). This allows users to see these tables when

svn commit: r334421 - head/sys/arm64/arm64

2018-05-31 Thread Andrew Turner
Author: andrew Date: Thu May 31 11:53:46 2018 New Revision: 334421 URL: https://svnweb.freebsd.org/changeset/base/334421 Log: Fix the early spelling of bootverbose. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/machdep.c Modified: head/sys/arm64/arm64/machdep.c

svn commit: r334420 - head/sys/arm64/arm64

2018-05-31 Thread Andrew Turner
Author: andrew Date: Thu May 31 11:11:23 2018 New Revision: 334420 URL: https://svnweb.freebsd.org/changeset/base/334420 Log: Fix the memory attribute for EFI_MD_ATTR_UC on arm64. This is defined as Device-nGnRnE in the UEFI spec (UEFI 2.4, section 2.3.6.1). This is the VM_MEMATTR_DEVICE

svn commit: r334387 - head/sys/arm64/arm64

2018-05-30 Thread Andrew Turner
Author: andrew Date: Wed May 30 15:37:09 2018 New Revision: 334387 URL: https://svnweb.freebsd.org/changeset/base/334387 Log: Remove max_pa, it's unused. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/pmap.c Modified: head/sys/arm64/arm64/pmap.c

svn commit: r334385 - head/sys/arm64/arm64

2018-05-30 Thread Andrew Turner
Author: andrew Date: Wed May 30 15:25:48 2018 New Revision: 334385 URL: https://svnweb.freebsd.org/changeset/base/334385 Log: Further limit when we call pmap_fault. We should only call pmap_fault in the kernel when accessing a userspace address. As this should always happen through

svn commit: r334382 - head/sys/arm64/arm64

2018-05-30 Thread Andrew Turner
Author: andrew Date: Wed May 30 14:18:19 2018 New Revision: 334382 URL: https://svnweb.freebsd.org/changeset/base/334382 Log: Push down the locking in pmap_fault to just be around the calls to arm64_address_translate_*. There is no need to lock around the switch statement as we only care

svn commit: r334341 - head/sys/dev/fdt

2018-05-29 Thread Andrew Turner
Author: andrew Date: Tue May 29 17:44:40 2018 New Revision: 334341 URL: https://svnweb.freebsd.org/changeset/base/334341 Log: Increase the number of fdt memory regions we support to 16. Some SoCs have many excluded regions causing a buffer overflow in the early boot code if this value is

svn commit: r334329 - head/sys/arm64/arm64

2018-05-29 Thread Andrew Turner
Author: andrew Date: Tue May 29 13:52:25 2018 New Revision: 334329 URL: https://svnweb.freebsd.org/changeset/base/334329 Log: On ThunderX2 we need to be careful to only map the memory the firmware lists in the EFI memory map. As such we need to reduce the mappings to restrict them to not be

Re: Deorbiting i386

2018-05-28 Thread Andrew Turner
> On 27 May 2018, at 23:15, Maxim Sobolev wrote: > > Well, strip extra 32 bits, use slower memory and busses (extra decoding logic > etc). Voila, you suddenly have platform that can run 99% of code in wild > today with just few hundred mW of power. Try that with arm32, you would be >

svn commit: r334289 - head/sys/arm64/arm64

2018-05-28 Thread Andrew Turner
Author: andrew Date: Mon May 28 17:09:29 2018 New Revision: 334289 URL: https://svnweb.freebsd.org/changeset/base/334289 Log: Create a new function to walk the EFI memory table & run a callback for each entry. We can then use this to ensure the RunTime data is mapped in the DMAP, but not in

svn commit: r334164 - head/sys/arm64/include

2018-05-24 Thread Andrew Turner
Author: andrew Date: Thu May 24 16:07:47 2018 New Revision: 334164 URL: https://svnweb.freebsd.org/changeset/base/334164 Log: Remove physmap from the arm64 machdep.h. This was missed in r334162. Modified: head/sys/arm64/include/machdep.h Modified: head/sys/arm64/include/machdep.h

svn commit: r334162 - in head/sys: arm/arm arm/include arm64/arm64

2018-05-24 Thread Andrew Turner
Author: andrew Date: Thu May 24 15:32:49 2018 New Revision: 334162 URL: https://svnweb.freebsd.org/changeset/base/334162 Log: Allow us to read the physmap data into our own array and use this to build the DMAP region on arm64. We already have the needed information to build these tables,

svn commit: r334157 - head/sys/arm64/arm64

2018-05-24 Thread Andrew Turner
Author: andrew Date: Thu May 24 15:07:53 2018 New Revision: 334157 URL: https://svnweb.freebsd.org/changeset/base/334157 Log: Print the physmem tables under a verbose boot. Obtained from:ABT Systems Ltd Sponsored by: Turing Robotic Industries Modified:

svn commit: r334155 - head/sys/arm64/arm64

2018-05-24 Thread Andrew Turner
Author: andrew Date: Thu May 24 14:55:50 2018 New Revision: 334155 URL: https://svnweb.freebsd.org/changeset/base/334155 Log: Exclude memory from the /reserved-memory mappings with the no-map property set. This memory must not be mapped by the operating system other than under control of

svn commit: r334056 - head/sys/dev/fdt

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 16:03:41 2018 New Revision: 334056 URL: https://svnweb.freebsd.org/changeset/base/334056 Log: Handle reserved memory with the no-map property. We shouldn't be mapping this memory, so we need to find it so it can be excluded from the phys_avail map.

Re: svn commit: r334052 - head/sys/arm64/arm64

2018-05-22 Thread Andrew Turner
> On 22 May 2018, at 16:52, Andrew Turner <and...@freebsd.org> wrote: > > Author: andrew > Date: Tue May 22 15:52:11 2018 > New Revision: 334052 > URL: https://svnweb.freebsd.org/changeset/base/334052 > > Log: > Revert r334035 for now. It breaks the

svn commit: r334052 - head/sys/arm64/arm64

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 15:52:11 2018 New Revision: 334052 URL: https://svnweb.freebsd.org/changeset/base/334052 Log: Revert r334035 for now. It breaks the boot on some boards as er expect to be able to read UEFI RuntimeData memory via the DMAP region. Modified:

svn commit: r334045 - head/sys/arm/arm

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 14:26:58 2018 New Revision: 334045 URL: https://svnweb.freebsd.org/changeset/base/334045 Log: Pass the array length into regions_to_avail. On arm64 we will need to get the phys_avail array from before the kernel is excluded to create teh DMAP region. In

svn commit: r334037 - head/sys/arm/arm

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 13:21:44 2018 New Revision: 334037 URL: https://svnweb.freebsd.org/changeset/base/334037 Log: Only set realmem based on memory where the EXFLAG_NOALLOC is unset. This will allow us to query the maps at any time without disturbing this value. Obtained from:

svn commit: r334035 - head/sys/arm64/arm64

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 11:26:41 2018 New Revision: 334035 URL: https://svnweb.freebsd.org/changeset/base/334035 Log: On ThunderX2 we need to be careful to only map the memory the firmware lists in the EFI memory map. As such we need to reduce the mappings to restrict them to not be

svn commit: r334033 - head/sys/arm64/arm64

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 11:16:45 2018 New Revision: 334033 URL: https://svnweb.freebsd.org/changeset/base/334033 Log: Stop using the DMAP region to map ACPI memory. On some arm64 boards we need to access memory in ACPI tables that is not mapped in the DMAP region. To handle this

svn commit: r334032 - in head/sys: arm64/arm64 conf

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 11:07:04 2018 New Revision: 334032 URL: https://svnweb.freebsd.org/changeset/base/334032 Log: Switch arm64 to use the same physmem code as 32-bit arm. The main advantage of this is to allow us to exclude memory from being used by the kernel. This may be

svn commit: r334030 - head/sys/arm/arm

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 10:31:06 2018 New Revision: 334030 URL: https://svnweb.freebsd.org/changeset/base/334030 Log: Allow the 32-bit arm physmem code to work on arm64. This will help simplify the arm64 code and allow us to properly exclude memory that should never be mapped.

svn commit: r334028 - head/sys/arm/arm

2018-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 10:14:20 2018 New Revision: 334028 URL: https://svnweb.freebsd.org/changeset/base/334028 Log: Coalesce adjacent physical mappings. This reduces the overhead when we have many small mappings, e.g. on some EFI systems. This is to help use this code on arm64

svn commit: r333985 - head/sys/arm64/arm64

2018-05-21 Thread Andrew Turner
Author: andrew Date: Mon May 21 16:14:53 2018 New Revision: 333985 URL: https://svnweb.freebsd.org/changeset/base/333985 Log: Restrict the faulting addresses we call pmap_fault from to just those that may fault due to superpage mappings being changed. Sponsored by: DARPA, AFRL Modified:

Re: svn commit: r333959 - head/usr.bin/top

2018-05-21 Thread Andrew Turner
> On 21 May 2018, at 04:58, Eitan Adler wrote: > > Author: eadler > Date: Mon May 21 03:58:15 2018 > New Revision: 333959 > URL: https://svnweb.freebsd.org/changeset/base/333959 > > Log: > top(1): build with WARNS=3 > > This fixes everything but >

svn commit: r333786 - head/sys/arm64/conf

2018-05-18 Thread Andrew Turner
Author: andrew Date: Fri May 18 11:32:48 2018 New Revision: 333786 URL: https://svnweb.freebsd.org/changeset/base/333786 Log: Enable the Qualcomm MSM UART driver. This is needed for some Qualcomm Snapdragon SoCs. Obtained from:ABT Systems Ltd Sponsored by: Turing Robotic

svn commit: r333636 - head/sys/arm64/arm64

2018-05-15 Thread Andrew Turner
Author: andrew Date: Tue May 15 16:44:35 2018 New Revision: 333636 URL: https://svnweb.freebsd.org/changeset/base/333636 Log: Increase the number of pages we allocate in the arm64 early boot. We are already close to the limit so increasing the kernel size may cause it to fail to boot when

Re: svn commit: r333500 - head/sys/kern

2018-05-12 Thread Andrew Turner
> On 11 May 2018, at 19:37, Matt Macy wrote: > > Author: mmacy > Date: Fri May 11 18:37:14 2018 > New Revision: 333500 > URL: https://svnweb.freebsd.org/changeset/base/333500 > > Log: > epoch(9): always set inited in epoch_init I don’t see a man page for epoch in the tree

svn commit: r332309 - head/sys/dev/fdt

2018-04-08 Thread Andrew Turner
Author: andrew Date: Sun Apr 8 22:07:06 2018 New Revision: 332309 URL: https://svnweb.freebsd.org/changeset/base/332309 Log: Replace calls to fdt_is_compatible with ofw_bus_node_is_compatible. These are almost identical so there is no need to keep the former around. Sponsored by: DARPA,

svn commit: r332278 - head/sys/dev/fdt

2018-04-08 Thread Andrew Turner
Author: andrew Date: Sun Apr 8 15:21:12 2018 New Revision: 332278 URL: https://svnweb.freebsd.org/changeset/base/332278 Log: Revert r332277, it contained an unintended extra change Modified: head/sys/dev/fdt/fdt_common.c Modified: head/sys/dev/fdt/fdt_common.c

svn commit: r332277 - head/sys/dev/fdt

2018-04-08 Thread Andrew Turner
Author: andrew Date: Sun Apr 8 15:12:36 2018 New Revision: 332277 URL: https://svnweb.freebsd.org/changeset/base/332277 Log: Replace calls to fdt_is_compatible with ofw_bus_node_is_compatible. These are almost identical so there is no need to keep the former around. Sponsored by: DARPA,

svn commit: r332274 - in head/sys: arm/mv dev/fdt

2018-04-08 Thread Andrew Turner
Author: andrew Date: Sun Apr 8 12:20:06 2018 New Revision: 332274 URL: https://svnweb.freebsd.org/changeset/base/332274 Log: Move fdt_is_type to be a Marvell specific function. It's not used by any other SoCs. Sponsored by: DARPA, AFRL Modified: head/sys/arm/mv/armv5_machdep.c

svn commit: r332026 - in head/sys: arm/mv dev/fdt

2018-04-04 Thread Andrew Turner
Author: andrew Date: Wed Apr 4 13:37:59 2018 New Revision: 332026 URL: https://svnweb.freebsd.org/changeset/base/332026 Log: Remove fdt_pm_is_enabled as it's Marvell specific. Replace the only call to it with a call to the helper function fdt_pm_is_enabled would call. Sponsored by:

svn commit: r331925 - head/sys/dev/fdt

2018-04-03 Thread Andrew Turner
Author: andrew Date: Tue Apr 3 13:30:40 2018 New Revision: 331925 URL: https://svnweb.freebsd.org/changeset/base/331925 Log: Remove fdt_is_enabled, fdt_reg_to_rl, and fdt_get_unit. These are not used by anything in the tree. Sponsored by: DARPA, AFRL Modified:

svn commit: r331924 - in head/sys: arm/freescale/vybrid arm/mv arm/nvidia arm/nvidia/tegra124 dev/fdt

2018-04-03 Thread Andrew Turner
Author: andrew Date: Tue Apr 3 11:01:50 2018 New Revision: 331924 URL: https://svnweb.freebsd.org/changeset/base/331924 Log: Switch users of fdt_is_enabled to use ofw_bus_node_status_okay. These are equivalent, so to prepare to remove the former move users to call the latter.

svn commit: r331877 - head/sys/arm/arm

2018-04-02 Thread Andrew Turner
Author: andrew Date: Mon Apr 2 13:36:48 2018 New Revision: 331877 URL: https://svnweb.freebsd.org/changeset/base/331877 Log: Add the missing header for malloc(9). It was pulled in through header pollution that doesn't seem to exist in some configurations. Modified:

svn commit: r331421 - head/sys/dev/usb/controller

2018-03-23 Thread Andrew Turner
Author: andrew Date: Fri Mar 23 11:08:59 2018 New Revision: 331421 URL: https://svnweb.freebsd.org/changeset/base/331421 Log: If sc->sc_ep_max is already set use it to find the number of RX and TX endpoints. The Allwinner driver will need to set this as the EPINFO register isn't useful

svn commit: r331361 - head/sys/dev/efidev

2018-03-22 Thread Andrew Turner
Author: andrew Date: Thu Mar 22 15:32:57 2018 New Revision: 331361 URL: https://svnweb.freebsd.org/changeset/base/331361 Log: Enter into the EFI environment before dereferencing the runtime services pointer. This may be within the EFI address space and not the FreeBSD kernel address space.

svn commit: r331360 - head/sys/dev/usb/controller

2018-03-22 Thread Andrew Turner
Author: andrew Date: Thu Mar 22 15:24:26 2018 New Revision: 331360 URL: https://svnweb.freebsd.org/changeset/base/331360 Log: Increase the size of the endpoint buffers. They are double buffered so need to be twice the size. Sponsored by: DARPA, AFRL Modified:

Re: svn commit: r331306 - head/sys/dev/usb/controller

2018-03-22 Thread Andrew Turner
> On 21 Mar 2018, at 21:54, Hans Petter Selasky <h...@selasky.org> wrote: > > On 03/21/18 17:45, Andrew Turner wrote: >>> On 21 Mar 2018, at 15:37, Hans Petter Selasky <h...@selasky.org> wrote: >>> >>> On 03/21/18 16:24, Kyle Evans wrote: &

Re: svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Andrew Turner
> On 21 Mar 2018, at 15:37, Hans Petter Selasky wrote: > > On 03/21/18 16:24, Kyle Evans wrote: >>> + { >>> + .ep_end = 7, >>> + .ep_fifosz_shift = 9, >>> + .ep_fifosz_reg = MUSB2_VAL_FIFOSZ_512 | MUSB2_MASK_FIFODB, >>> +

svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Andrew Turner
Author: andrew Date: Wed Mar 21 15:17:54 2018 New Revision: 331306 URL: https://svnweb.freebsd.org/changeset/base/331306 Log: Use a table to find the endpoint configuration On the Allwinner SoCs we need to set a custom endpoint configuration. To allow for this use a table to store the

svn commit: r331242 - head

2018-03-20 Thread Andrew Turner
Author: andrew Date: Tue Mar 20 13:39:41 2018 New Revision: 331242 URL: https://svnweb.freebsd.org/changeset/base/331242 Log: Remove the entry about loader.efi needing to be updated before the kernel. The kernel now handles the situation it's warning against as of r331241. Sponsored by:

svn commit: r331241 - head/sys/dev/efidev

2018-03-20 Thread Andrew Turner
Author: andrew Date: Tue Mar 20 13:35:20 2018 New Revision: 331241 URL: https://svnweb.freebsd.org/changeset/base/331241 Log: Check if the gettime runtime service is valid. The U-Boot efi runtime service expects us to set the address map before calling any runtime services. It will then

svn commit: r330687 - head/sys/arm64/arm64

2018-03-09 Thread Andrew Turner
Author: andrew Date: Fri Mar 9 10:34:44 2018 New Revision: 330687 URL: https://svnweb.freebsd.org/changeset/base/330687 Log: Use the correct address to write back to memory in the GICv3 ITS driver. This seems to no be needed on supported hardware as they are cache-coherent, however this

svn commit: r330593 - head/sys/arm64/include

2018-03-07 Thread Andrew Turner
Author: andrew Date: Wed Mar 7 13:54:44 2018 New Revision: 330593 URL: https://svnweb.freebsd.org/changeset/base/330593 Log: Bump MAXCPUS on arm64. We are starting to see hardware with more than 96 cores so increase it to the same as amd64. Sponsored by: DARPA, AFRL Sponsored by:

svn commit: r330582 - in head/sys: arm64/arm64 arm64/include dev/pci

2018-03-07 Thread Andrew Turner
Author: andrew Date: Wed Mar 7 13:16:03 2018 New Revision: 330582 URL: https://svnweb.freebsd.org/changeset/base/330582 Log: Create macros for the ACPI interrupt cross references. This is considered a band aid until a better solution to find the correct interrupt controller can be found.

svn commit: r330575 - in head/sys: conf dev/acpica dev/pci

2018-03-07 Thread Andrew Turner
Author: andrew Date: Wed Mar 7 10:47:27 2018 New Revision: 330575 URL: https://svnweb.freebsd.org/changeset/base/330575 Log: Add an acpi attachment to the pci_host_generic driver and have the ACPI bus provide it with its needed memory resources. This allows us to use PCIe on the

svn commit: r330574 - head/sys/arm64/arm64

2018-03-07 Thread Andrew Turner
Author: andrew Date: Wed Mar 7 09:58:36 2018 New Revision: 330574 URL: https://svnweb.freebsd.org/changeset/base/330574 Log: Restrict the arm64 DMAP region to the 1G blocks where we have at least one physical page. This is in preparation for limiting it further as this is needed on some

svn commit: r330489 - head/sys/arm64/arm64

2018-03-05 Thread Andrew Turner
Author: andrew Date: Mon Mar 5 10:11:30 2018 New Revision: 330489 URL: https://svnweb.freebsd.org/changeset/base/330489 Log: Register each GICv3 ITS driver with a useful cross reference. We currently only use the first driver, however this may change in the future and hardware exists with

svn commit: r330488 - head/sys/arm64/arm64

2018-03-05 Thread Andrew Turner
Author: andrew Date: Mon Mar 5 10:09:18 2018 New Revision: 330488 URL: https://svnweb.freebsd.org/changeset/base/330488 Log: In the ACPI GICv3 attach function call device_get_children to get the list of children. We expect this to be populated when configuring the secondary cores.

svn commit: r330337 - head/sys/arm64/arm64

2018-03-03 Thread Andrew Turner
Author: andrew Date: Sat Mar 3 13:20:44 2018 New Revision: 330337 URL: https://svnweb.freebsd.org/changeset/base/330337 Log: Move setting the IRQ base and length into the common GICv3 ITS attach function. This is common across both ACPI and FDT. Sponsored by: ABT Systems Ltd Sponsored

svn commit: r330336 - head/sys/arm64/arm64

2018-03-03 Thread Andrew Turner
Author: andrew Date: Sat Mar 3 13:19:08 2018 New Revision: 330336 URL: https://svnweb.freebsd.org/changeset/base/330336 Log: Add the missing GICv3 dev info struct to the ACPI dev info.Previously we would read from the resource list when querying from this. Sponsored by: ABT Systems Ltd

svn commit: r330276 - head/sys/arm64/arm64

2018-03-02 Thread Andrew Turner
Author: andrew Date: Fri Mar 2 13:04:21 2018 New Revision: 330276 URL: https://svnweb.freebsd.org/changeset/base/330276 Log: Count the number of children in the GICv3 ACPI attachment. This is needed later for assigning IRQ vector space. Sponsored by: DARPA, AFRL Sponsored by: Cavium

svn commit: r330120 - head/sys/arm64/arm64

2018-02-28 Thread Andrew Turner
Author: andrew Date: Wed Feb 28 16:03:40 2018 New Revision: 330120 URL: https://svnweb.freebsd.org/changeset/base/330120 Log: Allow releasing APs to take more time, as long as we are making progress. On large core count machines this can be slow while all the CPUs update the online counter.

svn commit: r330114 - head/sys/arm64/arm64

2018-02-28 Thread Andrew Turner
Author: andrew Date: Wed Feb 28 15:25:47 2018 New Revision: 330114 URL: https://svnweb.freebsd.org/changeset/base/330114 Log: Count the number of GIC redistributors in the ACPI tables. The GICv3 driver needs this to allocate memory, and connect the CPUs to the interrupt controller.

svn commit: r330113 - head/sys/dev/acpica

2018-02-28 Thread Andrew Turner
Author: andrew Date: Wed Feb 28 15:18:31 2018 New Revision: 330113 URL: https://svnweb.freebsd.org/changeset/base/330113 Log: Only check the ProducerConsumer flag on extended memory. As per the ACPI 6.0 spec 6.4.3.5 bit 0 is ignored on QWord, DWord, and Word Address Space Descriptors, but

svn commit: r330111 - head/sys/dev/uart

2018-02-28 Thread Andrew Turner
Author: andrew Date: Wed Feb 28 15:02:27 2018 New Revision: 330111 URL: https://svnweb.freebsd.org/changeset/base/330111 Log: The Arm pl011 driver assumes it's running a devicetree based system. It calls OF_* functions to check if it needs to implement workarounds. This may not be the case

Re: svn commit: r330041 - in head/sys/dev/cxgbe: . crypto

2018-02-27 Thread Andrew Turner
> On 26 Feb 2018, at 22:12, John Baldwin wrote: > > Author: jhb > Date: Mon Feb 26 22:12:31 2018 > New Revision: 330041 > URL: https://svnweb.freebsd.org/changeset/base/330041 > > Log: > Move ccr_aes_getdeckey() from ccr(4) to the cxgbe(4) driver. > > This routine will

svn commit: r330016 - head/sys/dev/uart

2018-02-26 Thread Andrew Turner
Author: andrew Date: Mon Feb 26 08:45:38 2018 New Revision: 330016 URL: https://svnweb.freebsd.org/changeset/base/330016 Log: Check all entries in the ACPI uart compat table and not just the first. Sponsored by: DARPA, AFRL Modified: head/sys/dev/uart/uart_cpu_arm64.c Modified:

svn commit: r329991 - head/sys/dev/uart

2018-02-25 Thread Andrew Turner
Author: andrew Date: Sun Feb 25 19:43:00 2018 New Revision: 329991 URL: https://svnweb.freebsd.org/changeset/base/329991 Log: Teach the Arm pl011 driver to attach to a SBSA uart. This is defined in the Server Base System Architecture to be a subset of the pl011 r1p5. As we don't use the

svn commit: r329990 - head/sys/dev/uart

2018-02-25 Thread Andrew Turner
Author: andrew Date: Sun Feb 25 19:33:27 2018 New Revision: 329990 URL: https://svnweb.freebsd.org/changeset/base/329990 Log: Rename the FDT compat_data array to a bus-specific name. Sponsored by: DARPA, AFRL Modified: head/sys/dev/uart/uart_dev_pl011.c Modified:

svn commit: r329906 - head/sys/arm64/arm64

2018-02-24 Thread Andrew Turner
Author: andrew Date: Sat Feb 24 10:33:31 2018 New Revision: 329906 URL: https://svnweb.freebsd.org/changeset/base/329906 Log: Correctly set the 16kB page size field in the ITS BASER register. Some new arm64 hardware, e.g. ThunderX2, seems to use this page size so was failing to attach as

Re: svn commit: r329822 - head/sbin

2018-02-22 Thread Andrew Turner
This commit message is missing why these are needed on powerpc, e.g. why aren’t you able to use gpart. Andrew > On 22 Feb 2018, at 12:31, Wojciech Macek wrote: > > Author: wma > Date: Thu Feb 22 12:31:28 2018 > New Revision: 329822 > URL:

Re: svn commit: r329612 - in head/sys: kern sys

2018-02-21 Thread Andrew Turner
Yes, I’m still getting it on r329721. Andrew > On 21 Feb 2018, at 17:02, Conrad Meyer <c...@freebsd.org> wrote: > > Do you have r329672 yet? > > Best, > Conrad > > On Wed, Feb 21, 2018 at 7:11 AM, Andrew Turner <and...@fubar.geek.nz> wrote: >> >

Re: svn commit: r329612 - in head/sys: kern sys

2018-02-21 Thread Andrew Turner
> On 20 Feb 2018, at 00:06, Jeff Roberson wrote: > > Author: jeff > Date: Tue Feb 20 00:06:07 2018 > New Revision: 329612 > URL: https://svnweb.freebsd.org/changeset/base/329612 > > Log: > Further parallelize the buffer cache. > > Provide multiple clean queues partitioned

svn commit: r329382 - head/release/arm64

2018-02-16 Thread Andrew Turner
Author: andrew Date: Fri Feb 16 16:22:54 2018 New Revision: 329382 URL: https://svnweb.freebsd.org/changeset/base/329382 Log: Put the pine64 root filesystem on teh correct partition. The Pine64 root filesystem was incorrectly created directly on the MBR partition. This can cause the

Re: svn commit: r328916 - in head/sys: kern vm

2018-02-06 Thread Andrew Turner
> On 6 Feb 2018, at 04:16, Gleb Smirnoff wrote: > > Author: glebius > Date: Tue Feb 6 04:16:00 2018 > New Revision: 328916 > URL: https://svnweb.freebsd.org/changeset/base/328916 > > Log: > Followup on r302393 by cperciva, improving calculation of boot pages required >

svn commit: r328662 - head/sys/dev/uart

2018-02-01 Thread Andrew Turner
Author: andrew Date: Thu Feb 1 15:05:17 2018 New Revision: 328662 URL: https://svnweb.freebsd.org/changeset/base/328662 Log: Disable EARLY_PRINTF from the Armada 3700 uart, it breaks when we want to use EARLY_PRINTF on other SoCs. Sponsored by: DARPA, AFRL Modified:

svn commit: r328658 - head/sys/arm64/arm64

2018-02-01 Thread Andrew Turner
Author: andrew Date: Thu Feb 1 14:26:26 2018 New Revision: 328658 URL: https://svnweb.freebsd.org/changeset/base/328658 Log: Only promote userspace mappings to superpages. This was dropped in r328510, however due to the break-before-make requirement on arm64 is is currently unsafe to

Re: svn commit: r328388 - head/share/man/man8

2018-01-25 Thread Andrew Turner
> On 25 Jan 2018, at 17:43, Warner Losh wrote: > > > > On Thu, Jan 25, 2018 at 9:51 AM, Rodney W. Grimes > > > wrote: > [ Charset UTF-8 unsupported, converting... ] > > Author: lwhsu (ports committer) >

svn commit: r328115 - head/sys/arm64/arm64

2018-01-18 Thread Andrew Turner
Author: andrew Date: Thu Jan 18 10:52:31 2018 New Revision: 328115 URL: https://svnweb.freebsd.org/changeset/base/328115 Log: Add a pmap invalidate that doesn't call sched_pin. When demoting DMAP pages curthread may be pointing to data within the page we are demoting. Create a new

svn commit: r328007 - head/stand/efi/boot1

2018-01-15 Thread Andrew Turner
Author: andrew Date: Mon Jan 15 16:58:07 2018 New Revision: 328007 URL: https://svnweb.freebsd.org/changeset/base/328007 Log: Fix booting on some arm64 systems after r327879 by fixing the call to utf8_to_ucs2 in boot1.efi. We need to initialise the ucs2 output string so it will allocate

Re: svn commit: r327876 - in head/sys/arm64: arm64 include

2018-01-12 Thread Andrew Turner
> On 12 Jan 2018, at 14:37, Warner Losh <i...@bsdimp.com> wrote: > > > > On Fri, Jan 12, 2018 at 7:15 AM, Andrew Turner <and...@freebsd.org > <mailto:and...@freebsd.org>> wrote: > > >> On 12 Jan 2018, at 14:10, Marcin Wojtas <m...

Re: svn commit: r327876 - in head/sys/arm64: arm64 include

2018-01-12 Thread Andrew Turner
> On 12 Jan 2018, at 14:10, Marcin Wojtas <m...@semihalf.com> wrote: > > Hi Andrew, > > > > 2018-01-12 15:01 GMT+01:00 Andrew Turner <and...@freebsd.org > <mailto:and...@freebsd.org>>: >> Author: andrew >> Date: Fri Jan

svn commit: r327876 - in head/sys/arm64: arm64 include

2018-01-12 Thread Andrew Turner
Author: andrew Date: Fri Jan 12 14:01:38 2018 New Revision: 327876 URL: https://svnweb.freebsd.org/changeset/base/327876 Log: Workaround Spectre Variant 2 on arm64. We need to handle two cases: 1. One process attacking another process. 2. A process attacking the kernel. For the

<    1   2   3   4   5   6   7   8   9   10   >