summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-12-10fix a theoretical (but not possible) array bound overflow.Owain Ainsworth
since we will always match on a rate, we won't overflow, but in that case, make it more obvious by if the first 11 rates don't match, we assume the 12th. should shut up parfait. ok damien@ who came up with an identical diff.
2009-12-10ansiTheo de Raadt
2009-12-10spacingTheo de Raadt
2009-12-10"fix" from freebsd to hide potential race in silly renames, whereBob Beck
a directory gets reclaimed on a forced unmount before the silly file in it gets blown away... fixes an issue seen by phessler@ ok oga@, art@
2009-12-10a few sizeof(array)/sizeof(array[0]) -> nitems(array) conversions found whileOwain Ainsworth
looking for something else. sha1(1) tells me there's no binary change.
2009-12-10various bits of knf; ok yuoTheo de Raadt
2009-12-10remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok dlg@ marco@
2009-12-10remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok krw@ marco@
2009-12-09Resubmit any pending SCSI commands when we sucessfully (re)connect toMark Kettenis
a vDisk server. This makes OpenBSD running in a guest domain survive a reboot of a control domain or service domain.
2009-12-09this does not even compileTheo de Raadt
2009-12-09add uhts(4).Matthieu Herrb
2009-12-09add uhts(4) a driver for USB HID touchscreens. ok miod@.Matthieu Herrb
Man page advices by jmc@.
2009-12-09Nuke stray comment referencing deceased TRY_AGAIN_LATER that dlg@Kenneth R Westerback
snuck back in. Noticed by kettenis@.
2009-12-09By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-12-09By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-12-09sloppy oga, tsk tsk, you are scaring usTheo de Raadt
spotted by ckuethe and must be in immediately before my build gets there..
2009-12-09Don't try to shove I/O down the LDC if we're disconnected from the virtualMark Kettenis
disk server.
2009-12-09Do not count input errors twice. We always read input errors fromChristian Weisgerber
the MAC in bge_tick(). Previously this would result in bge(4) claiming a greater number of input errors than what has actually occurred. From FreeBSD via Brad
2009-12-09Add entries in compat signal mapping arrays for SIGTHR.Jonathan Gray
Prompted by parfait noticing overflows in ibcs2/svr4 which are now changed to being NSIG sized like the others as suggested by tedu. ok tedu@ miod@ guenther@
2009-12-09Remove the clean gdt bit and leave the idt part in.Paul Irofti
Fixes most laptops out there on resume. Okay deraadt@.
2009-12-09add two new MD only pmap apis to amd64 and i386 (not to be used in MIOwain Ainsworth
code): pmap_flush_cache(vaddr_t, vsize_t) and pmap_flush_page(paddr_t) to flush the cache for virtual addresses and physical pages respectively using the clflush instruction. These apis will shortly be used by the agp bus_dma functions to avoid doing a wbinvd on each dmamap_sync. ok kettenis@, some comments from miod@
2009-12-09add cpufunc functions for the clflush instruction and the mfenceOwain Ainsworth
instruction. ok kettenis@ as part of a larger diff.
2009-12-09Detect the cache line size for the clflush instruction when we identifyOwain Ainsworth
the cpu. ok kettenis@ as part of a larger diff.
2009-12-09Stop spamming dmesg when raid isn't available.Marco Peereboom
2009-12-09disable useles printMarco Peereboom
2009-12-08Unconditionnaly move kernel virtual memory space to XKSEG, now that previousMiod Vallat
context.S fixes allows these settings to work for kernels linked in CKSEG0.
2009-12-08In cpu_switchto(), correctly ignore CKSEG0 curprocpaddr (and do not update theMiod Vallat
wired TLB entries).
2009-12-08Use a whole page for msgbuf if page size is larger than 4KB, instead ofMiod Vallat
the current 8KB.
2009-12-08Remove old SysV SHM size limits global variables, they are no longer neededMiod Vallat
since blambert@ rewrote the allocation code.
2009-12-08Passing kva + size as the third argument to uvm_km_free() is a bad idea. ItMark Kettenis
unmaps quite a bit more than intended, which causes weird things like watchdog resets.
2009-12-08Base the revision string in the INQUIRY info on the version of the VIO protocolMark Kettenis
used by the virtual disk server.
2009-12-08the ata identify structure is stupid. its full of buffers you haveDavid Gwynne
to swap to use. this diff doesnt swap fields the identify structure when its fetched, but adds a function that swaps them and copies them into a destination buffer. there is no functional change to the existing users of these fields, specifically the scsi inquiry faker and the device serial vpd page. this does fix the devid vpd page though. if a disk has a wwn we now present it correctly.
2009-12-08claim Intel 82801H RAID by pci id. it might be in RAID mode, not ahci.David Gwynne
makes the disks in a dell 960 work. there's probably a lot of other ids that should be added here too
2009-12-08move "pf: key search" and "pf: key setup" messages to PF_DEBUG_NOISYStuart Henderson
instead of MISC. "makes a little bit more sense" henning@
2009-12-08krw and marco found another problem with my atascsi chanages.David Gwynne
turns out you cant send atapi devices the ata IDENTIFY command, they dont grok it. you have to send a PACKET IDENTIFY instead, which is exactly the same but with a different command id. this diff changes it so we send a PACKET IDENTIFY to atapi devices. my diff "broke" this because it actually checks to see if the IDENTIFY succeeded rather than just completed. the previous code was wrong with regard to atapi devices. it is just lucky we dont use the IDENTIFY output for atapi devs. my apologies to marco@ and krw@
2009-12-08syncKevin Lo
2009-12-08USB IDs for Realtek RTL8192UKevin Lo
2009-12-07enter afbMark Kettenis
2009-12-07Firmware for Elite3D framebuffers. Thanks to Sun, and in particular AlanMark Kettenis
Coppersmith, for making this firmware available under a license that allows us to distribute it. ok deraadt@
2009-12-07Correctly skip available memory regions without (kernel) page alignedMiod Vallat
boundaries, entirely contained within a kernel page; issue raised by drahn@
2009-12-07Sync VM_MIN_ADDRESS with __LDPGSZ again.Miod Vallat
2009-12-07sync (with pckbd)Owain Ainsworth
2009-12-07Support uk.swapctrlcaps as a valid keymap.Owain Ainsworth
ok miod@
2009-12-07Support for 16KB page size kernels; page size is now set in <machine/param.h>Miod Vallat
rather than <mips64/param.h>. For now, kernels are kept at 4KB to give people some time to build 16KB compatible binaries; this will change before the end of this release cycle. Use of 16KB page size kernels yields a 18% speedup (which, offset by the 1.6% slowdown caused by the pmap changes, yields a 16.6% overall speedup).
2009-12-07If UPAGES would turn out to be 1, instead of using wired TLB entries to mapMiod Vallat
the u area after each context switch, simply convert it to an XKPHYS address, so that access to it never faults. Idea from NetBSD.
2009-12-07Use a pool to manage pmap pte pages and top level segment table, instead ofMiod Vallat
directly allocating pages from uvm; this will allow us to eventually use a different kernel page size without having to alter the pmap structures layout. No functional change; measured slowdown of 1.6% for 4KB page kernels.
2009-12-07When converting ARCBios memory spaces from ARCBios page size to the kernelMiod Vallat
page size, be sure to pick the strictest interval so as not to incorrectly claim ARCBios reserved data not (kernel) page size aligned as free memory. No functional change since the kernel uses the same page size as ARCBios (at the moment).
2009-12-07Be sure to always check tlbp return values for strictly negative valuesMiod Vallat
to consider the probe as failed; tlb pair #0 does not deserve to be magic in any way.
2009-12-07When netbooting the kernel image from ARCBios, our load address may not beMiod Vallat
honoured, and we may end up loaded at an uncached address (e.g. CKSEG1 on O2). This would cause the kernel to run with instruction cache disabled. Work around this by simply jumping to the address we really want to run at, at the beginning of locore.
2009-12-07When trying to return to ARCBios on a 32 bit ARCBios machine (such as the O2),Miod Vallat
disable interrupts and unconditionnaly use proc0 u area as the stack, so that once ARCBios loses the upper 32 bits of the stack pointer, accessing the stack does not fault (proc0 u area is allocated in CKSEG0 for this reason).