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

2016-08-24 Thread Andrew Turner
Author: andrew Date: Wed Aug 24 12:32:18 2016 New Revision: 304746 URL: https://svnweb.freebsd.org/changeset/base/304746 Log: Teach the parts of the arm64 pmap that need to iterate over pages to also iterate over superpages. We don't yet create these, but soon will. Obtained from:

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

2016-08-23 Thread Andrew Turner
Author: andrew Date: Tue Aug 23 16:37:34 2016 New Revision: 304689 URL: https://svnweb.freebsd.org/changeset/base/304689 Log: Also adjust the virtual address passed to vm_page_pa_tryrelock. Reported by: alc Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by:

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

2016-08-23 Thread Andrew Turner
Author: andrew Date: Tue Aug 23 16:20:56 2016 New Revision: 304688 URL: https://svnweb.freebsd.org/changeset/base/304688 Log: Map memory as read-only in pmap_enter_quick_locked as is done in other pmap implementations. Obtained from:ABT Systems Ltd MFC after:1 month

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

2016-08-23 Thread Andrew Turner
Author: andrew Date: Tue Aug 23 16:12:25 2016 New Revision: 304687 URL: https://svnweb.freebsd.org/changeset/base/304687 Log: If we find we have a superpage in pmap_enter_quick_locked return without trying to add a new level 3 page. Obtained from:ABT Systems Ltd MFC after:1

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

2016-08-23 Thread Andrew Turner
Author: andrew Date: Tue Aug 23 15:48:27 2016 New Revision: 304685 URL: https://svnweb.freebsd.org/changeset/base/304685 Log: Include the offset the virtual address is within an L1 or L2 block when finding the vm_page_t in pmap_extract_and_hold. Previously it would return the vm_page_t of

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 19:05:11 2016 New Revision: 304625 URL: https://svnweb.freebsd.org/changeset/base/304625 Log: Fix the arm64 non-SMP build, active_irq is a uint64_t so cast it through a uintmax_t. Obtained from:ABT Systems Ltd MFC after:1 week Sponsored by:

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 18:19:46 2016 New Revision: 304622 URL: https://svnweb.freebsd.org/changeset/base/304622 Log: Ensure map is valid, even before userland exists and the fault address register points to an address in the userland range. Obtained from:ABT Systems Ltd

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 18:12:44 2016 New Revision: 304620 URL: https://svnweb.freebsd.org/changeset/base/304620 Log: Fix pmap_update_entry, pmap_invalidate_range takes the end address, not the size. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by:

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 14:53:39 2016 New Revision: 304604 URL: https://svnweb.freebsd.org/changeset/base/304604 Log: Use switch statements in pmap_remove_pages. While only one level of pagetable is supported more will be added soon to support removing superpages. Obtained

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 12:56:40 2016 New Revision: 304600 URL: https://svnweb.freebsd.org/changeset/base/304600 Log: Use pmap_update_entry in pmap_enter when updating an entry with a new physical address. This is required when either mapping is writeable. While here remove an

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 12:17:40 2016 New Revision: 304599 URL: https://svnweb.freebsd.org/changeset/base/304599 Log: Add sysctls to report on superpages statistics. While here add extra logging to these paths. Obtained from:ABT Systems Ltd MFC after:1 month

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 10:50:30 2016 New Revision: 304598 URL: https://svnweb.freebsd.org/changeset/base/304598 Log: Add a size argument to pmap_update_entry. Make use of this in pmap_promote_l2. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The

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

2016-08-22 Thread Andrew Turner
Author: andrew Date: Mon Aug 22 10:21:09 2016 New Revision: 304596 URL: https://svnweb.freebsd.org/changeset/base/304596 Log: Add KASSERTS in pmap_alloc_l3 to ensure we are not encountering superpages when we don't yet expect them; Obtained from:ABT Systems Ltd MFC after:1

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

2016-08-15 Thread Andrew Turner
Author: andrew Date: Mon Aug 15 09:23:08 2016 New Revision: 304140 URL: https://svnweb.freebsd.org/changeset/base/304140 Log: Add the ARMv8.1 identification registers to the list we print when booting. MFC after:1 week Sponsored by: ABT Systems Ltd Modified:

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

