summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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).
2009-12-07Fix a spacing nit, and replace a magic number with ETHER_ADDR_LEN.Stuart Henderson
From Brad.
2009-12-07Cleanup discipline initialisation.Joel Sing
ok marco@
2009-12-07Define discipline capabilities using a set of flags.Joel Sing
"shiny!!" marco@
2009-12-07oops, wrong version of previous diff.David Gwynne
we have to exec a command (with ata_exec) before we check if its done with ata_polled. of course an unstarted command will not be done. found by and debugged with krw@ ok krw@
2009-12-07get rid of the return codes from command submission, ata_cmd handlersDavid Gwynne
now return void. all state about a command is now represented within the ata_xfer structure, and all layers using it (both hba and atascsi) now check only ata_xfer. this relies on my scsi midlayer changes. it was written just before the second last backout of the midlayer.
2009-12-07do not forward and drop packets with M_MCAST flag set in ip_forward()Joerg Goltermann
ok henning@, claudio@ "I think this should go in"
2009-12-07Re-enable SCSIDEBUG display of commands and data. Original diffKenneth R Westerback
from dlg@, tweaking by me to make it compile. ok dlg@
2009-12-06Nuke SCSI_URGENT after removing its only use, in ncr53c9x.c. That useKenneth R Westerback
was to try to play dangerous games with tagged queuing. ok marco@
2009-12-06change M_WAITOK --> M_WAITOK|M_CANFAILCharles Longeau
with input from marco@ "that i like" marco@ ok dlg@
2009-12-06SCSI_USER is deprecated. the ioctl handlers arent special with regard toDavid Gwynne
the midlayer.
2009-12-06consistently refer to the softc pointer as sc, not sd.David Gwynne
2009-12-06biodone must be called at splbio.David Gwynne
2009-12-06nitems(array) is prettier than sizeof(array)/sizeof(array[0])David Gwynne
2009-12-06whitespace tweaksDavid Gwynne
2009-12-06ansify dvd functions a bit.David Gwynne
2009-12-05Use the correct member of the ieee80211com struct when testingJonathan Gray
if the current mode is 802.11a or 802.11b. found by gcc svn. ok damien@
2009-12-05Ignore HID devices that have the same vendor and product ids thanMatthieu Herrb
devices actually supported by this device. The Linux driver confirms they exist. ok miod@ jsg@.
2009-12-05Until we have better hooks and a proper framework, do not do the lidTheo de Raadt
suspend. It is neat but annoying without a 'button'.
2009-12-05Use new acpi_maptable on AMLOP_LOAD operations; do not panic if bad checksumJordan Hargrave
fixes Thinkpad SL300, maybe others
2009-12-04KNF whitespace, from Brad. ok jordan@Stuart Henderson
2009-12-04Send `* pwr d' instead of `pwr d' on powerdown, to have L1 broadcast theMiod Vallat
request to other bricks connected to our node.
2009-12-04calculate the number of frames per usb xfer only once, and take intoJacob Meuser
account possible "fractional samples" which occur when the usb frame rate is not a whole number factor of the audio sample rate, such as with 44.1 kHz audio sample rate and full-speed usb (1 kHz frame rate).
2009-12-04instead of returning a structure, return the only member of theJacob Meuser
structure that will be used. discussed with deraadt.
2009-12-04ahc fits againTheo de Raadt
2009-12-04ansify.Jasper Lievisse Adriaanse
ok md5@
2009-12-04In uaudio_detach(), check that sc->sc_alts is not NULL beforeAlexandre Ratchov
using it. This could happen if uaudio_attach() failed, for instance because the device has no valid audio stream interface. Certain MIDI devices expose such descriptors. ok jakemsr@
2009-12-03Stop using the linker script. Something is arranging memory just soTheo de Raadt
resulting in kernels starting up the other cpu's incorrectly on processors with very long pipelines, perhaps some bug instruction prefetch dependency in the mptramp.
2009-12-03prevent a completion interrupt pulling io of the buf queue and shoving itDavid Gwynne
down to the disk while a process is doing the same thing. this will avoid some relatively minor io reordering from occurring. discovered by krw@ during his long dark trek through the code. requested by marco@
2009-12-03Use 16-bit writes instead of 8-bit writes for writing theJasper Lievisse Adriaanse
station address with the ST1023 chipset. This resolves the problem which resulted in the hack of putting the interface into promiscuous mode all the time with the ST1023 chipset. from brad, tested by me on the ST1023. ok sthen@
2009-12-03fix order dependency of pfsync interface setup, with claudio;Otto Moerbeek
ok claudio@ dlg@
2009-12-03use a define rather than magic number, spotted by BradDariusz Swiderski
ok by claudio@