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

2018-12-09 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 10 04:16:40 2018 New Revision: 341781 URL: https://svnweb.freebsd.org/changeset/base/341781 Log: powerpc/booke: Replace a logical equivalent of pmap_kextract() with a real call No sense in reinventing the wheel here. AP bringup is not a time-critical

svn commit: r341780 - head/stand/powerpc/uboot

2018-12-09 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 10 01:52:39 2018 New Revision: 341780 URL: https://svnweb.freebsd.org/changeset/base/341780 Log: powerpc/ubldr: Teach powerpc's ubldr to boot 64-bit kernels This is just a copy of powerpc/ofw's ppc64_elf_freebsd.c modified to fit ubldr's boot format.

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

2018-12-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 9 04:54:55 2018 New Revision: 341752 URL: https://svnweb.freebsd.org/changeset/base/341752 Log: powerpc/SPE: Copy lower part of source register to target for efdabs/efdnabs/efdneg MFC after:1 week MFC With: r341751 Modified:

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

2018-12-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 9 04:13:14 2018 New Revision: 341751 URL: https://svnweb.freebsd.org/changeset/base/341751 Log: powerpc/SPE: Reload vector registers after efdabs/efdnabs/efdneg While here, also style(9)-adjust indents around this code. Modified:

Re: svn commit: r339516 - head/sys/cddl/dev/dtrace/powerpc

2018-12-06 Thread Justin Hibbits
On Thu, 22 Nov 2018 02:16:29 -0500 Mark Johnston wrote: > On Wed, Nov 21, 2018 at 10:02:15PM -0600, Kyle Evans wrote: > > On Wed, Nov 21, 2018 at 9:42 PM Kyle Evans > > wrote: > > > > > > On Sat, Oct 20, 2018 at 9:09 PM Justin Hibbits > > >

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

2018-12-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 6 04:36:02 2018 New Revision: 341617 URL: https://svnweb.freebsd.org/changeset/base/341617 Log: powerpc: Set very low priority mode while waiting for AP unleash event The POWER9 does not recognize 'or 27,27,27' as a thread priority NOP. On earlier POWER

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

2018-12-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 6 04:30:24 2018 New Revision: 341616 URL: https://svnweb.freebsd.org/changeset/base/341616 Log: powerpc: Fix ELFv2 JMP_SLOT relocation fixup The jump slot is a function pointer, not a descriptor pointer, in ELFv2. Just write the pointer itself over, not

svn commit: r341614 - head/sys/powerpc/powermac

2018-12-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 6 04:25:12 2018 New Revision: 341614 URL: https://svnweb.freebsd.org/changeset/base/341614 Log: powerpc/powermac: Fix macgpio(4) child interrupt resource handling The 'interrupts' property is actually 2 words, not one, on macgpio child nodes. Open

svn commit: r341455 - in head/sys: dev/pci powerpc/ofw powerpc/powermac

2018-12-03 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 4 04:55:49 2018 New Revision: 341455 URL: https://svnweb.freebsd.org/changeset/base/341455 Log: Sprinkle EARLY_DRIVER_MODULE around the tree Mark some buses as BUS_PASS_BUS, and some resources as BUS_PASS_RESOURCE. This also decouples some resource

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

2018-12-03 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 4 03:51:10 2018 New Revision: 341454 URL: https://svnweb.freebsd.org/changeset/base/341454 Log: powerpc: preload_addr_relocate is no longer necessary for booke The same behavior was moved to machdep.c, paired with AIM's relocation, making this redundant.

Re: svn commit: r341103 - head/sys/powerpc/include

2018-12-03 Thread Justin Hibbits
On Wed, 28 Nov 2018 16:31:33 +1100 (EST) Bruce Evans wrote: > On Wed, 28 Nov 2018, Justin Hibbits wrote: > > > Log: > > powerpc: Fix the powerpc64 build post-r341102 > > > > VM_MIN_KERNEL_ADDRESS is now used in locore.S, but the UL suffix > > isn't permitt

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

2018-12-03 Thread Justin Hibbits
On Thu, 29 Nov 2018 12:56:22 +0200 Konstantin Belousov wrote: > On Thu, Nov 29, 2018 at 03:39:11AM +0000, Justin Hibbits wrote: > > Author: jhibbits > > Date: Thu Nov 29 03:39:11 2018 > > New Revision: 341177 > > URL: https://svnweb.freebsd.org/changeset/base/341

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

2018-12-02 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 3 04:56:06 2018 New Revision: 341423 URL: https://svnweb.freebsd.org/changeset/base/341423 Log: powerpc: Check for a fdt in the metadata if it doesn't already exist It's possible the fdt pointer was passed in via the metadata, as is done in ubldr. Check

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

