svn commit: r296677 - in head: lib/libunbound usr.sbin/unbound/anchor usr.sbin/unbound/checkconf usr.sbin/unbound/control usr.sbin/unbound/daemon

2016-03-11 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 11 20:04:32 2016 New Revision: 296677 URL: https://svnweb.freebsd.org/changeset/base/296677 Log: Add to CFLAGS, rather than replacing. This allows additional CFLAGS, as set in bsd.cpu.mk, to go through. Modified: head/lib/libunbound/Makefile

Re: svn commit: r296336 - in head/sys: dev/bhnd dev/pccard dev/pci isa kern sys x86/xen

2016-03-03 Thread Justin Hibbits
On Thu, Mar 3, 2016 at 12:18 AM, Bruce Evans <b...@optusnet.com.au> wrote: > On Thu, 3 Mar 2016, Justin Hibbits wrote: > >> Log: >> Replace all resource occurrences of '0UL/~0UL' with '0/~0'. >> >> Summary: >> The idea behind this is '~0ul'

svn commit: r296372 - head/sys/dev/acpica

2016-03-03 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 4 01:25:45 2016 New Revision: 296372 URL: https://svnweb.freebsd.org/changeset/base/296372 Log: Remove default initializations for rman, a'la r296331 Modified: head/sys/dev/acpica/acpi.c Modified: head/sys/dev/acpica/acpi.c

svn commit: r296336 - in head/sys: dev/bhnd dev/pccard dev/pci isa kern sys x86/xen

2016-03-02 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 3 05:07:35 2016 New Revision: 296336 URL: https://svnweb.freebsd.org/changeset/base/296336 Log: Replace all resource occurrences of '0UL/~0UL' with '0/~0'. Summary: The idea behind this is '~0ul' is well-defined, and casting to uintmax_t, on a 32-bit

svn commit: r296331 - in head/sys: mips/nlm mips/rmi powerpc/mpc85xx

2016-03-02 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 3 01:12:13 2016 New Revision: 296331 URL: https://svnweb.freebsd.org/changeset/base/296331 Log: Let rman_init() initialize the default rman range. If rm_start and rm_end are both 0 on input to rman_init(), rman_init() pre-initializes them to the default

svn commit: r296330 - head/sys/pc98/cbus

2016-03-02 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 3 01:09:00 2016 New Revision: 296330 URL: https://svnweb.freebsd.org/changeset/base/296330 Log: Another convert to bus_alloc_resource_anywhere(). Depending on how cbus hands out resources, this could actually be bus_alloc_resource_any() instead. Modified:

svn commit: r296329 - head/sys/dev/sbni

2016-03-02 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 3 01:07:17 2016 New Revision: 296329 URL: https://svnweb.freebsd.org/changeset/base/296329 Log: Allocate the PCI BAR resource with bus_alloc_resource_any() We don't support allocating any other range with PCI BARs. Modified:

svn commit: r296298 - in head/sys/dev: bhnd pci puc quicc scc

2016-03-01 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 2 03:26:56 2016 New Revision: 296298 URL: https://svnweb.freebsd.org/changeset/base/296298 Log: Replace some more default range checks with RMAN_IS_DEFAULT_RANGE(). This is a follow-on to r295832. Modified: head/sys/dev/bhnd/bhnd.c

svn commit: r296295 - head/sys/dev/dpaa

2016-03-01 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 2 02:29:35 2016 New Revision: 296295 URL: https://svnweb.freebsd.org/changeset/base/296295 Log: Use the m_extadd() function instead of deprecated MEXTADD(). Suggested by: glebius Modified: head/sys/dev/dpaa/if_dtsec_rm.c Modified:

svn commit: r296294 - head/sys/dev/dpaa

2016-03-01 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 2 02:27:53 2016 New Revision: 296294 URL: https://svnweb.freebsd.org/changeset/base/296294 Log: Remove some debug printfs Modified: head/sys/dev/dpaa/bman_fdt.c Modified: head/sys/dev/dpaa/bman_fdt.c

svn commit: r296287 - head/sys/powerpc/mpc85xx

2016-03-01 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 2 00:18:05 2016 New Revision: 296287 URL: https://svnweb.freebsd.org/changeset/base/296287 Log: Fix 2 bugs in the mpc85xx local bus controller driver. 1) Include opt_platform.h to get QORIQ_DPAA. Otherwise the definition of OCP85XX_TGTIF_LBC is incorrect.

svn commit: r296251 - head/sys/powerpc/mpc85xx

2016-02-29 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 1 03:41:48 2016 New Revision: 296251 URL: https://svnweb.freebsd.org/changeset/base/296251 Log: Add another compatibility check for QorIQ GPIO driver. Some MPC85xx GPIO controllers are compatible with QorIQ. It may make more sense in the future to

svn commit: r296250 - in head/sys: arm/arm arm64/arm64 mips/mips riscv/riscv sparc64/sparc64 x86/x86

2016-02-29 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 1 02:59:06 2016 New Revision: 296250 URL: https://svnweb.freebsd.org/changeset/base/296250 Log: Correct the memory rman ranges to be to BUS_SPACE_MAXADDR Summary: As part of the migration of rman_res_t to be typed to uintmax_t, memory ranges must be

