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 te

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 th

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 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 memory > > On some PO

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: head/sys/powerpc/ofw/ofw_mac

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 n

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: 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: head/sys/pow

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 cal

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: 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(). Requeste

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

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 is

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

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 c

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 probing

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

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 re

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

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 up

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 goin

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 thinkin

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 a

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

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 requiremen

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

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 unt

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 installkernel'

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

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

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 i

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 war

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 r334754

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

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

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 it

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

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 device_t

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_prop

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 I

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

2018-06-21 Thread Justin Hibbits
added) +++ 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

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 hea

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

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

2017-11-28 Thread Justin Hibbits
On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Sat Nov 25 21:45:51 2017 > New Revision: 326203 > URL: https://svnweb.freebsd.org/changeset/base/326203 > > Log: > Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for > the first instruct

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

2017-11-28 Thread Justin Hibbits
On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn wrote: > > > On 11/28/17 07:27, Justin Hibbits wrote: >> >> On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn >> wrote: >>> >>> Author: nwhitehorn >>> Date: Sat Nov 25 21:45:51 2017 >&g

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

2017-11-28 Thread Justin Hibbits
On Tue, Nov 28, 2017 at 10:30 AM, Nathan Whitehorn wrote: > > > On 11/28/17 08:23, Justin Hibbits wrote: >> >> On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn >> wrote: >>> >>> >>> On 11/28/17 07:27, Justin Hibbits wrote: >>>>

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

2017-11-28 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 29 01:26:07 2017 New Revision: 326354 URL: https://svnweb.freebsd.org/changeset/base/326354 Log: Only check the page tables if within the KVA. Devices aren't mapped within the KVA, and with the way 64-bit hashes the addresses pte_vatopa() may not return a 0

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

2017-11-29 Thread Justin Hibbits
On Wed, Nov 29, 2017 at 10:13 AM, Konstantin Belousov wrote: > On Wed, Nov 29, 2017 at 04:33:50PM +0100, Hans Petter Selasky wrote: >> Hi Nathan, >> >> The chunk below causes sched_pin() to stop working and should be removed >> from your commit ??!! >> >> It probably explains the hangs seen recent

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

2017-12-01 Thread Justin Hibbits
Author: jhibbits Date: Sat Dec 2 01:42:07 2017 New Revision: 326453 URL: https://svnweb.freebsd.org/changeset/base/326453 Log: Override memattr for mmap on the Freescale DIU driver The Display Interface Unit (DIU) uses main memory for the framebuffer, which is already mapped as cache coh

svn commit: r326611 - head/sys/sys

2017-12-05 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 6 02:05:21 2017 New Revision: 326611 URL: https://svnweb.freebsd.org/changeset/base/326611 Log: Use unsigned intptr_t type for framebuffer addresses Summary: Some architectures (powerpc Book-E) have a vm_paddr_t larger than intptr_t. Casting from the intp

svn commit: r326612 - head/sys/dev/vt/hw/fb

2017-12-05 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 6 02:06:14 2017 New Revision: 326612 URL: https://svnweb.freebsd.org/changeset/base/326612 Log: Allow custom overrides of mmap attribute for VT framebuffer Summary: As in /dev/fb, allow the framebuffer driver to override the default memattr for mmap(2).

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

2017-12-07 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 8 03:49:53 2017 New Revision: 326675 URL: https://svnweb.freebsd.org/changeset/base/326675 Log: Remove PTE VA mappings for tracked pages in 64-bit mode This was done in 32-bit mode, but not duplicated when 64-bit mode was brought in. Without this, stale ma

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

2017-12-09 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 10 04:43:27 2017 New Revision: 326739 URL: https://svnweb.freebsd.org/changeset/base/326739 Log: Retrieve the page outside of holding locks pmap_track_page() only works with physical memory pages, which have a constant vm_page_t address. Microoptimize pmap_

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

2017-12-11 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 12 03:16:10 2017 New Revision: 326789 URL: https://svnweb.freebsd.org/changeset/base/326789 Log: Decode some PowerPC trap registers Decode on Book-E: * ESR (Exception Syndrome Register) * MCSR (Machine Check Status Register) On AIM: * MSSSR (Memory

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

2017-12-13 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 14 04:41:07 2017 New Revision: 326840 URL: https://svnweb.freebsd.org/changeset/base/326840 Log: Allow bman-portals and qman-portals to attach to simple-bus Official Linux dts's put the individual portals under a simple-bus, rather than under a '*-portals' g

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

2017-12-14 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 14 20:01:04 2017 New Revision: 326859 URL: https://svnweb.freebsd.org/changeset/base/326859 Log: Add identifier for POWER9 CPU to CPU list Without the identifier in the list booting FreeBSD results in printing the following (from a PowerKVM boot): cpu0:

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

2017-12-14 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 15 04:11:20 2017 New Revision: 326870 URL: https://svnweb.freebsd.org/changeset/base/326870 Log: Handle the Facility Unavailable exception as a SIGILL Currently Facility Unavailable is absent and once an application tries to use or access a register from a f

Re: svn commit: r326870 - in head/sys/powerpc: include powerpc

