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

2016-05-16 Thread Andrew Turner
@@ /*- - * Copyright (c) 2015 The FreeBSD Foundation + * Copyright (c) 2015-2016 The FreeBSD Foundation * All rights reserved. * + * This software was developed by Andrew Turner under + * the sponsorship of the FreeBSD Foundation. + * * This software was developed by Semihalf under * the sponsorship

svn commit: r299941 - head/sys/dev/pci

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 12:18:30 2016 New Revision: 299941 URL: https://svnweb.freebsd.org/changeset/base/299941 Log: Call ofw_bus_msimap to find the parent MSI controller, it may not use the msi-parent property. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD

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

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 12:02:06 2016 New Revision: 299939 URL: https://svnweb.freebsd.org/changeset/base/299939 Log: Move the call to intr_pic_init_secondary to the same place as in the non-intrng case. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation

svn commit: r299936 - in head/sys: arm64/arm64 arm64/include conf

2016-05-16 Thread Andrew Turner
/mp_machdep.c Mon May 16 10:48:51 2016 (r299936) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2015 The FreeBSD Foundation + * Copyright (c) 2015-2016 The FreeBSD Foundation * All rights reserved. * * This software was developed by Andrew Turner under @@ -65,6 +65,29 @@ __FBSDID("$Fr

svn commit: r299934 - head/sys/arm64/cavium

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 10:03:57 2016 New Revision: 299934 URL: https://svnweb.freebsd.org/changeset/base/299934 Log: Teach the ThunderX PCI PEM driver about intrng. This will be used later when arm64 is supported by intrng. Obtained from:ABT Systems Ltd Sponsored by:

svn commit: r299932 - in head: share/man/man9 sys/arm64/arm64 sys/arm64/cavium sys/dev/ofw sys/dev/pci

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 09:31:44 2016 New Revision: 299932 URL: https://svnweb.freebsd.org/changeset/base/299932 Log: Add a pcib interface for use by interrupt controllers that need to translate the pci rid to a controller ID. The translation could be based on the 'msi-map' OFW

svn commit: r299929 - in head: share/man/man9 sys/dev/pci

2016-05-16 Thread Andrew Turner
Author: andrew Date: Mon May 16 09:15:50 2016 New Revision: 299929 URL: https://svnweb.freebsd.org/changeset/base/299929 Log: Re-commit r299467 having fixed the build: Add a new get_id interface to pci and pcib. This will allow us to both detect failures, and get different PCI IDs.

svn commit: r299928 - in head/sys: arm/arm conf dev/pci kern mips/mediatek sys

2016-05-16 Thread Andrew Turner
head/sys/dev/pci/pci_host_generic.h == --- head/sys/dev/pci/pci_host_generic.h Mon May 16 08:50:32 2016 (r299927) +++ head/sys/dev/pci/pci_host_generic.h Mon May 16 09:11:40 2016 (r299928) @@ -60,6 +60,7 @@ struct gener

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

2016-05-13 Thread Andrew Turner
@@ /*- * Copyright (c) 1997, 1998 Justin T. Gibbs. - * Copyright (c) 2015 The FreeBSD Foundation + * Copyright (c) 2015-2016 The FreeBSD Foundation * All rights reserved. * + * Portions of this software were developed by Andrew Turner + * under sponsorship of the FreeBSD Foundation. + * * Portions

svn commit: r299679 - head/sys/dev/mmc/host

2016-05-13 Thread Andrew Turner
Author: andrew Date: Fri May 13 15:15:54 2016 New Revision: 299679 URL: https://svnweb.freebsd.org/changeset/base/299679 Log: Add DMA sync operations around accessing the dwmmc descriptor ring. Even with it maps as cache-coherent we still need to call bus_dmamap_sync. Obtained from:

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

2016-05-12 Thread Andrew Turner
Author: andrew Date: Thu May 12 15:24:36 2016 New Revision: 299535 URL: https://svnweb.freebsd.org/changeset/base/299535 Log: Rename the internal BUC_DMA_* flags to BF_* so they won't conflict with the flags in sys/bus_dma.h. Obtained from:ABT Systems Ltd Sponsored by: The

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

2016-05-12 Thread Andrew Turner
Author: andrew Date: Thu May 12 12:13:28 2016 New Revision: 299532 URL: https://svnweb.freebsd.org/changeset/base/299532 Log: Restrict the memory barriers in bus_dmamap_sync to just the operations where it's needed. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD

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

2016-05-11 Thread Andrew Turner
Author: andrew Date: Wed May 11 18:48:47 2016 New Revision: 299478 URL: https://svnweb.freebsd.org/changeset/base/299478 Log: Call busdma_swi from swi_vm as is done from other architectures. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r299467 - in head: share/man/man9 sys/dev/pci

2016-05-11 Thread Andrew Turner
Author: andrew Date: Wed May 11 17:07:29 2016 New Revision: 299467 URL: https://svnweb.freebsd.org/changeset/base/299467 Log: Add a new get_id interface to pci and pcib. This will allow us to both detect failures, and get different PCI IDs. For the former the interface returns an int to

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

2016-05-11 Thread Andrew Turner
Author: andrew Date: Wed May 11 16:53:41 2016 New Revision: 299463 URL: https://svnweb.freebsd.org/changeset/base/299463 Log: On arm64 always create a bus_dmamap_t object. This will be use to hold the list of memory that the kernel will need to sync when operating with a non-cache coherent

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

2016-05-11 Thread Andrew Turner
Author: andrew Date: Wed May 11 14:59:54 2016 New Revision: 299457 URL: https://svnweb.freebsd.org/changeset/base/299457 Log: Add data barriers to the arm64 bus_dmamap_sync function. We need these to ensure ordering between the CPU and device. As the CPU and DMA target may be in different

svn commit: r299370 - head/sys/arm64/cavium

2016-05-10 Thread Andrew Turner
Author: andrew Date: Tue May 10 15:45:59 2016 New Revision: 299370 URL: https://svnweb.freebsd.org/changeset/base/299370 Log: Push the logic to talk with the MSI/MSI-X interrupt controller to the FDT attachment. This is where it will live when we import intrng as it will need to look at

svn commit: r299257 - head/sys/kern

2016-05-09 Thread Andrew Turner
Author: andrew Date: Mon May 9 12:24:39 2016 New Revision: 299257 URL: https://svnweb.freebsd.org/changeset/base/299257 Log: Check malloc succeeded in pic_create, with M_NOWAIT it may return NULL. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r298854 - in head/sys: arm/allwinner arm/arm arm/broadcom/bcm2835 arm/conf arm/freescale/imx arm/include arm/nvidia/tegra124 arm/qemu arm/ti conf

2016-04-30 Thread Andrew Turner
Author: andrew Date: Sat Apr 30 17:27:33 2016 New Revision: 298854 URL: https://svnweb.freebsd.org/changeset/base/298854 Log: Add a MULTIDELAY option to allow the ARM kernel to have multiple DELAY implementations. Early in the boot the kernel will use an approximate, however after the timer

svn commit: r298741 - head/contrib/jemalloc/include/jemalloc

2016-04-28 Thread Andrew Turner
Author: andrew Date: Thu Apr 28 12:24:58 2016 New Revision: 298741 URL: https://svnweb.freebsd.org/changeset/base/298741 Log: Stop using sbrk(2) with malloc. This helps reduce the number of places within the tree where we call this legacy interface. Reviewed by: jasone Obtained from:

Re: svn commit: r298425 - head/sys/dev/acpica

2016-04-27 Thread Andrew Turner
On Wed, 27 Apr 2016 16:57:28 +0200 Zbigniew Bodek wrote: > Hello, > > I'm forwarding a message from Michal Stanek who found some problems > wit this commit. Please see below: > > --- > I'm getting a lot of ACPI error messages on

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

2016-04-26 Thread Andrew Turner
Author: andrew Date: Tue Apr 26 14:21:39 2016 New Revision: 298639 URL: https://svnweb.freebsd.org/changeset/base/298639 Log: Disable ACPI on arm64 ad it has only had minimal testing and is causing boot issues when booting with FDT. It is planned to re-enable this at a later date.

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

2016-04-26 Thread Andrew Turner
Author: andrew Date: Tue Apr 26 13:16:45 2016 New Revision: 298637 URL: https://svnweb.freebsd.org/changeset/base/298637 Log: Stop including machine/fdt.h from the fdt uart code, it's unneeded. Sponsored by: ABT Systems Ltd Modified: head/sys/dev/uart/uart_cpu_fdt.c Modified:

svn commit: r298626 - head/bin/csh

2016-04-26 Thread Andrew Turner
Author: andrew Date: Tue Apr 26 11:39:32 2016 New Revision: 298626 URL: https://svnweb.freebsd.org/changeset/base/298626 Log: Stop using sbrk in csh. This is a legacy interface and its use within csh is invalid. It is used to find the size of allocated memory. As malloc may allocate memory

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

2016-04-25 Thread Andrew Turner
Author: andrew Date: Mon Apr 25 17:32:08 2016 New Revision: 298586 URL: https://svnweb.freebsd.org/changeset/base/298586 Log: Use the yield instruction in the arm64 cpu_spinwait. This instruction is a hint to the hardware the software is not performing a task. Sponsored by: ABT Systems

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

2016-04-21 Thread Andrew Turner
Author: andrew Date: Thu Apr 21 14:04:56 2016 New Revision: 298403 URL: https://svnweb.freebsd.org/changeset/base/298403 Log: Make the GIC SGI global variables static, they are only ever used within within this file. Approved by: ABT Systems Ltd Sponsored by: The FreeBSD Foundation

svn commit: r298344 - head/sys/arm64/cavium

2016-04-20 Thread Andrew Turner
Author: andrew Date: Wed Apr 20 14:12:40 2016 New Revision: 298344 URL: https://svnweb.freebsd.org/changeset/base/298344 Log: Group the ThunderX PCIe PEM newbus methods to help find them. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r298202 - head/sys/dev/pci

2016-04-18 Thread Andrew Turner
Author: andrew Date: Mon Apr 18 10:37:50 2016 New Revision: 298202 URL: https://svnweb.freebsd.org/changeset/base/298202 Log: Pull the MSI/MSI-X handling functions out to help with INTRNG integration. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r298068 - in head/sys: arm/allwinner arm/altera/socfpga arm/amlogic/aml8726 arm/annapurna/alpine arm/arm arm/at91 arm/broadcom/bcm2835 arm/conf arm/freescale/imx arm/freescale/vybrid ar...

2016-04-15 Thread Andrew Turner
Author: andrew Date: Fri Apr 15 16:05:41 2016 New Revision: 298068 URL: https://svnweb.freebsd.org/changeset/base/298068 Log: Rename ARM_INTRNG and MIPS_INTRNG to INTRNG. This will help with machine independent code that needs to know about INTRNG such as PCI drivers. Obtained from:

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

2016-04-15 Thread Andrew Turner
Author: andrew Date: Fri Apr 15 14:28:34 2016 New Revision: 298054 URL: https://svnweb.freebsd.org/changeset/base/298054 Log: Add a flag field to struct gic_irqsrc and use it to mark when we should write to the End of Interrupt (EOI) register before handling the interrupt. This should be a

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

2016-04-15 Thread Andrew Turner
Author: andrew Date: Fri Apr 15 14:19:25 2016 New Revision: 298051 URL: https://svnweb.freebsd.org/changeset/base/298051 Log: Add initial GICv2m support to the arm GIC driver. This will be used to support MSI and MSI-X interrupts, however intrng needs updates before this can happen.

svn commit: r297972 - head/sys/conf

2016-04-14 Thread Andrew Turner
Author: andrew Date: Thu Apr 14 15:52:11 2016 New Revision: 297972 URL: https://svnweb.freebsd.org/changeset/base/297972 Log: Sort so pic_if.m is in the correct location with the other kern files. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-04-14 Thread Andrew Turner
Author: andrew Date: Thu Apr 14 14:44:23 2016 New Revision: 297969 URL: https://svnweb.freebsd.org/changeset/base/297969 Log: Fix the types for the start, end, and count arguments to arm_gic_fdt_alloc_resource. These were the old u_long where they should be rman_res_t. Both of these are the

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

2016-04-14 Thread Andrew Turner
Author: andrew Date: Thu Apr 14 10:43:28 2016 New Revision: 297958 URL: https://svnweb.freebsd.org/changeset/base/297958 Log: Set the upper limit of the DMAP region to the limit of RAM as was found in the physmap. This will reduce the likelihood of an issue where we have device memory

Re: svn commit: r297954 - in head/sys: boot/efi/loader/arch/amd64 boot/i386/libi386 x86/acpica

2016-04-14 Thread Andrew Turner
On Thu, 14 Apr 2016 04:59:51 + (UTC) Warner Losh wrote: > Author: imp > Date: Thu Apr 14 04:59:51 2016 > New Revision: 297954 > URL: https://svnweb.freebsd.org/changeset/base/297954 > > Log: > Deprecate using hints.acpi.0.rsdp to communicate the RSDP to the > system.

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

2016-04-13 Thread Andrew Turner
Author: andrew Date: Wed Apr 13 11:43:03 2016 New Revision: 297917 URL: https://svnweb.freebsd.org/changeset/base/297917 Log: Document the memory ranges within the kernel region to help with debugging to track down which region an address is from. Obtained from:ABT Systems Ltd

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

2016-04-13 Thread Andrew Turner
Author: andrew Date: Wed Apr 13 09:44:32 2016 New Revision: 297914 URL: https://svnweb.freebsd.org/changeset/base/297914 Log: Increase the arm64 kernel address space to 512GB, and the DMAP region to 2TB. The latter can be increased in 512GB chunks by adjusting the lower address, however

svn commit: r297620 - head/lib/libc/arm/aeabi

2016-04-06 Thread Andrew Turner
Author: andrew Date: Wed Apr 6 16:50:18 2016 New Revision: 297620 URL: https://svnweb.freebsd.org/changeset/base/297620 Log: Revert a change that sneeked with 297619 Modified: head/lib/libc/arm/aeabi/aeabi_vfp.h Modified: head/lib/libc/arm/aeabi/aeabi_vfp.h

Re: svn commit: r297619 - in head/lib/libc: aarch64/gen aarch64/sys arm/aeabi gen include

2016-04-06 Thread Andrew Turner
On Wed, 6 Apr 2016 16:09:10 + (UTC) Andrew Turner <and...@freebsd.org> wrote: > Author: andrew > Date: Wed Apr 6 16:09:10 2016 > New Revision: 297619 > URL: https://svnweb.freebsd.org/changeset/base/297619 > > Log: > Disable support for compat syscalls on arm64.

svn commit: r297619 - in head/lib/libc: aarch64/gen aarch64/sys arm/aeabi gen include

2016-04-06 Thread Andrew Turner
Author: andrew Date: Wed Apr 6 16:09:10 2016 New Revision: 297619 URL: https://svnweb.freebsd.org/changeset/base/297619 Log: Disable support for compat syscalls on arm64. These symbols were never shipped since arm64 exists only on 11+. Submitted by: brooks Reviewed by: emaste, imp

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

2016-04-06 Thread Andrew Turner
Author: andrew Date: Wed Apr 6 14:12:00 2016 New Revision: 297616 URL: https://svnweb.freebsd.org/changeset/base/297616 Log: Cleanup the early pagetable creation code in preperation for increasing the size of the arm64 DMAP region. Approved by: ABT Systems Ltd Sponsored by: The

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

2016-04-06 Thread Andrew Turner
Author: andrew Date: Wed Apr 6 14:16:37 2016 New Revision: 297617 URL: https://svnweb.freebsd.org/changeset/base/297617 Log: Use PHYS_IN_DMAP to check if a physical address is within the DMAP region. Approved by: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-04-06 Thread Andrew Turner
Author: andrew Date: Wed Apr 6 14:08:10 2016 New Revision: 297615 URL: https://svnweb.freebsd.org/changeset/base/297615 Log: Allow vmparam.h to be included from assembly files on arm64. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-04-04 Thread Andrew Turner
Author: andrew Date: Mon Apr 4 17:04:33 2016 New Revision: 297561 URL: https://svnweb.freebsd.org/changeset/base/297561 Log: Add a table to map from the FreeBSD CPUID space to the GIC CPUID space. On many SoCs these two are the same, however there is no requirement for this to be the case,

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

2016-04-04 Thread Andrew Turner
Author: andrew Date: Mon Apr 4 15:13:17 2016 New Revision: 297556 URL: https://svnweb.freebsd.org/changeset/base/297556 Log: Reduce the diff for when we switch to intrng. The IPI interrupts will be split out to multiple handlers. Obtained from:ABT Systems Ltd Sponsored by: The

svn commit: r297552 - head/sys/kern

2016-04-04 Thread Andrew Turner
Author: andrew Date: Mon Apr 4 10:52:43 2016 New Revision: 297552 URL: https://svnweb.freebsd.org/changeset/base/297552 Log: Include sys/rman.h directly rather than relying on header pollution. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r297550 - head/sys/dev/extres/clk

2016-04-04 Thread Andrew Turner
Author: andrew Date: Mon Apr 4 10:03:06 2016 New Revision: 297550 URL: https://svnweb.freebsd.org/changeset/base/297550 Log: Fix a format string when uint64_t is not unsigned long long by casting through uintmax_t. Modified: head/sys/dev/extres/clk/clk.c Modified:

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

2016-03-31 Thread Andrew Turner
dified: head/sys/arm64/arm64/pmap.c == --- head/sys/arm64/arm64/pmap.c Thu Mar 31 09:55:21 2016(r297445) +++ head/sys/arm64/arm64/pmap.c Thu Mar 31 11:07:24 2016(r297446) @@ -11,7 +11,7 @@ * All rights reserved. * Copyright (c) 2014 Andrew Turner * All righ

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

2016-03-29 Thread Andrew Turner
Author: andrew Date: Tue Mar 29 13:51:26 2016 New Revision: 297390 URL: https://svnweb.freebsd.org/changeset/base/297390 Log: Read the CPU ID for the current CPU from the GIC. The GIC may have a different ID space than the kernel. Because of this we need to read the ID from the hardware.

svn commit: r297295 - head/sys/arm/allwinner

2016-03-26 Thread Andrew Turner
Author: andrew Date: Sat Mar 26 17:49:46 2016 New Revision: 297295 URL: https://svnweb.freebsd.org/changeset/base/297295 Log: Only define the platform methods for the Allwinner platforms we are building for. Sponsored by: ABT Systems Ltd Modified:

Re: svn commit: r297284 - in head/sys/arm: arm at91 conf include

2016-03-26 Thread Andrew Turner
On Sat, 26 Mar 2016 15:07:55 +0100 Oliver Pinter wrote: > Hi Michal! > > Is there any chance to add similar workaround to arm64 kernel too? > There are some arm64 devices without UEFI for example Odroid C2 and > Beelink Mini MX... No, for these you should port

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

2016-03-22 Thread Andrew Turner
Author: andrew Date: Tue Mar 22 08:36:25 2016 New Revision: 297184 URL: https://svnweb.freebsd.org/changeset/base/297184 Log: Use the saved program state register to detect when an exception frame is from userpsace. Previously we could have triggered a panic by trying to jump to a kernel

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

2016-03-19 Thread Andrew Turner
Author: andrew Date: Fri Mar 18 10:01:25 2016 New Revision: 297017 URL: https://svnweb.freebsd.org/changeset/base/297017 Log: Remove the invalid L0_BLOCK definition. ARMv8 doesn't support block translation in the level 0 descriptor. Obtained from:ABT Systems Ltd Sponsored by:

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

2016-03-19 Thread Andrew Turner
Author: andrew Date: Fri Mar 18 16:32:22 2016 New Revision: 297030 URL: https://svnweb.freebsd.org/changeset/base/297030 Log: Move the opt_ files to be included first so their definitions can be used from within all further included files. Obtained from:ABT Systems Ltd

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

2016-03-19 Thread Andrew Turner
Author: andrew Date: Fri Mar 18 16:29:58 2016 New Revision: 297029 URL: https://svnweb.freebsd.org/changeset/base/297029 Log: Rename COUNT_IPI to INTR_IPI_COUNT to reduce the diff with intrng. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-03-19 Thread Andrew Turner
Author: andrew Date: Thu Mar 17 08:40:58 2016 New Revision: 296981 URL: https://svnweb.freebsd.org/changeset/base/296981 Log: Make it an error to build an ARM kernel with COMPAT_FREEBSDn where n < 10. We changed the ABI for ARM in 10, an removed support for the old ABI in 11, as such

Re: svn commit: r296891 - in head/sys: cam dev/arcmsr dev/iir dev/isci dev/ncr dev/ppbus

2016-03-19 Thread Andrew Turner
On Tue, 15 Mar 2016 05:17:29 + (UTC) Warner Losh wrote: ... > Modified: head/sys/dev/ppbus/vpo.c > == > --- head/sys/dev/ppbus/vpo.c Tue Mar 15 04:56:39 2016 > (r296890) +++ head/sys/dev/ppbus/vpo.c

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

2016-03-19 Thread Andrew Turner
Author: andrew Date: Fri Mar 18 16:18:29 2016 New Revision: 297028 URL: https://svnweb.freebsd.org/changeset/base/297028 Log: Reduce the diff with intrng by renaming similar functions. This is a noop, but will help move to use the common interrupt handling code later. Obtained from:

svn commit: r296938 - head/sys/arm/conf

2016-03-18 Thread Andrew Turner
Author: andrew Date: Wed Mar 16 15:31:09 2016 New Revision: 296938 URL: https://svnweb.freebsd.org/changeset/base/296938 Log: Remove old COMPAT_FREEBSD options from the ARM kernel configs. We replaced the ABI in 10.0, and have removed support for the old ABI in 11. As such any of these

Re: svn commit: r296825 - in head/sys: arm/conf arm/mv arm/mv/armada38x boot/fdt/dts/arm

2016-03-14 Thread Andrew Turner
On Mon, 14 Mar 2016 07:05:41 + (UTC) Wojciech Macek wrote: > Author: wma > Date: Mon Mar 14 07:05:41 2016 > New Revision: 296825 > URL: https://svnweb.freebsd.org/changeset/base/296825 > > Log: > Make MPIC compatible with ARM_INTRNG > > After ARM_INTRNG

Re: svn commit: r296861 - in head/sys: arm/arm powerpc/powerpc

2016-03-14 Thread Andrew Turner
On Mon, 14 Mar 2016 14:55:15 + (UTC) "Bjoern A. Zeeb" wrote: > Author: bz > Date: Mon Mar 14 14:55:15 2016 > New Revision: 296861 > URL: https://svnweb.freebsd.org/changeset/base/296861 > > Log: > Only check for SYS_freebsd6_lseek if the syscall code is defined. >

svn commit: r296713 - head/sys/boot/efi/boot1

2016-03-11 Thread Andrew Turner
Author: andrew Date: Sat Mar 12 06:50:16 2016 New Revision: 296713 URL: https://svnweb.freebsd.org/changeset/base/296713 Log: Print the correct size of loader.efi when failing to load it into memory. Obtained from:AsiaBSDCon Sponsored by: ABT Systems Ltd Modified:

svn commit: r296426 - in head/sys/arm: allwinner allwinner/a20 conf

2016-03-06 Thread Andrew Turner
Author: andrew Date: Sun Mar 6 11:41:08 2016 New Revision: 296426 URL: https://svnweb.freebsd.org/changeset/base/296426 Log: Add SMP support for the Allwinner A31 and A31s. This updated the existing code for the A20 to use the new PLATFORM_SMP interface, and extends it to add support for

svn commit: r296408 - head/sys/arm/allwinner

2016-03-05 Thread Andrew Turner
Author: andrew Date: Sat Mar 5 13:17:53 2016 New Revision: 296408 URL: https://svnweb.freebsd.org/changeset/base/296408 Log: Add support to enable/disable both the EHCI and OHCI Allwinner clocks. This adds a lock to ensure only a single device is accessing the hardware. A reference count

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

2016-03-02 Thread Andrew Turner
Author: andrew Date: Wed Mar 2 14:33:46 2016 New Revision: 296313 URL: https://svnweb.freebsd.org/changeset/base/296313 Log: The cpu_reset_needs_v4_MMU_disable variable is only used in locore-v4.S, only define it when building for ARMv5 or prior. Sponsored by: ABT Systems Ltd Modified:

svn commit: r296265 - in head/sys: arm/arm dev/fdt mips/beri

2016-03-01 Thread Andrew Turner
Author: andrew Date: Tue Mar 1 11:39:07 2016 New Revision: 296265 URL: https://svnweb.freebsd.org/changeset/base/296265 Log: Make the memory size returned from fdt_get_mem_regions a 64-bit type. This is the physical memory size so may be larger than a u_long can hold, e.g. on ARM with LPAE

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

2016-03-01 Thread Andrew Turner
Author: andrew Date: Tue Mar 1 09:51:36 2016 New Revision: 296258 URL: https://svnweb.freebsd.org/changeset/base/296258 Log: Stop setting the memory size in the arm EFI and FDT code, we don't use it. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/arm/machdep.c Modified:

svn commit: r296257 - in head/sys: arm/mv dev/cesa dev/fdt riscv/riscv

2016-03-01 Thread Andrew Turner
Author: andrew Date: Tue Mar 1 09:45:27 2016 New Revision: 296257 URL: https://svnweb.freebsd.org/changeset/base/296257 Log: Make the fdt_get_mem_regions memsize argument optional. It's only used in by a few callers. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/mv/mv_common.c

svn commit: r296192 - head/sys

2016-02-29 Thread Andrew Turner
Author: andrew Date: Mon Feb 29 16:39:27 2016 New Revision: 296192 URL: https://svnweb.freebsd.org/changeset/base/296192 Log: Add riscv to the list of architectures for cscope. Modified: head/sys/Makefile Modified: head/sys/Makefile

svn commit: r296158 - in head/sys: arm/arm arm/conf arm/qemu conf

2016-02-28 Thread Andrew Turner
--- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm/qemu/virt_mp.h Sun Feb 28 13:43:58 2016(r296158) @@ -0,0 +1,35 @@ +/*- + * Copyright (c) 2016 Andrew Turner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or

svn commit: r296155 - in head/sys: arm/annapurna/alpine arm/broadcom/bcm2835 arm/qemu conf

2016-02-28 Thread Andrew Turner
Author: andrew Date: Sun Feb 28 09:35:37 2016 New Revision: 296155 URL: https://svnweb.freebsd.org/changeset/base/296155 Log: Build ofw_cpu.c on all ARM configs using FDT. As we mve towards using the Linux dts files these are more likely to have cpu nodes we can attach to. Sponsored by:

svn commit: r296105 - head/sys/arm/conf

2016-02-26 Thread Andrew Turner
Author: andrew Date: Fri Feb 26 18:54:26 2016 New Revision: 296105 URL: https://svnweb.freebsd.org/changeset/base/296105 Log: Make the CUBIEBOARD config include the A10 config with a few needed additions. This is used by the release scripts so we need to keep it around for now.

svn commit: r296100 - in head/sys/arm: allwinner/a20 altera/socfpga amlogic/aml8726 annapurna/alpine arm broadcom/bcm2835 freescale/imx include mv mv/armada38x mv/armadaxp qemu rockchip samsung/exy...

2016-02-26 Thread Andrew Turner
Author: andrew Date: Fri Feb 26 16:04:47 2016 New Revision: 296100 URL: https://svnweb.freebsd.org/changeset/base/296100 Log: Almost all copies of platform_mp_init_secondary just called intr_pic_init_secondary. Replace them with a direct call. On BCM2836 and ARMADA XP we need to add this

svn commit: r296098 - in head/sys/arm: allwinner/a20 altera/socfpga amlogic/aml8726 annapurna/alpine arm broadcom/bcm2835 freescale/imx include mv/armada38x mv/armadaxp qemu rockchip samsung/exynos...

2016-02-26 Thread Andrew Turner
Author: andrew Date: Fri Feb 26 15:54:34 2016 New Revision: 296098 URL: https://svnweb.freebsd.org/changeset/base/296098 Log: Remove platform_mp_probe as it's almost identical on most ARM SoCs, and slightly wrong on the others. We should just check if mp_ncpus is set to more than one CPU as

svn commit: r296093 - in head/sys: arm/allwinner arm/allwinner/a20 arm/allwinner/a31 dev/iicbus/twsi

2016-02-26 Thread Andrew Turner
Author: andrew Date: Fri Feb 26 13:53:09 2016 New Revision: 296093 URL: https://svnweb.freebsd.org/changeset/base/296093 Log: Add the start of support for the Allwinner A31 clocks. It only adds support for the i2c, mmc, and gmac clocks. Further clocks can be added as needed. Submitted

svn commit: r296070 - head/sys/arm/qemu

2016-02-25 Thread Andrew Turner
Author: andrew Date: Thu Feb 25 22:13:43 2016 New Revision: 296070 URL: https://svnweb.freebsd.org/changeset/base/296070 Log: Fix a mistake that crept in when moving between git and svn, pic_ipi_send should not be called from platform_mp_init_secondary. Sponsored by: ABT Systems Ltd

svn commit: r296066 - in head/sys/arm: allwinner/a20 altera/socfpga amlogic/aml8726 annapurna/alpine arm broadcom/bcm2835 freescale/imx include mv/armada38x mv/armadaxp qemu rockchip samsung/exynos...

2016-02-25 Thread Andrew Turner
Author: andrew Date: Thu Feb 25 20:48:23 2016 New Revision: 296066 URL: https://svnweb.freebsd.org/changeset/base/296066 Log: Remove platform_ipi_send, it's an unneeded as all implementations are identical. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/allwinner/a20/a20_mp.c

svn commit: r296041 - head/sys/arm/allwinner

2016-02-25 Thread Andrew Turner
Author: andrew Date: Thu Feb 25 16:50:36 2016 New Revision: 296041 URL: https://svnweb.freebsd.org/changeset/base/296041 Log: Add support for the Allwinner A31 watchdog to the existing A10 watchdog driver. This mostly involves selecting the register offsets to use at runtime based on the

svn commit: r296029 - in head/sys: arm/allwinner arm/allwinner/a31 conf

2016-02-25 Thread Andrew Turner
Author: andrew Date: Thu Feb 25 12:17:41 2016 New Revision: 296029 URL: https://svnweb.freebsd.org/changeset/base/296029 Log: Add the Allwinner A31 and A31s padconf support. It's currently unused, but will be needed when we bring in further support for these SoCs. Submitted by: Emmanuel

Re: svn commit: r295890 - in head/sys: conf riscv/riscv

2016-02-22 Thread Andrew Turner
On Mon, 22 Feb 2016 14:01:46 + (UTC) Ruslan Bukin wrote: > Author: br > Date: Mon Feb 22 14:01:46 2016 > New Revision: 295890 > URL: https://svnweb.freebsd.org/changeset/base/295890 > > Log: > Provide stack(9) MD stubs for RISC-V so ktr(9) can be compiled in. > > Added:

Re: svn commit: r295768 - head/usr.sbin/iostat

2016-02-21 Thread Andrew Turner
On Thu, 18 Feb 2016 20:08:01 + (UTC) Alan Somers wrote: > Author: asomers > Date: Thu Feb 18 20:08:01 2016 > New Revision: 295768 > URL: https://svnweb.freebsd.org/changeset/base/295768 > > Log: > Fix compiler warnings in iostat > > Raise WARNS from 1 to 6 (the

svn commit: r295869 - in head/sys/boot/efi: include libefi

2016-02-21 Thread Andrew Turner
Author: andrew Date: Sun Feb 21 21:20:23 2016 New Revision: 295869 URL: https://svnweb.freebsd.org/changeset/base/295869 Log: Make efi_time and EFI_GetTimeOfDay static, neither are used by other parts of the efi code. Sponsored by: ABT Systems Ltd Modified:

svn commit: r295842 - head/sys/boot/efi/loader/arch/arm64

2016-02-20 Thread Andrew Turner
Author: andrew Date: Sat Feb 20 17:29:04 2016 New Revision: 295842 URL: https://svnweb.freebsd.org/changeset/base/295842 Log: Add a missing call to dev_cleanup from the arm64 loader.efi. Sponsored by: ABT Systems Ltd Modified: head/sys/boot/efi/loader/arch/arm64/exec.c Modified:

svn commit: r295808 - head/sys/arm/allwinner

2016-02-19 Thread Andrew Turner
Author: andrew Date: Fri Feb 19 14:15:31 2016 New Revision: 295808 URL: https://svnweb.freebsd.org/changeset/base/295808 Log: Add initial support for the Allwinner A31i and A31s. This just adds the FDT platform code to detect when we are booting on one of these SoCs. The driver changes will

svn commit: r295807 - head/sys/arm/mv

2016-02-19 Thread Andrew Turner
Author: andrew Date: Fri Feb 19 14:05:28 2016 New Revision: 295807 URL: https://svnweb.freebsd.org/changeset/base/295807 Log: Include ofw_bus_subr.h before ofw_pci.h for the definition of struct ofw_bus_iinfo. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/mv/mv_pci.c Modified:

svn commit: r295711 - in head/sys: arm/allwinner arm/allwinner/a20 arm/conf boot/fdt/dts/arm conf

2016-02-17 Thread Andrew Turner
Author: andrew Date: Wed Feb 17 18:28:03 2016 New Revision: 295711 URL: https://svnweb.freebsd.org/changeset/base/295711 Log: Move the Allwinner kernels to use fdt_pinctrl. This will read the pin configuration from the FDT data, then set the pins into the requested state. As part of this

svn commit: r295662 - in head/sys: arm/arm arm64/arm64 dev/ofw dev/tsec dev/uart dev/vt/hw/ofwfb mips/mips powerpc/ofw

2016-02-16 Thread Andrew Turner
Author: andrew Date: Tue Feb 16 15:18:12 2016 New Revision: 295662 URL: https://svnweb.freebsd.org/changeset/base/295662 Log: Allow callers of OF_decode_addr to get the size of the found mapping. This will allow for code that uses the old fdt_get_range and fdt_regsize functions to find a

svn commit: r295658 - head/sys/arm/allwinner

2016-02-16 Thread Andrew Turner
Author: andrew Date: Tue Feb 16 11:51:54 2016 New Revision: 295658 URL: https://svnweb.freebsd.org/changeset/base/295658 Log: Add a sysctl to read the internal temperature of the AXP209 Power Management IC. Submitted by: Jared McNeill Differential Revision:

svn commit: r295657 - in head/sys: arm/allwinner arm/conf boot/fdt/dts/arm

2016-02-16 Thread Andrew Turner
Author: andrew Date: Tue Feb 16 11:45:46 2016 New Revision: 295657 URL: https://svnweb.freebsd.org/changeset/base/295657 Log: Add an analog audio driver for the audio codec found on the Allwinner A10/A20 SoC. Based loosely on the submitters NetBSD driver, tested on Cubieboard 2. Playback

svn commit: r295654 - head/sys/arm/allwinner

2016-02-16 Thread Andrew Turner
Author: andrew Date: Tue Feb 16 11:03:21 2016 New Revision: 295654 URL: https://svnweb.freebsd.org/changeset/base/295654 Log: Only read the power state register when we will be using its value. While here remove magic shifts, and cleanup pwr_name. Sponsored by: ABT Systems Ltd Modified:

svn commit: r295635 - in head/sys: arm/allwinner arm/conf boot/fdt/dts/arm

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 19:56:35 2016 New Revision: 295635 URL: https://svnweb.freebsd.org/changeset/base/295635 Log: Add support for the Allwinner DMA controller. This will be used by the at least the audio codec driver currently in review. Submitted by: Jared McNeill

svn commit: r295634 - head/sys/arm/allwinner

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 19:31:23 2016 New Revision: 295634 URL: https://svnweb.freebsd.org/changeset/base/295634 Log: Add support for the AXP209 Power System Management IC. This allows boards with this and an Allwinner SoC to power off. Submitted by: Emmanuel Vadot

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

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 19:14:24 2016 New Revision: 295633 URL: https://svnweb.freebsd.org/changeset/base/295633 Log: Set sc->clkfreq removed in r295470 Reported by: Jared McNeill Pointy-hat to:andrew Modified: head/sys/arm/arm/generic_timer.c

svn commit: r295630 - head/sys/dev/iicbus/twsi

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 17:14:10 2016 New Revision: 295630 URL: https://svnweb.freebsd.org/changeset/base/295630 Log: Fix the spelling of OF_getencprop. It will fix the data correctly for the endian of the CPU so there is no need to call fdt32_to_cpu. Sponsored by: ABT Systems

svn commit: r295629 - head/sys/kern

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 17:05:03 2016 New Revision: 295629 URL: https://svnweb.freebsd.org/changeset/base/295629 Log: Remove an unused FDT header, fdt_common.h should only be needed in a few places, mostly in sys/dev/fdt and legacy code. Sponsored by: ABT Systems Ltd Modified:

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

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 16:55:44 2016 New Revision: 295628 URL: https://svnweb.freebsd.org/changeset/base/295628 Log: Remove an unused static inline function. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/arm/syscall.c Modified: head/sys/arm/arm/syscall.c

svn commit: r295626 - in head/sys: arm/allwinner arm/conf arm/mv dev/iicbus/twsi

2016-02-15 Thread Andrew Turner
Author: andrew Date: Mon Feb 15 15:11:26 2016 New Revision: 295626 URL: https://svnweb.freebsd.org/changeset/base/295626 Log: Add support for the Allwinner i2c device. This is similar to the existing Marvell twsi part, however uses different register locations, as such split the existing

svn commit: r295622 - in head/sys: arm/mv conf dev/iicbus/twsi

2016-02-14 Thread Andrew Turner
Author: andrew Date: Sun Feb 14 23:51:13 2016 New Revision: 295622 URL: https://svnweb.freebsd.org/changeset/base/295622 Log: Move the twsi driver source to be under iicbus. It is in a separate directory as it is expected multiple attachments will be added for the SoC families that use this

svn commit: r295621 - in head/sys/arm: conf mv

2016-02-14 Thread Andrew Turner
Author: andrew Date: Sun Feb 14 23:42:07 2016 New Revision: 295621 URL: https://svnweb.freebsd.org/changeset/base/295621 Log: Create the twsi device option in preparation to move the driver to a common location. The device is also found in Allwinner SoCs. Sponsored by: ABT Systems Ltd

svn commit: r295612 - head/sys/arm/mv

2016-02-14 Thread Andrew Turner
Author: andrew Date: Sun Feb 14 16:38:32 2016 New Revision: 295612 URL: https://svnweb.freebsd.org/changeset/base/295612 Log: Remove an unused include. Modified: head/sys/arm/mv/twsi.c Modified: head/sys/arm/mv/twsi.c

<    4   5   6   7   8   9   10   11   12   13   >