2016-08-12 Thread Andrew Turner
Author: andrew Date: Fri Aug 12 10:29:34 2016 New Revision: 304004 URL: https://svnweb.freebsd.org/changeset/base/304004 Log: Implement promotions and demotions in the arm64 pmap code. For now we don't promote memory as I am not sure all the demotion cases are handled, however it is useful

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

2016-08-10 Thread Andrew Turner
Author: andrew Date: Wed Aug 10 10:36:11 2016 New Revision: 303904 URL: https://svnweb.freebsd.org/changeset/base/303904 Log: Uncomment the vm.kvm_size and vm.kvm_free sysctls. These work as expected so there is no reason to leave them commented out. Obtained from:ABT Systems Ltd

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

2016-08-10 Thread Andrew Turner
Author: andrew Date: Wed Aug 10 10:13:34 2016 New Revision: 303903 URL: https://svnweb.freebsd.org/changeset/base/303903 Log: Implement pmap_align_superpage on arm64 based on the amd64 implementation. This will be needed when superpage support is added. Obtained from:ABT Systems

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

2016-08-04 Thread Andrew Turner
Author: andrew Date: Thu Aug 4 13:49:36 2016 New Revision: 303744 URL: https://svnweb.freebsd.org/changeset/base/303744 Log: Remove the pvh_global_lock lock from the arm64 pmap. It is unneeded on arm64 as invalidation will have completed before the pmap_invalidate_* functions have

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

2016-08-02 Thread Andrew Turner
Author: andrew Date: Tue Aug 2 15:26:46 2016 New Revision: 303661 URL: https://svnweb.freebsd.org/changeset/base/303661 Log: Remove trailing whitespace from the arm64 pmap Obtained from:ABT Systems Ltd MFC after:3 weeks Sponsored by: The FreeBSD Foundation Modified:

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

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 18:58:20 2016 New Revision: 303594 URL: https://svnweb.freebsd.org/changeset/base/303594 Log: Add the Data Fault Status Code values to the ESR_ELx registers for when the fault code is a Data Abort. Obtained from:AT Systems Ltd MFC after:1

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

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 17:53:09 2016 New Revision: 303592 URL: https://svnweb.freebsd.org/changeset/base/303592 Log: Extract the common parts of pmap_kenter_device to a new function. This will be used when superpage support is added. Obtained from:ABT Systems Ltd MFC

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

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 14:59:44 2016 New Revision: 303587 URL: https://svnweb.freebsd.org/changeset/base/303587 Log: Fix the comment above pmap_invalidate_page. tlbi will invalidate the tlb on all CPUs. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored

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

2016-07-31 Thread Andrew Turner
Author: andrew Date: Sun Jul 31 12:59:10 2016 New Revision: 303585 URL: https://svnweb.freebsd.org/changeset/base/303585 Log: Relax the barriers around a TLB invalidation to only wait on inner-shareable memory accesses. There is no need for full system barriers. Obtained from:ABT

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

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

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: r303143 - in head/sys: dev/uart modules/uart

