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: 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: 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

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: 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: 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

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: 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: 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: 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

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: 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: 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: 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

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: 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:

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: 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: 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: 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: 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: 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: 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: 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

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: 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:

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

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: 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: 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: 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: r300300 - head/sys/arm64/arm64

2016-05-20 Thread Andrew Turner
Author: andrew Date: Fri May 20 13:11:07 2016 New Revision: 300300 URL: https://svnweb.freebsd.org/changeset/base/300300 Log: Add more useful GICv3 register definitions. While here fix GITS_CBASER_CACHE_MASK to use the correct shift macro. Obtained from:ABT Systems Ltd

Re: svn commit: r300206 - head/sys/arm64/include

2016-05-19 Thread Andrew Turner
On Thu, 19 May 2016 07:22:51 -0700 John Baldwin <j...@freebsd.org> wrote: > On Thursday, May 19, 2016 02:00:18 PM Andrew Turner wrote: > > Author: andrew > > Date: Thu May 19 14:00:18 2016 > > New Revision: 300206 > > URL: https://svnweb.freebsd.org/c

svn commit: r300290 - in head/sys: arm64/cavium dev/pci

2016-05-20 Thread Andrew Turner
Author: andrew Date: Fri May 20 08:29:00 2016 New Revision: 300290 URL: https://svnweb.freebsd.org/changeset/base/300290 Log: Handle PCI_RES_BUS on the generic and ThunderX PCIe drivers. This has been tested on the Pass 1.1 and 2.0 ThunderX machines in the Netperf cluster. Reviewed by:

svn commit: r300303 - in head: . contrib/netbsd-tests/lib/libc/gen contrib/netbsd-tests/lib/libc/sys lib/libc/aarch64 lib/libc/aarch64/sys sys/sys

2016-05-20 Thread Andrew Turner
Author: andrew Date: Fri May 20 15:04:48 2016 New Revision: 300303 URL: https://svnweb.freebsd.org/changeset/base/300303 Log: Remove brk and sbrk from arm64. They were defined in The Single UNIX Specification, Version 2, but marked as legacy, and have been removed from later specifications.

svn commit: r300510 - head/sys/kern

2016-05-23 Thread Andrew Turner
Author: andrew Date: Mon May 23 15:26:35 2016 New Revision: 300510 URL: https://svnweb.freebsd.org/changeset/base/300510 Log: Add the needed hwpmc hooks to subr_intr.c. This is needed for the correct operation of hwpmc on, for example, arm64 with intrng. Obtained from:ABT Systems

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

2016-05-19 Thread Andrew Turner
Author: andrew Date: Thu May 19 14:00:18 2016 New Revision: 300206 URL: https://svnweb.freebsd.org/changeset/base/300206 Log: Define PCI_RES_BUS for NEW_PCIB Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/include/resource.h

Re: svn commit: r300348 - head

2016-05-23 Thread Andrew Turner
On Mon, 23 May 2016 11:34:00 +0100 Andrew Turner <and...@fubar.geek.nz> wrote: > On Sat, 21 May 2016 01:32:04 + (UTC) > Bryan Drewery <bdrew...@freebsd.org> wrote: > > > Author: bdrewery > > Date: Sat May 21 01:32:04 2016 > > New Revision: 300348 > &

Re: svn commit: r300348 - head

2016-05-23 Thread Andrew Turner
On Sat, 21 May 2016 01:32:04 + (UTC) Bryan Drewery wrote: > Author: bdrewery > Date: Sat May 21 01:32:04 2016 > New Revision: 300348 > URL: https://svnweb.freebsd.org/changeset/base/300348 > > Log: > Move external toolchain support earlier. > > This is to

svn commit: r300604 - head/sys/kern

2016-05-24 Thread Andrew Turner
Author: andrew Date: Tue May 24 12:06:56 2016 New Revision: 300604 URL: https://svnweb.freebsd.org/changeset/base/300604 Log: Limit calling pmc_hook to when the interrupt comes while running userspace. We may enable interrupts from within the callback, e.g. in a data abort during copyin. If

