svn commit: r213892 - head

2010-10-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Oct 15 14:34:34 2010 New Revision: 213892 URL: http://svn.freebsd.org/changeset/base/213892 Log: Prevent the ofwdump manpage from being deleted by make delete-old on PowerPC. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

svn commit: r213986 - head/sys/kern

2010-10-17 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 17 17:31:49 2010 New Revision: 213986 URL: http://svn.freebsd.org/changeset/base/213986 Log: Fix an XXX comment by answering 'no'. OS X does not set the day-of-week counter on SMU-based systems, which causes FreeBSD to reject the RTC time when used in a

svn commit: r214493 - in head/sys/boot/ofw: common libofw

2010-10-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Oct 28 23:46:05 2010 New Revision: 214493 URL: http://svn.freebsd.org/changeset/base/214493 Log: Fix some memory management issues discovered when trying to boot the PPC OF loader on systems where address cells and size cells are both 2 (the Mambo simulator) and

svn commit: r214494 - head/sys/boot/ofw/libofw

2010-10-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Oct 29 00:36:44 2010 New Revision: 214494 URL: http://svn.freebsd.org/changeset/base/214494 Log: Fix netboot on some Apple machines on which calling dma-free on the network device can hang the machine. This causes the loss of 64 KB of accessible memory on

svn commit: r214495 - head/sys/boot/ofw/common

2010-10-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Oct 29 00:37:35 2010 New Revision: 214495 URL: http://svn.freebsd.org/changeset/base/214495 Log: Fix the printf() in init_heap so that it can run before the console is up. Pointed out by: marius Modified: head/sys/boot/ofw/common/main.c Modified:

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

2010-10-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Oct 30 23:07:30 2010 New Revision: 214574 URL: http://svn.freebsd.org/changeset/base/214574 Log: Restructure the way the copyin/copyout segment is stored to prevent a concurrency bug. Since all SLB/SR entries were invalidated during an exception, a decrementer

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

2010-10-30 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Oct 30 23:09:56 2010 New Revision: 214575 URL: http://svn.freebsd.org/changeset/base/214575 Log: Allow access to the HT I/O port space on the IBM CPC9X5 northbridge chips. MFC after:2 weeks Modified: head/sys/powerpc/powermac/cpcht.c Modified:

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

2010-10-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 31 15:07:09 2010 New Revision: 214601 URL: http://svn.freebsd.org/changeset/base/214601 Log: Add some missing parentheses so that moea_bat_mapped() actually works. Submitted by: alc MFC after:3 days Modified: head/sys/powerpc/aim/mmu_oea.c

svn commit: r214603 - in head/sys: conf dev/agp modules modules/agp powerpc/conf