svn commit: r296245 - head/sys/powerpc/aim

2016-02-29 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 1 00:50:39 2016 New Revision: 296245 URL: https://svnweb.freebsd.org/changeset/base/296245 Log: Add VM_MEMATTR_CACHEABLE support for AIM, for parity with Book-E. Not used right now, but may be in the future anyway. Modified: head/sys/powerpc/aim/mmu_oea.c

svn commit: r296177 - in head: share/man/man4/man4.powerpc sys/contrib/ncsw sys/contrib/ncsw/Peripherals sys/contrib/ncsw/Peripherals/BM sys/contrib/ncsw/Peripherals/FM sys/contrib/ncsw/Peripherals...

2016-02-28 Thread Justin Hibbits
added) +++ head/share/man/man4/man4.powerpc/dtsec.4Mon Feb 29 03:38:00 2016 (r296177) @@ -0,0 +1,120 @@ +.\" +.\" Copyright (c) 2016 Justin Hibbits +.\" +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.

svn commit: r296142 - in head/sys/powerpc: booke include powerpc

2016-02-27 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 27 20:39:36 2016 New Revision: 296142 URL: https://svnweb.freebsd.org/changeset/base/296142 Log: Implement pmap_change_attr() for PowerPC (Book-E only for now) Summary: Some drivers need special memory requirements. X86 solves this with a

svn commit: r296141 - head/sys/powerpc/mpc85xx

2016-02-27 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 27 16:27:48 2016 New Revision: 296141 URL: https://svnweb.freebsd.org/changeset/base/296141 Log: Move another range check to use RMAN_IS_DEFAULT_RANGE(). Modified: head/sys/powerpc/mpc85xx/lbc.c Modified: head/sys/powerpc/mpc85xx/lbc.c

svn commit: r296137 - in head/sys: arm/xscale/i8134x dev/aac dev/aacraid dev/aha dev/aic dev/an dev/ata dev/cm dev/cs dev/ct dev/digi dev/ed dev/fdc dev/fe dev/ichsmb dev/if_ndis dev/iicbus dev/le ...

2016-02-26 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 27 03:38:01 2016 New Revision: 296137 URL: https://svnweb.freebsd.org/changeset/base/296137 Log: Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere(). Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count.

svn commit: r296136 - in head: share/man/man9 sys/sys

2016-02-26 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 27 03:35:28 2016 New Revision: 296136 URL: https://svnweb.freebsd.org/changeset/base/296136 Log: Add the bus_alloc_resource_anywhere() convenience function. Summary: Many instances of bus_alloc_resource() simply use 0 and ~0 for start and end to denote

svn commit: r296135 - in head/sys/dev: amdsbwd arcmsr hpt27xx hptmv hptnr hptrr sdhci sound/pci tws

2016-02-26 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 27 03:34:01 2016 New Revision: 296135 URL: https://svnweb.freebsd.org/changeset/base/296135 Log: Replace several bus_alloc_resource() calls with bus_alloc_resource_any() Most of these are BARs, and we allocate them in their entirety. The one outlier in

svn commit: r296023 - head/sys/dev/cy

2016-02-24 Thread Justin Hibbits
Author: jhibbits Date: Thu Feb 25 04:32:17 2016 New Revision: 296023 URL: https://svnweb.freebsd.org/changeset/base/296023 Log: Fix the build. Pointy-hat to:jhibbits Spotted by: bde Modified: head/sys/dev/cy/cy_pci.c Modified: head/sys/dev/cy/cy_pci.c

svn commit: r295908 - head/sys/powerpc/mpc85xx

2016-02-22 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 23 02:28:19 2016 New Revision: 295908 URL: https://svnweb.freebsd.org/changeset/base/295908 Log: Allow the size argument for law_enable() to be non-power-of-2. Although the local access windows are powers of 2 in size, allow arguments that aren't power of

Re: svn commit: r295756 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-02-20 Thread Justin Hibbits
> > 2016-02-20 5:48 GMT+01:00 Justin Hibbits <jr...@alumni.cwru.edu>: >> This was not tinderboxed. I'm getting build failures for powerpc and >> sparc64. Please revert or fix. >> >> Least of which: sys/dev/ofw/ofw_pci.c conflicts with >> sys/powerpc/ofw/

Re: svn commit: r295833 - head/sys/sys

2016-02-19 Thread Justin Hibbits
On 2/19/16, Bruce Evans <b...@optusnet.com.au> wrote: > On Sat, 20 Feb 2016, Justin Hibbits wrote: > >> Log: >> Fix the definition of RM_MAX_END. >> >> Even though casting from signed to unsigned is well-defined in C, it's >> better to >> fir

Re: svn commit: r295756 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-02-19 Thread Justin Hibbits
This was not tinderboxed. I'm getting build failures for powerpc and sparc64. Please revert or fix. Least of which: sys/dev/ofw/ofw_pci.c conflicts with sys/powerpc/ofw/ofw_pci.c, which I mentioned in phabricator long ago. Additionally, several files are missing includes of

