summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-07-06Almost rewrite xbridge PCI resource allocation:Miod Vallat
- introduce an interface for widget drivers to ask the xbow to map arbitrary views of their address space, in addition to the low 16MB. This operation may fail or map a subset range of what the caller asked for, depending on the platform we're running on. - use this in xbridge to set up views on the direct memory and i/o spaces, to map devices resources when they don't fit in one of the devio small ranges (limited to 2MB anyway). These views are only allocated when devio can't do the job, so as not to consume too many resources on Origin family systems where such views are scarce resources (and shared accross the whole crossbow). This makes pci devices with large resource needs configure correctly. While there, fix programming of 64 bit memory BAR; this makes bge(4) work. Tested on Octane (with Bridge revision < 4 and >= 4), Origin 200 (Bridge >= 4) and Fuel (XBridge). ok deraadt@
2009-07-05Make sure the OpenBSD bounds exclude the first cylinder, which is usedMiod Vallat
to store the bootblocks. ok deraadt@
2009-07-05radeonfb(4), an accelerated framebuffer for Sun XVR-100 boards (which have anMark Kettenis
ATI Radeon 7000 chip on them). While there, make gfxp(4) depend on rasops32 just in case somebody removes other framebuffers that pull this in from their kernel config. ok deraadt@, miod@
2009-07-03Try to be smarter when allocating pci resources, and use unused devio slotsMiod Vallat
whenever possible for devices with both i/o and memory resources; still doesn't allow more than 2MB of mappings per device in each space, though.
2009-07-01The widget mapping code has been written back when I was only working onMiod Vallat
Octane support. The Octane being a single-node system, address space is ludicrous enough to allow the whole address space of every widget to be directly accessible in whole, using the address bits reserved to nasid. However, on IP27 and IP35, things do not work this way - while we still have the low 16MB address space of each widget available (the so-called ``short window''), access to other parts of the wiget address space is done through translation slots (IOTTE) at the Hub I/O space level, on a per-node basis. Given the imminent release lock, give up completely on ``large'' mappings of widgets, and restrict ourselves to short window operation, all the time (thus reinforcing the use of devio registers to map pci resources on xbridge). A proper interface to request mappings of specific widget areas, either directly on Octane, or through IOTTE if available on Origin, will appear post-release. No functional change (except from silently repairing Octane support which the previous xbridge commit silently broke).
2009-07-01Crank bootblocks version for identification purposes.Miod Vallat
2009-06-30Link the second stage bootblocks (and boot.net) 256KB higher to accomodateMiod Vallat
the GENERIC kernel growth; verified to not conflict with old prom on sun4. ok deraadt@
2009-06-29enable isp(4)Theo de Raadt
2009-06-28Attempt to map memory resources of unconfigured devices, if they do not haveMiod Vallat
I/O resources, via devio. Unfortunately it works as badly as when using the large window, so the bugs I am hunting must come from elsewhere.
2009-06-28Add colormap support for 8bpp mode.Mark Kettenis
2009-06-28Make this work in 8bpp mode too. Color support is still missing; probablyMark Kettenis
needs palette support.
2009-06-27Stricter checks when deciding which acceleration code to use. Instead ofMiod Vallat
matching on pci id, and if no match is found, on pci subsystem id, match on openfirmware device names (which amounts to a pci id AND subsystem id exact match). This makes XVR-500 cards (``bobcat'') run without acceleration. Which is better than trying to use ``jfb'' acceleration and fail. ok kettenis@
2009-06-27Preliminary cleanup work in order to help the PCI resource management code.Miod Vallat
As long as I can't figure out what endianness knobs I need to frob to make I/O and memory accesses through the large window work as intended, we are stuck to devio I/O mappings only...
2009-06-27In the bus_space_*_raw_* functions, move the invariant computations out ofMiod Vallat
the loop. No functional change.
2009-06-27If a device which has not been initialized by ARCS has a non-zero BAR, ignoreMiod Vallat
it if it does not fit in our extent, and force a suitable address. Prevents extent sanity check panics with some cards.
2009-06-27Add an explicit widget locator to xbow children; allows a given widget toMiod Vallat
be disabled with some UKC tinkering.
2009-06-27Revert the last change to this file which was made with armv7 support came in.Dale Rahn
The change was unrelated to v7 support, it was a cleanup item. For some reason this breaks ksyms on zaurus. however zaurus uses the old loadfile that is not fully synced with libsa
2009-06-26Prefer fdcache() to pdcache() in cpu_fork(), as the MI uvm code has touchedMiod Vallat
p->p_stats earlier, and loss of information there can cause spurious SIGPROF or SIGVTALRM to be delivered. ok kettenis@
2009-06-25re-enable inteldrm since new X driver is about to fix the issueTheo de Raadt
2009-06-25fxp no longer fits on this mediaTheo de Raadt
2009-06-24Compute OpenBSD area bounds as the largest area spanning all the OpenBSDMiod Vallat
partitions; since all of them are DPME partitions, they might not be contiguous but that's the best we can do at the moment.
2009-06-24Even more pci ethernet devices, based on a diff from Brad.Miod Vallat
2009-06-24add some pci ethernet devices that some people, like miod, might be usingTheo de Raadt
2009-06-24enable softraidTodd T. Fries
test built and booted by me ok marco@, deraadt@
2009-06-24There are 3 reasons why the first block in apm_probe can fail, and in oneTheo de Raadt
case it is not OK to DPRINTF, so delete that code. Found by dhill ok marco dhill
2009-06-24for the isp(4) driver, invert the meaning of the options which pullTheo de Raadt
firmwares into the smaller (and larger) media ok krw
2009-06-24Major update to isp driver, mostly from mjacob via FreeBSD.Kenneth R Westerback
Everything that worked before should still work so in it goes. Newer boards (2300, 2400) may now work but are still a work in progress. Thanks to many testers but especially kettenis@ for finding a show stopper bug and stomping it. ok deraadt@
2009-06-24Simplify the ioctl handling code. From Brad.Stuart Henderson
Tested by nick@
2009-06-21Disable memory above 2GB physical again, as we can end up with an unkillableMiod Vallat
process waiting on getblk when all ATE are exhausted, despite the exhaustion being transient; I fear the only way to skirt this is to use bounce buffers.
2009-06-21Remove the ioc interrupt probe code, the heuristic is correct; origin 300Miod Vallat
is still unhappy due to ``interferences'' between the L1 console and the brick's serial ports, unfortunately.
2009-06-21Add a bunch of usb devices, per deraadt@'s pressure.Miod Vallat
2009-06-21- add and enable stge(4)Jasper Lievisse Adriaanse
"sure" miod@
2009-06-21fix rcs ids. ok sthen@Martynas Venckus
2009-06-204.6-BETAMiod Vallat
2009-06-20Preserve more registers in sigcontext, and restore them in sigreturn. ThisMiod Vallat
makes the sigreturn regress test pass, as well as todd@'s ``run sh -c "trap exit 2 3;while :; do sleep 120; done", then press ^C'' test pass. Since userland setjmp uses sigcontext, the kernel will still support the old layout for a while (until libc is fixed and a reasonable grace period is over).
2009-06-20Remove unused global variables.Miod Vallat
2009-06-20Remove unused struct ka410_cpu, long superseded by struct vs_cpu.Miod Vallat
2009-06-20Have hmestop() properly clear the RUNNING/OACTIVE flags and the interfaceStuart Henderson
watchdog timer. Copied over from MI hme(4). Tested by nick@. From Brad.
2009-06-19Make the 64 bit bootblocks compile again after the <machine/mnode.h> changes.Miod Vallat
2009-06-19They're DPME partitions, not DPMI partitions.Kenneth R Westerback
ok miod@ drahn@
2009-06-17Make sure xbowmatch() only matches on xbow stanzas.Miod Vallat
2009-06-17Make sure we do not coalesce memory ranges from different nodes.Miod Vallat
2009-06-17R14000 processors with revision 3 and above are actually R16000 revisionMiod Vallat
1 and above, so report them as such.
2009-06-17Really avoid changing the start of the bounds if we found no LIFTheo de Raadt
a diff by kettenis but he is gone for a day or so
2009-06-17remove extra debugging printf(). ok miod@Matthieu Herrb
2009-06-16Backout pmemrange (which to most people is more well known as physmemAriane van der Steldt
allocator). "i can't see any obvious problems" oga
2009-06-16Backout all changes to uvm after pmemrange (which will be backed outOwain Ainsworth
separately). a change at or just before the hackathon has either exposed or added a very very nasty memory corruption bug that is giving us hell right now. So in the interest of kernel stability these diffs are being backed out until such a time as that corruption bug has been found and squashed, then the ones that are proven good may slowly return. a quick hitlist of the main commits this backs out: mine: uvm_objwire the lock change in uvm_swap.c using trees for uvm objects instead of the hash removing the pgo_releasepg callback. art@'s: putting pmap_page_protect(VM_PROT_NONE) in uvm_pagedeactivate() since all callers called that just prior anyway. ok beck@, ariane@. prompted by deraadt@.
2009-06-15Back out all the buffer cache changes I committed during c2k9. This reverts ↵Bob Beck
three commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
2009-06-14Make sure the pglist is TAILQ_INIT()'ed before invoking uvm_pglistalloc().Miod Vallat
ok deraadt@ kettenis@
2009-06-14backout:Theo de Raadt
> extend uvm_page_physload to have the ability to add "device" pages to the > system. since it was overlayed over a system that we warned would go "in to be tested, but may be pulled out". oga, you just made me spend 20 minutes of time I should not have had to spend doing this.