svn commit: r300611 - head/sys/cddl/dev/dtrace/aarch64

2016-05-24 Thread Andrew Turner
Author: andrew Date: Tue May 24 13:57:23 2016 New Revision: 300611 URL: https://svnweb.freebsd.org/changeset/base/300611 Log: Mark all memory before the kernel as toxic to DTrace. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

svn commit: r300406 - head/lib/csu/aarch64

2016-05-22 Thread Andrew Turner
Author: andrew Date: Sun May 22 08:20:30 2016 New Revision: 300406 URL: https://svnweb.freebsd.org/changeset/base/300406 Log: Stop dereferencing _end in crt1.c. This was only needed for brk/sbrk so is no longer needed. Sponsored by: ABT Systems Ltd Modified:

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

2016-05-20 Thread Andrew Turner
Author: andrew Date: Fri May 20 15:43:51 2016 New Revision: 300308 URL: https://svnweb.freebsd.org/changeset/base/300308 Log: Extract the correct bits from the GICD_TYPER register. The interrupt count is encoded in the bottom 5 bits. Obtained from:ABT Systems Ltd Sponsored by:

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

2016-05-20 Thread Andrew Turner
On Fri, 20 May 2016 11:44:44 +0200 Wojciech Macek wrote: > Where can I find any details about how was this change tested or > reviewed? Apparently it breaks AHCI on armv8. Log below. > > Wojtek > > > mountroot> ufs:/dev/ada0s2 > > Trying to mount root from ufs:/dev/ada0s2

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

2016-05-20 Thread Andrew Turner
Author: andrew Date: Fri May 20 12:38:48 2016 New Revision: 300299 URL: https://svnweb.freebsd.org/changeset/base/300299 Log: Filter out BUS_DMASYNC_POSTWRITE sync operations, there is nothing for us to do on these. Reported by: wma Obtained from:ABT Systems Ltd Sponsored

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

2016-05-20 Thread Andrew Turner
Author: andrew Date: Fri May 20 08:43:18 2016 New Revision: 300291 URL: https://svnweb.freebsd.org/changeset/base/300291 Log: Enable NEW_PCIB on arm64. Obtained from:ABT Systems Ltd Relnotes: yes Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/conf/DEFAULTS

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: 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: 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: 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

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

2016-05-17 Thread Andrew Turner
ds > zbb > > 2016-05-16 16:07 GMT+02:00 Andrew Turner <and...@freebsd.org>: > > > Author: andrew > > Date: Mon May 16 14:07:43 2016 > > New Revision: 299944 > > URL: https://svnweb.freebsd.org/changeset/base/299944 > > > > Log: > >

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

2016-05-17 Thread Andrew Turner
Author: andrew Date: Tue May 17 12:46:50 2016 New Revision: 300048 URL: https://svnweb.freebsd.org/changeset/base/300048 Log: Clean up the GICv3 intrng code: * In gic_v3_attach free the correct data on failure. * Implement gic_v3_teardown_intr. * Update the panic string when

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: 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: 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: 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: 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: 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: 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: 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: r300144 - head/sys/arm/include

2016-05-18 Thread Andrew Turner
Author: andrew Date: Wed May 18 13:09:52 2016 New Revision: 300144 URL: https://svnweb.freebsd.org/changeset/base/300144 Log: Implement atomic_cmpset_acq_64 and atomic_cmpset_rel_64 on arm and armeb. This should allow r300113 to build there. Sponsored by: ABT Systems Ltd Modified:

svn commit: r300149 - in head/sys: arm/allwinner arm/allwinner/a10 arm/arm arm/broadcom/bcm2835 arm/mv arm/nvidia arm/ti arm/ti/omap4 arm64/arm64 kern mips/mediatek mips/mips sys

2016-05-18 Thread Andrew Turner
Author: andrew Date: Wed May 18 15:05:44 2016 New Revision: 300149 URL: https://svnweb.freebsd.org/changeset/base/300149 Log: Return the struct intr_pic pointer from intr_pic_register. This will be needed in later changes where we may not be able to lock the pic list lock to perform a