2017-12-14 Thread Justin Hibbits
On Thu, Dec 14, 2017 at 10:11 PM, Justin Hibbits wrote: > Author: jhibbits > Date: Fri Dec 15 04:11:20 2017 > New Revision: 326870 > URL: https://svnweb.freebsd.org/changeset/base/326870 > > Log: > Handle the Facility Unavailable exception as a SIGILL > > Curren

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

2017-12-20 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 20 16:49:45 2017 New Revision: 327028 URL: https://svnweb.freebsd.org/changeset/base/327028 Log: Increase default MAXDSIZ to 32G on powerpc64 Linking LLVM now seems to require more than 1GB data size, so increase the default to 32G, which matches amd64.

svn commit: r327681 - head/sys/modules/gpio/gpiobus

2018-01-07 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 7 20:28:17 2018 New Revision: 327681 URL: https://svnweb.freebsd.org/changeset/base/327681 Log: Add missing file to gpiobus module ofw_gpiobus.c is needed when FDT is used. MFC after:2 weeks Modified: head/sys/modules/gpio/gpiobus/Makefile Modifi

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

2018-01-12 Thread Justin Hibbits
/powerpc/mpc85xx/mpc85xx_cache.cSat Jan 13 01:36:37 2018 (r327906) @@ -0,0 +1,129 @@ +/*- + * Copyright (c) 2018 Justin Hibbits + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

svn commit: r327907 - in head/sys: conf dev/fdt dev/ofw

2018-01-12 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 13 02:56:09 2018 New Revision: 327907 URL: https://svnweb.freebsd.org/changeset/base/327907 Log: Remove fdt fixups for powerpc, they are no longer needed. If a fixup really is needed, it should be fixed in u-boot, not in FreeBSD. Suggested by: nwhitehorn

svn commit: r327911 - head/lib/libpmc

2018-01-12 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 13 04:53:04 2018 New Revision: 327911 URL: https://svnweb.freebsd.org/changeset/base/327911 Log: Replace the PMC class struct copy with an explicit memcpy() This should be effectively a nop for all archs, but for some reason the codegen difference on the Po

Re: svn commit: r327906 - in head/sys: conf powerpc/mpc85xx

2018-01-13 Thread Justin Hibbits
On Jan 13, 2018 09:04, "Pedro Giffuni" wrote: On 12/01/2018 20:36, Justin Hibbits wrote: > Author: jhibbits > Date: Sat Jan 13 01:36:37 2018 > New Revision: 327906 > URL: https://svnweb.freebsd.org/changeset/base/327906 > ... > > > Added: head/s

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

2018-01-13 Thread Justin Hibbits
-Identifier: BSD-2-Clause-FreeBSD + * * Copyright (c) 2018 Justin Hibbits * All rights reserved. * ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-uns

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

2018-01-13 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 13 21:10:42 2018 New Revision: 327943 URL: https://svnweb.freebsd.org/changeset/base/327943 Log: Include only the headers needed The extra headers came through evolution of the file. Modified: head/sys/powerpc/mpc85xx/mpc85xx_cache.c Modified: head/sys/pow

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

2018-01-15 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 16 04:50:23 2018 New Revision: 328040 URL: https://svnweb.freebsd.org/changeset/base/328040 Log: Make fsl_sata driver work on P1022 P1022 SATA controller may set the wrong CCR bit for a command completion. This would previously cause an interrupt storm. Sol

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

2018-01-22 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 23 02:52:12 2018 New Revision: 328269 URL: https://svnweb.freebsd.org/changeset/base/328269 Log: Fix 64-bit booke kernel builds after the ldscript changes Commits r326203 and r326978 broke 64-bit booke kernels by introducing a 1MB zero-pad between the ELF he

svn commit: r328424 - head/sys/compat/linuxkpi/common/src

2018-01-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 26 00:56:09 2018 New Revision: 328424 URL: https://svnweb.freebsd.org/changeset/base/328424 Log: Minimal change to build linuxkpi on architectures with physical addresses larger than virtual Summary: Some architectures have physical/bus addresses that are

svn commit: r328425 - head/sys/cam/ctl

2018-01-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 26 00:58:02 2018 New Revision: 328425 URL: https://svnweb.freebsd.org/changeset/base/328425 Log: Minimum changes for ctl to build on architectures with non-matching physical and virtual address sizes Summary: Some architectures use physical addresses larg

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

2018-01-28 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 28 19:18:40 2018 New Revision: 328516 URL: https://svnweb.freebsd.org/changeset/base/328516 Log: Consolidate trap instruction checks to a single function Summary: Rather than duplicating the checks for programmatic traps all over the code, put it all in o

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

2018-01-28 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 28 20:35:48 2018 New Revision: 328518 URL: https://svnweb.freebsd.org/changeset/base/328518 Log: Start building modules for QORIQ64 There's no reason not to build modules for 64-bit QorIQ devices. This config has evolved to be analogous to the AIM GENERIC64

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, TARGET=powerpc TARGET_ARCH=pow

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. Protect the > vm

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. Modifie

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

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 maxes

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 B

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' inte

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 pr

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 w

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

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 t

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 3fb001303718146) > > Changelist: >

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, instead

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 hardware

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 POWER

  1   2   3   4   5   6   7   8   9   10   >