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

2015-08-27 Thread Andrew Turner
Author: andrew Date: Thu Aug 27 16:27:51 2015 New Revision: 287214 URL: https://svnweb.freebsd.org/changeset/base/287214 Log: There is no need to get the bus tag or handle. Sponsored by: ABT Systems Ltd Modified: head/sys/dev/mmc/host/dwmmc.c Modified: head/sys/dev/mmc/host/dwmmc.c

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

2015-08-27 Thread Andrew Turner
Author: andrew Date: Thu Aug 27 16:18:22 2015 New Revision: 287212 URL: https://svnweb.freebsd.org/changeset/base/287212 Log: Allow the fifo-depth and num-slots to be missing. For the former we read the value from the hardware, for the latter assume a single slot. Sponsored by: ABT

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

2015-08-28 Thread Andrew Turner
Author: andrew Date: Fri Aug 28 10:34:37 2015 New Revision: 287250 URL: https://svnweb.freebsd.org/changeset/base/287250 Log: Only check for the bus frequency if it has not already been set, for example through a driver running as a subclass of this. Sponsored by: ABT Systems Ltd

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

2015-08-28 Thread Andrew Turner
Author: andrew Date: Fri Aug 28 15:27:55 2015 New Revision: 287258 URL: https://svnweb.freebsd.org/changeset/base/287258 Log: Move dwmmc.h to dwmmc_reg.h. This is in preperation for adding support to subclass the dwmmc driver to allow SoC specific attachments. Sponsored by: ABT Systems

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

2015-08-26 Thread Andrew Turner
Author: andrew Date: Wed Aug 26 10:32:23 2015 New Revision: 287160 URL: https://svnweb.freebsd.org/changeset/base/287160 Log: Add a above the virtio section. Modified: head/sys/arm64/conf/GENERIC Modified: head/sys/arm64/conf/GENERIC

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

2015-08-26 Thread Andrew Turner
Author: andrew Date: Wed Aug 26 10:54:14 2015 New Revision: 287161 URL: https://svnweb.freebsd.org/changeset/base/287161 Log: Only access the Samsung registers when targeting Samsung hardware. Sponsored by: ABT Systems Ltd Modified: head/sys/dev/mmc/host/dwmmc.c Modified:

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

2015-08-26 Thread Andrew Turner
Author: andrew Date: Wed Aug 26 11:36:23 2015 New Revision: 287162 URL: https://svnweb.freebsd.org/changeset/base/287162 Log: Add an option to select which SoCs we are building for. It is intended to be used with any SoC specific drivers, for example a ThunderX nic driver would use

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

2015-08-31 Thread Andrew Turner
Author: andrew Date: Mon Aug 31 09:39:16 2015 New Revision: 287322 URL: https://svnweb.freebsd.org/changeset/base/287322 Log: Clean up the style of the LEAVE_HYP macro. Modified: head/sys/arm/arm/locore-v6.S Modified: head/sys/arm/arm/locore-v6.S

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