2010-10-31 Thread Nathan Whitehorn
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/agp/agp_apple.cSun Oct 31 18:27:05 2010 (r214603) @@ -0,0 +1,302 @@ +/*- + * Copyright (c) 2010 Nathan Whitehorn + * All

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

2010-10-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 31 22:55:51 2010 New Revision: 214607 URL: http://svn.freebsd.org/changeset/base/214607 Log: Next-to-leading-order perturbation of synchronization operations for switching the user segment register. All races should now be closed and a minimum of pipelines

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

2010-10-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 31 23:04:15 2010 New Revision: 214610 URL: http://svn.freebsd.org/changeset/base/214610 Log: Add a security nit to recent copyin/out changes: map the user segment no-execute in case of exploitable kernel bugs. MFC after:1 week Modified:

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

2010-11-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Nov 3 15:15:48 2010 New Revision: 214739 URL: http://svn.freebsd.org/changeset/base/214739 Log: Clean up the user segment handling code a little more. Now that set_user_sr() itself caches the user segment VSID, there is no need for cpu_switch() to do it again.

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

2010-11-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Nov 3 16:21:47 2010 New Revision: 214749 URL: http://svn.freebsd.org/changeset/base/214749 Log: Fix two mistakes on 32-bit systems. The slbmte code in syscall() is 64-bit only, and should be protected with an ifdef, and the no-execute bit in 32-bit

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

2010-11-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Nov 8 19:53:16 2010 New Revision: 214999 URL: http://svn.freebsd.org/changeset/base/214999 Log: Provide support for IIC_M_NOSTOP/IIC_M_NOSTART for bit-banging and otherwise low-level controllers. Reviewed by: thompsa Modified:

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

2010-11-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Nov 9 19:45:29 2010 New Revision: 215049 URL: http://svn.freebsd.org/changeset/base/215049 Log: Make all OF client interface calls return the maximum kind of does-not-exist error when no client interface module is installed instead of dereferencing NULL

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

2010-11-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Nov 9 23:53:47 2010 New Revision: 215067 URL: http://svn.freebsd.org/changeset/base/215067 Log: Make AIM early-boot code function correctly without Open Firmware. Modified: head/sys/powerpc/aim/mmu_oea64.c head/sys/powerpc/aim/nexus.c

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

2010-11-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Nov 10 20:09:05 2010 New Revision: 215100 URL: http://svn.freebsd.org/changeset/base/215100 Log: Disabling CPU NAP modes during SMU commands is a hack needed only on U3 systems. Don't use it on non-U3 systems to allow cpu_idle() to work correctly. Modified:

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

2010-11-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Nov 10 20:28:10 2010 New Revision: 215101 URL: http://svn.freebsd.org/changeset/base/215101 Log: Entering deep nap mode on the 970MP requires that both MSR[NAP] and MSR[DEEPNAP] be set, not just MSR[DEEPNAP]. Fixing this reduces the idle temperature of my CPUs

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

2010-11-10 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Nov 11 02:40:00 2010 New Revision: 215107 URL: http://svn.freebsd.org/changeset/base/215107 Log: Add support for the IMISS, DLMISS, and DSMISS traps required to run FreeBSD on a G2 core. PR: powerpc/111296 Submitted by: Andrew Turner Modified:

svn commit: r215157 - in head/sys/powerpc: aim booke powerpc

2010-11-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 03:43:22 2010 New Revision: 215157 URL: http://svn.freebsd.org/changeset/base/215157 Log: Centralize CPU idle routines into powerpc/cpu.c and use the same cpu_idle_hook mechanism that x86 uses for overriding the idle routine. This is required for

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

2010-11-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 04:13:48 2010 New Revision: 215158 URL: http://svn.freebsd.org/changeset/base/215158 Log: Fix an error in r215067. An existing /chosen/mmu but missing translations property just means we shouldn't add any translations, not that we should panic. Modified:

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

2010-11-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 04:18:19 2010 New Revision: 215159 URL: http://svn.freebsd.org/changeset/base/215159 Log: Add some platform KOBJ extensions and continue integrating PowerPC hypervisor infrastructure support: - Fix coexistence of multiple platform modules in the same

svn commit: r215160 - in head/sys/powerpc: aim powerpc

2010-11-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 04:22:00 2010 New Revision: 215160 URL: http://svn.freebsd.org/changeset/base/215160 Log: Remove or conditionalize some hypervisor-unfriendly instruction sequences. Modified: head/sys/powerpc/aim/mmu_oea64.c head/sys/powerpc/powerpc/mp_machdep.c

svn commit: r215163 - in head/sys: conf powerpc/aim powerpc/ofw

2010-11-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 05:12:38 2010 New Revision: 215163 URL: http://svn.freebsd.org/changeset/base/215163 Log: Remove use of a separate ofw_pmap on 32-bit CPUs. Many Open Firmware mappings need to end up in the kernel anyway since the kernel begins executing in OF context.

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

2010-11-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 15:20:10 2010 New Revision: 215182 URL: http://svn.freebsd.org/changeset/base/215182 Log: Add CPU support code for the IBM Cell Broadband Engine. Modified: head/sys/powerpc/aim/mp_cpudep.c head/sys/powerpc/include/cpufunc.h

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

2010-11-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Nov 12 20:26:34 2010 New Revision: 215197 URL: http://svn.freebsd.org/changeset/base/215197 Log: Partially revert r215182. There appears to be a silicon bug on the 970 that causes AP bringup to fail if some of the Cell HID-register code is anywhere in the

svn commit: r215351 - head/gnu/usr.bin/binutils

2010-11-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Nov 15 22:11:18 2010 New Revision: 215351 URL: http://svn.freebsd.org/changeset/base/215351 Log: Try including Makefile.${TARGET_ARCH} before Makefile.${TARGET_CPUARCH} if it exists in order to allow arch-specific overrides. This fixes the binutils (and world)

svn commit: r215352 - in head/gnu/usr.bin/binutils: as as/powerpc64-freebsd libbfd libopcodes

2010-11-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Nov 15 22:12:13 2010 New Revision: 215352 URL: http://svn.freebsd.org/changeset/base/215352 Log: Garbage-collect some code made obsolete by the TBEMD import. Deleted: head/gnu/usr.bin/binutils/as/powerpc64-freebsd/

svn commit: r215367 - head/sys/dev/drm

2010-11-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Nov 16 03:43:06 2010 New Revision: 215367 URL: http://svn.freebsd.org/changeset/base/215367 Log: Make drm(4) build, if not work reliably, on PowerPC. Modified: head/sys/dev/drm/drmP.h head/sys/dev/drm/drm_agpsupport.c head/sys/dev/drm/drm_drv.c

svn commit: r215752 - head/usr.bin/locate/locate

2010-11-23 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Nov 23 15:08:56 2010 New Revision: 215752 URL: http://svn.freebsd.org/changeset/base/215752 Log: Properly use SCHAR_MAX instead of CHAR_MAX for 0x7f. This fixes operation of locate(1) on systems on which char is unsigned by default (ARM and PowerPC).

svn commit: r216113 - head/gnu/usr.bin/cc

2010-12-01 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Dec 2 04:58:07 2010 New Revision: 216113 URL: http://svn.freebsd.org/changeset/base/216113 Log: The driver-XXX.c files used for host CPU detection with -march=native should not be compiled in the cross-tools case (where -march=native makes no sense). This fixes

svn commit: r216127 - head/gnu/usr.bin/cc

2010-12-02 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Dec 2 17:36:47 2010 New Revision: 216127 URL: http://svn.freebsd.org/changeset/base/216127 Log: Unbreak amd64-i386 cross builds. Modified: head/gnu/usr.bin/cc/Makefile.fe Modified: head/gnu/usr.bin/cc/Makefile.fe

svn commit: r216154 - in head/sys: conf powerpc/include powerpc/powerpc

2010-12-03 Thread Nathan Whitehorn
/powerpc/iommu_if.m Fri Dec 3 16:37:37 2010 (r216154) @@ -0,0 +1,54 @@ +#- +# Copyright (c) 2010 Nathan Whitehorn +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met

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

2010-12-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 4 02:42:52 2010 New Revision: 216174 URL: http://svn.freebsd.org/changeset/base/216174 Log: Add an abstraction layer to the 64-bit AIM MMU's page table manipulation logic to support modifying the page table through a hypervisor. This uses KOBJ inheritance

svn commit: r216381 - head/lib/libc/powerpc64/sys

2010-12-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 11 17:57:42 2010 New Revision: 216381 URL: http://svn.freebsd.org/changeset/base/216381 Log: Fix stack alignment (required to be to 16 bytes) instead of ptrace and cerror on powerpc64. Modified: head/lib/libc/powerpc64/sys/cerror.S

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

2010-12-11 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 11 20:29:52 2010 New Revision: 216383 URL: http://svn.freebsd.org/changeset/base/216383 Log: Add some isync()s related to the 64-bit MMU scratch page to avoid race conditions on its invalidation. Modified: head/sys/powerpc/aim/mmu_oea64.c

svn commit: r216469 - head/release/powerpc

2010-12-15 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Dec 15 23:43:25 2010 New Revision: 216469 URL: http://svn.freebsd.org/changeset/base/216469 Log: Fix the overflowing livefs ISO by removing man pages from the HFS part of the hybrid disk. This is a stopgap until a better solution can be found, but lets the

Re: svn commit: r216473 - head/sbin/geom/class/eli

2010-12-17 Thread Nathan Whitehorn
On 12/16/10 13:04, Robert Watson wrote: On Thu, 16 Dec 2010, David O'Brien wrote: Log: Bump WARNS to 6. Modified: head/sbin/geom/class/eli/Makefile FYI, this broke the tinderbox on arm, ia64, mips, and sparc64. Errr. Reverted. I built it on the architectures I had access to... For

svn commit: r216520 - head

2010-12-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Dec 18 14:34:05 2010 New Revision: 216520 URL: http://svn.freebsd.org/changeset/base/216520 Log: Reconnect arm to the universe build, and connect big-endian MIPS and ARM and powerpc64 to universe for the first time. In general, provide (slightly hacky) knowledge

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

2010-12-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Dec 19 16:07:53 2010 New Revision: 216563 URL: http://svn.freebsd.org/changeset/base/216563 Log: Garbage-collect unused variable. Modified: head/sys/powerpc/aim/mmu_oea.c head/sys/powerpc/aim/mmu_oea64.c Modified: head/sys/powerpc/aim/mmu_oea.c

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

2010-12-20 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Dec 20 14:25:01 2010 New Revision: 216589 URL: http://svn.freebsd.org/changeset/base/216589 Log: Memory can be laid out with large gaps on 64-bit PowerPC, so switch to VM_PHYSSEG_SPARSE. Modified: head/sys/powerpc/include/vmparam.h Modified:

svn commit: r216662 - head/share/mk

2010-12-22 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Dec 22 14:59:22 2010 New Revision: 216662 URL: http://svn.freebsd.org/changeset/base/216662 Log: Enable build of FDT components by default. dtc is a required build tool for all FDT-enabled kernels, and having it off by default means that building these kernels

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

2010-12-22 Thread Nathan Whitehorn
On 12/22/10 10:18, Bjoern A. Zeeb wrote: On Wed, 22 Dec 2010, Nathan Whitehorn wrote: Author: nwhitehorn Date: Wed Dec 22 14:59:22 2010 New Revision: 216662 URL: http://svn.freebsd.org/changeset/base/216662 Log: Enable build of FDT components by default. dtc is a required build tool for all

svn commit: r216671 - head/sys/mips/conf

2010-12-22 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Dec 22 19:01:48 2010 New Revision: 216671 URL: http://svn.freebsd.org/changeset/base/216671 Log: Include std.sentry5 from the SENTRY5 kernel configuration. This was apparently missed in r215270. Modified: head/sys/mips/conf/SENTRY5 Modified:

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

2010-12-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Dec 28 17:02:15 2010 New Revision: 216765 URL: http://svn.freebsd.org/changeset/base/216765 Log: Only keep track of PTE validity statistics for pages not locked in the table. The 'locked' attribute is used to circumvent the regular page table locking for some

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

2010-12-28 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Dec 28 22:31:59 2010 New Revision: 216780 URL: http://svn.freebsd.org/changeset/base/216780 Log: Fix an error in the ABI in rtld_bind_start(). When passing arguments to a C function, the caller's stack frame must have room to store all of the arguments to that

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

2011-01-03 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jan 3 23:11:52 2011 New Revision: 216939 URL: http://svn.freebsd.org/changeset/base/216939 Log: Add support for R_PPC64_UADDR64 relocations. Modified: head/libexec/rtld-elf/powerpc64/reloc.c Modified: head/libexec/rtld-elf/powerpc64/reloc.c

Re: svn commit: r216977 - in head/libexec/rtld-elf: amd64 i386

2011-01-05 Thread Nathan Whitehorn
On 01/05/11 08:28, John Baldwin wrote: On Wednesday, January 05, 2011 8:36:06 am Dimitry Andric wrote: On 2011-01-05 13:59, John Baldwin wrote: Why not to add NO_HWFLOAT knob (or similar) into makefile infrastructure. And set CFLAGS accordingly, depending on CC, arch, etc. These flags are

svn commit: r217040 - head/sys/geom/part

2011-01-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 6 03:36:04 2011 New Revision: 217040 URL: http://svn.freebsd.org/changeset/base/217040 Log: Add an entry to the gpart XML to determine if the geom has pending changes that need to be committed (or undone). MFC after:2 weeks Modified:

svn commit: r217044 - in head/sys: boot/powerpc boot/powerpc/ps3 conf powerpc/conf powerpc/include powerpc/ps3

2011-01-05 Thread Nathan Whitehorn
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/boot/powerpc/ps3/lv1call.S Thu Jan 6 04:12:29 2011 (r217044) @@ -0,0 +1,256 @@ +/*- + * Copyright (C) 2010 Nathan Whitehorn + * All rights

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

2011-01-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jan 6 14:12:24 2011 New Revision: 217054 URL: http://svn.freebsd.org/changeset/base/217054 Log: Unbreak the LINT build. PS3 kernels can only be built 64-bit, and LINT is built for both architectures. We need a better solution here. Modified:

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

2011-01-06 Thread Nathan Whitehorn
On 01/06/11 09:07, John Baldwin wrote: On Thursday, January 06, 2011 9:12:24 am Nathan Whitehorn wrote: Author: nwhitehorn Date: Thu Jan 6 14:12:24 2011 New Revision: 217054 URL: http://svn.freebsd.org/changeset/base/217054 Log: Unbreak the LINT build. PS3 kernels can only be built 64-bit

svn commit: r217163 - head/sys/kern

2011-01-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jan 8 19:50:13 2011 New Revision: 217163 URL: http://svn.freebsd.org/changeset/base/217163 Log: Make RB_CDROM work. This should probably check for a disc in cd1 and acd1 as well. Modified: head/sys/kern/vfs_mountroot.c Modified: head/sys/kern/vfs_mountroot.c

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

2012-09-23 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Sep 23 17:33:16 2012 New Revision: 240860 URL: http://svn.freebsd.org/changeset/base/240860 Log: Move the prototype for savectx from cpu.h to pcb.h, as it is on other platforms, as well as putting it in an #ifdef KERNEL block. MFC after:2 weeks Modified:

svn commit: r242179 - head/sys/modules

2012-10-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Oct 27 16:07:38 2012 New Revision: 242179 URL: http://svn.freebsd.org/changeset/base/242179 Log: drm(4) works just fine on PowerPC, so connect it to the build. MFC after:2 weeks Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

svn commit: r242197 - head/sys/modules/drm/via

2012-10-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Oct 27 23:14:37 2012 New Revision: 242197 URL: http://svn.freebsd.org/changeset/base/242197 Log: Don't try to build Linux compatibility stuff on platforms without COMPAT_LINUX. Modified: head/sys/modules/drm/via/Makefile Modified:

svn commit: r242203 - in head/sys/modules/drm: r128 radeon via

2012-10-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 28 02:15:35 2012 New Revision: 242203 URL: http://svn.freebsd.org/changeset/base/242203 Log: Extend dim's hack from r228978: not only clang but gcc on non-x86 platforms warns about unused variables in this code, so always add -Wno-unused to the warning

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

2012-10-29 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Oct 29 14:27:28 2012 New Revision: 242315 URL: http://svn.freebsd.org/changeset/base/242315 Log: Work around broken device tree on last-generation PowerPC iMacs (PowerMac12,1), which have a mac-io MPIC cell that indifies itself as the root PIC despite the actual

svn commit: r208149 - in head/sys: conf dev/pci powerpc/include powerpc/powermac powerpc/powerpc

2010-05-16 Thread Nathan Whitehorn
(r208149) @@ -1,5 +1,5 @@ /*- - * Copyright (C) 2008 Nathan Whitehorn + * Copyright (C) 2008-2010 Nathan Whitehorn * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -39,7 +39,9 @@ #include dev/pci/pcireg.h #include machine/bus.h

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

2010-05-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 16 15:21:13 2010 New Revision: 208150 URL: http://svn.freebsd.org/changeset/base/208150 Log: On SMP G5 systems, sometimes the power-mode-data property is only found on CPU 0, so look there if it is not otherwise available. Modified:

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

2010-05-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 16 19:57:38 2010 New Revision: 208167 URL: http://svn.freebsd.org/changeset/base/208167 Log: Enable smu(4) to report fan speeds on late-model Powermac G5s. Modified: head/sys/powerpc/powermac/smu.c Modified: head/sys/powerpc/powermac/smu.c

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

2010-05-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 16 20:31:31 2010 New Revision: 208168 URL: http://svn.freebsd.org/changeset/base/208168 Log: It is not necessary (and in some cases harmful) to hardcode ata_kauai's IRQ to 39 on K2 devices, as well as Shasta ones. Reported by: Andreas Tobler Modified:

Re: svn commit: r208152 - in head/sys: dev/ofw powerpc/aim powerpc/ofw

2010-05-16 Thread Nathan Whitehorn
On 05/16/10 16:38, Marius Strobl wrote: On Sun, May 16, 2010 at 03:57:00PM +, Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun May 16 15:56:59 2010 New Revision: 208152 URL: http://svn.freebsd.org/changeset/base/208152 Log: On PowerMac11,2 and (presumably) PowerMac12,1, we need

svn commit: r208172 - in head/sys: dev/ofw powerpc/aim powerpc/ofw

2010-05-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 16 22:01:43 2010 New Revision: 208172 URL: http://svn.freebsd.org/changeset/base/208172 Log: Pull OF_quiesce() out of the MI Open Firmware layer and entirely into PPC ofw_machdep.c, in recognition of its state as a machine specific hack. Requested by:

Re: svn commit: r208152 - in head/sys: dev/ofw powerpc/aim powerpc/ofw

2010-05-16 Thread Nathan Whitehorn
On 05/16/10 16:47, Nathan Whitehorn wrote: On 05/16/10 16:38, Marius Strobl wrote: On Sun, May 16, 2010 at 03:57:00PM +, Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun May 16 15:56:59 2010 New Revision: 208152 URL: http://svn.freebsd.org/changeset/base/208152 Log: On PowerMac11,2

svn commit: r208173 - in head: sbin/geom/class/part sys/geom/part

2010-05-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun May 16 22:21:33 2010 New Revision: 208173 URL: http://svn.freebsd.org/changeset/base/208173 Log: Teach gpart about bootcode on APM. Modified: head/sbin/geom/class/part/geom_part.c head/sys/geom/part/g_part_apm.c Modified: head/sbin/geom/class/part/geom_part.c

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

2010-05-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed May 19 01:37:47 2010 New Revision: 208285 URL: http://svn.freebsd.org/changeset/base/208285 Log: Correct a typo. Pointy hat to:me Modified: head/sys/powerpc/powermac/cpcht.c Modified: head/sys/powerpc/powermac/cpcht.c

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

2010-05-20 Thread Nathan Whitehorn
On 05/20/10 16:07, Nathan Whitehorn wrote: Author: nwhitehorn Date: Thu May 20 21:07:58 2010 New Revision: 208364 URL: http://svn.freebsd.org/changeset/base/208364 Log: Fix a long-standing bug in the PowerPC OFW call function on SMP machines where running ofwdump could cause hangs

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

2010-05-21 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri May 21 20:46:01 2010 New Revision: 208405 URL: http://svn.freebsd.org/changeset/base/208405 Log: Now that single-threaded access to firmware is enforced by IPI_RENDEZVOUS, the ofw mutex is irrelevant. Modified: head/sys/powerpc/aim/ofw_machdep.c Modified:

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

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 16:21:55 2010 New Revision: 208835 URL: http://svn.freebsd.org/changeset/base/208835 Log: Make sure that interrupt sense settings set after interrupts are enabled are respected. This fixes loading the Apple onboard audio driver (snd_ai2s) as a module

svn commit: r208836 - head/sys/dev/ata/chipsets

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 16:25:25 2010 New Revision: 208836 URL: http://svn.freebsd.org/changeset/base/208836 Log: Partially revert r208162 while waiting for review on a more comprehensive fix. On Apple OpenPICs, the low/high bit of the interrupt sense is only respected for

svn commit: r208837 - head/sys/dev/ata/chipsets

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 16:27:15 2010 New Revision: 208837 URL: http://svn.freebsd.org/changeset/base/208837 Log: Correct the comment. We now use level low instead of edge high for this interrupt. Modified: head/sys/dev/ata/chipsets/ata-serverworks.c Modified:

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

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 17:48:26 2010 New Revision: 208839 URL: http://svn.freebsd.org/changeset/base/208839 Log: Add two new flags (IIC_M_NOSTOP and IIC_M_NOSTART) to struct iic_msg to allow consumers of iicbus_transfer() to send messages with repeated starts. Reviewed by:

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

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 17:49:40 2010 New Revision: 208840 URL: http://svn.freebsd.org/changeset/base/208840 Log: Utilize the Keywest I2C combined mode for messages with repeated starts. Modified: head/sys/powerpc/powermac/kiic.c Modified: head/sys/powerpc/powermac/kiic.c

svn commit: r208842 - in head/sys: conf powerpc/powermac

2010-06-05 Thread Nathan Whitehorn
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/powerpc/powermac/smusat.c Sat Jun 5 17:51:37 2010 (r208842) @@ -0,0 +1,262 @@ +/*- + * Copyright (c) 2010 Nathan Whitehorn + * All rights reserved. + * + * Redistribution and use in source and binary

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

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 18:24:41 2010 New Revision: 208847 URL: http://svn.freebsd.org/changeset/base/208847 Log: Correct a harmless typo introduced when copying code from mmu_oea64. Submitted by: alc MFC after:8.1-RELEASE Modified: head/sys/powerpc/aim/mmu_oea.c

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

2010-06-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Jun 6 14:29:06 2010 New Revision: 208871 URL: http://svn.freebsd.org/changeset/base/208871 Log: Add Open Firmware PNP info strings to GPIOs and Uninorth cells. Submitted by: Andreas Tobler Modified: head/sys/powerpc/powermac/macgpio.c

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

2010-06-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 12 21:14:22 2010 New Revision: 209114 URL: http://svn.freebsd.org/changeset/base/209114 Log: Make SMP work on MPC7400-based Apple desktops like the PowerMac3,3. Modified: head/sys/powerpc/aim/mp_cpudep.c head/sys/powerpc/aim/platform_chrp.c Modified:

svn commit: r209298 - in head/sys: dev/iicbus dev/ofw powerpc/aim powerpc/booke powerpc/include powerpc/mpc85xx powerpc/ofw powerpc/powermac powerpc/powerpc sparc64/ebus sparc64/isa sparc64/pci

2010-06-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jun 18 14:06:27 2010 New Revision: 209298 URL: http://svn.freebsd.org/changeset/base/209298 Log: Provide for multiple, cascaded PICs on PowerPC systems, and extend the OFW interrupt map interface to also return the device's interrupt parent. MFC after:

svn commit: r209299 - in head/sys/powerpc: ofw powermac powerpc

2010-06-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jun 18 14:16:24 2010 New Revision: 209299 URL: http://svn.freebsd.org/changeset/base/209299 Log: Change the default interrupt polarity on PowerPC systems from high to low. On Apple systems at least, all the level interrupts are wired active low. Before this

svn commit: r209300 - head/sys/dev/ata/chipsets

2010-06-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jun 18 14:17:45 2010 New Revision: 209300 URL: http://svn.freebsd.org/changeset/base/209300 Log: Following r209299, level interrupts are low by default on PPC, so remove the hack here to reprogram the interrupt for K2 SATA devices. Modified:

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

2010-06-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jun 18 14:28:57 2010 New Revision: 209302 URL: http://svn.freebsd.org/changeset/base/209302 Log: Add support for the Keywest I2C controller in Apple uninorth northbridges. Although the Keywest registers have only 1 byte of content, they are secretly 4-byte

svn commit: r209310 - in head/sys/powerpc: ofw powermac

2010-06-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jun 18 17:39:56 2010 New Revision: 209310 URL: http://svn.freebsd.org/changeset/base/209310 Log: Add MSI support for PCI devices attached to the CPC925 and CPC945 bridges found in Apple and IBM G5 systems. Modified: head/sys/powerpc/ofw/ofw_pcib_pci.c

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

2010-06-18 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jun 18 21:24:17 2010 New Revision: 209316 URL: http://svn.freebsd.org/changeset/base/209316 Log: Missed commit in r209310: the IRQ number in INTR_VEC() should have parantheses around it to allow arithmetic expressions to be passed. Submitted by: Andreas

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

2010-06-20 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Jun 20 16:56:48 2010 New Revision: 209369 URL: http://svn.freebsd.org/changeset/base/209369 Log: Temporarily disable instruction relocation while setting up the kernel's IBAT entry in early boot in order to prevent possible faults from races between the

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

2010-06-23 Thread Nathan Whitehorn
Author: nwhitehorn Date: Wed Jun 23 22:33:03 2010 New Revision: 209486 URL: http://svn.freebsd.org/changeset/base/209486 Log: Configure interrupts on SMP systems to be distributed among all online CPUs by default, and provide a functional version of BUS_BIND_INTR(). While here, fix some

svn commit: r209492 - head/sys/kern

2010-06-23 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jun 24 00:27:20 2010 New Revision: 209492 URL: http://svn.freebsd.org/changeset/base/209492 Log: Reverse the logic of the if statement that sets the default value of HZ; the list of 1000 Hz platforms was getting unwieldy. Suggested by: marcel Modified:

Re: svn commit: r209511 - head

2010-06-24 Thread Nathan Whitehorn
On Thu, 24 Jun 2010 17:53:25 + (UTC) Warner Losh i...@freebsd.org wrote: Author: imp Date: Thu Jun 24 17:53:25 2010 New Revision: 209511 URL: http://svn.freebsd.org/changeset/base/209511 Log: Merge from tbemd: use MACHINE_CPUARCH instead of MACHINE_CPU since the sources for

svn commit: r209544 - head/libexec/rtld-elf

2010-06-26 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 26 22:04:52 2010 New Revision: 209544 URL: http://svn.freebsd.org/changeset/base/209544 Log: Ignore versioned dependencies on shared objects to which we do not link. This fixes an error with files like this created by GNU ld under certain circumstances.

svn commit: r209558 - head/libexec/rtld-elf

2010-06-27 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Jun 28 01:40:56 2010 New Revision: 209558 URL: http://svn.freebsd.org/changeset/base/209558 Log: Revert r209544. It papers over a binutils bug, and is not even a reliable fix for it. The bug occurs when using the --as-needed flag to ld in the presence of

svn commit: r209724 - in head/sys/powerpc: mpc85xx powermac powerpc

2010-07-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jul 6 15:27:05 2010 New Revision: 209724 URL: http://svn.freebsd.org/changeset/base/209724 Log: Move the EOI logic when starting ithreads into intr_machdep instead of relying on it as a side effect of PIC_MASK() in the PIC drivers, and add an inmplementation of

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

2010-07-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jul 6 15:31:58 2010 New Revision: 209725 URL: http://svn.freebsd.org/changeset/base/209725 Log: Fix interrupt distribution to multiple CPUs on systems with cascaded PICs. Because slave PICs send all interrupts to their CPU 0 output line (which is routed to a

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

2010-07-06 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Jul 6 15:38:38 2010 New Revision: 209726 URL: http://svn.freebsd.org/changeset/base/209726 Log: It does not actually make sense to provide an IPI facility on non-root PICs, so replace cpuid logic with an assert. Modified: head/sys/powerpc/powerpc/openpic.c

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

2010-07-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jul 8 14:19:52 2010 New Revision: 209800 URL: http://svn.freebsd.org/changeset/base/209800 Log: Fix iicbus_get_addr() on 64-bit big-endian systems. The bus accessor passes a uintptr_t, not a uint32_t. Modified: head/sys/dev/iicbus/iicbus.c Modified:

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

2010-07-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jul 8 14:29:23 2010 New Revision: 209801 URL: http://svn.freebsd.org/changeset/base/209801 Log: Change the argument type to OF_call_method to take an array of cell_t instead of unsigned longs to prepare for platforms where they are not the same. Modified:

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

2010-07-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jul 8 14:35:35 2010 New Revision: 209803 URL: http://svn.freebsd.org/changeset/base/209803 Log: Fix several bugs in the real-mode Open Firmware implementation and provide a virtual-mode version for use on 64-bit systems, which have 32-bit firmware

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

2010-07-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jul 8 14:40:46 2010 New Revision: 209804 URL: http://svn.freebsd.org/changeset/base/209804 Log: Make ofw_syscons work on 64-bit systems. Modified: head/sys/powerpc/ofw/ofw_syscons.c Modified: head/sys/powerpc/ofw/ofw_syscons.c

svn commit: r209812 - in head/sys/powerpc: aim booke powerpc

2010-07-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jul 8 15:38:55 2010 New Revision: 209812 URL: http://svn.freebsd.org/changeset/base/209812 Log: Replace the existing PowerPC busdma implementation with the one from amd64 (with slight modifications). This provides support for bounce buffers, which are required

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

2010-07-08 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Jul 8 18:15:06 2010 New Revision: 209817 URL: http://svn.freebsd.org/changeset/base/209817 Log: Missed a file in r209803: this header contains a definition of OFW_STD_32BIT. Pointy hat to:me Modified: head/sys/dev/ofw/openfirm.h Modified:

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

2010-07-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Fri Jul 9 14:00:22 2010 New Revision: 209849 URL: http://svn.freebsd.org/changeset/base/209849 Log: MFppc64: Check if devices are direct-mapped individually instead of just checking the value of hw_direct_map. Modified: head/sys/powerpc/powerpc/bus_machdep.c

  1   2   3   4   5   6   7   8   9   10   >