svn commit: r295833 - head/sys/sys

2016-02-19 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 20 01:34:13 2016 New Revision: 295833 URL: https://svnweb.freebsd.org/changeset/base/295833 Log: Fix the definition of RM_MAX_END. Even though casting from signed to unsigned is well-defined in C, it's better to first cast to the larger unsigned type, then

svn commit: r295832 - in head/sys: arm/at91 arm/cavium/cns11xx arm/mv arm64/arm64 arm64/cavium dev/acpica dev/eisa dev/fdt dev/gpio dev/mca dev/ofw dev/pccard dev/siba dev/vnic kern mips/adm5120 mi...

2016-02-19 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 20 01:32:58 2016 New Revision: 295832 URL: https://svnweb.freebsd.org/changeset/base/295832 Log: Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it. This simplifies checking for default resource range for bus_alloc_resource(), and improves readability.

svn commit: r295790 - in head/sys: dev/arcmsr dev/cy dev/ed dev/fb dev/fdc dev/hpt27xx dev/hptiop dev/hptmv dev/hptnr dev/hptrr dev/isci dev/ixgb dev/lmc dev/mrsas dev/mxge dev/nvme dev/quicc dev/s...

2016-02-18 Thread Justin Hibbits
Author: jhibbits Date: Fri Feb 19 03:37:56 2016 New Revision: 295790 URL: https://svnweb.freebsd.org/changeset/base/295790 Log: Replace several bus_alloc_resource() calls using default arguments with bus_alloc_resource_any() Since these calls only use default arguments,

svn commit: r295682 - head/sys/sys

2016-02-16 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 16 23:47:52 2016 New Revision: 295682 URL: https://svnweb.freebsd.org/changeset/base/295682 Log: Bump __FreeBSD_Version for u_long -> rman_res_t change (r294883). Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r295673 - head/sys/powerpc/ps3

2016-02-16 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 16 21:30:55 2016 New Revision: 295673 URL: https://svnweb.freebsd.org/changeset/base/295673 Log: Another conversion u_long -> rman_res_t Modified: head/sys/powerpc/ps3/ps3bus.c Modified: head/sys/powerpc/ps3/ps3bus.c

svn commit: r295664 - in head/sys/dev: ata/chipsets pci

2016-02-16 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 16 17:55:10 2016 New Revision: 295664 URL: https://svnweb.freebsd.org/changeset/base/295664 Log: Convert a few more long -> rman_res_t. Modified: head/sys/dev/ata/chipsets/ata-promise.c head/sys/dev/pci/pci_pci.c Modified:

svn commit: r295642 - in head/sys/powerpc: booke include

2016-02-15 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 16 02:13:55 2016 New Revision: 295642 URL: https://svnweb.freebsd.org/changeset/base/295642 Log: Fix a panic bug that cropped up in the PTE rewrite. PTE was getting overwritten by just the flags. Pointy-hat to:jhibbits Modified:

svn commit: r295520 - in head/sys/powerpc: booke include powerpc

2016-02-11 Thread Justin Hibbits
Author: jhibbits Date: Thu Feb 11 13:15:37 2016 New Revision: 295520 URL: https://svnweb.freebsd.org/changeset/base/295520 Log: Migrate the PTE format for book-e to standardize on the 'indirect PTE' format Summary: The revised Book-E spec, adding the specification for the MMUv2 and

svn commit: r295183 - head/sys/powerpc/mpc85xx

2016-02-02 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 3 01:29:06 2016 New Revision: 295183 URL: https://svnweb.freebsd.org/changeset/base/295183 Log: Make lbc(4) the same driver pass as simplebus. Device trees mark lbc as compatible with simplebus. Since simplebus is passed first, it attaches first. When

svn commit: r295186 - head/sys/powerpc/powerpc

2016-02-02 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 3 01:50:27 2016 New Revision: 295186 URL: https://svnweb.freebsd.org/changeset/base/295186 Log: Align signal stack pointer to 16 bytes. The stack must be aligned to 16 bytes at all times. Clang 3.8 is especially adamant about this, and causes strange

svn commit: r295112 - head/sys/powerpc/powerpc

2016-01-31 Thread Justin Hibbits
Author: jhibbits Date: Mon Feb 1 02:04:40 2016 New Revision: 295112 URL: https://svnweb.freebsd.org/changeset/base/295112 Log: Use the correct type to pmap_mapdev() in nexus_activate_resource(). pmap_mapdev() takes vm_paddr_t, which may be sized differently from vm_offset_t, as it is

svn commit: r294885 - head/sys/sys

2016-01-26 Thread Justin Hibbits
Author: jhibbits Date: Wed Jan 27 03:51:24 2016 New Revision: 294885 URL: https://svnweb.freebsd.org/changeset/base/294885 Log: Fix the build post-r294883. Pointy-hat to:jhibbits X-MFC with: r294883 Modified: head/sys/sys/rman.h Modified: head/sys/sys/rman.h

