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 Mod

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 int

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

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 Piotrow

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 probl

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

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 bus

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 abou

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

2017-11-27 Thread Nathan Whitehorn
On 11/27/17 10:06, Andrew Turner wrote: On 26 Nov 2017, at 17:07, Nathan Whitehorn wrote: On 11/26/17 01:46, Andrew Turner wrote: On 25 Nov 2017, at 23:41, Nathan Whitehorn wrote: Author: nwhitehorn Date: Sat Nov 25 23:41:05 2017 New Revision: 326218 URL: https://svnweb.freebsd.org

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

2017-11-27 Thread Nathan Whitehorn
On 11/27/17 11:31, John Baldwin wrote: On Sunday, November 26, 2017 10:06:56 PM Nathan Whitehorn wrote: On 11/26/17 20:50, John Baldwin wrote: On Saturday, November 25, 2017 11:41:05 PM Nathan Whitehorn wrote: Author: nwhitehorn Date: Sat Nov 25 23:41:05 2017 New Revision: 326218 URL: https

svn commit: r326308 - head/sys/kern

2017-11-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Nov 28 05:39:48 2017 New Revision: 326308 URL: https://svnweb.freebsd.org/changeset/base/326308 Log: Remove assertion that a CPU be present before returning a PCPU for it. It is up to the caller to check for a NULL return value. The assert was meant to catch bugg

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

2017-11-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Nov 28 06:31:39 2017 New Revision: 326310 URL: https://svnweb.freebsd.org/changeset/base/326310 Log: Back out OF module installation in the event of failure. PS3 firmware gives some ancient FDT version (2) that fails the init check in OFW_FDT. It is still possibl

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

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

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

2017-11-28 Thread Nathan Whitehorn
On 11/28/17 08:23, Justin Hibbits wrote: On Tue, Nov 28, 2017 at 10:13 AM, Nathan Whitehorn wrote: On 11/28/17 07:27, Justin Hibbits wrote: On Sat, Nov 25, 2017 at 3:45 PM, Nathan Whitehorn wrote: Author: nwhitehorn Date: Sat Nov 25 21:45:51 2017 New Revision: 326203 URL: https

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

2017-12-07 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Dec 8 00:57:13 2017 New Revision: 326674 URL: https://svnweb.freebsd.org/changeset/base/326674 Log: Support mounted boot partitions in the installer. This allows the platform layer, for example, to specify that the EFI boot partition should be mounted at /efi an

Re: svn commit: r326773 - in head/sys: conf dev/syscon

2017-12-11 Thread Nathan Whitehorn
I think this name might confuse people looking for "syscons". Can it be renamed? Also, if it is ARM-specific, maybe it belongs in sys/arm? -Nathan On 12/11/17 10:04, Kyle Evans wrote: Author: kevans Date: Mon Dec 11 18:04:04 2017 New Revision: 326773 URL: https://svnweb.freebsd.org/changeset/ba

svn commit: r326978 - head/sys/conf

2017-12-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Dec 19 15:50:46 2017 New Revision: 326978 URL: https://svnweb.freebsd.org/changeset/base/326978 Log: Make __startkernel line up with KERNBASE, so that the math to compute the applied relocation offset in link_elf.c works as intended. We may want to revisit how th

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

2017-12-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Dec 19 16:45:40 2017 New Revision: 326981 URL: https://svnweb.freebsd.org/changeset/base/326981 Log: The highest-order bit of the bootloader cookie is 1, with the result that the 32-bit cookie can be sign-extended on its way out of the loader and through Open Fir

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-19 Thread Nathan Whitehorn
On 12/12/17 11:32, John Baldwin wrote: On 12/11/17 5:26 AM, Eugene Grosbein wrote: On 11.12.2017 16:19, Konstantin Belousov wrote: On Mon, Dec 11, 2017 at 04:32:37AM +, Conrad Meyer wrote: Author: cem Date: Mon Dec 11 04:32:37 2017 New Revision: 326758 URL: https://svnweb.freebsd.org/cha

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-20 Thread Nathan Whitehorn
On 12/20/17 09:14, John Baldwin wrote: On Wednesday, December 20, 2017 09:59:26 AM David Chisnall wrote: On 16 Dec 2017, at 18:05, John Baldwin wrote: When I build a FreeBSD/mips64 kernel with clang, _any_ simple NFS op triggers a kernel stack overflow. Kernels compiled with GCC do not. Th

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