2018-12-02 Thread Justin Hibbits
On Sun, Dec 2, 2018 at 10:47 PM Justin Hibbits wrote: > > Author: jhibbits > Date: Mon Dec 3 04:47:28 2018 > New Revision: 341422 > URL: https://svnweb.freebsd.org/changeset/base/341422 > > Log: > powerpc/booke: Check for the metadata address by physical address &g

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

2018-12-02 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 3 04:47:28 2018 New Revision: 341422 URL: https://svnweb.freebsd.org/changeset/base/341422 Log: powerpc/booke: Check for the metadata address by physical address The metadata pointer will almost never be at or above 'btext', as btext is a relocated symbol,

Re: svn commit: r340997 - head/lib/libarchive

2018-12-01 Thread Justin Hibbits
On Mon, Nov 26, 2018 at 3:45 PM Martin Matuska wrote: > > Author: mm > Date: Mon Nov 26 21:45:27 2018 > New Revision: 340997 > URL: https://svnweb.freebsd.org/changeset/base/340997 > > Log: > libarchive configuration changes > - move HAVE_BZLIB_H, HAVE_LIBLZMA and HAVE_LZMA_H to

svn commit: r341391 - head/stand/uboot/common

2018-12-01 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 2 02:20:35 2018 New Revision: 341391 URL: https://svnweb.freebsd.org/changeset/base/341391 Log: ubldr: Force 'usefdt' variable to 1 for powerpc The fdt is gated, on powerpc, with a 'usefdt' environment variable. Force enable it in ubldr, so that the fdt

svn commit: r341387 - head/lib/libc/gen

2018-12-01 Thread Justin Hibbits
Author: jhibbits Date: Sat Dec 1 20:39:20 2018 New Revision: 341387 URL: https://svnweb.freebsd.org/changeset/base/341387 Log: Fix PowerPC64 ELFv1-specific problem in __elf_phdr_match_addr() leading to crash in threaded programs that unload libraries. Summary: The GNOME update to

Re: svn commit: r341343 - head/share/man/man7

2018-11-30 Thread Justin Hibbits
On Fri, Nov 30, 2018, 08:36 Warner Losh > > On Fri, Nov 30, 2018 at 9:35 AM Justin Hibbits > wrote: > >> >> >> On Fri, Nov 30, 2018, 08:24 Bjoern A. Zeeb < >> bzeeb-li...@lists.zabbadoz.net wrote: >> >>> On 30 Nov 2018, at 15:56, Edward Toma

Re: svn commit: r341343 - head/share/man/man7

2018-11-30 Thread Justin Hibbits
On Fri, Nov 30, 2018, 08:24 Bjoern A. Zeeb On 30 Nov 2018, at 15:56, Edward Tomasz Napierala wrote: > > > Author: trasz > > Date: Fri Nov 30 15:56:14 2018 > > New Revision: 341343 > > URL: https://svnweb.freebsd.org/changeset/base/341343 > > > > Log: > > Add an example of rebuilding a single

svn commit: r341179 - head/usr.bin/truss

2018-11-28 Thread Justin Hibbits
Author: jhibbits Date: Thu Nov 29 03:57:06 2018 New Revision: 341179 URL: https://svnweb.freebsd.org/changeset/base/341179 Log: Allow truss to operate on ELFv2 processes. Summary: Currently, truss doesn't work on ELFv2 processes due to not recognizing the ABI. Since there's no

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

2018-11-28 Thread Justin Hibbits
Author: jhibbits Date: Thu Nov 29 03:39:11 2018 New Revision: 341177 URL: https://svnweb.freebsd.org/changeset/base/341177 Log: Fix thread creation in PowerPC64 ELFv2 processes. Summary: Currently, the upcall used to create threads assumes ELFv1. Instead, we should check which

svn commit: r341148 - in head/sys/powerpc: aim include powerpc

2018-11-28 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 28 16:00:52 2018 New Revision: 341148 URL: https://svnweb.freebsd.org/changeset/base/341148 Log: powerpc: Don't include KERNBASE in genassym, it's unnecessary A related future change, which changes KERNBASE for Book-E for some reason causes a "KERNBASE

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

2018-11-27 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 28 04:02:26 2018 New Revision: 341104 URL: https://svnweb.freebsd.org/changeset/base/341104 Log: powerpc/booke: Fix debug printfs in pmap Add missing '%'s so printf formats are actually handled. Modified: head/sys/powerpc/booke/pmap.c Modified:

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

2018-11-27 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 28 02:48:43 2018 New Revision: 341103 URL: https://svnweb.freebsd.org/changeset/base/341103 Log: powerpc: Fix the powerpc64 build post-r341102 VM_MIN_KERNEL_ADDRESS is now used in locore.S, but the UL suffix isn't permitted in .S files. Modified:

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

2018-11-27 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 28 02:00:27 2018 New Revision: 341102 URL: https://svnweb.freebsd.org/changeset/base/341102 Log: powerpc: Prepare Book-E kernels for KERNBASE != run base Book-E kernels really run at VM_MIN_KERNEL_ADDRESS, which currently happens to be the same as KERNBASE.