svn commit: r294883 - in head: lib/libdevinfo share/man/man9 sys/arm/arm sys/arm/at91 sys/arm/cavium/cns11xx sys/arm/mv sys/arm/versatile sys/arm/xscale/i8134x sys/arm/xscale/ixp425 sys/arm/xscale/...

2016-01-26 Thread Justin Hibbits
Author: jhibbits Date: Wed Jan 27 02:23:54 2016 New Revision: 294883 URL: https://svnweb.freebsd.org/changeset/base/294883 Log: Convert rman to use rman_res_t instead of u_long Summary: Migrate to using the semi-opaque type rman_res_t to specify rman resources. For now, this is still

svn commit: r294759 - head/sys/powerpc/booke

2016-01-25 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 26 03:52:14 2016 New Revision: 294759 URL: https://svnweb.freebsd.org/changeset/base/294759 Log: Fix a debug printf(). Somehow this printf() was missed in the conversion of vm_paddr_t to 64-bit, and made it through until now. Sponsored by: Alex

svn commit: r294760 - head/sys/powerpc/booke

2016-01-25 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 26 04:41:18 2016 New Revision: 294760 URL: https://svnweb.freebsd.org/changeset/base/294760 Log: Older Book-E processors (e500v1/e500v2) don't support dcbzl. The only difference between dcbzl and dcbz is dcbzl operates on native cache line lengths

svn commit: r294363 - head/sys/powerpc/booke

2016-01-19 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 19 23:35:12 2016 New Revision: 294363 URL: https://svnweb.freebsd.org/changeset/base/294363 Log: Revert a printf change from r294307. Caused build failures with MPC85XX. Pointy-hat to:jhibbits Modified: head/sys/powerpc/booke/pmap.c Modified:

Re: svn commit: r294307 - head/sys/powerpc/booke

2016-01-18 Thread Justin Hibbits
On Jan 18, 2016, at 9:07 PM, Justin Hibbits wrote: @@ -3237,7 +3249,11 @@ tlb1_mapin_region(vm_offset_t va, vm_pad } mapped = (va - base); +#ifdef __powerpc64__ + printf("mapped size 0x%016lx (wasted space 0x%16lx)\n", +#else printf("mapped size

svn commit: r294307 - head/sys/powerpc/booke

2016-01-18 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 19 03:07:25 2016 New Revision: 294307 URL: https://svnweb.freebsd.org/changeset/base/294307 Log: Hide most of the PTE initialization and management. By confining the page table management to a handful of functions it'll be easier to modify the page table

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

2016-01-17 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 17 23:03:21 2016 New Revision: 294237 URL: https://svnweb.freebsd.org/changeset/base/294237 Log: Quick exit after setting the clock control register. Discussed with: ian Modified: head/sys/arm/freescale/imx/imx_sdhci.c Modified:

svn commit: r294195 - head/sys/powerpc/include

2016-01-16 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 16 21:24:12 2016 New Revision: 294195 URL: https://svnweb.freebsd.org/changeset/base/294195 Log: Partially revert r294055. This part was a botched revert of a test change. Spotted by: alc Modified: head/sys/powerpc/include/vmparam.h Modified:

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

2016-01-16 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 17 00:14:22 2016 New Revision: 294197 URL: https://svnweb.freebsd.org/changeset/base/294197 Log: e5500 HWPMC is identical to e500mc, so add support check for it. Modified: head/sys/dev/hwpmc/hwpmc_e500.c head/sys/dev/hwpmc/hwpmc_powerpc.c Modified:

svn commit: r294055 - head/sys/powerpc/include

2016-01-14 Thread Justin Hibbits
Author: jhibbits Date: Thu Jan 14 23:22:43 2016 New Revision: 294055 URL: https://svnweb.freebsd.org/changeset/base/294055 Log: Adjust VM_MAX_KERNEL_ADDRESS to the max address, not the minimum next. VM_MAX_KERNEL_ADDERESS is the maximum KVA address. 0xf800 is the start of device

Re: svn commit: r293636 - in head/sys/powerpc: include ofw powermac powerpc

2016-01-10 Thread Justin Hibbits
On Sun, Jan 10, 2016 at 10:42 AM, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Sun Jan 10 16:42:14 2016 > New Revision: 293636 > URL: https://svnweb.freebsd.org/changeset/base/293636 > > Log: > Use setjmp() instead of the

svn commit: r293129 - head/sys/powerpc/booke

2016-01-03 Thread Justin Hibbits
Author: jhibbits Date: Mon Jan 4 02:20:14 2016 New Revision: 293129 URL: https://svnweb.freebsd.org/changeset/base/293129 Log: Make arguments for booke_init() u_long, to match register width. On powerpc64, pointers are 64 bits, so casting from uint32_t changes the integer width.

svn commit: r293128 - head/sys/powerpc/booke

2016-01-03 Thread Justin Hibbits
Author: jhibbits Date: Mon Jan 4 01:33:07 2016 New Revision: 293128 URL: https://svnweb.freebsd.org/changeset/base/293128 Log: Set the cacheline size before calling powerpc_init() powerpc_init() initializes the mmu. Since this may clear pages via pmap_zero_page(), set the cacheline