2017-12-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Dec 28 01:21:30 2017 New Revision: 327258 URL: https://svnweb.freebsd.org/changeset/base/327258 Log: Fix bug introduced in r326674, in which efi boot partitions created by the installer but not mounted (i.e. with boot1.efifat dd'ed to them rather than the forthco

svn commit: r327318 - in head/sys: conf powerpc/ofw

2017-12-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Dec 28 23:49:53 2017 New Revision: 327318 URL: https://svnweb.freebsd.org/changeset/base/327318 Log: Remove ELF note for Open Firmware. It is marked optional in a single 1996 draft of a never-finalized standard (CHRP) and is irrelevant in practice on FreeBSD sinc

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

2017-12-29 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Dec 29 20:25:15 2017 New Revision: 327357 URL: https://svnweb.freebsd.org/changeset/base/327357 Log: Maintain alignment of in-code 64-bit quantities by design rather than luck. If these are not aligned, the linker has to emit a different type of relocation that t

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

2017-12-29 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Dec 29 20:30:10 2017 New Revision: 327358 URL: https://svnweb.freebsd.org/changeset/base/327358 Log: Add support for 64-bit PowerPC kernels to be directly loaded by kexec, which is used as the bootloader on a number of PPC64 platforms. This involves the following

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

2017-12-29 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Dec 29 21:09:17 2017 New Revision: 327360 URL: https://svnweb.freebsd.org/changeset/base/327360 Log: Enhance the CHRP/pSeries platform layer: - Densely number CPUs to avoid systems with CPUs with very high ID numbers - Always have the BSP be CPU 0 to avoid remnan

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

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 30 20:23:14 2017 New Revision: 327387 URL: https://svnweb.freebsd.org/changeset/base/327387 Log: Check more aggressively for whether the desired properties actually exist. If they don't, the code would look up some random part of the device tree and seize the

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

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 30 20:24:33 2017 New Revision: 327388 URL: https://svnweb.freebsd.org/changeset/base/327388 Log: Change the way SMP startup works to match the new multi-AP features in locore64.S introduced in r327358. MFC after:3 weeks Modified: head/sys/powerpc/ps

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

2017-12-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 30 20:25:33 2017 New Revision: 327389 URL: https://svnweb.freebsd.org/changeset/base/327389 Log: Remove logic for early console with loader.ps3 now that loader.ps3 is dead. Modified: head/sys/powerpc/ps3/mmu_ps3.c Modified: head/sys/powerpc/ps3/mmu_ps3.c

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

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 mon

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

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

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 firm

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 abo

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

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 Powe

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 Mo

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 time

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

2018-01-01 Thread Nathan Whitehorn
-377,6 +377,10 @@ fi 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 || erro

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

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 typic

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 =

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: https://svnweb

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

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

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

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 t

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

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

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 co

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

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 doe

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: https://svnweb

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 at

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 at

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

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 o

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

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

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

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 call

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

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

2018-01-30 Thread Nathan Whitehorn
e could add another 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 <mailto:nwhiteh...@freebsd.org>>: Can you explain why this is necessary? Both functions are run in the same conte

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

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

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

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

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

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 he

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

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 >

Re: svn commit: r324732 - head/usr.sbin/jail

2017-10-18 Thread Nathan Whitehorn
Is this even true? Don't you want to run bsdconfig? We split that functionality out from the installer when sysinstall was replaced. -Nathan On 10/18/17 15:56, Benjamin Kaduk wrote: Author: bjk (doc committer) Date: Wed Oct 18 22:56:46 2017 New Revision: 324732 URL: https://svnweb.freebsd.org/c

Re: svn commit: r325688 - head/sys/boot/powerpc/ps3

2017-11-10 Thread Nathan Whitehorn
The PS3 port *does* support FDT, though not through this loader. On a related note, I'm planning to just svn rm loader.ps3 in the next few weeks. -Nathan On 11/10/17 15:54, Warner Losh wrote: Author: imp Date: Fri Nov 10 23:54:18 2017 New Revision: 325688 URL: https://svnweb.freebsd.org/changes