svn commit: r341101 - head/stand

2018-11-27 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 28 01:47:01 2018 New Revision: 341101 URL: https://svnweb.freebsd.org/changeset/base/341101 Log: powerpcspe: Don't crash the loader on ubldr with SPE instructions. -msoft-float seems to be insufficient for disabling the SPE on powerpcspe. Force it off with

Re: svn commit: r339516 - head/sys/cddl/dev/dtrace/powerpc

2018-11-21 Thread Justin Hibbits
On Wed, Nov 21, 2018 at 10:02 PM Kyle Evans wrote: > > On Wed, Nov 21, 2018 at 9:42 PM Kyle Evans wrote: > > > > On Sat, Oct 20, 2018 at 9:09 PM Justin Hibbits wrote: > > > > > > Author: jhibbits > > > Date: Sun Oct 21 02:08:57 201

svn commit: r340726 - in head/sys/cddl: contrib/opensolaris/uts/common/sys dev/fbt/powerpc

2018-11-21 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 21 16:47:11 2018 New Revision: 340726 URL: https://svnweb.freebsd.org/changeset/base/340726 Log: DTrace/powerpc: Fix FBT return probes The FBT fuction boundary prober was setting one return probe marker value, but the dtrace handler was expecting another.

Re: svn commit: r340653 - in head/sys/powerpc: fpu include powerpc

2018-11-19 Thread Justin Hibbits
, Nov 19, 2018, 18:14 Nathan Whitehorn Is this reasonable? What if the junk in the cache happened to be a > *valid* instruction? Won't this approach result in silent corruption and > later failure? > -Nathan > > On 11/19/18 3:54 PM, Justin Hibbits wrote: > > Author: jhibbits >

svn commit: r340653 - in head/sys/powerpc: fpu include powerpc

2018-11-19 Thread Justin Hibbits
Author: jhibbits Date: Mon Nov 19 23:54:49 2018 New Revision: 340653 URL: https://svnweb.freebsd.org/changeset/base/340653 Log: powerpc: Sync icache on SIGILL, in case of cache issues The update of jemalloc to 5.1.0 exposed a cache syncing issue on a Freescale e500 base system. There

Re: svn commit: r340632 - head/sys/powerpc/conf

2018-11-19 Thread Justin Hibbits
On Mon, 19 Nov 2018 15:36:58 + (UTC) Niclas Zeising wrote: > Author: zeising (doc,ports committer) > Date: Mon Nov 19 15:36:58 2018 > New Revision: 340632 > URL: https://svnweb.freebsd.org/changeset/base/340632 > > Log: > Enable evdev on ppc64 > > Enable evdev on ppc64 as well,

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

2018-11-09 Thread Justin Hibbits
Author: jhibbits Date: Sat Nov 10 02:37:56 2018 New Revision: 340312 URL: https://svnweb.freebsd.org/changeset/base/340312 Log: powerpc: Use MAX() macro instead of max() inline function to calculate Maxmem Maxmem is the highest address for physical memory in the system. It's measured in

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

2018-11-08 Thread Justin Hibbits
Author: jhibbits Date: Thu Nov 8 20:48:44 2018 New Revision: 340262 URL: https://svnweb.freebsd.org/changeset/base/340262 Log: powerpc64: Fix "show spr" command on ELFv2 kernels Summary: When compiling for ELFv2, it is necessary to adjust the offset to get_spr and factor in the function

svn commit: r340261 - head/sys/powerpc/powernv

2018-11-08 Thread Justin Hibbits
Author: jhibbits Date: Thu Nov 8 20:31:12 2018 New Revision: 340261 URL: https://svnweb.freebsd.org/changeset/base/340261 Log: powerpc/powernv: Restrict the busdma tag to only POWER8 It seems this tag is causing problems on POWER9 systems. Since no POWER9 user has encountered the

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

2018-11-06 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 7 01:42:00 2018 New Revision: 340209 URL: https://svnweb.freebsd.org/changeset/base/340209 Log: powerpc/atomic: Loosen the memory barrier on atomic_load_acq_*() 'sync' is pretty heavy-handed, and is unnecessary for this use case. It's a full barrier,

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

2018-11-04 Thread Justin Hibbits
Author: jhibbits Date: Mon Nov 5 01:53:20 2018 New Revision: 340147 URL: https://svnweb.freebsd.org/changeset/base/340147 Log: powerpc/SMP: Don't spam the console with AP bringup messages Especially on new POWER9 systems, the console can be filled with SMP: AP CPU #XX launched

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

2018-10-29 Thread Justin Hibbits
Author: jhibbits Date: Tue Oct 30 00:47:40 2018 New Revision: 339902 URL: https://svnweb.freebsd.org/changeset/base/339902 Log: powerpc/mpc85xx: Reset the PCIe bus on attach It seems if a Radeon card is already initialized by u-boot, it won't be reinitialized by the kernel, and the DRM

