svn commit: r335160 - in head/sys: conf powerpc/aim powerpc/include

2018-06-14 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 14 17:23:51 2018 New Revision: 335160 URL: https://svnweb.freebsd.org/changeset/base/335160 Log: Split the PowerISA 3.0 HPT implementation from historic PowerISA 3.0 makes several changes to not only the format of the HPT but also the behavior surrounding

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

2018-06-14 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 14 16:01:11 2018 New Revision: 335146 URL: https://svnweb.freebsd.org/changeset/base/335146 Log: Fix CTR formatting for moea64_native bootstrap On very large memory systems 'size' can become 2GB or larger, resulting in a negative value being formatted.

Re: svn commit: r334814 - head/sbin/dump

2018-06-08 Thread Justin Hibbits
On Fri, Jun 8, 2018 at 10:08 AM, Ed Maste wrote: > On 7 June 2018 at 16:49, Kirk McKusick wrote: >> Author: mckusick >> Date: Thu Jun 7 20:49:01 2018 >> New Revision: 334814 >> URL: https://svnweb.freebsd.org/changeset/base/334814 >> >> Log: >> Ensure proper initialization of superblock. >> >

svn commit: r334773 - in head: share/man/man4 sys/modules

2018-06-07 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 7 11:25:36 2018 New Revision: 334773 URL: https://svnweb.freebsd.org/changeset/base/334773 Log: Build nvme modules for powerpc, and install man pages NVMe builds for powerpc now, so just build modules for all powerpc targets, and install NVMe man pages for

svn commit: r334754 - head/sbin/nvmecontrol

2018-06-06 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 7 04:02:09 2018 New Revision: 334754 URL: https://svnweb.freebsd.org/changeset/base/334754 Log: Print Maximum Data Transfer Size as a long rather than int PowerPC has PAGE_SIZE as a long, not an int. This causes the compiler to throw a format mismatch

svn commit: r334755 - head/sbin

2018-06-06 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 7 04:03:19 2018 New Revision: 334755 URL: https://svnweb.freebsd.org/changeset/base/334755 Log: Build nvmecontrol on powerpc64 The nvme driver is compiled for powerpc64 already, and the one fix required to build nvmecontrol on powerpc64 was fixed in

svn commit: r334745 - head/usr.sbin/bsdinstall/partedit

2018-06-06 Thread Justin Hibbits
Author: jhibbits Date: Thu Jun 7 00:24:10 2018 New Revision: 334745 URL: https://svnweb.freebsd.org/changeset/base/334745 Log: Add partition scheme for mpc85xx devices Some mpc85xx devices with u-boot need MBR partitioning with a FAT boot partition. Since the infrastructure is already

svn commit: r334716 - head/sys/kern

2018-06-06 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 6 15:12:19 2018 New Revision: 334716 URL: https://svnweb.freebsd.org/changeset/base/334716 Log: Revert r334708 This is the wrong place to put the barrier. Requested by: kib,mjg Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c

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

2018-06-06 Thread Justin Hibbits
On Wed, Jun 6, 2018 at 9:02 AM, Warner Losh wrote: > > > On Wed, Jun 6, 2018 at 8:57 AM, Justin Hibbits wrote: >> >> Author: jhibbits >> Date: Wed Jun 6 12:57:11 2018 >> New Revision: 334708 >> URL: https://svnweb.freebsd.org/changeset/base/334708 >

svn commit: r334708 - head/sys/kern

2018-06-06 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 6 12:57:11 2018 New Revision: 334708 URL: https://svnweb.freebsd.org/changeset/base/334708 Log: Add a memory barrier after taking a reference on the vnode holdcnt in _vhold This is needed to avoid a race between the VNASSERT() below, and another thread

svn commit: r334618 - head/sys/vm

2018-06-04 Thread Justin Hibbits
Author: jhibbits Date: Mon Jun 4 15:44:17 2018 New Revision: 334618 URL: https://svnweb.freebsd.org/changeset/base/334618 Log: Align UMA data to 128 byte cacheline size Suggested by: mjg Modified: head/sys/vm/uma_int.h Modified: head/sys/vm/uma_int.h

svn commit: r334615 - head/usr.sbin/bsdinstall/scripts

2018-06-04 Thread Justin Hibbits
Author: jhibbits Date: Mon Jun 4 14:42:13 2018 New Revision: 334615 URL: https://svnweb.freebsd.org/changeset/base/334615 Log: Set kernelname in bootconfig to the kernel file Summary: The kernel reads 'kernelname' to set the kern.bootfile sysctl. By setting this, 'make

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