Re: svn commit: r300149 - in head/sys: arm/allwinner arm/allwinner/a10 arm/arm arm/broadcom/bcm2835 arm/mv arm/nvidia arm/ti arm/ti/omap4 arm64/arm64 kern mips/mediatek mips/mips sys

2016-05-18 Thread Andrew Turner
On Wed, 18 May 2016 17:15:10 +0200 Zbigniew Bodek <z...@semihalf.com> wrote: > 2016-05-18 17:05 GMT+02:00 Andrew Turner <and...@freebsd.org>: ... > > #ifdef INTRNG > > xref = OF_xref_from_node(ofw_bus_get_node(dev)); > > - if (

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: 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: 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: 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: 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: 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:

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: 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: 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: 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: 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:

Re: svn commit: r302601 - in head/sys: arm/include arm64/include

2016-07-12 Thread Andrew Turner
On Tue, 12 Jul 2016 00:37:48 + (UTC) "Andrey A. Chernov" wrote: > Author: ache > Date: Tue Jul 12 00:37:48 2016 > New Revision: 302601 > URL: https://svnweb.freebsd.org/changeset/base/302601 > > Log: > I don't know why unsigned int is choosed for wchar_t here, but >

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

2016-07-14 Thread Andrew Turner
Author: andrew Date: Thu Jul 14 17:10:54 2016 New Revision: 302849 URL: https://svnweb.freebsd.org/changeset/base/302849 Log: Move structures only used by the GICv3 ITS driver from a shared header to the ITS driver file. There is no need for other drivers to need to know about these

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

2016-07-14 Thread Andrew Turner
Author: andrew Date: Thu Jul 14 17:16:51 2016 New Revision: 302851 URL: https://svnweb.freebsd.org/changeset/base/302851 Log: Move gic_v3_irqsrc into the GICv3 driver source as it's only needed there. Remove unused macros from the GICv3 header. Obtained from:ABT Systems Ltd MFC

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

2016-07-14 Thread Andrew Turner
Author: andrew Date: Thu Jul 14 16:52:18 2016 New Revision: 302847 URL: https://svnweb.freebsd.org/changeset/base/302847 Log: Remove support for the arm64 pre-INTRNG interrupt framework from the PCI driver. Support for this was removed in r302375. Obtained from:ABT Systems Ltd

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

2016-07-14 Thread Andrew Turner
Author: andrew Date: Thu Jul 14 17:05:25 2016 New Revision: 302848 URL: https://svnweb.freebsd.org/changeset/base/302848 Log: Remove the non-INTRNG support from the GICv3 interrupt controller driver. This is no longer needed. Obtained from:ABT Systems Ltd MFC after:1 month

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

2016-07-14 Thread Andrew Turner
Author: andrew Date: Thu Jul 14 17:23:49 2016 New Revision: 302852 URL: https://svnweb.freebsd.org/changeset/base/302852 Log: Remove the non-INTRNG support from the ThunderX PCIe drivers. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The FreeBSD Foundation

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

2016-07-14 Thread Andrew Turner
Author: andrew Date: Thu Jul 14 17:31:29 2016 New Revision: 302853 URL: https://svnweb.freebsd.org/changeset/base/302853 Log: Finish removing the non-INTRNG support from sys/arm64. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The FreeBSD Foundation

Re: svn commit: r301453 - in head/sys: arm/arm arm64/arm64 dev/fdt dev/gpio dev/iicbus dev/ofw dev/pci dev/vnic kern mips/mips sys

2016-07-22 Thread Andrew Turner
On Fri, 22 Jul 2016 13:19:32 -0700 John Baldwin <j...@freebsd.org> wrote: > On Thursday, July 21, 2016 10:51:20 PM Nathan Whitehorn wrote: > > > > On 07/21/16 14:35, John Baldwin wrote: > > > On Thursday, July 21, 2016 01:37:42 PM Andrew Turner wrote: >

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