svn commit: r339888 - svnadmin/conf

2018-10-29 Thread Justin Hibbits
Author: jhibbits Date: Mon Oct 29 22:08:45 2018 New Revision: 339888 URL: https://svnweb.freebsd.org/changeset/base/339888 Log: Let luporl fly free. Keep up the good work! Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

svn commit: r339803 - in stable/12/sys/powerpc: booke include powerpc

2018-10-27 Thread Justin Hibbits
Author: jhibbits Date: Sat Oct 27 03:16:32 2018 New Revision: 339803 URL: https://svnweb.freebsd.org/changeset/base/339803 Log: MFC r339514: powerpcspe: Implement SPE exception handling The Signal Processing Engine (SPE) found in Freescale e500 cores (and others) offloads IEEE-754

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

2018-10-22 Thread Justin Hibbits
Author: jhibbits Date: Tue Oct 23 01:56:52 2018 New Revision: 339632 URL: https://svnweb.freebsd.org/changeset/base/339632 Log: dpaa: Mark BMan and QMan as earlier driver modules The BMan softc must exist when dtsec devices are created, else a NULL pointer is dereferenced. QMan likely

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

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Mon Oct 22 00:27:37 2018 New Revision: 339560 URL: https://svnweb.freebsd.org/changeset/base/339560 Log: powerpc: stash off srr0 in si_addr for signals si_addr is the address of the instruction executing at the time the signal was sent. Populate this field with

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

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Mon Oct 22 00:21:27 2018 New Revision: 339559 URL: https://svnweb.freebsd.org/changeset/base/339559 Log: powerpc/booke: Turn tlb*_print_tlbentries() into 'show tlb*' DDB commands debugf() is unnecessary for the TLB printing functions, as they're only intended to be

svn commit: r339519 - head/sys/powerpc/pseries

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 02:25:56 2018 New Revision: 339519 URL: https://svnweb.freebsd.org/changeset/base/339519 Log: powerpc64/xics: Fix comment typo Modified: head/sys/powerpc/pseries/xics.c Modified: head/sys/powerpc/pseries/xics.c

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

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 02:39:13 2018 New Revision: 339522 URL: https://svnweb.freebsd.org/changeset/base/339522 Log: powerpc/mpc85xx: Make Freescale PCI bridge driver a subclass of ofw_pcib_pci This driver was already 99% identical to the ofw_pcib_pci driver, except for the

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

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 02:28:04 2018 New Revision: 339520 URL: https://svnweb.freebsd.org/changeset/base/339520 Log: powerpc64/pmap: Correct the logic for minidump KVA chunk r279252 inverted the logic in moea64_scan_init, such that instead of terminating when reaching a dead

svn commit: r339518 - head/sys/powerpc/powernv

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 02:24:37 2018 New Revision: 339518 URL: https://svnweb.freebsd.org/changeset/base/339518 Log: powerpc64/powernv:opal_pci: Fix the alignment of the TCE table The TCE table need only be aligned to the size of the table, not the size of the TCE segment.

svn commit: r339516 - head/sys/cddl/dev/dtrace/powerpc

2018-10-21 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 02:08:57 2018 New Revision: 339516 URL: https://svnweb.freebsd.org/changeset/base/339516 Log: powerpc/dtrace: Use explicit bit numbers to mask out PSL_EE There seems to be a race in CI, such that dtrace_asm.S might be assembled before the genassym is

svn commit: r339521 - head/sys/powerpc/powernv

2018-10-20 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 02:30:34 2018 New Revision: 339521 URL: https://svnweb.freebsd.org/changeset/base/339521 Log: powerpc64/powernv: Add pnpinfo strings to opal device children This makes it easier to see what's left unattached as new drivers are written, and to see what

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

2018-10-20 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 21 00:43:27 2018 New Revision: 339514 URL: https://svnweb.freebsd.org/changeset/base/339514 Log: powerpcspe: Implement SPE exception handling The Signal Processing Engine (SPE) found in Freescale e500 cores (and others) offloads IEEE-754 compliance (NaN,

svn commit: r339215 - head/sys/powerpc/pseries

2018-10-06 Thread Justin Hibbits
Author: jhibbits Date: Sat Oct 6 18:51:49 2018 New Revision: 339215 URL: https://svnweb.freebsd.org/changeset/base/339215 Log: powerpc/pseries: EOI interrupts in XICS by setting lowest priority Discussing with Benjamin Herrenschmidt, OPAL_INT_GET_XIRR masks the returned priority, so

svn commit: r339212 - head/sys/powerpc/powernv

2018-10-05 Thread Justin Hibbits
Author: jhibbits Date: Sat Oct 6 03:20:26 2018 New Revision: 339212 URL: https://svnweb.freebsd.org/changeset/base/339212 Log: powerpc64/powernv: Don't mask MSIs in OPAL Summary: Discussing with Benjamin Herrenschmidt, MSIs, and edge-triggered interrupts in general, must not be masked

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