svn commit: r326171 - in head/sys: arm/xscale/ixp425 contrib/dev/npe

2017-11-24 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 24 15:48:17 2017 New Revision: 326171 URL: https://svnweb.freebsd.org/changeset/base/326171 Log: Switch the default firmware for npe(4) from the QOS_VLAN one to the plain-vanilla ETH microcode. The QOS_VLAN firmware added support in microcode for handling IEE

svn commit: r326182 - in head/stand: ofw/libofw powerpc/kboot powerpc/ps3

2017-11-24 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 24 23:41:04 2017 New Revision: 326182 URL: https://svnweb.freebsd.org/changeset/base/326182 Log: Modify all FreeBSD bootloaders on PowerPC AIM (Book-S) systems to pass a magic number to the kernel in r7 rather than the (currently unused and irrelevant) width

svn commit: r326202 - head/sys/conf

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:44:23 2017 New Revision: 326202 URL: https://svnweb.freebsd.org/changeset/base/326202 Log: Automatically use the ELFv2 ABI on powerpc64 if supported by the compiler. This has the same effects on DDB working as -mcall=aixdesc, but also is supported by cl

svn commit: r326203 - head/sys/conf

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:45:51 2017 New Revision: 326203 URL: https://svnweb.freebsd.org/changeset/base/326203 Log: Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for the first instruction to be at the start of the text segment. This allows the kernel to b

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:46:51 2017 New Revision: 326204 URL: https://svnweb.freebsd.org/changeset/base/326204 Log: Do not bind to CPUs with SMT, which use a different CPU numbering convention that does not play well with this driver. MFC after:2 weeks Modified: head/

svn commit: r326205 - in head/sys/powerpc: aim include mpc85xx powermac powerpc

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:59:59 2017 New Revision: 326205 URL: https://svnweb.freebsd.org/changeset/base/326205 Log: Whether you can use mttb() or not is more complicated than whether PSL_HV is set and the right thing to do may be platform-dependent (it requires firmware on Powe

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:01:55 2017 New Revision: 326206 URL: https://svnweb.freebsd.org/changeset/base/326206 Log: Yield while spinning on APs and avoid announcing all CPUs unless bootverbose is set. These improve startup performance on massively multithreaded systems with 8-w

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:03:25 2017 New Revision: 326207 URL: https://svnweb.freebsd.org/changeset/base/326207 Log: Preserve the LPCR on new-ish (POWER7 and POWER8) CPUs, preventing exceptions and such from ending on the wrong CPU on SMP systems. It would be good to have this b

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:05:05 2017 New Revision: 326208 URL: https://svnweb.freebsd.org/changeset/base/326208 Log: Make n_slbs public in a more straightforward way. Some platforms (like PowerNV) use firmware-assisted mechanisms to discover it and need access to the variable.

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:06:40 2017 New Revision: 326209 URL: https://svnweb.freebsd.org/changeset/base/326209 Log: Missed platform_smp_timebase_sync() in r326205. MFC after:3 weeks X-MFC-With: r326205 Modified: head/sys/powerpc/aim/aim_machdep.c Modified: head/sys

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:08:40 2017 New Revision: 326210 URL: https://svnweb.freebsd.org/changeset/base/326210 Log: Definitions for registers and trap types found on new POWER CPUs. MFC after:3 weeks Modified: head/sys/powerpc/include/spr.h head/sys/powerpc/include/tr

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:10:10 2017 New Revision: 326211 URL: https://svnweb.freebsd.org/changeset/base/326211 Log: Invalidate TLB at boot using the correct IS settings on newer-than-POWER5 CPUs. MFC after:3 weeks Modified: head/sys/powerpc/aim/moea64_native.c Modifi

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:13:19 2017 New Revision: 326212 URL: https://svnweb.freebsd.org/changeset/base/326212 Log: Allow platform modules to set the size of large pizes, as potentially discovered from firmware, and better handle highly-discontiguous memory and CPU maps. M

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:14:30 2017 New Revision: 326213 URL: https://svnweb.freebsd.org/changeset/base/326213 Log: When booting from an FDT, make sure the FDT itself isn't included the range of available memory. Boot loaders are supposed to add a reserved entry for it, but not

  1   2   3   4   5   6   7   8   9   10   >