summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-07-26I'm not as smart as mickey, so replace:Mark Kettenis
batch = pdemask == sva && sva + ~PDE_MASK + 1 <= eva; with something that's a little bit easier to read.
2009-07-26timeout_add -> timeout_add_msecBret Lambert
ok miod@
2009-07-25On multiple-node systems, be sure to broadcast reboot requests to all nodes.Miod Vallat
2009-07-25Add an extra argument to uvm_unmap_remove(), for the caller to tell itMiod Vallat
whether removing holes or parts of them is allowed or not. Only allow hole removal in uvmspace_free(), when tearing the vmspace down. ok art@
2009-07-25Make sure that if a PDE isn't there, we skip to the start of the addressMark Kettenis
range covered by the next PDE and not somewhere in the middle. The old could have skipped over some valid PTE's causing them to stay behind in the pmap. Since we would not flush the cache for those pages either this could also cause memory corruption when dirty cache lines would be written back to memory at a later stage.
2009-07-24in pmap_kenter_pa(), flush the old pte before installing the new one.Theo de Raadt
ok kettenis
2009-07-24timeout_add -> timeout_add_msecBret Lambert
ok kettenis@
2009-07-23timeout_add -> timeout_add_msecBret Lambert
ok miod@
2009-07-23timeout_add -> timeout_add_msecBret Lambert
ok miod@
2009-07-23a trio of timeout_add conversionsBret Lambert
ok miod@
2009-07-23Get rid of bus_mem_add_mapping().Miod Vallat
2009-07-23When computing the total resources required by devices behind a ppb, takeMiod Vallat
PCI ROM into account, if any.
2009-07-23When configuring devices on the bridge, try and provide resources to mapMiod Vallat
their ROM if they have any.
2009-07-23Allow __pmap_pv_enter() to fail, instead of dereferencing NULL; and let theMiod Vallat
caller deal with this; this really makes the PMAP_CANFAIL logic work. ok kettenis@
2009-07-23reserve a space for aibs(4) in amd64 and i386, commented out for now; ok deraadtConstantine A. Murenin
2009-07-22Get rid of now unused extent_malloc_ok variable.Miod Vallat
2009-07-22Get rid of bus_space_tag_t now unused bus_extent and bus_reverse fields.Miod Vallat
2009-07-22Use direct mappings in XKPHYS for bus_space, instead of extent and TLBMiod Vallat
backed pages.
2009-07-22When disassembling, if our pc matches the beginning of a routine, thenMiod Vallat
it's at routine+0; do not search for the previous routine in the symbol table. This fixes tracebacks when the fault occurs on the first instruction of a routine.
2009-07-22via nano cpus are amd64, and so we need machdep.xcryptTheo de Raadt
2009-07-22Overhaul resource handling and mapping in macepcibr(4):Miod Vallat
- do not use a stinking extent to track bus_space_map allocations, but directly map in XKPHYS instead. What are 64 bit address spaces good for if we still need to use TLB for that? - provide proper resource management extents to the MI pci code, so that, in turn, the cardbus code can reuse them instead of providing their own. - use the whole 4GB address space window for PCI I/O resources, just because we can. - make sure no device can get assigned address zero in I/O space, because this address triggers a PCI error.
2009-07-22libsa printf doesn't support sizes in %s specifiers; fix format stringsMiod Vallat
accordingly.
2009-07-22Make sure the irq numbers for the O2 event counters match the interrupt linesMiod Vallat
reported in dmesg. While there, silence the spurious interrupt warning logic if, at the time it is triggered, there are really no hardware interrupts pending; this can happen if serial interrupts gets processed e.g. at splx() before the hardware interrupt routine has a change to run.
2009-07-22Define BUS_SPACE_MAP_CACHEABLE.Miod Vallat
2009-07-21Make pmap_enter respect the PMAP_CANFAIL flag. With and essentialMark Kettenis
memory leak plug from drahn@
2009-07-21PCI-Cardbus bridge support for both O2 (macepcibr) and Octane/Origin (xbridge)Miod Vallat
class systems. Tested on O2 and Origin 200 with wi@pcmcia and xl@cardbus, using a Ricoh 5C475-based cbb(4) board. acx@cardbus doesn't work reliably yet, so your mileage may vary until more bugs are fixed. Thanks to matthieu@ for lending me some cardbus devices for testing.
2009-07-21Change the rbus md_space_{map,unmap} signature to take a rbus_tag_t insteadMiod Vallat
of the bus_space_tag_t it contains; an upcoming implementation will need to know the rbus_tag_t for which it works at this point. All callers updated accordingly; no functional change intended.
2009-07-20Pass a pci_chipset_tag_t to pci_intr_line(), to eventually allow theMiod Vallat
logic to be chipset dependent; no functional change yet. ok kettenis@
2009-07-19Simplify code that sanitizes pci resources on the O2's mace PCI bridge.Mark Kettenis
The firmware messes up I/O BARs, so whack those back to 0, such that the MI PCI code initializes on an as-needed basis. ok miod@
2009-07-18Reconfigure all onboard devices, ignoring the existing mappings set up byMiod Vallat
ARCS, except for IOC3 devices (which might be our console). This allows us to build resource accounting extents to pass the MI code (for more magic).
2009-07-17Proper bus_space_{read,write}_raw_[248] functions for xbridge, makes wi@pciMiod Vallat
work on systems with xbridge.
2009-07-17Update bus_dma to the better codebase found on almost all other platforms,Miod Vallat
where the common part to all bus_dmamap_load*() functions is implemented in in an internal load_buffer routine. This allows the xbridge-specific dma code to only provide this function, instead of three; and this also brings us a working bus_dmamap_load_uio() on all supported sgi machines, which in turns make crpyto(4) devices really work. Tested with hifn(4).
2009-07-17Revert a not-thoroughly tested change part of a larger work in progress diff,Miod Vallat
which crept in the previous commit.
2009-07-16Program PPB_REG_PREFLIM_HI32, not PPB_REG_PREFBASE_HI32 a second time. Oops.Miod Vallat
2009-07-16KNFMichael Knudsen
ok sthen
2009-07-16Clean up after X.Mark Kettenis
help & ok miod@
2009-07-16Make the PCI-PCI bridge initialization code bus-independent, relying on aMiod Vallat
per-pci_chipset_t function to perform actual resource allocation. Add the necessary bits to macepcibr(4), and enable ppb(4) on O2 kernels now. Joint effort with kettenis@
2009-07-16Cheat in pci_conf_read() and force the REXTVALID bit in the O2 onboard ahc(4)Miod Vallat
configuration register; this allows the driver to select ultra speed, which this particular hardware supports. From Linux, ok kettenis@
2009-07-16- Add missing tick handler calling mii_tick().Stuart Henderson
- Stop hmestop() from fiddling with the flags directly and calls mii_down() instead. From Brad, tested by nick@.
2009-07-15missing va_end in bios_printf & dioopen. ok miod@Martynas Venckus
2009-07-15Sync PCI scsi controllers; from Brad.Miod Vallat
2009-07-14Display driver for GTA01, (not freerunner).Dale Rahn
2009-07-14Unbreak moko, SOFTSERIAL->SOFTTTY, a pmap change, and a missing file.Dale Rahn
Not tested on hardware, but at least compiles now. problem pointed out by Sylvestre Gallon
2009-07-13Extend xbridge to support shared interrupt handlers, and perform PCI-PCIMiod Vallat
bridge initialization if necessary; enable ppb on IP27 and IP30 kernels. With feedback from kettenis@; macepcibr to gain the same functionality soon.
2009-07-13Add the neccessary glue to attach gem(4) to sbus(4) and enable gem(4) inMark Kettenis
GENERIC and SUN4M kernels. ok miod@
2009-07-13Add a somewhat minimal bus_dma(9) implementation. Only fully implemented forMark Kettenis
the sun4m iommu. Bits and pieces from NetBSD, with some additional tweaks and a bus_dmamap_load_mbuf() implementation from myself. ok miod@
2009-07-12Add protection against multiple inclusion.Mark Kettenis
ok miod@
2009-07-12Enable gem@sbus.Mark Kettenis
2009-07-11When rebooting, pass a request to the PROM for it to skip diagnostics andMiod Vallat
memory initialization. This reduces memory test and initialization time from a "in soviet russia, memory test you" time of over 2 minutes for 1GB on Origin 200, to a more reasonable 12 seconds (and on a Fuel with 2GB, time goes down from 6 seconds to under a second).
2009-07-10Switch away from using -traditional-cpp to iso/ansi cpp for asm files.Jonathan Gray
More architectures hopefully to follow. ok kettenis@