2016-07-25 Thread Andrew Turner
Author: andrew Date: Mon Jul 25 15:57:13 2016 New Revision: 303307 URL: https://svnweb.freebsd.org/changeset/base/303307 Log: Rework how we number CPUs on arm64 to try and keep clusters together. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The FreeBSD

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

2016-07-25 Thread Andrew Turner
Author: andrew Date: Mon Jul 25 15:59:31 2016 New Revision: 303308 URL: https://svnweb.freebsd.org/changeset/base/303308 Log: Fix a typo in a string in a KASSERT to sanity check the CPU IDs. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The FreeBSD

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

2016-07-25 Thread Andrew Turner
Author: andrew Date: Mon Jul 25 14:49:15 2016 New Revision: 303299 URL: https://svnweb.freebsd.org/changeset/base/303299 Log: Enable the generic OHCI driver on arm64 Obtained from:ABT Systems Ltd MFC after:1 month Relnotes: yes Sponsored by: The FreeBSD Foundation

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

2016-07-24 Thread Andrew Turner
Author: andrew Date: Sun Jul 24 08:52:49 2016 New Revision: 303259 URL: https://svnweb.freebsd.org/changeset/base/303259 Log: Remove now unused functions from the FDT uart cpu driver. Obtained from:ABT Systems Ltd MFC after:1 month X-MFC with: r303100 Sponsored by: The

Re: svn commit: r303253 - head/sys/arm/ti

2016-07-24 Thread Andrew Turner
On Sun, 24 Jul 2016 01:31:41 + (UTC) Luiz Otavio O Souza wrote: > Author: loos > Date: Sun Jul 24 01:31:41 2016 > New Revision: 303253 > URL: https://svnweb.freebsd.org/changeset/base/303253 > > Log: > Allow the use of micphy on am335x devices. > > The Micrel PHYs

svn commit: r303475 - in head/sys: arm64/conf conf dev/usb/controller

2016-07-29 Thread Andrew Turner
ci.c Fri Jul 29 08:50:36 2016 (r303475) @@ -0,0 +1,220 @@ +/*- + * Copyright (c) 2012 Ganbold Tsagaankhuu <ganb...@freebsd.org> + * Copyright (c) 2016 The FreeBSD Foundation + * All rights reserved. + * + * This software was developed by Andrew Turner under + * sponsorship from the Fre

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

2016-08-01 Thread Andrew Turner
Author: andrew Date: Mon Aug 1 12:17:44 2016 New Revision: 303614 URL: https://svnweb.freebsd.org/changeset/base/303614 Log: Add a kernel variable to let the user to select their preferred order between ACPI and FDT. This will be needed on machines with both, e.g. the SoftIron Overdrive

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

2016-08-01 Thread Andrew Turner
Author: andrew Date: Mon Aug 1 10:36:58 2016 New Revision: 303610 URL: https://svnweb.freebsd.org/changeset/base/303610 Log: Add the fields for the PAR_EL1 register. This is used when performing an address lookup with the AT instructions. Obtained from:ABT Systems Ltd MFC

svn commit: r303622 - in head/sys: arm/arm conf

2016-08-01 Thread Andrew Turner
/* MSI/MSI-X */ @@ -1798,9 +1543,4 @@ static device_method_t arm_gicv2m_method DEFINE_CLASS_0(gicv2m, arm_gicv2m_driver, arm_gicv2m_methods, sizeof(struct arm_gicv2m_softc)); - -static devclass_t arm_gicv2m_devclass; - -EARLY_DRIVER_MODULE(gicv2m, gic, arm_gicv2m_driver, -arm_gicv2

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

2016-07-25 Thread Andrew Turner
Author: andrew Date: Mon Jul 25 16:18:20 2016 New Revision: 303309 URL: https://svnweb.freebsd.org/changeset/base/303309 Log: Remove an unused variable. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The FreeBSD Foundation Modified:

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