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

2017-11-03 Thread Justin Hibbits
Author: jhibbits Date: Sat Nov 4 00:47:21 2017 New Revision: 325375 URL: https://svnweb.freebsd.org/changeset/base/325375 Log: Stop passing -me500 to the assembler for Book-E kernels We already pass -many to the assembler, and -me500 drops 64-bit instruction handling, for some reason onl

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

2017-11-04 Thread Justin Hibbits
325421) @@ -0,0 +1,1917 @@ +/*- + * Copyright (c) 2009-2012 Alexander Motin + * Copyright (c) 2017 Justin Hibbits + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + *

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

2017-11-05 Thread Justin Hibbits
Author: jhibbits Date: Sun Nov 5 22:09:59 2017 New Revision: 325453 URL: https://svnweb.freebsd.org/changeset/base/325453 Log: Fix an off-by-one error missed in the initial commit of this driver When the segment count is > 16 it spills into an 'indirect descriptor list', which immediatel

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

2017-11-05 Thread Justin Hibbits
Author: jhibbits Date: Mon Nov 6 05:09:18 2017 New Revision: 325468 URL: https://svnweb.freebsd.org/changeset/base/325468 Log: Set the PRD extension list base address in little endian All data accesses with the SATA controller are little endian. This was missed when writing the extensio

svn commit: r325525 - in head/sys/powerpc: booke powerpc

2017-11-07 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 8 01:23:37 2017 New Revision: 325525 URL: https://svnweb.freebsd.org/changeset/base/325525 Log: Clear the WE bit in C code rather than the asm According to EREF rlwinm is supposed to clear the upper 32 bits of the register of 64-bit cores. However, from ex

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

2017-11-07 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 8 01:26:44 2017 New Revision: 325526 URL: https://svnweb.freebsd.org/changeset/base/325526 Log: Add the ISEL feature macro for those powerpc cores that have it This is mostly for completeness, we don't currently use it for anything else. Modified: head/sys

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

2017-11-07 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 8 01:28:20 2017 New Revision: 325527 URL: https://svnweb.freebsd.org/changeset/base/325527 Log: DS1307: Add the mcp7941x enable bit Summary: Existing code recognizes the mcp7941x RTC, but this RTC has an enable bit at the same location as the "Clock Halt"

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

2017-11-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Nov 10 04:14:48 2017 New Revision: 325628 URL: https://svnweb.freebsd.org/changeset/base/325628 Log: Book-E pmap_mapdev_attr() improvements * Check TLB1 in all mapdev cases, in case the memattr matches an existing mapping (doesn't need to be MAP_DEFAULT). *

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

2017-11-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Nov 10 04:23:58 2017 New Revision: 325629 URL: https://svnweb.freebsd.org/changeset/base/325629 Log: Properly initialize the full md_page structure Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c =

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

2017-11-13 Thread Justin Hibbits
Author: jhibbits Date: Tue Nov 14 03:21:39 2017 New Revision: 325789 URL: https://svnweb.freebsd.org/changeset/base/325789 Log: Use the correct board name for the Ubiquiti Unifi Security Gateway Modified: head/sys/contrib/octeon-sdk/cvmx-app-init.h head/sys/contrib/octeon-sdk/cvmx-helper-bo

svn commit: r325790 - head/sys/mips/beri

2017-11-13 Thread Justin Hibbits
Author: jhibbits Date: Tue Nov 14 03:23:46 2017 New Revision: 325790 URL: https://svnweb.freebsd.org/changeset/base/325790 Log: Convert BERI to use ofw_parse_bootargs() Summary: ofw_parse_bootargs() was added in r306065 as an attempt to unify the various copies of the same code. This s

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

2017-11-13 Thread Justin Hibbits
Author: jhibbits Date: Tue Nov 14 03:53:15 2017 New Revision: 325791 URL: https://svnweb.freebsd.org/changeset/base/325791 Log: Expand the Freescale PCIe root complex driver with the ofw_pcib_pci The interrupt map wasn't being allocated properly, preventing IRQs from being allocated to ch

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

2017-11-16 Thread Justin Hibbits
Author: jhibbits Date: Fri Nov 17 04:10:52 2017 New Revision: 325926 URL: https://svnweb.freebsd.org/changeset/base/325926 Log: Stop special casing 32-bit AIM in memory parsing There's no need to special case 32-bit AIM to short circuit processing. Some AIM CPUs can handle 36 bit addresse

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

2017-11-16 Thread Justin Hibbits
Author: jhibbits Date: Fri Nov 17 04:29:32 2017 New Revision: 325927 URL: https://svnweb.freebsd.org/changeset/base/325927 Log: Add jumbo frame support to dtsec(4) MFC after:2 weeks Modified: head/sys/dev/dpaa/if_dtsec.c Modified: head/sys/dev/dpaa/if_dtsec.c ===

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

2017-11-19 Thread Justin Hibbits
Author: jhibbits Date: Mon Nov 20 04:32:01 2017 New Revision: 326004 URL: https://svnweb.freebsd.org/changeset/base/326004 Log: Eliminate 1 XX_VirtToPhys() and 2 XX_PhysToVirt() calls from if_dtsec(4) XX_VirtToPhys(), by way of pmap_kextract(), is an expensive operation. Profiling via dtr

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

2017-11-20 Thread Justin Hibbits
Author: jhibbits Date: Tue Nov 21 03:12:16 2017 New Revision: 326045 URL: https://svnweb.freebsd.org/changeset/base/326045 Log: Check the page table before TLB1 in pmap_kextract() The vast majority of pmap_kextract() calls are looking for a physical memory address, not a device address.

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

2017-11-21 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 22 01:53:59 2017 New Revision: 326083 URL: https://svnweb.freebsd.org/changeset/base/326083 Log: PowerPC has 12 artificial frames for the profiler It may need to be different between AIM and Book-E, this was tested only on Book-E (64- and 32-bit) MFC af

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

2017-11-26 Thread Justin Hibbits
Author: jhibbits Date: Sun Nov 26 20:30:02 2017 New Revision: 326236 URL: https://svnweb.freebsd.org/changeset/base/326236 Log: Synchronize TLB1 mappings when created This allows modules creating mappings to be loaded post-boot, after SMP has started. Without this, the TLB1 mappings can

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

2020-02-05 Thread Justin Hibbits
Author: jhibbits Date: Thu Feb 6 01:25:30 2020 New Revision: 357607 URL: https://svnweb.freebsd.org/changeset/base/357607 Log: powerpc: Fix altivec disabling in set_mcontext() We somewhat blindly copy the srr1 from the new context to the trap frame, but disable FPU and VSX unconditionall

svn commit: r358093 - head/sys/powerpc/amigaone

2020-02-18 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 19 03:39:11 2020 New Revision: 358093 URL: https://svnweb.freebsd.org/changeset/base/358093 Log: powerpc/amigaone: Fix license header formatting on cpld files This should've been fixed before initial commit, but wasn't. Not even sure how it happened in the

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

2020-02-21 Thread Justin Hibbits
Author: jhibbits Date: Sat Feb 22 01:31:06 2020 New Revision: 358234 URL: https://svnweb.freebsd.org/changeset/base/358234 Log: powerpc/booke: Fix handling of pvh_global_lock and pmap lock ptbl_alloc() is expected to return with the pvh_global_lock and pmap lock held. However, it will re

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

2020-02-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 25 01:40:22 2020 New Revision: 358305 URL: https://svnweb.freebsd.org/changeset/base/358305 Log: powerpc/booke: Use a pseudo-DMAP for the device mappings on booke64 Since powerpc64 has such a large virtual address space, significantly larger than its physica

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

2020-02-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Feb 25 02:42:43 2020 New Revision: 358306 URL: https://svnweb.freebsd.org/changeset/base/358306 Log: Unbreak the 32-bit powerpc builds Force unsigned integer usage by casting to vm_offset_t, to avoid integer overflow, from r358305 Modified: head/sys/powerpc/b

svn commit: r358431 - head/sys/dev/uart

2020-02-28 Thread Justin Hibbits
Author: jhibbits Date: Fri Feb 28 15:59:35 2020 New Revision: 358431 URL: https://svnweb.freebsd.org/changeset/base/358431 Log: Add Denverton UART PCI ID MFC after:3 days Sponsored by: Juniper Networks, Inc Modified: head/sys/dev/uart/uart_bus_pci.c Modified: head/sys/dev/uart/uar

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

2020-03-02 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 3 03:22:00 2020 New Revision: 358565 URL: https://svnweb.freebsd.org/changeset/base/358565 Log: powerpc/powernv: powernv_node_numa_domain() fix non-NUMA case If NUMA is not enabled in the kernel config, or is disabled at boot, this function should just retu

svn commit: r358595 - head/sys/dev/ismt

2020-03-03 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 3 22:23:56 2020 New Revision: 358595 URL: https://svnweb.freebsd.org/changeset/base/358595 Log: Add Atom C3000 (Denverton) SMT PCI ID MFC after:3 days Sponsored by: Juniper Networks, Inc Modified: head/sys/dev/ismt/ismt.c Modified: head/sys/dev/ismt

svn commit: r358619 - head/share/man/man4

2020-03-04 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 4 14:56:32 2020 New Revision: 358619 URL: https://svnweb.freebsd.org/changeset/base/358619 Log: Update ismt(4) man page for r358595. Submitted by: Dmitry Luhtionov X-MFC-With: r358595 Sponsored by: Juniper Networks, Inc Modified: head/share/man/man4/

svn commit: r358688 - head/lib/libc/powerpc64/string

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 01:45:03 2020 New Revision: 358688 URL: https://svnweb.freebsd.org/changeset/base/358688 Log: powerpc/powerpc64: Enforce natural alignment in memcpy Summary: POWER architecture CPUs (Book-S) require natural alignment for cache-inhibited storage accesses

svn commit: r358689 - head/sys/dev/mfi

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 01:50:15 2020 New Revision: 358689 URL: https://svnweb.freebsd.org/changeset/base/358689 Log: Fix a mistaken conditional in mfi_tbolt_send_frame() As written, the condition of (cdb[0] != 0x28 || cdb[0] != 0x2A) will always be true, since if it's one, it's

svn commit: r358690 - head/lib/libc/powerpc64/string

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 02:30:04 2020 New Revision: 358690 URL: https://svnweb.freebsd.org/changeset/base/358690 Log: Finish revert of r358672, missed in r358688. Manual reverts never succeed correctly. Reported by: luporl Modified: head/lib/libc/powerpc64/string/bcopy_re

svn commit: r358691 - head/lib/libc/powerpc64/string

2020-03-05 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 6 03:46:48 2020 New Revision: 358691 URL: https://svnweb.freebsd.org/changeset/base/358691 Log: powerpc/memcpy: Don't predict the src and dst will be misaligned Predicting misalignment will pessimize the expected common case. Don't predict true or false in

svn commit: r358729 - head/share/mk

2020-03-06 Thread Justin Hibbits
Author: jhibbits Date: Sat Mar 7 03:58:58 2020 New Revision: 358729 URL: https://svnweb.freebsd.org/changeset/base/358729 Log: compat: Allow explicit overriding of COMPAT_ARCH and COMPAT_CPUTYPE Summary: Allow src.conf to override the inferred COMPAT_ARCH and COMPAT_CPUTYPE variables,

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

2020-03-09 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 10 03:30:11 2020 New Revision: 358828 URL: https://svnweb.freebsd.org/changeset/base/358828 Log: powerpc/booke: Split out 32- and 64- bit pmap details from main body Summary: This is largely a straight-forward cleave of the 32-bit and 64-bit page table spe

svn commit: r358928 - in head/sys/powerpc: booke powerpc

2020-03-12 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 13 01:27:37 2020 New Revision: 358928 URL: https://svnweb.freebsd.org/changeset/base/358928 Log: powerpc: Simplify _nodrop variants of FPU and vector register saves No need for an extra temporary. It doesn't even help with readability. Suggested by: kib

svn commit: r359058 - in head/sys: conf powerpc/booke powerpc/conf powerpc/include powerpc/powerpc

2020-03-17 Thread Justin Hibbits
Author: jhibbits Date: Wed Mar 18 01:09:43 2020 New Revision: 359058 URL: https://svnweb.freebsd.org/changeset/base/359058 Log: powerpc: Axe PPC4xx support. Summary: The support was added almost a decade ago, and never completed. Just axe it. It was also inadvertently broken 5 years a

svn commit: r359279 - head/sys/dev/ismt

2020-03-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 24 18:35:33 2020 New Revision: 359279 URL: https://svnweb.freebsd.org/changeset/base/359279 Log: ismt: Fix ISMT_DESC_ADDR_RW macro, slave addresses are already left-shifted Reverts r293369. The macro was orginally correct, since our SMBus framework, unlike

svn commit: r359285 - head/sys/dev/ichwd

2020-03-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 24 21:28:48 2020 New Revision: 359285 URL: https://svnweb.freebsd.org/changeset/base/359285 Log: ichwd: Add Atom C3000 watchdog ID. MFC after:3 days Sponsored by: Juniper Networks, Inc Modified: head/sys/dev/ichwd/ichwd.c head/sys/dev/ichwd/ichwd.h

svn commit: r359444 - head/share/mk

2020-03-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Mar 30 16:24:05 2020 New Revision: 359444 URL: https://svnweb.freebsd.org/changeset/base/359444 Log: powerpc: --secure-plt only needs to pass to ld.bfd, not ld.lld ld.lld only supports secure-plt for powerpc, so no need to pass the argument in. Modified: head

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

2020-03-30 Thread Justin Hibbits
Author: jhibbits Date: Mon Mar 30 16:32:55 2020 New Revision: 359445 URL: https://svnweb.freebsd.org/changeset/base/359445 Log: powerpc/pmap: Replace a logical TAILQ_FOREACH_SAFE with the real thing No functional change, just cleanup. Modified: head/sys/powerpc/booke/pmap.c Modified: he

svn commit: r359614 - in head/sys: conf powerpc/amigaone

2020-04-03 Thread Justin Hibbits
Fri Apr 3 20:45:16 2020 (r359614) @@ -0,0 +1,401 @@ +/*- + * Copyright (c) 2020 Justin Hibbits + * + * 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

svn commit: r359756 - head/sys/dev/mii

2020-04-09 Thread Justin Hibbits
Author: jhibbits Date: Thu Apr 9 21:24:17 2020 New Revision: 359756 URL: https://svnweb.freebsd.org/changeset/base/359756 Log: Add support for BCM54618SE PHY MFC after:3 days Sponsored by: Juniper Networks, Inc Modified: head/sys/dev/mii/brgphy.c head/sys/dev/mii/miidevs Modifi

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

2020-04-10 Thread Justin Hibbits
booke/pmap_32.c == --- head/sys/powerpc/booke/pmap_32.cFri Apr 10 23:58:07 2020 (r359790) +++ head/sys/powerpc/booke/pmap_32.cSat Apr 11 00:12:34 2020 (r359791) @@ -1,6 +1,7 @@ /*- * SPDX

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

2020-04-10 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 11 00:16:50 2020 New Revision: 359792 URL: https://svnweb.freebsd.org/changeset/base/359792 Log: powerpc/booke: Add pte_find_next() to find the next in-use PTE Summary: Iterating over VM_MIN_ADDRESS->VM_MAXUSER_ADDRESS can take a very long time iterating o

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

2020-04-10 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 11 00:17:55 2020 New Revision: 359793 URL: https://svnweb.freebsd.org/changeset/base/359793 Log: powerpc/booke: Use power-of-two mappings in 64-bit pmap_mapdev Summary: This reduces the precious TLB1 entry consumption (64 possible in existing 64-bit cores)

svn commit: r228225 - head/share/misc

2011-12-03 Thread Justin Hibbits
ran C.\njchand jeff [label="Jeff Roberson\nj...@freebsd.org\n2002/02/21"] jh [label="Jaakko Heinonen\n...@freebsd.org\n2009/10/02"] jhb [label="John Baldwin\n...@freebsd.org\n1999/08/23"] +jhibbits [label="Justin Hibbits\njhibb...@freebsd.org\n2011/11/3

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

2011-12-04 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 5 00:12:10 2011 New Revision: 228270 URL: http://svn.freebsd.org/changeset/base/228270 Log: Add a devd notification for closing/opening the lid on PowerBooks and iBooks. Approved by: nwhitehorn (mentor) Modified: head/etc/devd/apple.conf head/sys/powerp

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

2011-12-05 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 5 14:13:21 2011 New Revision: 228277 URL: http://svn.freebsd.org/changeset/base/228277 Log: Fix style(9) issues from r228270. Approved by: nwhitehorn (mentor) Modified: head/etc/devd/apple.conf head/sys/powerpc/powermac/pmu.c Modified: head/etc/devd/ap

svn commit: r228869 - in head: lib/libpmc sys/dev/hwpmc sys/powerpc/aim sys/powerpc/include sys/sys

2011-12-24 Thread Justin Hibbits
ev = tsc_event_table; evfence = tsc_event_table + PMC_EVENT_TABLE_SIZE(tsc); Modified: head/sys/dev/hwpmc/hwpmc_powerpc.c == --- head/sys/dev/hwpmc/hwpmc_powerpc.c Sat Dec 24 19:01:31 2011 (r228868) +++ head/sys/dev/hwpmc/hwpmc_

Re: svn commit: r228874 - head/sys/dev/hwpmc

2011-12-26 Thread Justin Hibbits
On Dec 26, 2011, at 1:23 AM, Doug Barton wrote: On 12/25/2011 06:29, Bjoern A. Zeeb wrote: Author: bz Date: Sun Dec 25 14:29:36 2011 New Revision: 228874 URL: http://svn.freebsd.org/changeset/base/228874 Log: Quite the tinderbox for the holidays. Remove the assert[1]. Shouldn't "Why it's O

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

2012-01-12 Thread Justin Hibbits
Author: jhibbits Date: Thu Jan 12 22:21:20 2012 New Revision: 230035 URL: http://svn.freebsd.org/changeset/base/230035 Log: Add PWM monitoring sysctl to G4 MDD (Windtunnel) fan driver. While there, clean up some style nits. Approved by: nwhitehorn (mentor) MFC after:3 days Modif

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

svn commit: r345239 - head/sys/dev/fdt

2019-03-17 Thread Justin Hibbits
Author: jhibbits Date: Sun Mar 17 04:33:17 2019 New Revision: 345239 URL: https://svnweb.freebsd.org/changeset/base/345239 Log: fdt: Explicitly mark fdt_slicer as dependent on geom_flashmap Without this dependency relationship, the linker doesn't find the flash_register_slicer() function,

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

2019-03-21 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 22 01:43:31 2019 New Revision: 345402 URL: https://svnweb.freebsd.org/changeset/base/345402 Log: powerpc64: Handle the modern (2.05+) implementaiton of tlbie By happenstance gcc4 puts 'vpn' into r0 in all uses of TLBIE(), but modern gcc does not. Also, the

svn commit: r345426 - in head/sys: conf powerpc/aim

2019-03-22 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 22 22:14:14 2019 New Revision: 345426 URL: https://svnweb.freebsd.org/changeset/base/345426 Log: powerpc: Re-merge isa3 HPT with moea64 native HPT r345402 fixed the bug that led to the split of the ISA 3.0 HPT handling from the existing manager. The cause o

svn commit: r345435 - in head/sys: conf powerpc/include powerpc/powernv powerpc/powerpc

2019-03-23 Thread Justin Hibbits
/opal_hmi.c Sat Mar 23 03:23:20 2019 (r345435) @@ -0,0 +1,97 @@ +/*- + * Copyright (c) 2019 Justin Hibbits + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions

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

2019-03-25 Thread Justin Hibbits
Author: jhibbits Date: Tue Mar 26 02:53:35 2019 New Revision: 345520 URL: https://svnweb.freebsd.org/changeset/base/345520 Log: powerpc64: Micro-optimize moea64 native pmap tlbie * Cache moea64_need_lock in a local variable; gcc generates slightly better code this way, it doesn't need t

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

2019-03-28 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 29 02:11:48 2019 New Revision: 345674 URL: https://svnweb.freebsd.org/changeset/base/345674 Log: powerpc: Remove now-obsolete P9H MMU name Modified: head/sys/powerpc/include/mmuvar.h Modified: head/sys/powerpc/include/mmuvar.h ==

svn commit: r345676 - in head/sys/powerpc: aim booke ofw powernv powerpc

2019-03-28 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 29 02:38:30 2019 New Revision: 345676 URL: https://svnweb.freebsd.org/changeset/base/345676 Log: powerpc64: Use medium code model in asm files for TOC references Summary: With a sufficiently large TOC, it's possible to index out of range, as the immediate

svn commit: r345678 - head/sys/conf

2019-03-28 Thread Justin Hibbits
Author: jhibbits Date: Fri Mar 29 03:01:21 2019 New Revision: 345678 URL: https://svnweb.freebsd.org/changeset/base/345678 Log: powerpc64: Fix kernel ldscript to only emit one PT_LOAD segment Summary: kexec-lite cannot currently handle multiple PT_LOAD segments. In some cases the compi

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

2019-04-01 Thread Justin Hibbits
Author: jhibbits Date: Tue Apr 2 04:00:01 2019 New Revision: 345789 URL: https://svnweb.freebsd.org/changeset/base/345789 Log: powerpc/powernv: Add OPAL heartbeat thread Summary: OPAL needs to be kicked periodically in order for the firmware to make progress on its tasks. To do so, cr

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

2019-04-01 Thread Justin Hibbits
Author: jhibbits Date: Tue Apr 2 04:02:57 2019 New Revision: 345790 URL: https://svnweb.freebsd.org/changeset/base/345790 Log: powernv: Port OPAL asynchronous framework to use the new message framework Since OPAL_GET_MSG does not discriminate between message types, asynchronous completio

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

2019-04-01 Thread Justin Hibbits
Author: jhibbits Date: Tue Apr 2 04:12:06 2019 New Revision: 345791 URL: https://svnweb.freebsd.org/changeset/base/345791 Log: ipmi: Fixes for ipmi_opal(powernv) * Crank the OPAL state machine during the receive loop, to make sure the pollers are executed * Add a proper detach functi

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

2019-04-02 Thread Justin Hibbits
Author: jhibbits Date: Wed Apr 3 03:54:30 2019 New Revision: 345829 URL: https://svnweb.freebsd.org/changeset/base/345829 Log: powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt This fix was committed less than 2 months after the code was forked into the powerpc kernel. Though po

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

2019-04-02 Thread Justin Hibbits
Author: jhibbits Date: Wed Apr 3 04:01:08 2019 New Revision: 345831 URL: https://svnweb.freebsd.org/changeset/base/345831 Log: powerpc: Allow emulating optional FPU instructions on CPUs with an FPU The e5500 has an FPU, but lacks the optional fsqrt instruction. This instruction gets emu

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

2019-04-05 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 6 02:31:01 2019 New Revision: 345974 URL: https://svnweb.freebsd.org/changeset/base/345974 Log: powerpc/powernv: Fix issues in opal_async * Properly return the full opal_msg from an async completion. * Don't keep bugging OPAL, wait 100us or so. With some m

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

2019-04-05 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 6 02:39:56 2019 New Revision: 345975 URL: https://svnweb.freebsd.org/changeset/base/345975 Log: powerpc/powernv: Fix major bugs in opal_flash * The BIO bio_data may not be page aligned. Only the base address of each page worth of data is extracted to pas

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

2019-04-11 Thread Justin Hibbits
Author: jhibbits Date: Fri Apr 12 00:44:33 2019 New Revision: 346143 URL: https://svnweb.freebsd.org/changeset/base/346143 Log: powerpc64: Increase the nap level on power9 idling The POWER9 documentation specifies that levels 0-3 are the 'lightest' sleep level, meaning lowest latency and

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

2019-04-11 Thread Justin Hibbits
Author: jhibbits Date: Fri Apr 12 00:53:30 2019 New Revision: 346144 URL: https://svnweb.freebsd.org/changeset/base/346144 Log: powerpc: Adjust priority NOPs, and make them functions PowerISA 2.07 and PowerISA 3.0 both specify special NOPs for priority adjustments, with "medium" priority

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

2019-04-12 Thread Justin Hibbits
Author: jhibbits Date: Sat Apr 13 02:29:30 2019 New Revision: 346172 URL: https://svnweb.freebsd.org/changeset/base/346172 Log: powerpc: Add file forgotten in r346144 Forgot to add the changes for DELAY(), which lowers priority during the delay period. Also, mark the timebase read as vol

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