2018-06-02 Thread Justin Hibbits
Author: jhibbits Date: Sun Jun 3 03:53:11 2018 New Revision: 334550 URL: https://svnweb.freebsd.org/changeset/base/334550 Log: Revert r326083, it doesn't behave as expected. Even though there do appear to be more artificial frames, with 12, stack traces no longer list at all. Revert

svn commit: r334538 - in head: sys/powerpc/powerpc sys/sys usr.bin/gcore

2018-06-02 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 2 20:28:58 2018 New Revision: 334538 URL: https://svnweb.freebsd.org/changeset/base/334538 Log: Included VSX registers in powerpc core dumps Summary: Included VSX registers in powerpc core dumps (both kernel and gcore) Submitted by: Luis Pires

svn commit: r334535 - in head: lib/libc/sys sys/powerpc/include sys/powerpc/powerpc

2018-06-02 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 2 19:17:11 2018 New Revision: 334535 URL: https://svnweb.freebsd.org/changeset/base/334535 Log: Added ptrace support for reading/writing powerpc VSX registers Summary: Added ptrace support for getting/setting the remaining part of the VSX registers (the

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

2018-06-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 1 21:37:20 2018 New Revision: 334498 URL: https://svnweb.freebsd.org/changeset/base/334498 Log: Increase powerpc64 KVA from ~7.25GB to 32GB This will let us use much more KVA for ZFS ARC where needed. This may be incresed in the future if memory

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

2018-06-01 Thread Justin Hibbits
Author: jhibbits Date: Fri Jun 1 16:31:05 2018 New Revision: 334488 URL: https://svnweb.freebsd.org/changeset/base/334488 Log: Unbreak 32-bit binaries on powerpc64 Recently a change was made which broke loading 32-bit binaries on powerpc64, with an assertion in ld-elf32.so.1:

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

2018-05-30 Thread Justin Hibbits
Author: jhibbits Date: Thu May 31 04:11:40 2018 New Revision: 334417 URL: https://svnweb.freebsd.org/changeset/base/334417 Log: Remove a debug printf from opal_pci driver Modified: head/sys/powerpc/powernv/opal_pci.c Modified: head/sys/powerpc/powernv/opal_pci.c

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

2018-05-30 Thread Justin Hibbits
Author: jhibbits Date: Wed May 30 22:39:41 2018 New Revision: 334407 URL: https://svnweb.freebsd.org/changeset/base/334407 Log: Only conform to PCIe spec of 1 device per bus on !x86 bhyve's root PCI complex shows up as PCIe, but behaves as traditional PCI. Until that is special cased in

Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Justin Hibbits
On Wed, May 30, 2018, 15:55 Peter Grehan wrote: > >> If bhyve has its own attachment id, it is trivial > >> to add a special case on it quickly, too. > > > > vendor_id -- 0x1275 > > Actually, this can also be AMD. A better check would be if the system > is running virtualized. > I'm

Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Justin Hibbits
Hi Peter, On Wed, May 30, 2018, 15:44 Peter Grehan wrote: > Hi Nathan, > > > There are a ton of ARM boards that need this too. You can find one-off > > hacks all through the tree and one of the nice things about this change > > is that all of those can be consolidated/removed now. If we are

Re: svn commit: r334365 - head/sys/dev/pci

2018-05-30 Thread Justin Hibbits
On Wed, May 30, 2018 at 4:42 AM, Peter Grehan wrote: >>PCIe only permits 1 device on an endpoint, so some devices ignore the >> device >>part of B:D:F probing. Although ARI likely fixes this, not all >> platforms >>support ARI completely or correctly, so some devices end up showing

Re: svn commit: r334367 - head/sys/powerpc/powernv

2018-05-29 Thread Justin Hibbits
On Tue, May 29, 2018 at 10:00 PM, Justin Hibbits wrote: > Author: jhibbits > Date: Wed May 30 03:00:57 2018 > New Revision: 334367 > URL: https://svnweb.freebsd.org/changeset/base/334367 > > Log: > Make opal_pci driver work with POWER9 > > Summary: > Couple

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

2018-05-29 Thread Justin Hibbits
Author: jhibbits Date: Wed May 30 03:48:27 2018 New Revision: 334370 URL: https://svnweb.freebsd.org/changeset/base/334370 Log: Protect dtrace_getpcstack() from a NULL stack pointer in a trap frame Found when trying to use lockstat on a POWER9, the stack pointer (r1) could be NULL, and

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