2018-09-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Sep 25 02:34:28 2018 New Revision: 338922 URL: https://svnweb.freebsd.org/changeset/base/338922 Log: powerpc: Blacklist the top 64kB range of the lower 4GB PA space The PHB4 host bridge used by the POWER9 uses a 64kB range in 32-bit space at the address

svn commit: r338073 - head/sys/powerpc/conf

2018-08-19 Thread Justin Hibbits
Author: jhibbits Date: Sun Aug 19 19:07:59 2018 New Revision: 338073 URL: https://svnweb.freebsd.org/changeset/base/338073 Log: powerpc conf: Add PRINTF_BUFR_SIZE option to Book-E configs Without this, printf is very hard to follow at times on multicore systems. Modified:

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

2018-08-19 Thread Justin Hibbits
Author: jhibbits Date: Sun Aug 19 19:03:43 2018 New Revision: 338072 URL: https://svnweb.freebsd.org/changeset/base/338072 Log: Sort SPR_SPEFSCR in the SPR list Also remove duplicate definition of SPR_IBAT0U. Modified: head/sys/powerpc/include/spr.h Modified:

svn commit: r338071 - head/sys/conf

2018-08-19 Thread Justin Hibbits
Author: jhibbits Date: Sun Aug 19 19:00:44 2018 New Revision: 338071 URL: https://svnweb.freebsd.org/changeset/base/338071 Log: powerpc64: Align frequently used/exclusive data on cacheline boundaries This is effectively a merge from amd64 of r312888, r323235, and r333486. I've been

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

2018-08-19 Thread Justin Hibbits
Author: jhibbits Date: Sun Aug 19 18:54:43 2018 New Revision: 338069 URL: https://svnweb.freebsd.org/changeset/base/338069 Log: booke pmap: hide debug-ish printf behind bootverbose It's not necessary during normal operation to know the mapped region size and wasted space. Modified:

Re: svn commit: r334708 - head/sys/kern

2018-08-17 Thread Justin Hibbits
On Fri, 17 Aug 2018 12:08:20 -0400 Mark Johnston wrote: > On Thu, Jul 19, 2018 at 12:09:21PM -0700, Bryan Drewery wrote: > > Did this issue get resolved? > > It's fixed by r337974. Thanks Mark! - Justin ___ svn-src-all@freebsd.org mailing list

svn commit: r337953 - in head/sys: conf dev/random sys

