summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-04-24Add support for ICH10 SATA devices not operating in AHCI mode.Jonathan Gray
Tested by Christian Stuermer.
2009-04-23Clear IFF_RUNNING and IFF_OACTIVE flags and cancel watchdog timer inMark Kettenis
hme_stop(). From Brad.
2009-04-23Start using extended buffer descriptors on the jumbo ring and use MCLGETI toMark Kettenis
allocate mbufs for it. Another jumbo allocator bites the dust! ok dlg@
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-23print the type of the icmp message we're bitching about when debugging isDavid Gwynne
turned up in pf_icmp_state_lookup. ok sthen@
2009-04-22Start doing resource accounting on non-root PCI busses by populating theMark Kettenis
extents based on address range forwarded by the bridge as indicated by the limit registers. Remove the now redundant BAR initialization code for type 0 devices. ok oga@
2009-04-22this rwlock conversion breaks procfs (in linux compat), as found outTheo de Raadt
by Antoine Jacoutot. back out for oga to look at when he gets back in touch with earth.
2009-04-22sync to MECANIQUE change, and add a uftdi found there, spotted by Henrik ↵Theo de Raadt
Hellerstedt
2009-04-22vendor 0x1781 is MECANIQUE, or was, and now people who don't want to payTheo de Raadt
for an ID uses that space. It is better to name it by that name to be more clear what is going on. shrug. this story dug out by sthen
2009-04-22Make the interactions in allocating buffers less confusing.Artur Grabowski
- getnewbuf dies. instead of having getnewbuf, buf_get, buf_stub and buf_init we now have buf_get that is smaller than some of those functions were before. - Instead of allocating anonymous buffers and then freeing them if we happened to lose the race to the hash, always allocate a buffer knowing which <vnode, block> it will belong to. - In cluster read, instead of allocating an anonymous buffer to cover the whole read and then stubs for every buffer under it, make the first buffer in the cluster cover the whole range and then shrink it in the callback. now, all buffers are always on the correct hash and we always know their identity. discussed with many, kettenis@ ok
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@