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 fo

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

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 pe

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

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 attachme

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 Firmware

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 th

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 ar

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: 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: head/sys/powerpc/booke/spe

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

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

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 point

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

2018-12-10 Thread Justin Hibbits
On Mon, Dec 10, 2018, 17:57 Ian Lepore On Mon, 2018-12-10 at 14:15 -0800, John Baldwin wrote: > > On 12/8/18 7:43 PM, Warner Losh wrote: > > > > > > > > > > > > On Sat, Dec 8, 2018, 8:36 PM Kevin Bowling > > m wrote: > > > > > > On Sat, Dec 8, 2018 at 12:09 A

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

2018-12-10 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 11 02:03:00 2018 New Revision: 341805 URL: https://svnweb.freebsd.org/changeset/base/341805 Log: powerpc/booke: Don't get and use the load offset for TOC on APs The code was a near exact copy of the code in startup, but it doesn't need the complexity since t

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

2018-12-12 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 13 04:48:28 2018 New Revision: 342025 URL: https://svnweb.freebsd.org/changeset/base/342025 Log: powerpcspe: Fix GPR handling in SPE exception handler Optimize the exception handler to only save and load the upper word of the GPRs used in the emulating instr

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

2018-12-12 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 13 05:07:39 2018 New Revision: 342026 URL: https://svnweb.freebsd.org/changeset/base/342026 Log: powerpc/booke: Change KERNBASE to be physical load address Previous commits have made VM_MIN_KERNEL_ADDRESS its own separate entity, and rebased the kernel aroun

svn commit: r342107 - head/sys/conf

2018-12-15 Thread Justin Hibbits
Author: jhibbits Date: Sat Dec 15 04:53:02 2018 New Revision: 342107 URL: https://svnweb.freebsd.org/changeset/base/342107 Log: powerpcspe: Don't require FPU_EMU for powerpcspe IEEE emulation Build only the necessary fpu_emu files for supporting the SPE IEEE-754 emulation exception handle

svn commit: r342563 - head/lib/msun/src

2018-12-27 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 28 01:34:08 2018 New Revision: 342563 URL: https://svnweb.freebsd.org/changeset/base/342563 Log: libm: Include float.h to get LDBL_MANT_DIG The long double aliases of double functions are only exposed as aliases if LDBL_MANT_DIG is 53 (same as DBL_MANT_DIG).

svn commit: r342671 - head/libexec/rtld-elf/powerpc64

2019-01-01 Thread Justin Hibbits
Author: jhibbits Date: Tue Jan 1 20:12:58 2019 New Revision: 342671 URL: https://svnweb.freebsd.org/changeset/base/342671 Log: rtld-elf: Fix powerpc64 TLS handling, matching powerpc's fix We need to subtract the TLS_TCB_SIZE to get to the real data pointer, since r13 points to the end of

svn commit: r342811 - head/sys/contrib/ncsw/user/env

2019-01-06 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 6 05:07:52 2019 New Revision: 342811 URL: https://svnweb.freebsd.org/changeset/base/342811 Log: dtsec: Fix formatting of addresses in translation error messages Don't clamp addresses to 8 hex digits, particularly since this is primarily used now on a 64-bit

svn commit: r342974 - in head: gnu/lib/csu lib/csu/powerpc lib/csu/powerpc64

