svn commit: r368718 - head/sys/modules/if_wg

2020-12-17 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Dec 17 14:20:36 2020 New Revision: 368718 URL: https://svnweb.freebsd.org/changeset/base/368718 Log: Make non-debug kernels installable. Setting DEBUG_FLAGS results in make installkernel trying to install debug information that doesn't exist if the kernel was

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

2020-10-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Oct 15 13:43:43 2020 New Revision: 366723 URL: https://svnweb.freebsd.org/changeset/base/366723 Log: Provide a slightly more-tolerant set of thermal parameters for PowerMac motherboard temperatures. In particular, the U4 northbridge die is very hard to cool or

Re: svn commit: r364379 - head/sys/dev/usb/controller

2020-08-20 Thread Nathan Whitehorn
On 2020-08-20 13:47, Hans Petter Selasky wrote: > On 2020-08-20 18:21, Hans Petter Selasky wrote: >> On 2020-08-20 18:14, Hans Petter Selasky wrote: >>> On 2020-08-20 17:51, Nathan Whitehorn wrote: >>>> Either this or r364347 has broken Yubikeys (at least Yubikey

Re: svn commit: r364379 - head/sys/dev/usb/controller

2020-08-20 Thread Nathan Whitehorn
Either this or r364347 has broken Yubikeys (at least Yubikey 4) plugged into XHCI ports, which are completely invisible to the USB stack after the change. I'm going to try to debug further, but wanted to give you a heads-up in case you can get there first. -Nathan On 2020-08-19 07:50, Hans Petter

Re: svn commit: r356758 - in head/usr.sbin/bsdinstall: . scripts

2020-01-15 Thread Nathan Whitehorn
I agree -- this seems like a really big change, especially with no discussion. -Nathan On 2020-01-15 10:57, Oliver Pinter wrote: > > > On Wednesday, January 15, 2020, Ben Woods > wrote: > > Author: woodsb02 (ports committer) > Date: Wed Jan 15 07:47:52 2020 >

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

2019-06-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Jun 16 21:56:45 2019 New Revision: 349121 URL: https://svnweb.freebsd.org/changeset/base/349121 Log: Fix bug on newbus device deletion: we should delete the child's devinfo on deletion, not the parent's. MFC after:3 weeks Modified:

svn commit: r343969 - head/sys/mips/cavium/octe

2019-02-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Feb 10 20:13:59 2019 New Revision: 343969 URL: https://svnweb.freebsd.org/changeset/base/343969 Log: Performance improvements for octe(4): - Distribute RX load across multiple cores, if present. This reverts r217212, which is no longer relevant (I think

Re: svn commit: r340653 - in head/sys/powerpc: fpu include powerpc

2018-11-19 Thread Nathan Whitehorn
Is this reasonable? What if the junk in the cache happened to be a *valid* instruction? Won't this approach result in silent corruption and later failure? -Nathan On 11/19/18 3:54 PM, Justin Hibbits wrote: > Author: jhibbits > Date: Mon Nov 19 23:54:49 2018 > New Revision: 340653 > URL:

Re: svn commit: r339523 - in head/sys: conf dev/amdgpio modules modules/amdgpio

2018-10-22 Thread Nathan Whitehorn
On 10/21/18 1:12 PM, Oleksandr Tymoshenko wrote: > Nathan Whitehorn (nwhiteh...@freebsd.org) wrote: >> >> On 10/20/18 9:52 PM, Oleksandr Tymoshenko wrote: >>> Author: gonzo >>> Date: Sun Oct 21 04:52:37 2018 >>> New Revision: 339523 >>> UR

Re: svn commit: r339523 - in head/sys: conf dev/amdgpio modules modules/amdgpio

2018-10-21 Thread Nathan Whitehorn
On 10/20/18 9:52 PM, Oleksandr Tymoshenko wrote: > Author: gonzo > Date: Sun Oct 21 04:52:37 2018 > New Revision: 339523 > URL: https://svnweb.freebsd.org/changeset/base/339523 > > Log: > Add amdgpio, driver for GPIO controller on AMD-based x86_64 platforms > > Submitted by: Rajesh

Re: svn commit: r339413 - in head: libexec libexec/rc libexec/rc/rc.d sbin/init sbin/init/rc.d

2018-10-17 Thread Nathan Whitehorn
Is there some high-level overview of the plan for pkgbase somewhere? Which things will be in which packages, how the tools will work, etc.? I'm still a little confused by how things are intended to work and it's a bit hard to follow from commits with lots of small reorganizations. Thanks, Nathan

svn commit: r339301 - head/share/mk

2018-10-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Oct 11 00:54:39 2018 New Revision: 339301 URL: https://svnweb.freebsd.org/changeset/base/339301 Log: Loader GELI support, like lua loader, seems to be broken on PowerPC as well as on SPARC64 and can cause boot failures even when no encrypted disks are present.

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

2018-07-19 Thread Nathan Whitehorn
to naming... e.g. https://lkml.org/lkml/2018/6/25/784 On Thu, Jul 19, 2018 at 3:26 PM, Nathan Whitehorn wrote: Isn't stdout-path supposed to contain a string rather than an ihandle? This code assumes it is an ihandle (or xref phandle), which I think is wrong. -Nathan On 07/19/18 13:22, Justin Hibbits

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

2018-07-19 Thread Nathan Whitehorn
Isn't stdout-path supposed to contain a string rather than an ihandle? This code assumes it is 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:

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

2018-07-09 Thread Nathan Whitehorn
Maybe this file should be renamed and/or split anyway? It's not actually very generic and is used only on (some) ARM systems. -Nathan On 07/09/18 09:00, Andrew Turner wrote: This breaks at least armv7. Please either fix, or revert this. I have some comments below I was planning on adding to

Re: svn commit: r335299 - head

2018-06-17 Thread Nathan Whitehorn
As a minor caveat, the default release kernel on powerpc64 is "GENERIC64" not "GENERIC". -Nathan On 06/17/18 12:44, Eitan Adler wrote: Author: eadler Date: Sun Jun 17 19:44:24 2018 New Revision: 335299 URL: https://svnweb.freebsd.org/changeset/base/335299 Log: README: add generic notes

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

2018-05-30 Thread Nathan Whitehorn
On 05/30/18 02:42, Peter Grehan wrote:    PCIe only permits 1 device on an endpoint, so some devices ignore the device    part of B:D:F probing.  Although ARI likely fixes this, not all platforms    support ARI completely or correctly, so some devices end up showing up 32    times on the

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

2018-05-29 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed May 30 04:15:33 2018 New Revision: 334372 URL: https://svnweb.freebsd.org/changeset/base/334372 Log: If linebytes property is missing from the graphics device, assume no overscan and synthesize it from the display depth and screen width. This may not be right,

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

2018-05-20 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 20 18:26:09 2018 New Revision: 333934 URL: https://svnweb.freebsd.org/changeset/base/333934 Log: Fix build with PSERIES but not POWERNV defined. Modified: head/sys/powerpc/pseries/xics.c Modified: head/sys/powerpc/pseries/xics.c

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

2018-05-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat May 19 22:04:54 2018 New Revision: 333897 URL: https://svnweb.freebsd.org/changeset/base/333897 Log: Avoid writing to the frame buffer in early boot on PowerPC if the CPU's MMU is disabled. This expands some earlier logic and avoids a number of potential

svn commit: r333804 - head/usr.sbin/bsdinstall

2018-05-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri May 18 17:46:40 2018 New Revision: 333804 URL: https://svnweb.freebsd.org/changeset/base/333804 Log: Use sysrc(8) in the documentation rather than echoing things to rc.conf in order to encourage good habits. PR: 228325 Submitted by: Mateusz

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

2018-05-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri May 18 17:43:15 2018 New Revision: 333803 URL: https://svnweb.freebsd.org/changeset/base/333803 Log: Fix math error in the computation of the free space after the last partition on a disk. This resulted in one sector always remaining free at the end. PR:

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

2018-05-17 Thread Nathan Whitehorn
On 05/17/18 14:04, Matt Macy wrote: Author: mmacy Date: Thu May 17 21:04:19 2018 New Revision: 333765 URL: https://svnweb.freebsd.org/changeset/base/333765 Log: powerpc: fix LINT build netmap currently doesn't build, take it out of LINT to prevent hiding regressions in universe

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

2018-05-13 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon May 14 04:00:52 2018 New Revision: 333599 URL: https://svnweb.freebsd.org/changeset/base/333599 Log: Final fix for alignment issues with the page table first patched with r333273 and partially reverted with r333594. Older CPUs implement addition of offsets

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

2018-05-13 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 13 23:56:43 2018 New Revision: 333594 URL: https://svnweb.freebsd.org/changeset/base/333594 Log: Revert changes to hash table alignment in r333273, which booting on all G5 systems, pending further analysis. Modified: head/sys/powerpc/aim/moea64_native.c

Re: svn commit: r333436 - in head/etc: etc.aarch64 etc.amd64 etc.arm etc.i386 etc.powerpc etc.riscv etc.sparc64

2018-05-09 Thread Nathan Whitehorn
Thanks! At this point, these files only differ from each other in white space, comments, and whether they have video console lines at all, which is made unnecessary by this commit --- with the exception of sparc64, which has a few extra off-by-default console options. Any reason not to unify

svn commit: r333134 - head/sys/kern

2018-04-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue May 1 04:06:59 2018 New Revision: 333134 URL: https://svnweb.freebsd.org/changeset/base/333134 Log: Report the kernel base address properly in kldstat when using PowerPC kernels loaded at addresses other than their link address. Modified:

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

2018-04-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Apr 30 19:37:32 2018 New Revision: 333124 URL: https://svnweb.freebsd.org/changeset/base/333124 Log: Fix null pointer dereference on nodes without a "compatible" property. MFC after:1 week Modified: head/sys/powerpc/powermac/macio.c Modified:

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

2018-04-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Apr 19 18:34:38 2018 New Revision: 332788 URL: https://svnweb.freebsd.org/changeset/base/332788 Log: Fix detection of memory overlap with the kernel in the case where a memory region marked "available" by firmware is contained entirely in the kernel. This had

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

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

svn commit: r330936 - head/sys/conf

2018-03-14 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Mar 14 18:07:40 2018 New Revision: 330936 URL: https://svnweb.freebsd.org/changeset/base/330936 Log: Fix fat-fingering ("optional standard") and move all the OF code to being marked "standard", which is less confusing than having it conditional on AIM CPUs here,

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

2018-03-14 Thread Nathan Whitehorn
On 03/14/18 09:19, Justin Hibbits wrote: On Wed, Mar 14, 2018 at 11:16 AM, Nathan Whitehorn <nwhiteh...@freebsd.org> wrote: Author: nwhitehorn Date: Wed Mar 14 16:16:25 2018 New Revision: 330930 URL: https://svnweb.freebsd.org/changeset/base/330930 Log: The expression (aim

svn commit: r330930 - head/sys/conf

2018-03-14 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Mar 14 16:16:25 2018 New Revision: 330930 URL: https://svnweb.freebsd.org/changeset/base/330930 Log: The expression (aim | fdt) is always true on PowerPC. The last PowerPC platform that can run without a device tree (PS3) still uses the OF_*() functions to check

Re: svn commit: r330925 - in head/sys: conf powerpc/powernv

2018-03-14 Thread Nathan Whitehorn
On 03/14/18 02:20, Wojciech Macek wrote: Author: wma Date: Wed Mar 14 09:20:03 2018 New Revision: 330925 URL: https://svnweb.freebsd.org/changeset/base/330925 Log: PowerNV: Fix I2C to compile if FDT is disabled Submitted by: Wojciech Macek Obtained

Re: svn commit: r330925 - in head/sys: conf powerpc/powernv

2018-03-14 Thread Nathan Whitehorn
On 03/14/18 07:21, Ian Lepore wrote: On Wed, 2018-03-14 at 09:20 +, Wojciech Macek wrote: Author: wma Date: Wed Mar 14 09:20:03 2018 New Revision: 330925 URL: https://svnweb.freebsd.org/changeset/base/330925 Log:   PowerNV: Fix I2C to compile if FDT is disabled   Submitted by:  

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

2018-03-13 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Mar 13 18:24:21 2018 New Revision: 330870 URL: https://svnweb.freebsd.org/changeset/base/330870 Log: Restore missing temporary variable, deleted by accident in r330845. This unbreaks the ppc32 AIM build. Reported by: jhibbits Modified:

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

2018-03-13 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Mar 13 15:03:58 2018 New Revision: 330845 URL: https://svnweb.freebsd.org/changeset/base/330845 Log: Execute PowerPC64/AIM kernel from direct map region when possible. When the kernel can be in real mode in early boot, we can execute from high addresses

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

2018-03-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Mar 11 01:09:31 2018 New Revision: 330754 URL: https://svnweb.freebsd.org/changeset/base/330754 Log: Make FDT-using parts of ofw_machdep.c condition on options FDT. This fixes the kernel build when options FDT is absent. Modified:

svn commit: r330610 - in head/sys: dev/vt/hw/ofwfb powerpc/aim powerpc/include powerpc/ofw powerpc/powerpc powerpc/ps3

2018-03-07 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Mar 7 17:08:07 2018 New Revision: 330610 URL: https://svnweb.freebsd.org/changeset/base/330610 Log: Move the powerpc64 direct map base address from zero to high memory. This accomplishes a few things: - Makes NULL an invalid address in the kernel, which is

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

2018-03-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Mar 6 15:52:43 2018 New Revision: 330542 URL: https://svnweb.freebsd.org/changeset/base/330542 Log: Fix use of unitialized variables. Modified: head/sys/powerpc/powernv/opal_pci.c head/sys/powerpc/powernv/platform_powernv.c Modified:

svn commit: r330371 - head/stand/powerpc/ofw

2018-03-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Mar 4 04:49:09 2018 New Revision: 330371 URL: https://svnweb.freebsd.org/changeset/base/330371 Log: Where we can, pass the kernel an FDT facsimile of the OF device tree rather than a pointer to Open Firmware by default. This eliminates a number of potentially

svn commit: r330365 - in head/stand: ofw/common ofw/libofw powerpc/ofw

2018-03-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Mar 3 23:39:07 2018 New Revision: 330365 URL: https://svnweb.freebsd.org/changeset/base/330365 Log: Move "common" Open Firmware parts of the loader used only on PowerPC to the powerpc/ subdirectory. These have never used by SPARC and we have no other (and

svn commit: r330306 - head/sys/powerpc/ps3

2018-03-02 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Mar 3 02:06:48 2018 New Revision: 330306 URL: https://svnweb.freebsd.org/changeset/base/330306 Log: Honor physical memory regions marked unavailable in the FDT, when present. The most notable of these is the FDT itself, which it is a bad idea to overwrite.

svn commit: r330305 - in head/sys/powerpc: powerpc ps3

2018-03-02 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Mar 3 02:04:40 2018 New Revision: 330305 URL: https://svnweb.freebsd.org/changeset/base/330305 Log: Remove assumption that all physical memory is available to the kernel and that the physical and available memory arrays are interchangeable. Modified:

Re: svn commit: r330240 - in head/sys: conf powerpc/conf powerpc/powernv

2018-03-01 Thread Nathan Whitehorn
On 03/01/18 06:11, Wojciech Macek wrote: Author: wma Date: Thu Mar 1 14:11:07 2018 New Revision: 330240 URL: https://svnweb.freebsd.org/changeset/base/330240 Log: PowerNV: Initial support for OPAL I2C transfers Add I2C OPAL driver and a set of dummy-ones to allow all I2C things

svn commit: r329941 - head/sys/powerpc/ps3

2018-02-24 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Feb 24 22:34:56 2018 New Revision: 329941 URL: https://svnweb.freebsd.org/changeset/base/329941 Log: Avoid dereferencing random memory when kickstarting DMA. MFC after: 1 week Modified: head/sys/powerpc/ps3/if_glc.c Modified: head/sys/powerpc/ps3/if_glc.c

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

2018-02-21 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Feb 21 15:15:58 2018 New Revision: 329721 URL: https://svnweb.freebsd.org/changeset/base/329721 Log: Add definition for the PowerPC A2. Modified: head/sys/powerpc/include/spr.h Modified: head/sys/powerpc/include/spr.h

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

2018-02-21 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Feb 21 15:15:31 2018 New Revision: 329720 URL: https://svnweb.freebsd.org/changeset/base/329720 Log: Add definitions for the new Radix MMU mode on POWER9+ CPUs. Modified: head/sys/powerpc/include/pte.h Modified: head/sys/powerpc/include/pte.h

svn commit: r329579 - in head/sys: dev/ofw powerpc/ofw

2018-02-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Feb 19 15:49:14 2018 New Revision: 329579 URL: https://svnweb.freebsd.org/changeset/base/329579 Log: Set internal error returns for OF_peer(), OF_child(), and OF_parent() to zero, matching the IEEE 1275 standard. Since these internal error paths have never, to

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

2018-02-13 Thread Nathan Whitehorn
There is another set of these that Linux added recently that are used for Meltdown/Spectre workarounds. Might be worth importing while these are being updated... -Nathan On 02/13/18 18:48, Justin Hibbits wrote: Author: jhibbits Date: Wed Feb 14 02:48:27 2018 New Revision: 329257 URL:

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

2018-02-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Feb 9 20:09:32 2018 New Revision: 329080 URL: https://svnweb.freebsd.org/changeset/base/329080 Log: Fix PowerMac G5 thermal management, plus likely other bugs, introduced in r328113 and affecting SMP systems. The way the time is set on PowerMacs is racy and

svn commit: r328835 - in head/stand: ofw/common ofw/libofw powerpc/ofw

2018-02-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Feb 3 23:49:21 2018 New Revision: 328835 URL: https://svnweb.freebsd.org/changeset/base/328835 Log: Fix regression introduced in r328806, preventing boot at least on all PowerPC Apple hardware, and likely all Open Firmware systems. The loader would allocate

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

2018-01-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Feb 1 05:31:24 2018 New Revision: 328651 URL: https://svnweb.freebsd.org/changeset/base/328651 Log: Change the default MSR values used when starting userland and kernel threads from compile-time defines to global variables. This removes a significant amount of

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

2018-01-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Feb 1 05:28:02 2018 New Revision: 328650 URL: https://svnweb.freebsd.org/changeset/base/328650 Log: Fix build on 32-bit PowerPC, broken in r328537. Modified: head/sys/powerpc/aim/mp_cpudep.c Modified: head/sys/powerpc/aim/mp_cpudep.c

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

2018-01-31 Thread Nathan Whitehorn
Thanks! Since PSL_HV is only defined on powerpc64, you also need some #ifdef here or the ppc32 kernel build will break. Also, the comment is longer than 80 characters. -Nathan On 01/30/18 22:42, Wojciech Macek wrote: Author: wma Date: Wed Jan 31 06:42:01 2018 New Revision: 328616 URL:

Re: svn commit: r328593 - head/release/scripts

2018-01-30 Thread Nathan Whitehorn
Do we even want to include the ports tree on install media? Extracting ports from some out-of-date tarball doesn't seem to match best practices for ports and it takes up quite a lot of space. -Nathan On 01/30/18 08:34, Steve Wills wrote: Author: swills (ports committer) Date: Tue Jan 30

Re: svn commit: r328537 - in head/sys/powerpc: aim powernv

2018-01-30 Thread Nathan Whitehorn
platform_early() method, but I don't see much point in it here. -Nathan Regards, Wojtek 2018-01-29 16:46 GMT+01:00 Nathan Whitehorn <nwhiteh...@freebsd.org <mailto:nwhiteh...@freebsd.org>>: Can you explain why this is necessary? Both functions are run in the same con

Re: svn commit: r328537 - in head/sys/powerpc: aim powernv

2018-01-29 Thread Nathan Whitehorn
Can you explain why this is necessary? Both functions are run in the same context and this way of doing things breaks important abstraction barriers. Since it also breaks booting on pHyp systems, I would appreciate it if you could revert this pending review. -Nathan On 01/29/18 01:27,

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

2018-01-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jan 29 04:33:41 2018 New Revision: 328530 URL: https://svnweb.freebsd.org/changeset/base/328530 Log: Remove hard-coded trap-handling logic involving the segmented memory model used with hashed page tables on AIM and place it into a new, modular pmap function

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

2018-01-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Jan 28 21:30:57 2018 New Revision: 328519 URL: https://svnweb.freebsd.org/changeset/base/328519 Log: Remove some unused AIM register declarations that existed to support some CPUs we have never run on. As a side-effect, removes some #ifdef AIM/#else. Modified:

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

2018-01-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 25 18:10:33 2018 New Revision: 328409 URL: https://svnweb.freebsd.org/changeset/base/328409 Log: Avoid all SLB operations in trap handling if the process is not using a software-managed SLB. Modified: head/sys/powerpc/powerpc/trap.c Modified:

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

2018-01-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 25 18:09:26 2018 New Revision: 328408 URL: https://svnweb.freebsd.org/changeset/base/328408 Log: Treat DSE exceptions like DSI exceptions when generating signinfo. Both can generate SIGSEGV, but DSEs would have put the wrong address into the siginfo

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

2018-01-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jan 19 22:19:50 2018 New Revision: 328179 URL: https://svnweb.freebsd.org/changeset/base/328179 Log: On AIM systems without a software-managed SLB, such as POWER9 systems using either hardware segment tables or radix-tree-based page tables, do not try to install

svn commit: r328178 - in head/sys: arm/include compat/linuxkpi/common/src i386/include sys

2018-01-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jan 19 22:17:13 2018 New Revision: 328178 URL: https://svnweb.freebsd.org/changeset/base/328178 Log: Define PHYS_TO_DMAP() and DMAP_TO_PHYS() as panics on the architectures (i386 and arm) that never implement them. This allows the removal of #ifdef PHYS_TO_DMAP

svn commit: r328168 - in head/sys: amd64/include arm/include arm64/include compat/linuxkpi/common/src dev/efidev i386/include kern mips/include powerpc/include riscv/include sparc64/include sys vm

2018-01-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jan 19 17:46:31 2018 New Revision: 328168 URL: https://svnweb.freebsd.org/changeset/base/328168 Log: Remove SFBUF_OPTIONAL_DIRECT_MAP and such hacks, replacing them across the kernel by PHYS_TO_DMAP() as previously present on amd64, arm64, riscv, and powerpc64.

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-18 Thread Nathan Whitehorn
On 01/18/18 07:35, Konstantin Belousov wrote: On Thu, Jan 18, 2018 at 07:24:11AM -0800, Nathan Whitehorn wrote: On 01/17/18 01:44, Konstantin Belousov wrote: On Tue, Jan 16, 2018 at 09:30:29PM -0800, Nathan Whitehorn wrote: On 01/16/18 11:32, Marius Strobl wrote: On Mon, Jan 15, 2018

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-18 Thread Nathan Whitehorn
On 01/17/18 01:44, Konstantin Belousov wrote: On Tue, Jan 16, 2018 at 09:30:29PM -0800, Nathan Whitehorn wrote: On 01/16/18 11:32, Marius Strobl wrote: On Mon, Jan 15, 2018 at 03:20:49PM -0800, Nathan Whitehorn wrote: On 01/15/18 09:53, Konstantin Belousov wrote: On Mon, Jan 15, 2018

Re: svn commit: r328078 - head/sys/powerpc/conf

2018-01-17 Thread Nathan Whitehorn
Please revert the AHCI removal. It works just fine on big-endian hardware and has for a long time -- I think the problem may be limited to you specific hardware. -Nathan On 01/17/18 01:33, Wojciech Macek wrote: Author: wma Date: Wed Jan 17 09:33:16 2018 New Revision: 328078 URL:

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-16 Thread Nathan Whitehorn
On 01/16/18 11:32, Marius Strobl wrote: On Mon, Jan 15, 2018 at 03:20:49PM -0800, Nathan Whitehorn wrote: On 01/15/18 09:53, Konstantin Belousov wrote: On Mon, Jan 15, 2018 at 09:32:56AM -0800, Nathan Whitehorn wrote: That seems fine to me. I don't think a less-clumsy way that does

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-15 Thread Nathan Whitehorn
On 01/15/18 15:42, Konstantin Belousov wrote: On Mon, Jan 15, 2018 at 03:20:49PM -0800, Nathan Whitehorn wrote: Fair enough. Here's a patch with a new flag (DIRECT_MAP_AVAILABLE). I've also retooled the sfbuf code to use this rather than its own flags that mean the same things. The sparc64

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-15 Thread Nathan Whitehorn
On 01/15/18 09:53, Konstantin Belousov wrote: On Mon, Jan 15, 2018 at 09:32:56AM -0800, Nathan Whitehorn wrote: That seems fine to me. I don't think a less-clumsy way that does not involve extra indirection is possible. The PHYS_TO_DMAP() returning NULL is about the best thing I can come up

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-15 Thread Nathan Whitehorn
On 01/15/18 09:06, Konstantin Belousov wrote: On Mon, Jan 15, 2018 at 07:33:01AM -0800, Nathan Whitehorn wrote: On 01/15/18 03:18, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 03:46:38PM -0800, Nathan Whitehorn wrote: On 01/14/18 15:42, Nathan Whitehorn wrote: On 01/14/18 09:57

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

2018-01-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jan 15 16:08:34 2018 New Revision: 328004 URL: https://svnweb.freebsd.org/changeset/base/328004 Log: Install the SLB miss trap-handling code in the SLB-based MMU driver set up, to which it is specific, rather than in the generic AIM startup code. This will be

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-15 Thread Nathan Whitehorn
On 01/15/18 03:18, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 03:46:38PM -0800, Nathan Whitehorn wrote: On 01/14/18 15:42, Nathan Whitehorn wrote: On 01/14/18 09:57, Nathan Whitehorn wrote: On 01/14/18 09:52, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 09:30:53AM -0800

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

2018-01-14 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jan 15 06:46:33 2018 New Revision: 327992 URL: https://svnweb.freebsd.org/changeset/base/327992 Log: Move the pmap-specific code in copyinout.c that gets pointers to userland buffers into a new pmap-module function pmap_map_user_ptr() that can be implemented by

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-14 Thread Nathan Whitehorn
On 01/14/18 15:42, Nathan Whitehorn wrote: On 01/14/18 09:57, Nathan Whitehorn wrote: On 01/14/18 09:52, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 09:30:53AM -0800, Nathan Whitehorn wrote: The immediate consequence of that is that no MI code that knows about direct maps can

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-14 Thread Nathan Whitehorn
On 01/14/18 09:57, Nathan Whitehorn wrote: On 01/14/18 09:52, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 09:30:53AM -0800, Nathan Whitehorn wrote: The immediate consequence of that is that no MI code that knows about direct maps can possibly take advantage of the direct map

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-14 Thread Nathan Whitehorn
On 01/14/18 09:52, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 09:30:53AM -0800, Nathan Whitehorn wrote: The immediate consequence of that is that no MI code that knows about direct maps can possibly take advantage of the direct map on this platform. Do we really want that to save some

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-14 Thread Nathan Whitehorn
On 01/14/18 09:05, Konstantin Belousov wrote: On Sun, Jan 14, 2018 at 08:06:19AM -0800, Nathan Whitehorn wrote: On 01/14/18 00:30, Konstantin Belousov wrote: On Sat, Jan 13, 2018 at 08:31:40PM -0800, Nathan Whitehorn wrote: On 01/13/18 15:28, Nathan Whitehorn wrote: On 01/13/18 15:24

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-14 Thread Nathan Whitehorn
On 01/14/18 00:30, Konstantin Belousov wrote: On Sat, Jan 13, 2018 at 08:31:40PM -0800, Nathan Whitehorn wrote: On 01/13/18 15:28, Nathan Whitehorn wrote: On 01/13/18 15:24, Konstantin Belousov wrote: On Sat, Jan 13, 2018 at 11:14:53PM +, Nathan Whitehorn wrote: +/* + * We (usually

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-13 Thread Nathan Whitehorn
On 01/13/18 15:28, Nathan Whitehorn wrote: On 01/13/18 15:24, Konstantin Belousov wrote: On Sat, Jan 13, 2018 at 11:14:53PM +, Nathan Whitehorn wrote: +/* + * We (usually) have a direct map of all physical memory. All + * uses of this macro must be gated by a check on hw_direct_map

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-13 Thread Nathan Whitehorn
On 01/13/18 15:24, Konstantin Belousov wrote: On Sat, Jan 13, 2018 at 11:14:53PM +, Nathan Whitehorn wrote: +/* + * We (usually) have a direct map of all physical memory. All + * uses of this macro must be gated by a check on hw_direct_map! + * The location of the direct map may not be 1

svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-13 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jan 13 23:14:53 2018 New Revision: 327950 URL: https://svnweb.freebsd.org/changeset/base/327950 Log: Document places we assume that physical memory is direct-mapped at zero by using a new macro PHYS_TO_DMAP, which deliberately has the same name as the equivalent

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

2018-01-12 Thread Nathan Whitehorn
Thanks, Justin! Since the fixup stuff is now only defined for FDT_MARVELL, it would be great if it could move to sys/arm/mv now instead of being in MI code. -Nathan On 01/12/18 18:56, Justin Hibbits wrote: Author: jhibbits Date: Sat Jan 13 02:56:09 2018 New Revision: 327907 URL:

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

2018-01-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jan 13 03:09:05 2018 New Revision: 327908 URL: https://svnweb.freebsd.org/changeset/base/327908 Log: Chase removal of FDT fixup code on PowerPC in r327907. Modified: head/sys/powerpc/ofw/ofw_machdep.c Modified: head/sys/powerpc/ofw/ofw_machdep.c

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

2018-01-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jan 9 19:41:10 2018 New Revision: 327736 URL: https://svnweb.freebsd.org/changeset/base/327736 Log: Add XHCI support to powerpc64 GENERIC. This is useful to get input devices supported on newer POWER hardware and in graphical VMs run on the same, which are

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

2018-01-04 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 4 23:07:51 2018 New Revision: 327566 URL: https://svnweb.freebsd.org/changeset/base/327566 Log: Revert r327360, which can cause boot problems on high-CPU-count (>60) POWER8 and POWER9 systems, pending further analysis. PR: 224841 Modified:

svn commit: r327487 - in head/usr.sbin/bsdinstall: partedit scripts

2018-01-01 Thread Nathan Whitehorn
bsdinstall checksum || error "Distribution checksum failed" bsdinstall distextract || error "Distribution extract failed" + +# Set up boot loader +bsdinstall bootconfig || error "Failed to configure bootloader" + bsdinstall rootpass || error "Could not

svn commit: r327486 - head/usr.sbin/bsdinstall/distextract

2018-01-01 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jan 2 05:22:54 2018 New Revision: 327486 URL: https://svnweb.freebsd.org/changeset/base/327486 Log: Skip errors from being unable to set modification and creation times. If one of the directories in the filesystem hierarchy is a FAT mountpoint, settings its

svn commit: r327484 - head/sys/powerpc/ps3

2018-01-01 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jan 2 03:59:46 2018 New Revision: 327484 URL: https://svnweb.freebsd.org/changeset/base/327484 Log: Fix reversed endianness that crept in at some point. Blue is now blue instead of pink. MFC after:3 days Modified: head/sys/powerpc/ps3/ps3_syscons.c

svn commit: r327456 - head/release/powerpc

2017-12-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jan 1 03:33:01 2018 New Revision: 327456 URL: https://svnweb.freebsd.org/changeset/base/327456 Log: After removal of loader.ps3, change petitboot configuration in release media to directly kexec the kernel. Unlike the old loader.ps3 code, this also works on

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

2017-12-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 20:23:39 2017 New Revision: 327445 URL: https://svnweb.freebsd.org/changeset/base/327445 Log: Remove PIR from PCPU data. It has an implementation-defined meaning that is of limited utility outside of platform-specific code and can vary at runtime when

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

2017-12-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 20:20:55 2017 New Revision: 327443 URL: https://svnweb.freebsd.org/changeset/base/327443 Log: Fix 32-bit build. Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c

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

2017-12-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 20:10:08 2017 New Revision: 327442 URL: https://svnweb.freebsd.org/changeset/base/327442 Log: Make newer binutils happy by using a bl-type branch instead of b, which displeases it for some reason. LR is not relevant in this code, so just do what it wants.

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

2017-12-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 20:08:16 2017 New Revision: 327441 URL: https://svnweb.freebsd.org/changeset/base/327441 Log: Provide relative, as well as absolute, addresses in trap panic panics. This makes it easier to cross-correlate them with instruction listings without worrying

svn commit: r327418 - head/sys/powerpc/ps3

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 06:10:07 2017 New Revision: 327418 URL: https://svnweb.freebsd.org/changeset/base/327418 Log: Use data from the boot loader to pick the appropriate output graphics mode instead of hard-coding a default. This information is passed implicitly by the PS3

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

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 03:13:45 2017 New Revision: 327405 URL: https://svnweb.freebsd.org/changeset/base/327405 Log: Teach bsdinstall partedit/sade how to format FAT partitions on GPT, which have the partition type code "ms-basic-data". MFC after:2 weeks Modified:

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

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 31 05:38:19 2017 New Revision: 327417 URL: https://svnweb.freebsd.org/changeset/base/327417 Log: Make sure the first instruction of the low-memory spinloop is in the cacheline being invalidated. MFC after:1 month Modified:

svn commit: r327391 - head/sys/dev/ofw

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 30 20:28:29 2017 New Revision: 327391 URL: https://svnweb.freebsd.org/changeset/base/327391 Log: Avoid use of the fdt_get_property_*() API, which is intrinsically incompatible with FDT versions < 16. This also simplifies the code a bit. MFC after:1

svn commit: r327390 - head/stand/powerpc/ps3

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 30 20:27:13 2017 New Revision: 327390 URL: https://svnweb.freebsd.org/changeset/base/327390 Log: Garbage-collect loader.ps3. It is currently disconnected from the build and is superseded by either direct loading of the kernel by petitboot (soon to become the

  1   2   3   4   5   6   7   8   9   10   >