2016-07-21 Thread Andrew Turner
Author: andrew Date: Thu Jul 21 13:01:35 2016 New Revision: 303143 URL: https://svnweb.freebsd.org/changeset/base/303143 Log: Fix the build: * Add acpi_if.h to the SRC list in the uart module * Only include new acpi headers when they are needed Obtained from:ABT Systems Ltd

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-21 Thread Andrew Turner
On Wed, 20 Jul 2016 13:28:53 +0200 Michal Meloun wrote: > Dne 19.07.2016 v 17:06 Nathan Whitehorn napsal(a): > > 2. It partially duplicates the functionality of OFW_BUS_MAP_INTR(), > > but is both problematically more general and less flexible (it has > > requirements on timing

Re: svn commit: r303133 - head/sys/dev/uart

2016-07-21 Thread Andrew Turner
On Thu, 21 Jul 2016 09:32:56 + (UTC) Andrew Turner <and...@freebsd.org> wrote: > Author: andrew > Date: Thu Jul 21 09:32:55 2016 > New Revision: 303133 > URL: https://svnweb.freebsd.org/changeset/base/303133 > > Log: > Add support for arm64 to uart_dev_acpi

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

2016-07-21 Thread Andrew Turner
Meloun + * Copyright (c) 2016 The FreeBSD Foundation + * All rights reserved. + * + * This software was developed by Andrew Turner under + * sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provi

Re: svn commit: r303123 - head/sys/cam

2016-07-21 Thread Andrew Turner
On Thu, 21 Jul 2016 03:11:35 + (UTC) Warner Losh wrote: > Author: imp > Date: Thu Jul 21 03:11:35 2016 > New Revision: 303123 > URL: https://svnweb.freebsd.org/changeset/base/303123 > > Log: > Fix mismerge and include the nvme support. > Also, print out the name of any

svn commit: r303102 - head/sys/conf

2016-07-20 Thread Andrew Turner
Author: andrew Date: Wed Jul 20 17:46:33 2016 New Revision: 303102 URL: https://svnweb.freebsd.org/changeset/base/303102 Log: Mark the Designware MMC and USB OTG drivers as FDT only. These are normally found on arm64 devices that use FDT. Obtained from:ABT Systems Ltd MFC

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

2016-07-20 Thread Andrew Turner
Author: andrew Date: Wed Jul 20 17:19:47 2016 New Revision: 303100 URL: https://svnweb.freebsd.org/changeset/base/303100 Log: We will be switching to a new arm64 uart cpu driver that handles both FDT and ACPI. As such pull out what will be the common parts of the FDT cpu detection to a new

svn commit: r303026 - head/usr.sbin/acpi/acpidump

2016-07-19 Thread Andrew Turner
Author: andrew Date: Tue Jul 19 16:02:07 2016 New Revision: 303026 URL: https://svnweb.freebsd.org/changeset/base/303026 Log: Add missing flags from acpidump. These are defined in the header, but not printed. The HW_REDUCED flag is useful as it should be set on arm64 to comply with the ARM

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

2016-07-15 Thread Andrew Turner
Author: andrew Date: Fri Jul 15 13:25:47 2016 New Revision: 302896 URL: https://svnweb.freebsd.org/changeset/base/302896 Log: Implement bus_print_child to print the resources used by the ITS driver. Obtained from:ABT Systems Ltd MFC after:1 month Sponsored by: The FreeBSD

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

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: 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: 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: 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: 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: r302789 - in head/sys/arm64: arm64 include

2016-07-13 Thread Andrew Turner
Author: andrew Date: Wed Jul 13 23:03:34 2016 New Revision: 302789 URL: https://svnweb.freebsd.org/changeset/base/302789 Log: Add memmmap on arm64 so we can mmap /dev/mem and /dev/kmem. Obtained from:ABT Systems Ltd MFC after:1 week Sponsored by: The FreeBSD Foundation

svn commit: r302788 - head/usr.sbin/acpi/acpidump

2016-07-13 Thread Andrew Turner
Author: andrew Date: Wed Jul 13 22:53:30 2016 New Revision: 302788 URL: https://svnweb.freebsd.org/changeset/base/302788 Log: Fix the type used to hold the value returned from getopt. On arm64 char is unsigned so will never be -1. Obtained from:ABT Systems Ltd MFC after:1

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: r302498 - head/sys/arm/nvidia

2016-07-09 Thread Andrew Turner
Author: andrew Date: Sat Jul 9 13:27:14 2016 New Revision: 302498 URL: https://svnweb.freebsd.org/changeset/base/302498 Log: Remove an unneeded call to fdt_get_unit, the return value is unused. MFC after:1 month Sponsored by: ABT Systems Ltd Modified:

svn commit: r302391 - head

2016-07-07 Thread Andrew Turner
Author: andrew Date: Thu Jul 7 15:25:14 2016 New Revision: 302391 URL: https://svnweb.freebsd.org/changeset/base/302391 Log: Stop deleting ofwdump.8.gz on arm and arm64 when running make delete-old, it is installed on these architectures. Approved by: re (kib) Sponsored by: ABT

Re: svn commit: r302372 - in head/sys: amd64/include cddl/compat/opensolaris/sys dev/cpuctl i386/include kern net netinet powerpc/include powerpc/powerpc vm

2016-07-06 Thread Andrew Turner
On Wed, 6 Jul 2016 10:00:08 -0700 Nathan Whitehorn <nwhiteh...@freebsd.org> wrote: > On 07/06/16 09:57, Andrew Turner wrote: > > On Wed, 6 Jul 2016 14:09:49 + (UTC) > > Nathan Whitehorn <nwhiteh...@freebsd.org> wrote: > > > >> Author: nwhitehorn &g

Re: svn commit: r302372 - in head/sys: amd64/include cddl/compat/opensolaris/sys dev/cpuctl i386/include kern net netinet powerpc/include powerpc/powerpc vm

2016-07-06 Thread Andrew Turner
On Wed, 6 Jul 2016 14:09:49 + (UTC) Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Wed Jul 6 14:09:49 2016 > New Revision: 302372 > URL: https://svnweb.freebsd.org/changeset/base/302372 > > Log: > Replace a number of conflations of mp_ncpus and mp_maxid with

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

2016-07-06 Thread Andrew Turner
Author: andrew Date: Wed Jul 6 16:20:10 2016 New Revision: 302375 URL: https://svnweb.freebsd.org/changeset/base/302375 Log: Remove the old pre-INTRNG arm64 interrupt framework. GENERIC was switched to INTRNG in r301565 with the old code no longer being built by default with no reports of

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

2016-06-22 Thread Andrew Turner
Author: andrew Date: Wed Jun 22 12:05:08 2016 New Revision: 302084 URL: https://svnweb.freebsd.org/changeset/base/302084 Log: Fix a race when the hardware has raised an exception with an unknown or uncategorised reason. We need to read the fault address register before enabling interrupts

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

2016-06-14 Thread Andrew Turner
Author: andrew Date: Tue Jun 14 16:41:39 2016 New Revision: 301890 URL: https://svnweb.freebsd.org/changeset/base/301890 Log: Move the arm call to intr_pic_init_secondary earlier in the secondary CPU initialisation. This ensures it will complete before signalling to the boot CPU it has

Re: svn commit: r301706 - head/sys/boot/efi

2016-06-09 Thread Andrew Turner
On Wed, 8 Jun 2016 22:30:15 -0400 Warner Losh <wl...@bsdimp.com> wrote: > > On Jun 8, 2016, at 7:23 PM, Andrew Turner <and...@freebsd.org> > > wrote: > > > > Author: andrew > > Date: Wed Jun 8 23:23:16 2016 > > New Revision: 301706 > >

svn commit: r301706 - head/sys/boot/efi

2016-06-08 Thread Andrew Turner
Author: andrew Date: Wed Jun 8 23:23:16 2016 New Revision: 301706 URL: https://svnweb.freebsd.org/changeset/base/301706 Log: Also set -fshort-wchar on arm64, this fixes parsing strings from UEFI, e.g. on the command line. Sponsored by: ABT Systems Ltd Modified:

svn commit: r301703 - head/sys/boot/efi/libefi

2016-06-08 Thread Andrew Turner
Author: andrew Date: Wed Jun 8 23:13:20 2016 New Revision: 301703 URL: https://svnweb.freebsd.org/changeset/base/301703 Log: Print the newline character along with the carriage return when TERM_EMU is disabled. Without this we print all lines over top of each other. Sponsored by: ABT

svn commit: r301702 - head/sys/boot/efi/libefi

2016-06-08 Thread Andrew Turner
Author: andrew Date: Wed Jun 8 22:36:55 2016 New Revision: 301702 URL: https://svnweb.freebsd.org/changeset/base/301702 Log: Allow libefi to be built with TERM_EMU undefined. There were a few places where we assumed TERM_EMU was defined but didn't check. Fix these by also including them

svn commit: r301700 - in head/sys/arm: arm include

2016-06-08 Thread Andrew Turner
Author: andrew Date: Wed Jun 8 22:29:30 2016 New Revision: 301700 URL: https://svnweb.freebsd.org/changeset/base/301700 Log: Remove the ARMv4/ARMv5 userland atomic support from struct proc on armv6. Nothing should use this on armv6 as we use the atomic instructions added in ARMv6k.

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

2016-06-07 Thread Andrew Turner
Author: andrew Date: Tue Jun 7 20:14:08 2016 New Revision: 301565 URL: https://svnweb.freebsd.org/changeset/base/301565 Log: Switch arm64 to use intrng by default. The old interrupt handling code can still be used, however this is expected to be removed soon. Obtained from:ABT

svn commit: r301561 - in head/sys/arm: arm include

2016-06-07 Thread Andrew Turner
Author: andrew Date: Tue Jun 7 18:50:36 2016 New Revision: 301561 URL: https://svnweb.freebsd.org/changeset/base/301561 Log: Start to clean MIDR values using the CPUID scheme. We don't need to know the exact CPU we are running on to set the cpu functions. Relax the check to ignore the CPU

svn commit: r301306 - in head/sys/boot/efi: include libefi loader loader/arch/amd64 loader/arch/arm loader/arch/arm64 loader/arch/i386

2016-06-04 Thread Andrew Turner
file is newly added) +++ head/sys/boot/efi/libefi/time_event.c Sat Jun 4 08:47:45 2016 (r301306) @@ -0,0 +1,82 @@ +/*- + * Copyright (c) 2016 Andrew Turner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted

Re: svn commit: r301266 - head/sys/arm/freescale/imx

2016-06-03 Thread Andrew Turner
On Fri, 3 Jun 2016 11:05:55 + (UTC) Svatopluk Kraus wrote: > Author: skra > Date: Fri Jun 3 11:05:55 2016 > New Revision: 301266 > URL: https://svnweb.freebsd.org/changeset/base/301266 > > Log: > Postpone allocation of IRQ resource to the time when interrupt >

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

2016-06-03 Thread Andrew Turner
its.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/arm64/arm64/gicv3_its.cFri Jun 3 10:28:06 2016 (r301265) @@ -0,0 +1,1585 @@ +/*- + * Copyright (c) 2015-2016

svn commit: r301263 - in head/sys: kern sys

2016-06-03 Thread Andrew Turner
Author: andrew Date: Fri Jun 3 10:13:18 2016 New Revision: 301263 URL: https://svnweb.freebsd.org/changeset/base/301263 Log: Add an interface to handle interrupt controllers that have a contiguous range of interrupts they pass to a second controller driver to handle. The parent driver is

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 17:49:47 2016 New Revision: 301060 URL: https://svnweb.freebsd.org/changeset/base/301060 Log: Bin interrupts to the correct CPU when we boot on a non-zero CPU. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 18:05:17 2016 New Revision: 301062 URL: https://svnweb.freebsd.org/changeset/base/301062 Log: arm_gic_map is a mask not the CPUs ID, there is no need to shift it. Pointy-hat to:andrew Obtained from:ABT Systems Ltd Sponsored by: The

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 19:17:32 2016 New Revision: 301072 URL: https://svnweb.freebsd.org/changeset/base/301072 Log: dpcpu_init should have also passed in the calculated cpuid, not the devicetree ID. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 18:45:52 2016 New Revision: 301070 URL: https://svnweb.freebsd.org/changeset/base/301070 Log: Allow the kernel to boot on a CPU where the devicetree has numbered it with a non-zero ID. To do this we increment the cpuid of any CPUs with a smaller devicetree ID

svn commit: r301073 - head/sys/conf

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 19:19:21 2016 New Revision: 301073 URL: https://svnweb.freebsd.org/changeset/base/301073 Log: Attach the generic USB OHCI driver to the arm64 build. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 16:28:56 2016 New Revision: 301045 URL: https://svnweb.freebsd.org/changeset/base/301045 Log: Enable setting BF_COHERENT on DMA tags. This allows the kernel to start using the cache handling functions. Obtained from:ABT Systems Ltd Sponsored by:

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 11:32:09 2016 New Revision: 301034 URL: https://svnweb.freebsd.org/changeset/base/301034 Log: Set oldfp so the check for fp == oldfp works as expected. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2016-05-31 Thread Andrew Turner
Author: andrew Date: Tue May 31 09:24:16 2016 New Revision: 301032 URL: https://svnweb.freebsd.org/changeset/base/301032 Log: Move a device_printf under bootverbose where it should have been. Reported by: bz Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation

svn commit: r300902 - head/sys/dev/hwpmc

2016-05-28 Thread Andrew Turner
Author: andrew Date: Sat May 28 13:05:39 2016 New Revision: 300902 URL: https://svnweb.freebsd.org/changeset/base/300902 Log: Don't panic in hwpmc when stopping sampling. When hwpmc stops sampling it will set the pm_state to something other than PMC_STATE_RUNNING. This means the

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

2016-05-27 Thread Andrew Turner
Author: andrew Date: Fri May 27 12:02:12 2016 New Revision: 300850 URL: https://svnweb.freebsd.org/changeset/base/300850 Log: Fix dtrace_interrupt_disable and dtrace_interrupt_enable by having the former return the current status for the latter to use. Without this we could enable

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

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

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

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

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

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

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

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

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