svn commit: r248902 - head/sys/arm/at91

2013-03-29 Thread Ian Lepore
Author: ian Date: Fri Mar 29 18:06:54 2013 New Revision: 248902 URL: http://svnweb.freebsd.org/changeset/base/248902 Log: Fix a typo: the RXD0 pin is PA18, not PA19. Modified: head/sys/arm/at91/at91rm9200_devices.c Modified: head/sys/arm/at91/at91rm9200_devices.c

svn commit: r248904 - head/sys/arm/at91

2013-03-29 Thread Ian Lepore
Author: ian Date: Fri Mar 29 18:17:51 2013 New Revision: 248904 URL: http://svnweb.freebsd.org/changeset/base/248904 Log: Redo the workaround for at91rm9200 erratum #26 in a way that doesn't cause a lockup on some rm92 hardware. Modified: head/sys/arm/at91/at91_pmc.c Modified: head/sys/arm

svn commit: r248907 - head/sys/arm/include

2013-03-29 Thread Ian Lepore
Author: ian Date: Fri Mar 29 18:43:10 2013 New Revision: 248907 URL: http://svnweb.freebsd.org/changeset/base/248907 Log: Add a couple forward declarations, so that board support routines don't have to pre-include a bunch of header files they don't need just to use this one. Modified: head/

svn commit: r248909 - head/sys/arm/at91

2013-03-29 Thread Ian Lepore
Author: ian Date: Fri Mar 29 18:47:08 2013 New Revision: 248909 URL: http://svnweb.freebsd.org/changeset/base/248909 Log: Call soc_info.soc_data->soc_clock_init() before at91_pmc_init_clock(), so that the latter correctly fills in the clock data structures based on proper hardware-specific s

svn commit: r248910 - head/sys/arm/at91

2013-03-29 Thread Ian Lepore
Author: ian Date: Fri Mar 29 19:04:18 2013 New Revision: 248910 URL: http://svnweb.freebsd.org/changeset/base/248910 Log: Change the API for at91_pio_gpio_get() to return the entire masked set of bits, not just a 0/1 indicating whether any of the masked bits are on. This is compatible with t

svn commit: r248911 - in head/sys/arm: at91 include

