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

2020-12-08 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 9 02:07:01 2020 New Revision: 368473 URL: https://svnweb.freebsd.org/changeset/base/368473 Log: dev/mfi: Make a seemingly bogus conditional unconditional Summary: r358689 attempted to fix a clang warning/error by inferring the intent of the condition

svn commit: r367807 - head/sys/mips/cavium

2020-11-18 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 18 17:37:01 2020 New Revision: 367807 URL: https://svnweb.freebsd.org/changeset/base/367807 Log: Fix octeon_pmc post-r334827 MFC after:3 days Sponsored by: Juniper Networks, Inc Modified: head/sys/mips/cavium/octeon_pmc.c Modified:

svn commit: r367355 - head/sys/mips/mips

2020-11-04 Thread Justin Hibbits
Author: jhibbits Date: Wed Nov 4 23:29:27 2020 New Revision: 367355 URL: https://svnweb.freebsd.org/changeset/base/367355 Log: Fix UMA alignment for COP2 context structure. UMA alignment needs specified as (power-of-2) - 1, not power-of-2. Discussed with: gonzo MFC after:

svn commit: r366188 - head/sys/mips/include

2020-09-26 Thread Justin Hibbits
Author: jhibbits Date: Sat Sep 26 21:47:11 2020 New Revision: 366188 URL: https://svnweb.freebsd.org/changeset/base/366188 Log: Check for the only 32-bit MIPS ABIs we support, rather than !n64 There may be additional 64-bit ABIs supported, so use a positive check rather than a negative

svn commit: r366171 - head/sys/mips/mips

2020-09-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Sep 25 20:27:36 2020 New Revision: 366171 URL: https://svnweb.freebsd.org/changeset/base/366171 Log: Fix mips64 build Original patch was against FreeBSD 12, and a test compile wasn't run against head. md_tls_tcb_offset field was moved from mdthread to mdproc

svn commit: r366169 - head/sys/mips/include

2020-09-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Sep 25 19:04:03 2020 New Revision: 366169 URL: https://svnweb.freebsd.org/changeset/base/366169 Log: mips: Fix compat32 library builds from r366162 Re-add the a_ptr and a_fcn fields to Elf32_Auxinfo. MFC after:1 week Sponsored by: Juniper Networks,

svn commit: r366162 - in head/sys/mips: include mips

2020-09-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Sep 25 17:13:45 2020 New Revision: 366162 URL: https://svnweb.freebsd.org/changeset/base/366162 Log: Fix compat32 on mips64 Summary: Two bugs: * Elf32_Auxinfo is broken, using pointers in the union, which are 64-bits not 32. * freebsd32_sysarch()

Re: svn commit: r365054 - in head/sys: conf dev/sdhci

2020-09-01 Thread Justin Hibbits
Sep 1, 2020 11:17:35 Marcin Wojtas : > Author: mw > Date: Tue SepĀ  1 16:17:21 2020 > New Revision: 365054 > URL: https://svnweb.freebsd.org/changeset/base/365054 > > Log: > Introduce the SDHCI driver for NXP QorIQ Layerscape SoCs > > Implement support for an eSDHC controller found in NXP QorIQ

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Justin Hibbits
On Sun, Jun 21, 2020, 09:38 Hans Petter Selasky wrote: > On 2020-06-21 15:47, Emmanuel Vadot wrote: > > What's more clear about calling something that is called Master Boot > > Record something else ? > > What's next ? Will you contact the BBC so they redub all Doctor Who > > episode where

Re: svn commit: r360233 - in head: contrib/jemalloc . . . : This partially breaks a 2-socket 32-bit powerpc (old PowerMac G4) based on head -r360311

2020-06-11 Thread Justin Hibbits
On Thu, 11 Jun 2020 17:30:24 -0700 Mark Millard wrote: > On 2020-Jun-11, at 16:49, Mark Millard wrote: > > > On 2020-Jun-11, at 14:42, Justin Hibbits > > wrote: > > > > On Thu, 11 Jun 2020 14:36:37 -0700 > > Mark Millard wrote: > > >

Re: svn commit: r360233 - in head: contrib/jemalloc . . . : This partially breaks a 2-socket 32-bit powerpc (old PowerMac G4) based on head -r360311