2018-05-29 Thread Justin Hibbits
Author: jhibbits Date: Wed May 30 03:00:57 2018 New Revision: 334367 URL: https://svnweb.freebsd.org/changeset/base/334367 Log: Make opal_pci driver work with POWER9 Summary: Coupled with r334365, this makes PCI work on POWER9. There is still more to do to fully exploit the hardware

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

2018-05-29 Thread Justin Hibbits
Author: jhibbits Date: Wed May 30 02:47:23 2018 New Revision: 334366 URL: https://svnweb.freebsd.org/changeset/base/334366 Log: Cache the phandle of the PCI node in opal_pci_attach Simple cleanup, no functional change. This is related to the fixups needed for POWER9 support. Modified:

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

2018-05-29 Thread Justin Hibbits
Author: jhibbits Date: Wed May 30 02:41:47 2018 New Revision: 334365 URL: https://svnweb.freebsd.org/changeset/base/334365 Log: Restrict PCIe maxslots to 0, instead of PCI_SLOTMAX Summary: PCIe only permits 1 device on an endpoint, so some devices ignore the device part of B:D:F

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

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Mon May 28 01:59:48 2018 New Revision: 334266 URL: https://svnweb.freebsd.org/changeset/base/334266 Log: Make ALT_BREAK_TO_DEBUGGER work with OPAL console Match other consoles by using the higher level cngetc() in the interrupt handler, so that kdb_alt_break() can

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

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Mon May 28 00:19:08 2018 New Revision: 334264 URL: https://svnweb.freebsd.org/changeset/base/334264 Log: Print the full-width pointer values in hex. PRI0ptrX is used to print a zero-padded hex value of the architecture's bitness, so on 64-bit architectures it'll

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

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Sun May 27 20:36:43 2018 New Revision: 334260 URL: https://svnweb.freebsd.org/changeset/base/334260 Log: Match style of the other prototypes, and don't name the argument. Modified: head/sys/powerpc/powerpc/cpu.c Modified: head/sys/powerpc/powerpc/cpu.c

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

2018-05-27 Thread Justin Hibbits
Author: jhibbits Date: Sun May 27 20:24:24 2018 New Revision: 334259 URL: https://svnweb.freebsd.org/changeset/base/334259 Log: Stop idle threads on power9 in the idle task until an interrupt. This reduces the CPU cycle wastage on power9, which is SMT4. Any idle thread that's spinning

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

2018-05-25 Thread Justin Hibbits
Author: jhibbits Date: Sat May 26 04:33:19 2018 New Revision: 334235 URL: https://svnweb.freebsd.org/changeset/base/334235 Log: On POWER9 clear the HID0_RADIX before enabling the page tables POWER9 supports Radix page tables in addition to Hashed page tables. When Radix page tables are

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

2018-05-25 Thread Justin Hibbits
Author: jhibbits Date: Sat May 26 04:24:25 2018 New Revision: 334234 URL: https://svnweb.freebsd.org/changeset/base/334234 Log: Fix a typo missed in r334232 Modified: head/sys/powerpc/powernv/opal_sensor.c Modified: head/sys/powerpc/powernv/opal_sensor.c

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

2018-05-25 Thread Justin Hibbits
Author: jhibbits Date: Sat May 26 02:45:41 2018 New Revision: 334232 URL: https://svnweb.freebsd.org/changeset/base/334232 Log: Correct a typo for opal temperature sensor type constant Modified: head/sys/powerpc/powernv/opal_sensor.c Modified: head/sys/powerpc/powernv/opal_sensor.c

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

2018-05-25 Thread Justin Hibbits
Author: jhibbits Date: Sat May 26 00:41:50 2018 New Revision: 334230 URL: https://svnweb.freebsd.org/changeset/base/334230 Log: Only crop the VPN on POWER4 and derivatives for TLBIE operations Summary: PowerISA 2.03 and later require bits 14:65 in the RB register argument, which is the

svn commit: r334015 - in head/sys: conf powerpc/powernv