svn commit: r293107 - head/sys/powerpc/mpc85xx

2016-01-03 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 3 15:35:01 2016 New Revision: 293107 URL: https://svnweb.freebsd.org/changeset/base/293107 Log: Initialize the rid for input. Left uninitialized, random rid causes the IRQ setup to fail, and the PCI device to not be attached. Modified:

svn commit: r293106 - head/sys/powerpc/mpc85xx

2016-01-03 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 3 15:24:57 2016 New Revision: 293106 URL: https://svnweb.freebsd.org/changeset/base/293106 Log: Add error interrupt handler for Freescale PCI errors This eliminates a 'interrupt storm' warning spam with the P5020. Obtained from:Semihalf

Re: svn commit: r293053 - head/sys/boot/uboot/lib

2016-01-02 Thread Justin Hibbits
On Sat, Jan 2, 2016 at 4:46 PM, Ian Lepore wrote: > On Sat, 2016-01-02 at 22:20 +, Bjoern A. Zeeb wrote: >> > On 02 Jan 2016, at 18:16 , Ian Lepore wrote: >> > >> > Author: ian >> > Date: Sat Jan 2 18:16:24 2016 >> > New Revision: 293053 >> > URL:

svn commit: r293039 - in head/sys/dev: sec tsec

2016-01-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 1 15:17:24 2016 New Revision: 293039 URL: https://svnweb.freebsd.org/changeset/base/293039 Log: Fix a couple printf formats. This was found when working on 64-bit PowerPC book-e support. Modified: head/sys/dev/sec/sec.c head/sys/dev/tsec/if_tsec.c

svn commit: r293041 - head/sys/powerpc/mpc85xx

2016-01-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 1 15:36:56 2016 New Revision: 293041 URL: https://svnweb.freebsd.org/changeset/base/293041 Log: Use uint32_t for LBC block size. LBC block size can only be up to 4GB. The existing code already clamps it, but mixes unsigned long and uint32_t. This works

Re: svn commit: r293044 - head/sys/dev/sec

2016-01-01 Thread Justin Hibbits
On Fri, Jan 1, 2016 at 11:56 AM, Justin Hibbits <jhibb...@freebsd.org> wrote: > Author: jhibbits > Date: Fri Jan 1 17:56:52 2016 > New Revision: 293044 > URL: https://svnweb.freebsd.org/changeset/base/293044 > > Log: > Accidentally dropped the 0 padding. > &g

Re: svn commit: r293039 - in head/sys/dev: sec tsec

2016-01-01 Thread Justin Hibbits
On Jan 1, 2016 11:30, "Conrad Meyer" <c...@freebsd.org> wrote: > > On Fri, Jan 1, 2016 at 7:17 AM, Justin Hibbits <jhibb...@freebsd.org> wrote: > > Author: jhibbits > > Date: Fri Jan 1 15:17:24 2016 > > New Revision: 293039 > > URL: https://

svn commit: r293044 - head/sys/dev/sec

2016-01-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 1 17:56:52 2016 New Revision: 293044 URL: https://svnweb.freebsd.org/changeset/base/293044 Log: Accidentally dropped the 0 padding. Pointed out by: cmeyer Modified: head/sys/dev/sec/sec.c Modified: head/sys/dev/sec/sec.c

svn commit: r293030 - in head/sys/powerpc: include mpc85xx powerpc

2015-12-31 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 1 02:47:40 2016 New Revision: 293030 URL: https://svnweb.freebsd.org/changeset/base/293030 Log: Extend idle support for newer Book-E cores. Newer Book-E cores (e500mc, e5500, e6500) do not support the WE bit in the MSR, and instead delegate CPU idling to

svn commit: r292901 - head/sys/powerpc/booke

2015-12-29 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 30 02:26:04 2015 New Revision: 292901 URL: https://svnweb.freebsd.org/changeset/base/292901 Log: Optimize zero_page for book-e mmu. Instead of indirectly calling bzero() through mmu_booke_zero_page_area, zero the full page the same way as the AIM pmap

svn commit: r292900 - head/sys/powerpc/booke

2015-12-29 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 30 02:23:14 2015 New Revision: 292900 URL: https://svnweb.freebsd.org/changeset/base/292900 Log: Rewrite tid_flush() in C. There's no need for it to be in asm. Also, by writing in C, and marking it static in pmap.c, it saves a branch to the function

svn commit: r292903 - in head/sys/powerpc: booke mpc85xx

2015-12-29 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 30 03:43:25 2015 New Revision: 292903 URL: https://svnweb.freebsd.org/changeset/base/292903 Log: Add platform support for QorIQ SoCs. This includes the following changes: * SMP kickoff for QorIQ (tested on P5020) * Errata fixes for some silicon revisions

svn commit: r292858 - head/sys/powerpc/powerpc

2015-12-28 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 29 03:31:06 2015 New Revision: 292858 URL: https://svnweb.freebsd.org/changeset/base/292858 Log: Update capabilities of e500mc, e5500, e6500. Modified: head/sys/powerpc/powerpc/cpu.c Modified: head/sys/powerpc/powerpc/cpu.c