2020-06-11 Thread Justin Hibbits
On Thu, 11 Jun 2020 14:36:37 -0700 Mark Millard wrote: > On 2020-Jun-11, at 13:55, Justin Hibbits > wrote: > > > On Wed, 10 Jun 2020 18:56:57 -0700 > > Mark Millard wrote: > > > >> On 2020-May-13, at 08:56, Justin Hibbits > >> wrote

Re: svn commit: r360233 - in head: contrib/jemalloc . . . : This partially breaks a 2-socket 32-bit powerpc (old PowerMac G4) based on head -r360311

2020-06-11 Thread Justin Hibbits
On Wed, 10 Jun 2020 18:56:57 -0700 Mark Millard wrote: > On 2020-May-13, at 08:56, Justin Hibbits wrote: > > > Hi Mark, > > Hello Justin. Hi Mark, > > > On Wed, 13 May 2020 01:43:23 -0700 > > Mark Millard wrote: > > > >> [I'm adding

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

2020-06-10 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 10 23:03:35 2020 New Revision: 362034 URL: https://svnweb.freebsd.org/changeset/base/362034 Log: powerpc/pmap: Fix pte_find_next() iterators for booke64 pmap After r361988 fixed the reference count leak on booke64, it became possible for an iteration

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

2020-06-09 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 10 04:08:16 2020 New Revision: 362003 URL: https://svnweb.freebsd.org/changeset/base/362003 Log: powerpc/powernv: Don't use the vmem quantum cache for OPAL PCI MSI allocations vmem quantum cache is only needed when doing a lot of concurrent allocations,

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

2020-06-09 Thread Justin Hibbits
Author: jhibbits Date: Wed Jun 10 04:04:59 2020 New Revision: 362002 URL: https://svnweb.freebsd.org/changeset/base/362002 Log: powerpc/mpc85xx: Don't use the quantum cache in vmem for MPIC MSIs The qcache is unnecessary for this purpose, it's only needed when there are lots of

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

2020-06-09 Thread Justin Hibbits
Author: jhibbits Date: Tue Jun 9 21:59:13 2020 New Revision: 361988 URL: https://svnweb.freebsd.org/changeset/base/361988 Log: powerpc/pmap: Fix wired memory leak in booke64 page directories Properly handle reference counts in the 64-bit pmap page directories. Otherwise all page table

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

2020-06-07 Thread Justin Hibbits
Author: jhibbits Date: Mon Jun 8 02:28:00 2020 New Revision: 361901 URL: https://svnweb.freebsd.org/changeset/base/361901 Log: powerpc/powernv: Don't configure disabled CPUs If the POWER firmware detects a bad CPU core, it will "GUARD" it out, marking it disabled. Any attempt to spin

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

2020-06-06 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 6 18:56:40 2020 New Revision: 361874 URL: https://svnweb.freebsd.org/changeset/base/361874 Log: powerpc: Fix nits in copyinout comments from r361861 Also, remove useless nested #ifdefs in the IFUNC block. Reported by: bdragon@ Modified:

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

2020-06-05 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 6 03:09:12 2020 New Revision: 361861 URL: https://svnweb.freebsd.org/changeset/base/361861 Log: powerpc: Use IFUNCs for copyin/copyout/etc Summary: Radix on AIM, and all of Book-E (currently), can do direct addressing of user space, instead of needing to

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

2020-06-05 Thread Justin Hibbits
Author: jhibbits Date: Sat Jun 6 02:40:52 2020 New Revision: 361859 URL: https://svnweb.freebsd.org/changeset/base/361859 Log: powerpc: Add a (CPU/runtime features) flags set to pcpu struct Summary: The point of this addition is to cache CPU behavior 'features', to avoid having to

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

2020-05-28 Thread Justin Hibbits
Author: jhibbits Date: Fri May 29 00:46:31 2020 New Revision: 361615 URL: https://svnweb.freebsd.org/changeset/base/361615 Log: powerpc: Stop advertising that POWER8 and POWER9 support HTM HTM is on the chopping block, doesn't work on FreeBSD, and has only token support in PowerISA 3.1

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

2020-05-27 Thread Justin Hibbits
Author: jhibbits Date: Thu May 28 03:08:50 2020 New Revision: 361570 URL: https://svnweb.freebsd.org/changeset/base/361570 Log: powerpc/pmap: Remove some debug from r361544 Modified: head/sys/powerpc/powerpc/pmap_dispatch.c Modified: head/sys/powerpc/powerpc/pmap_dispatch.c

Re: svn commit: r361568 - head/sys/powerpc/aim

2020-05-27 Thread Justin Hibbits
On Thu, 28 May 2020 00:49:03 + (UTC) Brandon Bergren wrote: > Author: bdragon > Date: Thu May 28 00:49:02 2020 > New Revision: 361568 > URL: https://svnweb.freebsd.org/changeset/base/361568 > > Log: > [PowerPC] Fix radix crash when passing -1 from userspace > > Found by running libc

Re: svn commit: r361544 - in head/sys: conf powerpc/aim powerpc/booke powerpc/include powerpc/powerpc powerpc/ps3 powerpc/pseries

2020-05-26 Thread Justin Hibbits
On Tue, May 26, 2020, 20:24 Justin Hibbits wrote: > Author: jhibbits > Date: Wed May 27 01:24:12 2020 > New Revision: 361544 > URL: https://svnweb.freebsd.org/changeset/base/361544 > > Log: > powerpc/mmu: Convert PowerPC pmap drivers to ifunc from kobj > > With

svn commit: r361545 - head/sys/vm

2020-05-26 Thread Justin Hibbits
Author: jhibbits Date: Wed May 27 01:35:46 2020 New Revision: 361545 URL: https://svnweb.freebsd.org/changeset/base/361545 Log: Properly sort ifdef archs in vm_fault_soft_fast superpage guards. Sort broken in r360887. Modified: head/sys/vm/vm_fault.c Modified: head/sys/vm/vm_fault.c

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

2020-05-26 Thread Justin Hibbits
Author: jhibbits Date: Wed May 27 01:24:12 2020 New Revision: 361544 URL: https://svnweb.freebsd.org/changeset/base/361544 Log: powerpc/mmu: Convert PowerPC pmap drivers to ifunc from kobj With IFUNC support in the kernel, we can finally get rid of our poor-man's ifunc for pmap,

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

2020-05-25 Thread Justin Hibbits
Author: jhibbits Date: Tue May 26 03:58:19 2020 New Revision: 361494 URL: https://svnweb.freebsd.org/changeset/base/361494 Log: powerpc/booke pmap: Fix iteration for 64-bit kernel page table creation Kernel page tables actually start at index 4096, given kernel base address of

Re: svn commit: r361460 - in head/sys: arm64/conf arm64/qoriq conf

2020-05-25 Thread Justin Hibbits
Hi Marcin, On Mon, 25 May 2020 14:55:37 + (UTC) Marcin Wojtas wrote: > Author: mw > Date: Mon May 25 14:55:37 2020 > New Revision: 361460 > URL: https://svnweb.freebsd.org/changeset/base/361460 > > Log: > Add GPIO support for QorIQ boards. > > This patch adds a GPIO controller

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

2020-05-20 Thread Justin Hibbits
Author: jhibbits Date: Thu May 21 03:33:20 2020 New Revision: 361317 URL: https://svnweb.freebsd.org/changeset/base/361317 Log: powerpc: Handle machine checks caused by D-ERAT multihit Instead of crashing the user process when a D-ERAT multihit is detected, try to flush the ERAT, and

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

2020-05-19 Thread Justin Hibbits
Author: jhibbits Date: Wed May 20 02:33:41 2020 New Revision: 361271 URL: https://svnweb.freebsd.org/changeset/base/361271 Log: powerpc/radix mmu: No need for delayed TLB invalidation x86 needs delayed TLB invalidation because invalidation requires an expensive IPI. PowerPC has had a

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

2020-05-18 Thread Justin Hibbits
Author: jhibbits Date: Tue May 19 01:06:31 2020 New Revision: 361232 URL: https://svnweb.freebsd.org/changeset/base/361232 Log: powerpc/mmu: Don't use the cache instructions to zero pages A page (even physmem) can be marked as cache-inhibited. Attempting to use 'dcbz' to zero a page

svn commit: r361104 - head/contrib/elftoolchain/libelf

2020-05-15 Thread Justin Hibbits
Author: jhibbits Date: Sat May 16 03:52:30 2020 New Revision: 361104 URL: https://svnweb.freebsd.org/changeset/base/361104 Log: elftoolchain: Add powerpc64 definition to elftoolchain config powerpc is already in place, but powerpc64 is needed separately. Modified:

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

2020-05-15 Thread Justin Hibbits
Author: jhibbits Date: Sat May 16 03:33:28 2020 New Revision: 361102 URL: https://svnweb.freebsd.org/changeset/base/361102 Log: powerpc/qoriq: Add more devices to config for desktop usage The most likely users of the QORIQ64 config nowadays are users of AmigaOne X5000 systems, which are

Re: svn commit: r360233 - in head: contrib/jemalloc . . . : This partially breaks a 2-socket 32-bit powerpc (old PowerMac G4) based on head -r360311

2020-05-13 Thread Justin Hibbits
Hi Mark, On Wed, 13 May 2020 01:43:23 -0700 Mark Millard wrote: > [I'm adding a reference to an old arm64/aarch64 bug that had > pages turning to zero, in case this 32-bit powerpc issue is > somewhat analogous.] > > On 2020-May-13, at 00:29, Mark Millard wrote: > > > [stress alone is

Re: svn commit: r360887 - in head/sys: conf powerpc/aim powerpc/booke powerpc/include powerpc/powerpc vm

2020-05-11 Thread Justin Hibbits
t fell over quite quickly, so I must've missed something. I think that's it. - Justin > > On Sun, May 10, 2020 at 7:33 PM Justin Hibbits > wrote: > > > > Author: jhibbits > > Date: Mon May 11 02:33:37 2020 > > New Revision: 360887 > > URL: https://svnweb.

svn commit: r360887 - in head/sys: conf powerpc/aim powerpc/booke powerpc/include powerpc/powerpc vm

2020-05-10 Thread Justin Hibbits
Author: jhibbits Date: Mon May 11 02:33:37 2020 New Revision: 360887 URL: https://svnweb.freebsd.org/changeset/base/360887 Log: powerpc64: Implement Radix MMU for POWER9 CPUs Summary: POWER9 supports two MMU formats: traditional hashed page tables, and Radix page tables, similar to

svn commit: r360881 - in head/sys/powerpc: aim booke include powerpc

2020-05-10 Thread Justin Hibbits
Author: jhibbits Date: Sun May 10 19:00:57 2020 New Revision: 360881 URL: https://svnweb.freebsd.org/changeset/base/360881 Log: powerpc: Add a CPU-custom machine check handler Summary: Some machine checks are process-recoverable, others are not. Let a CPU-specific handler decide what

Re: svn commit: r360241 - head/sys/dev/ichiic

2020-04-24 Thread Justin Hibbits
On Fri, 24 Apr 2020 19:07:35 +0300 Andriy Gapon wrote: > On 24/04/2020 18:11, Warner Losh wrote: > > > > > > On Fri, Apr 24, 2020 at 8:47 AM Andriy Gapon > > wrote: > > > > On 24/04/2020 17:29, Warner Losh wrote: > > > > > > > > > On Fri, Apr 24,

Re: svn commit: r360126 - head/sys/dev/evdev

2020-04-21 Thread Justin Hibbits
On Mon, 20 Apr 2020 22:13:51 +0300 Vladimir Kondratyev wrote: > On 20.04.2020 19:39, Justin Hibbits wrote: > > But I'm curious, why not attach to sysmouse(4) and kbdmux(4)? What > > breakage does that cause? I could maybe see not attaching to > > sysmouse(4) by default,

Re: svn commit: r360126 - head/sys/dev/evdev

2020-04-20 Thread Justin Hibbits
On Mon, 20 Apr 2020 16:17:17 + (UTC) Niclas Zeising wrote: > Author: zeising (doc,ports committer) > Date: Mon Apr 20 16:17:16 2020 > New Revision: 360126 > URL: https://svnweb.freebsd.org/changeset/base/360126 > > Log: > Change kern.evdev.rcpt_mask to 12 by default > > Change

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

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

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

2020-04-10 Thread Justin Hibbits
=== --- 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-License-Identifier: BSD-2-Clause-FreeBSD * + * Copyright (C) 202

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

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

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:

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

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

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

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:

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,

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

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:

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:

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

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:

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:

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

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

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

svn commit: r357242 - head/lib/csu/powerpc64

2020-01-28 Thread Justin Hibbits
Author: jhibbits Date: Wed Jan 29 04:32:06 2020 New Revision: 357242 URL: https://svnweb.freebsd.org/changeset/base/357242 Log: powerpc64/csu: Rename dummy asm file to force use of 'cc' Implicit make rules build .S asm files with the compiler, rather than the assembler. r356889 removed

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

2020-01-19 Thread Justin Hibbits
Author: jhibbits Date: Mon Jan 20 04:01:35 2020 New Revision: 356904 URL: https://svnweb.freebsd.org/changeset/base/356904 Log: powerpc/amiga: Hide CPLD date and time printing behind bootverbose There's no need to see the CPLD build date and time every boot. Modified:

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

2020-01-19 Thread Justin Hibbits
ll 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/amigaone/cpld.hSun Jan 19 21:43:15 2020 (r356899) @@ -0,0 +1,45 @@ +/*- + * Copyright (c) 2020 Justin Hibbits + * + * Redistribution and use in source and binary forms, with or without + * modification, are

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

2020-01-19 Thread Justin Hibbits
Author: jhibbits Date: Sun Jan 19 21:17:57 2020 New Revision: 356896 URL: https://svnweb.freebsd.org/changeset/base/356896 Log: [PowerPC64] fix crash when using machdep.moea64_bpvo_pool_size tunable Summary: This fixes kernel crashing when tunable "machdep.moea64_bpvo_pool_size" is set

svn commit: r356860 - in head/sys: powerpc/aim powerpc/powerpc tools

2020-01-17 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 18 02:39:38 2020 New Revision: 356860 URL: https://svnweb.freebsd.org/changeset/base/356860 Log: Add a 'SINGLETON' directive to kobj interface definition Summary: This makes the interface described in the definition file act like a pseudo-IFUNC service,

svn commit: r356858 - in head/sys/powerpc: include ofw powernv powerpc

2020-01-17 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 18 01:26:54 2020 New Revision: 356858 URL: https://svnweb.freebsd.org/changeset/base/356858 Log: powerpc: Fix the NUMA domain list on powernv Summary: Consolidate the NUMA associativity handling into a platform function. Non-NUMA platforms will just fall

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

2020-01-13 Thread Justin Hibbits
Author: jhibbits Date: Mon Jan 13 23:09:00 2020 New Revision: 356710 URL: https://svnweb.freebsd.org/changeset/base/356710 Log: powerpc/mpc85xx: Partially revert r356640 The count block was correct before. r356640 caused a read past the end of the tuple. Modified:

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

2020-01-11 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 11 22:29:44 2020 New Revision: 356640 URL: https://svnweb.freebsd.org/changeset/base/356640 Log: powerpc/mpc85xx: Fix localbus child reg property decoding r302340, as an attempt to fix the localbus child handling post-rman change, actually broke child

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

2020-01-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 10 04:13:16 2020 New Revision: 356595 URL: https://svnweb.freebsd.org/changeset/base/356595 Log: powerpc: Prevent infinite loop in moea_sync_icache() This applies r344049 to the 32-bit pmap. Reported by: Mark Millard Modified:

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

2020-01-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 10 03:16:40 2020 New Revision: 356591 URL: https://svnweb.freebsd.org/changeset/base/356591 Log: powerpc: Mark cpu_feature-based sysctls as MP_SAFE hw.floatingpoint and hw.altivec are effectively runtime constants (bits from the cpu_feature bitfield), so

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

2020-01-09 Thread Justin Hibbits
Author: jhibbits Date: Fri Jan 10 01:24:49 2020 New Revision: 356590 URL: https://svnweb.freebsd.org/changeset/base/356590 Log: powerpc/powernv: Un-Giant-ify opal_nvram driver It may be possible to make this completely lock free, but for now it's using a statically allocated bounce

Re: svn commit: r356379 - head/share/mk

2020-01-05 Thread Justin Hibbits
On Sun, 5 Jan 2020 12:21:53 -0500 Ed Maste wrote: > On Sun, 5 Jan 2020 at 11:59, Ed Maste wrote: > > > > Author: emaste > > Date: Sun Jan 5 16:59:24 2020 > > New Revision: 356379 > > URL: https://svnweb.freebsd.org/changeset/base/356379 > > > > Log: > > src.opts.mk: disable

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

2020-01-03 Thread Justin Hibbits
Author: jhibbits Date: Sat Jan 4 01:13:00 2020 New Revision: 356346 URL: https://svnweb.freebsd.org/changeset/base/356346 Log: powerpc: Remove 'sec' device from QORIQ64 config The SEC crypto engine, as implemented in this driver, does not exist on any 64-bit SoC, so don't bother

Re: svn commit: r356113 - in head: libexec/rtld-elf sys/kern sys/sys

2019-12-27 Thread Justin Hibbits
On Fri, 27 Dec 2019 10:43:16 -0800 John Baldwin wrote: > On 12/26/19 8:07 PM, Justin Hibbits wrote: > > Author: jhibbits > > Date: Fri Dec 27 04:07:03 2019 > > New Revision: 356113 > > URL: https://svnweb.freebsd.org/changeset/base/356113 > > > > Log:

svn commit: r356129 - in head/sys: kern powerpc/include powerpc/powerpc

2019-12-27 Thread Justin Hibbits
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powerpc/elf_common.c Fri Dec 27 17:38:25 2019 (r356129) @@ -0,0 +1,89 @@ +/*- + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (c) 2019 Ju

svn commit: r356117 - head/sys/kern

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 27 04:52:17 2019 New Revision: 356117 URL: https://svnweb.freebsd.org/changeset/base/356117 Log: Fix the build from r356113. Types had changed from when the patch was first created, and a final build was not done pre-commit. Modified:

svn commit: r356116 - head

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 27 04:42:03 2019 New Revision: 356116 URL: https://svnweb.freebsd.org/changeset/base/356116 Log: Add a note to UPDATING on the move to clang for powerpc* Modified: head/UPDATING Modified: head/UPDATING

svn commit: r356113 - in head: libexec/rtld-elf sys/kern sys/sys

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 27 04:07:03 2019 New Revision: 356113 URL: https://svnweb.freebsd.org/changeset/base/356113 Log: Eliminate the last MI difference in AT_* definitions (for powerpc). Summary: As a transition aide, implement an alternative elfN_freebsd_fixup which is called

svn commit: r356112 - in head/contrib/llvm-project: clang/lib/Basic/Targets llvm/lib/Target/PowerPC

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 27 04:00:04 2019 New Revision: 356112 URL: https://svnweb.freebsd.org/changeset/base/356112 Log: [PowerPC64] Starting from FreeBSD 13.0, default to ELFv2 ABI This changes the LLVM default powerpc64 ABI to ELFv2, if target OS is FreeBSD >= 13.0 This

svn commit: r356111 - in head/share: man/man7 mk

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Fri Dec 27 03:54:27 2019 New Revision: 356111 URL: https://svnweb.freebsd.org/changeset/base/356111 Log: Use LLVM as default toolchain for all PowerPC targets This enables LLVM as the default compiler for powerpc, powerpc64, and powerpcspe, as well as LLD as the

svn commit: r356104 - in head: contrib/llvm-project/clang/lib/AST contrib/llvm-project/compiler-rt/lib/builtins lib/libcompiler_rt

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 26 23:06:28 2019 New Revision: 356104 URL: https://svnweb.freebsd.org/changeset/base/356104 Log: [PowerPC] enable atomic.c in compiler_rt and do not check and forces lock/lock_free decisions in compiled time Summary: Enables atomic.c in compiler_rt and

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

2019-12-26 Thread Justin Hibbits
Author: jhibbits Date: Thu Dec 26 22:47:24 2019 New Revision: 356102 URL: https://svnweb.freebsd.org/changeset/base/356102 Log: powerpc: Move ppc32_runtime_resolve() declaration to the right place The function is only used in 32-bit kernels, so move the declaration to !powerpc64.

svn commit: r356054 - in head: share/mk stand

2019-12-24 Thread Justin Hibbits
Author: jhibbits Date: Tue Dec 24 16:03:33 2019 New Revision: 356054 URL: https://svnweb.freebsd.org/changeset/base/356054 Log: [PowerPC64] Use ld.bfd to build LIB32 and STAND - when using llvm Summary: This patch is to support ongoing work for replacing "GCC/BFD" by "CLANG/LLD" on

svn commit: r355977 - head/sys/conf

2019-12-20 Thread Justin Hibbits
Author: jhibbits Date: Sat Dec 21 04:44:17 2019 New Revision: 355977 URL: https://svnweb.freebsd.org/changeset/base/355977 Log: powerpc: Only build mpc85xx i2c driver for mpc85xx No need to build it for every other platform. Modified: head/sys/conf/files.powerpc Modified:

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

2019-12-15 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 15 21:20:18 2019 New Revision: 355783 URL: https://svnweb.freebsd.org/changeset/base/355783 Log: powerpc/powernv: Set the PTCR for the Nest MMU The Nest MMU manages address translation for accelerators on the POWER9. To do so, it needs a page table, so

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

2019-12-15 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 15 21:08:40 2019 New Revision: 355778 URL: https://svnweb.freebsd.org/changeset/base/355778 Log: powerpc/mpc85xx: Clean up Freescale SATA driver a little * Remove unused ATA_IN/OUT macros, they just clutter up the file. * Fix some RID management bits for

svn commit: r355521 - in head: stand/powerpc/kboot sys/conf sys/powerpc/include

2019-12-07 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 8 04:36:42 2019 New Revision: 355521 URL: https://svnweb.freebsd.org/changeset/base/355521 Log: powerpc: Use builtins for fls/flsl Summary: There's no need to use the fallback fls() and flsl() libkern functions when the PowerISA includes instructions

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

2019-12-07 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 8 04:17:04 2019 New Revision: 355519 URL: https://svnweb.freebsd.org/changeset/base/355519 Log: powerpc64/pmap: micro-optimize some PVO-PTE logic Summary: moea64_pte_sync_native() and moea64_pte_unset_native() don't need the full PTE created, they only

svn commit: r355481 - in head/sys: powerpc/aim powerpc/booke powerpc/include powerpc/powerpc vm

2019-12-06 Thread Justin Hibbits
Author: jhibbits Date: Sat Dec 7 03:34:03 2019 New Revision: 355481 URL: https://svnweb.freebsd.org/changeset/base/355481 Log: powerpc/pmap: NUMA-ize vm_page_array on powerpc Summary: This matches r351198 from amd64. This only applies to AIM64 and Book-E. On AIM64 it short-circuits

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

2019-12-03 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 4 03:51:30 2019 New Revision: 355380 URL: https://svnweb.freebsd.org/changeset/base/355380 Log: powerpc/booke: Fix some formatting errors in debug printfs Use the right formats for the types given (vm_offset_t and vm_size_t are both uint32_t on 32-bit

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

2019-12-03 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 4 03:41:55 2019 New Revision: 355378 URL: https://svnweb.freebsd.org/changeset/base/355378 Log: powerpc/booke: Fix 32-bit Book-E SMP AP bringup r354266 changed the type of bp_kernload to vm_paddr_t in platform_mpc85xx.c, but not the variable itself in

svn commit: r355289 - in head/sys: arm64/arm64 arm64/conf arm64/include conf

2019-12-02 Thread Justin Hibbits
Author: jhibbits Date: Mon Dec 2 15:07:06 2019 New Revision: 355289 URL: https://svnweb.freebsd.org/changeset/base/355289 Log: revert r354714 "Boot arm64 kernel using booti command from U-boot." After discussing with mmel@, it was clear this is insufficient to address all the needs.

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

2019-12-01 Thread Justin Hibbits
Author: jhibbits Date: Sun Dec 1 21:29:34 2019 New Revision: 355275 URL: https://svnweb.freebsd.org/changeset/base/355275 Log: powerpc: Add 'show frame ' to show an arbitrary trap frame This lets us print, for example, the user's trap frame when a panic occurs. The frame address is

Re: svn commit: r355045 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Justin Hibbits
On Sun, 24 Nov 2019 18:47:14 +0200 Konstantin Belousov wrote: > On Sun, Nov 24, 2019 at 10:32:23AM -0600, Brandon Bergren wrote: > > On Sun, Nov 24, 2019, at 7:04 AM, Konstantin Belousov wrote: > > > On Sun, Nov 24, 2019 at 04:35:29AM +0000, Justin Hibbits wrote: > &

  1   2   3   4   5   6   7   8   9   10   >