2018-05-21 Thread Justin Hibbits
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powernv/opal_ipmi.cTue May 22 03:57:32 2018 (r334015) @@ -0,0 +1,241 @@ +/*- + * Copyright (C) 2018 Justin Hibbits

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

2018-05-21 Thread Justin Hibbits
Author: jhibbits Date: Tue May 22 03:24:16 2018 New Revision: 334014 URL: https://svnweb.freebsd.org/changeset/base/334014 Log: Add a comment explaining the need of a global temporary variable cpu_xirr is used only as a temporary location for the OPAL call in PIC_DISPATCH().

svn commit: r334013 - svnadmin/conf

2018-05-21 Thread Justin Hibbits
Author: jhibbits Date: Tue May 22 03:22:02 2018 New Revision: 334013 URL: https://svnweb.freebsd.org/changeset/base/334013 Log: Welcome Leandro Lupori (luporl@) to the ranks of src committers Leandro has tackled some of the more difficult bugs in low level POWER bringup, and will

svn commit: r334012 - svnadmin/conf

2018-05-21 Thread Justin Hibbits
Author: jhibbits Date: Tue May 22 03:16:23 2018 New Revision: 334012 URL: https://svnweb.freebsd.org/changeset/base/334012 Log: Welcome Breno Leitao (leitao@) to the ranks of src committers. Breno has been working on POWER9 bringup, and will start his src journey in the powerpc world.

svn commit: r334011 - in head/sys: conf powerpc/powernv

2018-05-21 Thread Justin Hibbits
l_sensor.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powernv/opal_sensor.c Tue May 22 02:42:53 2018 (r334011) @@ -0,0 +1,336 @@ +/*- + * Copyright (C) 2018 Justin Hibbits + * + * Redistribution and use in source and binary forms, with

svn commit: r333912 - in head/sys/powerpc: aim include powernv powerpc pseries

2018-05-19 Thread Justin Hibbits
Author: jhibbits Date: Sun May 20 03:23:17 2018 New Revision: 333912 URL: https://svnweb.freebsd.org/changeset/base/333912 Log: Add support for the XIVE XICS emulation mode for POWER9 systems Summary: POWER9 systems use a new interrupt controller, XIVE, managed through OPAL firmware

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

2018-05-18 Thread Justin Hibbits
Author: jhibbits Date: Sat May 19 04:56:10 2018 New Revision: 333851 URL: https://svnweb.freebsd.org/changeset/base/333851 Log: Add SPR_HSRR0/SPR_HSRR1 definitions Reported by: Mark Millard Pointy-hat to:jhibbits Modified: head/sys/powerpc/include/spr.h Modified:

svn commit: r333846 - in head/sys/powerpc: aim powerpc

2018-05-18 Thread Justin Hibbits
Author: jhibbits Date: Sat May 19 04:21:50 2018 New Revision: 333846 URL: https://svnweb.freebsd.org/changeset/base/333846 Log: Add hypervisor trap handling, using HSRR0/HSRR1 Summary: Some hypervisor exceptions on POWER architecture only save state to HSRR0/HSRR1. Until we have bhyve

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

2018-05-18 Thread Justin Hibbits
Author: jhibbits Date: Sat May 19 04:01:15 2018 New Revision: 333836 URL: https://svnweb.freebsd.org/changeset/base/333836 Log: powerpc64: Add OPAL definitions Summary: Add additional OPAL PCI definitions and expand the code to use them in order to ease the OPAL interface process for

Re: svn commit: r333825 - head/sys/powerpc/ofw

2018-05-18 Thread Justin Hibbits
On Fri, May 18, 2018 at 10:45 PM, Justin Hibbits <jhibb...@freebsd.org> wrote: > Author: jhibbits > Date: Sat May 19 03:45:38 2018 > New Revision: 333825 > URL: https://svnweb.freebsd.org/changeset/base/333825 > > Log: > Add yet another option for gathering available

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

2018-05-18 Thread Justin Hibbits
Author: jhibbits Date: Sat May 19 03:45:38 2018 New Revision: 333825 URL: https://svnweb.freebsd.org/changeset/base/333825 Log: Add yet another option for gathering available memory On some POWER9 systems, 'reg' denotes the full memory in the system, while 'linux,usable-memory' denotes

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

2018-05-18 Thread Justin Hibbits
Author: jhibbits Date: Sat May 19 03:47:28 2018 New Revision: 333826 URL: https://svnweb.freebsd.org/changeset/base/333826 Log: Fix a manual copy from the original diff for r333825 The 'else' was in the original diff. Submitted by: Breno Leitao Modified:

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

2018-05-18 Thread Justin Hibbits
Author: jhibbits Date: Sat May 19 03:23:46 2018 New Revision: 333824 URL: https://svnweb.freebsd.org/changeset/base/333824 Log: Add some Hypervisor interrupt definitions This mostly completes the interrupt definitions. There are still some left out, less likely to be used in the near

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

2018-05-10 Thread Justin Hibbits
Author: jhibbits Date: Fri May 11 02:04:01 2018 New Revision: 333478 URL: https://svnweb.freebsd.org/changeset/base/333478 Log: No need to bzero splpar_vpa entries splpar_vpa is in the BSS, so is already zeroed when the kernel starts up. Tested by:Leandro Lupori Modified:

svn commit: r333447 - in head/sys: ddb powerpc/include powerpc/pseries

2018-05-09 Thread Justin Hibbits
Author: jhibbits Date: Thu May 10 03:59:48 2018 New Revision: 333447 URL: https://svnweb.freebsd.org/changeset/base/333447 Log: Fix PPC symbol resolution Summary: There were 2 issues that were preventing correct symbol resolution on PowerPC/pseries: 1- memory corruption at

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

2018-05-08 Thread Justin Hibbits
Author: jhibbits Date: Tue May 8 13:23:39 2018 New Revision: 63 URL: https://svnweb.freebsd.org/changeset/base/63 Log: Fix wrong cpu0 identification Summary: chrp_cpuref_init() was relying on the boot strap processor to be the first child of /cpus. That was not always the

svn commit: r333273 - in head/sys/powerpc: aim include pseries

2018-05-05 Thread Justin Hibbits
Author: jhibbits Date: Sat May 5 16:00:02 2018 New Revision: 333273 URL: https://svnweb.freebsd.org/changeset/base/333273 Log: Add support for powernv POWER9 MMU initialization The POWER9 MMU (PowerISA 3.0) is slightly different from current configurations, using a partition table even

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

2018-05-05 Thread Justin Hibbits
Author: jhibbits Date: Sat May 5 15:48:39 2018 New Revision: 333272 URL: https://svnweb.freebsd.org/changeset/base/333272 Log: Break out the cpu_features setup to its own function, to be run earlier The new POWER9 MMU configuration is slightly different from current setups. Rather than

svn commit: r333271 - in head/sys/powerpc: aim powerpc

2018-05-05 Thread Justin Hibbits
Author: jhibbits Date: Sat May 5 15:42:58 2018 New Revision: 333271 URL: https://svnweb.freebsd.org/changeset/base/333271 Log: Add POWER9 to the POWER8 bootstrap case blocks POWER8 and POWER9 have similar configuration requirements for hypervisor setup, and in the cases here they're

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

2018-04-30 Thread Justin Hibbits
Author: jhibbits Date: Tue May 1 04:31:17 2018 New Revision: 333135 URL: https://svnweb.freebsd.org/changeset/base/333135 Log: Remove dead errata fixup code This code caused more problems than it should have fixed (boot failures) on the machines I tested, so has been commented out for a

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

2018-04-24 Thread Justin Hibbits
Author: jhibbits Date: Wed Apr 25 02:42:11 2018 New Revision: 332984 URL: https://svnweb.freebsd.org/changeset/base/332984 Log: Increase the fdtmemreserv array limit to boot on POWER9 Discussing with others, this needs to be at least 20 to boot on some POWER9 nodes. Linux made a similar

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

2018-04-22 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 22 03:58:04 2018 New Revision: 332868 URL: https://svnweb.freebsd.org/changeset/base/332868 Log: Fix the build post r332859 sysentvec::sv_hwcap/sv_hwcap2 are pointers to u_long, so cpu_features* need to be u_long to use the pointers. This also requires a

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

2018-04-21 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 21 15:15:47 2018 New Revision: 332859 URL: https://svnweb.freebsd.org/changeset/base/332859 Log: Export powerpc CPU features for auxvec FreeBSD exports the AT_HWCAP* auxvec items if provided by the ELF sysentvec structure. Add the CPU features to be

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

2018-04-20 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 21 04:18:17 2018 New Revision: 332854 URL: https://svnweb.freebsd.org/changeset/base/332854 Log: Sync powerpc feature flags with Linux Not all feature flags are synced. Those for processors we don't currently support are ignored currently. Those that are

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

2018-04-19 Thread Justin Hibbits
Author: jhibbits Date: Fri Apr 20 03:23:19 2018 New Revision: 332808 URL: https://svnweb.freebsd.org/changeset/base/332808 Log: powerpc64: Set n_slbs = 32 for POWER9 Summary: POWER9 also contains 32 slbs entries as explained by the POWER9 User Manual: "For HPT translation, the

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

2018-04-19 Thread Justin Hibbits
Author: jhibbits Date: Fri Apr 20 03:19:44 2018 New Revision: 332807 URL: https://svnweb.freebsd.org/changeset/base/332807 Log: powerpc64: Add DSCR support Summary: Powerpc64 has support for a register called Data Stream Control Register (DSCR), which basically controls how the

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

2018-04-15 Thread Justin Hibbits
Author: jhibbits Date: Mon Apr 16 04:02:53 2018 New Revision: 332546 URL: https://svnweb.freebsd.org/changeset/base/332546 Log: Use a resource hint instead of environment variable for DIU mode This makes it more consistent with FreeBSD norms, rather than using Linux's norms. Now,

Re: svn commit: r332423 - in head/sys: conf dev/cxgbe dev/ixgbe dev/ixl dev/netmap dev/re modules/netmap net sys

2018-04-13 Thread Justin Hibbits
On Thu, Apr 12, 2018 at 2:20 AM, Vincenzo Maffione wrote: > Author: vmaffione > Date: Thu Apr 12 07:20:50 2018 > New Revision: 332423 > URL: https://svnweb.freebsd.org/changeset/base/332423 > > Log: > netmap: align codebase to the current upstream (commit id

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

2018-04-10 Thread Justin Hibbits
Author: jhibbits Date: Tue Apr 10 21:14:54 2018 New Revision: 332393 URL: https://svnweb.freebsd.org/changeset/base/332393 Log: Reenter KDB on fault on powerpc, instead of panicking Most other architectures already re-enter KDB on faults, powerpc and mips are the only outliers. Correct

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

2018-04-10 Thread Justin Hibbits
Author: jhibbits Date: Tue Apr 10 17:32:27 2018 New Revision: 332383 URL: https://svnweb.freebsd.org/changeset/base/332383 Log: Call through powerpc_interrupt for all Book-E interrupts Make int_external_input, int_decrementer, and int_performance_counter all now use trap_common, just

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

2018-04-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 8 19:33:05 2018 New Revision: 332299 URL: https://svnweb.freebsd.org/changeset/base/332299 Log: Fix typo Reserved cause is 6, not 5. Reported by: cem Modified: head/sys/powerpc/include/spr.h Modified: head/sys/powerpc/include/spr.h

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

2018-04-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 8 19:11:25 2018 New Revision: 332296 URL: https://svnweb.freebsd.org/changeset/base/332296 Log: Powerpc64: Add the facility unavailable trap subsystem Summary: This code adds the basic infrastructure for the facility subsystem. A facility trap is raised

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

2018-04-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 8 16:55:28 2018 New Revision: 332289 URL: https://svnweb.freebsd.org/changeset/base/332289 Log: powerpc64: Print current MSR on printtrap() Summary: Print current MSR on printtrap(). Currently, printtrap just prints srr1, which contains part of the MSR

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

2018-04-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 8 16:46:24 2018 New Revision: 332287 URL: https://svnweb.freebsd.org/changeset/base/332287 Log: powerpc64: Avoid calling isync twice Summary: It is not necessary to call isync() after calling mtmsr() function, mainly because the mtmsr() calls 'isync'

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

2018-04-08 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 8 16:43:56 2018 New Revision: 332286 URL: https://svnweb.freebsd.org/changeset/base/332286 Log: powerpc/ofw: Fix malloc inside lock Summary: Currently ofw_real_bounce_alloc() is requesting memory, using WAITOK, holding a non-sleepable locks, called 'OF

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

2018-04-03 Thread Justin Hibbits
Author: jhibbits Date: Wed Apr 4 02:13:27 2018 New Revision: 331970 URL: https://svnweb.freebsd.org/changeset/base/331970 Log: Correct the ilog2() for calculating memory sizes. TLB1 can handle ranges up to 4GB (through e5500, larger in e6500), but ilog2() took a unsigned int, which

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

2018-04-02 Thread Justin Hibbits
Author: jhibbits Date: Tue Apr 3 00:45:38 2018 New Revision: 331900 URL: https://svnweb.freebsd.org/changeset/base/331900 Log: Add support for a pmap direct map for 64-bit Book-E As with AIM64, map the DMAP at the beginning of the fourth "quadrant" of memory, and move the KERNBASE to

svn commit: r331658 - head/sys/conf

2018-03-27 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 28 03:11:50 2018 New Revision: 331658 URL: https://svnweb.freebsd.org/changeset/base/331658 Log: Fix another optional standard. Build openpic_ofw again. Modified: head/sys/conf/files.powerpc Modified: head/sys/conf/files.powerpc

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

2018-03-22 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 23 00:40:08 2018 New Revision: 331401 URL: https://svnweb.freebsd.org/changeset/base/331401 Log: Debug interrupts aren't instruction traps The EXC_DEBUG type is akin to the MPC74xx "Instruction Breakpoint" trap. Don't treat it as a trap instruction.

Re: svn commit: r331369 - head/sys/vm

2018-03-22 Thread Justin Hibbits
This broke gcc builds. On Thu, Mar 22, 2018 at 2:21 PM, Jeff Roberson wrote: > Author: jeff > Date: Thu Mar 22 19:21:11 2018 > New Revision: 331369 > URL: https://svnweb.freebsd.org/changeset/base/331369 > > Log: > Lock reservations with a dedicated lock in each reservation.

Re: svn commit: r331347 - in head: etc/mtree include sys/conf sys/dev/tcp_log sys/kern sys/netinet usr.bin/netstat

2018-03-22 Thread Justin Hibbits
On Thu, Mar 22, 2018 at 3:44 PM, Andriy Gapon wrote: > On 22/03/2018 17:39, Jonathan Looney wrote: >> A tinderbox build didn't complain about atomic_fetchadd_64, so I assume it >> is OK. >> >> Yes, this can be made optional, if there is a need for that. >> > > FWWI,

svn commit: r331233 - head/sys/kern

2018-03-19 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 20 02:01:30 2018 New Revision: 331233 URL: https://svnweb.freebsd.org/changeset/base/331233 Log: Cast through uintptr_t to narrow the buf domain pointer on 32-bit archs arg2 is an intmax_t, which on 32-bit architectures is 64 bits, wider than a pointer.

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

2018-03-19 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 20 01:07:22 2018 New Revision: 331231 URL: https://svnweb.freebsd.org/changeset/base/331231 Log: Fix powerpc Book-E build post-331018/331048. pagedaemon_wakeup() was moved from vm_pageout.h to vm_pagequeue.h. Modified: head/sys/powerpc/booke/pmap.c

Re: svn commit: r330972 - stable/11/share/misc

2018-03-15 Thread Justin Hibbits
On Thu, Mar 15, 2018 at 10:46 AM, Ian Lepore wrote: > I agree completely with all of this. It bothers me how many committers > have the attitude that handling MFCs is not part of being a committer. Never attribute to arrogance that which can adequately be explained by sheer

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

2018-03-14 Thread Justin Hibbits
On Wed, Mar 14, 2018 at 12:53 PM, Nathan Whitehorn <nwhiteh...@freebsd.org> wrote: > > > On 03/14/18 09:19, Justin Hibbits wrote: >> >> On Wed, Mar 14, 2018 at 11:16 AM, Nathan Whitehorn >> <nwhiteh...@freebsd.org> wrote: >>> >>> Auth

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

2018-03-14 Thread Justin Hibbits
On Wed, Mar 14, 2018 at 11:16 AM, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Wed Mar 14 16:16:25 2018 > New Revision: 330930 > URL: https://svnweb.freebsd.org/changeset/base/330930 > > Log: > The expression (aim | fdt) is always true on PowerPC. The last

Re: svn commit: r330845 - in head/sys/powerpc: aim ofw powerpc

2018-03-13 Thread Justin Hibbits
This broke the powerpc (32-bit) build. On Tue, Mar 13, 2018 at 10:03 AM, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Tue Mar 13 15:03:58 2018 > New Revision: 330845 > URL: https://svnweb.freebsd.org/changeset/base/330845 > > Log: > Execute PowerPC64/AIM kernel

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

2018-02-28 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 1 04:44:17 2018 New Revision: 330147 URL: https://svnweb.freebsd.org/changeset/base/330147 Log: Fix the psl_userset32 definition. It should be based on psl_userset, not psl_kernset. As kernset, it would inherit kernel config, including privilege level.

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

2018-02-26 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 27 04:38:27 2018 New Revision: 330052 URL: https://svnweb.freebsd.org/changeset/base/330052 Log: Increase the size of a reservation granule for TLB locks A reservation granule on PowerPC is a cache line. On e500mc and derivatives a cacheline size is 64

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

2018-02-26 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 27 04:23:03 2018 New Revision: 330051 URL: https://svnweb.freebsd.org/changeset/base/330051 Log: Fix a minor typo. Modified: head/sys/powerpc/powerpc/cpu.c Modified: head/sys/powerpc/powerpc/cpu.c

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

2018-02-25 Thread Justin Hibbits
Author: jhibbits Date: Mon Feb 26 03:05:36 2018 New Revision: 330003 URL: https://svnweb.freebsd.org/changeset/base/330003 Log: Correct a copy -- altivec assist interrupt, not watchdog Modified: head/sys/powerpc/booke/trap_subr.S Modified: head/sys/powerpc/booke/trap_subr.S

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

2018-02-24 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 24 18:12:38 2018 New Revision: 329918 URL: https://svnweb.freebsd.org/changeset/base/329918 Log: Unbreak 64-bit Book-E builds post r329712 can_wakeup is defined only in AIM's locore64.S, so conditionalize use of it on AIM in addition to powerpc64.

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

2018-02-24 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 24 17:54:12 2018 New Revision: 329917 URL: https://svnweb.freebsd.org/changeset/base/329917 Log: Make MPC85XXSPE kernel conf ident match the file name Modified: head/sys/powerpc/conf/MPC85XXSPE Modified: head/sys/powerpc/conf/MPC85XXSPE

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

2018-02-24 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 24 17:53:22 2018 New Revision: 329916 URL: https://svnweb.freebsd.org/changeset/base/329916 Log: Change ident for QORIQ64 kernel conf Make it match the conf file name. Modified: head/sys/powerpc/conf/QORIQ64 Modified: head/sys/powerpc/conf/QORIQ64

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

2018-02-24 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 24 17:29:29 2018 New Revision: 329915 URL: https://svnweb.freebsd.org/changeset/base/329915 Log: Unbreak the build after r329891 I was apparently a little too excited with deleting code, and apparently didn't do a final test build before commit. Restore

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

2018-02-23 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 24 01:46:56 2018 New Revision: 329891 URL: https://svnweb.freebsd.org/changeset/base/329891 Log: Remove platform_cpu_idle() and platform_cpu_idle_wakeup() interfaces These interfaces were put in place to let QorIQ SoCs dictate CPU idling semantics, in order

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

2018-02-20 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 21 03:34:33 2018 New Revision: 329695 URL: https://svnweb.freebsd.org/changeset/base/329695 Log: Split printtrap() into generic and CPU-specific components Summary: This compartmentalizes the CPU-specific trap components into its own function, rather than

svn commit: r329469 - in head/sys/powerpc: aim booke include powerpc ps3 pseries

2018-02-17 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 17 20:59:12 2018 New Revision: 329469 URL: https://svnweb.freebsd.org/changeset/base/329469 Log: Merge AIM and Book-E PCPU fields This is part of a long-term goal of merging Book-E and AIM into a single GENERIC kernel. As more work is done, the struct may

svn commit: r329262 - head/sys/geom/part

2018-02-14 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 14 15:12:09 2018 New Revision: 329262 URL: https://svnweb.freebsd.org/changeset/base/329262 Log: Fix a panic introduced in r329225 Some GEOM partition tables may be destroyed with incomplete partition entries. Guard against this with NULL checks.

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

2018-02-13 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 14 02:51:28 2018 New Revision: 329258 URL: https://svnweb.freebsd.org/changeset/base/329258 Log: PPC64: Get the timestap from the proper OF field Summary: After revision rS328534('PPC64: use hwref instead of cpuid'), FreeBSD on powerpc64 virtual machine

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

2018-02-13 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 14 02:48:27 2018 New Revision: 329257 URL: https://svnweb.freebsd.org/changeset/base/329257 Log: powerpc64/pseries: Define new hcalls Summary: Define new hcalls as in 'Linux on Power Architecture Platform Reference' version 1.1 (24 March 2016) downloaded

svn commit: r329225 - head/sys/geom/part

2018-02-13 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 13 17:40:09 2018 New Revision: 329225 URL: https://svnweb.freebsd.org/changeset/base/329225 Log: Narrow a race, and fix a leak, in g_part_wither A race in g_part_wither() can lead to I/O being performed with a freed GEOM when the device disappears. Close

svn commit: r329190 - in head/stand: . common mips/beri/loader powerpc/kboot powerpc/ofw sparc64/loader uboot/common uboot/lib

2018-02-12 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 13 03:44:50 2018 New Revision: 329190 URL: https://svnweb.freebsd.org/changeset/base/329190 Log: Unify metadata load files for arm, mips, powerpc, sparc64 Summary: All metadata.c files are very similar, with only trivial changes. Unify them into a single

Re: svn commit: r329077 - head/usr.bin/tftp

2018-02-10 Thread Justin Hibbits
On Sat, Feb 10, 2018 at 11:10 AM, Pedro Giffuni <p...@freebsd.org> wrote: > > > On 02/10/18 11:13, Justin Hibbits wrote: >> >> On Fri, Feb 9, 2018 at 7:22 PM, Ed Maste <ema...@freebsd.org> wrote: >>> >>> On 9 February 2018 at 14:46, Conrad Me

svn commit: r329106 - head/usr.bin/tftp

2018-02-10 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 10 17:17:15 2018 New Revision: 329106 URL: https://svnweb.freebsd.org/changeset/base/329106 Log: Fix uninitialized warning, and work around a bug in gcc over clobbering Summary: r329077 caused gcc to emit uninitialized use warnings. Attempting to fix

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