summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-04-22When starting up idle, explicitly set p_cpu and the peg flag for theArtur Grabowski
idle proc. p_cpu might be necessary in the future and pegging is just to be extra safe (although we'll be horribly broken if the idle proc ever ends up where that flag is checked).
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-22dont need to zero the tx pkt pool structure before initting it now thatDavid Gwynne
pool_init does its job properly.
2009-04-22initialise the constructor and destructor function pointers to NULLDavid Gwynne
in pool_init so you the pool struct doesn't have to be zeroed before you init it.
2009-04-22remove a meaningless sensor.desc; ok deraadtConstantine A. Murenin
2009-04-22replace arrays of dmamaps and mbuf pointers used to manage packetsDavid Gwynne
on the tx rings (one mbuf ptr/dmamap array entry was created for every tx descriptor slot at attach time) with a dynamically grown list of mbuf pointers and dmamaps. bnx used to have 512 dmamaps/mbuf pointers for the tx ring, now my system is running with 8 under moderate load. the big bonus from this is that the dmamap handling is greatly simplified. reyk@ likes this a lot
2009-04-21Switch aps(4) to use timeout_add_msec() instead of timeout_add() with aMichael Knudsen
calculation of ticks. Saves 26 bytes. ok oga `fine' deraadt
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-21tweak the whitespace in the softc a bit to make it easier to read.David Gwynne
2009-04-21syncTheo de Raadt
2009-04-21new ftdi; 8U232AM4; Takanori Watanabe spotted itTheo de Raadt
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-20unbreak EHCI_DEBUG - usbd_dump_pipe() is only defined if USB_DEBUG isReyk Floeter
also true. no binary change without EHCI_DEBUG. ok jsg@
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-20when transmitting packets, put the dmamap we used for the packet into theDavid Gwynne
last descriptor slot in the ring. the tx completion code expects the dmamap to be there so it can unload it. ok reyk@
2009-04-20fix dma map unmapping and unloading in the tx cleanup path.Reyk Floeter
ok dlg@
2009-04-20Make pegging a proc work when there are idle cpus that are looking forArtur Grabowski
something to do. Walk the highest priority queue looking for a proc to steal and skip those that are pegged. We could consider walking the other queues in the future too, but this should do for now. kettenis@ guenther@ ok
2009-04-20Don't map all agp memory we allocate.Owain Ainsworth
If we're just going to be making it available to userland (the X server), just use load_raw and make sure it's zeroed with BUS_DMA_ZERO. Should save $AMOUNT_BOUND_TO_GART kva. Most kernel users also write through the gart, so no mapping there either. tested by sthen and todd a while back.
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-20add the UVM_PLA_ZERO flag for uvm_pglistalloc to make it return zeroedOwain Ainsworth
pages. "go for it" miod@
2009-04-19zero temperature in acpi refers to -273,2degC -- convert to uK ↵Constantine A. Murenin
appropriately; ok deraadt marco
2009-04-19Enable schsio(4) everywhere to get it tested.Michael Knudsen
``please commit'' deraadt
2009-04-19Call acpi_sleep_walk() when powering down just like when enteringKenneth R Westerback
any other sleep state. This tells acpi wake devices to not wake up the box until manual powering up resets their status. Makes my Dell GX520 stay powered off in response to 'halt -p'. In snaps for a while. ok marco@ (several times) deraadt@
2009-04-19calculate size correctly if PAGE_SIZE != ATI_PCIGART_PAGE_SIZE.Owain Ainsworth
from upstream a while back.
2009-04-19The G4X and GM45 just /had/ to have a different counter register.Owain Ainsworth
Been meaning to pull this in from upstream for ages.
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-19Add a new EX_FILLED flag to make extent_create() create an extent map thatMark Kettenis
has all space allocated such that we can make holes in it using extent_free(). ok miod@
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-19Fix typo pointed out by a couple of people.Mark Kettenis
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-18Make "route(8) change" aware of MPLS.Michele Marchetto
It is now possible to change routes' MPLS parameters via route change. ok laurent@, ok and input claudio@
2009-04-18Fix tyop.Michael Knudsen
ok mglocker