2019-01-12 Thread Justin Hibbits
file is newly added) +++ head/lib/csu/powerpc/crtsavres.SSat Jan 12 21:29:54 2019 (r342974) @@ -0,0 +1,191 @@ +/*- + * SPDX-License-Identifier: BSD-1-Clause + * + * Copyright 2019 Justin Hibbits + * + * Redistribution and use in source and binary forms, with or without + * modific

svn commit: r342975 - in head/sys/powerpc: include powermac powernv powerpc ps3 pseries

2019-01-12 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 12 22:05:42 2019 New Revision: 342975 URL: https://svnweb.freebsd.org/changeset/base/342975 Log: powerpc: Add opaque 'private data' to interrupt vectors The XICS and XIVE need extra data beyond irq and vector. Rather than performing a separate search, it's

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

2019-01-12 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 12 22:10:31 2019 New Revision: 342976 URL: https://svnweb.freebsd.org/changeset/base/342976 Log: powerpc/pseries: Cache the IPI vector to avoid the common static lookup The IPI vector is static, and happens to be the most common interrupt by far on some syst

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

2019-01-13 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 13 02:28:37 2019 New Revision: 342984 URL: https://svnweb.freebsd.org/changeset/base/342984 Log: Add AT_HWCAP / AT_HWCAP2 to elf64_sysvec_v2. Summary: I was working on implementing ifuncs on powerpc64 elfv2 today, and I suddenly realized that the reason I

svn commit: r342985 - head/libexec/rtld-elf/powerpc64

2019-01-13 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 13 02:33:20 2019 New Revision: 342985 URL: https://svnweb.freebsd.org/changeset/base/342985 Log: Fix rtld-elf compilation warning for powerpc64 ELFv2 ABI Summary: reloc_jmpslot function parameter 'defobj' is not used when using ELFv2 ABI Submitted by:

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

2019-01-13 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 13 04:51:24 2019 New Revision: 342988 URL: https://svnweb.freebsd.org/changeset/base/342988 Log: powerpcspe: Correct SPE high-component loading Don't clobber the low part of the register restoring the high component of. This could lead to very bad behavior i

Re: svn commit: r343058 - in head/sys: compat/linuxkpi/common/src vm

2019-01-15 Thread Justin Hibbits
On Tue, 15 Jan 2019 19:33:47 + (UTC) Gleb Smirnoff wrote: > Author: glebius > Date: Tue Jan 15 19:33:47 2019 > New Revision: 343058 > URL: https://svnweb.freebsd.org/changeset/base/343058 > > Log: > Fix compilation failures on different arches that have vm_machdep.c > not aware of counter_

svn commit: r343078 - head/sys/powerpc/fpu

2019-01-15 Thread Justin Hibbits
Author: jhibbits Date: Wed Jan 16 03:52:43 2019 New Revision: 343078 URL: https://svnweb.freebsd.org/changeset/base/343078 Log: powerpc: Fix FPU fsqrt emulation special case results If fsqrts is emulated with +INF as its argument, the 0 return value causes a NULL pointer dereference, pani

svn commit: r343165 - head/usr.bin/top

2019-01-18 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 18 23:26:31 2019 New Revision: 343165 URL: https://svnweb.freebsd.org/changeset/base/343165 Log: Fix top(1) long options handling getopt_long(3) requires the long options be terminated by a NULL block. Without the terminator, an invalid long option results i

svn commit: r343168 - head/sys/contrib/ncsw/user/env

2019-01-19 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 19 04:54:12 2019 New Revision: 343168 URL: https://svnweb.freebsd.org/changeset/base/343168 Log: powerpc/dpaa: Handle DMAP virtual addresses in DPAA sendfile(2) appears to now use DMAP wherever possible. These addresses are not managed by pmap, so pmap_kex

svn commit: r343167 - in head/sys/powerpc: powerpc pseries

2019-01-19 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 19 04:47:19 2019 New Revision: 343167 URL: https://svnweb.freebsd.org/changeset/base/343167 Log: powerpc: Fix opaque irq data initialization The powerpc_intr structure is not zero-initialized, so on an invariants build would panic in the xics driver with an

svn commit: r343169 - head/sys/contrib/ncsw/user/env

2019-01-19 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 19 05:20:31 2019 New Revision: 343169 URL: https://svnweb.freebsd.org/changeset/base/343169 Log: dpaa: fix 32-bit build Book-E powerpc uses 64-bit vm_paddr_t, and 32-bit powerpc has 32-bit pointers, so gcc errors with cast to pointer from integer of differen

svn commit: r343674 - in head/sys: conf powerpc/powernv powerpc/pseries

2019-02-02 Thread Justin Hibbits
0:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powernv/xive.c Sat Feb 2 04:15:16 2019 (r343674) @@ -0,0 +1,764 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright 2019 Justin Hibbits + * + * Redistribution and use in source and

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

2019-02-04 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 5 04:47:41 2019 New Revision: 343763 URL: https://svnweb.freebsd.org/changeset/base/343763 Log: powerpc: Don't idle with the wait instruction on booke It appears idling via 'wait' on e5500 causes strange behaviors, such as top(1) simply hanging sporadically

svn commit: r343824 - in head/sys/powerpc: include ofw powerpc

2019-02-05 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 6 03:52:14 2019 New Revision: 343824 URL: https://svnweb.freebsd.org/changeset/base/343824 Log: powerpc: Bind IRQs to only one interrupt on QorIQ SoCs The QorIQ SoCs don't actually support multicast interrupts, and the references state explicitly that multi

svn commit: r343924 - head/share/mk

2019-02-08 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 9 02:04:27 2019 New Revision: 343924 URL: https://svnweb.freebsd.org/changeset/base/343924 Log: Correct the CPU target for powerpcspe The MPC8540 is actually e500v1, which doesn't have double-precision floating point support. The 8548 does, so use that as

svn commit: r343943 - head/sys/ddb

2019-02-09 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 9 21:08:19 2019 New Revision: 343943 URL: https://svnweb.freebsd.org/changeset/base/343943 Log: ddb: Print the thread's pcb in 'show thread' This can aid with debugging when a thread is running and has no backtrace. State can be estimated based on the pcb,

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

2019-02-09 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 9 21:19:53 2019 New Revision: 343944 URL: https://svnweb.freebsd.org/changeset/base/343944 Log: powerpc: Split out the e500mc idling from rest of Book-E The e500v2 and e500mc (and derivatives) have different idling procedures, so make them different functio

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

2019-02-09 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 9 23:19:33 2019 New Revision: 343946 URL: https://svnweb.freebsd.org/changeset/base/343946 Log: powerpc: Fix AIM build cpu_idle_e500mc is only used in booke, so ignore it completely in AIM. MFC after:2 weeks MFC with: r343944 Modified: head/

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

2019-02-10 Thread Justin Hibbits
Author: jhibbits Date: Sun Feb 10 20:21:20 2019 New Revision: 343970 URL: https://svnweb.freebsd.org/changeset/base/343970 Log: powerpc: Clamp MAXCPU for MPC85XXSPE kernel to 2 SoCs with e500v2 chips only have at most 2 cores, and there are no plans to release any more e500v2-based SoCs.

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

2019-02-12 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 13 03:11:12 2019 New Revision: 344083 URL: https://svnweb.freebsd.org/changeset/base/344083 Log: powerpc/booke: Use the 'tlbilx' instruction on newer cores Newer cores have the 'tlbilx' instruction, which doesn't broadcast over CoreNet. This is significantl

Re: svn commit: r343030 - in head/sys: cam conf dev/md dev/nvme fs/fuse fs/nfsclient fs/smbfs kern sys ufs/ffs vm

2019-02-13 Thread Justin Hibbits
On Tue, 15 Jan 2019 01:02:17 + (UTC) Gleb Smirnoff wrote: > Author: glebius > Date: Tue Jan 15 01:02:16 2019 > New Revision: 343030 > URL: https://svnweb.freebsd.org/changeset/base/343030 > > Log: > Allocate pager bufs from UMA instead of 80-ish mutex protected > linked list. > o In vm_

Re: svn commit: r343030 - in head/sys: cam conf dev/md dev/nvme fs/fuse fs/nfsclient fs/smbfs kern sys ufs/ffs vm

2019-02-15 Thread Justin Hibbits
On Thu, 14 Feb 2019 15:34:10 -0800 Gleb Smirnoff wrote: > Hi Justin, > > On Wed, Feb 13, 2019 at 07:24:50PM -0600, Justin Hibbits wrote: > J> This seems to break 32-bit platforms, or at least 32-bit book-e > J> powerpc, which has a limited KVA space (~500MB). It preall

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

2019-02-16 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 16 04:47:33 2019 New Revision: 344204 URL: https://svnweb.freebsd.org/changeset/base/344204 Log: powerpc/booke: Fix 32-bit build MFC after:2 weeks MFC with: 344202 Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ==

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

2019-02-16 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 16 04:16:10 2019 New Revision: 344202 URL: https://svnweb.freebsd.org/changeset/base/344202 Log: powerpc/booke: Use DMAP where possible for page copy and zeroing This avoids several locks and pmap_kenter()'s, improving performance marginally. MFC after:

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

2019-02-16 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 16 04:38:34 2019 New Revision: 344203 URL: https://svnweb.freebsd.org/changeset/base/344203 Log: powerpc/booke: depessimize MAS register updates We only need to isync before we actually use the MAS registers, so before and after the TLB read/write/sync/searc

svn commit: r344242 - in head: etc/mtree stand/powerpc/uboot usr.sbin/bsdinstall/partedit

2019-02-17 Thread Justin Hibbits
Author: jhibbits Date: Mon Feb 18 01:57:47 2019 New Revision: 344242 URL: https://svnweb.freebsd.org/changeset/base/344242 Log: powerpc/boot: Move ubldr to /boot/uboot, and make this a separate filesystem Summary: Now that mpc85xx can boot via ubldr, move ubldr to a separate filesystem,

Re: svn commit: r344567 - in head: etc/mtree include sbin sbin/veriexec

2019-02-26 Thread Justin Hibbits
On Tue, 26 Feb 2019 17:23:58 + Alexey Dokuchaev wrote: > On Tue, Feb 26, 2019 at 09:12:11AM -0800, John Baldwin wrote: > > It makes the review clickable in many mail clients which is very > > handy. > > I understand that, but then again, we don't do that for PRs and people > don't seem to

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

2019-02-26 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 27 03:30:49 2019 New Revision: 344613 URL: https://svnweb.freebsd.org/changeset/base/344613 Log: powerpc/mpc85xx: Synchronize timebase the platform correct way Summary: To safely synchronize timebase we need to disable the timebase on all cores, set timeba

svn commit: r344675 - head/sys/modules/geom/geom_flashmap

2019-02-28 Thread Justin Hibbits
Author: jhibbits Date: Thu Feb 28 23:00:47 2019 New Revision: 344675 URL: https://svnweb.freebsd.org/changeset/base/344675 Log: GEOM: Add fdt_slicer to the GEOM flashmap module for fdt-based platforms geom_flashmap depends on a slicer being available in order to do any work. On fdt platf

svn commit: r344679 - head/sys/modules/geom/geom_flashmap

2019-02-28 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 1 02:08:12 2019 New Revision: 344679 URL: https://svnweb.freebsd.org/changeset/base/344679 Log: Revert r344675 It's an incorrect approach to solve the problem. We already have a fdt/fdt_slicer module, it just needs to be wired into the build. Modified:

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

2019-02-28 Thread Justin Hibbits
, because file is newly added) +++ head/sys/powerpc/powernv/opal_async.c Fri Mar 1 02:49:47 2019 (r344683) @@ -0,0 +1,94 @@ +/*- + * Copyright (C) 2019 Justin Hibbits + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the

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

2019-02-28 Thread Justin Hibbits
al_flash.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powernv/opal_flash.c Fri Mar 1 04:36:55 2019 (r344687) @@ -0,0 +1,372 @@ +/*- + * Copyright (c) 2019 Just

svn commit: r344716 - in head/sys: powerpc/powerpc sys

2019-03-01 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 2 01:51:41 2019 New Revision: 344716 URL: https://svnweb.freebsd.org/changeset/base/344716 Log: powerpc: Scale intrcnt by mp_ncpus On very large powerpc64 systems (2x22x4 power9) it's very easy to run out of available IRQs and crash the system at boot. Sca

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

2019-03-02 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 2 20:59:18 2019 New Revision: 344729 URL: https://svnweb.freebsd.org/changeset/base/344729 Log: powerpc/booke: Depessimize MAS register updates even more Remove isyncs between MAS register updates in the TLB miss handler, since it's only needed before the T

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

2019-03-02 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 2 21:11:46 2019 New Revision: 344730 URL: https://svnweb.freebsd.org/changeset/base/344730 Log: powerpc: fix 'show spr' for ELFv1 powerpc64 Update and flush the right cache range for the ELFv1 ABI. MFC after:1 week Modified: head/sys/powerpc/power

svn commit: r344791 - head/contrib/binutils/opcodes

2019-03-04 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 5 04:16:50 2019 New Revision: 344791 URL: https://svnweb.freebsd.org/changeset/base/344791 Log: Fix binutils compilation error with Clang 8 Summary: This change fixes the following compilation error when using clang 8 to cross compile base to powerpc64:

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

2019-03-06 Thread Justin Hibbits
Author: jhibbits Date: Thu Mar 7 04:43:08 2019 New Revision: 344871 URL: https://svnweb.freebsd.org/changeset/base/344871 Log: powerpc: Save stack pointer in savectx This allows 'show acttrace' to show backtrace on processes currently running on CPUs. Reported by: Brandon Bergren

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

2019-03-07 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 8 03:59:53 2019 New Revision: 344915 URL: https://svnweb.freebsd.org/changeset/base/344915 Log: powerpc: Fix cpufreq statement scoping The second statements on the lines are not guarded by the `if' condition. This triggers a warning with newer gcc. It's re

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

2019-03-07 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 8 04:20:33 2019 New Revision: 344916 URL: https://svnweb.freebsd.org/changeset/base/344916 Log: powerpc64: Fix early exit with invalid kernel SLB entries The check for early exit should be checking the SLB entry itself. As currently written it was checking

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

2019-03-08 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 9 03:24:39 2019 New Revision: 344961 URL: https://svnweb.freebsd.org/changeset/base/344961 Log: powerpc: Print trap frame address in ddb backtraces Registers visible from 'show reg' don't always match the registers from the offending trap frame. Knowing th

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

2019-03-08 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 9 03:10:56 2019 New Revision: 344958 URL: https://svnweb.freebsd.org/changeset/base/344958 Log: powerpc: Print data address register on alignment exceptions MFC after:1 week Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/

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

2019-03-08 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 9 03:18:37 2019 New Revision: 344960 URL: https://svnweb.freebsd.org/changeset/base/344960 Log: powerpc: Print trap frame address for fatal traps MFC after:1 week Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c

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

2019-03-10 Thread Justin Hibbits
On Sat, 9 Mar 2019 08:50:58 + Alexey Dokuchaev wrote: > On Sat, Mar 09, 2019 at 03:18:38AM +0000, Justin Hibbits wrote: > > New Revision: 344960 > > URL: https://svnweb.freebsd.org/changeset/base/344960 > > > > Log: > > powerpc: Print trap frame address

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

2019-03-11 Thread Justin Hibbits
On Mon, 11 Mar 2019 10:02:00 -0700 John Baldwin wrote: > On 3/10/19 3:16 PM, Justin Hibbits wrote: > > On Sat, 9 Mar 2019 08:50:58 + > > Alexey Dokuchaev wrote: > > > >> On Sat, Mar 09, 2019 at 03:18:38AM +, Justin Hibbits wrote: > >>

Re: svn commit: r267660 - head/sys/dev/firewire

2014-06-19 Thread Justin Hibbits
On Fri, 20 Jun 2014 01:45:03 + (UTC) Alexander Kabaev wrote: > Author: kan > Date: Fri Jun 20 01:45:03 2014 > New Revision: 267660 > URL: http://svnweb.freebsd.org/changeset/base/267660 > > Log: > Set target->sbp field to valid value when sbp device is created. > > The sbp_cam_detach_

svn commit: r267697 - head/sys/dev/adb

2014-06-20 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 21 00:53:56 2014 New Revision: 267697 URL: http://svnweb.freebsd.org/changeset/base/267697 Log: No need to check if devd is running before posting an event. Modified: head/sys/dev/adb/adb_buttons.c head/sys/dev/adb/adb_kbd.c Modified: head/sys/dev/adb/adb_but

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

2014-07-02 Thread Justin Hibbits
Author: jhibbits Date: Thu Jul 3 06:52:26 2014 New Revision: 268207 URL: http://svnweb.freebsd.org/changeset/base/268207 Log: Fix a bug in hwpmc(4) callchain retrieval, for both user and kernel. The array index for the callchain is getting double-incremented -- both in the loop and the s

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

2014-08-07 Thread Justin Hibbits
Author: jhibbits Date: Fri Aug 8 06:22:32 2014 New Revision: 269701 URL: http://svnweb.freebsd.org/changeset/base/269701 Log: Set the si_code appropriately for exception-caused signals. LLDB checks the si_code, and aborts if a code isn't known. MFC after:2 weeks Relnotes: ye

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

2013-04-24 Thread Justin Hibbits
Author: jhibbits Date: Thu Apr 25 00:39:43 2013 New Revision: 249864 URL: http://svnweb.freebsd.org/changeset/base/249864 Log: Introduce kernel coredumps to ppc32 AIM. Leeched from the booke code. MFC after:2 weeks Modified: head/sys/powerpc/aim/mmu_oea.c Modified: head/sys/powerpc

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

2013-04-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Apr 26 05:18:18 2013 New Revision: 249918 URL: http://svnweb.freebsd.org/changeset/base/249918 Log: Remove a comment that shouldn't have gone in. X-MFC-with: r249864 Modified: head/sys/powerpc/aim/mmu_oea.c Modified: head/sys/powerpc/aim/mmu_oea.c ==

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

2013-06-03 Thread Justin Hibbits
Author: jhibbits Date: Tue Jun 4 00:40:26 2013 New Revision: 251356 URL: http://svnweb.freebsd.org/changeset/base/251356 Log: Pad the PCPU MD struct, to satisfy an assert added with the projects/counters branch import. PR: ports/179173,ports/179164 Modified: head/sys/powerpc

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

2013-06-23 Thread Justin Hibbits
Author: jhibbits Date: Sun Jun 23 14:20:54 2013 New Revision: 252115 URL: http://svnweb.freebsd.org/changeset/base/252115 Log: Cache the Open Firmware CPU properties at attach time, so we don't always enter it at runtime to get static data. Modified: head/sys/powerpc/ofw/ofw_cpu.c Modified

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

2014-01-25 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 25 22:50:42 2014 New Revision: 261173 URL: http://svnweb.freebsd.org/changeset/base/261173 Log: MPC74xx should not fall through, to the error case. MFC after:1 week Modified: head/sys/dev/hwpmc/hwpmc_powerpc.c Modified: head/sys/dev/hwpmc/hwpmc_powerpc

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

2014-01-28 Thread Justin Hibbits
Author: jhibbits Date: Wed Jan 29 05:58:08 2014 New Revision: 261258 URL: http://svnweb.freebsd.org/changeset/base/261258 Log: Use a loop of dcbz, instead of calling bzero() to zero a page. This matches what is done in mmu_oea64.c. MFC after:1 month Modified: head/sys/powerpc/aim/

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

2014-01-29 Thread Justin Hibbits
Author: jhibbits Date: Wed Jan 29 15:50:01 2014 New Revision: 261269 URL: http://svnweb.freebsd.org/changeset/base/261269 Log: Micro-optimize 8-bit blanking. This is the same as in ofw_syscons. Reviewed by: ray MFC after:1 week Modified: head/sys/dev/vt/hw/ofwfb/ofwfb.c (conten

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

2014-01-30 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 31 03:55:34 2014 New Revision: 261309 URL: http://svnweb.freebsd.org/changeset/base/261309 Log: Unbreak non-SMP builds. This was broken by r259284. Also, reorganize the code introduced in that revision a bit. Reviewed by: nwhitehorn MFC after:3 week

svn commit: r261342 - in head: lib/libpmc sys/conf sys/dev/hwpmc sys/powerpc/include sys/sys

2014-01-31 Thread Justin Hibbits
powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc); extern int powerpc_get_config(int cpu, int ri, struct pmc **ppm); Added: head/sys/dev/hwpmc/hwpmc_ppc970.c == --- /dev/null 00:00:00 1970

svn commit: r261420 - head/sys/modules/hwpmc

2014-02-02 Thread Justin Hibbits
Author: jhibbits Date: Mon Feb 3 01:16:32 2014 New Revision: 261420 URL: http://svnweb.freebsd.org/changeset/base/261420 Log: Add missing file to Makefile. MFC after:1 month X-MFC-with: 261342 Modified: head/sys/modules/hwpmc/Makefile Modified: head/sys/modules/hwpmc/Makefile =

svn commit: r261421 - in head/sys: conf dev/iicbus powerpc/conf

2014-02-02 Thread Justin Hibbits
Andreas Tobler + * Copyright (c) 2014 Justin Hibbits + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above

svn commit: r261422 - head/contrib/binutils/gas/config

2014-02-02 Thread Justin Hibbits
Author: jhibbits Date: Mon Feb 3 01:45:07 2014 New Revision: 261422 URL: http://svnweb.freebsd.org/changeset/base/261422 Log: Make gas accept any PowerPC instruction by default. This is a local change, and will not be submitted upstream. Discussed with: nwhitehorn,rdivacky MFC a

Re: svn commit: r262466 - head/sys/cddl/dev/systrace

2014-02-25 Thread Justin Hibbits
I think this broke powerpc building. I see the following build failure: cc1: warnings being treated as errors /home/chmeee/freebsd/head/sys/modules/dtrace/systrace/../../../cddl/dev/systrace/systrace.c: In function 'systrace_probe': /home/chmeee/freebsd/head/sys/modules/dtrace/systrace/../../../c

Re: svn commit: r262466 - head/sys/cddl/dev/systrace

2014-02-26 Thread Justin Hibbits
On Tue, Feb 25, 2014 at 5:35 PM, Mark Johnston wrote: > On Tue, Feb 25, 2014 at 03:17:56PM -0800, Justin Hibbits wrote: >> I think this broke powerpc building. I see the following build failure: >> >> cc1: warnings being treated as errors >> /home/chmeee/freebsd/head/

Re: svn commit: r262466 - head/sys/cddl/dev/systrace

2014-02-26 Thread Justin Hibbits
On Wed, Feb 26, 2014 at 9:52 AM, Justin Hibbits wrote: > On Tue, Feb 25, 2014 at 5:35 PM, Mark Johnston wrote: >> On Tue, Feb 25, 2014 at 03:17:56PM -0800, Justin Hibbits wrote: >>> I think this broke powerpc building. I see the following build failure: >>> >>

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

2014-02-26 Thread Justin Hibbits
Author: jhibbits Date: Thu Feb 27 04:45:29 2014 New Revision: 262547 URL: http://svnweb.freebsd.org/changeset/base/262547 Log: Fix callchain capture for hwpmc(4). While here, some style(9) fixes, too. MFC after:2 weeks Modified: head/sys/dev/hwpmc/hwpmc_powerpc.c Modified: head/sys

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

2014-03-20 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 21 04:45:57 2014 New Revision: 263464 URL: http://svnweb.freebsd.org/changeset/base/263464 Log: Mask out SRR1 bits that aren't exported to the MSR. This appears to fix a strange condition with X on 32-bit PowerBooks I observed, caused by one of these bits g

Re: svn commit: r261342 - in head: lib/libpmc sys/conf sys/dev/hwpmc sys/powerpc/include sys/sys

2014-03-23 Thread Justin Hibbits
On Mon, 24 Mar 2014 05:44:42 + Alexey Dokuchaev wrote: > On Sat, Feb 01, 2014 at 02:03:51AM +0000, Justin Hibbits wrote: > > New Revision: 261342 > > URL: http://svnweb.freebsd.org/changeset/base/261342 > > > > Log: > > Add hwpmc(4) support for the Pow

Re: svn commit: r261342 - in head: lib/libpmc sys/conf sys/dev/hwpmc sys/powerpc/include sys/sys

2014-03-25 Thread Justin Hibbits
On Tue, Mar 25, 2014 at 2:06 AM, Alexey Dokuchaev wrote: > On Sun, Mar 23, 2014 at 10:58:18PM -0700, Justin Hibbits wrote: >> On Mon, 24 Mar 2014 05:44:42 + Alexey Dokuchaev wrote: >> > Hmm, -CURRENT does not build for me after this commit apparently; >> > tak

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

2014-03-25 Thread Justin Hibbits
On Tue, Mar 25, 2014 at 3:49 PM, Warner Losh wrote: > Author: imp > Date: Tue Mar 25 22:49:33 2014 > New Revision: 263752 > URL: http://svnweb.freebsd.org/changeset/base/263752 > > Log: > Define PSL_SRR1_MASK for BOOK-E too so MPC85XX compiles again. > > Modified: > head/sys/powerpc/include/ps

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

2014-04-05 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 6 06:18:43 2014 New Revision: 264189 URL: http://svnweb.freebsd.org/changeset/base/264189 Log: Correct the SRR1 mask, it's 10-15 not 10-11. X-MFC-with: r263464,r263752 Modified: head/sys/powerpc/include/psl.h Modified: head/sys/powerpc/include/psl.h ===

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

2014-04-06 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 6 21:48:45 2014 New Revision: 264205 URL: http://svnweb.freebsd.org/changeset/base/264205 Log: Fix the ATI backlight driver off/on handling. Now this driver works correctly with the ATI Radeon 9700 in the PowerBook G4 1.67GHz. Code shamelessly taken in spi

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

2014-04-06 Thread Justin Hibbits
Author: jhibbits Date: Sun Apr 6 23:57:19 2014 New Revision: 264207 URL: http://svnweb.freebsd.org/changeset/base/264207 Log: Clear the backlight level when it's turned off. Also, reduce the delay times to less conservative values, also found in the radeonkms driver. MFC after:2 we

svn commit: r273009 - in head: etc/devd sys/powerpc/powermac

2014-10-12 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 12 19:12:48 2014 New Revision: 273009 URL: https://svnweb.freebsd.org/changeset/base/273009 Log: Add an AC line monitor so power_profile can work Summary: Add a polling loop (1Hz) to monitor the battery and AC status, to notify devd like ACPI does for powe

Re: svn commit: r273009 - in head: etc/devd sys/powerpc/powermac

2014-10-12 Thread Justin Hibbits
On Sun, 12 Oct 2014 19:12:49 + (UTC) Justin Hibbits wrote: > Author: jhibbits > Date: Sun Oct 12 19:12:48 2014 > New Revision: 273009 > URL: https://svnweb.freebsd.org/changeset/base/273009 > > Log: > Add an AC line monitor so power_profile can work > >

svn commit: r273016 - head/sys/dev/iicbus

2014-10-12 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 12 23:48:55 2014 New Revision: 273016 URL: https://svnweb.freebsd.org/changeset/base/273016 Log: Check error return from reading integer part of temperature. There's a very remote, but possible, chance that the integer part read will fail, but the fraction r

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

2014-10-14 Thread Justin Hibbits
Author: jhibbits Date: Wed Oct 15 02:31:14 2014 New Revision: 273113 URL: https://svnweb.freebsd.org/changeset/base/273113 Log: Add a sysctl to allow disabling the monitoring thread. Summary: If a user uses powerd, or doesn't want to use the cycles monitoring, they can now suspend the m

svn commit: r273156 - in head/sys: conf dev/iicbus powerpc/conf powerpc/powermac

2014-10-15 Thread Justin Hibbits
ewly added) +++ head/sys/dev/iicbus/adm1030.c Thu Oct 16 01:32:22 2014 (r273156, copy of r273153, head/sys/powerpc/powermac/windtunnel.c) @@ -0,0 +1,240 @@ +/*- + * Copyright (c) 2011 Justin Hibbits + * Copyright (c) 2010 Andreas Tobler + * All rights reserved. + * + * Redistribution a

svn commit: r273570 - head/sys/cddl/dev/fbt/powerpc

2014-10-23 Thread Justin Hibbits
Author: jhibbits Date: Fri Oct 24 03:33:01 2014 New Revision: 273570 URL: https://svnweb.freebsd.org/changeset/base/273570 Log: Three updates to PowerPC FBT: * Use a constant to define the number of stack frames in a probe exception. * Only allow function symbols in powerpc64 ('.' prefixe

svn commit: r273571 - head/sys/cddl/dev/fbt/powerpc

2014-10-23 Thread Justin Hibbits
Author: jhibbits Date: Fri Oct 24 03:34:21 2014 New Revision: 273571 URL: https://svnweb.freebsd.org/changeset/base/273571 Log: Whitespace X-MFC-with: r273570 MFC after:1 week Modified: head/sys/cddl/dev/fbt/powerpc/fbt_isa.c Modified: head/sys/cddl/dev/fbt/powerpc/fbt_isa.c ===

<    3   4   5   6   7   8   9   10   11   12   >