2013-03-29 Thread Ian Lepore
) +++ head/sys/arm/at91/at91_pio.cFri Mar 29 19:52:57 2013 (r248911) @@ -1,5 +1,6 @@ /*- * Copyright (c) 2006 M. Warner Losh. All rights reserved. + * Copyright (C) 2012 Ian Lepore. All rights reserved. * * Redistribution and use in source and binary forms, with or without

svn commit: r248944 - head/sys/arm/at91

2013-03-31 Thread Ian Lepore
Author: ian Date: Sun Mar 31 12:51:56 2013 New Revision: 248944 URL: http://svnweb.freebsd.org/changeset/base/248944 Log: Fix a typo in the CF device driver name that prevented instantiation. Modified: head/sys/arm/at91/at91rm9200.c Modified: head/sys/arm/at91/at91rm9200.c ==

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

2013-03-31 Thread Ian Lepore
Author: ian Date: Sun Mar 31 22:42:25 2013 New Revision: 248961 URL: http://svnweb.freebsd.org/changeset/base/248961 Log: When running on armv6, set alignment checking to modulo-4 mode rather than modulo-8, because clang emits ldrd and strd instructions for addresses that are only 4-byte ali

svn commit: r248962 - head/sys/boot/arm/uboot

2013-03-31 Thread Ian Lepore
Author: ian Date: Sun Mar 31 22:43:16 2013 New Revision: 248962 URL: http://svnweb.freebsd.org/changeset/base/248962 Log: When running on armv6, set alignment checking to modulo-4 mode rather than modulo-8, because clang emits ldrd and strd instructions for addresses that are only 4-byte ali

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

2013-03-31 Thread Ian Lepore
Author: ian Date: Sun Mar 31 23:24:04 2013 New Revision: 248963 URL: http://svnweb.freebsd.org/changeset/base/248963 Log: Accommodate uart devices with large FIFOs (or DMA buffers which amount to the same thing) by allocating the uart(4) rx buffer based on the device's rxfifosz rather than u

svn commit: r248964 - head/sys/arm/at91

2013-03-31 Thread Ian Lepore
48963) +++ head/sys/arm/at91/uart_dev_at91usart.c Mon Apr 1 00:00:10 2013 (r248964) @@ -1,6 +1,7 @@ /*- * Copyright (c) 2005 M. Warner Losh * Copyright (c) 2005 Olivier Houchard + * Copyright (c) 2012 Ian Lepore * All rights reserved. * * Redistribution and use in source and b

Re: svn commit: r246713 - in head/sys: arm/arm cam cam/ctl cam/scsi conf dev/aac dev/advansys dev/aha dev/ahb dev/ahci dev/aic dev/aic7xxx dev/amr dev/arcmsr dev/ata dev/buslogic dev/ciss dev/dpt dev/

2013-03-31 Thread Ian Lepore
On Tue, 2013-02-12 at 16:57 +, Konstantin Belousov wrote: > Author: kib > Date: Tue Feb 12 16:57:20 2013 > New Revision: 246713 > URL: http://svnweb.freebsd.org/changeset/base/246713 > > Log: > Reform the busdma API so that new types may be added without modifying > every architecture's bu

svn commit: r248965 - in head/sys: arm/s3c2xx0 arm/sa11x0 dev/uart mips/adm5120 mips/rt305x sparc64/pci

2013-03-31 Thread Ian Lepore
Author: ian Date: Mon Apr 1 00:44:20 2013 New Revision: 248965 URL: http://svnweb.freebsd.org/changeset/base/248965 Log: Fix low-level uart drivers that set their fifo sizes in the softc too late. uart(4) allocates send and receiver buffers in attach() before it calls the low-level drive

Re: svn commit: r249232 - in head/sys: arm/at91 dev/usb/controller

2013-04-07 Thread Ian Lepore
You forgot to say: Pointy Hat to: ian I'm not quite sure how I fumbled the return-type change when I applied the patches from our local repo; thanks to Christoph for spotting this. -- Ian On Sun, 2013-04-07 at 13:03 +, Hans Petter Selasky wrote: > Author: hselasky > Date: Sun Apr 7 13:

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

2014-02-12 Thread Ian Lepore
Author: ian Date: Wed Feb 12 18:55:26 2014 New Revision: 261803 URL: http://svnweb.freebsd.org/changeset/base/261803 Log: On armv6 and later, use the WriteNotRead bit of the fault status register to decide what protections are required by the faulting access. The old code disassembled the f

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

2014-02-12 Thread Ian Lepore
Author: ian Date: Wed Feb 12 19:59:30 2014 New Revision: 261808 URL: http://svnweb.freebsd.org/changeset/base/261808 Log: Use the right symbols for determining arm architecture. Include the necessary header file which has the new FAULT_WNR symbol defined in it. Modified: head/sys/arm/arm/t

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

2014-02-12 Thread Ian Lepore
Author: ian Date: Wed Feb 12 20:09:27 2014 New Revision: 261810 URL: http://svnweb.freebsd.org/changeset/base/261810 Log: Use the same logic as the x86 platforms to avoid trying perform fault fixup while in a critical section or while holding a non-sleepable lock. Reviewed by: cognet Mo

svn commit: r261814 - head/sys/dev/sdhci

2014-02-12 Thread Ian Lepore
Author: ian Date: Wed Feb 12 22:25:08 2014 New Revision: 261814 URL: http://svnweb.freebsd.org/changeset/base/261814 Log: Fix the definition of the SDHCI_STATE_DAT and SDHCI_STATE_CMD fields, and add SDHCI_RETUNE_REQUEST. None of these are actually used in the code yet. Modified: head/sys/

svn commit: r261815 - head/sys/arm/freescale/imx

2014-02-12 Thread Ian Lepore
Author: ian Date: Thu Feb 13 02:38:16 2014 New Revision: 261815 URL: http://svnweb.freebsd.org/changeset/base/261815 Log: Write translation code for the SDHCI_PRESENT_STATE register. Freescale moved some bits around in their version of the register, adjust things so that the sdhci code sees

svn commit: r261816 - head/sys/boot/fdt/dts

2014-02-12 Thread Ian Lepore
Author: ian Date: Thu Feb 13 03:41:00 2014 New Revision: 261816 URL: http://svnweb.freebsd.org/changeset/base/261816 Log: Add standard non-removable and cd-gpios properties to the usdhc devices. That generates references to gpio devices, so uncomment them even though there isn't a gpio drive

svn commit: r261817 - head/sys/arm/freescale/imx

2014-02-12 Thread Ian Lepore
Author: ian Date: Thu Feb 13 03:45:33 2014 New Revision: 261817 URL: http://svnweb.freebsd.org/changeset/base/261817 Log: Add handling of standard "non-removable" property, and also some workaround code so that if card detect is wired to a gpio pin, for now we just treat it the same as non-r

svn commit: r261818 - head/sys/boot/fdt/dts

2014-02-12 Thread Ian Lepore
Author: ian Date: Thu Feb 13 04:10:27 2014 New Revision: 261818 URL: http://svnweb.freebsd.org/changeset/base/261818 Log: Enable both sdcard slots, but not the sdio-based wifi that we don't yet have a driver for. Modified: head/sys/boot/fdt/dts/wandboard-dual.dts head/sys/boot/fdt/dts/wan

svn commit: r261819 - head/sys/boot/fdt

2014-02-12 Thread Ian Lepore
Author: ian Date: Thu Feb 13 04:13:50 2014 New Revision: 261819 URL: http://svnweb.freebsd.org/changeset/base/261819 Log: Validate the header of a new dtb before using it. Remove the comment that says that should be done. Modified: head/sys/boot/fdt/fdt_loader_cmd.c Modified: head/sys/boo

svn commit: r261848 - head/sys/arm/freescale/imx

2014-02-13 Thread Ian Lepore
Author: ian Date: Thu Feb 13 19:14:23 2014 New Revision: 261848 URL: http://svnweb.freebsd.org/changeset/base/261848 Log: Remove a couple obsolete function declarations. Modified: head/sys/arm/freescale/imx/imx_machdep.h Modified: head/sys/arm/freescale/imx/imx_machdep.h

svn commit: r261908 - head/share/man/man9

2014-02-14 Thread Ian Lepore
Author: ian Date: Sat Feb 15 02:30:34 2014 New Revision: 261908 URL: http://svnweb.freebsd.org/changeset/base/261908 Log: Fix a typo, C_ALSOLUTE -> C_ABSOLUTE. Modified: head/share/man/man9/timeout.9 Modified: head/share/man/man9/timeout.9

svn commit: r261938 - in head/sys: arm/freescale/imx boot/fdt/dts

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 17:19:55 2014 New Revision: 261938 URL: http://svnweb.freebsd.org/changeset/base/261938 Log: Add a driver to provide access to imx6 on-chip one-time-programmble data. Submitted by: Steven Lawrance Added: head/sys/arm/freescale/imx/imx6_ocotp.c (contents, p

svn commit: r261939 - head/sys/arm/freescale/imx

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 17:55:35 2014 New Revision: 261939 URL: http://svnweb.freebsd.org/changeset/base/261939 Log: Convert the "R1B fix" from a busy-loop in the interrupt handler to a callout. Modified: head/sys/arm/freescale/imx/imx_sdhci.c Modified: head/sys/arm/freescale/imx/imx_sd

svn commit: r261940 - head/sys/dev/sdhci

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 17:59:32 2014 New Revision: 261940 URL: http://svnweb.freebsd.org/changeset/base/261940 Log: Increase the wait time for acquiring the bus from 10 to 250ms. Normally it never needs to wait here at all; waiting is done at the end of the prior command. When doin

svn commit: r261944 - head/sys/dev/mmc

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 20:36:54 2014 New Revision: 261944 URL: http://svnweb.freebsd.org/changeset/base/261944 Log: If no compatible cards were found after probing the bus, say so. Modified: head/sys/dev/mmc/mmc.c Modified: head/sys/dev/mmc/mmc.c ===

svn commit: r261945 - head/sys/dev/sdhci

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 20:45:53 2014 New Revision: 261945 URL: http://svnweb.freebsd.org/changeset/base/261945 Log: Add timeout logic to sdhci, separate from the timeouts done by the hardware. If the hardware is not in a good state (like maybe clocks aren't running because of a conf

svn commit: r261946 - in head/sys/arm/freescale: . imx

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 21:21:57 2014 New Revision: 261946 URL: http://svnweb.freebsd.org/changeset/base/261946 Log: It turns out Freescale cleverly made the ocotp device compatible across several different families of SoCs, so move it to the freescale directory and prefix everything wi

svn commit: r261947 - head/sys/arm/freescale

2014-02-15 Thread Ian Lepore
Author: ian Date: Sat Feb 15 21:59:00 2014 New Revision: 261947 URL: http://svnweb.freebsd.org/changeset/base/261947 Log: Sweep up a couple crumbs left over from the imx6->fsl renaming. Modified: head/sys/arm/freescale/fsl_ocotp.c Modified: head/sys/arm/freescale/fsl_ocotp.c

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

2014-02-15 Thread Ian Lepore
Author: ian Date: Sun Feb 16 03:00:59 2014 New Revision: 261955 URL: http://svnweb.freebsd.org/changeset/base/261955 Log: Add a helper routine to depth-search the device tree for a node with a matching 'compatible' property. This probably has a short half-life (as do most of the fdt_ functi

svn commit: r261956 - head/sys/arm/freescale

2014-02-15 Thread Ian Lepore
Author: ian Date: Sun Feb 16 03:09:39 2014 New Revision: 261956 URL: http://svnweb.freebsd.org/changeset/base/261956 Log: Make it possible to access the ocotp registers before the ocotp device is attached, by establishing a temporary mapping of the registers when necessary. This is a tempor

svn commit: r261957 - head/sys/arm/freescale

2014-02-15 Thread Ian Lepore
Author: ian Date: Sun Feb 16 03:30:22 2014 New Revision: 261957 URL: http://svnweb.freebsd.org/changeset/base/261957 Log: Oops, remove some dregs of debugging. Modified: head/sys/arm/freescale/fsl_ocotp.c Modified: head/sys/arm/freescale/fsl_ocotp.c ==

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

2014-02-15 Thread Ian Lepore
Author: ian Date: Sun Feb 16 03:34:07 2014 New Revision: 261958 URL: http://svnweb.freebsd.org/changeset/base/261958 Log: Catch up with last-second name change. Modified: head/sys/dev/fdt/fdt_common.c Modified: head/sys/dev/fdt/fdt_common.c ===

svn commit: r261983 - head/sys/dev/sdhci

2014-02-16 Thread Ian Lepore
Author: ian Date: Sun Feb 16 17:22:49 2014 New Revision: 261983 URL: http://svnweb.freebsd.org/changeset/base/261983 Log: After a timeout, reset the controller using SDHCI_RESET_CMD|SDHCI_RESET_DATA rather than SDHCI_RESET_ALL; the latter turns off clocks and power, removing any possibility

svn commit: r262123 - head/sys/arm/include

2014-02-17 Thread Ian Lepore
Author: ian Date: Mon Feb 17 20:04:57 2014 New Revision: 262123 URL: http://svnweb.freebsd.org/changeset/base/262123 Log: Give the fdt helper routines static linkage since no global definition of them is provided anywhere. (gcc was nice enough to warn about this, clang didn't for some reaso

svn commit: r262244 - head/sys/arm/freescale/imx

2014-02-20 Thread Ian Lepore
Author: ian Date: Thu Feb 20 14:29:59 2014 New Revision: 262244 URL: http://svnweb.freebsd.org/changeset/base/262244 Log: Add early printf support, wrapped in #if 0 because it's only rarely needed. Modified: head/sys/arm/freescale/imx/imx6_machdep.c Modified: head/sys/arm/freescale/imx/imx6_

svn commit: r262280 - in head/sys: arm/freescale/imx boot/fdt/dts

2014-02-20 Thread Ian Lepore
-1,5 +1,6 @@ /*- * Copyright (c) 2013 Ian Lepore + * Copyright (c) 2014 Steven Lawrance * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,6 +30,8 @@ __FBSDID("$FreeBSD$"); /* * Analog PLL and power regulator driver for Freescale i.MX6 fami

Re: svn commit: r262282 - in head: contrib/dma contrib/dma/debian contrib/dma/debian/migrate contrib/dma/debian/source contrib/dma/test etc/mtree libexec libexec/dma share/mk tools/build/mk tools/buil

2014-02-21 Thread Ian Lepore
On Fri, 2014-02-21 at 07:26 +, Baptiste Daroussin wrote: > Author: bapt > Date: Fri Feb 21 07:26:49 2014 > New Revision: 262282 > URL: http://svnweb.freebsd.org/changeset/base/262282 > > Log: > Import Dragonfly Mail Agent into base system > > It is a small and lightweight Mail Transport

svn commit: r262326 - head/sys/boot/fdt

2014-02-21 Thread Ian Lepore
Author: ian Date: Sat Feb 22 03:29:53 2014 New Revision: 262326 URL: http://svnweb.freebsd.org/changeset/base/262326 Log: Fix the strange 2-space indentation that appears only in this one function. Modified: head/sys/boot/fdt/fdt_loader_cmd.c Modified: head/sys/boot/fdt/fdt_loader_cmd.c

svn commit: r262327 - head/sys/boot/fdt

2014-02-21 Thread Ian Lepore
Author: ian Date: Sat Feb 22 03:36:45 2014 New Revision: 262327 URL: http://svnweb.freebsd.org/changeset/base/262327 Log: Look for both fdtaddr and fdt_addr env var names. Grepping the u-boot source shows that board vendors seem to be about evenly split on this. This commit is a trivial

svn commit: r262337 - head/sys/boot/uboot/common

2014-02-22 Thread Ian Lepore
Author: ian Date: Sat Feb 22 17:51:10 2014 New Revision: 262337 URL: http://svnweb.freebsd.org/changeset/base/262337 Log: Allow the ubldr boot device to be choosen by a u-boot environment variable. If a "loaderdev=" env variable is set and the named device exists, it is used. If the devi

svn commit: r262340 - head/sys/boot/fdt

2014-02-22 Thread Ian Lepore
Author: ian Date: Sat Feb 22 19:10:58 2014 New Revision: 262340 URL: http://svnweb.freebsd.org/changeset/base/262340 Log: Change fdt_setup_fdtp() from "guess then fail" to more probe-like behavior. The old code basically said it was going to use some particular blob without knowing whethe

svn commit: r262345 - head/sys/boot/common

2014-02-22 Thread Ian Lepore
Author: ian Date: Sat Feb 22 22:03:26 2014 New Revision: 262345 URL: http://svnweb.freebsd.org/changeset/base/262345 Log: Change file_loadraw() from static to public. Change the order of its arguments from type,filename to filename,type to be consistant with other public file_whatever() fun

svn commit: r262347 - head/sys/boot/fdt

2014-02-22 Thread Ian Lepore
Author: ian Date: Sat Feb 22 22:18:20 2014 New Revision: 262347 URL: http://svnweb.freebsd.org/changeset/base/262347 Log: Add a feature for automatically finding and loading a dtb file by name. The name is taken from the u-boot env vars fdtfile or fdt_file. If the name isn't fully-qualified

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

2014-02-22 Thread Ian Lepore
Author: ian Date: Sun Feb 23 01:37:29 2014 New Revision: 262353 URL: http://svnweb.freebsd.org/changeset/base/262353 Log: Add the FREEBSD_BOOT_LOADER option so that a loaded DTB passed in from ubldr will actually get used. Modified: head/sys/arm/conf/WANDBOARD.common Modified: head/sys/arm

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

2014-02-22 Thread Ian Lepore
Author: ian Date: Sun Feb 23 01:48:07 2014 New Revision: 262354 URL: http://svnweb.freebsd.org/changeset/base/262354 Log: Create a generic IMX6 kernel config. This is based on the existing WANDBOARD.common config, but with the freescale-specific optons and devices all together at the bottom

svn commit: r262355 - head/sys/arm/freescale/imx

2014-02-22 Thread Ian Lepore
Author: ian Date: Sun Feb 23 01:49:01 2014 New Revision: 262355 URL: http://svnweb.freebsd.org/changeset/base/262355 Log: Don't force bootverbose on anymore, it can be set from ubldr now. Modified: head/sys/arm/freescale/imx/imx6_machdep.c Modified: head/sys/arm/freescale/imx/imx6_machdep.c

svn commit: r262393 - head/sys/arm/freescale/imx

2014-02-23 Thread Ian Lepore
Author: ian Date: Sun Feb 23 21:13:04 2014 New Revision: 262393 URL: http://svnweb.freebsd.org/changeset/base/262393 Log: Fix a typo _IMX51_TZICRREG_H_ -> _IMX51_TZICREG_H_ (extra R) Modified: head/sys/arm/freescale/imx/imx51_tzicreg.h Modified: head/sys/arm/freescale/imx/imx51_tzicreg.h ===

svn commit: r262408 - head/sys/arm/ti/twl

2014-02-23 Thread Ian Lepore
Author: ian Date: Sun Feb 23 22:29:59 2014 New Revision: 262408 URL: http://svnweb.freebsd.org/changeset/base/262408 Log: Eliminate an unused-var warning by wrapping #if 0 around some tables of values that were probably entered "for completeness" from a datasheet, and for all I know may be u

svn commit: r262409 - in head/sys/arm: include mv/armadaxp samsung/exynos ti/omap4

2014-02-23 Thread Ian Lepore
Author: ian Date: Sun Feb 23 22:35:18 2014 New Revision: 262409 URL: http://svnweb.freebsd.org/changeset/base/262409 Log: Move the declaration for mpentry() into a header file instead of pasting it into a bunch of different .c files. Remove declarations for the unused mptramp() function fro

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

2014-02-23 Thread Ian Lepore
Author: ian Date: Sun Feb 23 22:52:48 2014 New Revision: 262411 URL: http://svnweb.freebsd.org/changeset/base/262411 Log: If the L2 cache type is PIPT, pass a physical address for a flush. While this is technically more correct, I don't think it much matters, because the only thing in the

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

2014-02-23 Thread Ian Lepore
Author: ian Date: Sun Feb 23 23:06:50 2014 New Revision: 262413 URL: http://svnweb.freebsd.org/changeset/base/262413 Log: Actually set the proper bit to indicate TTB shared memory. Submitted by: Juergan Weiss Modified: head/sys/arm/arm/locore.S Modified: head/sys/arm/arm/locore.S ==

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

2014-02-23 Thread Ian Lepore
Author: ian Date: Mon Feb 24 01:17:23 2014 New Revision: 262419 URL: http://svnweb.freebsd.org/changeset/base/262419 Log: Add an ident line. Modified: head/sys/arm/conf/IMX6 Modified: head/sys/arm/conf/IMX6 == --- he

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

2014-02-23 Thread Ian Lepore
Author: ian Date: Mon Feb 24 01:41:58 2014 New Revision: 262420 URL: http://svnweb.freebsd.org/changeset/base/262420 Log: Add a new cache maintenance function, idcache_inv_all, to the table, and implementations for each of the chips we support. Most chips up through armv6 can use the armv4

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

2014-02-23 Thread Ian Lepore
Author: ian Date: Mon Feb 24 03:47:39 2014 New Revision: 262426 URL: http://svnweb.freebsd.org/changeset/base/262426 Log: Invalidate caches immediately upon entry to init_secondary(). Also set the Bufferable bit in the PDE entries of the secondary processor startup pagetables. The cach

svn commit: r262427 - head/sys/arm/freescale/imx

2014-02-23 Thread Ian Lepore
@@ -0,0 +1,166 @@ +/*- + * Copyright (c) 2014 Juergen Weiss + * Copyright (c) 2014 Ian Lepore + * 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

svn commit: r262482 - head/sys/arm/freescale/imx

2014-02-25 Thread Ian Lepore
Author: ian Date: Tue Feb 25 15:22:40 2014 New Revision: 262482 URL: http://svnweb.freebsd.org/changeset/base/262482 Log: Invalidate the SCU cache tag ram on all 4 cores, not just 1-3. I misread Juergen's original code, it was doing all 4 cores. Also remove the L2 cache invalidate operatio

svn commit: r262531 - head/sys/arm/freescale/imx

2014-02-26 Thread Ian Lepore
Author: ian Date: Wed Feb 26 18:29:14 2014 New Revision: 262531 URL: http://svnweb.freebsd.org/changeset/base/262531 Log: Minor tweaks to the imx GPT timer... - Don't use spaces or dots in the eventtimer or timecounter names. They turn into sysctl node names, and it's just confusing.

svn commit: r262534 - in head/sys/arm: allwinner arm broadcom/bcm2835 freescale/imx include lpc mv ti/am335x

2014-02-26 Thread Ian Lepore
Author: ian Date: Wed Feb 26 22:06:10 2014 New Revision: 262534 URL: http://svnweb.freebsd.org/changeset/base/262534 Log: Replace many pasted identical definitions of cpu_initclocks() with a common implementation in arm/machdep.c. Most arm platforms either don't need to do anything, or just

svn commit: r262581 - head/sys/arm/freescale/imx

2014-02-27 Thread Ian Lepore
Author: ian Date: Thu Feb 27 22:55:33 2014 New Revision: 262581 URL: http://svnweb.freebsd.org/changeset/base/262581 Log: Initialize the Low Power Mode bits to keep the ARM cores running during WFI. Modified: head/sys/arm/freescale/imx/imx6_ccm.c head/sys/arm/freescale/imx/imx6_ccmreg.h Mo

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

2014-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 28 00:17:03 2014 New Revision: 262583 URL: http://svnweb.freebsd.org/changeset/base/262583 Log: All our current ARM multi-core systems have all cores in one package with a shared L2 cache, reflect that in the common cpu_topo() routine. Modified: head/sys/arm/arm/mp

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

2014-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 28 00:23:04 2014 New Revision: 262584 URL: http://svnweb.freebsd.org/changeset/base/262584 Log: Supply a DELAY() implementation via weak linkage, so that SoC-specific code can supply a better implementation. A SoC with variable CPU frequency is likely to use a fixe

svn commit: r262585 - head/sys/arm/freescale/imx

2014-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 28 00:26:57 2014 New Revision: 262585 URL: http://svnweb.freebsd.org/changeset/base/262585 Log: Add some rudimentary voltage control to go with the rudimentary frequency control. If we have to scale back the frequency due to temperature, it will help to lower the v

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

2014-02-27 Thread Ian Lepore
Author: ian Date: Fri Feb 28 00:41:55 2014 New Revision: 262587 URL: http://svnweb.freebsd.org/changeset/base/262587 Log: Add an armv7 implementation of cpu_sleep(). The arm11/armv6 implementation we've been using was actually just spinning due to ARM having redefined the old 'wait for inte

svn commit: r262664 - in head/sys/boot: fdt uboot/common uboot/lib

2014-03-01 Thread Ian Lepore
Author: ian Date: Sat Mar 1 19:02:00 2014 New Revision: 262664 URL: http://svnweb.freebsd.org/changeset/base/262664 Log: Prevent fdt data loaded from a file from overwriting the kernel environment, by having uboot_autoload() do the fdt setup (which may load a file) rather than waiting until

svn commit: r262666 - head/sys/boot/uboot/common

2014-03-02 Thread Ian Lepore
Author: ian Date: Sat Mar 1 19:25:23 2014 New Revision: 262666 URL: http://svnweb.freebsd.org/changeset/base/262666 Log: If we can't find the u-boot api signature, exit with an error status that includes "badab1"; u-boot displays the status in hex, so this may help give some clue about why

svn commit: r262694 - head/sys/boot/uboot/common

2014-03-02 Thread Ian Lepore
Author: ian Date: Sun Mar 2 17:19:19 2014 New Revision: 262694 URL: http://svnweb.freebsd.org/changeset/base/262694 Log: Include needed header. I don't know why clang didn't complain about this but gcc sure did. Modified: head/sys/boot/uboot/common/metadata.c Modified: head/sys/boot/uboo

svn commit: r262695 - in head/sys/arm: conf freescale/imx

2014-03-02 Thread Ian Lepore
Author: ian Date: Sun Mar 2 19:46:03 2014 New Revision: 262695 URL: http://svnweb.freebsd.org/changeset/base/262695 Log: Add a tunable to set the number of active cores, and enable SMP by default. Modified: head/sys/arm/conf/IMX6 head/sys/arm/freescale/imx/imx6_mp.c Modified: head/sys/arm

Re: svn commit: r262685 - in head: contrib/ncurses contrib/ncurses/doc contrib/ncurses/doc/html contrib/ncurses/form contrib/ncurses/include contrib/ncurses/man contrib/ncurses/menu contrib/ncurses/mi

2014-03-02 Thread Ian Lepore
On Sun, 2014-03-02 at 08:58 +, Xin LI wrote: > Author: delphij > Date: Sun Mar 2 08:58:21 2014 > New Revision: 262685 > URL: http://svnweb.freebsd.org/changeset/base/262685 > > Log: > MFV r262639: ncurses 5.9 20140222 snapshot. > > Requested by: bapt This seems to be causing tin

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

2014-03-02 Thread Ian Lepore
Author: ian Date: Sun Mar 2 21:25:32 2014 New Revision: 262696 URL: http://svnweb.freebsd.org/changeset/base/262696 Log: Add __attribute__((used)) so that the delay implementation doesn't get optimized away as unreferenced, causing linker errors when trying to resolve the weak reference to

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

2014-03-03 Thread Ian Lepore
Author: ian Date: Mon Mar 3 14:37:18 2014 New Revision: 262712 URL: http://svnweb.freebsd.org/changeset/base/262712 Log: Use the standard __used macro instead of a bare __attribute__. Submitted by: bde Modified: head/sys/arm/arm/mpcore_timer.c Modified: head/sys/arm/arm/mpcore_timer.c

Re: svn commit: r262696 - head/sys/arm/arm

2014-03-03 Thread Ian Lepore
On Mon, 2014-03-03 at 18:49 +1100, Bruce Evans wrote: > On Sun, 2 Mar 2014, Ian Lepore wrote: > > > Log: > > Add __attribute__((used)) so that the delay implementation doesn't get > > optimized away as unreferenced, causing linker errors when trying to > >

svn commit: r262714 - head/sys/boot/fdt/dts/arm

2014-03-03 Thread Ian Lepore
Author: ian Date: Mon Mar 3 16:00:11 2014 New Revision: 262714 URL: http://svnweb.freebsd.org/changeset/base/262714 Log: Add a missing semicolong, noticed by the gnu dt compiler. Modified: head/sys/boot/fdt/dts/arm/beaglebone.dts Modified: head/sys/boot/fdt/dts/arm/beaglebone.dts ==

svn commit: r262736 - head/sys/boot/fdt/dts/arm

2014-03-04 Thread Ian Lepore
Author: ian Date: Tue Mar 4 14:19:15 2014 New Revision: 262736 URL: http://svnweb.freebsd.org/changeset/base/262736 Log: Use an empty ranges statement for the bus, because all the children on the bus have their register properties declared as full physical addresses, not offsets from a base

Re: svn commit: r262411 - head/sys/arm/arm

2014-03-05 Thread Ian Lepore
On Wed, 2014-03-05 at 13:54 +0200, Konstantin Belousov wrote: > On Sun, Feb 23, 2014 at 10:52:48PM +0000, Ian Lepore wrote: > > Author: ian > > Date: Sun Feb 23 22:52:48 2014 > > New Revision: 262411 > > URL: http://svnweb.freebsd.org/changeset/base/262411 > > &g

Re: svn commit: r262760 - in head: sbin/pfctl sys/net sys/netpfil/pf

2014-03-05 Thread Ian Lepore
On Wed, 2014-03-05 at 00:40 +, Gleb Smirnoff wrote: > Author: glebius > Date: Wed Mar 5 00:40:03 2014 > New Revision: 262760 > URL: http://svnweb.freebsd.org/changeset/base/262760 > > Log: > Instead of playing games with casts simply add 3 more members to the > structure pf_rule, that are

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

2014-03-06 Thread Ian Lepore
Author: ian Date: Fri Mar 7 00:25:23 2014 New Revision: 262877 URL: http://svnweb.freebsd.org/changeset/base/262877 Log: Add option TMPFS to arm/conf/DEFAULTS, remove it from the few configs that have it individually. Concensus on freebsd-arm@ is that it should be included in all ARM kerne

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

2014-03-07 Thread Ian Lepore
Author: ian Date: Fri Mar 7 20:32:45 2014 New Revision: 262903 URL: http://svnweb.freebsd.org/changeset/base/262903 Log: Fix the arm sys_sigreturn(): its argument is a struct ucontext, not a struct sigframe containing the struct ucontext. The signal trampoline return code on the other ha

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

2014-03-07 Thread Ian Lepore
Author: ian Date: Fri Mar 7 21:36:49 2014 New Revision: 262905 URL: http://svnweb.freebsd.org/changeset/base/262905 Log: Strip arm/conf/DEFAULTS down to just items that are mandatory for running the architecture. Move the other contents into each of the individual config files. Reques

Re: svn commit: r262411 - head/sys/arm/arm

2014-03-08 Thread Ian Lepore
On Fri, 2014-03-07 at 17:21 +0200, Konstantin Belousov wrote: > On Wed, Mar 05, 2014 at 06:22:47AM -0700, Ian Lepore wrote: > > On Wed, 2014-03-05 at 13:54 +0200, Konstantin Belousov wrote: > > > On Sun, Feb 23, 2014 at 10:52:48PM +, Ian Lepore wrote: > > > > Aut

svn commit: r262935 - head/sys/arm/allwinner/a20

2014-03-08 Thread Ian Lepore
Author: ian Date: Sun Mar 9 01:52:21 2014 New Revision: 262935 URL: http://svnweb.freebsd.org/changeset/base/262935 Log: Follow r262916 with one more config file that references a renamed common.c Modified: head/sys/arm/allwinner/a20/files.a20 Modified: head/sys/arm/allwinner/a20/files.a20

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

2014-03-08 Thread Ian Lepore
} END(savectx) Modified: head/sys/arm/arm/vfp.c == --- head/sys/arm/arm/vfp.c Sun Mar 9 02:28:30 2014(r262940) +++ head/sys/arm/arm/vfp.c Sun Mar 9 03:00:03 2014(r262941) @@ -1,4 +1,5 @@ -/* +/*- + * Copyright (c) 2014

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

2014-03-08 Thread Ian Lepore
Author: ian Date: Sun Mar 9 03:49:06 2014 New Revision: 262942 URL: http://svnweb.freebsd.org/changeset/base/262942 Log: Remove all dregs of a per-thread undefined-exception-mode stack. This is a leftover from the days when a low-level debugger had hooks in the undefined exception vector a

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

2014-03-09 Thread Ian Lepore
Author: ian Date: Sun Mar 9 14:24:05 2014 New Revision: 262948 URL: http://svnweb.freebsd.org/changeset/base/262948 Log: Always call vfp_discard() on thread death, not just when the VFP is enabled. In vfp_discard(), if the state in the VFP hardware belongs to the thread which is dying, NUL

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

2014-03-09 Thread Ian Lepore
Author: ian Date: Sun Mar 9 14:54:05 2014 New Revision: 262949 URL: http://svnweb.freebsd.org/changeset/base/262949 Log: When a thread begins life it doesn't own the VFP hardware state on any cpu. Modified: head/sys/arm/arm/machdep.c head/sys/arm/arm/vm_machdep.c Modified: head/sys/arm/ar

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

2014-03-09 Thread Ian Lepore
Author: ian Date: Sun Mar 9 15:36:56 2014 New Revision: 262950 URL: http://svnweb.freebsd.org/changeset/base/262950 Log: Make undefined exception entry MPSAFE. The old code used static storage to preserve a couple registers while setting up the trapframe for the main handler. Doing so w

svn commit: r262952 - in head/sys/arm: arm at91 econa s3c2xx0 sa11x0 xscale/i80321 xscale/i8134x xscale/ixp425 xscale/pxa

2014-03-09 Thread Ian Lepore
Author: ian Date: Sun Mar 9 18:08:27 2014 New Revision: 262952 URL: http://svnweb.freebsd.org/changeset/base/262952 Log: The arm exception entry points currently vector through a function pointer to the actual handler routine. All the pointers are static-intialized to the only handlers ava

svn commit: r262958 - in head/sys: arm/arm arm/conf arm/include arm/sa11x0 arm/xscale/pxa conf

2014-03-09 Thread Ian Lepore
Author: ian Date: Sun Mar 9 21:12:31 2014 New Revision: 262958 URL: http://svnweb.freebsd.org/changeset/base/262958 Log: Remove all traces of support for ARM chips prior to the arm9 series. We never actually ran on these chips (other than using SA1 support in an emulator to do the early po

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

2014-03-09 Thread Ian Lepore
Author: ian Date: Mon Mar 10 01:34:38 2014 New Revision: 262966 URL: http://svnweb.freebsd.org/changeset/base/262966 Log: Make the default exception handler vectors point to where I thought they were already pointing: the default handlers (not a panic that says there is no default handler).

svn commit: r262979 - in head/sys/arm: allwinner allwinner/a20 arm at91 broadcom/bcm2835 econa freescale/imx freescale/vybrid lpc mv rockchip s3c2xx0 samsung/exynos tegra ti versatile xilinx xscale...

2014-03-10 Thread Ian Lepore
Author: ian Date: Mon Mar 10 18:10:09 2014 New Revision: 262979 URL: http://svnweb.freebsd.org/changeset/base/262979 Log: Eliminate irq_dispatch.S. Move the data items it contained into arm/intr.c and the functionality it provided into arm/exception.S. Rename the main irq handling routine

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

2014-03-10 Thread Ian Lepore
Author: ian Date: Mon Mar 10 19:36:26 2014 New Revision: 262980 URL: http://svnweb.freebsd.org/changeset/base/262980 Log: Move the exception vector table (so-called "page0" data) into exception.S and eliminate vectors.S. All low-level exception handling is now consolidated into exception.S.

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

2014-03-10 Thread Ian Lepore
Author: ian Date: Mon Mar 10 22:38:07 2014 New Revision: 262986 URL: http://svnweb.freebsd.org/changeset/base/262986 Log: Change the way the asm GET_CURTHREAD_PTR() macro is defined so that code using it doesn't have to have an "AST_LOCALS" macro somewhere in the file. Modified: head/sys/ar

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

2014-03-10 Thread Ian Lepore
Author: ian Date: Mon Mar 10 22:52:32 2014 New Revision: 262987 URL: http://svnweb.freebsd.org/changeset/base/262987 Log: Arrange for arm fork_trampoline() to return to userland via the standard swi_exit code in exception.S instead of having its own inline expansion of the DO_AST and PULLFRA

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

2014-03-10 Thread Ian Lepore
Author: ian Date: Tue Mar 11 03:19:43 2014 New Revision: 262995 URL: http://svnweb.freebsd.org/changeset/base/262995 Log: Now that the PUSHFRAME and PULLFRAME macros are used only in the swi entry/exit code, they don't need to be macros. Now they're just inline code, and rewritten to use sh

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

2014-03-10 Thread Ian Lepore
Author: ian Date: Tue Mar 11 04:25:12 2014 New Revision: 262997 URL: http://svnweb.freebsd.org/changeset/base/262997 Log: Revert r262994 for now, it fails to boot on armv5. Modified: head/sys/arm/arm/exception.S Modified: head/sys/arm/arm/exception.S =

Re: svn commit: r262997 - head/sys/arm/arm

2014-03-10 Thread Ian Lepore
On Tue, 2014-03-11 at 04:25 +, Ian Lepore wrote: > Author: ian > Date: Tue Mar 11 04:25:12 2014 > New Revision: 262997 > URL: http://svnweb.freebsd.org/changeset/base/262997 > > Log: > Revert r262994 for now, it fails to boot on armv5. Oops, that should be r262995.

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

2014-03-11 Thread Ian Lepore
Author: ian Date: Tue Mar 11 15:46:03 2014 New Revision: 263030 URL: http://svnweb.freebsd.org/changeset/base/263030 Log: Remove some unnecessary indirection and jump right to the handler functions. Modified: head/sys/arm/arm/exception.S Modified: head/sys/arm/arm/exception.S ===

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