Re: svn commit: r292469 - in head/sys: dev/drm2/ttm mips/include mips/mips vm

2015-12-25 Thread Justin Hibbits
On Dec 22, 2015, at 6:47 PM, NGie Cooper wrote: On Dec 22, 2015, at 13:51, Ed Maste wrote: On 19 December 2015 at 13:42, Alan Cox wrote: Author: alc Date: Sat Dec 19 18:42:50 2015 New Revision: 292469 URL:

svn commit: r292680 - in head/sys: powerpc/booke powerpc/include powerpc/ofw powerpc/powerpc sys

2015-12-23 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 24 04:30:15 2015 New Revision: 292680 URL: https://svnweb.freebsd.org/changeset/base/292680 Log: Extend Book-E to support >4GB RAM Summary: With some additional changes for AIM, that could also support much larger physmem sizes. Given that 32-bit AIM is

Re: svn commit: r292469 - in head/sys: dev/drm2/ttm mips/include mips/mips vm

2015-12-22 Thread Justin Hibbits
On Dec 22, 2015 18:48, "NGie Cooper" wrote: > > > > On Dec 22, 2015, at 13:51, Ed Maste wrote: > > > > On 19 December 2015 at 13:42, Alan Cox wrote: > >> Author: alc > >> Date: Sat Dec 19 18:42:50 2015 > >> New Revision: 292469 > >>

svn commit: r292071 - in head/sys/powerpc: booke include

2015-12-10 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 11 01:23:18 2015 New Revision: 292071 URL: https://svnweb.freebsd.org/changeset/base/292071 Log: Add more interrupts handled for booke. e500mc, e5500, and e6500 all use the normal FPU, with the same behavior as AIM hardware. e6500 also supports Altivec,

svn commit: r292072 - head/sys/powerpc/powerpc

2015-12-10 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 11 01:30:20 2015 New Revision: 292072 URL: https://svnweb.freebsd.org/changeset/base/292072 Log: Follow up to r292071. Actually handle the Altivec Assist for book-e. Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c

svn commit: r292073 - head/sys/powerpc/booke

2015-12-10 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 11 01:34:13 2015 New Revision: 292073 URL: https://svnweb.freebsd.org/changeset/base/292073 Log: No need to reset tlb1 here, it gets reset again after BSS is cleared in powerpc_init(). Also fix a comment typo (0x45 == E, not e) Modified:

svn commit: r291463 - in head/sys/powerpc: include powerpc

2015-11-29 Thread Justin Hibbits
Author: jhibbits Date: Mon Nov 30 02:40:41 2015 New Revision: 291463 URL: https://svnweb.freebsd.org/changeset/base/291463 Log: Print machine check address for Book-E. Bits in mcsr indicate if the address is valid, and whether it's a physical address or effective address. Sponsored

svn commit: r291462 - in head/sys: conf powerpc/mpc85xx

