summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-04-22Add a TAILQ, aml_nodelist, of devices depending on the dock device toMichael Knudsen
struct acpidock_softc and stuff devices into it during attach. This list is not yet used, but I have code ready to handle the ACPI side of this. However, it still doesn't handle that there may in fact be multiple dock devices in a machine (e.g. on pre-60 series ThinkPads), but I need to figure out how to do so properly first. In the mean time I want this in the tree so I don't lose the code.
2007-04-22Add sysbutton a driver for the 'System identifier' button found on theGordon Willem Klok
fornt panel of the xserve (the button with the triangle on it). This driver will dump you into ddb at the press of a button if the ddb.console sysctl is set. The bug still has one unresolved issue if ddb.console is not set and you press and hold the button you will cause a interrupt storm that will slow the system down. So if you keep your xserve near a toddler or you yourself are a toddler you might want to consider disabling this device remember buttons arn't toys. ok deraadt.
2007-04-22- Use pmap_get_page and pmap_free_page to manage memory allocationsArtur Grabowski
for sparc64 pmap. They take care of all the magic of checking for initialized pages, zeroing them, etc. - merge pmap_create and pmap_pinit. - don't do the page allocation dance in pmap_kenter, we have growkernel. - Clean up if I was close to something dirty. kettenis@ ok
2007-04-22rename a very long driver name to something shorter, and more clearTheo de Raadt
and while there, fix the interrupt name for vmstat -iz; ok gwk
2007-04-22this is my previous commit again, but this time it was tested.David Gwynne
dma sync the rx mbuf before we push it to the hardware. technically this isnt necessary cos bus_dmamap_sync is a nop on i386 and amd64. but i like to be correct, and someone might read this as an example of how to write a driver.
2007-04-22process the tx free queue. this indicates when transmitted packets haveDavid Gwynne
been completed. it's the simplest fifo of the lot, im sorry i didnt start with it. this is the last of the fifos we have to deal with. now we need an interrupt handler, but i wont be doing that till i get my cable.
2007-04-22Calculate metadata checksums.Marco Peereboom
Add chunks to debug prints.
2007-04-22Correct offsets for Tx completion regs.Mark Kettenis
2007-04-22Switch the vax pmap to __HAVE_VM_PAGE_MD.Miod Vallat
pv_entry head of lists are no longer preallocated at boot, and will only be allocated for managed pages (instead of all physical memory pages, including those containing the kernel). pmap and pv_entry will now be allocated from a pool, instead of malloc for the former and a homegrown allocator which never relinquishes unused elements to the VM system for the latter. The net result is a slight decrease in memory usage, and better behaviour in low-memory conditions.
2007-04-22this is the start of the transmit path. this takes packets off theDavid Gwynne
interface send queue and puts them on the hardwares tx task fifo. the tx completion path hasnt been written yet. the mbuf dmamap loading has been stolen from vic. there's obviously a lot of code that is shared between the rxf fifo loading and the txt fifo loading. i also have to think about how to better calculate and keep track of space in the fifos. this is getting harder and harder. it sucks writing tons of code without being able to verify that it works. i might take a break for a bit.
2007-04-22only printf if the firmware load failed.David Gwynne
2007-04-22when an ata command returns an error, dont fill dmesg with messages aboutDavid Gwynne
it. returning an error to the scsi midlayer is all we need to do, which in turn will do the right thing.
2007-04-22ahci works on sparc64. wish the teeny teeny tiny jmicron sample i haveTheo de Raadt
had a bracket though, because it almost falls out of the pci slot...
2007-04-22mark the ccb used for error handling as complete when it completes. thisDavid Gwynne
prevents dmesg spam when we return this ccb to the free list.
2007-04-22unload the dmamap of the ccb used in ncq error handling once we've finishedDavid Gwynne
with it. prevents free panics on sparc64. found by deraadt on a v215.
2007-04-22hookup bpf. this pushes packets along bpf on the rx side. i need to writeDavid Gwynne
tx now.
2007-04-22start implementing processing of the rx descriptor fifo. this is the oneDavid Gwynne
that returns rx buffers to us that we previously posted in the rx free. theoretically we should now be receiving packets. practically, im still waiting on a cable so i can plug this card into something and test it, and then that's going to be difficult cos i only have two tht cards to test it. i need tx and rx working before i can test if tx and rx work. fun fun fun. this code doesnt process rx data change descriptors yet.
2007-04-22i seem to be having lots of trouble with writing bus_dmamap_sync callsDavid Gwynne
properly these days. when draining the rxf fifo we want to POSTREAD the mbuf, not PREREAD it.
2007-04-22macros for accessing bits of the rx descriptorsDavid Gwynne
2007-04-22Add more debug output for metadata.Marco Peereboom
Spacing as well.
2007-04-22prettier debug, if it is ever re-enabled, ok dlgTheo de Raadt
2007-04-22Don't use SBLOCK_UFS1. Don't call it SKIP either.Marco Peereboom
Pompted by deraadt
2007-04-22disable debug output here too. it's working fine (even on strange archs)David Gwynne
2007-04-22Skip past SBLOCK_UFS1 to make sure that metadata does not destroy anythingMarco Peereboom
filesystem related. pointed out by deraadt
2007-04-21disable ahci debug output. ahci is working on the majority of chipsets,David Gwynne
and its not helping us on those that arent.
2007-04-21Make sure we don't write too much metadata.Marco Peereboom
2007-04-21Remove big endian in metadata; prompted by deraadt.Marco Peereboom
Align metadata to 64 bit; from deraadt.
2007-04-21Account for mbr and partition table when writing meta data.Marco Peereboom
Error report by Johan Mson Lindman <tybollt@solace.miun.se>
2007-04-21Add volumes to sensors.Marco Peereboom
2007-04-21fix generic soft interrupts; improve establishing and disestablishing ofMartin Reindl
soft interrupts from NetBSD, 'reads good art@', also tested by robert@
2007-04-21oopsTheo de Raadt
2007-04-21Introduce a smp aware hw.setperf mechanism, it will scale all CPUs orGordon Willem Klok
cores by the same amount, i.e. if you do hw.setperf=50 both cores will be scaled to the opearting state corresponing to 50%. Tested by many with est (mainly on core2duo machines like X60 thinkpads). Only enable est during GENERIC.MP build no one tested powernow. ok art@
2007-04-21Back out last. the world is not i386.Artur Grabowski
2007-04-21do not ignore linker failures; ok miodTheo de Raadt
2007-04-21No more vtophys() on arm.Miod Vallat
2007-04-21backout: compile before you commit, pleaseTheo de Raadt
2007-04-21did you know that IPv6 packets are actually carried by turtles?Jun-ichiro itojun Hagino
because turtles are slow but reliable and trustworthy, packets stays on the net for a long period of time. bigger turtles can stay much longer. that is the hidden secret reason for the name of KAME project (i'm lying). j> some IETFers need to be sent to bondage/SM club and spanked/whipped j> by thousands of dominas and then chopped into million peaces by samurai j> swords. t> maybe that is what they actually want, and that is why they t> fucked RFC1883 and put rosemary's baby into RFC2460. j> I am king of IETF now, and tomorrow i may become beggar on the IETF venue j> hotel corridor. http://www.secdev.org/conf/IPv6_RH_security-csw07.pdf ok by myself, deraadt@, <samurais at kame.net>
2007-04-21correct list of architecturesReyk Floeter
ok deraadt@
2007-04-21developers keep killing ramdisk driversTheo de Raadt
2007-04-21correct list of architecturesTheo de Raadt
2007-04-21Fix the rcs tags.Gordon Willem Klok
2007-04-21Add blinkenlights(4) a driver to control the 16 leds found on the frontGordon Willem Klok
panel of the Xserve G4 and G5. The leds will provide an indication of the system load slowing as the load climbs, and system health e.g. no lights means its dead or in DDB. Split some of the shared registers and clock divisors from i2s into i2sreg.h while there nuke some evil C++ style comments. Man page to follow shortly. ok deraadt
2007-04-21fill the rx free fifo on interface up, and drain it on interface down.David Gwynne
2007-04-21tht wants at least 128 bytes in the first physical segment of an rx bufferDavid Gwynne
for some reason, so i had some code in there that tried to guarantee that. however, newly allocated mbufs and clusters are physically contiguous and bigger than 128 bytes. therefore we dont need to do that check. while here check if there is enough space in the fifo before trying to fill any of it. this means we can skip dma syncs if we're not going to end up writing anything in the fifo.
2007-04-21rename tht_rx to tht_rxf_fill to avoid confusion.David Gwynne
keep a list of used pkts in tht_pkt_list as well as free ones. add tht_pkt_used which can be used to see if a tht_pkt_list is in use by returning the head of the used list inside itself. (ab)use this to drain the rx free fifo when the interface is brought down. tht_rxf_drain pulls used pkts off, unmaps their mbufs, frees them, and then returns the pkt to the free list. the whole tht_pkt_list can then be freed safely.
2007-04-21Do a simple switch to VM_PAGE_MD. Just the path of least resistance for now,Artur Grabowski
more work coming soon. kettenis@ ok
2007-04-21add tht_rx. this function will try to fill as much of the rx free fifo asDavid Gwynne
possible. it loops till it runs out of tht_pkts to use on the rx descriptor free list, until it runs out of space in the fifo, or until it cant allocate or map any more mbufs. tht has a weird requirement that the first physical buffer in an sg list is at least 128 bytes long. i have code that tries to guarantee that, but id like someone else to look at it and tell me if its necessary or dumb.
2007-04-21when allocating a new mbuf for rx, do a dmamap_sync before handing it toDavid Gwynne
the hardware. oops.
2007-04-21simplify some maths in fw_load a bitDavid Gwynne
2007-04-21allocate a small list of tx and rx descriptors on interface up and down.David Gwynne