summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-08-26more bloody const crap mk brokeTheo de Raadt
2009-08-26Speedup on raid6 writes, precalculate xor lookupJordan Hargrave
ok marco@
2009-08-26Remove obsolete comment.Marcus Glocker
2009-08-26Build fake bootinfo structure based on the device tree.Mark Kettenis
Inspired by a diff from dms@.
2009-08-26Replace some stupidly used bcopy()s by direct assignment.Marcus Glocker
2009-08-26Use comconsfreq instead of hardcoded frequency. Still a bit of a hack, butMark Kettenis
this lets me run the RB600 at 400MHz.
2009-08-26Override comconsfreq and comconsaddr with values from the FTD if provided.Mark Kettenis
2009-08-26Change fdt_find_node() such that it takes a full path as argument.Mark Kettenis
ok dms@
2009-08-26Name fields in the udl_huffman struct same as on the driver side toMarcus Glocker
simplify reading.
2009-08-26Also avoid __packed struct to Huffman table in the driver side in favourMarcus Glocker
of performance. Instead generate the Huffman table with two ints. Suggested, help and OK deraadt@
2009-08-26make sure that an aiod has been removed from the nfs_aiods_idle listThordur I. Bjornsson
before inserting it back into the list. crashes debugged with help from deraadt@ who also tested this fix.
2009-08-26add commented out options for PAGEFASTRECYCLE, KVA_GUARDPAGES, shuffle VFSDEBUGThordur I. Bjornsson
around and add POOL_DEBUG as an enabled option, removing the define from subr_pool.c. comments & ok deraadt@.
2009-08-25Clearly copy the whole, and nothing but the whole, old buffer intoKenneth R Westerback
the resized buffer. From Pawel Jakob Dawidek via Max Laier via Marc Balmer via tech@. As was the previous commit where I didn't mention Pawel. 'should be olright' henning@
2009-08-25add error checkingTheo de Raadt
2009-08-25if we do not use __packed, we must write the values more carefullyTheo de Raadt
ok mglocker
2009-08-25no need for __packed; ok mglockerTheo de Raadt
2009-08-25Add missing $OpenBSD$ tag.Mark Kettenis
2009-08-25Initialize flattened device tree support if a tree was passed by the firmware.Mark Kettenis
2009-08-25Save the (potential) address of the flattened device tree. Make sure we don'tMark Kettenis
clobber %r3 before we do so. Based on a diff from dms@
2009-08-25We can treat BARs initialized to 0 as invalid now on socppc.Mark Kettenis
2009-08-25Set up bus tag for mmio. Create extents corresponding to the bus tags andMark Kettenis
pass them along when attaching the pci bus.
2009-08-25In bmac_init(), invoke bmac_transmit_packet() with the correct packet sizeMiod Vallat
(sizeof(ptr) vs sizeof(*ptr) bug). ok krw@
2009-08-25Add USB_PRODUCT_NOVATEL_EU870D that can be found in some dell d430Robert Nagy
2009-08-25regenRobert Nagy
2009-08-25add Novatel EU870DRobert Nagy
2009-08-25Enable pixel compression (Huffman pixel difference method). If theMarcus Glocker
Huffman table can't be loaded, the driver will operate in uncompressed mode.
2009-08-25Legacy-free PC hardware do not have a real PS/2 keyboard controller, butMiod Vallat
rather have the USB HCI emulate it during boot, while legacy mode is enabled. This causes pckbd0 to attach as the console device, but is lost as soon as the USB HCI driver attaches. The disappearance of the emulated PS/2 controller can however be detected in pckbc(4) - which is supposed to attach after [eou]hci(4), with the controller refusing to ack commands and replying ``please resend'' instead. In that case, the kernel will now no longer attach pckbd, and will perform a new console input device selection, allowing the (real) usb keyboard to become the console. Thanks to krw@ for countless tests on legacy-free hardware; also tested on more conventional hardware by naddy@ and I. Only amd64 and i386 platforms are affected by this change.
2009-08-25Add dev/microcode/udl/ to build.Marcus Glocker
2009-08-2516bit Huffman table for pixel difference compression on udl(4) devices.Marcus Glocker
2009-08-25catch up to readdisklabel API change; tested by matthieuTheo de Raadt
2009-08-25If option DIAGNOSTIC, do not bother doing sanity checks, including anMiod Vallat
uvm_map_checkprot() call, if the memory we're about to return has just been allocated with uvm_km_kmemalloc() instead of coming from the freelist. No functional change but a very small speedup when the freelist for the given bucket is empty.
2009-08-25The BUCKETINDX() giant macro is used to compute the base 2 logarithm of itsMiod Vallat
input, in order to pick the appropriate malloc() bucket. Replace it with an inline function in kern_malloc.c, which will either do a tightest-but-slower loop (if option SMALL_KERNEL), or a geometric search equivalent to what the macro does, but producing smaller code (especially on platforms which can not load large constants in one instruction).
2009-08-25Remove support for packet mode of Metricom Ricochet radios.Jonathan Gray
It currently doesn't compile and this is unlikely to change as there are many alternatives now since we no longer live in the early 1990s and Metricom went bankrupt some time ago. ok many @
2009-08-25iha(4) works on amd64; tested by downsjTheo de Raadt
2009-08-25move to having requests on a per nfsmount tailq instead of one global one.Thordur I. Bjornsson
also make the rexmit timeout per nfsmount, and make sure to start/stop the timer appropriately. now the nfs_timer() only fires if there is work todo, not always at nfs_ticks (it did, even if there where no nfsmounts in the system!). OK blambert@
2009-08-25Add parser for 'Flattened Device Tree' which was introduced inDariusz Swiderski
bootloaders such as u-boot, which is generally a simplified memory dump of an OpenFirmware device tree. Tested on RB600 by me. This is not used in the code ATM. ok kettenis@
2009-08-25Don't setup multicast when in promiscuous mode. From Brad.Stuart Henderson
This was in the diff Brad sent to tech@ and had tested by others and should have been in my previous commit, but I was working from and testing an earlier version of the diff. I've retested with multicast/promisc on my dual 82550.
2009-08-25Fix order of memcpy() arguments so data is copied from src to dest,Kenneth R Westerback
not the other way. At least partial fix for interfaces with >64 aliases. From Max Laier via Marc Balmer. 'seems right' sthen@ ok markus@
2009-08-24Properly check for VM_MAX_KERNEL_ADDRESS wraparound in the guard pages code.Miod Vallat
ok ariane@
2009-08-24On O2, the bootpath may omit the pci(0) component and start with scsi(); inMiod Vallat
that case, fake the pci(0) part in order to match correctly the onboard scsi controller. While there, make sure device_register() returns early for devices attached to root; without both these changes, an O2 lacking pci(0) in its bootpath would dereference a NULL pointer when softraid would attach. Problem found the hard way by Jukka Taimisto (jtaimisto, iki dot fi), thanks for the report!
2009-08-24Add definitions for 4 additionl BAT registers, found on some newer PowerPCDariusz Swiderski
chips, like MPC8xxx family. ok kettenis@
2009-08-24Specify proper size for device softc.Mark Kettenis
2009-08-24Glue to deal with the retarded way the CF slots are wired up on the RB600.Mark Kettenis
2009-08-24garbage collect the nchash variable that used to store theThordur I. Bjornsson
size of cache hashtable that has now been removed.
2009-08-24rumor has it (from thib) that uvm_vnp_setsize() is scary to not callTodd T. Fries
this appears to fix a mmap vs read sync issue I've been seeing since forever ok thib@
2009-08-24Add missing ehci dependency.Mark Kettenis
2009-08-24- fix format strings for values that are daddr64_tJasper Lievisse Adriaanse
ok otto@, agreed by deraadt@
2009-08-24- remove double \n in panic stringJasper Lievisse Adriaanse
2009-08-23revert the icmp error diff again (r1.167-1.169)David Krause
seems to be causing some kind of memory corruption after several hours of heavy IPsec traffic. connections start becoming very slow eventually leading to all IPsec packets being lost. a reboot solves the issue for several more hours before it appears again.
2009-08-23- turn a printf(), which predated a panic()-function that could take ↵Jasper Lievisse Adriaanse
printf-like arguments, into panic() and remove call to Debugger() hint and ok deraadt@