2015-11-29 Thread Justin Hibbits
@@ +/*- + * Copyright (c) 2015 Justin Hibbits + * 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 copyright + *notice

svn commit: r291151 - head/sys/powerpc/mpc85xx

2015-11-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Nov 22 01:16:43 2015 New Revision: 291151 URL: https://svnweb.freebsd.org/changeset/base/291151 Log: Modernize mpc85xx PCI hostbridge driver. Summary: * Take advantage of NEW_PCIB to remove a lot of setup code. * Fix some bugs related to multiple PCI bridges.

svn commit: r291152 - head/sys/powerpc/mpc85xx

2015-11-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Nov 22 01:20:36 2015 New Revision: 291152 URL: https://svnweb.freebsd.org/changeset/base/291152 Log: Remove a debug panic that crept into r291151 Modified: head/sys/powerpc/mpc85xx/pci_mpc85xx.c Modified: head/sys/powerpc/mpc85xx/pci_mpc85xx.c

svn commit: r291122 - head/sys/powerpc/booke

2015-11-20 Thread Justin Hibbits
Author: jhibbits Date: Sat Nov 21 06:03:46 2015 New Revision: 291122 URL: https://svnweb.freebsd.org/changeset/base/291122 Log: trunc_page() goes through unsigned long, which is too short. sizeof(unsigned long) < sizeof(vm_paddr_t) on Book-E, which uses 36-bit addressing. With this, a

svn commit: r291056 - head/sys/powerpc/include

2015-11-18 Thread Justin Hibbits
Author: jhibbits Date: Thu Nov 19 04:41:16 2015 New Revision: 291056 URL: https://svnweb.freebsd.org/changeset/base/291056 Log: Revert r291009 until rman changes go in. Pointy-hat to:jhibbits Modified: head/sys/powerpc/include/bus.h Modified: head/sys/powerpc/include/bus.h

svn commit: r291008 - in head/sys: conf powerpc/mpc85xx

2015-11-17 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 18 01:54:19 2015 New Revision: 291008 URL: https://svnweb.freebsd.org/changeset/base/291008 Log: Add support for new LAW registers in QorIQ SoCs. QorIQ SoCs (e5500 core, P5 family) have 2 BARs for local access windows, while MPC85XX, and P1/P2 families use

svn commit: r291009 - head/sys/powerpc/include

2015-11-17 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 18 02:18:14 2015 New Revision: 291009 URL: https://svnweb.freebsd.org/changeset/base/291009 Log: Physical addresses for e500mc/e5500 are 36-bits, e6500 is 40-bits. Increase BUS_SPACE_MAXADDR to allow for this. Sponsored by: Alex Perez/Inertial Computing

Re: svn commit: r290613 - head/sys/compat/linuxkpi/common/include/linux

2015-11-10 Thread Justin Hibbits
On Tue, Nov 10, 2015 at 9:42 AM, Conrad Meyer wrote: > On Tue, Nov 10, 2015 at 7:08 AM, Ian Lepore wrote: >> On Tue, 2015-11-10 at 08:44 +0100, Hans Petter Selasky wrote: >>> > -sysctl_root_handler_locked(struct sysctl_oid *oid, void *arg1, >>> > intptr_t

svn commit: r290434 - head/sys/powerpc/powerpc

2015-11-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Nov 6 04:56:52 2015 New Revision: 290434 URL: https://svnweb.freebsd.org/changeset/base/290434 Log: Write 2- and 4-byte aligned values as single writes in ddb(4) On the mpc85xx SoC family, writes to any part of a word in the CCSR affect the full word. This

svn commit: r290317 - head/sys/powerpc/mpc85xx

2015-11-02 Thread Justin Hibbits
Author: jhibbits Date: Tue Nov 3 00:21:23 2015 New Revision: 290317 URL: https://svnweb.freebsd.org/changeset/base/290317 Log: Use the correct space (PCI addresses) for the I/O and memory ranges. PCIR_IOBASE/IOLIMIT/... all use PCI-space addresses, not host addresses. Modified:

svn commit: r290319 - head/sys/powerpc/mpc85xx

2015-11-02 Thread Justin Hibbits
Author: jhibbits Date: Tue Nov 3 00:54:14 2015 New Revision: 290319 URL: https://svnweb.freebsd.org/changeset/base/290319 Log: Use 64-bit addresses for configuring inbound and outbound address windows. This allows using the full host and PCI ranges in the controller configuration.

Re: svn commit: r290221 - head/sys/powerpc/powerpc

2015-10-30 Thread Justin Hibbits
On Oct 30, 2015, at 9:27 PM, Conrad Meyer wrote: Comments inline. On Fri, Oct 30, 2015 at 7:08 PM, Justin Hibbits <jhibb...@freebsd.org> wrote: Author: jhibbits Date: Sat Oct 31 02:08:39 2015 New Revision: 290221 URL: https://svnweb.freebsd.org/changeset/base/290221 Log: Print un

svn commit: r290221 - head/sys/powerpc/powerpc

2015-10-30 Thread Justin Hibbits
Author: jhibbits Date: Sat Oct 31 02:08:39 2015 New Revision: 290221 URL: https://svnweb.freebsd.org/changeset/base/290221 Log: Print unsigned memory sizes, to handle >2GB RAM on 32-bit powerpc. Sponsored by: Alex Perez/Intertial Computing Modified: head/sys/powerpc/powerpc/machdep.c

svn commit: r288909 - head/sys/powerpc/powerpc

2015-10-05 Thread Justin Hibbits
Author: jhibbits Date: Tue Oct 6 01:24:46 2015 New Revision: 288909 URL: https://svnweb.freebsd.org/changeset/base/288909 Log: Save the link register in savectx(). Pointed out by: jhb Modified: head/sys/powerpc/powerpc/swtch32.S head/sys/powerpc/powerpc/swtch64.S Modified:

Re: svn commit: r288454 - head/usr.bin/truss

2015-10-01 Thread Justin Hibbits
powerpc64 also defines __powerpc64__ in addition to __powerpc__. This is likely because unlike amd64, the only major difference between 32-bit and 64-bit is the register size, so mips will likely be the same way. -Justin On Oct 1, 2015 2:51 PM, "John Baldwin" wrote: > On

svn commit: r287586 - head/sys/powerpc/include

2015-09-08 Thread Justin Hibbits
Author: jhibbits Date: Wed Sep 9 03:15:25 2015 New Revision: 287586 URL: https://svnweb.freebsd.org/changeset/base/287586 Log: Add PVR identifier for E6500, from the reference. Modified: head/sys/powerpc/include/spr.h Modified: head/sys/powerpc/include/spr.h

svn commit: r287418 - in head/sys/powerpc: include powerpc

2015-09-02 Thread Justin Hibbits
Author: jhibbits Date: Thu Sep 3 01:38:15 2015 New Revision: 287418 URL: https://svnweb.freebsd.org/changeset/base/287418 Log: pmap_mapdev_attr() also takes a vm_paddr_t. This was missed in r235936. With recent work for 36-bit paddr, this is now needed. Modified:

svn commit: r287276 - head/sys/powerpc/booke

2015-08-29 Thread Justin Hibbits
Author: jhibbits Date: Sat Aug 29 06:52:14 2015 New Revision: 287276 URL: https://svnweb.freebsd.org/changeset/base/287276 Log: The TLB1 TSIZE is a multiple of 4, not 2, so shift 2 bits, not 1. Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c

svn commit: r287240 - in head/sys/powerpc: booke include

2015-08-27 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 28 03:03:09 2015 New Revision: 287240 URL: https://svnweb.freebsd.org/changeset/base/287240 Log: Extend pmap to support e500mc and e5500. As part of this, clean up tlb1_init(), since bootinfo is always NULL here just eliminate the loop altogether.

svn commit: r287242 - head/sys/powerpc/powerpc

2015-08-27 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 28 05:20:31 2015 New Revision: 287242 URL: https://svnweb.freebsd.org/changeset/base/287242 Log: Fix text alignment. mcsr was indented one too many spaces. Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c

svn commit: r287188 - head/sys/powerpc/powerpc

2015-08-26 Thread Justin Hibbits
Author: jhibbits Date: Thu Aug 27 03:44:06 2015 New Revision: 287188 URL: https://svnweb.freebsd.org/changeset/base/287188 Log: Use the macro definition for EXC_PGM_TRAP, instead of the magic number. Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c

svn commit: r287189 - in head/sys: conf dev/mmc powerpc/mpc85xx

2015-08-26 Thread Justin Hibbits
Author: jhibbits Date: Thu Aug 27 03:47:56 2015 New Revision: 287189 URL: https://svnweb.freebsd.org/changeset/base/287189 Log: Fix freescale sdhc driver, and add it to the files list. Also, add it to the mmc DRIVER_MODULE attachment list. Modified: head/sys/conf/files.powerpc

svn commit: r287154 - head/sys/powerpc/mpc85xx

2015-08-25 Thread Justin Hibbits
Author: jhibbits Date: Wed Aug 26 03:37:33 2015 New Revision: 287154 URL: https://svnweb.freebsd.org/changeset/base/287154 Log: The Freescale qoriq PCIe controller is compatible with mpc85xx. Add the compatible checks. Obtained from:Semihalf (partial) Sponsored by: Alex

svn commit: r287092 - head/sys/powerpc/ofw

2015-08-23 Thread Justin Hibbits
Author: jhibbits Date: Mon Aug 24 04:39:07 2015 New Revision: 287092 URL: https://svnweb.freebsd.org/changeset/base/287092 Log: Fix static fdt support. FDT_DTB_STATIC is defined in opt_platform.h, and fdt_static_dtb is in fdt_common.h, so include those files. Sponsored by: Alex

svn commit: r287014 - head/sys/powerpc/booke

2015-08-22 Thread Justin Hibbits
Author: jhibbits Date: Sat Aug 22 07:20:03 2015 New Revision: 287014 URL: https://svnweb.freebsd.org/changeset/base/287014 Log: Enhance book-e pmap for 36-bit physaddr Summary: This is (probably step 1) of enhancing the book-e pmap to support the full 36-bit physical address space on

svn commit: r287015 - in head/sys/powerpc: booke include powerpc

2015-08-22 Thread Justin Hibbits
Author: jhibbits Date: Sat Aug 22 07:27:06 2015 New Revision: 287015 URL: https://svnweb.freebsd.org/changeset/base/287015 Log: Follow up to r287014 Missed these files, from the original diff. Sponsored by: Alex Perez/Inertial Computing Differential Revision:

svn commit: r287013 - in head/sys: conf dev/fdt geom powerpc/mikrotik sys

2015-08-21 Thread Justin Hibbits
, because file is newly added) +++ head/sys/powerpc/mikrotik/platform_rb.c Sat Aug 22 05:50:18 2015 (r287013) @@ -0,0 +1,123 @@ +/*- + * Copyright (c) 2015 Justin Hibbits + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification

svn commit: r287011 - head/sys/powerpc/mpc85xx

2015-08-21 Thread Justin Hibbits
Author: jhibbits Date: Sat Aug 22 03:29:12 2015 New Revision: 287011 URL: https://svnweb.freebsd.org/changeset/base/287011 Log: Make the mpc85xx platform a kobj base class. Summary: Some systems are based around mpc85xx, but need special initialization. By making the mpc85xx platform

svn commit: r286977 - head/sys/powerpc/booke

2015-08-20 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 21 02:41:35 2015 New Revision: 286977 URL: https://svnweb.freebsd.org/changeset/base/286977 Log: Add initial boot support for e500mc and e5500. * Since r257190 the kernel must actually be loaded at a 64MB boundary, not 16MB. * Don't program HID1 register

svn commit: r286976 - head/sys/powerpc/mpc85xx

2015-08-20 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 21 02:22:51 2015 New Revision: 286976 URL: https://svnweb.freebsd.org/changeset/base/286976 Log: Simplify the PCI bus scanning logic. Rather than special casing on PCIC_BRIDGE || PCIC_PROCESSOR, allow all HDRTYPE_BRIDGE types. Obtained from:

<    5   6   7   8   9   10   11   12   13   >