2018-08-16 Thread Justin Hibbits
7953) @@ -0,0 +1,142 @@ +/*- + * Copyright (c) 2018 Justin Hibbits + * Copyright (c) 2013 The FreeBSD Foundation + * Copyright (c) 2013 David E. O'Brien + * Copyright (c) 2012 Konstantin Belousov + * All rights reserved. + * + * Portions of this software were developed by Konstantin Belousov + * un

Re: svn commit: r337913 - in head/sys: dev/ipmi modules/ipmi

2018-08-16 Thread Justin Hibbits
Woops, my fault way back when I made powerpc64's IPMI OPAL buildable as a module. Can't believe I had i386 twice in there. - Justin On Thu, 16 Aug 2018 09:11:01 -0700 Ravi Pokala wrote: > The confluence of these two issues is that on amd64 ipmi.ko loads, > but doesn't attach to the BMC or

svn commit: r337689 - head/sys/dev/ipmi

2018-08-12 Thread Justin Hibbits
Author: jhibbits Date: Sun Aug 12 20:33:55 2018 New Revision: 337689 URL: https://svnweb.freebsd.org/changeset/base/337689 Log: ipmi/opal: Enable polled mode and proper callback Fix a NULL dereference that would occur any time an ioctl() was done, due to a missing ipmi_enqueue_request

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

2018-08-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 10 03:28:40 2018 New Revision: 337562 URL: https://svnweb.freebsd.org/changeset/base/337562 Log: powerpc: Add lwsync and ptesync 'sync' opcode variants to ddb disassembler The canonical form of sync is: sync L, E (if Category Elemental Memory Barriers

Re: svn commit: r337273 - head/sys/dev/nvme

2018-08-04 Thread Justin Hibbits
On Sat, Aug 4, 2018, 10:11 Ian Lepore wrote: > On Sat, 2018-08-04 at 08:29 -0500, Justin Hibbits wrote: > > On Sat, Aug 4, 2018, 08:03 Konstantin Belousov > wrote: > > > > > > > > On Sat, Aug 04, 2018 at 05:14:31AM -0700, John Baldwin wrote: > >

Re: svn commit: r337273 - head/sys/dev/nvme

2018-08-04 Thread Justin Hibbits
On Sat, Aug 4, 2018, 08:03 Konstantin Belousov wrote: > On Sat, Aug 04, 2018 at 05:14:31AM -0700, John Baldwin wrote: > > On 8/4/18 1:08 AM, Konstantin Belousov wrote: > > > On Fri, Aug 03, 2018 at 08:04:06PM +0000, Justin Hibbits wrote: > > >> Author: jhibbits &g

svn commit: r337273 - head/sys/dev/nvme

2018-08-03 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 3 20:04:06 2018 New Revision: 337273 URL: https://svnweb.freebsd.org/changeset/base/337273 Log: nvme(4): Add bus_dmamap_sync() at the end of the request path Summary: Some architectures, in this case powerpc64, need explicit synchronization barriers vs

svn commit: r337043 - head/sys/dev/sound/pci/hda

2018-08-01 Thread Justin Hibbits
Author: jhibbits Date: Wed Aug 1 14:50:41 2018 New Revision: 337043 URL: https://svnweb.freebsd.org/changeset/base/337043 Log: snd_hda: Synchronize DMA buffers for the control path Make sure both sides of the DMA buffer memory accesses for the CORB and RIRB (control buffers) in snd_hda

svn commit: r336983 - head/sys/dev/sound/pci/hda

2018-07-31 Thread Justin Hibbits
Author: jhibbits Date: Tue Jul 31 17:18:58 2018 New Revision: 336983 URL: https://svnweb.freebsd.org/changeset/base/336983 Log: snd_hda: Byteswap the buffer descriptor entries as needed The buffer descriptor list entries should be in little endian format. Byte swap them on BE. This is

svn commit: r336931 - head/sys/dev/sound/pci/hda

2018-07-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 30 20:00:56 2018 New Revision: 336931 URL: https://svnweb.freebsd.org/changeset/base/336931 Log: snd_hda: Make codec control path endian safe The CORB and RIRB buffers exist in DMA memory, but the device reads them as little-endian only. Read and write as

svn commit: r336925 - head/sys/modules/ipmi

2018-07-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 30 18:29:20 2018 New Revision: 336925 URL: https://svnweb.freebsd.org/changeset/base/336925 Log: Add ofw_bus_if.h to the SRCS list for ipmi module on powerpc64 PR: 230194 Reported by: sbruno Modified: head/sys/modules/ipmi/Makefile Modified:

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

2018-07-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 30 17:03:15 2018 New Revision: 336918 URL: https://svnweb.freebsd.org/changeset/base/336918 Log: powerpcspe: Unconditionally save an restore SPEFSCR on task switch The SPEFSCR is not guarded by the SPV bit in MSR, it's just another SPR. Protect processes

svn commit: r336912 - head/sys/dev/sound/pci/hda

2018-07-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 30 15:19:59 2018 New Revision: 336912 URL: https://svnweb.freebsd.org/changeset/base/336912 Log: snd_hda: Print error codes in decimal, rather than hex It's easy to confuse the error code as naked it looks decimal (EINVAL is reported as error 16, instead of

svn commit: r336911 - head/sys/dev/sound/pci/hda

2018-07-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 30 15:15:33 2018 New Revision: 336911 URL: https://svnweb.freebsd.org/changeset/base/336911 Log: snd_hda: Only free streams DMA maps if the streams list has been created If hdac_attach fails prior to allocating sc->streams, cleanup in the hdac_attach_fail

svn commit: r336739 - head/lib/libc/powerpcspe/gen

2018-07-26 Thread Justin Hibbits
Author: jhibbits Date: Thu Jul 26 14:42:20 2018 New Revision: 336739 URL: https://svnweb.freebsd.org/changeset/base/336739 Log: Fix fabs(3) for powerpcspe, this time for real SPE ABI uses the soft-float ABI, which splits doubles into two words. As such, fabs(3) cannot work on a double

svn commit: r336725 - head/sys/modules/ipmi

2018-07-25 Thread Justin Hibbits
Author: jhibbits Date: Wed Jul 25 19:31:32 2018 New Revision: 336725 URL: https://svnweb.freebsd.org/changeset/base/336725 Log: Only build ipmi_linux on x86 Somehow this wasn't triggered in my pre-commit build. Modified: head/sys/modules/ipmi/Makefile Modified:

svn commit: r336724 - in head/sys: conf dev/ipmi modules modules/ipmi powerpc/powernv

2018-07-25 Thread Justin Hibbits
Author: jhibbits Date: Wed Jul 25 18:58:57 2018 New Revision: 336724 URL: https://svnweb.freebsd.org/changeset/base/336724 Log: Support building IPMI as a module on powerpc64 This still only supports IPMI via OPAL on powerpc64, but now it can be tested with a GENERIC kernel. Added:

svn commit: r336689 - head/lib/libc/powerpcspe/gen

2018-07-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Jul 24 22:05:55 2018 New Revision: 336689 URL: https://svnweb.freebsd.org/changeset/base/336689 Log: Fix register usage in fabs(3) for powerpcspe This still used the FPU register definition, which gcc converted to using %r1 (stack register). Fix to use %r3.

svn commit: r336688 - in head: lib/libc/powerpcspe/gen sys/powerpc/include

2018-07-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Jul 24 22:04:56 2018 New Revision: 336688 URL: https://svnweb.freebsd.org/changeset/base/336688 Log: Fix floating point exception definitions for powerpcspe These were incorrectly implemented in the original port. Modified:

svn commit: r336555 - head/sys/dev/vt/hw/ofwfb

2018-07-20 Thread Justin Hibbits
Author: jhibbits Date: Fri Jul 20 16:18:24 2018 New Revision: 336555 URL: https://svnweb.freebsd.org/changeset/base/336555 Log: vt/ofwfb: Fix brain-o from r336514, use the correct form of /chosen/stdout-path /chosen/stdout-path is a string, not ihandle. Treat it as such. With this,

svn commit: r336554 - head/sys/dev/vt/hw/ofwfb

2018-07-20 Thread Justin Hibbits
Author: jhibbits Date: Fri Jul 20 16:08:14 2018 New Revision: 336554 URL: https://svnweb.freebsd.org/changeset/base/336554 Log: vt/ofwfb: Check that /chosen/stdout is valid before using it in initialization The FDT implementation of OF_instance_to_package() backend checks the

Re: svn commit: r336514 - head/sys/dev/vt/hw/ofwfb

2018-07-19 Thread Justin Hibbits
f phandle), which I think is > wrong. > -Nathan > > On 07/19/18 13:22, Justin Hibbits wrote: > > Author: jhibbits > > Date: Thu Jul 19 20:22:46 2018 > > New Revision: 336514 > > URL: https://svnweb.freebsd.org/changeset/base/336514 > > > > Log: > >

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

2018-07-19 Thread Justin Hibbits
Author: jhibbits Date: Thu Jul 19 21:06:58 2018 New Revision: 336517 URL: https://svnweb.freebsd.org/changeset/base/336517 Log: Revert r336509. Fails buildworld. I had naively assumed that building kernel would be sufficient to test that the header is sane. However, it turns out this

svn commit: r336514 - head/sys/dev/vt/hw/ofwfb

2018-07-19 Thread Justin Hibbits
Author: jhibbits Date: Thu Jul 19 20:22:46 2018 New Revision: 336514 URL: https://svnweb.freebsd.org/changeset/base/336514 Log: ofwfb: Check for /chosen/stdout-path in addition to /chosen/stdout Some platforms use /chosen/stdout-path as the property containing the path to the stdout

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

2018-07-19 Thread Justin Hibbits
Author: jhibbits Date: Thu Jul 19 20:13:33 2018 New Revision: 336509 URL: https://svnweb.freebsd.org/changeset/base/336509 Log: Merge the md_page structs for AIM and Book-E into a single unioned struct Summary: Ports like sysutils/lsof troll through kernel structures, and therefore

Re: svn commit: r334708 - head/sys/kern

2018-07-19 Thread Justin Hibbits
To the best of my understanding, the underlying race condition within the assert has not been solved. I've worked around it for now by simply removing the assert, but that's just a workaround to keep my development going. - Justin On Thu, Jul 19, 2018 at 2:09 PM Bryan Drewery wrote: > > Did

svn commit: r336355 - head/sys/cddl/dev/dtrace/powerpc

2018-07-16 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 16 19:47:29 2018 New Revision: 336355 URL: https://svnweb.freebsd.org/changeset/base/336355 Log: dtrace/powerpc: Correct register indices for non-indexed registers in the trapframe Fix an off-by-one error, LR starts at index 32, not index 33, and the others

Re: svn commit: r336245 - in head/sys: dev/ofw mips/atheros mips/atheros/ar531x mips/cavium mips/ingenic mips/mediatek mips/nlm

2018-07-13 Thread Justin Hibbits
I On Fri, Jul 13, 2018, 09:43 Warner Losh wrote: > Author: imp > Date: Fri Jul 13 16:43:17 2018 > New Revision: 336245 > URL: https://svnweb.freebsd.org/changeset/base/336245 > > Log: > Use boot_parse_* to parse command line args and retire cut-n-paste > code that was substantially

svn commit: r336173 - head/sys/contrib/octeon-sdk

2018-07-10 Thread Justin Hibbits
Author: jhibbits Date: Tue Jul 10 17:01:19 2018 New Revision: 336173 URL: https://svnweb.freebsd.org/changeset/base/336173 Log: Correct the identifier for the Unifi Security Gateway The USG is really E120, not E110. Modified: head/sys/contrib/octeon-sdk/cvmx-app-init.h

svn commit: r336144 - head/sys/powerpc/powernv

2018-07-09 Thread Justin Hibbits
Author: jhibbits Date: Mon Jul 9 20:33:48 2018 New Revision: 336144 URL: https://svnweb.freebsd.org/changeset/base/336144 Log: powerpc/powernv: Make opal_i2c driver work with attached i2c drivers * FreeBSD stores addresses in 8 bit format, but the OPAL API requires the 7-bit address,

svn commit: r336056 - head/sys/powerpc/powernv

2018-07-06 Thread Justin Hibbits
Author: jhibbits Date: Sat Jul 7 01:58:40 2018 New Revision: 336056 URL: https://svnweb.freebsd.org/changeset/base/336056 Log: Let ofw_iicbus work its magic on OPAL i2c buses. ofw_iicbus already has attachments on iichb. Rather than adding an explicit attachment onto opal_i2c, simply

svn commit: r335801 - head/sys/powerpc/powernv

2018-06-29 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 29 19:35:25 2018 New Revision: 335801 URL: https://svnweb.freebsd.org/changeset/base/335801 Log: Support multiple OPAL consoles, and don't crash if uart is not stdout Summary: If the chosen console is not the OPAL uart, but OPAL uart devices exist, the

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

2018-06-28 Thread Justin Hibbits
Hi David, On Thu, Jun 28, 2018 at 12:01 PM David Bright wrote: > > Author: dab > Date: Thu Jun 28 17:01:04 2018 > New Revision: 335765 > URL: https://svnweb.freebsd.org/changeset/base/335765 > > Log: > Remove potential identifier conflict in the EV_SET macro. > > PR43905 pointed out a

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

2018-06-25 Thread Justin Hibbits
Author: jhibbits Date: Mon Jun 25 22:05:33 2018 New Revision: 335648 URL: https://svnweb.freebsd.org/changeset/base/335648 Log: Expose stopped cpu contexts to ddb on PowerPC Summary: In r220638, stoppcbs started being tracked. This never got exposed to ddb though, so kdb_thr_ctx() didn't

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

2018-06-22 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 23 01:42:34 2018 New Revision: 335574 URL: https://svnweb.freebsd.org/changeset/base/335574 Log: powerpc64: Fix stack setup in dbtrap r330610 relocated the DMAP from the base of memory to the base of the fourth quadrant of memory. This broke synthetic

svn commit: r335491 - head/sys/powerpc/cpufreq

2018-06-21 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 21 15:59:05 2018 New Revision: 335491 URL: https://svnweb.freebsd.org/changeset/base/335491 Log: Fix the build post-PMCR addition. Submitted by: lwhsu Modified: head/sys/powerpc/cpufreq/pmcr.c Modified: head/sys/powerpc/cpufreq/pmcr.c

svn commit: r335483 - in head/sys: conf powerpc/include

2018-06-21 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 21 14:30:14 2018 New Revision: 335483 URL: https://svnweb.freebsd.org/changeset/base/335483 Log: Add the rest of the files for r335481 Missed hooking PMCR cpufreq(4) to the build, and adding the SPR to the header. Modified: head/sys/conf/files.powerpc

svn commit: r335481 - in head/sys: kern powerpc/cpufreq sys

2018-06-21 Thread Justin Hibbits
) +++ head/sys/powerpc/cpufreq/pmcr.c Thu Jun 21 14:26:43 2018 (r335481) @@ -0,0 +1,248 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2018 Justin Hibbits + * + * Redistribution and use in source and binary forms, with or without + * modification, are

svn commit: r335442 - head/sys/dev/ofw

2018-06-20 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 20 13:30:35 2018 New Revision: 335442 URL: https://svnweb.freebsd.org/changeset/base/335442 Log: Attach dev.cpu nodes on powerpc SMT cores, using only the first found thread Summary: In order to use cpufreq(4), a dev.cpu attachment must be created. If the

Re: svn commit: r335226 - head/sys/dev/ofw

2018-06-15 Thread Justin Hibbits
On Fri, Jun 15, 2018, 13:55 Justin Hibbits wrote: > Author: jhibbits > Date: Fri Jun 15 18:55:02 2018 > New Revision: 335226 > URL: https://svnweb.freebsd.org/changeset/base/335226 > > Log: > Check for a 'pci' prefix rather than a full match in get_addr_props > >

svn commit: r335226 - head/sys/dev/ofw

2018-06-15 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 15 18:55:02 2018 New Revision: 335226 URL: https://svnweb.freebsd.org/changeset/base/335226 Log: Check for a 'pci' prefix rather than a full match in get_addr_props Summary: Newer OPAL device trees, such as those on POWER9 systems, use 'pciex' for

svn commit: r335187 - head/sys/dev/ofw

2018-06-14 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 15 03:28:05 2018 New Revision: 335187 URL: https://svnweb.freebsd.org/changeset/base/335187 Log: ofw_reg_to_paddr(): Fix minor typo in KASSERT message Modified: head/sys/dev/ofw/ofw_subr.c Modified: head/sys/dev/ofw/ofw_subr.c

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