2015-09-01 Thread Andrew Turner
:00 1970 (empty, because file is newly added) +++ head/sys/dev/usb/controller/dwc_otg_hisi.c Tue Sep 1 17:13:04 2015 (r287373) @@ -0,0 +1,97 @@ +/* + * Copyright 2015 Andrew Turner. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without

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

2015-09-01 Thread Andrew Turner
Author: andrew Date: Tue Sep 1 10:47:42 2015 New Revision: 287356 URL: https://svnweb.freebsd.org/changeset/base/287356 Log: Remove an variable we only ever write to, and stop assigning 0 to values in the softc as it's the default value. The latter helps with subclassing this driver.

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

2015-09-05 Thread Andrew Turner
Author: andrew Date: Sat Sep 5 17:29:07 2015 New Revision: 287487 URL: https://svnweb.freebsd.org/changeset/base/287487 Log: Add ddb show commands to print the special registers and to ask the hardware to perform address translation for us. These are useful to help track down what caused

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

2015-09-07 Thread Andrew Turner
Author: andrew Date: Mon Sep 7 10:13:14 2015 New Revision: 287532 URL: https://svnweb.freebsd.org/changeset/base/287532 Log: When dropping to EL1 ensure we have written to all special registers by moving the instruction barrier to just before we drop exception level. Sponsored by: ABT

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

2015-09-07 Thread Andrew Turner
Author: andrew Date: Mon Sep 7 14:01:18 2015 New Revision: 287536 URL: https://svnweb.freebsd.org/changeset/base/287536 Log: Use load-acquire semantics while waiting for td_lock to be released. The store should have release semantics and will have due to the dsb above it so add a comment

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

2015-09-08 Thread Andrew Turner
Author: andrew Date: Tue Sep 8 18:41:06 2015 New Revision: 287570 URL: https://svnweb.freebsd.org/changeset/base/287570 Log: Add support for pmap_mincore on arm64 by walking the page tables to find the details for the requested address. PR: 202307 Obtained from:ABT

svn commit: r287571 - head/lib/libc/tests/sys

2015-09-08 Thread Andrew Turner
Author: andrew Date: Tue Sep 8 18:44:12 2015 New Revision: 287571 URL: https://svnweb.freebsd.org/changeset/base/287571 Log: Enable mincore_test on arm64, we now have a working pmap_mincore. PR: 202307 Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD

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

2015-09-08 Thread Andrew Turner
Author: andrew Date: Tue Sep 8 16:06:04 2015 New Revision: 287565 URL: https://svnweb.freebsd.org/changeset/base/287565 Log: Allow us to set the console device tree node. This is needed as not all vendor supplied device trees contain the needed properties for us to select the correct uart

svn commit: r287371 - in head/sys: arm64/conf conf dev/mmc/host

2015-09-01 Thread Andrew Turner
+1,96 @@ +/* + * Copyright 2015 Andrew Turner. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * 1. Redistributions of source code must retain the above

svn commit: r287365 - in head/sys/boot/efi/loader: . arch/arm64

2015-09-01 Thread Andrew Turner
Author: andrew Date: Tue Sep 1 13:51:07 2015 New Revision: 287365 URL: https://svnweb.freebsd.org/changeset/base/287365 Log: Install the forth bits on arm64. For now limit it to just arm64 as on x86 these should have been installed as part of the regular loader. Modified:

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

2015-09-01 Thread Andrew Turner
Author: andrew Date: Tue Sep 1 15:26:21 2015 New Revision: 287367 URL: https://svnweb.freebsd.org/changeset/base/287367 Log: Finish allowing the dwmmc driver to be subclassed, move the softc to a new header, along with the hwtype enum, device attach prototype, and driver_t. Sponsored

svn commit: r287369 - head/libexec/rtld-elf

2015-09-01 Thread Andrew Turner
Author: andrew Date: Tue Sep 1 15:43:56 2015 New Revision: 287369 URL: https://svnweb.freebsd.org/changeset/base/287369 Log: Ensure we use calculate_first_tls_offset, even if the main program doesn't have TLS program header. This is needed on architectures with Variant I tls, that is arm,

svn commit: r287370 - head/libexec/rtld-elf/aarch64

2015-09-01 Thread Andrew Turner
Author: andrew Date: Tue Sep 1 15:57:03 2015 New Revision: 287370 URL: https://svnweb.freebsd.org/changeset/base/287370 Log: Fix how we place each objects thread local data. The code used was based on the Variant II code, however arm64 uses Variant I. The former placed the thread pointer

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

2015-09-09 Thread Andrew Turner
Author: andrew Date: Wed Sep 9 11:51:14 2015 New Revision: 287596 URL: https://svnweb.freebsd.org/changeset/base/287596 Log: Rework copyinstr to: * Fail when the length passed in is 0 * Remove an unneeded increment of the count on success * Return ENAMETOOLONG when the input pointer

Re: svn commit: r287836 - head/sys/conf

2015-09-16 Thread Andrew Turner
On 16 September 2015 01:44:19 CEST, Ed Maste wrote: >Author: emaste >Date: Tue Sep 15 23:44:19 2015 >New Revision: 287836 >URL: https://svnweb.freebsd.org/changeset/base/287836 > >Log: > arm64: add kbd.c to the build for ukbd to fix the build > > Pointy hat to:

svn commit: r288447 - in head/sys/arm: broadcom/bcm2835 mv

2015-10-01 Thread Andrew Turner
Author: andrew Date: Thu Oct 1 12:09:05 2015 New Revision: 288447 URL: https://svnweb.freebsd.org/changeset/base/288447 Log: An IPI must be cleared before it is handled otherwise next IPI could be missed. In other words, if a new request for an IPI is sent while the previous request is

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

2015-10-01 Thread Andrew Turner
Author: andrew Date: Thu Oct 1 10:43:40 2015 New Revision: 288445 URL: https://svnweb.freebsd.org/changeset/base/288445 Log: Use pmap_load more consistently. While here try to only load the data once when we reuse the same data. Obtained from:EuroBSDCon Devsummit Sponsored by:

svn commit: r288440 - head/etc/etc.aarch64

2015-10-01 Thread Andrew Turner
Author: andrew Date: Thu Oct 1 09:36:18 2015 New Revision: 288440 URL: https://svnweb.freebsd.org/changeset/base/288440 Log: Update the arm64 ttys file to enable the correct uart based on which device the console is attached to. This makes this file identical to the 32-bit arm version of

svn commit: r288442 - head/usr.sbin

2015-10-01 Thread Andrew Turner
Author: andrew Date: Thu Oct 1 09:40:33 2015 New Revision: 288442 URL: https://svnweb.freebsd.org/changeset/base/288442 Log: Also build ofwdump on arm64. Obtained from:EuroBSDCon Devsummit Sponsored by: ABT Systems Ltd Added: head/usr.sbin/Makefile.arm64 (contents, props

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

2015-10-01 Thread Andrew Turner
Author: andrew Date: Thu Oct 1 09:44:15 2015 New Revision: 288443 URL: https://svnweb.freebsd.org/changeset/base/288443 Log: Add the ENTRY/END entries around the exception handlers. Obtained from:EuroBSDCon Devsummit Sponsored by: ABT Systems Ltd Modified:

svn commit: r288444 - head/contrib/netbsd-tests/lib/libc/sys

2015-10-01 Thread Andrew Turner
Author: andrew Date: Thu Oct 1 09:53:12 2015 New Revision: 288444 URL: https://svnweb.freebsd.org/changeset/base/288444 Log: Pass 8 arguments to makecontext on arm64 as this is all we support. Obtained from:EuroBSDCon Devsummit Sponsored by: ABT Systems Ltd Modified:

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

2015-10-04 Thread Andrew Turner
Author: andrew Date: Sun Oct 4 21:16:45 2015 New Revision: 288671 URL: https://svnweb.freebsd.org/changeset/base/288671 Log: When trying to execute from a misaligned address raise a SIGBUS with the invalid address alignment code. Obtained from:EuroBSDCon Sponsored by: ABT

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

2015-09-22 Thread Andrew Turner
Author: andrew Date: Tue Sep 22 19:57:31 2015 New Revision: 288125 URL: https://svnweb.freebsd.org/changeset/base/288125 Log: Add support for __atomic_FOO_fetch on arm prior to armv6. These return the new value where the existing functions return the old value. MFC after:1 Week

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

2015-09-22 Thread Andrew Turner
Author: andrew Date: Tue Sep 22 16:46:34 2015 New Revision: 288117 URL: https://svnweb.freebsd.org/changeset/base/288117 Log: Don't restore interrupts when we are about to disable them in the next instruction. Modified: head/sys/arm64/arm64/exception.S Modified:

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

2015-09-18 Thread Andrew Turner
Author: andrew Date: Fri Sep 18 13:44:15 2015 New Revision: 287959 URL: https://svnweb.freebsd.org/changeset/base/287959 Log: Don't read the floating-point registers for now. We will need to enable the VFP around the read of these instructions as they may raise an exception. Sponsored

svn commit: r288073 - head/sys/libkern/arm

2015-09-21 Thread Andrew Turner
Author: andrew Date: Mon Sep 21 18:35:32 2015 New Revision: 288073 URL: https://svnweb.freebsd.org/changeset/base/288073 Log: Add the __aeabi_memclr8 symbol, clang 3.7 uses this. MFC after:1 week Sponsored by: ABT Systems Lts Modified: head/sys/libkern/arm/memclr.S Modified:

svn commit: r292001 - head/sys/modules/ahci

2015-12-08 Thread Andrew Turner
Author: andrew Date: Tue Dec 8 20:05:27 2015 New Revision: 292001 URL: https://svnweb.freebsd.org/changeset/base/292001 Log: ahci_generic.c needs ofw_bus_if.h, add it to the module. Modified: head/sys/modules/ahci/Makefile Modified: head/sys/modules/ahci/Makefile

svn commit: r291689 - in head/sys: conf dev/ahci

2015-12-03 Thread Andrew Turner
Author: andrew Date: Thu Dec 3 11:24:11 2015 New Revision: 291689 URL: https://svnweb.freebsd.org/changeset/base/291689 Log: Add support for a generic AHCI attachment. This allows us to attach to a typically memory mapped bus, for example on the AMD Opteron A1100 the AHCI device is mapped

Re: svn commit: r291741 - head/sys/geom

2015-12-04 Thread Andrew Turner
On Fri, 4 Dec 2015 23:42:51 +1100 (EST) Bruce Evans wrote: ... > This looks like 5 style bugs and 0 issues: > > 3 old style bugs: > - use of bool I don't seem to see where in style(9) we disallow the use of bool. Can you point me where this is specified? Andrew

Re: svn commit: r291689 - in head/sys: conf dev/ahci

2015-12-04 Thread Andrew Turner
On Thu, 3 Dec 2015 13:34:07 +0200 Konstantin Belousov <kostik...@gmail.com> wrote: > On Thu, Dec 03, 2015 at 11:24:11AM +0000, Andrew Turner wrote: > > Author: andrew > > Date: Thu Dec 3 11:24:11 2015 > > New Revision: 291689 > > URL: https://svnweb.freebsd.org/c

svn commit: r291768 - head/sys/modules/ahci

2015-12-04 Thread Andrew Turner
Author: andrew Date: Fri Dec 4 13:32:00 2015 New Revision: 291768 URL: https://svnweb.freebsd.org/changeset/base/291768 Log: Add ahci_generic to the ahci module on arm64. Pointed out by: kib Modified: head/sys/modules/ahci/Makefile Modified: head/sys/modules/ahci/Makefile

svn commit: r291855 - head/sys/cddl/dev/profile

2015-12-05 Thread Andrew Turner
Author: andrew Date: Sat Dec 5 10:00:01 2015 New Revision: 291855 URL: https://svnweb.freebsd.org/changeset/base/291855 Log: Allow the artificial profile frames to be adjusted as needed by the user. While here update for armv6 to a tested value. Submitted by: Howard Su

svn commit: r291852 - in head/sys: arm/arm arm/include cddl/dev/fbt/arm

2015-12-05 Thread Andrew Turner
Author: andrew Date: Sat Dec 5 09:32:36 2015 New Revision: 291852 URL: https://svnweb.freebsd.org/changeset/base/291852 Log: Move the check to see if we are tracing a function with the DTrace Function Boundary Trace to assembly to reduce the overhead of these checks. Submitted by:

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

2015-12-11 Thread Andrew Turner
Author: andrew Date: Fri Dec 11 15:25:47 2015 New Revision: 292112 URL: https://svnweb.freebsd.org/changeset/base/292112 Log: Sort the list of NICs after the mii options. While here add the msk driver as it has now been tested. Sponsored by: SoftIron Inc Modified:

svn commit: r292197 - head/sys/dev/atkbdc

2015-12-14 Thread Andrew Turner
Author: andrew Date: Mon Dec 14 11:13:50 2015 New Revision: 292197 URL: https://svnweb.freebsd.org/changeset/base/292197 Log: When exiting two-finger scroll the Synaptics device may report a jump in absolute position. This seems to be correlated with only removing a single finger. To work

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

2015-12-14 Thread Andrew Turner
Author: andrew Date: Mon Dec 14 16:07:20 2015 New Revision: 292214 URL: https://svnweb.freebsd.org/changeset/base/292214 Log: Add support for MSI interrupts to the gicv2m controller. The allocation is still quite simplistic, it just increments a counter to use the next interrupt.

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

2015-12-14 Thread Andrew Turner
Author: andrew Date: Mon Dec 14 17:08:40 2015 New Revision: 292215 URL: https://svnweb.freebsd.org/changeset/base/292215 Log: Update the handling of interrupts on the generic PCIe driver: * Use the interrupt-map property to route interrupts * Remove the IRQ rman, it's now unneeded *

svn commit: r292405 - in head/sys: arm64/include dev/ofw

2015-12-17 Thread Andrew Turner
Author: andrew Date: Thu Dec 17 17:00:04 2015 New Revision: 292405 URL: https://svnweb.freebsd.org/changeset/base/292405 Log: Support the variant of the interrupt-map property where the parent bus has the #address-cells property set. For this we need to read more data before the parent

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

2015-12-10 Thread Andrew Turner
Author: andrew Date: Thu Dec 10 16:40:38 2015 New Revision: 292064 URL: https://svnweb.freebsd.org/changeset/base/292064 Log: Add support for the GICv2M extension to the GICv2 interrupt controller. This is (oddly) specified in the ARM Server Base System Architecture. It extends the GICv2 to

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

2015-12-10 Thread Andrew Turner
Author: andrew Date: Thu Dec 10 13:19:30 2015 New Revision: 292062 URL: https://svnweb.freebsd.org/changeset/base/292062 Log: Reduce the numbers of levels of indirection in arm64 pcib drivers by making the MSI & MSI-X handler functions be directly callable from the driver methods.

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

2015-12-10 Thread Andrew Turner
Author: andrew Date: Thu Dec 10 15:51:02 2015 New Revision: 292063 URL: https://svnweb.freebsd.org/changeset/base/292063 Log: Remove pic_map_msix from ARM64, it is unneeded as all mappings happen through pic_map_msi (without the x). Sponsored by: ABT Systems Ltd Modified:

svn commit: r292186 - head

2015-12-14 Thread Andrew Turner
Author: andrew Date: Mon Dec 14 09:52:09 2015 New Revision: 292186 URL: https://svnweb.freebsd.org/changeset/base/292186 Log: Split KNOWN_ARCHES so we have one per line to simplify merging future architectures. Modified: head/Makefile.inc1 Modified: head/Makefile.inc1

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

2015-12-14 Thread Andrew Turner
Author: andrew Date: Mon Dec 14 10:06:01 2015 New Revision: 292194 URL: https://svnweb.freebsd.org/changeset/base/292194 Log: Skip restoring more registers when returning from an exception taken in the kernel. These registers are all callee saved, and as such will be restored before

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

2015-12-30 Thread Andrew Turner
Author: andrew Date: Wed Dec 30 17:36:34 2015 New Revision: 292954 URL: https://svnweb.freebsd.org/changeset/base/292954 Log: Decode and print the ID_AA64* registers on boot. These registers hold information on what the core supports. In most cases these will be identical across most CPUs

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

2015-12-23 Thread Andrew Turner
Author: andrew Date: Wed Dec 23 15:22:44 2015 New Revision: 292659 URL: https://svnweb.freebsd.org/changeset/base/292659 Log: Increase the size and alignment of the setjmp buffer. This will allow for possible future CPU extentions with larger registers. jmp_buf's size and alignment are

svn commit: r292663 - head/sys/cddl/dev/fbt/arm

2015-12-23 Thread Andrew Turner
Author: andrew Date: Wed Dec 23 17:54:19 2015 New Revision: 292663 URL: https://svnweb.freebsd.org/changeset/base/292663 Log: Be stricter on which functions we can probe with FBT. We now only check the first instruction to see if it's either a pushm with lr, or a sub with sp. The former is

svn commit: r292591 - in head/sys: arm/at91 arm/cavium/cns11xx arm/conf arm/lpc arm/mv/discovery arm/mv/orion arm/xscale/ixp425 conf

2015-12-22 Thread Andrew Turner
Author: andrew Date: Tue Dec 22 09:08:21 2015 New Revision: 292591 URL: https://svnweb.freebsd.org/changeset/base/292591 Log: Remove the arm KERNPHYSADDR option as it is no longer used. The make option is still in existance as it is used to build the trampoline code. Modified:

svn commit: r292611 - head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD

2015-12-22 Thread Andrew Turner
Author: andrew Date: Tue Dec 22 17:18:40 2015 New Revision: 292611 URL: https://svnweb.freebsd.org/changeset/base/292611 Log: Don't adjust the program counter to an invalid address after reaching a breakpoint. The value doesn't need to be adjusted as it is already correctly returned from

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

2015-12-24 Thread Andrew Turner
Author: andrew Date: Thu Dec 24 09:40:29 2015 New Revision: 292683 URL: https://svnweb.freebsd.org/changeset/base/292683 Log: Ads support to the xhci pci attachment to use MSI-X interrupts when available. As with MSI interrupts these can be disabled by setting hw.usb.xhci.msix to 0 in the

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

2015-11-23 Thread Andrew Turner
Author: andrew Date: Mon Nov 23 18:20:32 2015 New Revision: 291216 URL: https://svnweb.freebsd.org/changeset/base/291216 Log: Use #ifdef to get the file compiling without errors Modified: head/sys/arm/arm/pmu.c Modified: head/sys/arm/arm/pmu.c

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

2015-12-01 Thread Andrew Turner
Author: andrew Date: Tue Dec 1 09:52:41 2015 New Revision: 291577 URL: https://svnweb.freebsd.org/changeset/base/291577 Log: Print useful information when we hit a data abort we can't handle. This prints the trap frame, along with the exception syndrome and fault address registers. Even

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

2015-12-01 Thread Andrew Turner
Author: andrew Date: Tue Dec 1 12:37:04 2015 New Revision: 291581 URL: https://svnweb.freebsd.org/changeset/base/291581 Log: Rework the exception entry/return functions to make them valid frames to be unwound through. For this we need the frame pointer (x29) to point to the location on the

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

2015-12-01 Thread Andrew Turner
Author: andrew Date: Tue Dec 1 12:27:36 2015 New Revision: 291580 URL: https://svnweb.freebsd.org/changeset/base/291580 Log: Rework the atomic code to reduce the repetition. This merges some of the atomic functions where they are almost identical, or have acquire/release semantics.

Re: svn commit: r291021 - in head: sbin usr.sbin

2015-11-20 Thread Andrew Turner
On Wed, 18 Nov 2015 17:52:38 + (UTC) Bryan Drewery wrote: > Author: bdrewery > Date: Wed Nov 18 17:52:38 2015 > New Revision: 291021 > URL: https://svnweb.freebsd.org/changeset/base/291021 > > Log: > Convert to SUBDIR.yes format. > > Reviewed by:imp >

svn commit: r291104 - in head/sys/arm: amlogic/aml8726 conf freescale/imx xilinx

2015-11-20 Thread Andrew Turner
Author: andrew Date: Fri Nov 20 16:43:21 2015 New Revision: 291104 URL: https://svnweb.freebsd.org/changeset/base/291104 Log: Remove pl310.c from the SoC std.* files, it's in files.arm Sponsored by: ABT Systems Ltd Modified: head/sys/arm/amlogic/aml8726/files.aml8726

svn commit: r291102 - in head/sys/arm: allwinner allwinner/a20 altera/socfpga annapurna/alpine broadcom/bcm2835 conf freescale/imx freescale/vybrid mv/armadaxp rockchip samsung/exynos ti/am335x ti/...

2015-11-20 Thread Andrew Turner
Author: andrew Date: Fri Nov 20 16:12:22 2015 New Revision: 291102 URL: https://svnweb.freebsd.org/changeset/base/291102 Log: Stop setting {KERN,}PHYSADDR on armv6, it's unneeded. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/allwinner/a20/std.a20 head/sys/arm/allwinner/std.a10

svn commit: r291103 - in head/sys: conf modules

2015-11-20 Thread Andrew Turner
Author: andrew Date: Fri Nov 20 16:18:27 2015 New Revision: 291103 URL: https://svnweb.freebsd.org/changeset/base/291103 Log: DTrace is known to work on armv6, enable building it as a module. Reviewed by: imp Sponsored by: ABT Systems Ltd Differential Revision:

svn commit: r291108 - in head/sys/arm: allwinner altera/socfpga annapurna/alpine broadcom/bcm2835 freescale/imx freescale/vybrid rockchip samsung/exynos ti versatile xilinx

2015-11-20 Thread Andrew Turner
Author: andrew Date: Fri Nov 20 19:48:32 2015 New Revision: 291108 URL: https://svnweb.freebsd.org/changeset/base/291108 Log: Remove bus_space_asm_generic.S from the per-SoC files.* files, it's already in files.arm. Sponsored by: ABT Systems Ltd Modified:

svn commit: r291136 - in head/sys: arm/ti/am335x conf

2015-11-21 Thread Andrew Turner
Author: andrew Date: Sat Nov 21 16:25:03 2015 New Revision: 291136 URL: https://svnweb.freebsd.org/changeset/base/291136 Log: Move hdmi_if.m to files.arm so other kernel configs can use it. Modified: head/sys/arm/ti/am335x/files.am335x head/sys/conf/files.arm Modified:

svn commit: r291131 - in head/sys/arm: arm include versatile

2015-11-21 Thread Andrew Turner
Author: andrew Date: Sat Nov 21 13:02:34 2015 New Revision: 291131 URL: https://svnweb.freebsd.org/changeset/base/291131 Log: Limit arm_base_bs_tag to ARMv4 and ARMv5, we only used it in one place in armv6 and that can use fdtbus_bs_tag. Modified: head/sys/arm/arm/bus_space_base.c

svn commit: r291130 - head/sys/modules

2015-11-21 Thread Andrew Turner
Author: andrew Date: Sat Nov 21 12:53:44 2015 New Revision: 291130 URL: https://svnweb.freebsd.org/changeset/base/291130 Log: Fix a logic inversion, we should build dtrace on armv6, not on arm and armeb. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

svn commit: r291133 - in head/sys: arm/allwinner arm/altera/socfpga arm/amlogic/aml8726 arm/annapurna/alpine arm/at91 arm/broadcom/bcm2835 arm/cavium/cns11xx arm/freescale/imx arm/freescale/vybrid ...

2015-11-21 Thread Andrew Turner
Author: andrew Date: Sat Nov 21 15:30:08 2015 New Revision: 291133 URL: https://svnweb.freebsd.org/changeset/base/291133 Log: Move more bus_space_* files to be built by files.arm. This leaves the definition in a file.* file under sys/arm/arm in the few cases we need it for non-fdt

svn commit: r291135 - in head/sys: arm/altera/socfpga arm/broadcom/bcm2835 arm/conf arm/freescale/imx arm/freescale/vybrid arm/qemu arm/rockchip arm/samsung/exynos arm/ti/omap4 arm/xilinx conf

2015-11-21 Thread Andrew Turner
Author: andrew Date: Sat Nov 21 16:23:56 2015 New Revision: 291135 URL: https://svnweb.freebsd.org/changeset/base/291135 Log: Create device options for the two common ARM timers. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/altera/socfpga/files.socfpga

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

2015-11-23 Thread Andrew Turner
Author: andrew Date: Mon Nov 23 17:05:28 2015 New Revision: 291210 URL: https://svnweb.freebsd.org/changeset/base/291210 Log: Only enable the first interrupt for now, we don't correctly configure or route interrupts to the needed cpu. Sponsored by: ABT Systems Ltd Modified:

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

2015-11-24 Thread Andrew Turner
Author: andrew Date: Tue Nov 24 11:01:43 2015 New Revision: 291246 URL: https://svnweb.freebsd.org/changeset/base/291246 Log: Add support for moving the DMAP range. This is needed as some AMD SoCs place physical memory at an address outside the old DMAP range. This is an issue as we rely on

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

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

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: r293648 - head/lib/csu/arm

2016-01-10 Thread Andrew Turner
Author: andrew Date: Sun Jan 10 23:41:31 2016 New Revision: 293648 URL: https://svnweb.freebsd.org/changeset/base/293648 Log: Use -mlong-calls to build crt1.o and gcrt1.o. This tells the compiler to generate code to branch based on an address in a register. This allows us to have binaries

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

2016-01-15 Thread Andrew Turner
Author: andrew Date: Fri Jan 15 11:40:41 2016 New Revision: 294087 URL: https://svnweb.freebsd.org/changeset/base/294087 Log: Remove the commented out sc device from the i.MX kernels, they both use vt(4). Modified: head/sys/arm/conf/IMX53 head/sys/arm/conf/IMX6 Modified:

svn commit: r293852 - head/usr.sbin/kldxref

2016-01-13 Thread Andrew Turner
Author: andrew Date: Wed Jan 13 21:34:15 2016 New Revision: 293852 URL: https://svnweb.freebsd.org/changeset/base/293852 Log: Add support for relocating AArch64 modules to kldxref. This fixes an error message where it fails to read the module as the unrelocated addresses are zero.

Re: svn commit: r293852 - head/usr.sbin/kldxref

2016-01-13 Thread Andrew Turner
On Wed, 13 Jan 2016 13:36:02 -0800 NGie Cooper <yaneurab...@gmail.com> wrote: > On Wed, Jan 13, 2016 at 1:34 PM, Andrew Turner <and...@freebsd.org> > wrote: > > Author: andrew > > Date: Wed Jan 13 21:34:15 2016 > > New Revision: 293852 > > URL: https:

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