summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-04-25RegenMiod Vallat
2009-04-25More widgets found on high end hardware we don't run on (yet (-: )Miod Vallat
2009-04-25Make pmap_steal_memory() return KSEG0 addresses only for kernels linked atMiod Vallat
KSEG0 addresses.
2009-04-25typo in commentsMiod Vallat
2009-04-25Enter mtx_enter_try. In part for completeness, things may startTobias Weingartner
using this soon(ish). Ok oga@, sorta yes kettenis@.
2009-04-25Strengthen the constraints of the atomic operations assembly statementsMiod Vallat
to make sure the register holding the ld_l and st_c addresses doesn't get reused when gcc's register allocator is too aggressive.
2009-04-25Get rid of pci_addr_fixup machinery; set up the appropriate extents and passMark Kettenis
them along when we attach pci(4). ok miod@
2009-04-25Extend PCI mmio address space by using a bigger window that requires 64-bitMark Kettenis
adressing (no problem since we only support 64-bit mode). ok miod@, jsing@
2009-04-24Enable berkwdt(4) now. It'll make it easier for people to test it.Michael Knudsen
2009-04-24Fix the superio irq discovery heuristic to work on systems where there isMiod Vallat
an empty slot before the ioc card (such as on Fuel).
2009-04-24Add berkwdt(4), a driver for Berkshire Products PCI PC Watchdog writtenMichael Knudsen
by Wim Van Sebroeck. Commented out in GENERIC but Heriberto Molina is getting devices for developers so we can maintain this more easily. Many thanks to both! Man page will follow later. ``don't hold back for man page'' deraadt
2009-04-23-v was printing some information which is irrelevant or duplicate. ThisTheo de Raadt
shrinks the output of installboot by a few lines.
2009-04-23Make pmap_deactivate a NOP.Artur Grabowski
Instead of keeping a bitmask of on which cpu the pmap might be active which we clear in pmap_deactivate, always keep a pointer to the currently loaded pmap in cpu_info. We can now optimize a context switch to the kernel pmap (idle and kernel threads) to keep the previously loaded pmap still loaded and then reuse that pmap if we context switch back to the same process. Introduce a new IPI to force a pmap reload before the pmap is destroyed. Clean up cpu_switchto. toby@ ok
2009-04-23add missing newline in the unknown model caseJonathan Gray
2009-04-22Only report the IP number in sysctl hw.model; vendor and machine name areMiod Vallat
now reported in hw.vendor and hw.product.
2009-04-21Simplify PCI config space access code. There is no way we're ever going toMark Kettenis
see the ancient mode 2 on machines capable of running OpenBSD/amd64. ok deraadt@, toby@, oga@
2009-04-21add a sg_dma backend for amd64 bus_dma. This is a lot more clever aboutOwain Ainsworth
mapping to the gart than the old code, and shouldn't conflict with bouncebuffers when they're added. This is essentially the sparc64 iommu code that's been modularised a bit so I can eventually use the same code for agp-based dma for memory managed drm drivers. Now, this would overflow ramdiskA, so iommu and sg_dma are now #ifndef SMALL_KERNEL. ok kettenis@, marco@. SMALL_KERNEL discussions with deraadt.
2009-04-20Some recent IOC3 do not have Dallas timekeepers, so perform a few more testsMiod Vallat
before deciding to attach dsrtc.
2009-04-20fixed style, no binary changeAriane van der Steldt
2009-04-20bigmem is not tweakable by config(8), it never was.Reyk Floeter
ok oga@
2009-04-20amas device for amd64, describes the physical memory layout on AMD64 CPU.Ariane van der Steldt
Replaces pchb with amas for the AMD64 address map. amas0 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00 Currently disabled (causing pchb to attach instead). ok art@
2009-04-20Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.Owain Ainsworth
Saves every damned driver calling bzero(), and continues the M_ZERO, PR_ZERO symmetry.
2009-04-19Enable schsio(4) everywhere to get it tested.Michael Knudsen
``please commit'' deraadt
2009-04-19For consistency, make sure that all archs that use the same patternOwain Ainsworth
always increment uvmexp.softs while inside the lock. While i'm here, make alpha's dispatch loop look like the rest. "sure" miod@
2009-04-19Mutexes for arm and sh softinterrupts.Owain Ainsworth
ok miod@
2009-04-19On Octane, force a nonzero _dma_mask value so that we do not risk trying toMiod Vallat
handle a mapping partly in, and partly out the direct DMA window, on systems with > 2GB physical memory.
2009-04-19Attach the 1-Wire devices early, and pick our partnumber; based on thisMiod Vallat
partnumber, decide what components of the IOC3 really are available, and how many interrupts to register. Based on knowledge found in Linux source code, only tested on full-blown IOC3 devices so far.
2009-04-19Correctly handle bus_dma_tag with _dma_mask == 0.Miod Vallat
2009-04-19Parse and display the part number and the serial number, instead of falselyMiod Vallat
printing the part number as the serial number.
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-19Rename max_cpus to ncpusfound and compute it regardless of optionMiod Vallat
MULTIPROCESSOR.
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-19Switch the softinterrupt code on x86 over to mutexes instead ofOwain Ainsworth
simplelocks + splhigh(). First part of making it possible to make mpsafe softinterrupts. "oh yes, definitely" miod@
2009-04-19Use correct device index for Ethernet interrupt handler.Joel Sing
2009-04-19Fix interrupt mapping for devices behind PCI-PCI bridges.Mark Kettenis
ok miod@
2009-04-19Add heuristics to tell IP27 and IP35 apart, as they will need to be handledMiod Vallat
differently at times.
2009-04-19A much more reliable logic to find out the second interrupt of the ioc boards.Miod Vallat
2009-04-18Attach to IP35 Xbridge too.Miod Vallat
2009-04-18Attach pci busses with pba_bus being zero, and not our bridge unit number,Miod Vallat
these are completely unrelated as long as there is only one pci bus per bridge.
2009-04-18Fewer hardcoded values and simpler code in ip30 interrupt handling.Miod Vallat
2009-04-18Simplify ethernet interrupt dispatching, since it is not shared with anythingMiod Vallat
else.
2009-04-17Catch up with uvm_pglistalloc() interface change.Mark Kettenis
2009-04-15The current iommu code only touches the hardware if the bios did notOwain Ainsworth
enable it (I have found the code that does enable it problematic on quite a few machines, however, that's a different issue). So provide some code that so if the bios initialised the iommu for us, we'll use what it gave us. Makes iommu work on a machine of todd's. while i'm here, we don't need to scan all pci functoins to find the hypertransport bridge. the gart is always on function 3, so just scan for all the bridges and not iterate over the functions too. Thanks to todd for his infinite patience while I gave him diffs that went ``Boom!''.
2009-04-15Disable DEBUG now, it floods too much information.Miod Vallat
2009-04-15A firsh shot at IP27 interrupts; currently the code assumes it runs onMiod Vallat
the first cpu on dual-cpu boards; this will be fixed later. Just don't disable it at the prom.
2009-04-15Change the way the widget interrupt register is computed and have it becomeMiod Vallat
a complete physical address. Also add proper cpu pa<->device pa for dma on Origin 200. This lets xbridge work and route interrupts correctly on Origin 200.
2009-04-15Oops, referenced an include file which I don't plan to commit yet.Miod Vallat
2009-04-15Only enable the passthrough interrupt for serial ports, and let com(4) manage.Miod Vallat
Otherwise we get stuck interrupted by the ``tx empty'' condition. Also, on Origin 200 the second interrupt vector has to be computed differently, which adds to the ``I wish I never had looked at this code'' trauma.
2009-04-15Remove en(4) (no manpage present, no none removed), and the midway.c glue codeOwain Ainsworth
for it. It is very unlikely this still compiles, the hardware is dead. It isn't in any arch's config file. the sparc sbus code is even commented out in files.sparc. Not to mention that the code is fucking appauling, doesn't even know that sparc got bus.h ages ago, still uses vtophys(), defines all types of functions to arch-specific hacks. I will miss the bitchy comments, though... As a note to other drivers: this is the fate that awaits you if you screw up my ctags on commonly used functions. "you have my ok" claudio@, "zap zap zap" deraadt@ If i've missed any bits, please remove them.
2009-04-15fix properly; size gets decremented while we check the segments, so save it soOwain Ainsworth
when we setmapsize it's not zero. *sigh*